/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.invisible{visibility:hidden}.visible{visibility:visible}.fixed{position:fixed}.static{position:static}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.contents{display:contents}.hidden{display:none}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}}:root{--ink:#172138;--muted:#778096;--line:#e8ebf1;--navy:#18233a;--orange:#f36f2a;--bg:#f6f7fa}*{box-sizing:border-box}input[type=number]{appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}html{background:var(--bg);-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{color:var(--ink);overscroll-behavior:none;margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;font-size:14px}.auth-screen{background:radial-gradient(circle at 15% 10%,#fff4ed 0,#0000 34%),linear-gradient(145deg,#f8f9fc,#eef2f8);place-items:center;min-height:100dvh;padding:24px;display:grid}.auth-card{background:#fff;border:1px solid #e5e9f0;border-radius:18px;width:min(430px,100%);padding:30px;box-shadow:0 24px 70px #1721381f}.auth-brand{align-items:center;height:64px;margin-bottom:17px;display:flex}.auth-brand img,.auth-loading img{object-fit:contain;object-position:left center;width:210px;max-height:64px}.auth-card h1{margin:7px 0 8px;font-size:25px}.auth-copy{color:var(--muted);margin:0 0 22px;font-size:12px;line-height:1.6}.pin-field{color:#596274;gap:7px;margin-top:13px;font-size:11px;font-weight:650;display:grid}.pin-field input{border:1px solid var(--line);width:100%;height:52px;color:var(--ink);letter-spacing:9px;text-align:center;border-radius:10px;outline:0;padding:0 16px;font-size:22px}.pin-field input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f36f2a1a}.remember-device{color:#626c7e;align-items:center;gap:9px;margin:17px 0;font-size:11px;display:flex}.remember-device input{width:17px;height:17px;accent-color:var(--orange)}.auth-submit{justify-content:center;width:100%;min-height:48px;font-size:12px}.auth-error{color:#c84343;background:#fff0f0;border-radius:8px;margin-top:13px;padding:10px 12px;font-size:11px}.auth-note{color:#9aa1ae;text-align:center;margin-top:13px;font-size:9px;display:block}.auth-loading{text-align:center;color:var(--muted);justify-items:center;gap:14px;display:grid}.auth-loading img{object-position:center}.auth-spinner{border:3px solid #f3d7c7;border-top:3px solid var(--orange);border-radius:50%;width:25px;height:25px;animation:auth-spin .8s linear infinite}@keyframes auth-spin{to{transform:rotate(1turn)}}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.app-icon{flex:none;display:block}.app-shell{min-height:100vh}.sidebar{border-right:1px solid var(--line);z-index:20;background:#fff;flex-direction:column;width:228px;padding:25px 14px 16px;display:flex;position:fixed;inset:0 auto 0 0}.brand{align-items:center;height:54px;padding:0 5px;display:flex}.brand-logo{object-fit:contain;object-position:left center;width:100%;max-width:184px;height:54px;display:block}.sidebar nav{gap:4px;margin-top:25px;display:grid}.sidebar button{color:#6c7589;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:13px;height:43px;padding:0 13px;font-weight:500;display:flex}.sidebar button span{text-align:center;color:#8991a3;width:20px;font-size:19px}.sidebar nav button.active{color:var(--orange);background:#fff3ed;font-weight:700}.sidebar nav button.active span{color:var(--orange)}.sidebar-foot{border-top:1px solid var(--line);margin-top:auto;padding-top:10px}.sidebar-foot>button{width:100%}.profile{border-top:1px solid var(--line);grid-template-columns:36px 1fr 24px;align-items:center;gap:9px;margin-top:13px;padding:16px 4px 0;display:grid}.avatar{color:#c7551f;background:#ffe1d1;border-radius:50%;place-items:center;width:36px;height:36px;font-size:11px;font-weight:700;display:grid}.profile b,.profile small{display:block}.profile b{font-size:12px}.profile small{color:var(--muted);margin-top:2px;font-size:9px}.profile button{padding:0}main{min-height:100vh;margin-left:228px}.topbar{border-bottom:1px solid var(--line);z-index:15;background:#fff;justify-content:space-between;height:88px;padding:0 31px;position:sticky;top:0}.topbar,.topbar-title{align-items:center;display:flex}.topbar-title{min-width:0}.mobile-brand-icon{display:none}.topbar h1{letter-spacing:-.45px;margin:4px 0 0;font-size:21px}.eyebrow{color:#9ba2b0;letter-spacing:.8px;margin:0;font-size:9px;font-weight:700}.sync-state{color:#8790a1;white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:5px;max-width:100%;margin-top:3px;font-size:8px;display:inline-flex;overflow:hidden}.sync-state i{background:#a8afbb;border-radius:50%;flex:none;width:6px;height:6px}.sync-state.sheets{color:#278a5a}.sync-state.sheets i{background:#2ca66b;box-shadow:0 0 0 3px #2ca66b16}.sync-state.loading i{animation:pulse 1s infinite alternate}.sync-state.demo{color:#c16332}.sync-state.demo i{background:var(--orange)}.top-actions{align-items:center;gap:12px;display:flex}.icon-button{border:1px solid var(--line);color:#687087;background:#fff;border-radius:10px;place-items:center;width:40px;height:40px;display:grid;position:relative}.icon-button:disabled{cursor:wait;opacity:.62}.refresh-button.is-loading .app-icon{animation:refresh-spin .8s linear infinite}.notification-button.is-enabled{color:#248c5c;background:#f1fbf5;border-color:#bde7d0}.notification-button.is-enabled .dot{background:#2ca66b}.dot{background:var(--orange);box-sizing:content-box;border:2px solid #fff;border-radius:50%;width:6px;height:6px;position:absolute;top:7px;right:7px}.mobile-menu-button{display:none}.primary{background:var(--orange);color:#fff;border:0;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:0 16px;font-weight:700;display:inline-flex;box-shadow:0 5px 12px #f36f2a20}.page-content{max-width:1550px;margin:auto;padding:21px 31px 38px}.hero-row{justify-content:space-between;align-items:flex-start;min-height:43px;display:flex}.hero-row p{color:var(--muted);margin:0;font-size:12px}.date-pill{border:1px solid var(--line);color:#667087;background:#fff;border-radius:8px;align-items:center;gap:7px;padding:9px 12px;font-size:11px;display:inline-flex}.date-pill .app-icon{color:var(--orange)}.period-switch{background:#f1f3f7;border-radius:9px;flex:none;gap:3px;padding:3px;display:inline-flex}.period-switch button{min-height:34px;padding:0 13px;font-size:10px;font-weight:600}.period-switch button.selected{color:var(--orange);background:#fff;box-shadow:0 2px 7px #1c294214}.stats-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;display:flex}.stats-heading small{color:var(--muted);font-size:10px}.stats-heading .card-title{margin-bottom:4px}.card{border:1px solid var(--line);background:#fff;border-radius:11px;box-shadow:0 3px 12px #1c294209}.metric-grid{grid-template-columns:repeat(4,1fr);gap:14px;display:grid}.metric{min-width:0;padding:17px 18px;position:relative}.metric-icon{float:left;border-radius:9px;place-items:center;width:36px;height:36px;margin-right:12px;font-size:18px;display:grid}.metric-icon.orange,.quick-icon.orange{color:var(--orange);background:#fff0e8}.metric-icon.blue,.quick-icon.blue{color:#3d75d6;background:#ebf3ff}.metric-icon.green,.quick-icon.green{color:#31a36a;background:#e9f8f0}.metric-icon.purple,.quick-icon.purple{color:#765ad2;background:#f1edff}.metric-label{color:var(--muted);padding-top:1px;font-size:10px}.metric-label span{float:right;font-size:15px}.metric-value{letter-spacing:-.5px;white-space:nowrap;margin-top:6px;font-size:20px;font-weight:800}.metric-value small{color:var(--muted);font-size:9px;font-weight:500}.metric-note{clear:both;color:#8b93a2;padding-top:12px;font-size:9px}.metric-note b{color:#2ba26a;margin-right:3px}.metric-note.warn b{color:var(--orange)}.dashboard-grid{grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:14px;margin-top:14px;display:grid}.channels,.revenue-card{min-height:328px;padding:20px}.card-head{justify-content:space-between;align-items:flex-start;display:flex}.card-title{margin:0 0 5px;font-size:13px;font-weight:700}.card-head h2{margin:9px 0 3px;font-size:21px}.card-head small,.quick>small,.top-products small{color:var(--muted);font-size:9px}.card-head small b{color:#2ba26a}.segmented{background:#f5f6f8;border-radius:7px;padding:3px}.segmented button{color:var(--muted);background:0 0;border:0;border-radius:5px;padding:6px 10px;font-size:9px}.segmented button.selected{color:var(--ink);background:#fff;font-weight:600;box-shadow:0 1px 5px #23314c14}.chart{border-bottom:1px solid var(--line);background:repeating-linear-gradient(#0000 0 50px,#edf0f4 51px);grid-template-columns:31px 1fr;height:205px;margin-top:18px;display:grid}.y-labels{color:#9da3af;flex-direction:column;justify-content:space-between;padding-bottom:1px;font-size:8px;display:flex}.bars{align-items:stretch;gap:clamp(5px,2vw,17px);padding:0 5px}.bar-wrap,.bars{align-self:stretch;height:100%;display:flex}.bar-wrap{flex:1;align-items:flex-end}.bar,.bar-wrap{position:relative}.bar{background:linear-gradient(#f7955f,var(--orange));opacity:.92;border-radius:5px 5px 1px 1px;align-self:flex-end;width:100%;max-width:39px;margin:0 auto}.bar:hover{opacity:1}.bar span{background:var(--ink);color:#fff;white-space:nowrap;border-radius:4px;padding:3px 5px;font-size:8px;display:none;position:absolute;top:-24px;left:50%;transform:translate(-50%)}.bar:hover span{display:block}.bar-wrap small{color:#9da3af;white-space:nowrap;font-size:8px;position:absolute;bottom:-18px;left:50%;transform:translate(-50%)}.more{color:#8f97a6;background:0 0;border:0;font-size:18px}.donut{background:conic-gradient(var(--orange) 0 56.3%,#6e52cd 56.3% 87.4%,#2b3449 87.4%);border-radius:50%;place-items:center;width:132px;height:132px;margin:15px auto 16px;display:grid;position:relative}.donut:after{content:"";background:#fff;border-radius:50%;width:82px;height:82px;position:absolute}.donut>div{z-index:1;text-align:center}.donut b,.donut small{display:block}.donut b{font-size:14px}.donut small{color:var(--muted);margin-top:3px;font-size:7px}.legend,.legend>div{gap:8px;display:grid}.legend>div{grid-template-columns:9px 1fr auto;align-items:center}.legend-dot{border-radius:50%;width:7px;height:7px}.legend-dot.shopee{background:var(--orange)}.legend-dot.tiktok{background:#6e52cd}.legend-dot.direct{background:#2b3449}.legend p{margin:0;font-size:9px}.legend p small{color:var(--muted);margin-left:6px;display:inline}.legend b{font-size:10px}.lower-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);gap:14px;margin-top:14px;display:grid}.alerts,.quick{padding:18px 20px}.alerts .card-head{padding-bottom:8px}.alerts .card-head button{color:var(--orange);background:0 0;border:0;font-size:9px;font-weight:600}.alert{border-top:1px solid var(--line);grid-template-columns:34px 1fr auto 10px;align-items:center;gap:10px;padding:10px 0;display:grid}.alert-icon{border-radius:8px;place-items:center;width:31px;height:31px;font-weight:700;display:grid}.alert-icon.orange{color:var(--orange);background:#fff0e8}.alert-icon.purple{color:#765ad2;background:#f1edff}.alert-icon.red{color:#db4b4b;background:#fff0f0}.alert b,.alert small{display:block}.alert b{font-size:10px}.alert small,.alert time{color:var(--muted);margin-top:3px;font-size:8px}.quick-grid{grid-template-columns:1fr 1fr;gap:9px;margin-top:13px;display:grid}.quick-grid button{border:1px solid var(--line);text-align:left;background:#fff;border-radius:8px;grid-template-rows:auto auto;grid-template-columns:31px 1fr;padding:10px;display:grid}.quick-icon{border-radius:7px;grid-row:1/3;place-items:center;width:29px;height:29px;margin-right:9px;font-size:16px;display:grid}.quick-grid b{font-size:9px}.quick-grid small{color:var(--muted);margin-top:2px;font-size:7px}.module-page{padding-top:27px}.module-summary{grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:15px;display:grid}.module-summary>div{border:1px solid var(--line);background:#fff;border-radius:10px;padding:17px 20px}.module-summary b,.module-summary span{display:block}.module-summary b{font-size:20px}.module-summary span{color:var(--muted);margin-top:4px;font-size:10px}.orange-text{color:var(--orange)}.red-text{color:#d84a4a!important}.table-card{overflow:hidden}.table-toolbar{border-bottom:1px solid var(--line);gap:9px;padding:14px 16px;display:flex}.search{border:1px solid var(--line);border-radius:8px;flex:1;align-items:center;gap:8px;min-width:210px;height:39px;padding:0 11px;display:flex}.search span{color:#9299a7;font-size:18px}.search input{border:0;outline:0;width:100%;font-size:10px}.form-grid input,.form-grid select,.table-toolbar select{color:#656f82;min-height:39px;padding:0 11px}.form-grid input,.form-grid select,.soft,.table-toolbar select{border:1px solid var(--line);background:#fff;border-radius:8px;font-size:10px}.soft{color:#5e6779;white-space:nowrap;padding:0 13px;font-weight:600}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:760px}th{text-align:left;color:#9299a7;text-transform:uppercase;letter-spacing:.35px;background:#fafbfc;padding:11px 16px;font-size:8px}td{border-top:1px solid var(--line);white-space:nowrap;padding:13px 16px;font-size:10px}td code{color:#566174;font-size:9px}.product-cell{align-items:center;gap:10px;display:flex}.product-thumb{border-radius:7px;place-items:center;width:34px;height:34px;display:grid;box-shadow:inset 0 0 0 1px #ffffff45}.product-thumb i{border:2px solid #fffa;border-radius:8px 8px 4px 4px;width:17px;height:8px}.status{border-radius:20px;padding:5px 8px;font-size:8px;font-weight:600}.status.success{color:#238a59;background:#eaf8f1}.status.warning{color:#d76028;background:#fff2e9}.status.info{color:#4f6eb1;background:#edf3ff}.status.danger{color:#ce4545;background:#ffeded}.low-stock{color:var(--orange)}.empty{text-align:center;color:var(--muted);padding:50px}.table-title{padding:17px 18px}.table-title>div:last-child{gap:8px;display:flex}.action-tabs,.report-tabs{border-bottom:1px solid var(--line);gap:4px;margin-bottom:18px;display:flex}.action-tabs button,.report-tabs button{color:var(--muted);background:0 0;border:0;padding:10px 14px;font-size:10px}.action-tabs button.active,.report-tabs button.active{color:var(--orange);border-bottom:2px solid var(--orange);font-weight:700}.import-card{background:linear-gradient(100deg,#fff,#fff8f4);grid-template-columns:48px 1fr auto;align-items:center;gap:16px;margin-bottom:14px;padding:20px;display:grid}.import-icon{width:45px;height:45px;color:var(--orange);background:#fff0e8;border-radius:10px;place-items:center;font-size:20px;display:grid}.import-card h2{margin:0 0 5px;font-size:14px}.import-card p{color:var(--muted);margin:0;font-size:9px}.report-grid{grid-template-columns:1.5fr 1fr;gap:14px;display:grid}.report-feature,.top-products{padding:21px}.profit-row{align-items:center;gap:12px;margin-top:25px;display:flex}.profit-row>div{min-width:0}.profit-row b,.profit-row span{display:block}.profit-row span{color:var(--muted);font-size:9px}.profit-row b{margin-top:7px;font-size:13px}.profit-row i{color:#abb1bc}.profit-row .profit{background:#edf9f3;border-radius:8px;margin-left:auto;padding:13px}.profit-row .profit b{color:#24925d;font-size:16px}.top-products ol{margin:0;padding:7px 0 0;list-style:none}.top-products li{border-top:1px solid var(--line);grid-template-columns:25px 1fr auto;align-items:center;padding:11px 0;display:grid}.top-products li>span{width:20px;height:20px;color:var(--orange);background:#fff0e8;border-radius:5px;place-items:center;font-size:9px;font-weight:700;display:grid}.top-products li b,.top-products li small{font-size:9px;display:block}.top-products strong{font-size:10px}.modal-backdrop{z-index:10000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#111a2a9c;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:14px;width:min(570px,100%);padding:23px;box-shadow:0 22px 70px #10182b4a}.modal-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:start;padding-bottom:17px;display:flex}.modal-head h2{margin:5px 0 0}.modal-head button{color:#707889;background:#f5f6f8;border:0;border-radius:50%;width:31px;height:31px;font-size:20px}.form-grid{grid-template-columns:1fr 1fr;gap:14px;padding:20px 0;display:grid}.form-grid label{color:#5b6475;gap:6px;font-size:10px;font-weight:600;display:grid}.form-grid .wide{grid-column:1/-1}.form-grid input,.form-grid select{width:100%}.modal-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:8px;padding-top:16px;display:flex}.modal-actions button{min-height:40px}.toast{z-index:110;color:#fff;background:#18233a;border-radius:9px;padding:13px 17px;font-size:11px;animation:toast-in .25s ease-out;position:fixed;bottom:24px;right:24px;box-shadow:0 10px 30px #11182c44}.toast span{background:#35a66e;border-radius:50%;place-items:center;width:19px;height:19px;margin-right:9px;display:inline-grid}.bottom-nav{display:none}.search .app-icon{color:#9299a7}.soft{justify-content:center;align-items:center;gap:5px;display:inline-flex}@keyframes toast-in{0%{opacity:0;transform:translateY(10px)}}.form-hint{color:var(--muted);background:#f7f8fa;border-radius:8px;margin:-7px 0 17px;padding:10px 12px;font-size:10px;line-height:1.6}.field-hint{color:var(--muted);font-size:9px;font-weight:500}.order-modal{flex-direction:column;max-height:calc(100dvh - 32px);display:flex}.order-form-grid{row-gap:13px;min-height:0;padding-right:3px;overflow-y:auto}.channel-extra-field{background:#fffaf7;border:1px solid #f2e5dc;border-radius:10px;padding:10px 11px;animation:channel-field-in .18s ease-out}.channel-extra-field input,.channel-extra-field select{background:#fff}.order-price-field input{color:var(--ink);font-weight:650}.order-total-preview{color:#596274;background:#fff7f1;border-radius:9px;grid-template-columns:1fr auto;align-items:center;gap:12px;margin:-4px 0 16px;padding:13px 14px;font-size:10px;display:grid}.order-total-preview b{color:var(--orange);font-size:18px}@keyframes channel-field-in{0%{opacity:0;transform:translateY(-4px)}}.order-product-picker{background:#fafbfc;border:1px solid #e8ebf1;border-radius:10px;gap:9px;padding:11px;display:grid}.order-product-search{position:relative}.order-product-search svg{color:#8d97a8;pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.order-product-search input{background:#fff;padding-left:38px}.product-search-empty{color:#e66532;font-size:9px;font-weight:600}.order-meta-cell{gap:3px;min-width:115px;display:grid}.order-meta-cell b{color:#4f596d;font-size:10px}.order-meta-cell small{color:var(--muted);font-size:9px}.shipping-heading-actions{align-items:center;gap:10px;display:flex}.shipping-quick-button{min-height:42px}.shipping-modal{flex-direction:column;width:min(680px,100%);max-height:calc(100dvh - 32px);display:flex}.shipping-modal-body{min-height:0;padding:18px 2px 16px;overflow-y:auto}.shipping-quick-note{color:#6d625c;background:#fff7f2;border-radius:9px;margin:0 0 16px;padding:11px 12px;font-size:10px;line-height:1.55}.shipping-store-field,.shipping-tracking-field{color:#5b6475;gap:7px;font-size:10px;font-weight:650;display:grid}.shipping-store-field select,.shipping-tracking-field input{border:1px solid var(--line);width:100%;min-height:43px;color:var(--ink);background:#fff;border-radius:8px;outline:0;padding:0 12px}.shipping-store-field select:focus,.shipping-tracking-field input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f36f2a16}.shipping-order-picker{margin-top:16px}.shipping-order-picker>div:first-child{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.shipping-order-picker>div:first-child b{font-size:11px}.shipping-order-picker>div:first-child small{color:var(--muted);font-size:9px}.shipping-order-list{border:1px solid var(--line);border-radius:10px;max-height:210px;margin-top:9px;overflow-y:auto}.shipping-order-list>label{border-top:1px solid var(--line);cursor:pointer;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:57px;padding:10px 12px;display:grid}.shipping-order-list>label:first-child{border-top:0}.shipping-order-list>label.selected{box-shadow:inset 3px 0 var(--orange);background:#fff7f2}.shipping-order-list input{accent-color:var(--orange)}.shipping-order-list b,.shipping-order-list small{display:block}.shipping-order-list b{font-size:10px}.shipping-order-list small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:9px;overflow:hidden}.shipping-order-list .empty{padding:25px 12px}.shipping-tracking-field{margin-top:16px}.shipping-tracking-field>div{grid-template-columns:minmax(0,1fr) auto auto;gap:8px;display:grid}.shipping-tracking-field button{min-height:43px}.shipping-tracking-field button.scanning{color:var(--orange);background:#fff7f2;border-color:#ed8a58}.scan-error,.scan-success{border-radius:8px;margin-top:9px;padding:9px 11px;font-size:9px;line-height:1.45}.scan-error{color:#b45a30;background:#fff3ec}.scan-success{color:#238a59;background:#eaf8f1}.scanner-view{background:#111827;border-radius:12px;min-height:220px;margin-top:12px;display:none;position:relative;overflow:hidden}.scanner-view.active{display:block}.scanner-view video{object-fit:cover;width:100%;height:260px;display:block}.scanner-frame{border:2px solid #fff;border-radius:10px;height:88px;position:absolute;top:50%;left:14%;right:14%;transform:translateY(-50%);box-shadow:0 0 0 999px #11182766}.scanner-frame:after{content:"";background:var(--orange);height:2px;box-shadow:0 0 10px var(--orange);position:absolute;top:50%;left:8px;right:8px}.scanner-view small{color:#fff;text-align:center;text-shadow:0 1px 3px #000;font-size:9px;position:absolute;bottom:12px;left:0;right:0}.shipping-code-queue{border:1px solid var(--line);border-radius:10px;margin-top:13px;overflow:hidden}.shipping-code-queue>div{background:#f8f9fb;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.shipping-code-queue>div b{font-size:10px}.shipping-code-queue>div span{color:var(--orange);font-size:9px;font-weight:700}.shipping-code-queue>p{color:var(--muted);text-align:center;margin:0;padding:18px 12px;font-size:9px}.shipping-code-queue ol{max-height:170px;margin:0;padding:0;list-style:none;overflow-y:auto}.shipping-code-queue li{border-top:1px solid var(--line);grid-template-columns:24px minmax(0,1fr) 28px;align-items:center;gap:9px;min-height:42px;padding:6px 9px 6px 12px;display:grid}.shipping-code-queue li>span{width:21px;height:21px;color:var(--orange);background:#fff0e8;border-radius:50%;place-items:center;font-size:8px;font-weight:700;display:grid}.shipping-code-queue li code{color:#344054;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.shipping-code-queue li button{color:#8c94a3;cursor:pointer;background:#f4f5f7;border:0;border-radius:6px;width:27px;height:27px;font-size:16px}.shipping-modal .primary:disabled{cursor:not-allowed;opacity:.55}.store-name-cell{align-items:center;gap:10px;display:flex}.store-name-cell>span{width:34px;height:34px;color:var(--orange);background:#fff2e9;border-radius:8px;place-items:center;display:grid}.channel-badge{border-radius:20px;align-items:center;min-height:25px;padding:0 9px;font-size:9px;font-weight:700;display:inline-flex}.channel-badge.shopee{color:#dc5b26;background:#fff0e9}.channel-badge.tiktok{color:#303847;background:#edf0f5}.category-modal,.store-modal{width:min(520px,100%)}.category-create{grid-template-columns:1fr auto;align-items:end;gap:10px;padding:18px 0;display:grid}.category-create label{color:#5b6475;gap:6px;font-size:10px;font-weight:600;display:grid}.category-create input{border:1px solid var(--line);width:100%;min-height:42px;color:var(--ink);border-radius:8px;outline:none;padding:0 11px;font-size:11px}.category-create input:focus{border-color:#f1743b;box-shadow:0 0 0 3px #ff6d2d16}.category-create button{min-height:42px}.category-list{border:1px solid var(--line);border-radius:10px;max-height:min(360px,45dvh);margin-bottom:16px;overflow-y:auto}.category-row{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;padding:12px 14px;display:flex}.category-row:first-child{border-top:0}.category-row b,.category-row small{display:block}.category-row b{font-size:11px}.category-row small{color:var(--muted);margin-top:3px;font-size:9px}.category-delete{color:#cf4545;cursor:pointer;background:#fff0f0;border:0;border-radius:7px;min-height:32px;padding:0 10px;font-size:10px}.category-delete:disabled{color:#a1a7b2;cursor:not-allowed;background:#f4f5f7}.product-toolbar{grid-template-columns:minmax(230px,1fr) minmax(135px,155px) auto;align-items:center;gap:10px;padding:13px 16px;display:grid}.product-toolbar .category-filter,.product-toolbar .search{width:100%;min-width:0;height:42px}.product-toolbar-actions{justify-content:flex-end;align-items:center;gap:8px;min-width:0;display:flex}.product-toolbar-actions>button{white-space:nowrap;flex:none;min-height:42px;padding:0 12px;line-height:1}.product-toolbar-actions .product-add{min-width:128px;padding:0 16px;box-shadow:0 7px 16px #ff6d2d24}.product-toolbar-actions .product-add:hover{transform:translateY(-1px);box-shadow:0 9px 20px #ff6d2d30}.row-actions{place-items:center;display:inline-grid}.row-actions-trigger{color:#8f97a6;cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;width:32px;height:32px;display:grid}.row-actions-trigger:hover,.row-actions-trigger[aria-expanded=true]{color:var(--ink);background:#f3f5f8}.row-actions-menu{border:1px solid var(--line);background:#fff;border-radius:9px;width:156px;padding:5px;display:grid;box-shadow:0 12px 32px #17213832}.row-actions-portal{z-index:10050;max-width:calc(100vw - 16px);position:fixed}.row-actions-menu button{color:#4f596d;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;min-height:36px;padding:0 10px;font-size:10px}.row-actions-menu button:hover{background:#f5f7fa}.row-actions-menu button.danger{color:#cf4545}.row-actions-menu button.danger:hover{background:#fff0f0}.form-grid input[readonly]{color:#7a8394;background:#f4f5f7}.order-row-actions{align-items:center;gap:3px;display:inline-flex}.order-view-button{color:#7d8798;cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;width:32px;height:32px;display:grid}.order-view-button:focus-visible,.order-view-button:hover{color:#4f6eb1;background:#edf3ff;outline:0}.order-details-modal{width:min(720px,100%);max-height:min(760px,100dvh - 40px);overflow-y:auto}.order-detail-header{border-bottom:1px solid var(--line);grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:18px 0;display:grid}.order-detail-customer,.order-detail-header>div{gap:4px;display:grid}.order-detail-customer span,.order-detail-header span,.order-detail-item small,.order-detail-summary span{color:var(--muted);font-size:9px}.order-detail-header b{overflow-wrap:anywhere;font-size:11px}.order-detail-header .status{width:fit-content;margin-top:1px}.order-detail-customer{border-bottom:1px solid var(--line);padding:15px 0}.detail-section-title{color:var(--ink);margin:0 0 7px;font-size:11px;font-weight:700}.order-detail-customer>span{display:block}.order-detail-items{padding:15px 0}.order-detail-item-list{border:1px solid var(--line);border-radius:9px;overflow:hidden}.order-detail-item{border-top:1px solid var(--line);grid-template-columns:minmax(0,1fr) 170px;gap:14px;padding:12px 13px;display:grid}.order-detail-item:first-child{border-top:0}.order-detail-item>div{align-content:center;gap:3px;display:grid}.order-detail-item>div:last-child{justify-items:end}.order-detail-item b{font-size:10px}.order-detail-item small{font-size:9px}.detail-empty{border:1px dashed var(--line);color:var(--muted);text-align:center;border-radius:9px;padding:18px;font-size:10px}.order-detail-summary{background:#f8f9fb;border-radius:10px;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:14px;display:grid}.order-detail-summary>div{gap:5px;display:grid}.order-detail-summary b{font-size:13px}.order-detail-summary .profit-positive b{color:#159a67}.order-detail-summary .profit-negative b{color:#cf4545}@keyframes pulse{50%{opacity:.5}}@keyframes refresh-spin{to{transform:rotate(1turn)}}@media (max-width:600px){.auth-screen{align-items:center;padding:14px}.auth-card{border-radius:16px;padding:24px 20px}.auth-card h1{font-size:22px}.pin-field input{min-height:54px;font-size:24px}}@media (max-width:1050px){.metric-grid{grid-template-columns:1fr 1fr}.dashboard-grid,.lower-grid{grid-template-columns:1fr}.channels{grid-template-columns:1fr 160px 1fr;align-items:center;min-height:auto;display:grid}.channels .card-head{grid-column:1}.channels .donut{grid-area:1/2}.channels .legend{grid-area:1/3}.table-toolbar{flex-wrap:wrap}.report-grid{grid-template-columns:1fr}}@media (max-width:720px){body,html{width:100%;min-height:100%;overflow-x:hidden}body{background:var(--bg);padding:0;font-size:14px}.app-shell{min-height:100dvh;display:block;overflow:visible}.sidebar{display:none}main{width:100%;height:auto;min-height:100dvh;padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));margin-left:0;overflow:visible}.topbar{min-height:calc(76px + env(safe-area-inset-top));height:calc(76px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0;flex:none}.topbar-title{gap:10px;min-width:0}.mobile-brand-icon{border-radius:10px;flex:none;width:40px;height:40px;display:block;box-shadow:0 4px 12px #17213812}.topbar .eyebrow{display:none}.topbar h1{white-space:nowrap;text-overflow:ellipsis;max-width:calc(100vw - 150px);font-size:clamp(18px,5vw,23px);line-height:1.2;overflow:hidden}.sync-state{margin-top:7px;font-size:9px}.sync-state i{width:7px;height:7px}.notification-button,.top-actions .primary{display:none}.icon-button{border-radius:13px;width:42px;height:42px}.page-content{padding:20px 16px 32px}.hero-row{min-height:46px}.hero-row p{font-size:12px;line-height:1.45}.date-pill{display:none}.metric-grid{gap:10px}.metric{min-height:116px;padding:15px}.metric-icon{width:38px;height:38px;margin-right:10px}.metric-icon .app-icon{width:19px;height:19px}.metric-label{white-space:nowrap;padding-top:2px;font-size:11px}.metric-label span{display:none}.metric-value{margin-top:7px;font-size:22px}.metric-note,.metric-value small{font-size:10px}.metric-note{padding-top:12px}.dashboard-grid,.lower-grid{gap:10px;margin-top:10px}.revenue-card{min-height:0;padding:18px}.card-title{font-size:15px}.card-head h2{font-size:26px}.card-head small{font-size:10px}.segmented button{min-height:40px;padding:8px 13px;font-size:11px}.chart{height:190px;margin-top:16px}.bars{gap:5px}.bar-wrap:nth-child(2n) small{display:none}.empty{padding:24px 12px;font-size:11px;line-height:1.5}.channels{padding:18px;display:block}.channels .donut{margin:16px auto}.quick{display:none}.alerts{padding:17px}.alert{grid-template-columns:36px 1fr 10px}.alert time{display:none}.bottom-nav{z-index:9999;border-top:1px solid var(--line);padding:0 0 calc(4px + env(safe-area-inset-bottom,0px));box-sizing:border-box;background:#fff;min-height:60px;display:block;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -6px 24px #1721380a}.bottom-nav-items{justify-content:space-around;width:100%;transform:translateY(11px)}.bottom-nav button,.bottom-nav-items{align-items:center;height:56px;display:flex}.bottom-nav button{color:#8b93a2;background:0 0;border:0;flex-direction:column;flex:20%;justify-content:center;min-width:0;padding:0 2px}.bottom-nav button span{place-items:center;display:grid}.bottom-nav button.active{color:var(--orange);font-weight:700}.module-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.module-summary>div{padding:14px 11px}.module-summary b{font-size:17px}.module-summary span{font-size:9px;line-height:1.35}.table-toolbar{gap:8px;padding:11px}.search{flex-basis:100%;min-height:44px}.table-toolbar select{flex:1;min-height:44px}.desktop-add{display:none}.soft{min-height:44px}.product-add{flex:1 0 100%;order:-1;min-height:46px;font-size:12px}.table-scroll{margin:0}td,th{padding:12px 13px;font-size:11px}.product-thumb{width:32px;height:32px}.action-tabs,.report-tabs{white-space:nowrap;scrollbar-width:none;overflow-x:auto}.action-tabs button,.report-tabs button{min-height:44px;font-size:11px}.import-card{grid-template-columns:44px 1fr;padding:16px}.import-card .primary{grid-column:1/-1;min-height:44px}.profit-row{flex-wrap:wrap}.profit-row .profit{width:100%;margin-left:0}.report-feature,.top-products{padding:17px}.form-grid{grid-template-columns:1fr;max-height:58vh;overflow-y:auto}.form-grid .wide{grid-column:auto}.form-grid input,.form-grid select{min-height:46px;font-size:16px}.modal-backdrop{align-items:end;padding:12px}.modal{border-radius:18px 18px 0 0;max-height:88dvh;padding:18px}.toast{left:14px;right:14px;bottom:calc(70px + env(safe-area-inset-bottom));text-align:center}.hero-row{align-items:center;gap:12px}.hero-row p{max-width:52%}.period-switch button{min-height:40px;padding:0 10px;font-size:10px}.stats-heading{align-items:flex-end;margin-bottom:12px}.stats-heading>div:first-child{min-width:0}.stats-heading small{line-height:1.35;display:block}.bottom-nav button{gap:4px;font-size:11px}.bottom-nav button span{width:26px;height:26px}.bottom-nav button .app-icon{width:24px;height:24px}}.costs-page{padding-top:24px}.costs-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;display:flex}.costs-heading h2{margin:5px 0 4px;font-size:21px}.costs-heading p:not(.eyebrow){color:var(--muted);margin:0;font-size:11px}.costs-range-card{align-items:center;gap:14px;margin-bottom:14px;padding:12px 14px;display:flex}.costs-range-card .costs-visual-picker{align-items:center;width:auto;min-width:0;margin:0;display:flex}.costs-range-card .costs-visual-picker .visual-time-range-picker{width:fit-content;min-width:0;max-width:100%}.costs-range-card .costs-visual-picker .time-range-trigger{width:fit-content;max-width:100%}.costs-range-switch{border:1px solid var(--line);background:#f4f6f9;border-radius:9px;gap:3px;padding:3px;display:inline-flex}.costs-range-switch button{min-height:34px;color:var(--muted);background:0 0;border:0;border-radius:7px;padding:0 15px;font-size:10px;font-weight:700}.costs-range-switch button.selected{color:var(--orange);background:#fff;box-shadow:0 2px 7px #1c294214}.costs-date-picker{border:1px solid var(--line);min-height:39px;color:var(--muted);border-radius:8px;align-items:center;gap:7px;padding:0 11px;font-size:10px;font-weight:600;display:inline-flex}.costs-date-picker .app-icon{color:var(--orange)}.costs-date-picker input{width:124px;color:var(--ink);font-variant-numeric:tabular-nums;background:0 0;border:0;outline:0;font-size:11px}.costs-range-label{color:var(--muted);white-space:nowrap;margin-left:auto;font-size:10px}.costs-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px}.costs-summary>div{min-height:92px}.cost-category-card{margin-bottom:14px}.cost-category-card .table-title>div:last-child{display:block}.cost-category-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 22px;padding:0 18px 15px;display:grid}.cost-category-row{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;min-height:38px;font-size:10px;display:flex}.cost-category-row span{color:#596274;align-items:center;gap:7px;min-width:0;display:flex}.cost-category-row span i{background:var(--orange);border-radius:50%;flex:none;width:7px;height:7px}.cost-category-row b{white-space:nowrap;font-size:11px}.costs-table-card .card-head{align-items:center}.cost-search{flex:0 300px;min-width:200px;height:38px}.costs-table td:last-child,.costs-table td:nth-child(4),.costs-table th:last-child,.costs-table th:nth-child(4){text-align:right}.cost-category-badge{color:#c85d2d;background:#fff1e9;border-radius:20px;align-items:center;min-height:24px;padding:0 8px;font-size:9px;font-weight:700;display:inline-flex}.cost-amount b{color:var(--orange);font-size:11px}.cost-note{max-width:230px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.cost-modal{width:min(560px,100%)}.cost-modal-note{color:#7b6254;background:#fff7f1;border-radius:9px;margin:15px 0 2px;padding:11px 12px;font-size:10px;line-height:1.5}.cost-form-grid{padding-top:17px}.cost-category-field{min-width:0}.cost-category-control{grid-template-columns:minmax(0,1fr) auto;gap:7px;min-width:0;display:grid}.cost-category-control>select{min-width:0}.cost-add-type{min-height:39px;color:var(--orange);background:#fffaf7;border-color:#ffcbb4;padding:0 10px}.cost-new-type{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto 30px;gap:5px;display:grid}.cost-new-type input{min-width:0;min-height:39px;color:var(--ink);background:#fffaf7;border:1px solid #ffc4a8;border-radius:8px;outline:0;padding:0 10px;font-size:10px}.cost-new-type input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f36f2a1a}.cost-new-type .soft{min-height:39px;color:var(--orange);border-color:#ffcbb4;padding:0 11px}.cost-cancel-type{border:1px solid var(--line);width:30px;min-height:39px;color:var(--muted);background:#fff;border-radius:8px;font-size:17px}@media (max-width:720px){.costs-page{padding-top:18px}.costs-heading{flex-direction:column;align-items:stretch;gap:11px}.costs-heading h2{font-size:20px}.costs-heading .primary{width:100%;min-height:44px}.costs-range-card{grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:10px;display:grid}.costs-range-card .costs-visual-picker{justify-content:flex-start}.costs-range-card .costs-visual-picker .visual-time-range-menu{width:100%}.costs-range-switch{grid-column:1/-1;justify-content:space-between;width:100%}.costs-range-switch button{flex:1;min-height:38px;padding:0 8px;font-size:10px}.costs-date-picker{width:100%;min-width:0}.costs-date-picker span{display:none}.costs-date-picker input{width:100%;min-width:0}.costs-range-label{text-align:right;align-self:center;margin-left:0}.costs-summary{gap:8px}.costs-summary>div{min-height:84px;padding:13px 10px}.costs-summary b{font-size:16px}.cost-category-list{grid-template-columns:1fr;padding:0 12px 12px}.costs-table-card .card-head{gap:9px;display:grid}.cost-search,.costs-table{width:100%;min-width:0}.costs-table thead{display:none}.costs-table tbody{gap:9px;padding:10px;display:grid}.costs-table tr{background:#fff;border:1px solid #e5eaf2;border-radius:12px;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:11px;display:grid;box-shadow:0 4px 14px #1721380b}.costs-table td{white-space:normal;border:0;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:0;display:flex;text-align:left!important}.costs-table td:before{content:attr(data-label);color:#929bac;letter-spacing:.04em;text-transform:uppercase;font-size:8px;font-weight:800;display:block}.costs-table td:first-child{grid-area:1/1}.costs-table td:nth-child(2){grid-area:1/2;align-items:flex-end}.costs-table td:nth-child(3){grid-area:2/1/auto/-1}.costs-table td:nth-child(4){grid-area:3/1}.costs-table td:nth-child(5){grid-area:3/2;align-items:flex-end}.costs-table td:nth-child(6){border-top:1px solid #edf0f5;grid-area:4/1/auto/-1;align-items:flex-end;padding-top:7px}.costs-table td:nth-child(6):before{display:none}.cost-note{max-width:100%}.cost-modal{width:100%;max-height:88dvh}.cost-form-grid{grid-template-columns:1fr;max-height:none;overflow:visible}}.reconciliation-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.reconciliation-report{margin-bottom:14px;overflow:hidden}.reconciliation-head{justify-content:space-between;align-items:center;gap:14px;display:flex}.reconciliation-head select{border:1px solid var(--line);color:#5e6779;background:#fff;border-radius:8px;min-width:170px;min-height:40px;padding:0 30px 0 12px;font-size:10px;font-weight:600}.reconciliation-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 18px 16px;display:grid}.reconciliation-kpis>div{background:#f8f9fb;border-radius:8px;gap:5px;padding:12px;display:grid}.reconciliation-kpis span{color:var(--muted);font-size:9px}.reconciliation-kpis b{font-size:13px}.reconciliation-kpis .positive b{color:#159a67}.reconciliation-kpis .negative b{color:#cf4545}.reconciliation-table td,.reconciliation-table th{white-space:nowrap}.reconciliation-table .positive-value{color:#159a67;font-weight:700}.channel-chart-body{grid-template-columns:150px minmax(0,1fr);gap:12px;margin-top:8px}.channel-chart-body .donut{margin:15px auto}.channel-legend>div{grid-template-columns:8px minmax(0,1fr) auto;gap:7px}@media (max-width:1050px){.channels{display:block}}.time-range-picker{min-width:0;position:relative}.time-range-trigger{border:1px solid var(--line);color:#586173;text-align:left;background:#fff;border-radius:8px;grid-template-columns:auto minmax(0,max-content) auto;justify-content:start;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 11px;font-size:10px;display:grid}.time-range-trigger span{white-space:nowrap}.time-range-trigger b{color:#424b5d;text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.time-range-menu{z-index:20;border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-columns:160px 1fr;width:410px;display:grid;position:absolute;top:calc(100% + 6px);right:0;overflow:hidden;box-shadow:0 12px 30px #1c263a26}.time-range-presets{border-right:1px solid var(--line);align-content:start;gap:2px;padding:8px;display:grid}.time-range-presets button{color:#555e6e;text-align:left;background:0 0;border:0;border-radius:5px;justify-content:space-between;align-items:center;min-height:32px;padding:0 9px;font-size:11px;display:flex}.time-range-presets button.active,.time-range-presets button:hover{color:var(--orange);background:#fff3ed}.time-range-presets button span{color:#9098a6;font-size:18px;line-height:1}.time-range-divider{background:var(--line);height:1px;margin:6px 9px;display:block}.time-range-detail{align-content:center;gap:12px;padding:16px;display:grid}.time-range-detail label{color:var(--muted);gap:6px;font-size:10px;font-weight:600;display:grid}.time-range-detail input{border:1px solid var(--line);min-height:38px;color:var(--ink);border-radius:7px;padding:0 9px;font-size:12px}.time-range-detail .primary{min-height:38px}.dashboard .period-switch,.dashboard-time-range{display:none}.dashboard-time-range{margin:0 0 12px;display:none!important}.dashboard-time-range .time-range-picker{width:min(100%,430px)}.dashboard>.visual-time-range-picker{justify-content:flex-end;width:100%;margin:0 0 12px;display:flex}.dashboard>.visual-time-range-picker .time-range-picker{width:min(100%,430px)}.dashboard>.visual-time-range-picker{width:364px;min-width:364px;margin-left:auto;display:block}.dashboard-visual-time-range{justify-content:flex-end;width:100%;margin:0 0 12px;display:flex}.dashboard-visual-time-range .visual-time-range-picker{width:fit-content;min-width:0;max-width:100%}.dashboard-visual-time-range .time-range-trigger{width:fit-content;max-width:100%}.orders-visual-time-range{justify-content:flex-end;width:100%;margin:0 0 14px;display:flex}.orders-visual-time-range .visual-time-range-picker{width:fit-content;min-width:0;max-width:100%}.orders-visual-time-range .time-range-trigger{width:fit-content;max-width:100%}.settlements-range-shell .reconciliation-report .reconciliation-head>.time-range-picker{display:none!important}.reconciliation-visual-picker{justify-content:flex-end;max-width:1550px;margin:0 auto;padding:14px 31px 0;display:flex}.reconciliation-visual-picker .visual-time-range-picker{width:fit-content;min-width:0;max-width:100%}.reconciliation-visual-picker .time-range-trigger{width:fit-content;max-width:100%}.visual-time-range-menu{grid-template-columns:150px 1fr;width:430px}.visual-time-range-calendar{min-width:0}.visual-calendar-head{border-bottom:1px solid var(--line);text-align:center;grid-template-columns:32px 1fr 32px;align-items:center;min-height:44px;display:grid}.visual-calendar-head b{color:#4c5668;font-size:13px;font-weight:500}.visual-calendar-head button{color:#929aa8;background:0 0;border:0;min-height:32px;font-size:22px}.visual-day-grid,.visual-weekdays{grid-template-columns:repeat(7,1fr);padding:7px 10px 0;display:grid}.visual-weekdays span{color:#7d8592;text-align:center;font-size:10px}.visual-day-grid{padding-top:4px;padding-bottom:10px}.visual-day-grid button,.visual-month-grid button,.visual-year-grid button{color:#4c5668;background:0 0;border:0;border-radius:5px;min-height:31px;font-size:11px}.visual-day-grid button.selected,.visual-day-grid button:hover,.visual-month-grid button.selected,.visual-month-grid button:hover,.visual-year-grid button.selected,.visual-year-grid button:hover{color:var(--orange);background:#fff0e9}.visual-day-grid button.muted{color:#bdc2ca}.visual-month-grid{grid-template-columns:repeat(3,1fr);gap:9px 7px;padding:17px 14px;display:grid}.visual-month-grid button,.visual-year-grid button{min-height:42px;font-size:12px}.visual-year-grid{grid-template-columns:repeat(3,1fr);gap:9px 7px;padding:17px 14px;display:grid}.channels{flex-direction:column;display:flex;overflow:hidden}.channel-chart-body{flex:1;align-items:center;gap:20px;min-height:218px;margin-top:10px;display:grid}.channel-chart-body .donut{width:168px;height:168px;margin:0 auto}.channel-chart-body .donut:after{width:102px;height:102px}.channel-chart-body .donut b{font-size:16px}.channel-chart-body .donut small{font-size:8px}.donut-percent{z-index:2;color:#fff;letter-spacing:-.1px;text-shadow:0 1px 2px #17213880;white-space:nowrap;pointer-events:none;font-size:10px;font-weight:800;line-height:1;position:absolute;transform:translate(-50%,-50%)}.channel-legend>div{background:#fafbfc;border:1px solid #edf0f4;border-radius:8px;grid-template-columns:9px minmax(0,1fr) auto auto;min-width:0}.channel-legend p{gap:3px;display:grid}.channel-legend p b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.channel-legend p small{color:var(--muted);margin:0;font-size:8px}.channel-legend .channel-share{color:var(--orange);white-space:nowrap;font-size:9px;font-weight:700}.channel-legend strong{color:var(--ink);white-space:nowrap;font-size:10px}@media (max-width:1050px) and (min-width:721px){.channels{display:flex}.channel-chart-body{grid-template-columns:minmax(170px,220px) minmax(0,1fr);gap:24px}}@media (max-width:720px){.channels{padding:18px;display:flex}.channel-chart-body .donut:after{width:104px;height:104px}.channel-legend>div{grid-template-columns:9px minmax(0,1fr) auto auto;padding:9px 10px}.channel-legend p b{text-overflow:clip;white-space:normal;line-height:1.25;overflow:visible}.channel-legend p small{font-size:9px}.channel-legend .channel-share{font-size:10px}.channel-legend strong{font-size:11px}.channel-chart-body{grid-template-columns:1fr;gap:12px;min-height:0;margin-top:12px}.channel-chart-body .donut{width:172px;height:172px;margin:0 auto 8px}.reconciliation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.reconciliation-head{gap:10px;display:grid}.reconciliation-head select{width:100%;min-height:44px;font-size:14px}.reconciliation-kpis{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 11px 12px}.reconciliation-kpis>div{padding:10px}.reconciliation-kpis b{font-size:12px}.time-range-picker{width:100%;min-width:0}.time-range-trigger{min-height:46px;font-size:13px}.time-range-menu{top:auto;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));grid-template-columns:1fr;width:auto;max-height:min(70dvh,520px);position:fixed;left:12px;overflow-y:auto}.time-range-presets{border-right:0;border-bottom:1px solid var(--line)}.time-range-presets button{min-height:42px;font-size:14px}.time-range-detail{padding:14px}.dashboard-time-range{justify-content:stretch}.dashboard-time-range .time-range-picker{width:100%}.dashboard>.visual-time-range-picker{justify-content:stretch}.dashboard>.visual-time-range-picker .time-range-picker{width:100%}.dashboard>.visual-time-range-picker{width:100%;min-width:0;margin-left:0}.dashboard-visual-time-range{justify-content:flex-end;width:100%;margin:0 0 10px}.dashboard-visual-time-range .visual-time-range-picker{width:fit-content;min-width:0;max-width:100%}.dashboard-visual-time-range .time-range-trigger{grid-template-columns:auto minmax(0,max-content) auto;justify-content:start;gap:6px;min-height:42px;padding:0 9px;font-size:10px}.dashboard-visual-time-range .time-range-trigger b{text-align:left;white-space:nowrap;max-width:100%;font-size:10px;line-height:1.2;overflow:hidden}.dashboard-visual-time-range .visual-time-range-menu{grid-template-columns:110px 1fr;width:100%;max-height:min(68dvh,500px);position:absolute;inset:calc(100% + 6px) 0 auto auto}.dashboard-visual-time-range .time-range-presets button{min-height:36px;padding:0 7px;font-size:11px}.dashboard-visual-time-range .visual-calendar-head{min-height:38px}.dashboard-visual-time-range .visual-day-grid,.dashboard-visual-time-range .visual-weekdays{padding-left:7px;padding-right:7px}.orders-visual-time-range{justify-content:flex-end;margin:0 0 12px}.orders-visual-time-range .visual-time-range-picker{width:fit-content;min-width:0;max-width:100%}.orders-visual-time-range .time-range-trigger{grid-template-columns:auto minmax(0,max-content) auto;justify-content:start;gap:6px;min-height:42px;padding:0 9px;font-size:10px}.orders-visual-time-range .time-range-trigger b{text-align:left;white-space:nowrap;max-width:100%;font-size:10px;line-height:1.2;overflow:hidden}.orders-visual-time-range .visual-time-range-menu{grid-template-columns:110px 1fr;width:100%;max-height:min(68dvh,500px);position:absolute;inset:calc(100% + 6px) 0 auto auto}.orders-visual-time-range .time-range-presets button{min-height:36px;padding:0 7px;font-size:11px}.orders-visual-time-range .visual-calendar-head{min-height:38px}.orders-visual-time-range .visual-day-grid,.orders-visual-time-range .visual-weekdays{padding-left:7px;padding-right:7px}.reconciliation-visual-picker{justify-content:stretch;padding:10px 12px 0}.reconciliation-visual-picker .visual-time-range-picker{width:fit-content;min-width:0;max-width:100%}.visual-time-range-menu{top:auto;right:12px;bottom:calc(76px + env(safe-area-inset-bottom));grid-template-columns:150px 1fr;width:auto;max-height:min(76dvh,560px);position:fixed;left:12px;overflow-y:auto}.visual-time-range-menu .time-range-presets{border-right:1px solid var(--line);border-bottom:0}.category-create{grid-template-columns:1fr}.category-create input{min-height:46px;font-size:16px}.category-create button{min-height:46px}.category-list{max-height:42dvh}.category-manage{flex:1}}@media (min-width:721px) and (max-width:1250px){.product-toolbar{grid-template-columns:minmax(190px,1fr) 118px auto;gap:8px}.product-toolbar-actions{gap:6px}.product-toolbar-actions>button{min-width:0;padding:0 9px;font-size:10px}.product-toolbar-actions .product-add{min-width:124px;padding:0 12px}}@media (max-width:720px){.product-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:11px;display:grid}.product-toolbar .search{grid-column:1/-1;min-height:46px}.product-toolbar .category-filter{grid-column:1/-1;min-height:46px;font-size:13px}.product-toolbar-actions{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;display:grid}.product-toolbar-actions>button{width:100%;min-width:0;min-height:44px;padding:0 9px;font-size:10px}.product-toolbar-actions .product-add{grid-area:1/1/auto/-1;min-height:48px;font-size:12px;box-shadow:0 8px 18px #ff6d2d28}}@media (max-width:359px){.metric-grid{grid-template-columns:1fr}.metric{min-height:96px}.metric-note{clear:none;padding-left:48px}.module-summary{grid-template-columns:1fr}.module-summary>div{grid-template-columns:auto 1fr;align-items:center;gap:12px;display:grid}.module-summary span{margin:0}}.mobile-order-add{display:none}.orders-summary{grid-template-columns:repeat(5,minmax(0,1fr))}@media (max-width:720px){.orders-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.orders-summary>div:last-child{grid-column:1/-1}}@media (max-width:359px){.orders-summary{grid-template-columns:1fr}}@media (max-width:720px){.card,.metric-grid,.module-summary,.page-content,main{min-width:0}.modal-backdrop{padding:max(16px,env(safe-area-inset-top,0px)) 12px calc(16px + env(safe-area-inset-bottom,0px));place-items:center;overflow-y:auto}.modal{max-height:calc(100dvh - 32px - env(safe-area-inset-bottom,0px));border-radius:18px}.page-content,main{width:100%}.hero-row{flex-direction:column;align-items:stretch;gap:12px}.hero-row p{width:100%;max-width:none}.hero-row .period-switch{width:100%}.hero-row .period-switch button{flex:1}.orders-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}.orders-toolbar .search{grid-column:1/-1;width:100%;min-width:0}.orders-toolbar select{width:100%;min-width:0}.orders-shop-filter{grid-column:2}.order-details-modal{max-height:calc(88dvh - env(safe-area-inset-bottom,0px));padding:18px}.order-detail-header{grid-template-columns:repeat(2,minmax(0,1fr))}.order-detail-item{grid-template-columns:minmax(0,1fr) auto;gap:10px}.order-detail-item>div:last-child{justify-items:end}.order-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mobile-order-add{grid-column:1/-1;width:100%;min-width:0;min-height:44px;padding:0 10px;display:inline-flex}.table-title{flex-direction:column;align-items:stretch;gap:13px}.table-title>div+div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;display:grid}.table-title>div+div button{width:100%;min-width:0;min-height:44px;padding:0 9px}.table-scroll{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;width:100%;max-width:100%;overflow-x:auto}.shipping-heading{flex-direction:column;align-items:stretch;gap:12px}.shipping-heading-actions{grid-template-columns:minmax(0,1fr);gap:8px;display:grid}.shipping-heading-actions .period-switch{width:100%}.shipping-heading-actions .period-switch button{flex:1}.shipping-quick-button{width:100%;min-height:46px}.shipping-modal{width:100%;max-height:min(760px,calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px));padding:16px 14px calc(14px + env(safe-area-inset-bottom,0px));overflow:hidden}.shipping-modal .modal-actions,.shipping-modal .modal-head{flex:none}.shipping-modal .modal-head{padding-bottom:13px}.shipping-modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:auto;min-height:0;padding-top:15px;overflow-y:auto}.shipping-store-field select,.shipping-tracking-field input{min-height:46px;font-size:16px}.shipping-order-picker>div:first-child{gap:3px;display:grid}.shipping-order-list{max-height:240px}.shipping-order-list>label{grid-template-columns:18px minmax(0,1fr)}.shipping-order-list>label .status{grid-column:2;justify-self:start}.shipping-tracking-field>div{grid-template-columns:1fr}.shipping-tracking-field button{min-height:46px}.scanner-view video{height:min(180px,28dvh);min-height:145px}}@media (max-width:480px){.page-content,.topbar{padding-left:13px;padding-right:13px}.topbar h1{max-width:calc(100vw - 136px)}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric{grid-template-rows:auto auto 1fr;grid-template-columns:38px minmax(0,1fr);align-items:start;column-gap:9px;min-height:142px;padding:13px;display:grid}.metric-icon{float:none;grid-area:1/1;width:38px;height:38px;margin:0}.metric-label{white-space:normal;overflow-wrap:anywhere;grid-area:1/2;min-width:0;padding:0;line-height:1.3}.metric-value{white-space:nowrap;text-overflow:clip;grid-area:2/1/auto/-1;min-width:0;margin-top:10px;font-size:clamp(19px,5.5vw,24px);line-height:1.15;overflow:visible}.metric-value small{white-space:normal;display:inline}.metric-note{clear:none;white-space:normal;grid-area:3/1/auto/-1;align-self:end;min-width:0;padding-top:10px;line-height:1.35}.module-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.module-summary>div{min-width:0;padding:14px}.module-summary>div:last-child:nth-child(odd){grid-column:1/-1}.module-summary b{overflow-wrap:anywhere;min-width:0;font-size:clamp(16px,5vw,20px);line-height:1.2}.action-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;display:grid}.action-tabs button{white-space:normal;min-width:0;padding-left:5px;padding-right:5px;line-height:1.25}.inventory-table{width:100%;min-width:0}.inventory-table thead{display:none}.inventory-table tbody{display:grid}.inventory-table tr{border-top:1px solid var(--line);grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;padding:11px 14px;display:grid}.inventory-table td{white-space:normal;border:0;flex-direction:column;align-items:flex-start;min-width:0;padding:7px 0;line-height:1.35;display:flex}.inventory-table td:nth-child(2){grid-area:1/1/auto/-1;font-size:12px}.inventory-table td:not(:nth-child(2)):before{color:#9299a7;letter-spacing:.3px;text-transform:uppercase;margin-bottom:4px;font-size:8px;font-weight:700}.inventory-table td:first-child:before{content:"SKU"}.inventory-table td:nth-child(3):before{content:"Tồn hiện tại"}.inventory-table td:nth-child(4):before{content:"Ngưỡng cảnh báo"}.inventory-table td:nth-child(5):before{content:"Giá trị tồn"}.inventory-table td:nth-child(6):before{content:"Trạng thái"}.inventory-page{padding-top:12px}.inventory-page .action-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.inventory-page .action-tabs button{font-size:10px}.inventory-page .action-tabs{border:1px solid var(--line);background:#fff;border-radius:11px;margin-bottom:12px;padding:3px}.inventory-page .action-tabs button{border-radius:8px;min-height:40px}.inventory-page .action-tabs button.active{background:#fff3eb;border-bottom:0}.inventory-page .module-summary{margin-bottom:12px}.inventory-page .module-summary>div{border-radius:11px;flex-direction:column;justify-content:center;min-height:74px;padding:12px;display:flex}.inventory-page .module-summary b{font-size:18px}.inventory-page .module-summary span{margin-top:5px;font-size:9px}.inventory-page .table-card{border-radius:13px}.inventory-page .inventory-card-head{padding:14px;display:block}.inventory-page .inventory-card-head>div:first-child{margin-bottom:12px}.inventory-page .inventory-card-head .card-title{font-size:13px}.inventory-page .inventory-card-head small{margin-top:4px;font-size:9px;display:block}.inventory-page .inventory-card-head>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.inventory-page .inventory-search,.inventory-page .inventory-stock-filter{min-height:44px}.inventory-page .inventory-card-head .primary,.inventory-page .inventory-card-head .soft{min-height:44px;font-size:11px}.inventory-page .inventory-table tbody{background:#f8f9fb;gap:8px;padding:0 10px 8px}.inventory-page .inventory-table tr{border:1px solid var(--line);background:#fff;border-radius:10px;padding:12px 10px;box-shadow:0 2px 8px #1d29390a}.inventory-page .inventory-table td:nth-child(2){font-size:12px;line-height:1.4}.inventory-page .inventory-table td:first-child code{overflow-wrap:anywhere;font-size:9px}.inventory-page .inventory-table td:nth-child(3) b{font-size:15px}.inventory-page .inventory-table td:nth-child(5){color:#344054;font-weight:700}.inventory-page .inventory-table td:nth-child(6){align-items:flex-start}}@media (max-width:359px){.metric-grid,.module-summary{grid-template-columns:1fr}.module-summary>div:last-child:nth-child(odd){grid-column:auto}.module-summary>div{display:block}.metric-note{padding-left:0}}.shipping-input-hint{color:var(--muted);font-size:8px;font-weight:500;line-height:1.45}.quick-draft-banner{color:#9d4d25;background:#fff7f1;border:1px solid #f3c8ad;border-radius:10px;align-items:center;gap:11px;margin:0 0 14px;padding:12px 14px;display:flex}.quick-draft-banner>span{color:#d65d27;background:#ffe7d7;border-radius:8px;flex:0 0 30px;place-items:center;width:30px;height:30px;font-weight:800;display:grid}.quick-draft-banner b,.quick-draft-banner small{display:block}.quick-draft-banner b{font-size:10px}.quick-draft-banner small{color:#8a6655;margin-top:3px;font-size:9px;line-height:1.45}.quick-draft-banner.overdue{color:#b63c3c;background:#fff2f2;border-color:#efb6b6}.quick-draft-banner.overdue>span{color:#c94545;background:#ffe0e0}.quick-draft-row{background:#fffcf9}.order-status-cell{justify-items:start;gap:5px;display:grid}.order-status-cell small{color:#bd642f;font-size:8px;font-weight:600}.order-status-cell small.overdue{color:#cf4545}.order-products-cell{gap:3px;min-width:170px;display:grid}.order-products-cell span{line-height:1.35}.order-products-cell span+span{color:#596477;border-top:1px dashed #e5e8ee;padding-top:3px}@media (max-width:720px){.quick-draft-banner{align-items:flex-start;margin-bottom:10px;padding:11px 12px}.quick-draft-banner b{font-size:11px;line-height:1.4}.quick-draft-banner small{font-size:10px}}.multi-item-order-modal{width:min(700px,100%)}.order-items-section{gap:11px;display:grid}.order-items-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.order-items-heading b,.order-items-heading small{display:block}.order-items-heading b{color:var(--ink);font-size:11px}.order-items-heading small{color:var(--muted);margin-top:3px;font-size:9px;font-weight:500}.add-order-item{min-height:36px;padding:0 11px}.add-order-item:disabled{cursor:not-allowed;opacity:.5}.order-items-list{gap:10px;display:grid}.order-item-card{background:#fafbfc;border:1px solid #e4e8ef;border-radius:11px;min-width:0;padding:11px}.order-item-title{color:#687286;text-transform:uppercase;letter-spacing:.35px;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:9px;font-weight:700;display:flex}.order-item-title button{color:#cf5555;cursor:pointer;background:0 0;border:0;font-size:9px}.product-combobox{min-width:0}.product-combobox-trigger{border:1px solid var(--line);width:100%;min-height:48px;color:var(--ink);text-align:left;cursor:pointer;background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:8px 11px;display:flex}.product-combobox-trigger>span{min-width:0}.product-combobox-trigger b,.product-combobox-trigger small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.product-combobox-trigger b{font-size:10px}.product-combobox-trigger small{color:var(--muted);margin-top:3px;font-size:9px;font-weight:500}.product-combobox-trigger svg{color:#8c95a5;flex:none;transition:transform .18s}.product-combobox.open .product-combobox-trigger{border-color:var(--orange);border-radius:8px 8px 0 0;box-shadow:0 0 0 3px #f36f2a12}.product-combobox.open .product-combobox-trigger svg{transform:rotate(180deg)}.product-combobox-menu{background:#fff;border:1px solid #ef9b71;border-top:0;border-radius:0 0 9px 9px;overflow:hidden;box-shadow:0 10px 25px #17213818}.product-combobox-search{border-bottom:1px solid var(--line);background:#fbfcfd;padding:9px;position:relative}.product-combobox-search svg{color:#929aaa;pointer-events:none;position:absolute;top:50%;left:20px;transform:translateY(-50%)}.form-grid .product-combobox-search input{background:#fff;min-height:40px;padding-left:36px}.product-combobox-options{overscroll-behavior:contain;max-height:210px;overflow-y:auto}.product-combobox-options>button{width:100%;min-height:48px;color:var(--ink);text-align:left;cursor:pointer;background:#fff;border:0;border-top:1px solid #f0f2f5;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 11px;display:grid}.product-combobox-options>button:first-child{border-top:0}.product-combobox-options>button.selected,.product-combobox-options>button:hover{background:#fff7f2}.product-combobox-options b,.product-combobox-options small{display:block}.product-combobox-options b{font-size:10px}.product-combobox-options small{color:#657084;margin-top:3px;font-size:9px}.product-combobox-options em{color:#369567;white-space:nowrap;font-size:9px;font-style:normal;font-weight:650}.product-combobox-empty{color:var(--muted);text-align:center;padding:18px 12px;font-size:10px}.order-item-warehouse-field{color:#6a7180;gap:5px;margin-top:9px;font-size:9px;font-weight:650;display:grid}.order-item-warehouse-field select{color:#8f4e2b;background:#fffaf7;border-color:#f0c7ad;min-height:38px;font-size:10px;font-weight:650}.order-item-values{grid-template-columns:110px minmax(140px,1fr) auto;align-items:end;gap:9px;margin-top:10px;display:grid}.order-item-values label{min-width:0}.order-item-subtotal{background:#fff3eb;border-radius:8px;align-content:center;justify-items:end;min-width:115px;min-height:42px;padding:6px 10px;display:grid}.order-item-subtotal span{color:#8a7568;font-size:8px}.order-item-subtotal b{color:var(--orange);white-space:nowrap;margin-top:3px;font-size:12px}.order-item-card>.field-hint{margin-top:7px;display:block}.order-items-empty{color:var(--muted);border:1px dashed #d8dde6;border-radius:10px;justify-items:center;gap:9px;padding:22px 12px;font-size:10px;display:grid}.order-items-empty button{color:var(--orange);cursor:pointer;background:0 0;border:0;font-size:10px;font-weight:700}.order-total-entry{background:#fffaf7;border:1px solid #f1d8c9;border-radius:10px;justify-content:space-between;align-items:center;gap:16px;padding:12px 13px;display:flex}.order-total-entry>div{min-width:0}.order-total-entry b,.order-total-entry em,.order-total-entry small{display:block}.order-total-entry b{color:var(--ink);font-size:11px}.order-total-entry em,.order-total-entry small{color:#8a7568;margin-top:4px;font-size:9px;line-height:1.4}.order-total-entry em{color:var(--muted);font-style:normal}.order-total-entry label{color:#6a7180;flex:0 0 185px;gap:5px;font-size:9px;font-weight:650;display:grid}.order-total-entry input{width:100%;min-height:40px;color:var(--ink);text-align:right;background:#fff;border:1px solid #f0c7ad;border-radius:8px;outline:0;padding:0 10px;font-size:13px;font-weight:750}.order-total-entry input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f36f2a16}@media (max-width:720px){.order-modal-backdrop{padding:max(16px,env(safe-area-inset-top,0px)) 12px max(16px,env(safe-area-inset-bottom,0px));align-items:flex-end}.multi-item-order-modal{width:100%;max-height:min(88dvh,calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));padding:16px 14px calc(14px + env(safe-area-inset-bottom))}.multi-item-order-modal .modal-head{padding-bottom:13px}.multi-item-order-modal .order-form-grid{flex:1;max-height:none;padding:14px 1px}.order-items-heading{align-items:end}.add-order-item{min-height:40px}.order-item-card{padding:10px}.product-combobox-trigger{min-height:54px}.product-combobox-trigger b{font-size:12px}.product-combobox-trigger small{font-size:10px}.form-grid .product-combobox-search input{min-height:46px;font-size:16px}.product-combobox-options{max-height:min(230px,32dvh)}.product-combobox-options>button{min-height:56px}.product-combobox-options b{font-size:11px}.product-combobox-options em,.product-combobox-options small{font-size:10px}.order-item-warehouse-field select{min-height:44px;font-size:13px}.order-item-values{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr)}.order-item-subtotal{grid-column:1/-1;justify-content:space-between;align-items:center;min-height:42px;display:flex}.order-item-subtotal b{font-size:14px}.order-total-entry{flex-direction:column;align-items:stretch;gap:10px;padding:11px 12px}.order-total-entry label{flex-basis:auto;width:100%}.order-total-entry input{min-height:44px;font-size:16px}.multi-item-order-modal .order-total-preview{margin-bottom:12px}.multi-item-order-modal .modal-actions{padding-top:12px}.multi-item-order-modal .modal-actions .primary{flex:1}}.selection-column{text-align:center;width:42px;min-width:42px;padding-left:15px!important;padding-right:5px!important}.selection-checkbox{width:16px;height:16px;accent-color:var(--orange);cursor:pointer;margin:0}.selected-product-row{box-shadow:inset 3px 0 var(--orange);background:#fff9f5}.selected-product-row:hover{background:#fff6ef}.bulk-product-bar{background:#fff8f3;border-top:1px solid #f0d7c8;border-bottom:1px solid #f0d7c8;justify-content:space-between;align-items:center;gap:14px;min-height:58px;padding:9px 15px;display:flex}.bulk-product-bar b,.bulk-product-bar small{display:block}.bulk-product-bar b{color:#a94d22;font-size:11px}.bulk-product-bar small{color:#8a7164;margin-top:3px;font-size:9px}.bulk-product-bar>div:last-child{align-items:center;gap:7px;display:flex}.bulk-product-bar button{cursor:pointer;border-radius:7px;min-height:36px;padding:0 11px;font-size:9px;font-weight:650}.bulk-product-bar .bulk-edit{color:#c65a27;background:#fff;border-color:#efb28f}.bulk-delete{color:#c44141;background:#fff0f0;border:1px solid #e58d8d}.bulk-product-modal{width:min(560px,100%)}.bulk-product-note{color:#74665f;background:#fff7f2;border-radius:8px;margin:16px 0 0;padding:10px 12px;font-size:9px;line-height:1.5}@media (max-width:720px){.selection-column{width:38px;min-width:38px;padding-left:11px!important;padding-right:3px!important}.selection-checkbox{width:18px;height:18px}.bulk-product-bar{z-index:4;gap:10px;min-height:0;padding:11px;display:grid;position:sticky;left:0}.bulk-product-bar>div:last-child{grid-template-columns:repeat(3,minmax(0,1fr));width:100%;display:grid}.bulk-product-bar button{min-width:0;min-height:42px;padding:0 6px;font-size:9px}.products-table{min-width:760px}.bulk-product-modal{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.bulk-product-note{font-size:10px}}.inventory-card-head>div:last-child{align-items:center;gap:8px;display:flex}.inventory-search{width:min(300px,28vw);min-width:220px;min-height:40px}.inventory-search input{min-width:0}.inventory-return-sort{border:1px solid var(--line);color:#5e6779;white-space:nowrap;background:#fff;border-radius:8px;min-height:40px;padding:0 10px;font-size:10px}.return-inventory-card .inventory-table td:nth-child(3) b{font-weight:800}.return-inventory-card .muted-stock{color:var(--muted)}.return-summary>div{border-color:#f0ded3}.inventory-stock-filter{max-width:145px;min-height:40px;color:inherit;font-size:inherit;font-weight:inherit;cursor:default;background:0 0;border:0;border-radius:0;padding:0}.inventory-stock-filter .order-filter-trigger{min-height:40px}@media (max-width:720px){.main-inventory-table td:nth-child(3):before{content:"Tồn hiện tại"}.main-inventory-table td:nth-child(4):before{content:"Giá nhập"}.main-inventory-table td:nth-child(5):before{content:"Ngưỡng cảnh báo"}.main-inventory-table td:nth-child(6):before{content:"Giá trị tồn"}.main-inventory-table td:nth-child(7):before{content:"Trạng thái"}.inventory-page .main-inventory-table td:nth-child(6){color:#344054;font-weight:700}.inventory-page .main-inventory-table td:nth-child(7){align-items:flex-start}.return-inventory-table td:nth-child(3):before{content:"Tồn trả / hoàn"}.return-inventory-table td:nth-child(4):before{content:"Giá trị tồn"}.return-inventory-table td:nth-child(5):before{content:"Trạng thái"}.inventory-page .return-inventory-table td:nth-child(4){color:#344054;font-weight:700}.inventory-page .return-inventory-table td:nth-child(5){align-items:flex-start}}.inventory-reason-select{width:100%;min-width:0}.inventory-reason-select .order-filter-trigger{width:100%;min-height:42px}.inventory-reason-field{z-index:3;position:relative}.inventory-reason-field .order-filter-menu{z-index:120}.inventory-adjust-button{cursor:pointer;z-index:1;background:var(--orange);color:#fff;border:0;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:0 16px;font-size:10px;font-weight:700;display:inline-flex;position:relative;box-shadow:0 5px 12px #f36f2a20}.inventory-adjust-button:hover{background:#e85d1c}.inventory-adjust-button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}.inventory-history-card .card-head{gap:16px}.inventory-history-search{width:min(320px,34vw);min-width:250px;min-height:40px}.inventory-history-table td:first-child,.inventory-history-table th:first-child{text-align:center;width:54px}.inventory-history-table .positive-stock{color:#159a67;font-weight:700}.inventory-history-table .low-stock{font-weight:700}.inventory-audit-card{text-align:center;color:#737d8e;place-content:center;min-height:170px;display:grid}.inventory-audit-card .card-title{color:var(--ink)}.inventory-product-picker{color:#5b6475;gap:6px;font-size:10px;font-weight:600;display:grid}.inventory-adjust-modal .product-combobox-trigger{min-height:46px}.inventory-adjust-modal .primary:disabled{cursor:not-allowed;opacity:.55}.product-thumb{color:#fff;flex:0 0 34px}.product-thumb .app-icon{stroke-width:1.7px;width:19px;height:19px}@media (max-width:720px){.inventory-card-head>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;display:grid}.inventory-search{grid-column:1/-1;width:100%;min-width:0;min-height:46px}.inventory-search input{font-size:16px}.inventory-return-sort{width:100%;min-height:46px;font-size:11px}.inventory-history-card .card-head{gap:12px;display:grid}.inventory-history-search{width:100%;min-width:0;min-height:46px}.inventory-stock-filter{grid-column:1/-1;width:100%;max-width:none;min-height:46px}.inventory-reason-select .order-filter-trigger,.inventory-stock-filter .order-filter-trigger{min-height:46px;font-size:13px}.inventory-history-table{min-width:0}.inventory-history-table thead{display:none}.inventory-history-table,.inventory-history-table tbody,.inventory-history-table td,.inventory-history-table tr{width:100%;display:block}.inventory-history-table tr{border-bottom:1px solid var(--line);padding:14px 15px}.inventory-history-table tr:last-child{border-bottom:0}.inventory-history-table td{border:0;grid-template-columns:42% 58%;align-items:center;gap:8px;min-height:28px;padding:5px 0;font-size:12px;display:grid}.inventory-history-table td:before{content:attr(data-label);color:#8992a1;text-transform:uppercase;letter-spacing:.04em;font-size:10px;font-weight:700}.inventory-history-table td:first-child{text-align:left;width:100%}.inventory-adjust-modal{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.inventory-adjust-modal .form-grid{max-height:none;overflow:visible}.inventory-adjust-modal .product-combobox-options{max-height:min(260px,35dvh)}}.channel-legend>div{grid-template-columns:9px minmax(0,1fr) auto}.channel-legend p{min-width:0}.channel-legend p b{text-overflow:clip;white-space:normal;word-break:normal;line-height:1.25;display:block;overflow:visible}.channel-legend p small{white-space:nowrap;margin:3px 0 0;display:block}.channel-legend-values{justify-content:flex-end;align-items:center;gap:10px;min-width:max-content;display:flex}.channel-legend-values .channel-share{font-size:9px}.channel-legend-values strong{font-size:10px}@media (max-width:1050px) and (min-width:721px){.channel-chart-body{grid-template-columns:minmax(170px,220px) minmax(0,1fr);gap:20px}}@media (max-width:720px){.channel-chart-body{grid-template-columns:1fr;gap:12px}.channel-legend>div{grid-template-columns:9px minmax(0,1fr) auto;gap:8px;padding:9px 10px}.channel-legend p b{white-space:normal;line-height:1.25;display:block;overflow:visible}.channel-legend-values{gap:8px}.channel-legend-values .channel-share{font-size:10px}.channel-legend-values strong{font-size:11px}}.channel-chart-body{grid-template-columns:180px minmax(0,1fr);gap:18px}.channel-donut-panel{flex-direction:column;align-items:center;min-width:0;display:flex}.channel-donut-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;width:100%;max-width:180px;margin-top:6px;display:grid}.channel-donut-legend>span{min-width:0;color:var(--muted);justify-content:center;align-items:center;gap:5px;font-size:9px;display:inline-flex}.channel-donut-legend i{border-radius:50%;flex:none;width:7px;height:7px}.channel-donut-legend b{color:#5d6678;font-size:9px;font-weight:700}.channel-legend{gap:7px}.channel-legend>div{grid-template-columns:9px minmax(0,1fr);align-items:center;gap:8px;padding:8px 9px}.channel-legend-info{gap:2px;min-width:0;display:grid}.channel-legend-info small{color:var(--muted);white-space:nowrap;font-size:8px;line-height:1.1}.channel-legend-info b{min-width:0;text-overflow:ellipsis;overflow:hidden}.channel-legend-info b,.channel-legend-info strong{color:var(--ink);white-space:nowrap;font-size:10px;line-height:1.2;display:block}@media (max-width:1050px) and (min-width:721px){.channel-chart-body{grid-template-columns:190px minmax(0,1fr);gap:22px}}@media (max-width:720px){.channel-chart-body{grid-template-columns:1fr;gap:14px}.channel-donut-legend{max-width:220px}.channel-legend>div{padding:9px 10px}.channel-legend-info b,.channel-legend-info strong{font-size:11px}}.channels .card-head{text-align:left;justify-content:flex-start}.channel-donut-legend{justify-items:stretch}.channel-donut-legend>span{justify-content:flex-start;padding-left:2px}.channel-legend-info strong{color:var(--orange);font-size:9px;font-weight:700}.channel-legend-info strong span{color:var(--orange);font-weight:600}@media (max-width:720px){.channels .card-head{text-align:left;justify-content:flex-start}.channel-donut-legend>span{justify-content:flex-start;padding-left:2px}.channel-legend-info strong{font-size:10px}.channels .card-head,.channels .card-head>div{text-align:left;justify-content:flex-start;align-items:flex-start;width:100%}.channels .card-head .card-title,.channels .card-head small{text-align:left}.dashboard-visual-time-range .visual-time-range-menu{grid-template-columns:102px minmax(0,1fr)}.dashboard-visual-time-range .visual-calendar-head{white-space:nowrap;grid-template-columns:24px minmax(0,1fr) 24px}.dashboard-visual-time-range .visual-calendar-head b{white-space:nowrap;min-width:0;font-size:12px;line-height:1;overflow:visible}.reconciliation-visual-picker{justify-content:flex-end;width:100%;padding:10px 16px 0}.reconciliation-visual-picker .visual-time-range-picker{width:fit-content;min-width:0;max-width:100%;position:relative}.reconciliation-visual-picker .time-range-trigger{grid-template-columns:auto minmax(0,max-content) auto;justify-content:start;gap:6px;min-height:42px;padding:0 9px;font-size:10px}.reconciliation-visual-picker .time-range-trigger b{text-align:left;white-space:nowrap;max-width:100%;font-size:10px;line-height:1.2;overflow:hidden}.reconciliation-visual-picker .visual-time-range-menu{grid-template-columns:102px minmax(0,1fr);width:100%;max-height:min(68dvh,500px);position:absolute;inset:calc(100% + 6px) 0 auto auto;overflow-y:auto}.reconciliation-visual-picker .time-range-presets button{min-height:36px;padding:0 7px;font-size:11px}.reconciliation-visual-picker .visual-calendar-head{white-space:nowrap;grid-template-columns:24px minmax(0,1fr) 24px;min-height:38px}.reconciliation-visual-picker .visual-calendar-head b{white-space:nowrap;min-width:0;font-size:12px;line-height:1;overflow:visible}.reconciliation-visual-picker .visual-day-grid,.reconciliation-visual-picker .visual-weekdays{padding-left:7px;padding-right:7px}.dashboard-visual-time-range .visual-month-grid,.reconciliation-visual-picker .visual-month-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 4px;padding:14px 7px}.dashboard-visual-time-range .visual-month-grid button,.reconciliation-visual-picker .visual-month-grid button{white-space:nowrap;min-width:0;padding:0 1px;font-size:10px}}.dashboard-mobile-reconciliation{display:none}@media (max-width:720px){.dashboard-mobile-reconciliation{margin-top:10px;padding:17px;display:block}.dashboard-mobile-reconciliation .card-head{align-items:flex-start;gap:10px}.dashboard-mobile-reconciliation .card-head button{color:var(--orange);background:0 0;border:0;flex:none;padding:2px 0;font-size:10px;font-weight:700}.dashboard-reconciliation-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.dashboard-reconciliation-overview>div{border:1px solid var(--line);background:#fff;border-radius:8px;gap:4px;padding:10px;display:grid}.dashboard-reconciliation-overview span{color:var(--muted);font-size:9px}.dashboard-reconciliation-overview b{font-size:13px}.dashboard-reconciliation-overview .positive b{color:#159a67}.dashboard-reconciliation-overview .negative b{color:#cf4545}.dashboard-reconciliation-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.dashboard-reconciliation-kpis>div{background:#f8f9fb;border-radius:8px;gap:4px;padding:10px;display:grid}.dashboard-reconciliation-kpis span,.dashboard-reconciliation-row-metrics span{color:var(--muted);font-size:9px}.dashboard-reconciliation-kpis b{font-size:13px}.dashboard-reconciliation-kpis .positive b{color:#159a67}.dashboard-reconciliation-kpis .negative b{color:#cf4545}.dashboard-reconciliation-list{margin-top:10px}.dashboard-reconciliation-row{border-top:1px solid var(--line);padding:11px 0 9px}.dashboard-reconciliation-row-head{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;display:grid}.dashboard-reconciliation-row-head>div{gap:2px;min-width:0;display:grid}.dashboard-reconciliation-row-head small{color:var(--muted);font-size:9px}.dashboard-reconciliation-row-head b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.dashboard-reconciliation-row-head strong{color:var(--muted);white-space:nowrap;font-size:10px}.dashboard-reconciliation-row-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;margin-top:8px;display:grid}.dashboard-reconciliation-row-metrics span{gap:2px;display:grid}.dashboard-reconciliation-row-metrics b{color:var(--ink);font-size:10px}.dashboard-reconciliation-row-metrics .positive-value{color:#159a67}}.orders-status-filter{min-width:145px}.order-filter-select{min-width:138px;position:relative}.order-filter-trigger{border:1px solid var(--line);color:#5e6779;text-align:left;background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:9px;width:100%;min-height:39px;padding:0 11px;font-size:10px;font-weight:600;display:inline-flex}.order-filter-trigger span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.order-filter-trigger i{flex:none}.order-filter-chevron{border-bottom:1.6px solid #7e8797;border-right:1.6px solid #7e8797;width:7px;height:7px;transition:transform .16s,border-color .16s;transform:rotate(45deg)translateY(-2px)}.order-filter-select.open .order-filter-trigger{border-color:var(--orange);color:var(--ink);box-shadow:0 0 0 3px #f36f2a16}.order-filter-select.open .order-filter-chevron{border-color:var(--orange);transform:rotate(225deg)translateY(-1px)}.order-filter-menu{z-index:80;border:1px solid var(--line);background:#fff;border-radius:10px;width:max(100%,190px);padding:5px;position:absolute;top:calc(100% + 5px);right:0;box-shadow:0 14px 32px #17213826}.order-filter-menu-portal{z-index:10020;touch-action:pan-y;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;pointer-events:auto;width:auto;max-width:calc(100vw - 16px);position:fixed;right:auto}.order-filter-menu{overscroll-behavior:contain;max-height:min(58dvh,420px);overflow-y:auto}.order-filter-menu button{color:#586276;text-align:left;touch-action:pan-y;-webkit-user-select:none;user-select:none;background:0 0;border:0;border-radius:7px;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:36px;padding:0 9px;font-size:10px;display:flex}.order-filter-menu button.selected,.order-filter-menu button:hover{color:var(--orange);background:#fff5ef}.order-filter-menu button b{color:var(--orange);font-size:12px}.order-resolution-button{color:#c85c2b;background:#fff8f4;border-color:#f1c2aa;align-items:center;gap:6px;display:inline-flex}.orders-purchases-button{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.order-return-button{color:#d76028;cursor:pointer;background:#fff3ec;border:0;border-radius:7px;place-items:center;width:32px;height:32px;display:grid}.order-return-button:focus-visible,.order-return-button:hover{background:#ffe5d7;outline:0}.order-resolution-modal{width:min(650px,100%)}.order-resolution-note{color:#6d625c;background:#fff7f2;border-radius:9px;margin:16px 0;padding:12px 14px;font-size:10px;line-height:1.55}.order-resolution-input{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.order-resolution-input input{border:1px solid var(--line);border-radius:8px;outline:0;min-height:43px;padding:0 12px}.order-resolution-input input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f36f2a16}.order-resolution-input button{align-items:center;gap:6px;min-height:43px;display:inline-flex}.order-resolution-input .scanning{color:var(--orange);background:#fff7f2;border-color:#ed8a58}.order-resolution-result{border:1px solid var(--line);background:#fbfcfe;border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin-top:14px;padding:14px;display:grid}.order-resolution-result>div{gap:4px;min-width:0;display:grid}.order-resolution-result span{color:var(--muted);font-size:9px}.order-resolution-result b{text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.order-resolution-result strong{width:fit-content}@media (max-width:720px){.product-toolbar .category-filter{height:auto;min-height:46px}.product-toolbar .category-filter .order-filter-trigger{min-height:46px;font-size:13px}.orders-toolbar .order-filter-select{width:100%;min-width:0}.order-resolution-button,.orders-purchases-button,.orders-status-filter{grid-column:1/-1;width:100%}.order-filter-menu:not(.order-filter-menu-portal){width:100%;left:0;right:auto}.order-resolution-modal{width:100%}.order-resolution-input{grid-template-columns:1fr}.order-resolution-input button{justify-content:center}.order-resolution-result{grid-template-columns:1fr}.order-resolution-modal .modal-actions{flex-direction:column-reverse}.order-resolution-modal .modal-actions button{width:100%}.notification-button{display:grid}}.settings-modal{width:min(520px,100%)}.settings-section{gap:14px;padding:22px 0;display:grid}.settings-section b{color:var(--ink);font-size:13px}.settings-section p{color:var(--muted);margin:6px 0 0;font-size:10px;line-height:1.55}.scan-volume-control{border:1px solid var(--line);background:#fafbfc;border-radius:10px;grid-template-columns:minmax(0,1fr) 52px;align-items:center;gap:13px;padding:14px;display:grid}.scan-volume-control input{width:100%;accent-color:var(--orange)}.scan-volume-control output{color:var(--orange);text-align:right;font-size:13px;font-weight:750}.settings-actions{justify-content:flex-end;gap:8px;display:flex}@media (max-width:720px){.settings-modal{width:100%}.settings-actions{justify-content:stretch}.settings-actions button{flex:1;min-height:42px}}.product-modal{width:min(640px,100%)}.product-form-intro{background:linear-gradient(135deg,#fff9f5,#fff);border:1px solid #f1e3da;border-radius:11px;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:12px;margin:17px 0 0;padding:12px 14px;display:grid}.product-form-intro .product-thumb{color:#fff;border-radius:10px;width:42px;height:42px}.product-form-intro b,.product-form-intro small{display:block}.product-form-intro b{color:var(--ink);font-size:12px}.product-form-intro small{color:#7b8495;margin-top:4px;font-size:9px;line-height:1.45}.product-form-grid{row-gap:15px}.product-form-grid label{min-width:0}.product-form-grid input,.product-form-grid select{border-color:#dde2eb;min-height:43px;transition:border-color .18s,box-shadow .18s}.product-form-grid input:focus,.product-form-grid select:focus{border-color:#ef8956;outline:0;box-shadow:0 0 0 3px #f36f2a15}.product-form-grid .field-hint{min-height:12px;line-height:1.35}.product-warranty-field{background:#fffaf7;border:1px solid #f0e5de;border-radius:10px;padding:10px 11px 9px}.product-warranty-field select{background:#fff;min-height:40px;margin-top:1px}.product-row-actions{justify-content:center}.product-view-button{color:#687b9b}.product-view-button:focus-visible,.product-view-button:hover{color:#385b9a;background:#edf3ff}.product-details-modal{width:min(620px,100%)}.product-details-hero{border-bottom:1px solid var(--line);grid-template-columns:49px minmax(0,1fr) auto;align-items:center;gap:13px;padding:20px 0 16px;display:grid}.product-details-hero .product-thumb{color:#fff;border-radius:12px;width:47px;height:47px}.product-details-hero>div{min-width:0}.product-details-hero b,.product-details-hero code{display:block}.product-details-hero b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.35;overflow:hidden}.product-details-hero code{color:#677287;margin-top:5px;font-size:10px}.product-details-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:17px 0;display:grid}.product-details-grid>div{background:#fbfcfe;border:1px solid #e8ebf1;border-radius:10px;align-content:center;gap:6px;min-height:75px;padding:12px;display:grid}.product-details-grid span{color:#7f8899;font-size:9px}.product-details-grid b{color:var(--ink);overflow-wrap:anywhere;font-size:12px;line-height:1.35}.product-details-grid .positive-stock{color:#24925d}.warranty-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.warranty-summary>div:nth-child(2) b{color:#24925d}.warranty-summary>div:nth-child(3) b{color:#d77b24}.warranty-summary>div:nth-child(4) b{color:#c84b4b}.warranty-table-card{overflow:visible}.warranty-table-toolbar{justify-content:space-between;align-items:center;gap:18px;padding:18px 20px 13px;display:flex}.warranty-table-toolbar .card-title{margin:0 0 5px}.warranty-table-toolbar small{color:var(--muted);font-size:10px}.warranty-search{flex:0 430px;width:min(430px,48%)}.warranty-record-count{color:#7d8799;padding:0 20px 12px;font-size:10px}.warranty-table{min-width:1060px}.warranty-table td{white-space:normal;vertical-align:middle}.warranty-table td:first-child,.warranty-table td:nth-child(3),.warranty-table td:nth-child(5),.warranty-table td:nth-child(6),.warranty-table td:nth-child(7),.warranty-table td:nth-child(8){white-space:nowrap}.warranty-product{grid-template-columns:32px minmax(180px,1fr);align-items:center;gap:9px;min-width:220px;display:grid}.warranty-product .product-thumb{color:#fff;width:32px;height:32px}.warranty-product div{gap:4px;min-width:0;display:grid}.warranty-product b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.warranty-product code{color:#718096;font-size:9px}.warranty-status{white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;min-height:25px;padding:0 9px;font-size:9px;font-weight:700;display:inline-flex}.warranty-status.active{color:#258c5b;background:#e8f8ef}.warranty-status.expiring{color:#d7762b;background:#fff2e7}.warranty-status.expired{color:#ca4d4d;background:#ffeded}.warranty-mobile-list{display:none}@media (max-width:720px){.product-modal{width:100%;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));overflow-y:auto}.product-form-intro{margin-top:14px;padding:11px 12px}.product-form-grid{max-height:none;padding:16px 0;overflow:visible}.product-form-grid label{gap:7px;font-size:11px}.product-form-grid .field-hint{font-size:9px}.product-warranty-field{padding:10px}.product-details-modal{width:100%;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));overflow-y:auto}.product-details-hero{grid-template-columns:46px minmax(0,1fr);gap:11px;padding:17px 0 14px}.product-details-hero .status{grid-column:2;width:fit-content}.product-details-grid{grid-template-columns:1fr 1fr;gap:9px;padding:14px 0}.product-details-grid>div{min-height:70px;padding:11px}.product-details-grid b{font-size:12px}.warranty-page{padding-top:21px}.warranty-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.warranty-summary>div{min-height:76px;padding:12px}.warranty-summary b{font-size:19px}.warranty-table-card{border-radius:13px}.warranty-table-toolbar{gap:13px;padding:17px 14px 10px;display:grid}.warranty-table-toolbar .card-title{font-size:18px}.warranty-table-toolbar small{font-size:10px;line-height:1.45;display:block}.warranty-search{flex:none;width:100%;max-width:none;min-height:45px}.warranty-record-count{padding:0 14px 10px;font-size:10px}.warranty-table-card>.table-scroll{display:none}.warranty-mobile-list{gap:10px;padding:0 11px 13px;display:grid}.warranty-mobile-card{background:#fff;border:1px solid #e5e9f0;border-radius:12px;gap:11px;padding:14px;display:grid;box-shadow:0 4px 12px #17213808}.warranty-mobile-card-head{grid-template-columns:36px minmax(0,1fr);align-items:center;gap:9px;display:grid}.warranty-mobile-card-head .product-thumb{color:#fff;width:36px;height:36px}.warranty-mobile-card-head>div{gap:4px;min-width:0;display:grid}.warranty-mobile-card-head b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.35;overflow:hidden}.warranty-mobile-card-head code{color:#748094;font-size:9px}.warranty-mobile-card-head .warranty-status{grid-column:1/-1;justify-self:start}.warranty-mobile-customer{color:#697487;border-top:1px solid #edf0f4;justify-content:space-between;align-items:center;gap:8px;padding-top:10px;font-size:10px;display:flex}.warranty-mobile-customer b{color:var(--ink);white-space:nowrap;font-size:10px}.warranty-mobile-data{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;display:grid}.warranty-mobile-data span{gap:4px;min-width:0;display:grid}.warranty-mobile-data small{color:#8c95a5;font-size:9px}.warranty-mobile-data b{color:#354053;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}}.status.muted{color:#727d90;background:#eef1f5}.customer-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.customer-summary>div:nth-child(3) b{color:#24925d}.customer-table-card{overflow:visible}.customer-table-toolbar{justify-content:space-between;align-items:center;gap:18px;padding:19px 20px 13px;display:flex}.customer-table-toolbar .card-title{margin-bottom:5px}.customer-table-toolbar small{color:var(--muted);font-size:10px}.customer-filters{justify-content:flex-end;align-items:center;gap:8px;width:min(650px,57%);display:flex}.customer-search{flex:380px;min-width:180px}.customer-filters select{border:1px solid var(--line);color:#5d687c;background:#fff;border-radius:8px;outline:0;flex:0 0 155px;min-height:40px;padding:0 32px 0 11px;font-size:10px}.customer-filters select:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f36f2a14}.customer-record-count{color:#7d8799;padding:0 20px 12px;font-size:10px}.customer-table{min-width:1730px}.customer-table td{vertical-align:middle;white-space:nowrap}.customer-address{max-width:230px;line-height:1.42;white-space:normal!important}.customer-money,.customer-number{text-align:right;font-variant-numeric:tabular-nums}.customer-money{color:#1e2d46;font-weight:700}.customer-view-button{color:#5a7197;background:#f2f6fd;border:0;border-radius:7px;place-items:center;width:32px;height:32px;display:grid}.customer-view-button:focus-visible,.customer-view-button:hover{color:#2e5c9b;background:#e7f0ff;outline:0}.customer-mobile-list{display:none}.customer-details-modal{width:min(940px,100%);max-height:min(760px,100dvh - 44px);overflow-y:auto}.customer-profile-hero{border-bottom:1px solid var(--line);grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:12px;padding:18px 0 15px;display:grid}.customer-profile-hero>span{width:45px;height:45px;color:var(--orange);background:#fff0e8;border-radius:12px;place-items:center;display:grid}.customer-profile-hero>div{gap:3px;min-width:0;display:grid}.customer-profile-hero code{color:#718097;font-size:10px}.customer-profile-hero b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:15px;overflow:hidden}.customer-profile-hero small{color:var(--muted);font-size:10px}.customer-detail-tabs{border-bottom:1px solid var(--line);scrollbar-width:none;gap:4px;padding:13px 0;display:flex;overflow-x:auto}.customer-detail-tabs::-webkit-scrollbar{display:none}.customer-detail-tabs button{color:#748095;background:0 0;border:0;border-radius:7px;flex:none;min-height:34px;padding:0 12px;font-size:10px;font-weight:700}.customer-detail-tabs button.active{color:var(--orange);background:#fff1e9}.customer-overview{padding-top:16px}.customer-overview-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.customer-activity,.customer-debt,.customer-info-grid article,.customer-overview-grid>div{background:#fbfcfe;border:1px solid #e8ecf2;border-radius:10px}.customer-overview-grid>div{align-content:center;gap:6px;min-height:78px;padding:12px;display:grid}.customer-activity p,.customer-activity span,.customer-debt span,.customer-info-grid p,.customer-info-grid span,.customer-overview-grid span{color:#7d8798;font-size:9px}.customer-overview-grid b{color:var(--ink);overflow-wrap:anywhere;font-size:14px}.customer-info-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px;display:grid}.customer-info-grid article{align-content:start;gap:6px;min-height:127px;padding:13px;display:grid}.customer-activity p,.customer-info-grid p{margin:0 0 2px;font-weight:700}.customer-info-grid b{color:var(--ink);font-size:11px}.customer-info-grid span{line-height:1.45}.customer-activity{gap:0;margin-top:10px;padding:13px;display:grid}.customer-activity>div{border-top:1px solid #edf0f4;grid-template-columns:90px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:31px;display:grid}.customer-activity b{color:#364157;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.customer-activity small{color:#24925d;white-space:nowrap;font-size:10px;font-weight:700}.customer-detail-table{padding-top:16px}.customer-detail-table>p{color:var(--ink);margin:0 0 11px;font-size:12px;font-weight:700}.customer-detail-table table{min-width:850px}.customer-debt{margin-top:16px;padding:20px}.customer-debt b{color:var(--orange);margin-top:8px;font-size:23px;display:block}.customer-debt p{color:var(--muted);margin:10px 0 0;font-size:10px}.customer-tab-panel{padding-top:16px}.customer-tab-panel>p{color:var(--ink);margin:0 0 11px;font-size:12px;font-weight:700}.customer-info-grid.single{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}.customer-empty-note,.customer-reward-card{background:#fbfcfe;border:1px solid #e8ecf2;border-radius:10px;align-content:center;gap:8px;min-height:125px;padding:17px;display:grid}.customer-empty-note,.customer-reward-card small,.customer-reward-card span{color:#7d8798;font-size:10px;line-height:1.5}.customer-reward-card b{color:var(--orange);font-size:20px}.customer-activity-full{margin-top:0}@media (max-width:720px){.customers-page{padding-top:20px}.customer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-summary>div{min-height:79px;padding:12px}.customer-summary b{font-size:19px}.customer-table-card{border-radius:13px}.customer-table-toolbar{gap:13px;padding:17px 14px 10px;display:grid}.customer-table-toolbar .card-title{font-size:18px}.customer-table-toolbar small{line-height:1.48;display:block}.customer-filters{grid-template-columns:1fr;width:100%;display:grid}.customer-search{width:100%;min-height:45px}.customer-filters select{flex:none;width:100%;min-height:43px;font-size:11px}.customer-record-count{padding:0 14px 11px}.customer-table-card>.table-scroll{display:none}.customer-mobile-list{gap:10px;padding:0 11px 13px;display:grid}.customer-mobile-card{width:100%;color:inherit;text-align:left;background:#fff;border:1px solid #e5e9f0;border-radius:12px;gap:11px;padding:14px;display:grid;box-shadow:0 4px 12px #17213808}.customer-mobile-card-head{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:9px;display:grid}.customer-mobile-card-head>div{gap:4px;min-width:0;display:grid}.customer-mobile-card-head code{color:#718096;font-size:9px}.customer-mobile-card-head b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.customer-mobile-card-head small{color:var(--muted);font-size:10px}.customer-mobile-data{border-top:1px solid #edf0f4;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding-top:11px;display:grid}.customer-mobile-data span{gap:4px;min-width:0;display:grid}.customer-mobile-data small{color:#8c95a5;font-size:9px}.customer-mobile-data b{color:#354053;text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.customer-details-modal{width:100%;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px))}.customer-profile-hero{grid-template-columns:42px minmax(0,1fr);gap:10px}.customer-profile-hero>span{width:42px;height:42px}.customer-profile-hero>strong{grid-column:2;width:fit-content}.customer-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-info-grid,.customer-info-grid.single{grid-template-columns:1fr}.customer-info-grid article{min-height:auto}.customer-activity>div{grid-template-columns:76px minmax(0,1fr);gap:7px;padding:6px 0}.customer-activity small{grid-column:2}.customer-detail-table .table-scroll{margin:0 -1px}}.report-tabs button:disabled{cursor:default}.report-products-card{overflow:hidden}.report-products-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 21px 17px;display:flex}.report-products-head .card-title{margin:0 0 5px}.report-products-head small{color:var(--muted);font-size:10px}.report-period-switch{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.report-period-switch button{border:1px solid var(--line);color:#657085;white-space:nowrap;background:#fff;border-radius:8px;min-height:36px;padding:0 12px;font-size:10px;font-weight:600}.report-period-switch button.selected{border-color:var(--orange);color:var(--orange);background:#fff5ef;box-shadow:0 3px 10px #fb6c2520}.report-products-summary{border-bottom:1px solid var(--line);background:#fbfcfe;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:15px 21px;display:grid}.report-products-summary>div{background:#f5f7fb;border-radius:9px;padding:12px 14px}.report-products-summary b,.report-products-summary span{display:block}.report-products-summary span{color:var(--muted);font-size:9px}.report-products-summary b{color:var(--ink);margin-top:5px;font-size:15px}.report-products-table .report-products-data-table{table-layout:fixed;width:100%;min-width:1220px}.report-products-data-table .report-col-rank{width:68px}.report-products-data-table .report-col-sku{width:150px}.report-products-data-table .report-col-product{width:31%}.report-products-data-table .report-col-category,.report-products-data-table .report-col-quantity{width:145px}.report-products-data-table .report-col-money{width:150px}.report-products-data-table td:first-child,.report-products-data-table th:first-child{text-align:center}.report-products-data-table td.report-number,.report-products-data-table th.report-number{text-align:right;white-space:nowrap}.report-products-data-table td:nth-child(3),.report-products-data-table td:nth-child(4){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.report-products-data-table .report-profit-average{color:var(--green);font-weight:800}.product-rank{width:25px;height:25px;color:var(--orange);background:#fff1e8;border-radius:50%;place-items:center;font-size:10px;font-weight:800;display:inline-grid}.report-products-mobile-list{display:none}@media (max-width:720px){.report-products-head{gap:14px;padding:17px;display:grid}.report-products-head .card-title{font-size:17px}.report-period-switch{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;display:grid}.report-period-switch button{min-height:39px;padding:0 8px;font-size:11px}.report-products-summary{gap:8px;padding:13px}.report-products-summary>div{padding:10px}.report-products-summary span{font-size:9px;line-height:1.25}.report-products-summary b{font-size:14px}.report-products-table{display:none}.report-products-mobile-list{background:#fbfcfd;gap:9px;padding:13px;display:grid}.report-product-row{border:1px solid var(--line);background:#fff;border-radius:12px;padding:13px}.report-product-row-head{grid-template-columns:27px minmax(0,1fr);align-items:start;gap:10px;display:grid}.report-product-row-head>div{min-width:0}.report-product-row-head b{color:var(--ink);font-size:13px;line-height:1.35;display:block}.report-product-row-head small{color:var(--muted);overflow-wrap:anywhere;margin-top:3px;font-size:10px;display:block}.report-product-row-stats{border-top:1px solid var(--line);grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;padding-top:11px;display:grid}.report-product-row-stats>div:last-child{grid-column:auto}.report-product-row-stats b,.report-product-row-stats span{display:block}.report-product-row-stats span{color:var(--muted);font-size:9px}.report-product-row-stats b{color:var(--ink);margin-top:3px;font-size:12px}.report-product-row-stats .report-profit-average b{color:var(--green)}}.mobile-menu-backdrop,.mobile-menu-drawer{display:none}@media (max-width:720px){main{padding-top:calc(76px + env(safe-area-inset-top,0px))}.topbar{z-index:9000;width:100%;position:fixed;inset:0 0 auto}.top-actions{flex:none;gap:7px}.mobile-menu-button{display:grid}.topbar-title{flex:auto;width:0}.topbar-title>div{flex:auto;min-width:0}.topbar h1{max-width:100%}.topbar h1.dashboard-greeting{letter-spacing:-.55px;font-size:clamp(15px,3.8vw,18px)}.mobile-menu-backdrop{z-index:10010;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#17213866;display:block;position:fixed;inset:0}.mobile-menu-drawer{width:min(292px,100vw - 46px);min-height:100dvh;padding:calc(15px + env(safe-area-inset-top,0px)) 14px calc(16px + env(safe-area-inset-bottom,0px));border-right:1px solid var(--line);overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fff;flex-direction:column;display:flex;position:absolute;inset:0 auto 0 0;overflow-y:auto;box-shadow:12px 0 34px #17213828}.mobile-menu-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;min-height:52px;padding:0 5px 14px;display:flex}.mobile-menu-head img{object-fit:contain;object-position:left center;width:152px;height:46px}.mobile-menu-head button{color:#687087;background:#f4f6f9;border:0;border-radius:50%;flex:none;width:38px;height:38px;font-size:26px;line-height:1}.mobile-menu-drawer nav{gap:5px;margin-top:18px;display:grid}.mobile-menu-drawer nav button,.mobile-menu-foot button{color:#637087;text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:13px;width:100%;min-height:46px;padding:0 12px;font-size:13px;font-weight:600;display:flex}.mobile-menu-drawer nav button span,.mobile-menu-foot button span{color:#8993a6;place-items:center;width:21px;height:21px;display:grid}.mobile-menu-drawer nav button.active{color:var(--orange);background:#fff2eb}.mobile-menu-drawer nav button.active span{color:var(--orange)}.mobile-menu-foot{border-top:1px solid var(--line);gap:4px;margin-top:auto;padding-top:14px;display:grid}}.purchases-page{min-width:0}.purchase-page-heading{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px;display:flex}.purchase-page-heading .card-title{margin:0 0 5px}.purchase-page-heading small{color:var(--muted);font-size:11px}.purchase-page-actions{flex-wrap:wrap;gap:8px;display:flex}.purchase-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.purchase-tabs{margin-top:12px}.purchase-statistics,.purchase-table-card{margin-top:14px}.purchase-card-head{align-items:center}.purchase-search{width:min(360px,100%)}.purchase-table-card .table-wrap{overflow:auto}.purchase-orders-table{min-width:930px}.purchase-orders-table td,.purchase-orders-table th{white-space:nowrap}.purchase-item-name{text-overflow:ellipsis;max-width:360px;display:block;overflow:hidden}.purchase-statistics{padding:0;overflow:visible}.purchase-statistics .card-head{padding:20px 20px 14px}.period-switch{border:1px solid var(--line);background:#fafbfc;border-radius:10px;gap:5px;padding:4px;display:flex}.period-switch button{min-height:31px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:7px;padding:0 10px;font-size:11px;font-weight:700}.period-switch button.active{color:var(--orange);background:#fff;box-shadow:0 2px 7px #17213812}.supplier-modal{width:min(620px,100vw - 32px)}.purchase-order-modal{width:min(920px,100vw - 32px);max-height:calc(100dvh - 40px);overflow-y:auto}.purchase-modal-note{color:#8c664c;background:#fff6f0;border-radius:10px;margin:14px 0;padding:12px 14px;font-size:12px;line-height:1.5}.purchase-order-fields{margin-top:14px}.purchase-items-editor{border:1px solid var(--line);border-radius:12px;margin-top:18px;overflow:hidden}.purchase-items-head{border-bottom:1px solid var(--line);background:#fafbfc;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.purchase-items-head strong{color:var(--ink);font-size:13px}.purchase-items-head button{min-height:30px;padding:0 10px}.purchase-item-row{border-top:1px solid var(--line);grid-template-columns:minmax(220px,1fr) 94px 130px 118px 34px;padding:12px 14px}.purchase-item-row label{color:var(--muted);gap:6px;font-size:10px;font-weight:700;display:grid}.purchase-item-row input,.purchase-item-row select{width:100%;min-width:0}.purchase-line-total{min-height:42px;justify-content:flex-end;align-items:center;font-size:13px}.purchase-remove-item{color:#d75a42;background:#fff8f5;border:1px solid #ffd9c9;border-radius:8px;width:34px;height:34px;padding:0;font-size:19px;line-height:1}.purchase-notes{color:var(--muted);gap:7px;margin-top:14px;font-size:11px;font-weight:700;display:grid}.purchase-notes textarea{resize:vertical;min-height:72px}.purchase-order-total{color:var(--muted);align-items:baseline;gap:10px;margin-top:15px;font-size:12px}.purchase-order-total b{color:var(--orange);font-size:20px}@media (max-width:720px){.purchases-page{padding-top:18px}.purchase-page-heading{margin-bottom:13px;display:block}.purchase-page-actions{grid-template-columns:1fr 1.25fr;margin-top:12px;display:grid}.purchase-page-actions button{width:100%}.purchase-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-tabs{scrollbar-width:none;flex-wrap:nowrap;overflow-x:auto}.purchase-tabs::-webkit-scrollbar{display:none}.purchase-tabs button{flex:none}.purchase-card-head{display:block}.purchase-search{width:100%;margin-top:11px}.purchase-statistics .card-head{padding:16px 14px 12px;display:block}.period-switch{scrollbar-width:none;width:100%;margin-top:12px;overflow-x:auto}.period-switch::-webkit-scrollbar{display:none}.period-switch button{flex:1 0 auto}.purchase-order-modal,.supplier-modal{width:calc(100vw - 18px);max-height:calc(100dvh - 18px - env(safe-area-inset-bottom,0px));padding:18px 15px calc(18px + env(safe-area-inset-bottom,0px))}.purchase-order-fields{grid-template-columns:1fr}.purchase-items-head{padding:11px}.purchase-item-row{grid-template-columns:1fr 1fr;gap:10px;padding:12px 11px}.purchase-item-row label:first-child{grid-column:1/-1}.purchase-line-total{justify-content:flex-start;padding-top:9px}.purchase-remove-item{place-self:end}.purchase-order-total{justify-content:space-between}}.purchase-order-modal-modern{background:#fff;border:1px solid #e6eaf1;width:min(1180px,100vw - 32px);padding:20px 22px;box-shadow:0 24px 70px #1721383d}.purchase-order-modal-modern .modal-head{border-bottom:1px solid #edf0f5;padding-bottom:18px}.purchase-order-modal-modern .modal-head h2{letter-spacing:-.25px;margin:5px 0 4px;font-size:21px}.purchase-order-modal-modern .modal-subtitle{color:var(--muted);font-size:11px;font-weight:500}.purchase-modal-note-draft{color:#7b604f;background:linear-gradient(100deg,#fff8f3,#fffdfb);border:1px solid #ffe0cf;align-items:flex-start;gap:10px;margin:17px 0 20px;padding:13px 15px;display:flex}.purchase-note-icon{width:31px;height:31px;color:var(--orange);background:#fff0e6;border-radius:9px;flex:none;place-items:center;display:grid}.purchase-modal-note-draft b,.purchase-modal-note-draft span{display:block}.purchase-modal-note-draft b{color:#a44f2c;font-size:12px}.purchase-modal-note-draft span{margin-top:2px;font-size:11px;line-height:1.5}.purchase-form-section{margin-top:15px}.purchase-section-heading{align-items:center;gap:10px;margin-bottom:11px;display:flex}.purchase-section-heading>div{flex:1;min-width:0}.purchase-section-heading b,.purchase-section-heading small{display:block}.purchase-section-heading b{color:var(--ink);font-size:13px}.purchase-section-heading small{color:var(--muted);margin-top:3px;font-size:10px;font-weight:500}.purchase-section-number{width:27px;height:27px;color:var(--orange);background:#fff1e9;border-radius:8px;flex:none;place-items:center;font-size:10px;font-weight:800;display:grid}.purchase-order-modal-modern .purchase-order-fields{background:#fcfdff;border:1px solid #edf0f5;border-radius:12px;margin-top:0;padding:15px}.purchase-order-modal-modern .purchase-order-fields label{font-size:10px}.purchase-order-modal-modern .purchase-order-fields input,.purchase-order-modal-modern .purchase-order-fields select{background:#fff}.purchase-id-preview{gap:3px;display:grid}.purchase-id-preview input{color:#235e9e;letter-spacing:.02em;font-weight:800}.purchase-id-preview small{color:var(--muted);font-size:9px;font-weight:500}.purchase-items-section{margin-top:17px}.purchase-items-section .purchase-section-heading button{flex:none}.purchase-items-editor{background:#fff;border:1px solid #e5e9f0;border-radius:13px;margin-top:0;overflow:visible}.purchase-items-columns{color:#8791a2;letter-spacing:.05em;text-transform:uppercase;background:#f8fafc;border-bottom:1px solid #edf0f5;grid-template-columns:minmax(280px,1fr) 105px 145px 125px 34px;gap:10px;padding:10px 14px;font-size:9px;font-weight:800;display:grid}.purchase-items-columns span:nth-child(n+2){text-align:right}.purchase-item-row{border-top:1px solid #edf0f5;grid-template-columns:minmax(280px,1fr) 105px 145px 125px 34px;align-items:end;gap:10px;padding:13px 14px;display:grid;position:relative}.purchase-item-row:first-of-type{border-top:0}.purchase-item-row>label{color:var(--muted);gap:5px;font-size:10px;font-weight:700;display:grid}.purchase-item-row>label>span{display:none}.purchase-product-picker{min-width:0;position:relative}.purchase-product-trigger{width:100%;min-height:43px;color:var(--ink);text-align:left;background:#fff;border:1px solid #dfe5ef;border-radius:9px;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;display:flex}.purchase-product-picker.open .purchase-product-trigger,.purchase-product-trigger:hover{border-color:var(--orange);box-shadow:0 0 0 3px #ff6a2a12}.purchase-product-trigger>span{min-width:0}.purchase-product-trigger b,.purchase-product-trigger small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.purchase-product-trigger b{font-size:11px}.purchase-product-trigger small{color:var(--muted);margin-top:2px;font-size:10px;font-weight:500}.purchase-product-trigger svg{color:#7f8aa0;flex:none}.purchase-product-menu{z-index:40;background:#fff;border:1px solid #dfe5ef;border-radius:11px;width:min(470px,100vw - 80px);position:absolute;top:calc(100% + 6px);left:0;overflow:hidden;box-shadow:0 15px 35px #17213825}.purchase-product-search{color:#7f8aa0;border-bottom:1px solid #edf0f5;align-items:center;gap:7px;padding:8px 10px;display:flex}.purchase-product-search input{width:100%;min-width:0;height:31px;box-shadow:none;border:0;outline:0;padding:0;font-size:11px}.purchase-product-options{overscroll-behavior:contain;max-height:240px;overflow-y:auto}.purchase-product-options button{width:100%;min-height:50px;color:var(--ink);text-align:left;background:#fff;border:0;border-bottom:1px solid #f0f2f6;justify-content:space-between;align-items:center;gap:10px;padding:8px 11px;display:flex}.purchase-product-options button.selected,.purchase-product-options button:hover{background:#fff7f2}.purchase-product-options button>span{min-width:0}.purchase-product-options b,.purchase-product-options small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.purchase-product-options b{font-size:11px}.purchase-product-options small{color:var(--muted);margin-top:2px;font-size:10px}.purchase-product-options em{color:#19966c;flex:none;font-size:10px;font-style:normal;font-weight:700}.purchase-product-empty{color:var(--muted);text-align:center;margin:0;padding:18px 12px;font-size:11px}.purchase-cost-field input,.purchase-quantity-field input{text-align:right;min-height:43px}.purchase-line-total{min-height:43px;color:var(--ink);white-space:nowrap;flex-direction:column;justify-content:center;align-items:flex-end;gap:2px;font-size:12px;font-weight:800;display:flex}.purchase-line-total small{color:var(--muted);font-size:9px;font-weight:600}.purchase-landed-unit,.purchase-unit-vnd{min-height:43px;color:var(--ink);white-space:nowrap;flex-direction:column;justify-content:center;align-items:flex-end;gap:2px;font-size:11px;font-weight:800;display:flex}.purchase-landed-unit small,.purchase-unit-vnd small{color:var(--muted);font-size:9px;font-weight:600}.purchase-landed-unit b{color:var(--orange)}.purchase-remove-item{align-self:center}.purchase-notes-section textarea{resize:vertical;border:1px solid #dfe5ef;border-radius:10px;width:100%;min-height:70px;padding:11px 12px}.purchase-invoice-fields{background:#fcfdff;border:1px solid #edf0f5;border-radius:10px;padding:12px}.purchase-invoice-fields .invoice-image-upload{background:#fffaf7;border-style:dashed;height:auto;padding:9px}.purchase-costs-section{margin-top:20px}.purchase-cost-grid{background:#fcfdff;border:1px solid #edf0f5;border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(180px,.8fr);align-items:end;gap:10px;padding:12px;display:grid}.purchase-cost-grid-breakdown{grid-template-columns:repeat(4,minmax(0,1fr))}.purchase-cost-grid label{color:var(--muted);gap:5px;font-size:10px;font-weight:700;display:grid}.purchase-cost-grid input{width:100%;min-height:41px;color:var(--ink);font-variant-numeric:tabular-nums;background:#fff;border:1px solid #dfe5ef;border-radius:9px;outline:0;padding:0 10px;font-size:12px;font-weight:700}.purchase-cost-grid input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ff6a2a12}.purchase-cost-vnd{background:#fff8f3;border:1px solid #ffe0cf;border-radius:9px;flex-direction:column;justify-content:center;min-height:41px;padding:0 10px;display:flex}.purchase-cost-vnd span{color:var(--muted);font-size:9px}.purchase-cost-vnd b{color:var(--orange);margin-top:2px;font-size:14px}.purchase-cost-vnd small{color:var(--muted);margin-top:2px;font-size:9px;font-weight:600;display:block}.customs-costs-section .purchase-section-heading>button{flex:none}.customs-cost-list{background:#fcfdff;border:1px solid #edf0f5;border-radius:10px;gap:8px;padding:12px;display:grid}.customs-cost-row{grid-template-columns:minmax(200px,1.2fr) minmax(120px,.55fr) minmax(190px,1fr) 30px;align-items:end;gap:9px;display:grid}.customs-cost-row label{color:var(--muted);gap:5px;font-size:10px;font-weight:700;display:grid}.customs-cost-row input{width:100%;min-height:40px;color:var(--ink);background:#fff;border:1px solid #dfe5ef;border-radius:9px;padding:0 10px;font-size:12px;font-weight:650}.customs-cost-empty{color:var(--muted);padding:8px 2px;font-size:10px}.customs-cost-total{color:var(--muted);border-top:1px dashed #dfe5ef;justify-content:space-between;align-items:center;padding-top:8px;font-size:10px;display:flex}.customs-cost-total b{color:var(--orange);font-size:14px}.purchase-line-total em,.purchase-vnd-subvalue{color:var(--muted);margin-top:3px;font-size:9px;font-style:normal;font-weight:600;display:block}.purchase-line-total em{text-align:center}.purchase-currency-summary{color:#8c664c;background:#fff8f3;border:1px solid #ffe0cf;border-radius:10px;justify-content:space-between;align-items:center;gap:14px;margin:12px 0 2px;padding:10px 12px;font-size:10px;line-height:1.45;display:flex}.purchase-currency-summary b{color:#a44f2c;flex:none}.purchase-currency-summary span{text-align:right}.purchase-currency-summary strong{color:var(--orange)}.purchase-order-total-international{flex-wrap:wrap;justify-content:flex-end}.purchase-order-total-international>div{min-width:116px}@media (max-width:720px){.purchase-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px}.purchase-cost-grid label{font-size:9px}.purchase-cost-grid input{min-height:38px;font-size:12px}.purchase-cost-vnd{grid-column:1/-1;min-height:38px}.customs-cost-row{grid-template-columns:1fr 1fr;gap:8px}.customs-cost-row label:first-child,.customs-cost-row label:nth-child(3){grid-column:1/-1}.customs-cost-row .purchase-remove-item{grid-area:3/2;justify-self:end}.purchase-currency-summary{align-items:start;gap:4px;margin-top:9px;font-size:9px;display:grid}.purchase-currency-summary span{text-align:left}.purchase-order-total-international{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.purchase-order-total-international>div{min-width:0}.purchase-order-total-international>div:nth-child(2n){text-align:right}.purchase-order-total-international>div:last-child{text-align:right;border-top:1px dashed #edf0f5;grid-column:1/-1;padding-top:7px}.purchase-order-total-international strong{font-size:18px}.purchase-line-total em,.purchase-vnd-subvalue{font-size:8px}}.purchase-order-total{border-top:1px solid #edf0f5;justify-content:flex-end;align-items:center;gap:30px;margin-top:18px;padding:14px 0 2px;display:flex}.purchase-order-total>div{text-align:right}.purchase-order-total b,.purchase-order-total span,.purchase-order-total strong{display:block}.purchase-order-total span{color:var(--muted);font-size:10px}.purchase-order-total b{color:var(--ink);margin-top:4px;font-size:13px}.purchase-order-total strong{color:var(--orange);margin-top:2px;font-size:20px}.purchase-order-modal-modern .modal-actions{z-index:2;background:#fff;border-top:1px solid #edf0f5;margin:17px -24px -24px;padding:15px 24px 24px;position:sticky;bottom:-24px}.purchase-order-modal-modern .purchase-draft-button{color:#c85d2d;background:#fff8f3;border-color:#ffd6c2}.purchase-order-modal-modern .purchase-draft-button:hover:not(:disabled){background:#fff1e8;border-color:#ffb18e}.purchase-order-modal-modern .purchase-save-button{min-width:150px}.purchase-order-modal-modern .purchase-draft-button:disabled{cursor:default;opacity:.45}.purchase-receive-button{white-space:nowrap;min-width:122px;padding:0 9px;font-size:10px}.purchase-receive-button:disabled{cursor:default;opacity:.52}.purchase-status-select{width:150px;min-width:150px}.purchase-status-select .order-filter-trigger{min-height:32px;padding:0 9px;font-size:10px}.purchase-orders-table td:last-child,.purchase-orders-table th:last-child{text-align:right}.purchase-id-button{color:#255d9e;text-align:left;text-underline-offset:3px;background:0 0;border:0;padding:0;font-size:11px;font-weight:800;-webkit-text-decoration:underline #cbd9ec;text-decoration:underline #cbd9ec}.purchase-id-button:hover{color:var(--orange);text-decoration-color:#ffc2a4}.purchase-invoice-link{color:#2c6aa4;text-underline-offset:3px;font-size:10px;font-weight:700;text-decoration:underline}.invoice-attached{color:#168b66;font-size:10px;font-weight:700}.purchase-detail-modal{width:min(760px,100vw - 32px);max-height:calc(100dvh - 40px);padding:24px;overflow-y:auto}.purchase-detail-status{color:var(--muted);align-items:center;gap:10px;margin:14px 0 16px;font-size:11px;display:flex}.purchase-detail-summary{background:#e8edf4;border:1px solid #e8edf4;border-radius:11px;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.purchase-detail-summary>div{background:#fbfcfe;min-width:0;padding:13px}.purchase-detail-summary b,.purchase-detail-summary small,.purchase-detail-summary strong{display:block}.purchase-detail-summary small{color:var(--muted);font-size:10px}.purchase-detail-summary b,.purchase-detail-summary strong{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:12px;overflow:hidden}.purchase-detail-summary strong{color:var(--orange);font-size:14px}.purchase-detail-section{background:#fff;border:1px solid #e8edf4;border-radius:12px;margin-top:20px;padding:15px}.purchase-detail-section-head{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px;display:flex}.purchase-detail-section-head b{color:var(--ink);font-size:13px}.purchase-detail-section-head small{color:var(--muted);font-size:10px}.purchase-invoice-detail{grid-template-columns:1fr 1fr auto;align-items:end;gap:10px;display:grid}.purchase-invoice-detail>div{min-width:0}.purchase-invoice-detail b,.purchase-invoice-detail span{display:block}.purchase-invoice-detail span{color:var(--muted);font-size:10px}.purchase-invoice-detail b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:12px;overflow:hidden}.purchase-invoice-detail a{white-space:nowrap;min-height:34px}.purchase-invoice-preview{text-align:center;background:#f8fafc;border:1px solid #e8edf4;border-radius:9px;margin-top:13px;padding:8px}.purchase-invoice-preview img{object-fit:contain;border-radius:6px;max-width:100%;max-height:260px;margin:0 auto;display:block}.purchase-detail-items{min-width:560px}.purchase-detail-items td:first-child b,.purchase-detail-items td:first-child small{display:block}.purchase-detail-items td:first-child small{color:var(--muted);margin-top:3px;font-size:10px}.purchase-detail-notes{color:var(--muted);background:#f7f9fc;border-radius:10px;margin-top:15px;padding:12px 14px;font-size:11px;line-height:1.5}.purchase-detail-notes b{color:var(--ink)}.purchase-detail-notes p{white-space:pre-wrap;margin:5px 0 0}@media (max-width:720px){.purchase-order-modal-modern{width:calc(100vw - 18px);padding:18px 15px calc(18px + env(safe-area-inset-bottom,0px))}.purchase-order-modal-modern .modal-head h2{font-size:18px}.purchase-order-modal-modern .modal-subtitle{line-height:1.35}.purchase-order-modal-modern .purchase-order-fields{padding:12px}.purchase-items-columns{display:none}.purchase-item-row{grid-template-columns:1fr 1fr;gap:10px;padding:12px}.purchase-product-picker{grid-column:1/-1}.purchase-item-row>label>span{display:block}.purchase-line-total{justify-content:flex-end;align-items:flex-start}.purchase-remove-item{justify-self:end}.purchase-product-menu{width:auto;max-height:68vh;position:fixed;top:18vh;left:9px;right:9px}.purchase-order-modal-modern .modal-actions{bottom:calc(-18px - env(safe-area-inset-bottom,0px));margin-left:-15px;margin-right:-15px;padding-left:15px;padding-right:15px}.purchase-order-total{justify-content:space-between;gap:10px}.purchase-order-total>div{text-align:left}.purchase-order-total>div:last-child{text-align:right}.purchase-orders-table{min-width:1060px}.purchase-status-select{width:142px;min-width:142px}.purchase-detail-modal{width:calc(100vw - 18px);max-height:calc(100dvh - 18px - env(safe-area-inset-bottom,0px));padding:18px 15px calc(18px + env(safe-area-inset-bottom,0px))}.purchase-detail-summary{grid-template-columns:1fr 1fr}.purchase-invoice-detail{grid-template-columns:1fr;align-items:stretch}.purchase-invoice-detail a{justify-content:center}}.purchase-table-filters{justify-content:flex-end;align-items:center;gap:8px;min-width:0;display:flex}.purchase-table-filters .purchase-search{flex:0 300px;width:300px;min-width:190px}.purchase-time-filter{width:155px;min-width:155px}.purchase-time-filter .order-filter-trigger{min-height:39px;font-size:10px}.purchase-row-actions{justify-content:flex-end;align-items:center;gap:6px;display:inline-flex}.purchase-row-actions .danger,.purchase-row-actions .soft{min-height:32px;padding:0 9px;font-size:10px}.purchase-row-actions .purchase-view-action{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.purchase-delete-confirm,.purchase-row-actions .danger{color:#c84747;background:#fff5f5;border:1px solid #ffd1d1;border-radius:8px;font-weight:700}.purchase-delete-confirm:hover,.purchase-row-actions .danger:hover{background:#ffebeb}.purchase-delete-modal{text-align:center;width:min(430px,100vw - 32px);padding:28px}.purchase-delete-icon{color:#d04d4d;background:#fff0f0;border-radius:14px;place-items:center;width:48px;height:48px;margin:0 auto 13px;display:grid}.purchase-delete-modal h2{color:var(--ink);margin:0;font-size:18px}.purchase-delete-modal p{color:var(--muted);margin:10px 0 5px;font-size:11px;line-height:1.55}.purchase-delete-modal p b{color:var(--ink)}.purchase-delete-modal .modal-actions{justify-content:center;margin-top:20px}@media (max-width:720px){.purchase-table-filters{grid-template-columns:minmax(0,1fr) 145px;width:100%;margin-top:10px;display:grid}.purchase-table-filters .purchase-search{grid-column:1/-1;width:100%;min-width:0}.purchase-time-filter{width:100%;min-width:0}.purchase-row-actions{flex-wrap:wrap;max-width:210px}.purchase-row-actions .purchase-receive-button{flex:1 0 100%}}.purchase-inline-select{width:100%;min-width:0;display:block}.purchase-inline-select .order-filter-trigger{width:100%;min-height:43px;color:var(--ink);text-align:left;background:#fff;border:1px solid #dfe5ef;border-radius:9px;padding:0 11px;font-size:11px}.purchase-inline-select .order-filter-trigger>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.purchase-inline-select .order-filter-trigger:hover,.purchase-inline-select.open .order-filter-trigger{border-color:var(--orange);box-shadow:0 0 0 3px #ff6a2a12}.purchase-inline-select .order-filter-chevron{color:#7f8aa0;flex:none}.purchase-type-select{z-index:1;position:relative}.purchase-type-select.open{z-index:30}.purchase-type-select .order-filter-menu{width:100%;max-height:min(220px,40dvh);top:calc(100% + 5px);left:0;right:auto}.purchase-order-modal-modern .purchase-cost-field input,.purchase-order-modal-modern .purchase-quantity-field input{min-height:43px;color:var(--ink);font-variant-numeric:tabular-nums;background:#fbfcfe;border:1px solid #dfe5ef;border-radius:9px;outline:0;padding:0 11px;font-size:12px;font-weight:700;transition:border-color .15s,box-shadow .15s,background .15s}.purchase-order-modal-modern input[type=number]{appearance:textfield}.purchase-order-modal-modern input[type=number]::-webkit-inner-spin-button,.purchase-order-modal-modern input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.purchase-order-modal-modern .purchase-cost-field input:focus,.purchase-order-modal-modern .purchase-quantity-field input:focus{border-color:var(--orange);background:#fff;box-shadow:0 0 0 3px #ff6a2a12}.purchase-order-modal-modern .purchase-quantity-field input{text-align:center}.purchase-order-modal-modern .purchase-cost-field input{text-align:right}.purchase-order-modal-modern .purchase-landed-unit,.purchase-order-modal-modern .purchase-line-total,.purchase-order-modal-modern .purchase-unit-vnd{text-align:center;align-items:center}.purchase-order-modal-modern .purchase-order-fields{grid-auto-rows:minmax(76px,auto);align-items:stretch}.purchase-order-modal-modern .purchase-order-fields>label{align-content:start;min-width:0}.purchase-order-modal-modern .purchase-id-preview,.purchase-order-modal-modern .purchase-order-fields>label>.purchase-inline-select,.purchase-order-modal-modern .purchase-order-fields>label>input:not([type=hidden]){align-self:start}.purchase-order-modal-modern .purchase-remove-item{color:#7a879b;background:#f7f9fc;border:1px solid #e5eaf2;border-radius:50%;align-self:center;place-items:center;width:30px;height:30px;padding:0;font-size:18px;line-height:1;transition:color .15s,border-color .15s,background .15s,transform .15s;display:grid}.purchase-order-modal-modern .purchase-remove-item:hover:not(:disabled){color:var(--orange);background:#fff3ed;border-color:#ffb79b;transform:scale(1.04)}.purchase-order-modal-modern .purchase-remove-item:disabled{cursor:default;opacity:.4}.purchase-order-modal-modern .purchase-remove-item span{display:block;transform:translateY(-1px)}.purchase-add-item-button{color:#c85d2d;background:linear-gradient(135deg,#fff8f4,#fff1e8);border:1px solid #ffd6c2;border-radius:9px;align-items:center;gap:7px;min-height:34px;padding:0 12px 0 8px;font-size:10px;font-weight:800;transition:border-color .15s,box-shadow .15s,transform .15s,background .15s;display:inline-flex;box-shadow:0 4px 12px #f36f2a12}.purchase-add-item-button>span{width:23px;height:23px;color:var(--orange);background:#fff;border-radius:7px;place-items:center;display:grid;box-shadow:0 2px 7px #f36f2a1c}.purchase-add-item-button:hover:not(:disabled){background:linear-gradient(135deg,#fff4ed,#ffe9dc);border-color:#ffb18e;transform:translateY(-1px);box-shadow:0 7px 16px #f36f2a1e}.purchase-add-item-button:disabled{cursor:not-allowed;opacity:.48}.purchase-item-row,.purchase-items-columns{grid-template-columns:minmax(0,1fr) 82px 120px 112px 125px 132px 30px}.purchase-item-row-domestic,.purchase-items-columns-domestic{grid-template-columns:minmax(0,1fr) 82px 120px 125px 132px 30px}.purchase-item-row-with-taxes,.purchase-items-columns-with-taxes{grid-template-columns:minmax(250px,1fr) 64px 98px 68px 68px 112px 122px 30px;gap:8px}.purchase-items-columns span:nth-child(2){text-align:center}.purchase-items-columns span:nth-child(n+3){text-align:right}.purchase-cost-field,.purchase-quantity-field,.purchase-tax-field{min-width:0}.purchase-cost-field input,.purchase-quantity-field input{width:100%;min-width:0;max-width:100%}.purchase-tax-field input{text-align:right;width:100%;min-width:0;min-height:39px;padding:0 7px}.invoice-file-selected{color:#1d8e6a;text-overflow:ellipsis;white-space:nowrap;background:#f2fbf7;border:1px solid #d7eee5;border-radius:7px;align-items:center;gap:6px;margin-top:7px;padding:7px 9px;font-size:10px;font-weight:700;display:flex;overflow:hidden}.invoice-file-card{color:#2e6099;background:#f8fafc;border:1px solid #dfe8f3;border-radius:9px;align-items:center;gap:10px;min-width:min(100%,340px);padding:11px 13px;text-decoration:none;display:inline-flex}.invoice-file-card>span{min-width:0}.invoice-file-card b,.invoice-file-card small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.invoice-file-card b{font-size:11px}.invoice-file-card small{color:var(--muted);margin-top:3px;font-size:9px}@media (max-width:720px){.purchase-product-picker{grid-column:1/-1}.purchase-add-item-button{min-height:32px;padding-right:9px}.purchases-page{padding:14px 12px 28px}.purchase-page-heading{margin-bottom:10px}.purchase-page-heading>div:first-child small{max-width:33ch;line-height:1.45;display:block}.purchase-page-actions{grid-template-columns:minmax(0,1fr) minmax(0,1.22fr);gap:8px;margin-top:10px}.purchase-page-actions button{min-height:44px;padding:0 8px;font-size:11px}.purchase-summary{gap:8px}.purchase-summary>div{min-height:86px;padding:13px 11px}.purchase-summary b{font-size:18px}.purchase-tabs{gap:2px;margin:10px -12px 0;padding:0 12px}.purchase-tabs button{min-height:43px;padding:9px 12px;font-size:10px}.purchase-table-card{border-radius:14px;margin-top:10px}.purchase-card-head{padding:14px 13px 11px}.purchase-card-head .card-title{font-size:14px}.purchase-card-head small{max-width:36ch;margin-top:4px;line-height:1.4;display:block}.purchase-table-filters{grid-template-columns:minmax(0,1fr) 126px;gap:7px;margin-top:9px}.purchase-table-filters .purchase-search{height:40px;min-height:40px}.purchase-time-filter .order-filter-trigger{min-height:40px}.purchase-table-card .table-scroll{overflow:visible}.purchase-orders-table{width:100%;min-width:0;display:block}.purchase-orders-table thead{display:none}.purchase-orders-table tbody{gap:9px;padding:10px;display:grid}.purchase-orders-table tr{background:#fff;border:1px solid #e8edf4;border-radius:11px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 10px;padding:12px;display:grid;box-shadow:0 3px 10px #1721380a}.purchase-orders-table td{white-space:normal;overflow-wrap:anywhere;border:0;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:0;font-size:11px;line-height:1.35;display:flex}.purchase-orders-table td:before{content:attr(data-label);color:#97a0b0;letter-spacing:.04em;text-transform:uppercase;font-size:8px;font-weight:800;line-height:1.2;display:block}.purchase-orders-table td:first-child{grid-area:1/1}.purchase-orders-table td:first-child:before{display:none}.purchase-orders-table td:first-child .purchase-id-button{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;overflow:hidden}.purchase-orders-table td:nth-child(2){grid-area:2/1}.purchase-orders-table td:nth-child(3){grid-area:3/1}.purchase-orders-table td:nth-child(4){grid-area:3/2}.purchase-orders-table td:nth-child(5){text-align:right;grid-area:2/2;align-items:flex-end}.purchase-orders-table td:nth-child(6){text-align:right;grid-area:1/2;align-items:flex-end}.purchase-orders-table td:nth-child(7){grid-area:4/1}.purchase-orders-table td:nth-child(8){text-align:right;grid-area:4/2;align-items:flex-end}.purchase-orders-table td:nth-child(9){border-top:1px solid #edf0f5;grid-area:5/1/auto/-1;padding-top:8px}.purchase-orders-table td:nth-child(9):before{display:none}.purchase-orders-table td:nth-child(5):before,.purchase-orders-table td:nth-child(6):before,.purchase-orders-table td:nth-child(8):before{align-self:flex-end}.purchase-orders-table .purchase-status-select{width:100%;min-width:0}.purchase-orders-table .purchase-status-select .order-filter-trigger{min-height:34px;padding:0 8px;font-size:10px}.purchase-row-actions{grid-template-columns:1fr 1fr;gap:6px;width:100%;max-width:none;display:grid}.purchase-row-actions>button{width:100%;min-height:35px;padding:0 7px;font-size:10px}.purchase-row-actions .purchase-view-action{grid-column:1/-1}.purchase-row-actions .purchase-receive-button{flex:initial;grid-column:1/-1}.purchase-statistics{margin-top:10px}.purchase-statistics .table-scroll{overflow-x:auto}.purchase-modal-backdrop{padding:max(10px,env(safe-area-inset-top,0px)) 9px max(10px,env(safe-area-inset-bottom,0px));align-items:center;overflow:hidden}.purchase-order-modal-modern{width:calc(100vw - 18px);max-height:calc(100dvh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:14px 12px calc(14px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain;border-radius:18px;overflow-y:auto}.purchase-order-modal-modern .modal-head{padding-bottom:11px}.purchase-order-modal-modern .modal-head h2{margin-top:3px;font-size:17px}.purchase-order-modal-modern .modal-subtitle{font-size:9px;line-height:1.35}.purchase-modal-note-draft{gap:7px;margin:10px 0 12px;padding:9px 10px}.purchase-note-icon{border-radius:7px;width:26px;height:26px}.purchase-modal-note-draft b{font-size:10px}.purchase-modal-note-draft span{font-size:9px;line-height:1.35}.purchase-form-section,.purchase-items-section{margin-top:13px}.purchase-section-heading{gap:8px;margin-bottom:8px}.purchase-section-number{border-radius:7px;width:25px;height:25px}.purchase-section-heading b{font-size:12px}.purchase-section-heading small{margin-top:2px;font-size:9px;line-height:1.35}.purchase-order-modal-modern .purchase-order-fields{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(58px,auto);gap:8px;max-height:none;padding:10px;overflow:visible}.purchase-order-modal-modern .purchase-order-fields label{gap:4px;font-size:9px}.purchase-order-modal-modern .purchase-order-fields .purchase-inline-select .order-filter-trigger,.purchase-order-modal-modern .purchase-order-fields input,.purchase-order-modal-modern .purchase-order-fields select{min-height:38px;padding-left:9px;padding-right:9px;font-size:12px}.purchase-order-modal-modern .purchase-id-preview small{font-size:8px;line-height:1.2}.purchase-items-editor{border-radius:11px}.purchase-items-head{padding:9px 10px}.purchase-add-item-button{min-height:30px;padding:0 8px 0 6px;font-size:9px}.purchase-add-item-button>span{width:21px;height:21px}.purchase-item-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px}.purchase-item-row>label{gap:4px;font-size:9px}.purchase-item-row>label>span{font-size:9px}.purchase-product-trigger{min-height:42px;padding:6px 9px}.purchase-product-trigger b{font-size:10px}.purchase-product-trigger small{font-size:9px}.purchase-product-picker{z-index:2;overflow:visible}.purchase-product-picker.open{z-index:3}.purchase-product-menu{border-radius:10px;width:100%;max-height:min(300px,42dvh);margin-top:6px;position:relative;top:auto;left:auto;box-shadow:0 9px 22px #1721381d}.purchase-product-search{padding:6px 9px}.purchase-product-search input{height:29px;font-size:11px}.purchase-product-options{max-height:min(235px,33dvh)}.purchase-product-options button{min-height:46px;padding:7px 9px}.purchase-product-options b{font-size:10px}.purchase-product-options em,.purchase-product-options small{font-size:9px}.purchase-order-modal-modern .purchase-cost-field input,.purchase-order-modal-modern .purchase-quantity-field input{min-height:39px;padding:0 9px;font-size:13px}.purchase-line-total{justify-content:center;align-items:flex-start;min-height:39px;font-size:11px}.purchase-line-total small{font-size:8px}.purchase-landed-unit,.purchase-unit-vnd{justify-content:center;align-items:flex-start;min-height:39px;font-size:11px}.purchase-landed-unit small,.purchase-unit-vnd small{font-size:8px}.purchase-order-modal-modern .purchase-remove-item{place-self:center end;width:28px;height:28px;font-size:17px}.purchase-notes-section textarea{min-height:58px}.purchase-order-total{gap:8px;margin-top:11px;padding:10px 0 1px}.purchase-order-total span{font-size:9px}.purchase-order-total strong{font-size:17px}.purchase-order-modal-modern .modal-actions{bottom:calc(-14px - env(safe-area-inset-bottom,0px));padding:10px 12px calc(12px + env(safe-area-inset-bottom,0px));gap:7px;margin-left:-12px;margin-right:-12px}.purchase-order-modal-modern .modal-actions button{min-height:40px;font-size:11px}.purchase-order-modal-modern .purchase-save-button{flex:1;min-width:0}.purchase-order-modal-modern .purchase-draft-button{padding-left:9px;padding-right:9px}.purchase-statistics .purchase-stats-table,.purchase-table-card .purchase-history-table,.purchase-table-card .purchase-invoices-table,.purchase-table-card .suppliers-table{table-layout:fixed;width:100%;min-width:0}.purchase-statistics .purchase-stats-table td,.purchase-statistics .purchase-stats-table th,.purchase-table-card .purchase-history-table td,.purchase-table-card .purchase-history-table th,.purchase-table-card .purchase-invoices-table td,.purchase-table-card .purchase-invoices-table th,.purchase-table-card .suppliers-table td,.purchase-table-card .suppliers-table th{white-space:normal;overflow-wrap:anywhere;padding:9px 7px;font-size:9px;line-height:1.35}.purchase-table-card .purchase-history-table td:nth-child(7),.purchase-table-card .purchase-history-table th:nth-child(7),.purchase-table-card .purchase-invoices-table td:nth-child(6),.purchase-table-card .purchase-invoices-table td:nth-child(7),.purchase-table-card .purchase-invoices-table th:nth-child(6),.purchase-table-card .purchase-invoices-table th:nth-child(7),.purchase-table-card .suppliers-table td:nth-child(3),.purchase-table-card .suppliers-table td:nth-child(4),.purchase-table-card .suppliers-table td:nth-child(5),.purchase-table-card .suppliers-table th:nth-child(3),.purchase-table-card .suppliers-table th:nth-child(4),.purchase-table-card .suppliers-table th:nth-child(5){display:none}.purchase-table-card .suppliers-table td:first-child,.purchase-table-card .suppliers-table th:first-child{width:24%}.purchase-table-card .suppliers-table td:nth-child(2),.purchase-table-card .suppliers-table th:nth-child(2){width:51%}.purchase-table-card .suppliers-table td:last-child,.purchase-table-card .suppliers-table th:last-child{width:25%}.purchase-table-card .purchase-invoices-table td:first-child,.purchase-table-card .purchase-invoices-table th:first-child{width:24%}.purchase-table-card .purchase-invoices-table td:nth-child(2),.purchase-table-card .purchase-invoices-table th:nth-child(2){width:30%}.purchase-table-card .purchase-invoices-table td:nth-child(3),.purchase-table-card .purchase-invoices-table th:nth-child(3){width:28%}.purchase-table-card .purchase-invoices-table td:nth-child(4),.purchase-table-card .purchase-invoices-table th:nth-child(4){width:18%}.purchase-table-card .purchase-history-table td:first-child,.purchase-table-card .purchase-history-table th:first-child{width:16%}.purchase-table-card .purchase-history-table td:nth-child(2),.purchase-table-card .purchase-history-table th:nth-child(2){width:23%}.purchase-table-card .purchase-history-table td:nth-child(3),.purchase-table-card .purchase-history-table th:nth-child(3){width:25%}.purchase-table-card .purchase-history-table td:nth-child(4),.purchase-table-card .purchase-history-table th:nth-child(4){width:24%}.purchase-table-card .purchase-history-table td:nth-child(5),.purchase-table-card .purchase-history-table th:nth-child(5){width:12%}.purchase-statistics .purchase-stats-table td:first-child,.purchase-statistics .purchase-stats-table th:first-child{width:20%}.purchase-statistics .purchase-stats-table td:nth-child(2),.purchase-statistics .purchase-stats-table th:nth-child(2){width:34%}.purchase-statistics .purchase-stats-table td:nth-child(3),.purchase-statistics .purchase-stats-table th:nth-child(3){width:16%}.purchase-statistics .purchase-stats-table td:nth-child(4),.purchase-statistics .purchase-stats-table td:nth-child(5),.purchase-statistics .purchase-stats-table th:nth-child(4),.purchase-statistics .purchase-stats-table th:nth-child(5){width:15%}.purchase-statistics .purchase-stats-table td:nth-child(6),.purchase-statistics .purchase-stats-table th:nth-child(6){display:none}}.purchase-order-view-modal{width:min(980px,100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto}.purchase-print-footer{display:none}.purchase-order-view-head{align-items:center}.purchase-order-view-head>div:first-child{flex:auto;min-width:0}.purchase-order-view-head .modal-subtitle{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.purchase-detail-head-actions{flex:none;align-items:center;gap:7px;max-width:100%;display:flex}.purchase-detail-head-actions .soft{align-items:center;gap:5px;min-height:34px;padding:0 10px;display:inline-flex}.purchase-detail-head-actions .purchase-quick-button{border:1px solid var(--line);color:#5e6779;background:#fff;border-radius:8px;padding:0 11px}.purchase-detail-head-actions .purchase-pdf-button,.purchase-detail-head-actions .purchase-quick-button{white-space:nowrap;align-items:center;gap:6px;width:auto;height:34px;min-height:34px;font-size:10px;font-weight:700;display:inline-flex}.purchase-detail-head-actions .purchase-pdf-button{background:var(--orange);color:#fff;border:0;border-radius:8px;padding:0 12px}.purchase-detail-head-actions .purchase-pdf-button:disabled{cursor:wait;opacity:.65}.purchase-detail-close{flex:none}.purchase-detail-head-actions>button:last-child{margin-left:2px}.purchase-view-notice{color:#527099;background:#f4f8fd;border:1px solid #d9e7f7;border-radius:9px;align-items:flex-start;gap:9px;margin:16px 0 14px;padding:11px 13px;font-size:10px;line-height:1.5;display:flex}.purchase-view-notice .app-icon{color:#4b78ab;flex:none}.purchase-view-notice b{color:#2f5d91}.purchase-order-view-meta{background:#e6ebf2;border:1px solid #e6ebf2;border-radius:10px;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.purchase-order-view-meta>div{background:#fbfcfe;min-width:0;min-height:68px;padding:12px 13px}.purchase-order-view-meta b,.purchase-order-view-meta small,.purchase-order-view-meta span{display:block}.purchase-order-view-meta small{color:var(--muted);font-size:9px}.purchase-order-view-meta b{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:11px;overflow:hidden}.purchase-order-view-meta>div>span:not(.status){color:var(--muted);margin-top:3px;font-size:9px}.purchase-order-view-meta .status{width:fit-content;margin-top:7px}.purchase-order-table-section{margin-top:16px}.purchase-order-view-items{table-layout:fixed;min-width:880px}.purchase-order-view-items td,.purchase-order-view-items th{vertical-align:middle;padding:10px}.purchase-order-view-items td:first-child,.purchase-order-view-items th:first-child{text-align:center;width:42px}.purchase-order-view-items td:nth-child(2),.purchase-order-view-items th:nth-child(2){width:118px}.purchase-order-view-items td:nth-child(3),.purchase-order-view-items th:nth-child(3){width:220px;min-width:220px}.purchase-order-view-items td:nth-child(4),.purchase-order-view-items th:nth-child(4){text-align:center;width:60px}.purchase-order-view-items td:nth-child(5),.purchase-order-view-items td:nth-child(6),.purchase-order-view-items th:nth-child(5),.purchase-order-view-items th:nth-child(6){text-align:right;width:105px}.purchase-order-view-items td:nth-child(7),.purchase-order-view-items th:nth-child(7){text-align:right;width:110px}.purchase-order-view-items td:nth-child(8),.purchase-order-view-items th:nth-child(8){text-align:right;width:120px}.purchase-order-view-items td code{color:#526982;font-size:10px}.purchase-order-view-items td:nth-child(3){text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.35;overflow:visible}.purchase-order-view-items td:nth-child(3) b{white-space:normal;overflow-wrap:anywhere;line-height:1.35;display:block}.purchase-order-view-items tfoot td{color:var(--ink);background:#f8fafc;border-top:2px solid #dfe6ef;font-weight:800}.purchase-order-view-items tfoot td:last-child{color:var(--orange);font-size:12px}.purchase-order-invoice-summary{margin-top:16px}@media (max-width:1120px) and (min-width:721px){.purchase-order-view-head{flex-wrap:wrap;gap:10px}.purchase-order-view-head>div:first-child{flex-basis:100%}.purchase-detail-head-actions{justify-content:flex-end;width:100%}}@media (max-width:720px){.purchase-order-view-modal{width:calc(100vw - 18px);max-height:calc(100dvh - 18px - env(safe-area-inset-bottom,0px));padding:18px 15px calc(18px + env(safe-area-inset-bottom,0px))}.purchase-order-view-head{align-items:flex-start}.purchase-detail-head-actions{flex-wrap:wrap;justify-content:flex-end;max-width:142px}.purchase-detail-head-actions .purchase-pdf-button,.purchase-detail-head-actions .purchase-quick-button,.purchase-detail-head-actions .soft{height:31px;min-height:31px;padding:0 8px;font-size:9px}.purchase-detail-head-actions>button:last-child{order:-1}.purchase-order-view-meta{grid-template-columns:1fr 1fr}.purchase-order-view-meta>div{min-height:64px}.purchase-order-view-items{min-width:880px}}@media print{@page{size:landscape;margin:12mm}body *{visibility:hidden!important}.purchase-modal-backdrop,.purchase-modal-backdrop *{visibility:visible!important}.purchase-modal-backdrop{background:#fff!important;padding:0!important;display:block!important;position:absolute!important;inset:0!important}.purchase-order-view-modal{width:100%!important;max-width:none!important;max-height:none!important;box-shadow:none!important;border:0!important;padding:0!important;overflow:visible!important}.purchase-order-quick-view-modal .purchase-order-view-head{display:none!important}.purchase-order-table-section{margin-top:18px!important}.purchase-detail-actions,.purchase-detail-head-actions{display:none!important}.purchase-order-view-items{min-width:0!important}.purchase-print-footer{color:#778096;border-top:1px solid #dfe6ef;margin-top:16px;padding-top:8px;font-size:9pt;line-height:1.2;display:block!important}}.purchase-date-field{min-width:0}.purchase-date-control{color:#7a879b;background:#fbfcfe;border:1px solid #dfe5ef;border-radius:9px;align-items:center;gap:7px;min-width:0;min-height:43px;padding:0 9px;transition:border-color .15s,box-shadow .15s,background .15s;display:flex}.purchase-date-control:focus-within{border-color:var(--orange);background:#fff;box-shadow:0 0 0 3px #ff6a2a12}.purchase-date-control>.app-icon{width:15px;height:15px;color:var(--orange);pointer-events:none;flex:none}.purchase-date-control input[type=date]{width:100%;min-width:0;max-width:100%;min-height:35px;color:var(--ink);font-variant-numeric:tabular-nums;background:0 0;border:0;outline:0;flex:auto;padding:0;font-size:12px;font-weight:650;display:block;overflow:hidden}.purchase-date-control input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0}.purchase-date-control input[type=date]::-webkit-calendar-picker-indicator{opacity:.65;width:14px;height:14px;margin-left:3px}.purchase-order-modal:not(.purchase-order-modal-modern) input[type=date]{width:100%;min-width:0;max-width:100%;font-size:12px;display:block;overflow:hidden}@media (max-width:720px){.purchase-date-control{border-radius:10px;gap:5px;min-height:38px;padding:0 8px}.purchase-date-control>.app-icon{width:14px;height:14px}.purchase-date-control input[type=date]{letter-spacing:-.015em;width:0;min-width:0;min-height:31px!important;box-shadow:none!important;background:0 0!important;border:0!important;padding:0!important;font-size:11px!important}.purchase-date-control input[type=date]::-webkit-calendar-picker-indicator{width:13px;height:13px;margin-left:2px}.purchase-order-modal:not(.purchase-order-modal-modern) input[type=date]{min-height:44px;padding:0 8px;font-size:13px}.orders-toolbar{gap:8px;padding:11px}.orders-toolbar .search{height:42px;min-height:42px}.orders-toolbar .order-filter-trigger{min-height:42px;padding:0 9px;font-size:11px}.orders-toolbar .mobile-order-add,.orders-toolbar .order-resolution-button,.orders-toolbar .orders-purchases-button{min-height:44px}.orders-table-scroll{overflow:visible}.orders-table{table-layout:fixed;width:100%;min-width:0;display:block}.orders-table thead{display:none}.orders-table tbody{gap:10px;padding:10px;display:grid}.orders-table tr{background:#fff;border:1px solid #e5eaf2;border-radius:14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 10px;min-width:0;padding:12px;display:grid;box-shadow:0 4px 14px #1721380b}.orders-table tr.quick-draft-row{background:#fffaf7;border-color:#f2d4c3}.orders-table td{min-width:0;color:var(--ink);white-space:normal;overflow-wrap:anywhere;border:0;flex-direction:column;align-items:flex-start;gap:3px;padding:0;font-size:11px;line-height:1.35;display:flex}.orders-table td:before{content:attr(data-label);color:#929bac;letter-spacing:.04em;text-transform:uppercase;font-size:8px;font-weight:800;line-height:1.2;display:block}.orders-table td:first-child{grid-area:1/1}.orders-table td:first-child:before{display:none}.orders-table td:first-child code{color:#2c6096;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;font-weight:800;display:block;overflow:hidden}.orders-table td:nth-child(2){grid-area:2/1}.orders-table td:nth-child(3){text-align:right;grid-area:2/2;align-items:flex-end}.orders-table td:nth-child(4){background:#fafbfe;border:1px solid #edf0f5;border-radius:10px;grid-area:3/1/auto/-1;min-height:48px;margin-top:1px;padding:9px 10px}.orders-table td:nth-child(4):before{margin-bottom:2px}.orders-table td:nth-child(5){grid-area:4/1}.orders-table td:nth-child(6){text-align:right;grid-area:4/2;align-items:flex-end}.orders-table td:nth-child(7){grid-area:5/1}.orders-table td:nth-child(8){text-align:right;grid-area:5/2;align-items:flex-end}.orders-table td:nth-child(9){border-top:1px solid #edf0f5;grid-area:6/1/auto/-1;align-items:flex-end;min-height:35px;padding-top:8px}.orders-table td:nth-child(9):before{display:none}.orders-table .order-meta-cell{gap:2px;min-width:0;display:grid}.orders-table .order-meta-cell b{font-size:11px}.orders-table .order-meta-cell b,.orders-table .order-meta-cell small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.orders-table .order-meta-cell small{color:var(--muted);font-size:9px}.orders-table .order-products-cell{gap:3px;width:100%;min-width:0;display:grid}.orders-table .order-products-cell span{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:11px;line-height:1.35;display:-webkit-box;overflow:hidden}.orders-table .order-products-cell span+span{color:#596477;border-top:1px dashed #e3e8f0;padding-top:4px}.orders-table .order-status-cell{justify-items:end;gap:3px;min-width:0;display:grid}.orders-table .order-status-cell .status{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:9px;overflow:hidden}.orders-table .order-status-cell small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:8px;overflow:hidden}.orders-table .order-row-actions{justify-content:flex-end;align-items:center;gap:6px;display:inline-flex}.orders-table .order-view-button,.orders-table .row-actions-trigger{background:#f8fafc;border:1px solid #e4e9f1;border-radius:9px;width:34px;height:34px}.orders-table .order-view-button:focus-visible,.orders-table .order-view-button:hover,.orders-table .row-actions-trigger:hover,.orders-table .row-actions-trigger[aria-expanded=true]{color:var(--orange);background:#fff2ea;border-color:#ffcbb4}.orders-table .row-actions{display:inline-grid}.row-actions-menu{border-radius:11px;width:min(176px,100vw - 20px);padding:6px;box-shadow:0 16px 36px #17213838}.row-actions-menu button{min-height:40px;padding:0 11px;font-size:11px}.row-actions-portal{z-index:10050}.costs-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.costs-summary>div:last-child:nth-child(odd){grid-column:auto}.costs-summary>div{min-width:0;min-height:84px;padding:13px 10px}.costs-summary b{font-size:16px}.costs-table{width:100%;min-width:0}.costs-table thead{display:none}.costs-table tbody{gap:9px;padding:10px;display:grid}.costs-table tr{background:#fff;border:1px solid #e5eaf2;border-radius:12px;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;min-width:0;padding:11px;display:grid;box-shadow:0 4px 14px #1721380b}.costs-table td{white-space:normal;border:0;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:0;display:flex;text-align:left!important}.costs-table td:before{content:attr(data-label);color:#929bac;letter-spacing:.04em;text-transform:uppercase;font-size:8px;font-weight:800;display:block}.costs-table td:first-child{grid-area:1/1}.costs-table td:nth-child(2){grid-area:1/2;align-items:flex-end}.costs-table td:nth-child(3){grid-area:2/1/auto/-1}.costs-table td:nth-child(4){grid-area:3/1}.costs-table td:nth-child(5){grid-area:3/2;align-items:flex-end}.costs-table td:nth-child(6){border-top:1px solid #edf0f5;grid-area:4/1/auto/-1;align-items:flex-end;padding-top:7px}.costs-table td:nth-child(6):before{display:none}.costs-table .cost-note{max-width:100%}.cost-category-control{grid-template-columns:minmax(0,1fr)}.cost-add-type{width:100%}.cost-new-type{grid-template-columns:minmax(0,1fr) auto 32px}.costs-range-card .costs-visual-picker .visual-time-range-menu{top:auto;right:12px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:10020;grid-template-columns:132px minmax(0,1fr);width:auto;max-height:min(76dvh,560px);position:fixed;left:12px;overflow-y:auto}.costs-range-card .costs-visual-picker .visual-time-range-menu .time-range-presets{border-right:1px solid var(--line);border-bottom:0}.costs-range-card .costs-visual-picker .visual-month-grid,.costs-range-card .costs-visual-picker .visual-year-grid{gap:7px 5px;padding:13px 9px}.costs-range-card .costs-visual-picker .visual-month-grid button,.costs-range-card .costs-visual-picker .visual-year-grid button{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:11px;overflow:hidden}}.order-filter-trigger,.product-combobox-trigger,.purchase-inline-select .order-filter-trigger,.purchase-product-trigger,.time-range-trigger,select:not([multiple]){min-height:42px;color:var(--ink);background-color:#fff;border:1px solid #dfe5ef;border-radius:10px;transition:border-color .16s,box-shadow .16s,background-color .16s}select:not([multiple]){appearance:none;background-image:linear-gradient(45deg,#0000 50%,#8290a3 0),linear-gradient(135deg,#8290a3 50%,#0000 0);background-position:calc(100% - 15px),calc(100% - 10px);background-repeat:no-repeat;background-size:5px 5px,5px 5px;outline:0;padding-right:34px}.order-filter-trigger:hover,.product-combobox-trigger:hover,.purchase-inline-select .order-filter-trigger:hover,.purchase-product-trigger:hover,.time-range-trigger:hover,select:not([multiple]):hover{background-color:#fcfdff;border-color:#cbd5e3}.order-filter-select.open .order-filter-trigger,.order-filter-trigger:focus-visible,.product-combobox-trigger:focus-visible,.product-combobox.open .product-combobox-trigger,.purchase-inline-select .order-filter-trigger:focus-visible,.purchase-product-picker.open .purchase-product-trigger,.purchase-product-trigger:focus-visible,.time-range-trigger:focus-visible,.time-range-trigger[aria-expanded=true],select:not([multiple]):focus-visible{border-color:var(--orange);outline:0;box-shadow:0 0 0 3px #f36f2a18}select:not([multiple]):disabled{cursor:not-allowed;opacity:.65;background-color:#f7f9fc}.order-filter-trigger,.product-combobox-trigger,.purchase-inline-select .order-filter-trigger,.purchase-product-trigger,.time-range-trigger{box-shadow:0 1px 2px #17213808}.order-filter-trigger,.purchase-inline-select .order-filter-trigger{padding-left:12px;padding-right:12px}.order-filter-trigger i,.product-combobox-trigger .app-icon,.purchase-product-trigger .app-icon,.time-range-trigger .app-icon{color:#7e8ba0}.order-filter-select.open .order-filter-trigger,.purchase-inline-select.open .order-filter-trigger{color:var(--ink)}.order-filter-menu,.purchase-product-menu,.time-range-menu,.visual-time-range-menu{border-color:#dfe5ef;border-radius:12px;box-shadow:0 16px 38px #17213824}.order-filter-menu button,.time-range-presets button,.visual-calendar-head button,.visual-day-grid button,.visual-month-grid button,.visual-year-grid button{transition:background-color .14s,color .14s}.order-filter-menu button.selected,.order-filter-menu button:hover,.time-range-presets button.active,.time-range-presets button:hover,.visual-day-grid button.selected,.visual-day-grid button:hover,.visual-month-grid button.selected,.visual-month-grid button:hover,.visual-year-grid button.selected,.visual-year-grid button:hover{color:var(--orange);background-color:#fff3ed}@media (max-width:720px){select:not([multiple]){background-position:calc(100% - 16px),calc(100% - 11px)}.order-filter-trigger,.product-combobox-trigger,.purchase-inline-select .order-filter-trigger,.purchase-product-trigger,.time-range-trigger,select:not([multiple]){border-radius:11px;min-height:44px}.order-filter-menu,.purchase-product-menu,.time-range-menu,.visual-time-range-menu{border-radius:13px}.order-filter-menu button,.time-range-presets button{border-radius:8px;min-height:40px}}.cost-category-control>.cost-category-select{width:100%;min-width:0}.cost-category-select .order-filter-trigger{border-radius:9px;width:100%;min-height:40px;font-size:10px}.cost-category-select .order-filter-trigger span{color:#5e6779}.cost-category-select.open .order-filter-trigger{color:var(--ink)}.cost-category-control .cost-add-type{border-radius:9px;min-height:40px}@media (max-width:720px){.cost-category-control .cost-add-type,.cost-category-select .order-filter-trigger{border-radius:10px;min-height:44px}}.cost-category-field,.cost-shop-field{min-width:0}.cost-shop-select{width:100%;min-width:0}.cost-shop-select .order-filter-trigger{border-radius:9px;width:100%;min-height:40px;font-size:10px}.cost-shop-label{color:#7e899b;text-overflow:ellipsis;white-space:nowrap;max-width:180px;margin-top:4px;font-size:8px;display:block;overflow:hidden}@media (max-width:720px){.cost-shop-select .order-filter-trigger{border-radius:10px;min-height:44px;font-size:12px}.cost-shop-label{max-width:100%;font-size:9px}}.cost-modal{border-radius:16px;width:min(600px,100vw - 32px);max-height:calc(100dvh - 40px);padding:24px}.cost-modal .modal-head{padding-bottom:15px}.cost-modal .cost-modal-note{margin:14px 0 0;padding:10px 12px}.cost-modal .cost-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:15px 16px;padding:17px 0 18px}.cost-modal .cost-form-grid>label{min-width:0}.cost-modal .cost-form-grid .order-filter-trigger,.cost-modal .cost-form-grid>label>input{min-height:42px}.cost-modal .cost-category-control{align-items:stretch;gap:8px;display:flex}.cost-modal .cost-category-select{flex:auto;min-width:0}.cost-modal .cost-category-control .cost-add-type{flex:none;width:auto;min-width:84px;padding:0 11px}.cost-modal .modal-actions{padding-top:14px}.cost-category-menu,.cost-shop-menu{max-height:min(34dvh,232px)!important}.cost-category-menu button,.cost-shop-menu button{min-height:32px;font-size:10px}@media (max-width:720px){.cost-modal{width:min(100%,560px);max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));padding:19px 16px 16px}.cost-modal .cost-modal-note{margin-top:12px;font-size:10px}.cost-modal .cost-form-grid{grid-template-columns:1fr;row-gap:12px;padding:15px 0 16px}.cost-modal .cost-form-grid .order-filter-trigger,.cost-modal .cost-form-grid>label>input{min-height:44px}.cost-modal .cost-category-control{grid-template-columns:minmax(0,1fr) auto;gap:7px;display:grid}.cost-modal .cost-category-control .cost-add-type{width:auto;min-width:92px;padding:0 10px}.cost-category-menu,.cost-shop-menu{max-height:min(42dvh,252px)!important}.costs-summary>div{flex-direction:column;justify-content:center;align-items:flex-start;display:flex}.report-feature .profit-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:17px;display:grid}.report-feature .profit-row>i{display:none}.report-feature .profit-row>div:not(.profit){background:#fafbfc;border:1px solid #edf0f5;border-radius:9px;padding:10px}.report-feature .profit-row .profit{grid-column:1/-1;width:auto;margin-left:0}.purchase-order-modal-modern .purchase-order-total-international{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.purchase-order-modal-modern .purchase-order-total-international>div{min-width:0}.purchase-order-modal-modern .purchase-order-total-international>div:nth-child(2n){text-align:right}.purchase-order-modal-modern .purchase-order-total-international>div:last-child{text-align:right;border-top:1px dashed #edf0f5;grid-column:1/-1;padding-top:7px}}.return-inventory-table td:nth-child(4),.return-inventory-table th:nth-child(4){min-width:132px}.return-inventory-table td:nth-child(5),.return-inventory-table th:nth-child(5){min-width:100px}.return-inventory-table td:nth-child(6),.return-inventory-table th:nth-child(6){min-width:120px}.return-inventory-table td:last-child,.return-inventory-table th:last-child{text-align:right;min-width:108px}.return-condition{color:#4f6eb1;white-space:nowrap;background:#eef3ff;border-radius:999px;align-items:center;min-height:24px;padding:4px 9px;font-size:9px;font-weight:700;display:inline-flex}.return-condition-tot{color:#238a59;background:#eaf8f1}.return-condition-da-qua-su-dung{color:#bd6a27;background:#fff4e9}.return-condition-hu-hong{color:#c94a4a;background:#ffeded}.return-condition-thieu-phu-kien{color:#bd6a27;background:#fff4e9}.return-edit-button{color:#b95b2a;border-color:#f0c6ad;min-height:32px;padding:0 10px}.inventory-return-edit-modal{width:min(560px,100%)}.return-edit-product{background:#fffaf7;border:1px solid #f1d8c9;border-radius:10px;gap:5px;margin:16px 0 3px;padding:12px 14px;display:grid}.return-edit-product b{color:var(--ink);font-size:12px}.return-edit-product span{color:#505b6d;font-size:11px}.return-edit-product small{color:#8a7568;font-size:9px}.inventory-adjust-modal .inventory-return-condition-field select,.inventory-adjust-modal .inventory-return-cost-field input{min-height:42px}.order-warehouse-field select{color:#8f4e2b;background:#fffaf7;border-color:#f0c7ad;font-weight:650}.order-warehouse-field .field-hint{display:block}@media (max-width:720px){.return-inventory-table td:nth-child(4):before{content:"Tình trạng"}.return-inventory-table td:nth-child(5):before{content:"Giá nhập"}.return-inventory-table td:nth-child(6):before{content:"Giá trị tồn"}.return-inventory-table td:nth-child(7):before{content:"Thao tác"}.inventory-page .return-inventory-table td:nth-child(6){color:#344054;font-weight:700}.inventory-page .return-inventory-table td:nth-child(7){align-items:flex-start}.return-inventory-table td:last-child{text-align:left}.return-inventory-table .return-edit-button{min-height:36px}.inventory-return-edit-modal{padding-bottom:calc(16px + env(safe-area-inset-bottom))}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}