:root{--bg:#f4f6f7;--panel:#fff;--text:#172026;--muted:#65727a;--line:#dfe5e7;--green:#147a5b;--green-dark:#0d6046;--green-soft:#e8f4ef;--amber:#c77b08;--amber-soft:#fff3dc;--red:#c43d3d;--red-soft:#fdeaea;--blue:#326aa0;--shadow:0 1px 2px rgba(17,31,38,.06)}
*{box-sizing:border-box}body{margin:0;font-family:"Microsoft YaHei UI","PingFang SC",Arial,sans-serif;color:var(--text);background:var(--bg);letter-spacing:0}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#152922;color:#fff;padding:24px 16px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 26px}.brand-mark{width:40px;height:40px;border-radius:6px;background:#eef8f3;color:var(--green-dark);display:grid;place-items:center;font-weight:800;font-size:20px}.brand strong,.brand span{display:block}.brand strong{font-size:16px}.brand span{font-size:11px;color:#a9bbb4;margin-top:3px}.sidebar nav{display:grid;gap:5px}.nav-item{height:46px;border:0;border-radius:6px;background:transparent;color:#b9c8c2;text-align:left;padding:0 14px;font-size:14px;cursor:pointer}.nav-item span{display:inline-block;width:26px;font-size:18px}.nav-item:hover,.nav-item.active{background:#26423a;color:#fff}.sidebar-foot{margin-top:auto;border-top:1px solid #345047;padding:18px 8px 0;display:flex;gap:9px;align-items:flex-start}.status-dot{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#57c394}.sidebar-foot strong,.sidebar-foot span{display:block}.sidebar-foot strong{font-size:12px}.sidebar-foot span{font-size:10px;color:#9eb1aa;margin-top:4px}main{margin-left:238px;min-height:100vh;padding:0 32px 40px}.topbar{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:26px}.eyebrow{margin:0 0 5px;color:var(--green);font-size:11px;font-weight:700}.topbar h1{margin:0;font-size:25px}.header-actions{display:flex;gap:10px}.btn,.file-btn{height:39px;border-radius:6px;border:1px solid var(--line);padding:0 16px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;background:#fff;color:var(--text)}.btn.primary{background:var(--green);border-color:var(--green);color:#fff}.btn.primary:hover{background:var(--green-dark)}.btn.secondary:hover,.file-btn:hover{border-color:#9dafb5;background:#f8faf9}.notice{padding:12px 16px;border-radius:6px;margin:-10px 0 18px;background:var(--green-soft);color:var(--green-dark);font-size:13px;border-left:4px solid var(--green)}.notice.error{background:var(--red-soft);color:#9d2929;border-color:var(--red)}.hidden{display:none!important}.view{display:none}.view.active{display:block}.metrics{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;margin-bottom:18px}.metric{background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--green);border-radius:6px;padding:18px 20px;box-shadow:var(--shadow)}.metric.warning{border-top-color:var(--amber)}.metric.danger{border-top-color:var(--red)}.metric span,.metric small{display:block;color:var(--muted);font-size:12px}.metric strong{display:block;font-size:29px;margin:8px 0 4px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(0,.92fr);gap:16px;margin-bottom:18px;align-items:start}.panel{background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px 14px}.panel-head.padded{padding-bottom:20px;border-bottom:1px solid var(--line)}.panel h2{font-size:16px;margin:0 0 5px}.panel p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.text-btn{border:0;background:none;color:var(--green);font-weight:700;cursor:pointer}.attention-list,.simple-list{padding:0 22px 18px}.attention-item,.simple-item{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:12px;border-top:1px solid #edf0f1;padding:13px 0}.attention-item:first-child,.simple-item:first-child{border-top:0}.attention-bar{height:36px;border-radius:4px;background:var(--amber)}.attention-item.expired .attention-bar{background:var(--red)}.attention-item strong,.attention-item span,.simple-item strong,.simple-item span{display:block}.attention-item strong,.simple-item strong{font-size:13px}.attention-item span,.simple-item span{font-size:11px;color:var(--muted);margin-top:3px}.attention-item b{font-size:12px;color:var(--amber)}.attention-item.expired b{color:var(--red)}.simple-item{grid-template-columns:1fr auto}.simple-item b.positive{color:var(--green)}.simple-item b.negative{color:var(--red)}.dashboard-grid .panel-head{padding:18px 18px 10px}.dashboard-grid .attention-list,.dashboard-grid .simple-list{padding:0 18px 16px}.dashboard-grid .attention-item,.dashboard-grid .simple-item{gap:10px;padding:11px 0}.dashboard-grid .empty{padding:26px 12px!important}.backup-tip{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-left:4px solid var(--blue)}.backup-tip strong{font-size:14px}.toolbar{display:flex;gap:10px;margin-bottom:14px}.search-wrap{height:40px;flex:1;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:0 13px}.search-wrap input{border:0;outline:0;width:100%;font-size:13px}.toolbar select,.panel-head select{height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 12px;color:var(--text)}.table-panel{overflow:hidden}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:820px}th{text-align:left;background:#f8faf9;color:#647179;font-size:11px;padding:12px 16px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:14px 16px;border-bottom:1px solid #edf0f1;font-size:12px;vertical-align:middle}td strong,td small{display:block}td small{color:var(--muted);margin-top:4px}.stock-number{font-size:15px;font-weight:800}.badge{display:inline-flex;padding:4px 8px;border-radius:4px;font-size:10px;font-weight:700;background:#edf1f2;color:#53636a;white-space:nowrap}.badge.good{background:var(--green-soft);color:var(--green-dark)}.badge.warning{background:var(--amber-soft);color:#995e03}.badge.danger{background:var(--red-soft);color:#a42c2c}.row-action{border:0;background:none;color:var(--green);font-weight:700;cursor:pointer}.row-action.danger{color:var(--red)}.row-actions{display:flex;flex-wrap:wrap;gap:10px}.pagination{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;color:var(--muted);font-size:11px}.pagination div{display:flex;gap:8px;align-items:center}.pagination button{border:1px solid var(--line);background:#fff;border-radius:4px;padding:6px 10px;cursor:pointer}.pagination button:disabled{opacity:.4}.empty{padding:38px 15px!important;text-align:center;color:var(--muted)}.movement-top-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:16px;align-items:stretch;margin-bottom:18px}.movement-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:0}.action-tile{display:flex;align-items:center;text-align:left;gap:14px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:6px;padding:17px;cursor:pointer;min-height:92px}.action-tile.outbound{border-left-color:var(--amber)}.action-tile.adjust{border-left-color:var(--blue)}.action-tile>span{width:38px;height:38px;border-radius:5px;background:var(--green-soft);display:grid;place-items:center;color:var(--green);font-size:21px}.action-tile.outbound>span{background:var(--amber-soft);color:var(--amber)}.action-tile.adjust>span{background:#e9f0f7;color:var(--blue)}.action-tile strong,.action-tile small{display:block}.action-tile small{color:var(--muted);margin-top:4px}.movement-order-card{padding:18px 20px;display:flex;flex-direction:column;justify-content:space-between}.movement-order-card-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start}.movement-order-card-head h2{margin:0 0 6px}.movement-order-card-head p{margin:0}.movement-order-card-actions{display:grid;gap:10px;margin-top:16px}.movement-order-card .btn,.movement-order-card .file-btn{width:100%}.change-positive{color:var(--green);font-weight:800}.change-negative{color:var(--red);font-weight:800}.expiry-summary{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--line);border-radius:6px;margin-bottom:18px}.expiry-summary>div{padding:18px 22px;border-left:1px solid var(--line);display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:8px}.expiry-summary>div:first-child{border-left:0}.expiry-summary strong{font-size:21px}.expiry-summary small{color:var(--muted)}.expiry-dot{width:9px;height:9px;border-radius:50%}.expiry-dot.expired{background:var(--red)}.expiry-dot.urgent{background:var(--amber)}.expiry-dot.soon{background:#d8b731}.data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.data-card{padding:22px}.data-card h2{margin-top:16px}.data-card p{min-height:62px}.data-icon{width:40px;height:40px;border-radius:5px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-size:20px}.data-card .btn,.data-card .file-btn{width:100%;margin-top:10px}.file-btn input{display:none}.primary-file{background:var(--green-soft);border-color:#b9d9cc;color:var(--green-dark)}.data-note{padding:22px}.sync-status{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.sync-status b{color:var(--amber)}.data-note>p{margin-top:15px}dialog{width:min(620px,calc(100vw - 30px));border:0;border-radius:7px;padding:0;box-shadow:0 20px 60px rgba(9,25,19,.25)}dialog::backdrop{background:rgba(14,28,23,.56)}dialog form{padding:24px}.dialog-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:22px}.dialog-head h2{margin:0;font-size:20px}.icon-close{border:0;background:none;font-size:26px;cursor:pointer;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{font-size:12px;font-weight:700;color:#435159}.form-grid label.full{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea{display:block;width:100%;margin-top:7px;border:1px solid #ccd5d8;border-radius:5px;padding:10px;font:inherit;background:#fff;color:var(--text)}.form-grid textarea{resize:vertical}.form-grid label small{display:block;color:var(--muted);font-weight:400;margin-top:5px;line-height:1.5}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.form-hint{background:#f5f7f7;border-radius:5px;padding:10px;margin:14px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
@media(max-width:1000px){.sidebar{width:190px}.brand span{display:none}main{margin-left:190px;padding-left:20px;padding-right:20px}.metrics{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.movement-top-grid{grid-template-columns:1fr}.data-grid{grid-template-columns:1fr 1fr}}
.sync-blocked{display:flex;justify-content:space-between;gap:20px;align-items:center;background:var(--amber-soft);border:1px solid #eed49f;border-left:4px solid var(--amber);border-radius:6px;padding:18px 20px;margin-bottom:18px}.sync-blocked h2{font-size:16px;margin:9px 0 4px}.sync-blocked p{font-size:12px;color:#6e5a34;line-height:1.7;margin:0}.sync-blocked>strong{white-space:nowrap;color:#965b00}.sync-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.sync-form-panel{overflow:hidden}.compact-form{padding:0 22px 22px;display:grid;grid-template-columns:1fr 1fr;gap:13px}.compact-form label{font-size:12px;font-weight:700;color:#435159}.compact-form input,.compact-form select{display:block;width:100%;height:39px;margin-top:6px;border:1px solid #ccd5d8;border-radius:5px;padding:0 10px;background:#fff;color:var(--text)}.compact-form .btn{align-self:end}.sync-table{margin-bottom:18px}
.collector-connection{display:flex;align-items:center;gap:8px;white-space:nowrap}.connection-dot{width:9px;height:9px;border-radius:50%;background:#adb8bc}.connection-dot.online{background:#28a574}.connection-dot.offline{background:var(--red)}.collector-connection strong{font-size:12px}.collector-guide{padding-bottom:20px}.collector-guide ol{margin:0 22px;padding-left:20px;color:#526068;font-size:12px;line-height:2}.format-example{margin:14px 22px 0;padding:13px;background:#f5f8f7;border-left:3px solid var(--green);border-radius:4px}.format-example span,.format-example strong,.format-example small{display:block}.format-example span,.format-example small{font-size:10px;color:var(--muted)}.format-example strong{font-size:15px;margin:6px 0;color:var(--green-dark)}
.product-dialog{width:min(900px,calc(100vw - 30px));max-height:calc(100vh - 30px);overflow:auto}.price-history-panel{margin-top:16px;overflow:hidden}.price-history-toolbar{display:flex;align-items:end;justify-content:flex-end;gap:10px;flex-wrap:wrap}.price-history-toolbar label{font-size:11px;font-weight:700;color:var(--muted)}.price-history-toolbar select{display:block;height:38px;margin-top:6px;border:1px solid #ccd5d8;border-radius:5px;padding:0 10px;font:inherit;background:#fff;color:var(--text)}.price-history-custom{margin:0;padding:14px 18px;border-top:0;border-bottom:1px solid var(--line)}.price-history-summary{padding:14px 18px;border-bottom:1px solid var(--line);background:#f8faf9;color:#516169;font-size:12px;line-height:1.7}.price-history-summary strong{font-size:15px;color:var(--text)}.price-history-change{display:block;font-weight:800}.price-history-change.increase{color:#c0352b}.price-history-change.decrease{color:#167a52}.price-history-change.initial,.price-history-change.same{color:#54636a}.purchase-links-field{display:grid;gap:10px;align-content:start}.purchase-links-head span,.purchase-links-head small{display:block}.purchase-links-head span{font-size:12px;font-weight:700;color:#435159}.purchase-links-head small{margin-top:5px;color:var(--muted);font-size:11px;line-height:1.6}.purchase-links-list{display:grid;gap:12px}.purchase-link-item{border:1px solid var(--line);border-radius:6px;padding:12px;background:#f8faf9}.purchase-link-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.purchase-link-item-head strong{font-size:12px;color:#435159}.purchase-link-remove{height:30px;padding:0 10px;font-size:11px}.purchase-link-grid{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px}.purchase-link-grid label{font-size:11px;font-weight:700;color:#435159}.purchase-link-grid input,.purchase-link-grid select{display:block;width:100%;margin-top:6px;border:1px solid #ccd5d8;border-radius:5px;padding:10px;font:inherit;background:#fff;color:var(--text)}.purchase-links-add{justify-self:start}.product-inventory-details,.product-price-history{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}.inventory-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.inventory-summary>div{border:1px solid var(--line);border-radius:5px;padding:12px;background:#f8faf9}.inventory-summary span,.inventory-summary strong{display:block}.inventory-summary span{font-size:11px;color:var(--muted)}.inventory-summary strong{font-size:16px;margin-top:6px}.batch-detail-head{display:flex;justify-content:space-between;align-items:end;margin:18px 0 9px}.batch-detail-head h3{font-size:14px;margin:0 0 4px}.batch-detail-head p{font-size:11px;color:var(--muted);margin:0}.batch-detail-table{min-width:720px;border:1px solid var(--line)}.batch-detail-table th,.batch-detail-table td{padding:10px 12px}.price-missing{color:var(--amber);font-weight:700}
.short-name-entry{margin-bottom:16px;overflow:hidden}.short-name-form{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto}.short-name-toolbar{align-items:center}.short-name-count{white-space:nowrap;color:var(--muted);font-size:12px;padding:0 4px}.short-name-list{display:flex;flex-wrap:wrap;gap:7px}.short-name-chip{display:inline-flex;align-items:center;gap:5px;background:var(--green-soft);color:var(--green-dark);border-radius:4px;padding:5px 6px 5px 9px;font-weight:700}.short-name-chip button{width:20px;height:20px;border:0;background:transparent;color:var(--green-dark);font-size:16px;line-height:1;cursor:pointer;padding:0}.short-name-empty{color:var(--muted)}
.shipment-stats{margin-bottom:18px;padding:18px 20px}.shipment-stats-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.shipment-stats-head h2{margin:0 0 4px}.shipment-range{display:flex;border:1px solid var(--line);border-radius:5px;overflow:hidden}.shipment-range button{height:34px;border:0;border-left:1px solid var(--line);padding:0 13px;background:#fff;color:var(--muted);font-weight:700;cursor:pointer}.shipment-range button:first-child{border-left:0}.shipment-range button.active{background:var(--green);color:#fff}.shipment-custom{display:flex;justify-content:flex-end;align-items:end;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.shipment-custom label{font-size:11px;font-weight:700;color:var(--muted)}.shipment-custom input{display:block;width:150px;height:38px;margin-top:6px;border:1px solid #ccd5d8;border-radius:5px;padding:0 10px}.shipment-custom>span{padding-bottom:10px;color:var(--muted)}.shipment-summary{display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.shipment-summary.summary-columns-1{grid-template-columns:1fr}.shipment-summary.summary-columns-2{grid-template-columns:repeat(2,1fr)}.shipment-summary.summary-columns-3{grid-template-columns:repeat(3,1fr)}.shipment-summary>div{padding:17px 8px}.shipment-summary>div+div{border-left:1px solid var(--line);padding-left:24px}.shipment-summary span,.shipment-summary small{color:var(--muted);font-size:11px}.shipment-summary strong{font-size:25px;margin:0 7px}.shipment-trend-panel{margin-top:16px;padding:16px 16px 14px;border:1px solid #d7e7df;border-radius:10px;background:linear-gradient(180deg,#fcfefd 0%,#f5faf7 100%);font-family:"PingFang SC","Microsoft YaHei","Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.shipment-trend-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.shipment-trend-head h3{margin:0 0 4px;font-size:15px;font-weight:700;letter-spacing:0}.shipment-trend-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.65}.shipment-trend-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.shipment-trend-badge{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:#e7f3ee;color:var(--green-dark);font-size:11px;font-weight:700;white-space:nowrap}.shipment-trend-badge.muted{background:#eef2f4;color:#58676f}.shipment-trend-chart{margin-top:14px;height:220px}.shipment-trend-empty{height:100%;display:grid;place-items:center;border:1px dashed #cbd8d1;border-radius:8px;background:#fff;color:var(--muted);font-size:12px}.shipment-trend-svg{width:100%;height:100%;display:block;shape-rendering:geometricPrecision;text-rendering:geometricPrecision}.shipment-trend-guide{stroke:#dbe5e0;stroke-width:1;stroke-dasharray:4 4}.shipment-trend-guide-label,.shipment-trend-axis-label{font-family:"PingFang SC","Microsoft YaHei","Segoe UI",Arial,sans-serif;font-size:11px;font-weight:500;letter-spacing:.01em}.shipment-trend-guide-label{fill:#809089}.shipment-trend-axis-label{fill:#65727a}.shipment-trend-area{fill:url(#shipmentTrendGradient)}.shipment-trend-line{fill:none;stroke:#147a5b;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.shipment-trend-point{fill:#147a5b;stroke:#fff;stroke-width:2}.shipment-trend-point.highlight{fill:#0d6046;r:4.5}.shipment-trend-point.zero{fill:#a9b7b1}.shipment-stats-note{margin:12px 0 0;color:var(--muted);font-size:11px}
.shipment-custom.price-history-custom{margin:0;padding:14px 18px;border-top:0;border-bottom:1px solid var(--line)}
.purchase-summary{grid-template-columns:1fr}
.table-sort{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:0;color:#647179;font:inherit;font-weight:700;cursor:pointer}
.table-sort:hover,.table-sort.active{color:var(--green)}
.sort-indicator{font-size:12px;line-height:1}
.stock-value{font-size:15px;font-weight:800}
.permission-hidden{display:none!important}.costs-hidden [data-cost]{display:none!important}.profits-hidden [data-profit]{display:none!important}.costs-hidden .inventory-summary{grid-template-columns:1fr}.topbar-right{display:flex;align-items:center;gap:12px}.account-menu{display:flex;align-items:stretch;height:42px}.account-button{min-width:116px;border:1px solid var(--line);border-radius:6px 0 0 6px;background:#fff;padding:5px 11px;text-align:left;cursor:pointer}.account-button span,.account-button small{display:block}.account-button span{font-size:12px;font-weight:700}.account-button small{font-size:10px;color:var(--muted);margin-top:2px}.icon-button{width:38px;border:1px solid var(--line);border-left:0;border-radius:0 6px 6px 0;background:#fff;color:var(--muted);font-size:18px;cursor:pointer}.icon-button:hover,.account-button:hover{background:#f8faf9}.auth-gate{position:fixed;inset:0;z-index:20;background:#edf2f0;display:grid;grid-template-columns:minmax(260px,360px) minmax(360px,520px);align-items:center;justify-content:center;gap:64px;padding:32px}.auth-brand{display:flex;align-items:center;gap:14px}.auth-brand .brand-mark{width:56px;height:56px;font-size:25px}.auth-brand strong,.auth-brand span{display:block}.auth-brand strong{font-size:24px}.auth-brand span{color:var(--muted);margin-top:5px}.auth-panel{background:#fff;border:1px solid var(--line);border-radius:7px;padding:34px;box-shadow:0 16px 42px rgba(19,45,36,.12)}.auth-panel h1{font-size:24px;margin:0 0 9px}.auth-panel p{color:var(--muted);font-size:12px;line-height:1.8;margin:0 0 22px}.auth-form{display:grid;gap:15px}.auth-form label{font-size:12px;font-weight:700;color:#435159}.auth-form input{display:block;width:100%;height:42px;margin-top:7px;border:1px solid #cbd5d7;border-radius:5px;padding:0 11px;font:inherit}.auth-form .btn{width:100%;margin-top:5px}.auth-error{margin:16px 0 0!important;padding:11px 13px;background:var(--red-soft);border-left:3px solid var(--red);border-radius:4px;color:#9d2929!important}.account-overview{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;padding:4px 2px}.account-overview h2{font-size:20px;margin:0 0 6px}.account-overview p{margin:0;color:var(--muted);font-size:12px}.account-table{margin-bottom:18px}.audit-table{margin-bottom:18px}.permission-summary{max-width:440px;line-height:1.65;color:#4c5b62}.account-dialog{width:min(760px,calc(100vw - 30px))}.permission-fieldset{margin:20px 0 0;border:1px solid var(--line);border-radius:6px;padding:15px}.permission-fieldset legend{padding:0 7px;font-size:12px;font-weight:700;color:#435159}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.permission-grid label,.toggle-row{display:flex!important;align-items:center;gap:8px;background:#f7f9f8;border-radius:5px;padding:10px;font-size:12px!important;cursor:pointer}.permission-grid input,.toggle-row input{width:16px!important;height:16px!important;margin:0!important;flex:0 0 auto}.toggle-row{margin-top:7px}.account-table table{min-width:950px}.audit-table table{min-width:760px}
.shipment-store-stats{margin-top:18px;padding-top:17px;border-top:1px solid var(--line)}.store-stats-head,.store-order-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}.store-stats-head h3,.store-order-head h3{font-size:14px;margin:0 0 4px}.store-stats-head p,.store-order-head p{font-size:11px;color:var(--muted);margin:0}.store-stats-head>strong{font-size:12px;color:var(--green)}.store-platform-groups{display:grid;gap:16px}.store-platform-group{padding:16px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(180deg,#fbfcfc 0%,#f7faf9 100%);box-shadow:0 1px 2px rgba(17,31,38,.04)}.store-platform-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.store-platform-group-head h4{margin:0;font-size:14px;font-weight:700}.store-platform-group-head span{font-size:11px;color:var(--muted)}.store-platform-empty{padding:34px 14px;border:1px dashed var(--line);border-radius:6px;text-align:center;color:var(--muted);font-size:12px;background:#f8faf9}.store-stats-table{min-width:920px;border:1px solid var(--line);background:#fff}.store-stats-table th,.store-stats-table td{padding:10px 12px}.store-shipment-table{width:100%;min-width:980px;table-layout:fixed;border-radius:8px;overflow:hidden}.store-shipment-table col.store-col-name{width:28%}.store-shipment-table col.store-col-orders{width:10%}.store-shipment-table col.store-col-quantity{width:10%}.store-shipment-table col.store-col-time{width:18%}.store-shipment-table col.store-col-cost{width:15%}.store-shipment-table col.store-col-profit{width:19%}.store-shipment-table th,.store-shipment-table td{padding:12px 14px}.store-shipment-table th.store-col-name{text-align:left}.store-shipment-table th.store-col-orders,.store-shipment-table th.store-col-quantity,.store-shipment-table th.store-col-time{text-align:center}.store-shipment-table th.store-col-cost,.store-shipment-table th.store-col-profit{text-align:right}.store-name-cell strong{font-size:14px;line-height:1.35}.store-name-cell small{margin-top:6px}.store-summary-cell{vertical-align:middle}.store-summary-stack{display:flex;min-height:58px;flex-direction:column;justify-content:center;gap:6px}.store-summary-number,.store-summary-time{align-items:center;text-align:center}.store-summary-amount{align-items:flex-end;text-align:right}.store-summary-number strong,.store-summary-time strong,.store-summary-amount strong{font-variant-numeric:tabular-nums}.store-summary-number strong{font-size:22px;line-height:1.02}.store-summary-number small{font-size:11px;line-height:1;color:var(--muted);font-weight:700}.store-summary-time strong{font-size:16px;line-height:1.15}.store-summary-amount strong{font-size:18px;line-height:1.15}.store-summary-amount small{max-width:100%;line-height:1.45;text-align:right;color:var(--muted);word-break:break-word}.store-shipment-table .price-missing{display:block;font-size:15px;line-height:1.4;text-align:right}.product-store-details{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.product-store-table{min-width:940px}.product-store-order-details{margin-top:18px;padding-top:17px;border-top:1px solid var(--line)}.product-store-order-details table{min-width:760px}.product-store-order-details td,.product-store-order-details th{padding:10px 12px}.costs-hidden .store-stats-table{min-width:650px}
@media(max-width:720px){.sidebar{position:fixed;inset:auto 0 0;width:auto;height:64px;padding:5px 3px;flex-direction:row}.brand,.sidebar-foot{display:none}.sidebar nav{width:100%;display:flex;gap:1px;overflow-x:auto}.nav-item{height:54px;min-width:64px;flex:1;text-align:center;padding:3px 1px;font-size:8px;white-space:nowrap}.nav-item span{display:block;width:auto;font-size:17px;margin-bottom:2px}main{margin:0;width:100%;max-width:none;padding:0 12px 82px}.topbar{height:auto;min-height:96px;align-items:flex-start;padding:16px 0;gap:8px}.topbar>div:first-child{min-width:0;flex:1}.topbar h1{font-size:20px;white-space:nowrap}.topbar-right{align-items:flex-end;flex-direction:column}.account-menu{height:38px}.account-button{min-width:94px}.header-actions{flex-shrink:0}.btn{padding:0 10px}.metrics{grid-template-columns:1fr;gap:8px}.metric{padding:14px}.dashboard-grid,.movement-top-grid,.movement-actions,.data-grid,.sync-grid{grid-template-columns:1fr}.metric strong{font-size:23px}.expiry-summary{grid-template-columns:1fr}.expiry-summary>div{border-left:0;border-top:1px solid var(--line)}.expiry-summary>div:first-child{border-top:0}.toolbar{flex-wrap:wrap}.search-wrap{flex-basis:100%}.form-grid,.compact-form,.purchase-link-grid{grid-template-columns:1fr}.form-grid label.full{grid-column:auto}.inventory-summary{grid-template-columns:1fr}.backup-tip,.sync-blocked,.account-overview{align-items:flex-start;flex-direction:column;gap:12px}.panel-head{padding:16px}.attention-list,.simple-list{padding-left:16px;padding-right:16px}.attention-item{grid-template-columns:6px minmax(0,1fr)}.attention-item b{grid-column:2}.sync-form-panel .panel-head{padding-bottom:10px}.compact-form{padding:0 16px 16px}.short-name-form{grid-template-columns:1fr}.shipment-stats{padding:16px}.shipment-stats-head{align-items:flex-start;flex-direction:column}.shipment-range{width:100%;overflow:auto}.shipment-range button{padding:0 11px;white-space:nowrap;flex:1}.shipment-custom{align-items:stretch;flex-direction:column}.shipment-custom input{width:100%}.shipment-custom>span{display:none}.shipment-summary strong{display:block;margin:5px 0;font-size:22px}.shipment-summary>div+div{padding-left:16px}.movement-order-card{padding:16px}.permission-grid{grid-template-columns:1fr}.auth-gate{grid-template-columns:1fr;align-content:center;gap:24px;padding:20px}.auth-brand{justify-content:center}.auth-brand strong{font-size:19px}.auth-brand .brand-mark{width:46px;height:46px}.auth-panel{padding:24px}}
@media(max-width:720px){.sidebar nav{scrollbar-width:none}.sidebar nav::-webkit-scrollbar{display:none}.nav-item{min-width:54px}}
.product-store-table{min-width:850px}.product-store-table th:last-child{display:none}.store-link{border:0;background:none;color:var(--green);padding:0;text-align:left;cursor:pointer}.store-link strong,.store-link small{display:block}.store-link small{margin-top:4px;color:var(--muted)}
.metric-with-value{display:grid;grid-template-columns:minmax(0,1fr) minmax(116px,.9fr);align-items:center;gap:15px}.metric-main,.metric-value{min-width:0}.metric-value{border-left:1px solid var(--line);padding-left:15px}.metric-value strong{font-size:19px;overflow-wrap:anywhere}.metric-value small{line-height:1.45}.inventory-focus{border-color:#cfe0d8;box-shadow:0 12px 28px rgba(17,31,38,.08);background:linear-gradient(180deg,#ffffff 0%,#f7fbf9 100%)}.inventory-focus .metric-main span{color:#4d6259;font-weight:700}.inventory-focus .metric-main strong{font-size:34px}.inventory-focus .metric-value{border-left:0;padding:15px 16px;border:1px solid #c8dfd4;border-radius:12px;background:linear-gradient(135deg,#147a5b 0%,#0d6046 100%)}.inventory-focus .metric-value span,.inventory-focus .metric-value small{color:rgba(255,255,255,.84)}.inventory-focus .metric-value strong{font-size:24px;line-height:1.05;letter-spacing:-.02em;color:#fff;margin-top:6px;white-space:nowrap;overflow-wrap:normal}.metric-heading{display:flex;align-items:center;justify-content:space-between;gap:7px}.metric-heading select{height:28px;min-width:72px;border:1px solid #ccd5d8;border-radius:4px;background:#fff;padding:0 6px;color:var(--text);font-size:11px}.expiry-summary.short-range{grid-template-columns:repeat(2,1fr)}
@media(max-width:720px){.metric-with-value{grid-template-columns:minmax(0,1fr) minmax(112px,.85fr);gap:12px}.metric-value{padding-left:12px}.metric-value strong{font-size:17px}.inventory-focus .metric-main strong{font-size:28px}.inventory-focus .metric-value{padding:12px}.inventory-focus .metric-value strong{font-size:20px}.metric-heading{align-items:flex-start;flex-direction:column}.metric-heading select{width:84px}.shipment-trend-head{flex-direction:column}.shipment-trend-badges{justify-content:flex-start}.shipment-trend-chart{height:200px}}
.inventory-import-dialog{width:min(720px,calc(100vw - 30px))}.inventory-import-warning{margin:0 0 16px;padding:12px 14px;border-left:4px solid var(--amber);border-radius:5px;background:var(--amber-soft);color:#75501b;font-size:12px;line-height:1.7}.inventory-import-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.inventory-import-summary>div{min-width:0;padding:13px;border:1px solid var(--line);border-radius:5px;background:#f8faf9}.inventory-import-summary span,.inventory-import-summary small,.inventory-import-summary strong{display:block}.inventory-import-summary span,.inventory-import-summary small{color:var(--muted);font-size:11px}.inventory-import-summary strong{margin-top:7px;font-size:19px;overflow-wrap:anywhere}.inventory-import-summary small{margin-top:5px;line-height:1.4}.inventory-import-changes{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 18px;margin-top:16px;padding:14px;background:#f5f7f7;border-radius:5px}.inventory-import-changes p{margin:0;font-size:12px;color:var(--muted)}.inventory-import-changes strong{color:var(--text)}
@media(max-width:720px){.inventory-import-summary{grid-template-columns:repeat(2,1fr)}.inventory-import-changes{grid-template-columns:1fr}}
.stock-product-field{grid-column:1/-1;min-width:0}.stock-product-field>label{display:block;font-size:12px;font-weight:700;color:#435159}.product-combobox{min-width:0}.product-search-box{position:relative}.product-search-box>input{padding-right:36px}.product-combobox input[type="hidden"]{display:none}.product-search-results{position:absolute;z-index:12;top:calc(100% + 5px);left:0;right:0;max-height:min(360px,45vh);overflow:auto;background:#fff;border:1px solid #bcc9cd;border-radius:5px;box-shadow:0 12px 30px rgba(17,31,38,.18)}.product-search-result{width:100%;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;border:0;border-bottom:1px solid #edf0f1;background:#fff;padding:10px 12px;text-align:left;color:var(--text);cursor:pointer}.product-search-result:last-child{border-bottom:0}.product-search-result:hover,.product-search-result.active{background:var(--green-soft)}.product-search-result span{min-width:0}.product-search-result strong,.product-search-result small{display:block;overflow-wrap:anywhere}.product-search-result strong{font-size:13px}.product-search-result small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.45}.product-search-result b{white-space:nowrap;color:var(--green-dark);font-size:11px}.product-search-empty{padding:24px 12px;text-align:center;color:var(--muted);font-size:12px}.product-search-status{display:block;margin-top:6px;color:var(--muted);font-weight:400;line-height:1.5}.product-search-status.selected{color:var(--green-dark);font-weight:700}.product-search-status.empty{color:var(--red);font-weight:700}.stock-product-field:focus-within .product-search-box>input{border-color:var(--green);box-shadow:0 0 0 2px rgba(20,122,91,.1);outline:0}
.collector-exception-items-panel{grid-column:1/-1}.collector-exception-items-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-top:7px}.collector-exception-items-head strong{display:block;font-size:12px;color:#435159}.collector-exception-items-head small{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.6}.collector-exception-items{display:grid;gap:12px;margin-top:12px}.collector-exception-item{border:1px solid var(--line);border-radius:6px;background:#f8faf9;padding:14px}.collector-exception-item-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.collector-exception-item-head strong{font-size:13px}.collector-exception-item-remove{border:0;background:none;color:var(--red);font-weight:700;cursor:pointer;padding:0}.collector-exception-item-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.collector-exception-item-grid label{font-size:12px;font-weight:700;color:#435159}.collector-exception-item-grid label.full{grid-column:1/-1}.collector-exception-item-grid input,.collector-exception-item-grid textarea,.collector-exception-item-grid select{display:block;width:100%;margin-top:7px;border:1px solid #ccd5d8;border-radius:5px;padding:10px;font:inherit;background:#fff;color:var(--text)}
@media(max-width:720px){.product-search-results{max-height:42vh}.product-search-result{gap:8px;padding:10px}.product-search-result b{font-size:10px}}
.status-dot.warning{background:var(--amber)}.collector-connection{align-items:flex-start}.collector-connection-copy{display:flex;flex-direction:column;gap:3px;white-space:normal}.collector-service-origin{font-size:10px;color:#6e5a34;line-height:1.5}
.pagination select{height:32px;border:1px solid var(--line);border-radius:4px;background:#fff;padding:0 8px;color:var(--text)}.page-size{display:flex;align-items:center;gap:8px}
.metric-clickable{cursor:pointer}.metric-clickable:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.shipment-summary-card{cursor:pointer;transition:background .18s ease,box-shadow .18s ease,color .18s ease}.shipment-summary-card.interactive:hover{background:#f8faf9}.shipment-summary-card.active{background:#e7f3ee;box-shadow:inset 0 0 0 2px var(--green)}.shipment-summary-card.metric-cost.active{background:var(--amber-soft);box-shadow:inset 0 0 0 2px var(--amber)}.shipment-summary-card.metric-sales.active{background:#edf4fb;box-shadow:inset 0 0 0 2px var(--blue)}.shipment-summary-card:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--green),0 0 0 2px rgba(20,122,91,.12)}.shipment-summary-card.metric-cost:focus-visible{box-shadow:inset 0 0 0 2px var(--amber),0 0 0 2px rgba(199,123,8,.14)}.shipment-summary-card.metric-sales:focus-visible{box-shadow:inset 0 0 0 2px var(--blue),0 0 0 2px rgba(50,106,160,.14)}.shipment-summary-card.active strong{color:var(--green-dark)}.shipment-summary-card.metric-cost.active strong{color:#8a5900}.shipment-summary-card.metric-sales.active strong{color:#23527e}.shipment-trend-panel.trend-cost{border-color:#eed49f;background:linear-gradient(180deg,#fffdfa 0%,#fffbf1 100%)}.shipment-trend-panel.trend-sales{border-color:#cfdded;background:linear-gradient(180deg,#fcfdff 0%,#f4f8fc 100%)}.shipment-trend-panel.trend-cost .shipment-trend-badge{background:#fff0d2;color:#8a5900}.shipment-trend-panel.trend-cost .shipment-trend-badge.muted{background:#f7efe1;color:#7d6a45}.shipment-trend-panel.trend-sales .shipment-trend-badge{background:#ebf2f9;color:#23527e}.shipment-trend-panel.trend-sales .shipment-trend-badge.muted{background:#eef2f5;color:#5c6c75}
.product-bulk-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.product-selection-count{white-space:nowrap;color:var(--muted);font-size:12px;padding:0 2px}.product-select-head,.product-select-cell{width:44px;padding-left:14px;padding-right:10px}.product-select-head input,.product-select-cell input{width:16px;height:16px;cursor:pointer}.product-bulk-actions .btn:disabled{opacity:.55;cursor:not-allowed}

.movement-top-grid{display:grid;grid-template-columns:1fr;gap:16px;align-items:start;margin-bottom:18px}
.movement-top-primary,.movement-top-tertiary{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.movement-top-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.movement-guide-card{padding:18px 20px;display:flex;flex-direction:column;gap:16px;background:linear-gradient(180deg,#fbfcfc 0%,#f7faf9 100%)}
.movement-guide-card-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start}
.movement-guide-card-head h2{margin:0 0 6px}
.movement-guide-card-head p{margin:0}
.movement-guide-list{margin:0;padding-left:18px;color:var(--text);font-size:12px;line-height:1.9}
.movement-guide-list li+li{margin-top:4px}

@media(max-width:1000px){.movement-top-primary,.movement-top-tertiary{grid-template-columns:1fr}.movement-top-secondary{grid-template-columns:1fr}}
@media(max-width:720px){.movement-top-primary,.movement-top-secondary,.movement-top-tertiary{grid-template-columns:1fr}.movement-guide-card{padding:16px}.movement-guide-list{font-size:12px;line-height:1.8}.product-bulk-actions{width:100%}.product-selection-count{flex-basis:100%}}
