/* AV ERP reference UI. No external fonts, chart libraries or icon downloads. */
.av-erp{--av-green:#006c46;--av-cream:#f8f7f2;--av-ink:#112d23;--av-blue:var(--av-green)}
.av-standalone{background:var(--av-cream,#f8f7f2);--av-blue:#006c46;--av-soft:#e6ebf5;color:#111b2d}
.av-standalone .av-main,.av-standalone .av-topbar{background:#f8f7f2}
.av-standalone .av-topbar{height:86px;border:0;display:grid;grid-template-columns:44px 1fr 44px;gap:16px;padding:0 30px}
.av-standalone .av-wordmark{font-size:24px!important;font-weight:500;letter-spacing:-.6px;text-align:center;color:#0e1014!important;overflow-wrap:anywhere}
.av-standalone .av-menu-toggle{background:transparent;color:#111;border-radius:50%;width:42px;height:42px;display:flex}
.av-standalone .av-menu-toggle svg{width:26px;height:26px}
.av-header-alert{display:grid;place-items:center;color:#21252c!important;width:42px;height:42px;border-radius:50%}
.av-header-alert svg{width:26px;height:26px}
.av-standalone .av-main{max-width:1550px;width:100%;margin:0 auto;align-self:start;padding:24px 32px 56px}
.av-standalone .av-title{margin-bottom:24px}.av-standalone .av-title h1{font-size:24px;font-weight:600;color:#111e38}.av-panel-subtitle{color:#647086!important}
.av-standalone .av-layout{min-height:calc(100vh - 86px)}
.av-standalone .av-nav{top:86px;height:calc(100vh - 86px)}
.av-standalone .av-pos-summary{border-radius:24px;padding:28px;margin:0 0 22px;box-shadow:none;color:#0e192f}
.av-standalone .av-pos-summary h2{font-size:21px;font-weight:500;margin-bottom:26px}
.av-pos-summary header span{font-size:15px;color:#123c2c}
.av-sales-summary .av-summary-body{min-height:165px;grid-template-columns:1.05fr 1fr;gap:24px;padding:10px 0}
.av-sales-gauge{border-width:24px;border-color:#dadde2;max-width:320px;width:100%;margin:auto}
.av-sales-gauge strong{font-size:22px}.av-sales-gauge span{font-size:13px}
.av-sales-breakdown{padding-left:22px;border-color:#b3b8c3}.av-sales-breakdown>div{position:relative;padding:12px 16px 12px 0;min-height:70px}
.av-sales-breakdown>div:after{content:"";position:absolute;right:0;top:12px;bottom:12px;width:5px;border-radius:6px;background:#006c46}
.av-sales-breakdown>div:nth-child(2):after{background:#ff9700}.av-sales-breakdown>div:nth-child(3):after{background:#a4acbb}
.av-sales-breakdown small{font-size:14px}.av-sales-breakdown b{font-size:21px;font-weight:500;color:#222}
.av-flow-grid{padding:8px 0}.av-flow-grid>div{gap:12px}.av-flow-grid .av-pos-icon{width:58px;height:58px;font-size:30px}.av-flow-grid strong{font-size:20px;font-weight:500}.av-flow-grid small{font-size:15px;color:#5e697d}
.av-expense-grid>div{border-color:#9aa2b2;border-radius:18px;padding:22px;min-height:110px}.av-expense-grid strong{font-size:25px;font-weight:500}.av-expense-grid small{font-size:16px}
.av-quick-grid{gap:30px 18px;padding:10px 0 16px}.av-quick-grid a>span{width:68px;height:68px;background:#f4f6fa;font-size:30px}.av-quick-grid a small{font-size:14px;color:#5a6478}.av-quick-grid a:hover>span{background:#e2e8f4}
.av-standalone .av-pos-note,.av-ui-note{font-size:12px;line-height:1.6;color:#69758c;margin:18px 0 0}
.av-low-list{gap:14px}.av-low-list article{border:1px solid #f2c1c1;border-radius:18px;padding:20px;align-items:center;background:#fff}.av-low-list article strong{font-size:16px;font-weight:600;line-height:1.5}.av-low-list article small{font-size:12px;color:#777;margin-top:5px}.av-low-list article b{padding:14px 10px;min-width:72px;font-size:27px;background:#fcecec;color:#e43f43;border-radius:16px}.av-low-list article b small{color:#e45d60}.av-stock-warning{display:inline-block;font-size:11px;padding:3px 9px;background:#fde3e3;color:#cd3838;border-radius:6px;margin-top:8px}
.av-segments{display:flex;gap:4px;background:#fff;border-radius:999px;padding:5px;margin:0 0 22px}.av-segments a{flex:1;text-align:center;padding:13px 10px;border-radius:999px;color:#1d222d;text-decoration:none;font-size:15px;line-height:1.4}.av-segments a.active{background:#006c46;color:#fff;font-weight:600}
.av-catalog-tools{display:flex;gap:10px;align-items:center;margin-bottom:24px}.av-catalog-search{display:flex;align-items:center;gap:12px;flex:1;min-width:0;background:#fff;border-radius:999px;padding:8px 12px 8px 20px;margin:0}.av-catalog-search>svg{flex:none;color:#0e131c}
.av-erp .av-catalog-search input{border:0!important;background:transparent!important;min-width:0;width:100%;padding:8px 0!important;box-shadow:none;font-size:16px!important}.av-catalog-search input:focus{outline:none!important}.av-catalog-search:focus-within{outline:2px solid #006c46;outline-offset:2px}
.av-icon-button{display:inline-flex;flex:none;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;border-radius:50%;background:#edeff4;color:#006c46;font-size:20px;cursor:pointer}.av-icon-button:hover{background:#dce2ee}.av-print{color:#ec9100;background:#fff8ed}.av-csv{color:#253657;background:#f1f3f8}
.av-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.av-product-card{border-radius:24px;background:#fff;padding:22px;box-shadow:0 4px 18px #1c284004;min-width:0}.av-product-top{display:flex;gap:16px;align-items:flex-start;min-width:0}.av-product-image{display:grid;place-items:center;flex:none;width:80px;height:80px;background:#eff1f4;border:1px solid #e6e9ee;border-radius:16px;overflow:hidden;color:#9fa8b8}.av-product-image>svg{width:36px;height:36px}.av-product-image img{max-width:100%;width:100%;height:100%;object-fit:contain}.av-product-copy{flex:1;min-width:0}.av-erp .av-product-copy h2{margin:0 0 10px;font-size:16px;font-weight:600;line-height:1.5;color:#0e131c;overflow-wrap:anywhere}.av-product-copy p{margin:4px 0;font-size:12px;color:#6f798d;overflow-wrap:anywhere}.av-product-copy p span{color:#5c6577;margin-left:12px}.av-card-edit{font-size:28px;line-height:1;min-width:32px;min-height:40px;text-align:center;color:#687387!important}
.av-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:18px}.av-price-grid>div{display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 9px;background:#fff8ed;border:1px solid #f7e0c1;border-radius:11px;color:#bf7607}.av-price-grid>div:nth-child(2){background:#f4f6fa;border-color:#e2e7f1;color:#46649e}.av-price-grid>div:nth-child(3){background:#eef2fa;border-color:#cbd7ef;color:#008b5c}.av-price-grid small{font-size:10px}.av-price-grid strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}.av-card-foot{display:block;margin-top:12px;color:#808a9c;font-size:10px}.av-product-card.is-inactive{background:#e9ecf0}.av-product-card.is-inactive .av-product-top{opacity:.65}
.av-catalog-actions{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 12px}.av-catalog-actions .button-primary{background:#ff9700!important;border-color:#ff9700!important;color:#fff!important;border-radius:999px!important;padding:14px 22px!important;gap:8px;min-height:48px!important}
.av-stock-totals,.av-sms-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 24px}.av-stock-totals>div,.av-sms-stats>div{display:flex;flex-direction:column;gap:18px;border-radius:22px;background:#fff;padding:24px}.av-stock-totals small,.av-sms-stats small{font-size:14px;color:#737e93}.av-stock-totals strong,.av-sms-stats strong{font-size:24px;font-weight:600;overflow-wrap:anywhere}.av-quantity{border-radius:16px;border:1px solid #b2c1dd;background:#ecf0f7;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:60px;padding:12px 8px;color:#006c46;gap:6px}.av-quantity strong{font-size:22px}.av-quantity small{font-size:10px}.av-stock-value{margin-top:16px;display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#6d788d;border-top:1px solid #eaedf2;padding-top:12px}.av-stock-value strong{color:#2b3d5f}
.av-back{display:inline-block;margin:0 0 18px;color:#006c46!important}.av-product-editor{background:#fff;border-radius:24px;padding:28px;max-width:920px;margin:0 auto}.av-product-editor h2{font-size:22px;margin-top:0}.av-product-editor .av-form{display:grid;grid-template-columns:1fr 1fr;gap:20px}.av-product-editor .av-form>label{display:flex;flex-direction:column;font-size:14px;color:#212b3f;font-weight:400;gap:10px}.av-product-editor .av-form input:not([type=hidden]),.av-product-editor .av-form select{width:100%;min-height:52px;border-radius:12px;padding:12px!important;border:1px solid #d6dbe4;font-size:16px}.av-product-editor .av-ui-note,.av-product-editor button{grid-column:1/-1}.av-product-editor button{border-radius:999px!important;background:#006c46!important;border-color:#006c46!important;min-height:52px!important;color:#fff!important;font-size:16px!important}.av-empty{grid-column:1/-1;text-align:center;background:#fff;border-radius:22px;padding:48px 24px}.av-empty h2{font-size:20px}.av-empty p{color:#6b768c}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.av-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.av-product-grid{grid-template-columns:1fr}.av-standalone .av-nav{top:0;height:100dvh}.av-standalone .av-topbar{padding:0 20px;height:76px}.av-standalone .av-main{padding:20px}}
@media(min-width:1025px){.av-standalone .av-menu-toggle{visibility:hidden}}
@media(max-width:600px){.av-standalone .av-topbar{height:74px;padding:0 16px;gap:8px;grid-template-columns:40px 1fr 40px}.av-standalone .av-wordmark{font-size:21px!important}.av-standalone .av-main{padding:14px 16px 40px}.av-standalone .av-title h1{font-size:21px}.av-standalone .av-pos-summary{padding:24px 18px;border-radius:24px;margin-bottom:18px}.av-standalone .av-pos-summary h2{font-size:19px}.av-pos-summary header span{font-size:13px}.av-sales-summary .av-summary-body{gap:18px;min-height:150px}.av-sales-gauge{border-width:18px}.av-sales-gauge strong{font-size:17px}.av-sales-gauge span{font-size:11px}.av-sales-breakdown{padding-left:14px}.av-sales-breakdown b{font-size:17px}.av-sales-breakdown small{font-size:12px}.av-flow-grid strong{font-size:16px}.av-flow-grid small{font-size:13px}.av-expense-grid>div{padding:16px}.av-expense-grid small{font-size:13px}.av-expense-grid strong{font-size:21px}.av-quick-grid{gap:24px 10px}.av-quick-grid a>span{width:54px;height:54px}.av-quick-grid a small{font-size:12px}.av-segments a{font-size:14px;padding:12px 5px}.av-catalog-tools{gap:7px}.av-catalog-search{padding-left:14px;gap:8px}.av-icon-button{min-width:40px;min-height:40px}.av-product-card{padding:18px;border-radius:24px}.av-product-top{gap:12px}.av-product-image{width:72px;height:72px;border-radius:14px}.av-erp .av-product-copy h2{font-size:15px}.av-product-copy p{font-size:12px}.av-product-copy p span{margin-left:7px}.av-price-grid strong{font-size:13px}.av-price-grid small{font-size:10px}.av-price-grid>div{padding:10px 7px}.av-stock-totals>div,.av-sms-stats>div{padding:20px 16px}.av-stock-totals strong,.av-sms-stats strong{font-size:21px}.av-product-editor{padding:22px 18px}.av-product-editor .av-form{grid-template-columns:1fr}.av-low-list article{padding:14px;gap:10px}.av-low-list article strong{font-size:14px}.av-low-list article b{min-width:58px;font-size:24px}.av-quantity{min-width:48px;padding:10px 5px}.av-quantity strong{font-size:20px}}
@media(max-width:350px){.av-standalone .av-wordmark{font-size:18px!important}.av-product-image{width:54px;height:54px}.av-price-grid{gap:4px}.av-price-grid strong{font-size:11px}.av-segments a{font-size:12px}.av-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.av-title,.av-catalog-tools,.av-catalog-actions,.av-segments,.av-card-edit,.av-ui-note,.av-back{display:none!important}.av-product-grid{display:block}.av-product-card{break-inside:avoid;border:1px solid #ccc;margin-bottom:12px}.av-standalone .av-main{padding:0}.av-standalone .av-nav{display:none!important}}

@media print{.av-catalog-print .av-main,.av-catalog-print .av-main *{visibility:visible!important}.av-catalog-print .av-layout{display:block!important}.av-catalog-print .av-pager{display:none!important}.av-catalog-print .av-product-card{box-shadow:none}.av-catalog-print .av-main{max-width:none!important;margin:0!important}}

.av-product-editor .av-wide,.av-product-editor .av-form>p,.av-product-editor .av-form>.av-csv-preview{grid-column:1/-1}.av-product-editor input[type=checkbox]{width:18px!important;min-height:18px!important}.av-csv-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f4f8;padding:14px;max-height:280px;overflow:auto}.av-scan-dialog{border:0;border-radius:20px;padding:18px;width:min(92vw,520px);background:#fff}.av-scan-dialog::backdrop{background:#0009}.av-scan-dialog video{width:100%;max-height:60vh;background:#13161d;border-radius:12px}.av-scan-dialog button{width:100%;min-height:44px;margin-top:12px}.av-product-editor textarea{max-width:100%;resize:vertical}.av-product-editor .av-form>label:has(input[type=checkbox]){display:block}.av-product-editor .av-form>label:has(input[type=checkbox]) input{margin-right:8px;vertical-align:middle}

/* Keep small text and orange actions readable. */
.av-catalog-actions .button-primary{color:#141d2e!important}.av-price-grid>div{color:#95600d}.av-price-grid>div:nth-child(3){color:#00754b}.av-card-foot{color:#5b687f}.av-product-copy p{color:#5c667a}.av-ui-note,.av-standalone .av-pos-note{color:#5b677d}@media(max-width:600px){.av-icon-button{min-width:44px;min-height:44px}}
.av-trend-card header{display:flex;justify-content:space-between;align-items:center;gap:12px}.av-trend-card header h2{margin-bottom:4px}.av-trend-card header span{color:#69758c;font-size:13px}.av-trend-legend{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0;color:#5c677d;font-size:12px}.av-trend-legend span:before{content:"";display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:3px;background:#ff9200}.av-trend-legend .profit-key:before{background:#087f5b}.av-trend-bars{height:200px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:8px;padding:8px 4px 0;border-bottom:1px solid #e1e4e9}.av-trend-day{height:100%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:3px}.av-trend-pair{height:calc(100% - 36px);width:100%;display:flex;justify-content:center;align-items:end;gap:4px}.av-trend-pair i{display:block;width:min(28%,22px);min-height:2px;border-radius:5px 5px 0 0;background:#ff9200}.av-trend-pair .profit-bar{background:#087f5b}.av-trend-day small,.av-trend-day span{font-size:10px;color:#5f6a7f;white-space:nowrap}.av-trend-day span{font-size:9px;color:#7f899c}.av-product-profit{margin-top:16px}.av-product-profit .av-pnl-note{margin:0 0 12px}.av-product-profit table{width:100%;border-collapse:collapse}.av-product-profit th,.av-product-profit td{padding:9px 8px;border-bottom:1px solid #e4e8ef;text-align:left;font-size:12px}.av-product-profit th{background:#f6f8fc;color:#586783;font-weight:600}.av-product-profit td:nth-child(n+4){white-space:nowrap}@media(max-width:600px){.av-trend-bars{height:160px;gap:3px}.av-trend-pair{gap:2px}.av-trend-pair i{width:32%}.av-trend-day small{font-size:9px}.av-trend-day span{font-size:8px}.av-product-profit{overflow-x:auto}.av-product-profit table{min-width:680px}}
.av-expense-chart-body{display:grid;grid-template-columns:minmax(140px,220px) 1fr;align-items:center;gap:24px}.av-expense-donut{position:relative;width:min(100%,210px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin:auto}.av-expense-donut:before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:125px;aspect-ratio:1;border-radius:50%;background:#fff}.av-expense-donut span{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;font-size:18px;font-weight:600;color:#1f2839}.av-expense-donut small{font-size:10px;font-weight:400;color:#707b90}.av-expense-legend{display:grid;gap:9px}.av-expense-legend>div{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:9px;font-size:12px;color:#4e586c}.av-expense-legend i{width:10px;height:10px;border-radius:3px}.av-expense-legend b{font-weight:500;color:#1d222b;white-space:nowrap}@media(max-width:600px){.av-expense-chart-body{grid-template-columns:1fr;gap:18px}.av-expense-legend{width:100%}}

.av-bulk-products .av-bulk-check{display:flex;align-items:center;gap:12px;line-height:1.5;padding:12px;margin:0;min-width:0;cursor:pointer}
.av-bulk-products .av-bulk-check input[type=checkbox]{width:20px;height:20px;min-width:20px;flex:0 0 20px;accent-color:#6583bc}
.av-bulk-product-list{border:1px solid #dde3ee;border-radius:16px;overflow:hidden;background:#fff}
.av-bulk-product-list .av-bulk-check+.av-bulk-check{border-top:1px solid #eceff6}
.av-bulk-product-list .av-bulk-check:hover{background:linear-gradient(110deg,#fafbfc,#eff2f8)}
.av-bulk-products .av-bulk-check span{min-width:0;overflow-wrap:anywhere}
.av-bulk-products .av-bulk-check small{display:block;color:#51617f}
.av-bulk-products .av-form>.button-primary{background:linear-gradient(120deg,#5b7bb7,#2e4269)!important;color:#fff!important;border:1px solid #3c5789!important;opacity:1!important}
@media(max-width:767px){.av-bulk-products .av-bulk-check{font-size:14px;padding:10px}.av-bulk-products .av-segments{display:flex;flex-wrap:wrap}}
