/* Shared AV ERP workspace language: compact tabs, filters, cards, tables and actions. */
.av-standalone{--av-blue:#006c46;--av-soft:#e6ebf5;--av-cream:#f1efe8;background:#f1efe8;color:#0e131b}
.av-standalone .av-main{background:#f1efe8;max-width:none;width:auto;margin:0;padding:12px 14px 40px;min-width:0}
.av-standalone .av-title{margin:0 0 12px;gap:12px;min-height:0}
.av-standalone .av-title h1{font-size:20px;line-height:1.35;letter-spacing:0;color:#123a2b;font-weight:600}
.av-standalone .av-panel,.av-standalone .av-card,.av-standalone .av-filter,.av-standalone .av-tracking-results,.av-standalone .av-serial-search,.av-standalone .av-easy-purchase,.av-standalone .av-purchase-products,.av-standalone .av-purchase-summary,.av-standalone .av-empty{border:1px solid #e2e6ed;border-radius:10px;background:#fff;box-shadow:0 2px 8px #131b2b0a}
.av-standalone .av-panel{padding:14px;margin:12px 0}
.av-standalone .av-filter{padding:10px;gap:8px;align-items:center;flex-wrap:nowrap;margin:0 0 10px}
.av-standalone .av-filter label{max-width:none;flex:1 1 140px;min-width:100px;font-size:11px;color:#5a657a}
.av-standalone .av-filter input,.av-standalone .av-filter select{width:100%;min-width:0;min-height:38px;padding:7px 10px;font-size:12px;border-radius:7px}
.av-standalone .av-filter .button{min-height:38px;white-space:nowrap}
.av-standalone .av-segments,.av-standalone .ref-tabs{display:flex;align-items:center;gap:3px;width:max-content;max-width:100%;overflow-x:auto;margin:0 0 12px;padding:4px;background:#fff;border:1px solid #e6e6e6;border-radius:999px;scrollbar-width:none}
.av-standalone .av-segments::-webkit-scrollbar,.av-standalone .ref-tabs::-webkit-scrollbar{display:none}
.av-standalone .av-segments a,.av-standalone .ref-tabs a{flex:0 0 auto;padding:8px 12px;border:0;border-radius:999px;color:#14171d;font-size:12px;line-height:1.35;font-weight:500;white-space:nowrap;text-decoration:none}
.av-standalone .av-segments a.active,.av-standalone .ref-tabs a.active{background:#002b1c;color:#fff;font-weight:600}
.av-standalone .av-product-toolbar{display:flex;align-items:center;gap:8px;margin:0 0 10px;min-width:0}
.av-standalone .av-product-filters{display:flex;flex:1;min-width:0;gap:8px;align-items:center}
.av-standalone .av-product-filters>label{flex:1 1 120px;min-width:90px}
.av-standalone .av-product-filters input,.av-standalone .av-product-filters select{min-height:38px!important;border-radius:7px!important;padding:7px 10px!important;font-size:12px}
.av-standalone .av-list-exports{flex:none;gap:6px}
.av-standalone .av-list-icon{width:38px;height:38px;border:1px solid #e3e6ed;border-radius:7px;box-shadow:0 2px 5px #0000000a}
.av-standalone .av-stock-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.av-standalone .av-stock-heading .av-segments{margin:0}
.av-standalone .av-stock-heading-totals{display:flex;gap:14px;align-items:center;padding:8px 12px;border:1px solid #e2e6ed;border-radius:9px;background:#fff;box-shadow:0 2px 6px #0000000a;font-size:11px;color:#6c778b}
.av-standalone .av-stock-heading-totals span+span{border-left:1px solid #d3d7dd;padding-left:14px}
.av-standalone .av-stock-heading-totals b{display:block;color:#111;font-size:16px;margin-top:3px}
.av-standalone .av-scroll{width:100%;overflow:auto;border:1px solid #dee2e9;border-radius:9px;background:#fff;box-shadow:none}
.av-standalone .av-scroll table,.av-standalone table.widefat{width:100%;border-collapse:collapse;margin:0;background:#fff}
.av-standalone .av-scroll th,.av-standalone table.widefat th{padding:8px 9px;background:#ededed;color:#21304b;font-size:11px;font-weight:600;text-align:center;text-transform:none;letter-spacing:0;border:1px solid #dce1e9;white-space:nowrap}
.av-standalone .av-scroll td,.av-standalone table.widefat td{padding:8px 9px;color:#111;font-size:12px;line-height:1.4;text-align:center;vertical-align:middle;border:1px solid #dee2e9;overflow-wrap:anywhere}
.av-standalone .av-scroll tr:hover td,.av-standalone table.widefat tr:hover td{background:#fffdf8}
.av-standalone .av-scroll td a,.av-standalone table.widefat td a{color:#13223f;text-decoration:none}
.av-standalone .av-form{gap:10px;padding:14px;border:1px solid #e2e6ed;border-radius:10px;background:#fff;box-shadow:0 2px 8px #131b2b0a}
.av-standalone .av-form label{font-size:11px;font-weight:500;color:#475163;gap:5px}
.av-standalone .av-form input:not([type=hidden]),.av-standalone .av-form select,.av-standalone .av-form textarea{min-height:38px;padding:7px 10px;font-size:12px;border-radius:7px;background:#fff}
.av-standalone .av-seo-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;border:1px solid #e2e6ed;border-radius:9px;padding:12px}
.av-standalone .av-seo-fields legend{padding:0 6px;font-size:13px;font-weight:600;color:#13223f}
.av-standalone .av-seo-fields>p,.av-standalone .av-seo-fields>small{grid-column:1/-1;margin:0;color:#66738b;font-size:11px;line-height:1.5}
.av-standalone .av-seo-fields label{display:flex;flex-direction:column;gap:5px}
.av-standalone .av-seo-fields label:nth-of-type(2){grid-row:span 2}
.av-standalone .button{min-height:36px;padding:8px 13px;border-radius:7px;font-size:12px;box-shadow:none}
.av-standalone .button-primary,.av-standalone .av-create-button{background:#ff9500;border-color:#ff9500;color:#fff!important;border-radius:7px}
.av-standalone .av-purchase-summary .av-create-button,.av-standalone .av-transfer-summary .av-create-button{background:#314873;border-color:#314873}
.av-standalone .av-pager{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:12px;color:#5a657a}
.av-standalone .av-ui-note,.av-standalone .av-main>p{font-size:11px;line-height:1.55;color:#66738b}
.av-standalone .av-empty{padding:32px 18px;box-shadow:none}
.av-standalone .av-stock-totals{gap:10px;margin:0 0 10px}
.av-standalone .av-stock-totals>div{border:1px solid #e3e6ed;border-radius:10px;padding:14px;gap:8px;box-shadow:none}
.av-standalone .av-stock-totals strong{font-size:20px}
.av-standalone .av-tracking-results{padding:10px}
.av-standalone .av-serial-search{max-width:none;margin:0 0 10px;padding:14px}
.av-standalone .av-serial-search h2{text-align:left;font-size:18px;color:#123a2b;margin:0 0 12px}
.av-standalone .av-serial-search form{gap:8px}
.av-standalone .av-serial-search input{min-height:38px;padding:7px 10px}
.av-standalone .av-product-toolbar .av-list-exports .av-list-icon:hover,.av-standalone .button:hover{filter:brightness(.97)}
@media(max-width:1024px){.av-standalone .av-main{padding:12px 12px 35px}.av-standalone .av-product-toolbar{flex-wrap:wrap}.av-standalone .av-product-filters{flex-wrap:wrap}.av-standalone .av-stock-heading{align-items:stretch;flex-direction:column}.av-standalone .av-stock-heading-totals{align-self:flex-start}}
@media(max-width:600px){.av-standalone .av-main{padding:10px 10px 32px}.av-standalone .av-segments,.av-standalone .ref-tabs{width:100%;justify-content:flex-start}.av-standalone .av-segments a,.av-standalone .ref-tabs a{padding:8px 10px;font-size:11px}.av-standalone .av-filter{flex-wrap:wrap}.av-standalone .av-filter label{flex:1 1 130px}.av-standalone .av-product-toolbar{align-items:stretch}.av-standalone .av-product-filters{flex:1 1 100%}.av-standalone .av-list-exports{margin-left:auto}.av-standalone .av-form{padding:12px}.av-standalone .av-scroll{border-radius:7px}.av-standalone .av-scroll table{min-width:640px}.av-standalone .av-seo-fields{grid-template-columns:1fr}.av-standalone .av-seo-fields label:nth-of-type(2){grid-row:auto}}

/* Profit / loss report reference layout */
.av-standalone .av-main:has(.av-pnl-report){background:#141b27;color:#f8f9fb;min-height:calc(100vh - 60px)}
.av-standalone .av-main:has(.av-pnl-report) .av-title h1{color:#fff}
.av-standalone .av-main:has(.av-pnl-report) .av-panel-subtitle{display:none}
.av-standalone .av-pnl-report{margin:0;padding:2px 0 18px;color:#f4f6fa}
.av-standalone .av-pnl-toolbar{display:flex;justify-content:flex-end;align-items:end;gap:14px;margin:0 0 14px;padding:0 2px}
.av-standalone .av-pnl-toolbar label{display:flex;flex-direction:column;gap:5px;color:#a1aec7;font-size:11px}
.av-standalone .av-pnl-toolbar select,.av-standalone .av-pnl-toolbar input{min-height:36px;padding:6px 10px;border:1px solid #3f4b61;border-radius:0;background:#141b27;color:#fff;font-size:12px}
.av-standalone .av-pnl-location{display:flex!important;flex-direction:row!important;align-items:stretch;min-width:255px;margin-right:auto}
.av-standalone .av-pnl-location>span{display:grid;place-items:center;width:34px;background:#4e70b1;color:#fff;font-size:17px}
.av-standalone .av-pnl-location select{flex:1}
.av-standalone .av-pnl-dates{display:flex;align-items:end;gap:8px}
.av-standalone .av-pnl-toolbar .button{min-height:36px;padding:7px 12px;background:#3f5b8f;border:0;border-radius:8px;color:#fff;box-shadow:0 4px 12px #2c3f6455}
.av-standalone .av-pnl-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.av-standalone .av-pnl-box{min-width:0;padding:14px;border:1px solid #2b3549;border-radius:14px;background:#1c2535}
.av-standalone .av-pnl-box h2{margin:0 0 8px;padding:0 6px 10px;border-bottom:1px solid #2d394e;color:#fff;font-size:15px}
.av-standalone .av-pnl-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(125px,1fr);min-height:43px;border-bottom:1px solid #2d394e;background:#18202e;font-size:12px}
.av-standalone .av-pnl-row:nth-of-type(even){background:#161e2c}
.av-standalone .av-pnl-row span,.av-standalone .av-pnl-row b{padding:11px 8px}
.av-standalone .av-pnl-row b{font-weight:500;border-left:1px solid #252e40}
.av-standalone .av-pnl-total{display:flex;justify-content:space-between;gap:12px;padding:12px 8px 3px;color:#fff;font-size:13px}
.av-standalone .av-pnl-total b{font-weight:600}
.av-standalone .av-pnl-empty{margin:0;padding:16px 8px;color:#a1aec7;font-size:12px}
.av-standalone .av-pnl-result{display:flex;justify-content:space-between;gap:16px;margin-top:16px;padding:15px 18px;border:1px solid #2b3549;border-radius:12px;background:#1c2535}
.av-standalone .av-pnl-result>div{display:grid;gap:5px}
.av-standalone .av-pnl-result small{color:#a1aec7;font-size:11px}
.av-standalone .av-pnl-result b{font-size:16px}
.av-standalone .av-pnl-result .is-profit{color:#4a77cb}
.av-standalone .av-pnl-result .is-loss{color:#ff657a}
.av-standalone .av-pnl-note{margin:10px 2px 0;color:#a1aec7;font-size:11px;line-height:1.5}
@media(max-width:850px){.av-standalone .av-pnl-columns{grid-template-columns:1fr}.av-standalone .av-pnl-toolbar{align-items:stretch;flex-wrap:wrap}.av-standalone .av-pnl-location{flex:1 1 100%;margin-right:0}.av-standalone .av-pnl-dates{flex-wrap:wrap}.av-standalone .av-pnl-dates label{flex:1 1 130px}}

/* AV ERP unified lavender workspace: shared by every section and workflow. */
.av-standalone{--av-blue:#7b95c6;--av-soft:#f0f3f8;--av-cream:#eff2f8;background:#edf0f7;color:#141c2a}
.av-standalone .av-main{background:#edf0f7;color:#141c2a}
.av-standalone .av-topbar{background:#fff!important;color:#141c2a;box-shadow:0 3px 14px #26375612}
.av-standalone .av-nav,.av-standalone .av-sidebar-heading{background:#f9fafc!important}
.av-standalone .av-sidebar-heading>a,.av-standalone .av-nav>a,.av-standalone .av-nav-group>summary,.av-standalone .av-nav-group>a,.av-standalone .av-nav-subgroup,.av-standalone .av-nav-subgroup>a{color:#3b4a67!important}
.av-standalone .av-sidebar-heading>a b{color:#7b95c6!important}
.av-standalone .av-sidebar-collapse{background:#7b95c6;color:#fff}
.av-standalone .av-nav a.active,.av-standalone .av-nav a.active:hover{background:#7b95c6!important;color:#fff!important}
.av-standalone .av-nav a:hover,.av-standalone .av-nav-group>summary:hover{background:#f0f3f8}
.av-standalone .av-nav-group>summary:after{color:#5d7095!important}
.av-standalone .av-nav-bottom{border-color:#dfe5f0!important}
.av-standalone .av-nav-bottom small{color:#687a9c!important}
.av-standalone .av-title h1{color:#1c273d}
.av-standalone .av-panel,.av-standalone .av-card,.av-standalone .av-filter,.av-standalone .av-empty,.av-standalone .av-scroll,.av-standalone .av-product-editor,.av-standalone .av-easy-purchase,.av-standalone .av-purchase-summary,.av-standalone .av-tracking-results{border-color:#e5eaf3;background:#fff;box-shadow:0 3px 12px #2f3e5b10}
.av-standalone .av-segments,.av-standalone .ref-tabs{border-color:#eceff5;background:#fff}
.av-standalone .av-segments a.active,.av-standalone .ref-tabs a.active{background:#7b95c6;color:#fff}
.av-standalone .button-primary,.av-standalone .av-create-button,.av-standalone .av-product-editor .av-form>.button-primary,.av-standalone .av-pnl-toolbar .button{background:#7b95c6!important;border-color:#7b95c6!important;color:#fff!important}
.av-standalone .av-purchase-app .av-create-button,.av-standalone .av-purchase-app .av-purchase-summary>.button{background:#7b95c6!important;border-color:#7b95c6!important}
.av-standalone .av-form input:not([type=hidden]),.av-standalone .av-form select,.av-standalone .av-form textarea,.av-standalone .av-filter input,.av-standalone .av-filter select,.av-standalone .av-product-filters input,.av-standalone .av-product-filters select{border-color:#dde3ee;background:#fff;color:#212c40}
.av-standalone .av-main:has(.av-pnl-report){background:#edf0f7;color:#141c2a}
.av-standalone .av-main:has(.av-pnl-report) .av-title h1{color:#1c273d}
.av-standalone .av-pnl-report{color:#1c273d}
.av-standalone .av-pnl-toolbar label{color:#67799c}
.av-standalone .av-pnl-toolbar select,.av-standalone .av-pnl-toolbar input{border:1px solid #dfe4ef;border-radius:8px;background:#fff;color:#1e293e}
.av-standalone .av-pnl-location>span{background:#7b95c6}
.av-standalone .av-pnl-box,.av-standalone .av-pnl-result{border-color:#e6ebf4;background:#fff;box-shadow:0 3px 12px #2f3e5b10}
.av-standalone .av-pnl-box h2{border-color:#eceff5;color:#1c273d}
.av-standalone .av-pnl-row,.av-standalone .av-pnl-row:nth-of-type(even){border-color:#eceff5;background:#fcfcfd;color:#212c40}
.av-standalone .av-pnl-row b{border-color:#eceff5}
.av-standalone .av-pnl-total,.av-standalone .av-pnl-result b{color:#1c273d}
.av-standalone .av-pnl-note,.av-standalone .av-pnl-result small,.av-standalone .av-pnl-empty{color:#687a9c}
@media(max-width:1024px){.av-standalone .av-main:has(.av-pnl-report){background:#edf0f7}}

/* Component and page-layout redesign across the complete ERP workspace. */
.av-standalone .av-topbar{height:64px;position:sticky;top:0;z-index:50;padding:0 26px;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(12px);border-bottom:1px solid #e6ebf3;box-shadow:0 4px 16px #2b3e620a}
.av-standalone .av-wordmark{margin-right:auto;text-align:left;font-size:17px!important;font-weight:650;letter-spacing:0;color:#1c283e!important}
.av-standalone .av-header-alert{width:36px;height:36px;border-radius:12px;background:#f1f4f9;color:#4868a4!important}
.av-standalone .av-header-alert svg{width:17px;height:17px}
.av-standalone .av-desktop-user{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:18px;background:#f6f8fb;color:#3b4963;font-size:12px}
.av-standalone .av-layout{grid-template-columns:248px minmax(0,1fr);gap:0;min-height:calc(100vh - 64px);margin:0}
.av-standalone .av-nav{top:64px;height:calc(100vh - 64px);width:248px;padding:16px 14px;background:#f9fafc!important;border-right:1px solid #e6ebf3;box-shadow:none}
.av-standalone .av-sidebar-heading{height:64px;width:248px;position:fixed;top:0;left:0;padding:0 24px;background:#f9fafc!important;border-bottom:1px solid #e6ebf3}
.av-standalone .av-sidebar-heading>a{font-size:20px;letter-spacing:-.5px;color:#1e2a41!important}
.av-standalone .av-sidebar-heading>a b{font-size:23px;color:#7b95c6!important}
.av-standalone .av-sidebar-collapse{top:9px;right:10px;width:26px;height:26px;line-height:25px;border-radius:8px;background:#7b95c6;color:white;font-size:17px}
.av-standalone .av-nav-group{margin:5px 0}
.av-standalone .av-nav>a,.av-standalone .av-nav-group>summary{min-height:38px;padding:9px 10px;border-radius:10px;color:#566788!important;font-size:12px;font-weight:550}
.av-standalone .av-nav-group>summary{color:#7686a4!important}
.av-standalone .av-nav-group>a,.av-standalone .av-nav-subgroup>a{margin:2px 0 2px 18px;min-height:34px;padding:8px 10px;border-radius:9px;font-size:11px}
.av-standalone .av-nav a.active,.av-standalone .av-nav a.active:hover{background:#7b95c6!important;color:#fff!important;box-shadow:0 5px 14px #7b95c633;font-weight:650}
.av-standalone .av-nav svg{color:#677a9f}
.av-standalone .av-nav-bottom{margin-top:12px;padding-top:10px;border-color:#e2e8f2}
.av-standalone .av-nav-bottom a{color:#566788!important}
.av-standalone .av-main{grid-column:2;align-self:stretch;width:auto;max-width:none;min-width:0;margin:0;padding:18px 22px 38px;background:#edf0f7}
.av-standalone .av-page-head{min-height:52px;margin:0 0 14px;padding:0 2px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.av-standalone .av-page-head h1{margin:0;color:#1f2c45;font-size:22px;font-weight:650;letter-spacing:-.45px}
.av-standalone .av-page-head .av-panel-subtitle{margin:3px 0 0;color:#8998b3!important;font-size:11px}
.av-standalone .av-page-content{display:flex;flex-direction:column;gap:14px;min-width:0}
.av-standalone .av-page-content>.av-filter{margin:0 0 2px;padding:12px 14px;border:1px solid #e5eaf3;border-radius:15px;background:#fff;box-shadow:0 3px 10px #2b3e6208}
.av-standalone .av-filter label{flex:1 1 130px;max-width:unset;min-width:0;color:#7082a4;font-size:10px;font-weight:500}
.av-standalone .av-filter input,.av-standalone .av-filter select{min-height:37px;border-radius:9px;background:#fcfcfd}
.av-standalone .av-page-content .av-panel,.av-standalone .av-page-content .av-pos-summary,.av-standalone .av-page-content .av-product-editor,.av-standalone .av-page-content .av-scroll,.av-standalone .av-page-content .av-empty,.av-standalone .av-page-content .av-tracking-results{margin:0;border:1px solid #e5eaf3;border-radius:16px;background:#fff;box-shadow:0 4px 16px #2b3e620a}
.av-standalone .av-page-content .av-panel{padding:18px}
.av-standalone .av-page-content .av-pos-summary{padding:20px}
.av-standalone .av-page-content h2,.av-standalone .av-page-content h3{color:#202e47;font-weight:650;letter-spacing:-.2px}
.av-standalone .av-page-content p{color:#6a7c9e;line-height:1.55}
.av-standalone .av-page-content .av-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px 16px;padding:16px;border:1px solid #eaedf4;border-radius:14px;background:#fcfcfd;box-shadow:none}
.av-standalone .av-page-content .av-form>label{width:100%;max-width:none;min-width:0;gap:6px;color:#586a8c;font-size:11px;font-weight:550}
.av-standalone .av-page-content .av-form>label input:not([type=hidden]),.av-standalone .av-page-content .av-form>label select,.av-standalone .av-page-content .av-form>label textarea{width:100%;min-height:40px;border:1px solid #e0e6f0;border-radius:9px;background:#fff;font-size:12px}
.av-standalone .av-page-content .av-form>.button,.av-standalone .av-page-content .av-form>.button-primary,.av-standalone .av-page-content .av-form>p,.av-standalone .av-page-content .av-form>small,.av-standalone .av-page-content .av-form>fieldset,.av-standalone .av-page-content .av-form>.av-wide,.av-standalone .av-page-content .av-form>.av-seo-fields{grid-column:1/-1}
.av-standalone .av-page-content .button,.av-standalone .av-page-head .button{min-height:38px;border-radius:10px}
.av-standalone .av-page-content .button-primary,.av-standalone .av-page-head .button-primary{background:#7b95c6!important;border-color:#7b95c6!important;color:#fff!important;box-shadow:0 5px 14px #7b95c626}
.av-standalone .av-page-content details.av-panel{padding:0;overflow:hidden}
.av-standalone .av-page-content details.av-panel>summary{padding:16px 18px;color:#303f5b;font-size:13px;font-weight:600}
.av-standalone .av-page-content details.av-panel[open]>summary{border-bottom:1px solid #eceff5;background:#fcfcfd}
.av-standalone .av-page-content details.av-panel[open]>*:not(summary){margin-left:16px;margin-right:16px}
.av-standalone .av-page-content .av-scroll{overflow:auto;border-radius:15px}
.av-standalone .av-page-content .av-scroll table{min-width:680px;border-collapse:separate;border-spacing:0;background:#fff}
.av-standalone .av-page-content .av-scroll th{position:sticky;top:0;padding:12px 11px;background:#f4f6fa;color:#65789b;border:0;border-bottom:1px solid #e6ebf4;text-transform:none;letter-spacing:0;font-size:11px;font-weight:650}
.av-standalone .av-page-content .av-scroll td{padding:11px;color:#364561;border:0;border-bottom:1px solid #edf0f6;font-size:11px;line-height:1.45}
.av-standalone .av-page-content .av-scroll tr:last-child td{border-bottom:0}
.av-standalone .av-page-content .av-scroll tr:hover td{background:#fbfbfc}
.av-standalone .av-page-content .av-pager{display:flex;align-items:center;gap:8px;margin:0;color:#6a7c9e;font-size:11px}
.av-standalone .av-page-content .av-segments,.av-standalone .av-page-content .ref-tabs{margin:0 0 2px;padding:5px;width:max-content;max-width:100%;border:1px solid #e5eaf3;border-radius:15px;background:#fff;box-shadow:0 3px 10px #2b3e6207}
.av-standalone .av-page-content .av-segments a,.av-standalone .av-page-content .ref-tabs a{padding:8px 13px;border-radius:10px;color:#506181;font-size:11px;font-weight:550}
.av-standalone .av-page-content .av-segments a.active,.av-standalone .av-page-content .ref-tabs a.active{background:#7b95c6;color:#fff;box-shadow:0 4px 10px #7b95c626}
.av-standalone .av-page-content .av-purchase-app,.av-standalone .av-page-content .ref-sale,.av-standalone .av-page-content .av-product-toolbar{min-width:0}
.av-standalone .av-page-content .av-product-card{border:1px solid #e6ebf4;border-radius:18px;box-shadow:0 4px 16px #2b3e6209}
.av-standalone .av-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);grid-auto-flow:row;align-items:stretch;gap:14px}
.av-standalone .av-dashboard-grid>.av-sales-summary{grid-column:1;grid-row:span 2;display:flex;flex-direction:column;justify-content:center;min-height:300px}
.av-standalone .av-dashboard-grid>.av-pos-summary:not(.av-sales-summary){min-width:0}
.av-standalone .av-dashboard-grid>.av-mobile-quick-access{grid-column:1}
.av-standalone .av-dashboard-grid>.av-mobile-low-stock{grid-column:2}
.av-standalone .av-dashboard-grid .av-sales-summary header{align-items:center}
.av-standalone .av-dashboard-grid .av-sales-summary header h2{margin:0;font-size:16px}
.av-standalone .av-dashboard-link{font-size:11px;color:#7b95c6!important;white-space:nowrap}
.av-standalone .av-dashboard-grid .av-summary-body{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:center;min-height:190px}
.av-standalone .av-dashboard-grid .av-sales-gauge{border-width:16px;border-top-color:#7b95c6;border-left-color:#7b95c6;border-right-color:#d6deec;border-radius:160px 160px 0 0;background:#fff}
.av-standalone .av-dashboard-grid .av-sales-breakdown{border:0;padding:0}
.av-standalone .av-dashboard-grid .av-sales-breakdown>div{position:relative;padding:11px 12px;border:0;border-radius:10px;background:#f9fafc;margin:6px 0}
.av-standalone .av-dashboard-grid .av-sales-breakdown>div:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:4px;background:#7b95c6}
.av-standalone .av-dashboard-grid .av-sales-breakdown>div:nth-child(2):before{background:#6381bb}
.av-standalone .av-dashboard-grid .av-sales-breakdown>div:nth-child(3):before{background:#ff8c67}
.av-standalone .av-dashboard-grid .av-sales-breakdown small{font-size:10px}
.av-standalone .av-dashboard-grid .av-sales-breakdown b{font-size:15px;color:#24314a}
.av-standalone .av-dashboard-grid .av-flow-grid>div{border:1px solid #eceff5;border-radius:12px;background:#f9fafc;padding:12px 6px}
.av-standalone .av-dashboard-grid .av-pos-icon{width:32px;height:32px;background:#f4f6fa;color:#7b95c6;border-radius:10px;font-size:16px}
.av-standalone .av-dashboard-grid .av-flow-grid strong{font-size:14px;color:#24314a}
.av-standalone .av-dashboard-grid .av-flow-grid small{font-size:10px}
.av-standalone .av-dashboard-grid .av-expense-grid>div{border:1px solid #eaedf4;border-radius:12px;background:#f9fafc;padding:13px}
.av-standalone .av-dashboard-grid .av-expense-grid strong{font-size:16px;color:#24314a}
.av-standalone .av-dashboard-grid .av-expense-grid small{font-size:10px}
.av-standalone .av-dashboard-grid .av-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.av-standalone .av-dashboard-grid .av-quick-grid a{padding:12px 5px;border:1px solid #eceff5;border-radius:13px;background:#fcfcfd;color:#4a5b7c;font-size:10px}
.av-standalone .av-dashboard-grid .av-quick-grid a>span{width:38px;height:38px;border-radius:12px;background:#f3f5fa;color:#7b95c6;font-size:18px}
.av-standalone .av-dashboard-grid .av-low-list article{align-items:center;border-color:#eceff5;border-radius:12px;background:#fcfcfd;padding:11px}
@media(max-width:1100px){.av-standalone .av-dashboard-grid{grid-template-columns:1fr 1fr}.av-standalone .av-dashboard-grid>.av-sales-summary{grid-column:1/-1;grid-row:auto}.av-standalone .av-main{padding:16px}.av-standalone .av-layout{grid-template-columns:220px minmax(0,1fr)}.av-standalone .av-nav,.av-standalone .av-sidebar-heading{width:220px}}
@media(max-width:760px){.av-standalone .av-layout{display:block}.av-standalone .av-nav{width:min(84vw,330px);top:0;height:100dvh;padding-top:76px}.av-standalone .av-sidebar-heading{width:min(84vw,330px)}.av-standalone .av-main{padding:14px 12px 34px}.av-standalone .av-page-head{min-height:44px;margin-bottom:10px}.av-standalone .av-page-head h1{font-size:19px}.av-standalone .av-page-content{gap:10px}.av-standalone .av-page-content .av-form{grid-template-columns:1fr}.av-standalone .av-page-content .av-form>*{grid-column:1}.av-standalone .av-dashboard-grid{grid-template-columns:1fr;gap:10px}.av-standalone .av-dashboard-grid>.av-sales-summary,.av-standalone .av-dashboard-grid>.av-mobile-quick-access,.av-standalone .av-dashboard-grid>.av-mobile-low-stock{grid-column:1;grid-row:auto}.av-standalone .av-dashboard-grid .av-sales-summary{min-height:0}.av-standalone .av-page-content .av-segments,.av-standalone .av-page-content .ref-tabs{width:100%;overflow-x:auto}.av-standalone .av-page-content .av-pos-summary{padding:15px}.av-standalone .av-page-content .av-scroll{border-radius:12px}.av-standalone .av-page-content .av-scroll table{min-width:680px}}
/* Preserve specialized two-column transaction workspaces inside the shared shell. */
.av-standalone .av-page-content .av-purchase-app>.av-form{display:block;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.av-standalone .av-page-content .av-purchase-app .av-purchase-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:14px;align-items:start}
.av-standalone .av-page-content .av-purchase-products,.av-standalone .av-page-content .av-purchase-summary{min-width:0;padding:16px;border:1px solid #e5eaf3;border-radius:16px;background:#fff;box-shadow:0 4px 16px #2b3e620a}
.av-standalone .av-page-content .av-purchase-summary{position:sticky;top:76px;max-height:calc(100vh - 90px);overflow:auto}
.av-standalone .av-page-content .ref-sale>form.av-form{display:contents;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.av-standalone .av-page-content .ref-sale>.ref-sale-stage,.av-standalone .av-page-content .ref-sale>form>.ref-sale-stage{min-width:0}
.av-standalone .av-page-content .ref-sale .ref-billing{border-radius:14px;background:#fff;border:1px solid #e5eaf3;padding:14px}
.av-standalone .av-page-content .av-product-editor .av-form{grid-template-columns:repeat(3,minmax(0,1fr));padding:0;border:0;background:transparent}
.av-standalone .av-page-content .av-product-editor .av-form>label{grid-column:auto}
@media(max-width:900px){.av-standalone .av-page-content .av-purchase-app .av-purchase-grid{grid-template-columns:minmax(0,1fr) 315px}}
@media(max-width:760px){.av-standalone .av-page-content .av-purchase-app .av-purchase-grid{grid-template-columns:1fr}.av-standalone .av-page-content .av-purchase-summary{position:static;max-height:none}.av-standalone .av-page-content .av-product-editor .av-form{grid-template-columns:1fr}}
@media(min-width:1025px){.av-sidebar-collapsed.av-standalone .av-layout{grid-template-columns:72px minmax(0,1fr)}.av-sidebar-collapsed.av-standalone .av-nav,.av-sidebar-collapsed.av-standalone .av-sidebar-heading{width:72px}.av-sidebar-collapsed.av-standalone .av-sidebar-heading{padding:0 10px}.av-sidebar-collapsed.av-standalone .av-sidebar-heading>a{font-size:0}.av-sidebar-collapsed.av-standalone .av-sidebar-heading>a b{font-size:21px}.av-sidebar-collapsed.av-standalone .av-nav>a span,.av-sidebar-collapsed.av-standalone .av-nav-group>summary span,.av-sidebar-collapsed.av-standalone .av-nav-group>summary:after,.av-sidebar-collapsed.av-standalone .av-nav-group>a,.av-sidebar-collapsed.av-standalone .av-nav-bottom{display:none}.av-sidebar-collapsed.av-standalone .av-nav-group>summary,.av-sidebar-collapsed.av-standalone .av-nav>a{justify-content:center}.av-sidebar-collapsed.av-standalone .av-nav-group>summary svg,.av-sidebar-collapsed.av-standalone .av-nav>a svg{width:19px;height:19px}}

/* Responsive layout correction: use one predictable drawer breakpoint and prevent grid overflow. */
.av-standalone .av-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.av-standalone .av-wordmark{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.av-standalone .av-desktop-user{min-width:0;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
.av-standalone .av-main,.av-standalone .av-page-content,.av-standalone .av-page-content>*{min-width:0;max-width:100%}
.av-standalone .av-page-content .av-purchase-app .av-purchase-grid{grid-template-columns:minmax(0,1fr) 350px}
.av-standalone .av-page-content .ref-sale{grid-template-columns:minmax(0,1fr) 350px;min-width:0}
.av-standalone .av-page-content .ref-sale>.ref-sale-stage,.av-standalone .av-page-content .ref-sale>form>.ref-sale-stage{min-width:0;max-width:100%}
@media(min-width:1025px) and (max-width:1100px){
 .av-standalone .av-layout{grid-template-columns:248px minmax(0,1fr)}
 .av-standalone .av-nav,.av-standalone .av-sidebar-heading{width:248px}
 .av-standalone .av-topbar{margin-left:248px}
 .av-standalone .av-main{grid-column:2}
}
@media(max-width:1024px){
 .av-standalone .av-layout{display:block;grid-template-columns:minmax(0,1fr);min-height:calc(100vh - 64px)}
 .av-standalone .av-sidebar-heading{position:static;z-index:auto;width:auto;height:auto;padding:10px 12px;background:transparent!important;border:0}
 .av-standalone .av-sidebar-collapse{display:none}
 .av-standalone .av-nav{position:fixed;z-index:51;inset:0 auto 0 0;width:min(84vw,330px);height:100dvh;padding:18px 14px;transform:translateX(-105%);transition:transform .2s ease;overflow-y:auto;-webkit-overflow-scrolling:touch}
 .av-standalone .av-nav.is-open{transform:translateX(0)}
 .av-standalone .av-main{grid-column:auto;width:100%;margin:0;padding:16px;min-width:0}
 .av-standalone .av-topbar{position:sticky;top:0;height:64px;width:100%;margin-left:0;padding:0 16px;z-index:50}
 .av-standalone .av-menu-toggle{display:flex;flex:none}
 .av-standalone .av-topbar-user{display:none}
 .av-standalone .av-page-content .av-purchase-app .av-purchase-grid{grid-template-columns:minmax(0,1fr)}
 .av-standalone .av-page-content .av-purchase-summary{position:static;top:auto;max-height:none;overflow:visible}
 .av-standalone .av-page-content .ref-sale{grid-template-columns:minmax(0,1fr)}
 .av-standalone .av-page-content .ref-sale>.ref-sale-stage,.av-standalone .av-page-content .ref-sale>form>.ref-sale-stage{grid-column:1;grid-row:auto}
 .av-standalone .av-page-content .ref-sale>form>.ref-sale-stage[data-pos-stage=billing]{position:static;max-height:none;overflow:visible}
}
@media(max-width:760px){
 .av-standalone .av-nav{top:0;height:100dvh}
 .av-standalone .av-topbar{height:60px;margin-left:0;padding:0 12px;gap:8px}
 .av-standalone .av-wordmark{font-size:18px!important;letter-spacing:-.3px}
 .av-standalone .av-header-alert{flex:none}
 .av-standalone .av-main{padding:12px 10px 30px}
 .av-standalone .av-page-content{gap:10px}
 .av-standalone .av-page-content .av-form,.av-standalone .av-page-content .av-product-editor .av-form{grid-template-columns:minmax(0,1fr)}
 .av-standalone .av-page-content .av-form>*{grid-column:1/-1;min-width:0}
 .av-standalone .av-page-content .av-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .av-standalone .av-page-content .av-filter>*{min-width:0;max-width:none;width:100%}
 .av-standalone .av-page-content .av-filter label{min-width:0;max-width:none}
 .av-standalone .av-page-content .av-product-toolbar{flex-wrap:wrap}
 .av-standalone .av-page-content .av-product-filters{flex:1 1 100%;flex-wrap:wrap}
 .av-standalone .av-page-content .av-product-filters>*{min-width:0;flex:1 1 145px}
 .av-standalone .av-page-content .av-scroll{max-width:100%;overflow-x:auto}
 .av-standalone .av-page-content .av-scroll table{min-width:680px}
 .av-standalone .av-page-content .ref-sale .ref-cart-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .av-standalone .av-page-content .ref-sale .ref-cart-values>*{min-width:0}
 .av-standalone .av-page-content .ref-sale .ref-billing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .av-standalone .av-page-content .ref-sale .ref-billing-grid>*{min-width:0}
 .av-standalone .av-page-content .av-purchase-grid .av-line{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}
 .av-standalone .av-page-content .av-purchase-grid .av-line .av-product{grid-column:1/-1}
 .av-standalone .av-page-content .av-purchase-grid .av-line .av-remove{grid-column:1/-1}
}
@media(max-width:420px){
 .av-standalone .av-page-content .av-filter{grid-template-columns:minmax(0,1fr)}
 .av-standalone .av-page-content .ref-sale .ref-billing-grid{grid-template-columns:minmax(0,1fr)}
 .av-standalone .av-page-content .av-stock-heading-totals{width:100%;justify-content:space-between}
 .av-standalone .av-dashboard-grid .av-summary-body{grid-template-columns:minmax(0,1fr);gap:12px}
}

/* Enterprise refresh: consistent navigation, data hierarchy and touch targets. */
.av-standalone{--av-blue:#087f5b;--av-soft:#e5ebf7;--av-cream:#f4f5f8;background:#f4f5f8;color:#141a24;font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif}
.av-standalone .av-topbar{background:#fff!important;border-bottom-color:#e3e6ed;box-shadow:0 2px 10px #15203608}
.av-standalone .av-wordmark,.av-standalone .av-sidebar-heading>a{color:#14223b!important}
.av-standalone .av-sidebar-heading>a b{color:#087f5b!important}
.av-standalone .av-header-alert,.av-standalone .av-menu-toggle{background:#e5ebf7;color:#087f5b!important}
.av-standalone .av-layout{grid-template-columns:256px minmax(0,1fr)}
.av-standalone .av-nav,.av-standalone .av-sidebar-heading{background:#fff!important;border-color:#e3e6ed}
.av-standalone .av-nav{padding:18px 13px}
.av-standalone .av-nav-group{margin:7px 0}
.av-standalone .av-nav-group>summary{font-size:11px!important;font-weight:700!important;letter-spacing:.04em;text-transform:uppercase;color:#7a869d!important}
.av-standalone .av-nav>a,.av-standalone .av-nav-group>a{min-height:42px;padding:10px 11px;border-radius:10px;color:#4b566b!important;font-size:12px;font-weight:550;transition:background .15s ease,color .15s ease}
.av-standalone .av-nav-group>a{margin:2px 0 2px 13px}
.av-standalone .av-nav>a:hover,.av-standalone .av-nav-group>a:hover{background:#f0f3f8!important;color:#087f5b!important}
.av-standalone .av-nav a.active,.av-standalone .av-nav a.active:hover{background:#e5ebf7!important;color:#087f5b!important;box-shadow:inset 3px 0 #087f5b;font-weight:700}
.av-standalone .av-nav a.active svg{color:#087f5b}
.av-standalone .av-main{background:#f4f5f8;padding:24px clamp(16px,2vw,30px) 48px}
.av-standalone .av-page-head{margin-bottom:18px}
.av-standalone .av-page-head h1{font-size:24px;font-weight:700;letter-spacing:-.5px;color:#14223b}
.av-standalone .av-page-head .av-panel-subtitle{color:#748098!important;font-size:12px}
.av-standalone .av-page-content{gap:16px}
.av-standalone .av-page-content .av-panel,.av-standalone .av-page-content .av-pos-summary,.av-standalone .av-page-content .av-product-editor,.av-standalone .av-page-content .av-scroll,.av-standalone .av-page-content .av-empty,.av-standalone .av-page-content .av-tracking-results,.av-standalone .av-page-content .av-filter{border-color:#e1e5ec;border-radius:14px;box-shadow:0 3px 12px #13223f08}
.av-standalone .av-page-content .av-panel{padding:20px}
.av-standalone .av-page-content h2{font-size:16px;color:#192742}
.av-standalone .av-page-content h3{font-size:13px;color:#2e3e5b}
.av-standalone .av-page-content .av-form{gap:14px;padding:18px;border-color:#e3e7ee;border-radius:12px;background:#fbfcfd}
.av-standalone .av-page-content .av-form>label{font-size:12px;color:#4b576d}
.av-standalone .av-page-content .av-form>label input:not([type=hidden]),.av-standalone .av-page-content .av-form>label select,.av-standalone .av-page-content .av-form>label textarea,.av-standalone .av-page-content .av-filter input,.av-standalone .av-page-content .av-filter select{min-height:42px;border-color:#d9dfe9;border-radius:9px;background:#fff;font-size:13px;color:#1f2a40}
.av-standalone .av-page-content input:focus,.av-standalone .av-page-content select:focus,.av-standalone .av-page-content textarea:focus{outline:3px solid #087f5b24;border-color:#087f5b}
.av-standalone .button,.av-standalone .av-page-content .button{min-height:42px;padding:9px 15px;border:1px solid #d9dfe9;border-radius:9px;background:#fff;color:#303e59;font-size:12px;font-weight:650;box-shadow:none}
.av-standalone .button-primary,.av-standalone .av-page-content .button-primary,.av-standalone .av-page-content .av-create-button{background:#087f5b!important;border-color:#087f5b!important;color:#fff!important;box-shadow:0 4px 10px #087f5b20}
.av-standalone .av-page-content .av-segments,.av-standalone .av-page-content .ref-tabs{border-color:#e1e5ec;border-radius:12px}
.av-standalone .av-page-content .av-segments a.active,.av-standalone .av-page-content .ref-tabs a.active{background:#087f5b;box-shadow:0 3px 8px #087f5b20}
.av-standalone .av-page-content .av-scroll th{background:#f1f3f8;color:#4a576f;border-bottom:1px solid #e1e5ed;font-size:11px;font-weight:700}
.av-standalone .av-page-content .av-scroll td{color:#2e394e;border-bottom-color:#eceef3;font-size:12px}
.av-standalone .av-page-content .av-scroll td a,.av-standalone .av-page-content .av-panel a:not(.button){color:#087f5b}
.av-standalone .av-dashboard-grid .av-sales-gauge{border-top-color:#087f5b;border-left-color:#087f5b}
.av-standalone .av-dashboard-link{color:#087f5b!important}
.av-standalone .av-dashboard-grid .av-pos-icon,.av-standalone .av-dashboard-grid .av-quick-grid a>span{background:#e5ebf7;color:#087f5b}
.av-standalone .av-page-content .av-purchase-products,.av-standalone .av-page-content .av-purchase-summary{border-color:#e1e5ec;border-radius:14px}
.av-standalone .av-ledger-summary{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:12px}
.av-standalone .av-ledger-summary>div{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #e3e7ee;border-radius:11px;background:#f9fafc}
.av-standalone .av-ledger-summary small,.av-standalone .av-ledger-summary span{color:#6a7791;font-size:11px}
.av-standalone .av-ledger-summary strong{color:#14223b;font-size:18px}
.av-standalone .av-ledger-heading,.av-standalone .av-ledger-totals{display:flex;align-items:center;justify-content:space-between;gap:12px}
.av-standalone .av-ledger-heading span{color:#6a7791;font-size:11px}
.av-standalone .av-ledger-totals{justify-content:flex-end;flex-wrap:wrap;margin:14px 0 0;color:#4a576f;font-size:12px}
.av-standalone .av-ledger-totals b{margin-right:auto;color:#14223b}
@media(max-width:1024px){.av-standalone .av-layout{grid-template-columns:minmax(0,1fr)}.av-standalone .av-main{padding:20px 18px 40px}}
@media(max-width:760px){.av-standalone .av-main{padding:14px 12px 34px}.av-standalone .av-page-head h1{font-size:21px}.av-standalone .av-page-content{gap:12px}.av-standalone .av-page-content .av-panel{padding:15px}.av-standalone .av-page-content .av-form{padding:14px;gap:12px}.av-standalone .av-page-content .av-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px}.av-standalone .av-page-content .av-filter>*{min-width:0;width:100%}.av-standalone .av-ledger-summary{grid-template-columns:1fr 1fr}.av-standalone .av-ledger-summary>div:first-child{grid-column:1/-1}.av-standalone .av-ledger-heading{align-items:flex-start;flex-direction:column}.av-standalone .av-ledger-totals{justify-content:flex-start}.av-standalone .av-ledger-totals b{flex-basis:100%}.av-standalone .av-page-content .av-scroll table{min-width:700px}}
@media(max-width:420px){.av-standalone .av-page-content .av-filter{grid-template-columns:1fr}.av-standalone .av-ledger-summary{grid-template-columns:1fr}.av-standalone .av-ledger-summary>div:first-child{grid-column:auto}.av-standalone .av-ledger-summary strong{font-size:16px}}

/* AV ERP shared design system, matched to the supplied AMARPOS references. */
.av-standalone{--av-blue:#ff9200;--av-soft:#edf0f7;--av-cream:#f0eee8;--av-orange:#ff9200;--av-purple:#1f2e49;--av-green:#002d1d;background:#f0eee8;color:#0e131d;font-family:"Poppins","Segoe UI",Arial,sans-serif}
.av-standalone .av-topbar{height:60px;padding:0 24px 0 272px;background:#fff!important;border:0;border-bottom:1px solid #e8e5e1;box-shadow:0 5px 15px #171f2d12;z-index:50}
.av-standalone .av-wordmark{margin-right:auto;color:#0e131d!important;font-size:16px!important;font-weight:650;letter-spacing:0}
.av-standalone .av-header-alert{width:34px;height:34px;border-radius:50%;background:#e7ecf5;color:#364e7c!important}
.av-standalone .av-desktop-user{color:#0e131d;background:transparent;font-size:13px;font-weight:650}
.av-standalone .av-layout{grid-template-columns:260px minmax(0,1fr);gap:0;min-height:calc(100vh - 60px)}
.av-standalone .av-nav{position:fixed;z-index:51;top:0;left:0;width:260px;height:100vh;padding:64px 12px 108px;background:#1f2e49!important;border-right:0;overflow-y:auto;scrollbar-color:#a6b1c6 #1f2e49;scrollbar-width:thin}
.av-standalone .av-sidebar-heading{position:fixed;z-index:55;top:0;left:0;width:260px;height:64px;padding:0 22px;background:#1f2e49!important;border:0}
.av-standalone .av-sidebar-heading>a{font-size:22px;letter-spacing:-.5px;color:#fff!important;font-weight:750}
.av-standalone .av-sidebar-heading>a b{color:#ff9200!important;font-size:24px}
.av-standalone .av-sidebar-collapse{top:1px;right:-20px;width:28px;height:28px;border-radius:0 0 6px 6px;background:#364e7a;color:#fff;font-size:17px}
.av-standalone .av-nav-user{padding:0 7px 14px;margin:0 0 9px;border-bottom:1px solid #ffffff24}
.av-standalone .av-nav-avatar{background:#ff9200;color:#fff;border-radius:50%}
.av-standalone .av-nav-user strong,.av-standalone .av-nav-user small{color:#fff}
.av-standalone .av-nav-user b{background:#ff9200;color:#fff}
.av-standalone .av-nav-group{margin:6px 0;border-top:1px solid #ffffff20}
.av-standalone .av-nav-group>summary{min-height:40px;padding:10px 10px;color:#fff!important;font-size:13px!important;font-weight:650!important;letter-spacing:0;text-transform:none}
.av-standalone .av-nav-group[open]>summary{color:#fff!important}
.av-standalone .av-nav-group>summary svg{color:#fff}
.av-standalone .av-nav-group>summary:after{content:"⌄";color:#fff}
.av-standalone .av-nav>a,.av-standalone .av-nav-group>a,.av-standalone .av-nav-subgroup>a{min-height:39px;margin:3px 6px;padding:9px 10px;border-radius:6px;color:#fff!important;font-size:13px;font-weight:550;line-height:1.35}
.av-standalone .av-nav-group>a{margin-left:22px}
.av-standalone .av-nav-subgroup>summary{padding:9px 14px;color:#fff;font-size:12px}
.av-standalone .av-nav-subgroup>a{margin-left:28px;font-size:12px}
.av-standalone .av-nav svg{flex:none;color:currentColor}
.av-standalone .av-nav>a:hover,.av-standalone .av-nav-group>a:hover,.av-standalone .av-nav-subgroup>a:hover,.av-standalone .av-nav-group>summary:hover{background:#ffffff18!important;color:#fff!important}
.av-standalone .av-nav a.active,.av-standalone .av-nav a.active:hover{background:#ff9200!important;color:#fff!important;box-shadow:none;font-weight:700}
.av-standalone .av-nav a.active svg{color:#fff}
.av-standalone .av-nav-bottom{position:sticky;bottom:-108px;margin:14px -2px -108px;padding:12px 4px 5px;background:#1f2e49;border-color:#ffffff2a}
.av-standalone .av-nav-bottom a{color:#fff!important}
.av-standalone .av-nav-bottom small{display:block;padding:10px 6px 0;color:#cad3e3}
.av-standalone .av-main{grid-column:2;align-self:stretch;width:auto;min-width:0;margin:0;padding:16px 16px 40px;background:#f0eee8}
.av-standalone .av-page-head{min-height:32px;margin:0 0 12px;padding:0 2px}
.av-standalone .av-page-head h1{color:#0f141c;font-size:20px;font-weight:650;letter-spacing:0}
.av-standalone .av-page-head .av-panel-subtitle{color:#8b8e98!important;font-size:11px}
.av-standalone .av-page-content{display:flex;flex-direction:column;gap:12px;min-width:0}
.av-standalone .av-page-content .av-panel,.av-standalone .av-page-content .av-pos-summary,.av-standalone .av-page-content .av-product-editor,.av-standalone .av-page-content .av-scroll,.av-standalone .av-page-content .av-empty,.av-standalone .av-page-content .av-tracking-results,.av-standalone .av-page-content .av-filter,.av-standalone .av-page-content .av-purchase-products,.av-standalone .av-page-content .av-purchase-summary{border:1px solid #dfe3ea;border-radius:14px;background:#fff;box-shadow:0 4px 12px #13171f12}
.av-standalone .av-page-content .av-panel{padding:16px}
.av-standalone .av-page-content h2{color:#11151e;font-size:16px;font-weight:650;letter-spacing:0}
.av-standalone .av-page-content h3{color:#17243a;font-size:13px;font-weight:650}
.av-standalone .av-page-content p{color:#777e8c;line-height:1.5}
.av-standalone .av-page-content .av-segments,.av-standalone .av-page-content .ref-tabs{width:max-content;max-width:100%;margin:0 0 2px;padding:5px;gap:4px;border:0;border-radius:30px;background:#fff;box-shadow:none}
.av-standalone .av-page-content .av-segments a,.av-standalone .av-page-content .ref-tabs a{min-height:36px;padding:9px 13px;border-radius:22px;background:transparent;color:#0f141c;font-size:12px;font-weight:550}
.av-standalone .av-page-content .av-segments a.active,.av-standalone .av-page-content .ref-tabs a.active{background:#002d1d;color:#fff;box-shadow:none;font-weight:700}
.av-standalone .av-page-content .av-filter{display:flex;align-items:end;flex-wrap:nowrap;gap:8px;margin:0;padding:10px 12px;border-color:#e7e6e8;border-radius:10px;box-shadow:none}
.av-standalone .av-page-content .av-filter label{flex:1 1 150px;min-width:110px;max-width:none;color:#505d76;font-size:11px;font-weight:550}
.av-standalone .av-page-content .av-filter input,.av-standalone .av-page-content .av-filter select{width:100%;min-width:0;min-height:40px;padding:8px 11px;border:1px solid #d3dae8;border-radius:8px;background:#fff;color:#2e3749;font-size:12px}
.av-standalone .av-page-content .av-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:16px;border:1px solid #e0e4eb;border-radius:12px;background:#fff;box-shadow:none}
.av-standalone .av-page-content .av-form>label{width:100%;min-width:0;max-width:none;gap:5px;color:#2e394d;font-size:12px;font-weight:500}
.av-standalone .av-page-content .av-form>label input:not([type=hidden]),.av-standalone .av-page-content .av-form>label select,.av-standalone .av-page-content .av-form>label textarea{width:100%;min-height:41px;padding:8px 11px;border:1px solid #ced6e5;border-radius:8px;background:#fff;color:#2d3647;font-size:12px}
.av-standalone .av-page-content input:focus,.av-standalone .av-page-content select:focus,.av-standalone .av-page-content textarea:focus{outline:2px solid #ff92002a;border-color:#ff9200}
.av-standalone .button,.av-standalone .av-page-content .button{min-height:40px;padding:8px 14px;border:1px solid #d6dce6;border-radius:8px;background:#fff;color:#2e3749;font-size:12px;font-weight:650;box-shadow:0 2px 5px #12151c0a}
.av-standalone .button-primary,.av-standalone .av-page-content .button-primary,.av-standalone .av-page-content .av-create-button,.av-standalone .av-page-content button[type=submit]{background:#ff9200!important;border-color:#ff9200!important;color:#fff!important;box-shadow:0 4px 9px #ff92002b}
.av-standalone .av-page-content .av-scroll{overflow:auto;border-radius:12px}
.av-standalone .av-page-content .av-scroll table{width:100%;min-width:680px;border-collapse:separate;border-spacing:0;background:#fff}
.av-standalone .av-page-content .av-scroll th{position:sticky;top:0;padding:11px 10px;background:#f2f3f6;color:#212937;border:0;border-bottom:1px solid #dce1ea;text-align:center;text-transform:none;letter-spacing:0;font-size:11px;font-weight:700;white-space:nowrap}
.av-standalone .av-page-content .av-scroll td{padding:11px 10px;border:0;border-bottom:1px solid #e5e8ee;color:#141a26;text-align:center;font-size:12px;line-height:1.45}
.av-standalone .av-page-content .av-scroll tr:last-child td{border-bottom:0}
.av-standalone .av-page-content .av-scroll tr:hover td{background:#fffbf4}
.av-standalone .av-page-content .av-scroll td a:not(.button){color:#283a5b;text-decoration:none;font-weight:550}
.av-standalone .av-page-content .av-scroll .button{min-height:32px;padding:6px 10px}
.av-standalone .av-page-content .av-pager{justify-content:center;margin-top:12px}
.av-standalone .av-product-toolbar{display:flex;align-items:center;gap:8px;margin:0}
.av-standalone .av-product-filters{display:flex;flex:1;min-width:0;gap:8px}
.av-standalone .av-product-filters input,.av-standalone .av-product-filters select{min-height:40px;border:1px solid #d3dae8;border-radius:8px;background:#fff;font-size:12px}
.av-standalone .av-list-icon{width:42px;height:40px;border:0;border-radius:9px;background:#fff;box-shadow:0 3px 8px #141a2514}
.av-standalone .av-list-icon svg{width:18px;height:18px}
.av-standalone .av-stock-heading-totals{border:0;border-radius:10px;background:#fff;box-shadow:0 3px 8px #141a2514}
.av-standalone .av-stock-heading-totals b{color:#0f141c}
.av-standalone .av-dashboard-grid .av-sales-gauge{border-top-color:#ff9200;border-left-color:#ff9200}
.av-standalone .av-dashboard-grid .av-dashboard-link{color:#30456d!important}
.av-standalone .av-dashboard-grid .av-pos-icon,.av-standalone .av-dashboard-grid .av-quick-grid a>span{background:#edf0f7;color:#364e7c}
.av-standalone .av-dashboard-grid .av-sales-breakdown>div:before{background:#ff9200}
.av-standalone .av-dashboard-grid .av-sales-breakdown>div:nth-child(2):before{background:#364e7c}
.av-standalone .av-dashboard-grid .av-sales-breakdown>div:nth-child(3):before{background:#f2b142}
.av-standalone .av-ledger-summary>div{border-color:#e2e5eb;background:#f8faff}
.av-standalone .av-ledger-summary strong{color:#1e2b43}
.av-standalone .av-purchase-search-box .ref-search:focus-within{border-color:#ff9200}
.av-standalone .av-page-content .ref-sale{grid-template-columns:minmax(0,1fr) 390px;gap:12px}
.av-standalone .av-page-content .ref-sale .ref-billing{position:sticky;top:72px;max-height:calc(100vh - 84px);overflow-y:auto;border:1px solid #dfe3ea;border-radius:12px;background:#fff;box-shadow:0 4px 12px #13171f12}
.av-standalone .av-page-content .ref-sale .ref-search input{border-color:#ff9200}
.av-standalone .av-page-content .ref-sale .ref-primary,.av-standalone .av-page-content .ref-sale button[type=submit]{background:#ff9200!important;border-color:#ff9200!important;color:#fff!important}
.av-standalone .av-serial-search{max-width:1280px;width:100%;margin:24px auto 12px;padding:20px 24px;border:1px solid #dfe3ea;border-radius:14px;background:#fff;box-shadow:0 5px 14px #13171f16}
.av-standalone .av-serial-search h2{padding-bottom:10px;border-bottom:1px solid #ff9200;color:#ff7e00;font-size:21px}
.av-standalone .av-serial-search form{display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:12px}
.av-standalone .av-serial-search input{width:100%;min-height:42px;border:1px solid #ced6e5;border-radius:8px}
.av-standalone .av-serial-search .av-create-button{grid-column:1/-1;justify-self:center;min-width:140px;min-height:46px}
.av-standalone .av-serial-search p{margin-bottom:0}
.av-standalone .av-notice,.av-standalone .notice{border-radius:10px}
@media(max-width:1200px){.av-standalone .av-layout{grid-template-columns:260px minmax(0,1fr)}.av-standalone .av-main{padding:15px}.av-standalone .av-page-content .ref-sale{grid-template-columns:minmax(0,1fr) 350px}}
@media(max-width:1024px){.av-standalone .av-topbar{padding:0 16px 0 64px}.av-standalone .av-nav{top:0;z-index:60;width:min(84vw,330px);height:100dvh;padding:18px 14px;transform:translateX(-105%);transition:transform .2s ease}.av-standalone .av-nav.is-open{transform:translateX(0)}.av-standalone .av-sidebar-heading{display:none}.av-standalone .av-nav-user{padding-top:6px}.av-standalone .av-nav-bottom{position:static;margin:14px 0 0;padding:12px 4px;background:transparent}.av-standalone .av-main{grid-column:auto;padding:16px}.av-standalone .av-menu-toggle{display:flex;background:#edf0f7;color:#364e7c}.av-standalone .av-page-content .ref-sale{grid-template-columns:minmax(0,1fr)}.av-standalone .av-page-content .ref-sale .ref-billing{position:static;max-height:none}}
@media(max-width:760px){.av-standalone .av-topbar{height:58px;padding:0 12px 0 54px;gap:8px}.av-standalone .av-wordmark{font-size:14px!important}.av-standalone .av-desktop-user{display:none}.av-standalone .av-main{padding:12px 10px 30px}.av-standalone .av-page-head{min-height:34px}.av-standalone .av-page-head h1{font-size:18px}.av-standalone .av-page-content{gap:10px}.av-standalone .av-page-content .av-segments,.av-standalone .av-page-content .ref-tabs{width:100%;overflow-x:auto}.av-standalone .av-page-content .av-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.av-standalone .av-page-content .av-filter>*{min-width:0;width:100%;max-width:none}.av-standalone .av-page-content .av-filter label{min-width:0}.av-standalone .av-page-content .av-form{grid-template-columns:minmax(0,1fr);padding:13px}.av-standalone .av-page-content .av-form>*{grid-column:1/-1;min-width:0}.av-standalone .av-product-toolbar{flex-wrap:wrap}.av-standalone .av-product-filters{flex:1 1 100%;flex-wrap:wrap}.av-standalone .av-product-filters>*{flex:1 1 140px;min-width:0}.av-standalone .av-serial-search{margin:8px 0;padding:15px}.av-standalone .av-serial-search form{grid-template-columns:minmax(0,1fr)}.av-standalone .av-serial-search .av-create-button{grid-column:1}.av-standalone .av-page-content .av-scroll table{min-width:720px}.av-standalone .av-page-content .av-purchase-app .av-purchase-grid{grid-template-columns:minmax(0,1fr)}.av-standalone .av-page-content .av-purchase-summary{position:static;max-height:none}.av-standalone .av-ledger-summary{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.av-standalone .av-page-content .av-filter{grid-template-columns:minmax(0,1fr)}.av-standalone .av-page-content .av-segments a,.av-standalone .av-page-content .ref-tabs a{padding:8px 10px;font-size:11px}.av-standalone .av-ledger-summary{grid-template-columns:minmax(0,1fr)}.av-standalone .av-ledger-summary>div:first-child{grid-column:auto}}
@media(min-width:1025px) and (max-width:1200px){.av-standalone .av-topbar{margin-left:260px;padding:0 20px}}
@media(min-width:1025px){.av-sidebar-collapsed.av-standalone .av-topbar{padding-left:88px}}
.av-standalone .av-main:has(.av-pnl-report){min-height:0;background:#f0eee8;color:#0e131d}
.av-standalone .av-main:has(.av-pnl-report) .av-title h1{color:#0f141c}
.av-standalone .av-main:has(.av-pnl-report) .av-page-content{gap:12px}
.av-standalone .av-main:has(.av-pnl-report) .av-pnl-report{color:#0e131d}
.av-standalone .av-page-content .av-pnl-box,.av-standalone .av-page-content .av-pnl-result{border-color:#dfe3ea;border-radius:12px;background:#fff;box-shadow:0 4px 12px #13171f12}
.av-standalone .av-page-content .av-pnl-box h2,.av-standalone .av-page-content .av-pnl-total,.av-standalone .av-page-content .av-pnl-result b{color:#1a253b}
.av-standalone .av-page-content .av-pnl-row,.av-standalone .av-page-content .av-pnl-row:nth-of-type(even){background:#f8faff;color:#212937}

/* Consistent create/search bars across ERP lists */
.av-standalone .av-create-toolbar{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 12px;min-width:0}
.av-standalone .av-create-button,.av-standalone .av-create-toolbar>.av-inline-create>summary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 18px;border:1px solid #ff9200;border-radius:9px;background:#ff9200;color:#fff!important;font-size:13px;font-weight:650;line-height:1.25;text-decoration:none;white-space:nowrap;box-shadow:0 4px 9px #ff92002b;cursor:pointer}
.av-standalone .av-page-content .button-primary{background:#ff9200!important;border-color:#ff9200!important;color:#fff!important;box-shadow:0 4px 9px #ff92002b}
.av-standalone .av-create-toolbar>.av-inline-create{position:relative;flex:none}
.av-standalone .av-create-toolbar>.av-inline-create>summary{list-style:none}
.av-standalone .av-create-toolbar>.av-inline-create>summary::-webkit-details-marker{display:none}
.av-standalone .av-create-toolbar>.av-inline-create>summary::before{content:"＋";font-size:17px;line-height:1}
.av-standalone .av-create-toolbar>.av-inline-create>summary svg{display:none}
.av-standalone .av-inline-create-panel{position:absolute;z-index:30;top:calc(100% + 8px);left:0;width:min(440px,calc(100vw - 32px));padding:12px;border:1px solid #e2e6ed;border-radius:12px;background:#fff;box-shadow:0 10px 30px #13171f24}
.av-standalone .av-inline-create-panel .av-form{margin:0}
.av-standalone .av-toolbar-search{display:flex;flex:1;min-width:0;margin:0}
.av-standalone .av-toolbar-search input{width:100%;min-width:0;min-height:40px;padding:8px 12px;border:1px solid #d5dbe5;border-radius:9px;background:#fff;color:#1d222d;font-size:13px}
.av-standalone .av-toolbar-search input:focus{outline:3px solid #ff920020;border-color:#ff9200}
.av-standalone .av-product-toolbar>.av-create-button{flex:none;min-width:130px}
.av-standalone .av-product-toolbar .av-product-filters{flex:1}
@media(max-width:600px){.av-standalone .av-create-toolbar{flex-wrap:wrap}.av-standalone .av-create-toolbar>.av-inline-create{flex:0 0 auto}.av-standalone .av-toolbar-search{flex:1 1 100%;order:2}.av-standalone .av-product-toolbar>.av-create-button{flex:1 1 100%;min-width:0}.av-standalone .av-product-toolbar .av-product-filters{flex:1 1 100%}}
.av-standalone .av-page-content .av-pnl-location>span{background:#ff9200}
.av-standalone .av-page-content .av-pnl-toolbar select,.av-standalone .av-page-content .av-pnl-toolbar input{border-color:#d3dae8;border-radius:8px;background:#fff;color:#212937}
.av-standalone .av-page-content .av-pnl-result{flex-wrap:wrap;justify-content:flex-start;align-items:stretch}
.av-standalone .av-page-content .av-pnl-result>div{flex:1 1 135px;min-width:0;overflow-wrap:anywhere}
.av-standalone .av-page-content .av-empty{min-height:120px;display:grid;place-content:center;text-align:center;color:#9296a1}
.av-standalone .av-page-content .notice{padding:12px 15px;border:1px solid #f3d09b;border-radius:10px;background:#fff9ef;color:#684800}
@media(max-width:760px){.av-standalone .av-main:has(.av-pnl-report){padding:12px 10px 30px}.av-standalone .av-page-content .av-pnl-toolbar{flex-wrap:wrap;justify-content:flex-start}.av-standalone .av-page-content .av-pnl-dates{flex-wrap:wrap}}

/* Report graphs: compact dashboard cards with responsive, data-scaled bars. */
.av-report-dashboard{margin:16px 0 20px;padding:20px;border:1px solid #e4e9f3;border-radius:18px;background:#fff;box-shadow:0 5px 18px #283a5b0b;color:#1e293f;}
.av-report-dashboard-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 16px;padding:0;border:0;background:none;}
.av-report-dashboard-heading p{margin:0 0 5px;color:#7b95c6;font-size:10px;font-weight:800;letter-spacing:.12em;}
.av-report-dashboard-heading h2{margin:0 0 5px;color:#1c273d;font-size:18px;line-height:1.3;}
.av-report-dashboard-heading span{color:#687a9c;font-size:12px;line-height:1.5;}
.av-report-range{flex:none;padding:7px 10px;border-radius:20px;background:#f2f4f9;color:#506183!important;font-size:11px!important;font-weight:700;}
.av-report-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px;}
.av-report-stat{position:relative;display:flex;min-width:0;min-height:76px;flex-direction:column;justify-content:center;gap:7px;padding:12px 14px 12px 17px;overflow:hidden;border-radius:12px;background:#f6f8fc;}
.av-report-stat:before{position:absolute;top:12px;bottom:12px;left:0;width:4px;border-radius:0 5px 5px 0;background:var(--av-chart-color,#7b95c6);content:"";}
.av-report-stat small{overflow:hidden;color:#697a9b;font-size:11px;text-overflow:ellipsis;white-space:nowrap;}
.av-report-stat strong{overflow:hidden;color:#1f2c45;font-size:18px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap;}
.av-report-stat-muted:before{background:#a0acc3}.av-report-stat-muted strong{font-size:17px}
.av-report-plot{padding:14px 16px 8px;border:1px solid #eceff5;border-radius:14px;background:linear-gradient(135deg,#fcfdfe,#f8faff);}
.av-report-legend{display:flex;flex-wrap:wrap;gap:8px 17px;margin:0 0 10px;}
.av-report-legend span{display:inline-flex;align-items:center;gap:6px;color:#5b6c8d;font-size:11px;}
.av-report-legend i{width:9px;height:9px;border-radius:50%;background:var(--av-chart-color,#7b95c6);}
.av-report-bars{display:grid;gap:3px;}
.av-report-bar-group{display:grid;grid-template-columns:minmax(110px,23%) minmax(0,1fr);align-items:center;gap:14px;min-height:38px;padding:5px 0;border-top:1px solid #eceff5;}
.av-report-bar-label{overflow:hidden;color:#394865;font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap;}
.av-report-bar-lines{display:grid;gap:4px;min-width:0;}
.av-report-bar-line{display:grid;grid-template-columns:minmax(28px,1fr) minmax(80px,19%);align-items:center;gap:9px;min-width:0;}
.av-report-bar-track{display:block;height:9px;overflow:hidden;border-radius:20px;background:#e9edf4;}
.av-report-bar-track i{display:block;height:100%;min-width:3px;border-radius:20px;background:var(--av-chart-color,#7b95c6);}
.av-report-bar-track i.is-negative{background:#e5485d;}
.av-report-bar-line b{overflow:hidden;color:#2a3956;font-size:10px;font-weight:700;text-align:right;text-overflow:ellipsis;white-space:nowrap;}
.av-report-chart-note{margin:9px 2px 0;color:#7988a5;font-size:10px;line-height:1.45;}
.av-report-empty{padding:24px 12px;border-radius:12px;background:#f8f9fb;color:#687a9c;text-align:center;font-size:13px;}
.av-standalone .av-report-dashboard{border-color:#e4e9f3;background:#fff;box-shadow:0 4px 16px #2e3e5b10;}
.av-standalone .av-report-plot{background:linear-gradient(135deg,#fcfdfe,#f6f8fc);}
@media(max-width:800px){.av-report-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.av-report-dashboard{padding:15px}.av-report-dashboard-heading{gap:10px}.av-report-range{font-size:10px!important}}
@media(max-width:520px){.av-report-dashboard{margin:12px 0 16px;padding:13px;border-radius:14px}.av-report-dashboard-heading{flex-direction:column;gap:7px}.av-report-range{align-self:flex-start}.av-report-stat-grid{gap:7px}.av-report-stat{min-height:66px;padding:10px 10px 10px 14px}.av-report-stat strong{font-size:15px}.av-report-plot{padding:11px 9px 7px}.av-report-bar-group{grid-template-columns:minmax(72px,30%) minmax(0,1fr);gap:8px}.av-report-bar-label{font-size:10px}.av-report-bar-line{grid-template-columns:minmax(20px,1fr) minmax(63px,31%);gap:6px}.av-report-bar-line b{font-size:9px}}

@media(max-width:420px){.av-standalone .av-page-content .av-pnl-result>div{flex-basis:calc(50% - 16px)}}
/* Keep the invoice workspace full-width; the generic product-detail max-width caused the narrow centered layout. */
.av-standalone.av-route-pos .av-page-content>.ref-sale,.av-standalone .av-page-content>.ref-sale{width:100%;max-width:none;margin:0;grid-template-columns:minmax(0,1fr) minmax(340px,390px);}
.av-standalone.av-route-pos .av-page-content>.ref-sale>.ref-sale-stage,.av-standalone .av-page-content>.ref-sale>.ref-sale-stage{width:100%;max-width:none;min-width:0}
.av-standalone .av-page-content>.ref-sale .ref-empty-cart{min-height:220px}
@media(max-width:1024px){.av-standalone.av-route-pos .av-page-content>.ref-sale,.av-standalone .av-page-content>.ref-sale{grid-template-columns:minmax(0,1fr)}}
.av-standalone .av-record-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}
.av-standalone .av-pending-decision{display:inline-flex;margin:0}
.av-standalone .av-pending-decision .av-approve{background:#ff9200!important;border-color:#ff9200!important;color:#fff!important}
.av-standalone .av-pending-decision .av-reject{background:#fff;border-color:#e4bfc2;color:#a52b36}
.av-standalone .av-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.av-standalone .av-dashboard-grid>.av-desktop-dashboard{grid-column:1/-1;width:100%;max-width:none;min-width:0}
.av-standalone.av-route-pos .ref-source-chips{max-width:540px}
.av-standalone.av-route-pos .ref-source-chips label{min-width:0}
.av-standalone .av-desktop-dashboard,.av-standalone .av-desktop-dashboard>header,.av-standalone .av-desktop-dashboard>section{width:100%;max-width:none;box-sizing:border-box}
.av-standalone .av-dashboard-grid>.av-sales-summary{grid-column:1/-1;grid-row:auto;min-height:190px;border-left:4px solid #6784bc}
.av-standalone .av-dashboard-grid>.av-pos-summary{min-width:0;border-radius:14px;background:#fff;box-shadow:0 4px 12px #13171f12}
.av-standalone .av-dashboard-grid>.av-mobile-quick-access,.av-standalone .av-dashboard-grid>.av-mobile-low-stock{grid-column:1/-1}
.av-standalone .av-dashboard-grid .av-sales-gauge{border-color:#ff9200 #e6eaf1 #e6eaf1 #ff9200;color:#222}
.av-standalone .av-dashboard-grid .av-sales-gauge strong{color:#1f2c46}
.av-standalone .av-dashboard-grid .av-flow-grid>div,.av-standalone .av-dashboard-grid .av-expense-grid>div{border-color:#e5e9f0;border-radius:11px;background:#fafbfc}
.av-standalone .av-dashboard-grid .av-quick-grid a{border:1px solid #e1e5ed;border-radius:11px;background:#fff}
@media(max-width:760px){.av-standalone .av-dashboard-grid{grid-template-columns:minmax(0,1fr)}.av-standalone .av-dashboard-grid>.av-mobile-quick-access,.av-standalone .av-dashboard-grid>.av-mobile-low-stock{grid-column:1}}
.av-own-profile{max-width:760px;padding:24px}.av-own-profile>p{color:#6d81a6}.av-own-profile .av-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.av-own-profile .av-form label{display:grid;gap:6px;font-size:13px}.av-own-profile .av-form input:not([type=file]){min-height:42px;width:100%;box-sizing:border-box}.av-own-profile .av-form input[type=file]{padding:10px;background:#f8faff;border:1px solid #d7deec;border-radius:7px}.av-own-profile .av-form small{display:block;color:#667aa1;font-size:11px;margin-top:3px}.av-own-profile .av-profile-picture,.av-own-profile .av-profile-id,.av-own-profile .av-form>.button-primary{grid-column:1/-1}.av-own-profile .av-profile-picture{width:84px;height:84px;border-radius:50%;overflow:hidden;background:#e6ebf4;color:#2f436a;display:grid;place-items:center;font-size:32px;font-weight:700}.av-own-profile .av-profile-picture img{width:100%;height:100%;object-fit:cover}.av-own-profile .av-form>.button-primary{min-height:44px;justify-self:start;padding:0 22px;background:#ff9500;border:0;border-radius:7px;color:#fff}.av-profile-id{font-size:12px;color:#5d7095}.av-profile-id strong{font-size:14px;color:#1c273c}@media(max-width:640px){.av-own-profile{padding:16px}.av-own-profile .av-form{grid-template-columns:1fr}}
.av-letter-workspace{display:grid;grid-template-columns:minmax(300px,430px) minmax(420px,1fr);gap:22px;align-items:start}.av-letter-editor{background:#fff;border:1px solid #e1e6ef;border-radius:13px;padding:22px;box-shadow:0 3px 12px #1822350c}.av-letter-editor h2{margin:0 0 6px;color:#1d273a}.av-letter-editor>p,.av-letter-preview-wrap>.av-muted{color:#6d81a6;font-size:13px}.av-letter-form{display:grid;gap:13px}.av-letter-form label{display:grid;gap:6px;color:#22314c;font-size:13px}.av-letter-form input,.av-letter-form textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #d3dbeb;border-radius:7px;padding:10px 11px;font:inherit;background:#fff}.av-letter-form textarea{resize:vertical;line-height:1.5}.av-letter-form small{color:#6a7ea3;font-size:11px}.av-letter-signatory{display:grid;grid-template-columns:1fr 1fr;gap:12px}.av-letter-actions{display:flex;gap:10px;flex-wrap:wrap}.av-letter-actions .button{min-height:42px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center}.av-letter-actions .button-primary{background:#ff9500;border-color:#ff9500;color:#fff}.av-letter-preview-wrap{position:sticky;top:68px;min-width:0}.av-letter-preview{position:relative;width:min(100%,690px);aspect-ratio:210/297;margin:auto;background-image:var(--letterhead);background-size:100% 100%;background-repeat:no-repeat;box-shadow:0 6px 22px #18223525;border:1px solid #dee2eb}.av-letter-mask{position:absolute;left:0;right:0;top:20.9%;bottom:8.2%;background:#fff}.av-letter-preview-content{position:absolute;left:12%;right:12%;top:21.5%;bottom:10.1%;overflow:hidden;color:#242424;font-family:Arial,sans-serif;font-size:clamp(7px,1.05vw,12px);line-height:1.45}.av-letter-meta{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #bbb;padding-bottom:1.7%;font-size:.92em}.av-letter-heading{text-align:center;margin:5% 0 4%}.av-letter-heading h2{margin:0 0 1%;font-size:1.6em;text-transform:uppercase;color:#1c1c1c}.av-letter-heading p{margin:0 0 1%;font-weight:700}.av-letter-heading b{display:block;text-align:left;margin-top:4%;font-size:1em}.av-letter-preview-body p{margin:0 0 3%;text-align:justify;white-space:pre-wrap}.av-letter-preview-sign{margin-top:4%;display:grid;justify-items:start;gap:1%;font-size:.9em}.av-letter-preview-sign span{margin-bottom:5%}.av-letter-preview-sign strong{border-top:1px solid #777;padding-top:1%;min-width:35%}.av-letter-preview-sign small{color:#555}@media(max-width:950px){.av-letter-workspace{grid-template-columns:minmax(0,1fr)}.av-letter-preview-wrap{position:static;grid-row:1}.av-letter-preview{width:min(100%,590px)}}@media(max-width:560px){.av-letter-editor{padding:15px}.av-letter-signatory{grid-template-columns:1fr}.av-letter-preview-content{font-size:7px}}
.av-standalone .av-page-content .av-staff-wide{grid-column:1/-1}
.av-standalone .av-page-content details.av-panel>summary{cursor:pointer;font-weight:650;color:#1a253b}
.av-standalone .av-page-content details.av-panel>summary::marker{color:#ff9200}
.av-standalone .av-page-content .av-scroll td .button{margin:2px;white-space:nowrap}
/* Letter pad preview follows a standard left-aligned business letter. */
.av-standalone .av-page-content .av-letter-mask{display:none}
.av-standalone .av-page-content .av-letter-preview-content{left:12%;right:12%;top:21.5%;bottom:9.5%;overflow:auto;color:#222;font-family:Arial,sans-serif;font-size:clamp(8px,1vw,11px);line-height:1.42;text-align:left}
.av-standalone .av-page-content .av-letter-preview-content [hidden]{display:none!important}
.av-standalone .av-page-content .av-letter-preview-content p{margin:0 0 1.5%}
.av-standalone .av-page-content .av-letter-preview-content .av-preview-date{margin-bottom:5%}
.av-standalone .av-page-content .av-preview-recipient{margin-bottom:4%}
.av-standalone .av-page-content .av-preview-recipient p{margin:0 0 .6%}
.av-standalone .av-page-content .av-letter-preview-content .av-preview-subject{margin-bottom:1%}
.av-standalone .av-page-content .av-letter-preview-content .av-preview-reference{margin-bottom:4%}
.av-standalone .av-page-content .av-letter-preview-content .av-preview-salutation{margin-bottom:4%}
.av-standalone .av-page-content .av-letter-preview-body p{margin:0 0 3%;text-align:left;white-space:pre-wrap}
.av-standalone .av-page-content .av-letter-preview-sign{display:block;margin-top:5%;font-size:1em}
.av-standalone .av-page-content .av-letter-preview-sign p{margin-bottom:0}
.av-standalone .av-page-content .av-preview-sign-gap{height:8%}
.av-standalone .av-page-content .av-letter-preview-sign strong{display:block;min-width:0;border:0;padding:0;font-size:1em}
.av-standalone .av-page-content .av-letter-preview-sign small{display:block;margin-top:.5%;font-size:.9em}
.av-standalone .av-page-content .av-preview-attachments{margin-top:5%}
.av-standalone .av-page-content .av-preview-attachments p{margin-bottom:1%}
.av-standalone .av-page-content .av-preview-attachments ol{margin:0;padding-left:5%}
.av-standalone .av-page-content .av-letter-wide{grid-column:1/-1}
.av-letter-save{background:#1a253b!important;border-color:#1a253b!important;color:#fff!important}
.av-letter-save-notice{margin:10px 0;padding:10px 12px;border:1px solid #b3c4e5;border-radius:8px;background:#eff3fa;color:#176b35;font-size:13px;font-weight:650}
.av-letter-saved{margin-top:20px;padding:20px;background:#fff;border:1px solid #e1e6ef;border-radius:13px;box-shadow:0 3px 12px #1822350c}
.av-letter-saved h3{margin:0 0 14px;color:#1d273a}
.av-letter-saved-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.av-letter-saved-item{display:grid;gap:5px;min-width:0;padding:13px 15px;border:1px solid #e0e5ef;border-radius:9px;background:#fcfcfd;color:#22314d;text-decoration:none}
.av-letter-saved-item:hover{border-color:#ff9500;box-shadow:0 3px 10px #18223515}
.av-letter-saved-item span,.av-letter-saved-item small{color:#667ba2;font-size:12px;overflow-wrap:anywhere}
.av-letter-saved-item small{color:#e77e00;font-weight:650}

/* Mobile reference system shared by every ERP section. */
@media(max-width:1024px){
.av-standalone{--av-blue:#006b45;--av-soft:#e3e9f3;background:#f8f7f2;color:#111;font-family:Arial,-apple-system,BlinkMacSystemFont,sans-serif;font-size:14px}
.av-standalone .av-main{padding:14px 20px 100px!important;width:100%;min-width:0}
.av-standalone .av-layout{display:block!important;min-width:0}
.av-standalone .av-topbar{height:90px;padding:12px 18px;background:#f8f7f2!important;border:0;box-shadow:none;display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:10px}
.av-standalone .av-wordmark{font-size:23px!important;font-weight:400!important;text-align:center;letter-spacing:0;line-height:1.2;color:#080808!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.av-standalone .av-menu-toggle{display:flex!important;background:none;color:#111;border-radius:0;width:36px;height:42px}
.av-menu-toggle svg,.av-header-alert svg{width:26px;height:26px}.av-standalone .av-header-alert{background:none;color:#333;padding:5px}
.av-desktop-user,.av-topbar-user,.av-today,.av-wordmark small,.av-standalone .av-title,.av-panel-subtitle{display:none!important}
.av-standalone .av-nav{background:#1f2d47!important;color:#fff;width:82vw;max-width:340px;padding:24px 16px;top:0;height:100dvh;border:0;border-radius:0;z-index:70}
.av-standalone .av-nav a,.av-standalone .av-nav-group summary{color:#fff!important;font-size:16px!important;padding:15px 16px;border-radius:14px;gap:14px}
.av-standalone .av-nav svg{color:#8c9fc3;width:23px;height:23px}.av-standalone .av-nav a.active{background:#3f4f6d!important;color:#ff9500!important}
.av-nav-user{padding:28px 12px;border-bottom:1px solid #8c9fc3}.av-nav-user strong{font-size:20px}.av-nav-user small{color:#ff9500}.av-nav-avatar{width:50px;height:50px;border-radius:50%}
.av-standalone .av-panel,.av-standalone .av-card,.av-sales-summary,.av-flow-grid,.av-expense-grid,.av-quick-grid,.av-low-list,.av-product-card,.ref-sale-card,.ref-cart-card{background:#fff;border:0!important;border-radius:22px!important;box-shadow:none!important;padding:18px;margin-bottom:12px}
.av-standalone .av-main h2{font-size:20px;font-weight:400;color:#082c1e}
.av-standalone .ref-tabs,.av-standalone .av-segments{display:flex;width:100%;padding:4px;background:#fff;border-radius:40px;gap:3px;margin:0 0 12px;overflow-x:auto}
.av-standalone .ref-tabs a,.av-standalone .av-segments a{flex:1;min-width:0;text-align:center;border:0;border-radius:32px;padding:10px 9px;font-size:15px;white-space:nowrap;color:#111!important}
.av-standalone .ref-tabs a.active,.av-standalone .av-segments a.active{background:#006b45!important;color:#fff!important}
.av-standalone input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.av-standalone select,.av-standalone textarea{border:1px solid #d8dfed;border-radius:10px;min-height:48px;font-size:16px;padding:13px;background:#fff;color:#222}
.av-standalone input:focus,.av-standalone select:focus,.av-standalone textarea:focus{outline:none;border-color:#ff9500;box-shadow:0 0 0 1px #ff9500}
.av-standalone label{font-size:14px;color:#006b45}.av-standalone .button-primary,.av-standalone .ref-primary{background:#006b45!important;color:#fff!important;border:0;border-radius:32px;min-height:48px}
.av-standalone .av-create-button,.av-standalone .ref-orange{background:#ff9500!important;color:#fff!important;border:0;border-radius:32px;min-height:46px}
.av-standalone .av-filter{background:#fff;border:0;border-radius:22px;padding:14px;gap:10px}.av-standalone .av-filter label{max-width:none;flex:1 1 140px}
.av-standalone .av-form{gap:14px}.av-standalone .av-scroll{max-width:100%;border-radius:18px;overflow-x:auto}.av-standalone .av-scroll th,.av-standalone .av-scroll td{padding:12px;font-size:13px}
.av-product-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.av-product-card{padding:16px!important}.av-product-copy h2{font-size:17px!important;font-weight:600!important;color:#080808!important;line-height:1.5}.av-product-image{border-radius:12px;background:#eee}.av-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.av-price-grid>div{border:1px solid #e2e8f2;border-radius:9px;padding:9px;background:#f4f6fa;color:#607fb9}.av-price-grid>div:nth-child(2){background:#fff7eb;border-color:#f8e1c5;color:#dc7900}.av-price-grid>div:nth-child(3){background:#edfcf5;border-color:#cceee1;color:#009966}
.ref-source-chips{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:12px}.ref-source-chips span{font-size:13px!important;padding:12px 5px!important;border-radius:9px!important}.ref-search{border-radius:12px!important;min-height:49px;background:#fff}.ref-cart{grid-template-columns:minmax(0,1fr)}.ref-cart-values{grid-template-columns:1.3fr .9fr 1.3fr;gap:10px}.ref-cart-values label{font-size:13px}.ref-dock{left:20px!important;right:20px!important;bottom:18px;padding:0;background:#f8f7f2}.ref-dock .ref-primary{border-radius:40px!important}.ref-hold{border-radius:18px!important}
.av-quick-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 8px}.av-quick-grid a{text-align:center;background:none!important;color:#707070!important;border:0!important;padding:12px 2px!important;font-size:12px}.av-quick-grid a>span svg{display:block;box-sizing:content-box;width:22px;height:22px;padding:0;margin:0;background:transparent;color:#155eef;stroke:currentColor}.av-sales-summary{width:100%;margin-top:0}.av-summary-body{gap:16px}.av-flow-grid,.av-expense-grid{width:100%}.av-low-list>article{border:1px solid #fac4c4;border-radius:15px;padding:12px;margin:12px 0;background:#fff}.av-stock-warning{color:#ee3939;background:#fcecec;border-radius:12px;padding:10px}
}

/* Unified mobile component rules derived from AV reference screens. */
@media(max-width:1024px){
 .av-standalone .av-erp,.av-standalone .av-main,.av-standalone .av-layout{max-width:none!important;width:100%!important;min-width:0!important}
 .av-standalone .av-main{overflow-x:hidden}
 .av-standalone .av-main>section,.av-standalone .av-main>.av-panel,.av-standalone .av-main>.av-pos-summary,.av-standalone .av-main>.av-card{width:100%;max-width:none;margin:0 0 12px!important;padding:18px!important;background:#fff;border:0;border-radius:22px;box-shadow:none}
 .av-standalone .av-main h1,.av-standalone .av-main h2,.av-standalone .av-main h3{color:#062e20;font-weight:500;letter-spacing:0}
 .av-standalone .av-main h1{font-size:24px;margin:0 0 16px}
 .av-standalone .av-main h2{font-size:20px;margin:0 0 14px}
 .av-standalone .av-main h3{font-size:17px;margin:0 0 12px}
 .av-standalone .av-title{display:block!important;margin:0 0 12px!important}
 .av-standalone .av-title h1{display:none}
 .av-standalone .av-title p{display:none}
 .av-standalone .av-main nav.ref-tabs,.av-standalone .av-main .av-segments{max-width:100%;box-shadow:none}
 .av-standalone .av-main .av-filter,.av-standalone .av-main form.av-filter{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:none;margin:12px 0;padding:16px;background:#fff;border:0;border-radius:22px}
 .av-standalone .av-filter label{width:100%;max-width:none}
 .av-standalone .av-form{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:none}
 .av-standalone .av-form .av-wide,.av-standalone .av-form .av-staff-wide{grid-column:1/-1}
 .av-standalone .av-main button:not(.av-menu-toggle):not(.ref-hold),.av-standalone .av-main a.button{min-height:44px;border-radius:14px}
 .av-standalone .av-main .button-primary,.av-standalone .av-main .av-create-button,.av-standalone .av-main .ref-primary{font-weight:600}
 .av-standalone .av-main .av-list-exports{display:flex;gap:8px}
 .av-standalone .av-main .av-list-icon{width:48px;height:48px;border-radius:50%;box-shadow:none;background:#f4f5f8}
 .av-standalone .av-main .av-scroll{width:100%;overflow:auto;border:0;background:#fff}
 .av-standalone .av-main table{min-width:620px}
 .av-standalone .av-main .av-pager{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
 .av-standalone .av-main .av-product-toolbar{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
 .av-standalone .av-main .av-product-filters{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
 .av-standalone .av-main .av-product-card{width:100%;min-width:0}
 .av-standalone .av-main .av-sales-summary header{display:flex;align-items:center;justify-content:space-between;gap:8px}
 .av-standalone .av-main .av-summary-body{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;gap:12px}
 .av-standalone .av-main .av-sales-gauge{min-width:0;max-width:100%}
 .av-standalone .av-main .av-sales-breakdown{min-width:0}
 .av-standalone .av-main .av-flow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .av-standalone .av-main .av-expense-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .av-standalone .av-main .av-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 4px}
 .av-standalone .av-main .av-quick-grid>a{min-width:0;overflow-wrap:anywhere}
 .av-standalone .av-main .av-low-list article{display:flex;justify-content:space-between;align-items:center;gap:10px}
 .av-standalone .av-main .av-low-list article>div{min-width:0}
 .av-standalone .av-main .av-low-list strong{display:block;overflow-wrap:anywhere}
 .av-standalone .av-main .av-dash-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .av-standalone .av-main .av-dash-shortcuts>a{min-width:0;overflow-wrap:anywhere}
 .av-standalone .av-main .av-lines,.av-standalone .av-main .av-purchase-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .av-standalone .av-main .av-product-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:420px){
 .av-standalone .av-topbar{grid-template-columns:34px minmax(0,1fr) 34px;padding:8px 12px;gap:6px}
 .av-standalone .av-wordmark{font-size:20px!important}
 .av-standalone .av-main{padding-left:12px!important;padding-right:12px!important}
 .av-standalone .av-main>.av-panel,.av-standalone .av-main>.av-pos-summary,.av-standalone .av-main>.av-card{padding:15px!important;border-radius:20px}
 .av-standalone .av-main .av-summary-body{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:10px}
 .av-standalone .av-main .av-sales-gauge{min-height:0}
 .av-standalone .av-main .av-flow-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Keep the content canvas warm and let the centered mobile header carry the page title. */
@media(max-width:1024px){
 .av-standalone .av-main>section.av-page-content{display:block;width:100%;max-width:none;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
 .av-standalone .av-title{display:none!important}
 .av-standalone .av-main .av-product-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
 .av-standalone .av-main .av-product-toolbar>.av-create-button{flex:0 0 auto}
 .av-standalone .av-main .av-product-filters{display:flex;flex:1 1 100%;flex-wrap:wrap;gap:8px}
 .av-standalone .av-main .av-product-filters>label:first-of-type{flex:1 1 100%;min-width:0}
 .av-standalone .av-main .av-product-filters>label:not(:first-of-type){flex:1 1 120px;min-width:0}
 .av-standalone .av-main .av-product-filters>.av-list-icon{flex:0 0 48px}
 .av-standalone .av-main .av-list-exports{display:flex;flex:1 1 auto;justify-content:flex-end;gap:8px}
}

/* Compact action launchers across desktop and mobile. */
.av-standalone .av-action-launcher{display:block;width:100%;margin:0 0 10px}
.av-standalone .av-action-launcher>.av-create-button{width:auto;max-width:100%;min-height:42px;padding:10px 18px;border-radius:9px;background:#ff9500!important;color:#fff!important;white-space:normal;text-align:left}
.av-action-dialog{width:min(780px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:22px;border:1px solid #dfe3ea;border-radius:16px;background:#fff;color:#11151e;box-shadow:0 20px 80px #0004}
.av-action-dialog::backdrop{background:#1c283f99}
.av-action-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.av-action-dialog>header h2{margin:0;font-size:20px}
.av-action-dialog-close{width:40px;height:40px;border:0;border-radius:50%;background:#f1efeb;color:#333;font-size:28px;cursor:pointer}
.av-action-dialog form{max-width:100%;min-width:0}
@media(max-width:600px){.av-action-dialog{padding:16px;width:calc(100vw - 20px);max-height:90dvh}.av-action-dialog>header h2{font-size:18px}}

/* Mobile full-width canvas shared by every ERP route. Keep control/content padding
   inside cards; no outer gutters or empty strip above the first section. */
@media screen and (max-width:1024px){
 html:has(body.av-standalone){margin:0!important;padding:0!important;width:100%;min-width:0}
 body.av-standalone{margin:0!important;padding:0!important;width:100%;min-width:0}
 .av-standalone .av-topbar{top:0!important;margin:0!important;width:100%!important;max-width:none!important;height:56px!important;min-height:56px!important;padding:0 10px!important;box-sizing:border-box}
 .av-standalone .av-layout{display:block!important;width:100%!important;margin:0!important;padding:0!important;min-height:calc(100dvh - 56px)}
 .av-standalone .av-main{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0 0 max(16px,env(safe-area-inset-bottom))!important;box-sizing:border-box}
 .av-standalone .av-main>.av-title,.av-standalone .av-main .av-page-head{display:none!important;margin:0!important;padding:0!important;min-height:0!important}
 .av-standalone .av-main>section.av-page-content,.av-standalone .av-main>.av-dashboard-grid{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 .av-standalone .av-main>section,.av-standalone .av-main>.av-panel,.av-standalone .av-main>.av-pos-summary,.av-standalone .av-main>.av-card,.av-standalone .av-main .av-dashboard-grid>section{margin-left:0!important;margin-right:0!important;max-width:100%!important;box-sizing:border-box}
 .av-standalone .av-main>:first-child,.av-standalone .av-page-content>:first-child,.av-standalone .av-dashboard-grid>:first-child{margin-top:0!important}
 .av-standalone .av-main .av-pos-summary,.av-standalone .av-main>.av-panel,.av-standalone .av-main>.av-card{border-radius:0!important}
}

/* Keep checkout actions reachable in both responsive layouts. */
@media screen and (max-width:1024px){
 .av-standalone .ref-sale [data-pos-stage=cart] .ref-dock,
 .av-standalone .ref-sale [data-pos-stage=billing] .ref-dock{display:flex;position:fixed;left:10px!important;right:10px!important;bottom:0;margin:0;max-width:none;padding:10px 0 max(10px,env(safe-area-inset-bottom));z-index:45;background:#f8f7f2}
 .av-standalone .ref-sale{padding-bottom:110px}
 .av-standalone .ref-sale [data-pos-stage=billing]{padding-bottom:20px}
}
@media screen and (min-width:1025px){
 .av-standalone .av-page-content .ref-sale [data-pos-stage=billing] .ref-billing{position:static;top:auto;max-height:none;overflow:visible}
 .av-standalone .ref-sale [data-pos-stage=billing]>.ref-dock{display:flex;position:sticky;left:auto!important;right:auto!important;bottom:0;margin:12px 0 0;padding:10px 0;z-index:5;background:#fff}
}

.av-letter-saved-card{display:grid;align-content:start;gap:8px;min-width:0}.av-letter-delete-form{margin:0}.av-letter-delete-form .button{width:100%}


/* AV ERP visual system aligned with the Drop And Shipping admin portal. */
.av-standalone{
 --av-blue:#6583bb;--av-blue-hover:#415e95;--av-soft:#f3f5f9;--av-page:#f8faff;
 --av-border:#e1e7f1;--av-text:#111928;--av-muted:#596e96;--av-subtle:#8c9ec0;
 --av-card:#fff;--av-shadow:0 1px 2px rgba(0,0,0,.05);
 background:var(--av-page)!important;color:var(--av-text)!important;
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;
}
.av-standalone .av-erp{--av-red:var(--av-blue);color:var(--av-text);background:transparent}
.av-standalone a{color:var(--av-blue)}
.av-standalone a:hover{color:var(--av-blue-hover)}
.av-standalone :focus-visible{outline:2px solid var(--av-blue);outline-offset:2px}
.av-standalone .av-topbar{height:64px;position:sticky;top:0;z-index:50;padding:0 24px;background:#fff!important;color:var(--av-text);border-bottom:1px solid var(--av-border);box-shadow:var(--av-shadow);backdrop-filter:none}
.av-standalone .av-wordmark{color:var(--av-text)!important;font-size:18px!important;font-weight:700;letter-spacing:-.25px;line-height:1.25}
.av-standalone .av-wordmark span{color:var(--av-blue)}
.av-standalone .av-menu-toggle{width:38px;height:38px;border:0;border-radius:8px;background:var(--av-soft);color:var(--av-blue)}
.av-standalone .av-menu-toggle:hover{background:#e6ebf4}
.av-standalone .av-header-alert{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:var(--av-soft);color:var(--av-blue)!important}
.av-standalone .av-header-alert svg{width:18px;height:18px}
.av-standalone .av-desktop-user{min-height:34px;padding:7px 11px;border:1px solid var(--av-border);border-radius:8px;background:#fff;color:var(--av-muted);font-size:12px;font-weight:600}
.av-standalone .av-layout{grid-template-columns:240px minmax(0,1fr);gap:0;min-height:calc(100vh - 64px);margin:0;background:var(--av-page)}
.av-standalone .av-nav{position:fixed;inset:0 auto 0 0;top:64px;width:240px;height:calc(100dvh - 64px);z-index:60;padding:14px 10px 18px;overflow-y:auto;overflow-x:hidden;background:#fff!important;color:var(--av-text);border:0;border-right:1px solid var(--av-border);border-radius:0;box-shadow:none}
.av-standalone .av-sidebar-heading{position:fixed;top:0;left:0;z-index:62;display:flex;width:240px;height:64px;align-items:center;padding:0 20px;background:#fff!important;border:0;border-bottom:1px solid var(--av-border)}
.av-standalone .av-sidebar-heading>a{color:var(--av-text)!important;font-size:19px;font-weight:750;letter-spacing:-.35px}
.av-standalone .av-sidebar-heading>a b{color:var(--av-blue)!important;font-size:22px}
.av-standalone .av-sidebar-collapse{top:17px;right:10px;width:28px;height:28px;border:0;border-radius:7px;background:var(--av-soft);color:var(--av-blue);line-height:26px}
.av-standalone .av-nav-user{display:flex;align-items:center;gap:10px;padding:10px 8px 14px;margin:0 0 12px;border-bottom:1px solid var(--av-border)}
.av-standalone .av-nav-avatar{width:38px;height:38px;border-radius:50%;background:var(--av-blue);color:#fff;font-size:15px}
.av-standalone .av-nav-user strong{color:var(--av-text);font-size:12px;font-weight:700}
.av-standalone .av-nav-user small{color:var(--av-muted);font-size:10px}
.av-standalone .av-nav-user b{margin-top:4px;background:var(--av-soft);color:var(--av-blue);font-size:9px}
.av-standalone .av-nav-group{margin:4px 0;border:0}
.av-standalone .av-nav-group>summary{min-height:38px;padding:9px 11px;border-radius:8px;color:var(--av-muted)!important;font-size:11px;font-weight:650}
.av-standalone .av-nav-group>summary:after{color:var(--av-subtle)!important}
.av-standalone .av-nav-group[open]>summary{color:var(--av-text)!important}
.av-standalone .av-nav>a,.av-standalone .av-nav-group>a,.av-standalone .av-nav-subgroup>a{display:flex;align-items:center;gap:10px;min-height:38px;margin:2px 0;padding:9px 11px;border:0;border-radius:8px;color:var(--av-muted)!important;font-size:12px;font-weight:500;line-height:1.35}
.av-standalone .av-nav-group>a,.av-standalone .av-nav-subgroup>a{margin-left:16px;font-size:11px}
.av-standalone .av-nav svg{width:17px;height:17px;color:#596e96;flex:none}
.av-standalone .av-nav a:hover,.av-standalone .av-nav-group>summary:hover,.av-standalone .av-nav-subgroup>summary:hover{background:#f1f4f9;color:var(--av-text)!important}
.av-standalone .av-nav a.active,.av-standalone .av-nav a.active:hover{background:var(--av-soft)!important;color:var(--av-blue)!important;box-shadow:none;font-weight:650}
.av-standalone .av-nav a.active svg{color:var(--av-blue)}
.av-standalone .av-nav-bottom{margin-top:14px;padding-top:12px;border-color:var(--av-border)!important}
.av-standalone .av-nav-bottom a{color:var(--av-muted)!important}
.av-standalone .av-nav-bottom small{color:var(--av-subtle)!important}
.av-standalone .av-main{grid-column:2;align-self:stretch;width:auto;max-width:none;min-width:0;margin:0;padding:22px 26px 42px;background:var(--av-page)!important;color:var(--av-text)}
.av-standalone .av-page-head{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;padding:0 2px}
.av-standalone .av-page-head h1{margin:0;color:var(--av-text);font-size:22px;font-weight:700;letter-spacing:-.35px}
.av-standalone .av-page-head .av-panel-subtitle{margin:3px 0 0;color:var(--av-muted)!important;font-size:12px}
.av-standalone .av-page-content{display:flex;flex-direction:column;gap:14px;min-width:0}
.av-standalone .av-page-content>.av-filter,.av-standalone .av-page-content>form.av-filter{margin:0;padding:14px 16px;border:1px solid var(--av-border);border-radius:14px;background:#fff;box-shadow:var(--av-shadow)}
.av-standalone .av-filter label{color:var(--av-muted);font-size:11px;font-weight:550}
.av-standalone .av-form input:not([type=hidden]),.av-standalone .av-form select,.av-standalone .av-form textarea,.av-standalone .av-filter input,.av-standalone .av-filter select,.av-standalone .av-product-filters input,.av-standalone .av-product-filters select,.av-standalone input:not([type=hidden]):not([type=checkbox]),.av-standalone select,.av-standalone textarea{border:1px solid var(--av-border);border-radius:8px;background:#fff;color:var(--av-text);box-shadow:none}
.av-standalone .av-form input:focus,.av-standalone .av-form select:focus,.av-standalone .av-form textarea:focus,.av-standalone .av-filter input:focus,.av-standalone .av-filter select:focus{outline:2px solid #dbe1ed;border-color:var(--av-blue)}
.av-standalone .av-page-content .av-form{gap:12px 16px;padding:16px;border:1px solid var(--av-border);border-radius:14px;background:#fff;box-shadow:var(--av-shadow)}
.av-standalone .av-page-content .av-form>label{color:var(--av-muted);font-size:11px;font-weight:550}
.av-standalone .av-page-content .av-form>label input:not([type=hidden]),.av-standalone .av-page-content .av-form>label select,.av-standalone .av-page-content .av-form>label textarea{min-height:40px;border-color:var(--av-border);border-radius:8px;background:#fff;font-size:12px}
.av-standalone .av-page-content .av-panel,.av-standalone .av-page-content .av-pos-summary,.av-standalone .av-page-content .av-product-editor,.av-standalone .av-page-content .av-scroll,.av-standalone .av-page-content .av-empty,.av-standalone .av-page-content .av-tracking-results,.av-standalone .av-page-content .av-purchase-products,.av-standalone .av-page-content .av-purchase-summary{margin:0;border:1px solid var(--av-border);border-radius:14px;background:#fff;box-shadow:var(--av-shadow)}
.av-standalone .av-page-content .av-panel,.av-standalone .av-page-content .av-pos-summary,.av-standalone .av-page-content .av-product-editor,.av-standalone .av-page-content .av-purchase-products,.av-standalone .av-page-content .av-purchase-summary{padding:18px}
.av-standalone .av-page-content h2,.av-standalone .av-page-content h3{color:var(--av-text);font-weight:650;letter-spacing:-.15px}
.av-standalone .av-page-content p,.av-standalone .av-page-content .av-ui-note{color:var(--av-muted);line-height:1.55}
.av-standalone .av-page-content details.av-panel{padding:0;overflow:hidden}
.av-standalone .av-page-content details.av-panel>summary{display:flex;align-items:center;gap:9px;min-height:48px;padding:13px 16px;background:#fff;color:var(--av-text);font-size:13px;font-weight:650;cursor:pointer;list-style:none}
.av-standalone .av-page-content details.av-panel>summary::-webkit-details-marker{display:none}
.av-standalone .av-page-content details.av-panel>summary:before{content:"›";color:var(--av-blue);font-size:20px;line-height:1;transition:transform .15s ease}
.av-standalone .av-page-content details.av-panel[open]>summary{border-bottom:1px solid var(--av-border);background:#f8faff}
.av-standalone .av-page-content details.av-panel[open]>summary:before{transform:rotate(90deg)}
.av-standalone .av-page-content details.av-panel[open]>*:not(summary){margin-left:16px;margin-right:16px}
.av-standalone .av-page-content .button,.av-standalone .av-page-head .button{min-height:38px;padding:8px 14px;border:1px solid var(--av-border);border-radius:8px;background:#fff;color:var(--av-text);font-size:12px;font-weight:600;box-shadow:none}
.av-standalone .av-page-content .button:hover,.av-standalone .av-page-head .button:hover{background:#f8faff;color:var(--av-text)}
.av-standalone .av-page-content .button-primary,.av-standalone .av-page-head .button-primary,.av-standalone .av-page-content .av-create-button,.av-standalone .av-page-content .ref-primary,.av-standalone .av-page-content .av-action-launcher>.av-create-button{background:var(--av-blue)!important;border-color:var(--av-blue)!important;color:#fff!important;box-shadow:0 2px 5px rgba(39,133,249,.16)}
.av-standalone .av-page-content .button-primary:hover,.av-standalone .av-page-head .button-primary:hover,.av-standalone .av-page-content .av-create-button:hover,.av-standalone .av-page-content .ref-primary:hover{background:var(--av-blue-hover)!important;border-color:var(--av-blue-hover)!important}
.av-standalone .av-page-content .av-action-launcher>.av-create-button{width:auto;min-height:40px;padding:9px 16px;border-radius:8px;white-space:normal;text-align:left}
.av-standalone .av-page-content .av-segments,.av-standalone .av-page-content .ref-tabs{width:max-content;max-width:100%;margin:0;padding:4px;border:1px solid var(--av-border);border-radius:10px;background:#fff;box-shadow:var(--av-shadow)}
.av-standalone .av-page-content .av-segments a,.av-standalone .av-page-content .ref-tabs a{padding:8px 12px;border-radius:7px;color:var(--av-muted);font-size:12px;font-weight:550}
.av-standalone .av-page-content .av-segments a.active,.av-standalone .av-page-content .ref-tabs a.active{background:var(--av-blue);color:#fff;box-shadow:none}
.av-standalone .av-page-content .av-scroll{overflow:auto;border-radius:12px}
.av-standalone .av-page-content .av-scroll table{min-width:680px;border-collapse:separate;border-spacing:0;background:#fff}
.av-standalone .av-page-content .av-scroll th{position:sticky;top:0;padding:12px;background:#f8faff;color:var(--av-muted);border:0;border-bottom:1px solid var(--av-border);font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.av-standalone .av-page-content .av-scroll td{padding:11px;color:#2d3d5b;border:0;border-bottom:1px solid #f1f4f9;font-size:11px;line-height:1.45}
.av-standalone .av-page-content .av-scroll tr:last-child td{border-bottom:0}
.av-standalone .av-page-content .av-scroll tr:hover td{background:#f8faff}
.av-standalone .av-page-content .av-scroll td a{color:var(--av-blue)}
.av-standalone .av-page-content .av-product-card{border:1px solid var(--av-border);border-radius:14px;background:#fff;box-shadow:var(--av-shadow)}
.av-standalone .av-page-content .av-list-icon{border:1px solid var(--av-border);border-radius:8px;background:#fff;color:var(--av-blue)!important;box-shadow:var(--av-shadow)}
.av-standalone .av-page-content .av-pager{gap:8px;color:var(--av-muted)}
.av-standalone .av-page-content .av-pager .button{border-color:var(--av-border);border-radius:8px}
.av-standalone .av-page-content .av-pnl-report{color:var(--av-text)}
.av-standalone .av-main:has(.av-pnl-report){min-height:calc(100vh - 64px);background:var(--av-page)!important;color:var(--av-text)}
.av-standalone .av-main:has(.av-pnl-report) .av-page-head h1{color:var(--av-text)}
.av-standalone .av-pnl-toolbar label{color:var(--av-muted)}
.av-standalone .av-pnl-toolbar select,.av-standalone .av-pnl-toolbar input{border:1px solid var(--av-border);border-radius:8px;background:#fff;color:var(--av-text)}
.av-standalone .av-pnl-location>span{background:var(--av-blue)}
.av-standalone .av-pnl-box,.av-standalone .av-pnl-result{border-color:var(--av-border);border-radius:14px;background:#fff;box-shadow:var(--av-shadow);color:var(--av-text)}
.av-standalone .av-pnl-box h2{border-color:var(--av-border);color:var(--av-text)}
.av-standalone .av-pnl-row,.av-standalone .av-pnl-row:nth-of-type(even){border-color:var(--av-border);background:#fff;color:#2d3d5b}
.av-standalone .av-pnl-row b{border-color:var(--av-border);color:var(--av-text)}
.av-standalone .av-pnl-total,.av-standalone .av-pnl-result b{color:var(--av-text)}
.av-standalone .av-pnl-note,.av-standalone .av-pnl-result small,.av-standalone .av-pnl-empty{color:var(--av-muted)}
.av-standalone .av-dashboard-grid .av-sales-gauge{border-top-color:var(--av-blue);border-left-color:var(--av-blue);border-right-color:#e1e7f1;background:#fff}
.av-standalone .av-dashboard-link{color:var(--av-blue)!important}
.av-standalone .av-dashboard-grid .av-sales-breakdown>div:before{background:var(--av-blue)}
.av-standalone .av-dashboard-grid .av-pos-icon,.av-standalone .av-dashboard-grid .av-quick-grid a>span{background:var(--av-soft);color:var(--av-blue)}
.av-standalone .av-dashboard-grid .av-flow-grid>div,.av-standalone .av-dashboard-grid .av-expense-grid>div,.av-standalone .av-dashboard-grid .av-quick-grid a,.av-standalone .av-dashboard-grid .av-low-list article{border-color:var(--av-border);background:#f8faff}
.av-standalone .av-trend-card .sales-bar{background:var(--av-blue)}
.av-standalone .av-trend-card .profit-bar{background:#10b981}
.av-standalone .av-page-content .ref-sale .ref-billing{border:1px solid var(--av-border);border-radius:12px;background:#fff}
.av-standalone .av-page-content .ref-sale .ref-search{border-color:var(--av-blue)}
.av-standalone .av-page-content .ref-sale .ref-source-chips .active{background:var(--av-blue);border-color:var(--av-blue)}
.av-standalone .av-cost-warning{border-color:#fde68a;background:#fffbeb;color:#b45309}
.av-standalone .av-empty{color:var(--av-muted)}
.av-standalone .av-drawer-overlay{background:rgba(15,23,42,.42);backdrop-filter:blur(1px)}
.av-standalone .av-menu-close{border:0;border-radius:7px;background:#f1f4f9;color:var(--av-muted)}
@media(min-width:1025px){
 .av-standalone .av-topbar{margin-left:240px;padding:0 26px}
 .av-standalone .av-layout{grid-template-columns:240px minmax(0,1fr)}
 .av-standalone .av-nav{top:64px;height:calc(100dvh - 64px);width:240px;transform:none}
 .av-standalone .av-sidebar-heading{width:240px}
 .av-standalone .av-main{grid-column:2;padding:22px 26px 42px}
 .av-sidebar-collapsed.av-standalone .av-layout{grid-template-columns:72px minmax(0,1fr)}
 .av-sidebar-collapsed.av-standalone .av-topbar{margin-left:72px}
 .av-sidebar-collapsed.av-standalone .av-nav,.av-sidebar-collapsed.av-standalone .av-sidebar-heading{width:72px}
 .av-sidebar-collapsed.av-standalone .av-sidebar-heading{padding:0 10px}
 .av-sidebar-collapsed.av-standalone .av-nav-user>div{display:none}
 .av-sidebar-collapsed.av-standalone .av-sidebar-heading>a{font-size:0}
 .av-sidebar-collapsed.av-standalone .av-sidebar-heading>a b{font-size:21px}
 .av-sidebar-collapsed.av-standalone .av-nav>a span,.av-sidebar-collapsed.av-standalone .av-nav-group>summary span,.av-sidebar-collapsed.av-standalone .av-nav-group>summary:after,.av-sidebar-collapsed.av-standalone .av-nav-group>a,.av-sidebar-collapsed.av-standalone .av-nav-bottom{display:none}
 .av-sidebar-collapsed.av-standalone .av-nav-group>summary,.av-sidebar-collapsed.av-standalone .av-nav>a{justify-content:center}
}
@media(max-width:1024px){
 .av-standalone html,.av-standalone body{width:100%;margin:0;padding:0}
 .av-standalone .av-topbar{top:0;margin:0!important;width:100%;height:60px;min-height:60px;padding:0 14px;gap:10px}
 .av-standalone .av-wordmark{font-size:18px!important;letter-spacing:-.2px}
 .av-standalone .av-layout{display:block!important;width:100%;min-height:calc(100dvh - 60px);margin:0;padding:0}
 .av-standalone .av-nav{position:fixed;inset:0 auto 0 0;top:0;width:min(84vw,300px);max-width:none;height:100dvh;z-index:60;padding:16px 12px 22px;transform:translateX(-105%);transition:transform .2s ease;overflow-y:auto;background:#fff!important;box-shadow:0 12px 36px rgba(15,23,42,.18)}
 .av-standalone .av-nav.is-open{transform:translateX(0)}
 .av-standalone .av-sidebar-heading{position:static;width:auto;height:44px;padding:0 8px;margin:0 0 12px;background:#fff!important;border:0}
 .av-standalone .av-sidebar-collapse{display:none}
 .av-standalone .av-nav-user{padding:6px 8px 13px;margin:0 0 12px}
 .av-standalone .av-menu-close{display:block!important}
 .av-standalone .av-main{grid-column:auto;width:100%!important;max-width:none!important;min-width:0;margin:0!important;padding:14px 14px max(22px,env(safe-area-inset-bottom))!important;background:var(--av-page)!important;box-sizing:border-box}
 .av-standalone .av-page-head{display:flex!important;min-height:0;margin:0 0 12px;padding:0 2px}
 .av-standalone .av-page-head h1{font-size:19px}
 .av-standalone .av-page-content{gap:12px}
 .av-standalone .av-page-content>.av-panel,.av-standalone .av-page-content>.av-pos-summary,.av-standalone .av-page-content>.av-card,.av-standalone .av-dashboard-grid>section{max-width:100%;margin-left:0;margin-right:0;border-radius:14px}
 .av-standalone .av-page-content .av-form{grid-template-columns:1fr}
 .av-standalone .av-page-content .av-form>*{grid-column:1}
 .av-standalone .av-page-content .av-dashboard-grid{grid-template-columns:1fr;gap:12px}
 .av-standalone .av-page-content .av-dashboard-grid>.av-sales-summary,.av-standalone .av-page-content .av-dashboard-grid>.av-mobile-quick-access,.av-standalone .av-page-content .av-dashboard-grid>.av-mobile-low-stock{grid-column:1;grid-row:auto}
 .av-standalone .av-page-content .av-dashboard-grid .av-sales-summary{min-height:0}
 .av-standalone .av-page-content .av-segments,.av-standalone .av-page-content .ref-tabs{width:100%;overflow-x:auto}
 .av-standalone .av-page-content .av-scroll{max-width:100%;border-radius:12px}
 .av-standalone .av-page-content .av-scroll table{min-width:680px}
 .av-standalone .av-page-content .av-purchase-app .av-purchase-grid,.av-standalone .av-page-content .ref-sale{grid-template-columns:minmax(0,1fr)}
 .av-standalone .av-page-content .av-purchase-summary{position:static;max-height:none;overflow:visible}
 .av-standalone .av-page-content .ref-sale>.ref-sale-stage,.av-standalone .av-page-content .ref-sale>form>.ref-sale-stage{grid-column:1;grid-row:auto}
 .av-standalone .av-page-content .ref-sale>form>.ref-sale-stage[data-pos-stage=billing]{position:static;max-height:none;overflow:visible}
 .av-standalone .av-main:has(.av-pnl-report){min-height:auto}
}
@media(max-width:520px){
 .av-standalone .av-topbar{height:58px;min-height:58px;padding:0 11px;gap:8px}
 .av-standalone .av-wordmark{font-size:16px!important}
 .av-standalone .av-header-alert{width:34px;height:34px}
 .av-standalone .av-main{padding:12px 10px max(18px,env(safe-area-inset-bottom))!important}
 .av-standalone .av-page-head h1{font-size:18px}
 .av-standalone .av-page-content{gap:10px}
 .av-standalone .av-page-content .av-panel,.av-standalone .av-page-content .av-pos-summary,.av-standalone .av-page-content .av-product-editor,.av-standalone .av-page-content .av-purchase-products,.av-standalone .av-page-content .av-purchase-summary{padding:15px;border-radius:12px}
 .av-standalone .av-page-content .av-form{padding:13px;border-radius:12px}
 .av-standalone .av-page-content .av-summary-body{grid-template-columns:minmax(0,1fr);gap:12px}
 .av-standalone .av-page-content .av-flow-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .av-standalone .av-page-content .av-expense-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .av-standalone .av-page-content .av-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 5px}
 .av-standalone .av-page-content .av-product-toolbar{gap:8px}
 .av-standalone .av-page-content .av-product-filters{gap:8px}
 .av-standalone .av-page-content .av-product-filters>label{min-width:0}
 .av-standalone .av-page-content .av-list-exports{gap:6px}
 .av-standalone .av-page-content .av-list-icon{width:42px;height:42px}
 .av-standalone .av-page-content .av-pnl-row{grid-template-columns:minmax(0,1.4fr) minmax(92px,.8fr);font-size:11px}
 .av-standalone .av-page-content .av-pnl-row span,.av-standalone .av-page-content .av-pnl-row b{padding:9px 7px}
 .av-standalone .av-page-content .av-pnl-toolbar{flex-wrap:wrap}
}

/* Reseller portal dashboard: KPI strip, analytics and compact action cards. */
.av-standalone .av-reseller-kpis{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-bottom:8px}
.av-standalone .av-reseller-kpi{padding:20px;border:1px solid #e1e7f1;border-radius:14px;background:#fff;box-shadow:0 1px 2px #0000000d;min-width:0}
.av-standalone .av-reseller-kpi header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.av-standalone .av-reseller-kpi h3{margin:0;font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#596e96}
.av-standalone .av-reseller-kpi strong{display:block;margin:0 0 6px;font-size:24px;font-weight:800;letter-spacing:-.02em;color:#111928;overflow-wrap:anywhere}
.av-standalone .av-reseller-kpi small{font-size:10px;color:#596e96}
.av-standalone .av-reseller-kpi-icon{width:32px;height:32px;display:grid;place-items:center;flex:none;border-radius:10px;background:#f4f7fb;color:#4b6dac}
.av-standalone .av-reseller-kpi:nth-child(2) .av-reseller-kpi-icon{background:#f6f8fc;color:#879fcb}
.av-standalone .av-reseller-kpi:nth-child(3) .av-reseller-kpi-icon{background:#ecfdf5;color:#10b981}
.av-standalone .av-reseller-kpi:nth-child(4) .av-reseller-kpi-icon{background:#fffbeb;color:#f59e0b}
.av-standalone .av-reseller-line-chart{display:block;width:100%;height:auto;min-height:180px;margin:10px 0}
.av-standalone .av-trend-card .av-trend-bars{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.av-standalone .av-dashboard-grid>.av-trend-card{grid-column:1;grid-row:2}
.av-standalone .av-dashboard-grid>.av-sales-summary{grid-column:2;grid-row:2;min-height:0;justify-content:flex-start}
.av-standalone .av-dashboard-grid .av-sales-summary .av-summary-body{grid-template-columns:1fr;min-height:0}
.av-standalone .av-dashboard-grid .av-sales-gauge{display:none}
.av-standalone .av-report-dashboard{border-color:#e1e7f1;border-radius:14px;box-shadow:0 1px 2px #0000000d}
.av-standalone .av-report-stat{border:1px solid #e1e7f1;border-radius:10px;background:#f8faff}
.av-standalone .av-report-dashboard-heading p{color:#6583bb}

@media(max-width:1400px){.av-standalone .av-reseller-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1024px){.av-standalone .av-reseller-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.av-standalone .av-dashboard-grid>.av-trend-card,.av-standalone .av-dashboard-grid>.av-sales-summary{grid-column:1;grid-row:auto}}
@media(max-width:480px){.av-standalone .av-reseller-kpis{grid-template-columns:1fr;gap:10px}.av-standalone .av-reseller-kpi{padding:16px}}

/* Desktop dashboard: keep the stock alert after all analytics and action panels. */
.av-standalone .av-desktop-low-stock{display:none}
@media screen and (min-width:1025px){
 .av-standalone .av-route-dashboard .av-dashboard-grid>.av-desktop-low-stock{display:block;grid-column:1/-1;min-width:0;margin-top:0;padding:20px 24px;border:1px solid var(--av-border);border-radius:16px;background:linear-gradient(145deg,#fff 0%,#f6f8fc 100%);box-shadow:0 8px 22px #3b568810}
 .av-standalone .av-route-dashboard .av-desktop-low-stock .av-low-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
 .av-standalone .av-route-dashboard .av-desktop-low-stock .av-low-header h2{margin:0}
 .av-standalone .av-route-dashboard .av-desktop-low-stock .av-low-header a{border:1px solid var(--av-border);border-radius:10px;padding:8px 14px;color:var(--av-blue);background:#fff;text-decoration:none}
 .av-standalone .av-route-dashboard .av-desktop-low-stock .av-scroll{overflow:auto}
 .av-standalone .av-route-dashboard .av-desktop-low-stock .av-products-table{min-width:0;background:transparent}
 .av-standalone .av-route-dashboard .av-desktop-low-stock .av-products-table th{background:#edf0f7;color:#283a5b}
 .av-standalone .av-route-dashboard .av-desktop-low-stock .av-products-table td{background:#fff}
 .av-standalone .av-route-dashboard .av-desktop-low-stock .av-products-table a{color:#273859}
}
/* Product View must fill the workspace instead of shrinking inside its flex parent. */
.av-erp.av-route-quick .ref-quick,
.av-standalone.av-route-quick .av-page-content>.ref-quick{
 width:100%;max-width:none;margin:0;min-width:0;box-sizing:border-box;
}
.av-erp.av-route-quick .ref-quick>section,
.av-erp.av-route-quick .ref-quick>form{min-width:0;max-width:100%;box-sizing:border-box}
@media(min-width:1025px){
 .av-erp.av-route-quick .ref-quick{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:24px;align-items:start}
 .av-erp.av-route-quick .ref-quick>.av-form{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding:0;background:transparent;border:0}
 .av-erp.av-route-quick .ref-quick>.av-form .ref-quick-dock{grid-column:1/-1}
 .av-erp.av-route-quick .ref-metadata{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
 .av-erp.av-route-quick .ref-metadata div:nth-child(n){grid-column:auto;min-width:0;overflow-wrap:anywhere}
 .av-erp.av-route-quick .ref-large-image{height:240px;aspect-ratio:auto}
 .av-erp.av-route-quick .ref-quick>section:nth-of-type(2){background:#fff;border-radius:20px;padding:24px}
}
@media(max-width:1024px){
 .av-erp.av-route-quick .ref-quick{display:block}
 .av-erp.av-route-quick .ref-quick>section{width:100%;margin-bottom:16px}
}
/* Keep the full product photo in a bounded square without stretching or cropping. */
.av-erp.av-route-quick .ref-product-details .ref-large-image{
 display:block;width:100%;max-width:360px;height:auto;aspect-ratio:1/1;
 margin:0 auto;background:#fff;overflow:hidden;box-sizing:border-box;
}
.av-erp.av-route-quick .ref-product-details .ref-large-image>img{
 display:block;position:static;width:100%;height:100%;max-width:100%;max-height:100%;
 object-fit:contain;object-position:center;margin:0;padding:12px;box-sizing:border-box;
}


.av-pnl-report .av-pnl-headline,
.av-pnl-report .av-pnl-breakdown { margin-top: 14px; }
.av-pnl-report .av-pnl-headline > b { display: block; padding-inline: 6px; font-size: 26px; }
.av-pnl-report .av-pnl-headline .is-profit { color: #116447; }
.av-pnl-report .av-pnl-headline .is-loss { color: #a61932; }
.av-pnl-report .av-pnl-headline .is-even { color: #38465e; }
.av-pnl-accounting tbody > tr:first-child > td {
  background: #e8f1ff;
  color: #17243a;
  font-weight: 700;
}
.av-pnl-accounting tbody > tr:first-child > td:nth-child(n+3) { font-size: 18px; }
