:root{font-family:Inter,ui-sans-serif,system-ui,Arial,sans-serif;color:#16201d;background:#f5f7f4;font-size:16px;letter-spacing:0}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea,a{font:inherit}button,a{border-radius:8px}.dark{color:#edf6f1;background:#0f1714}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#eef5ef,#e7f0f6)}.dark .auth-shell{background:linear-gradient(135deg,#101816,#17211f)}.login-card{width:min(440px,100%);background:#fffffff0;border:1px solid #dce4df;border-radius:8px;padding:28px;box-shadow:0 20px 60px #1e2f281f}.dark .login-card,.dark .panel,.dark .warehouse-card,.dark .modal-card,.dark .stats article{background:#18231f;border-color:#385049;color:#edf6f1}.wide{width:min(880px,100%)}.brand{display:flex;align-items:center;gap:10px;font-weight:800;color:#246b5d}.brand.large{font-size:1.35rem;margin-bottom:22px}h1{margin:0 0 20px;font-size:2rem;line-height:1.1}h2{margin:0 0 14px;font-size:1.25rem}h3{margin:16px 0 10px}p{line-height:1.5}label{display:grid;gap:7px;margin-bottom:14px;font-weight:650}input,select,textarea{width:100%;border:1px solid #cbd7d1;border-radius:8px;padding:11px 12px;color:inherit;background:#fff}.dark input,.dark select,.dark textarea{background:#101916;border-color:#456158;color:#f4fbf7}.dark input::placeholder,.dark textarea::placeholder{color:#9eb2aa}textarea{min-height:92px;resize:vertical}.primary,.secondary,.ghost,.icon-btn,.chip,.warehouse-choice{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;text-decoration:none;min-height:42px;line-height:1}.primary{background:#25745f;color:#fff;padding:11px 16px;font-weight:800}.secondary{background:#e3eee9;color:#17483d;padding:10px 14px;border:1px solid #cbded6}.dark .secondary{background:#20342e;border-color:#3d5a50;color:#d9f3ea}.ghost{background:transparent;color:inherit;padding:10px 12px;border:1px solid #cbd7d1}.dark .ghost{border-color:#456158;color:#edf6f1}.danger{color:#b3261e}.full{width:100%}.error{color:#b3261e;font-weight:700}.hint{color:#62736d;font-size:.92rem}.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{padding:20px;background:#fff;border-right:1px solid #dfe8e3;display:flex;flex-direction:column;gap:8px}.dark .sidebar,.dark .topbar{background:#131d19;border-color:#31463f}.sidebar .brand{margin-bottom:20px}.nav{display:flex;align-items:center;gap:10px;padding:12px;background:transparent;border:0;color:inherit;text-align:left;justify-content:flex-start}.nav.active,.nav:hover{background:#e7f2ee;color:#17483d}.dark .nav.active,.dark .nav:hover{background:#20342e;color:#bdebdc}.content{min-width:0}.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 24px;background:#ffffffeb;border-bottom:1px solid #dfe8e3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.topbar span{display:block;color:#65766f;font-size:.9rem}.top-actions,.actions,.toolbar,.quick-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.icon-btn{width:42px;background:#eaf2ee;border:1px solid #d2e1da;color:inherit}.dark .icon-btn{background:#20342e;border-color:#3d5a50;color:#edf6f1}.mobile-menu-btn{display:none;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid #cbd7d1;background:#fff;color:inherit;padding:10px 12px}.dark .mobile-menu-btn{background:#18231f;border-color:#456158;color:#edf6f1}.page{padding:24px}.page-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.stats article,.panel,.warehouse-card{background:#fff;border:1px solid #dfe8e3;border-radius:8px;padding:18px}.stats article{display:grid;gap:8px}.stats strong{font-size:2rem}.two-col,.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px}.toolbar{margin-bottom:16px}.product-search-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:10px}.status-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}.compact-toggle{display:none;margin-bottom:10px}.compact-tools{gap:8px}.compact-tools .secondary,.compact-tools .file-btn{min-height:36px;height:36px;padding:0 10px;font-size:.92rem}.toolbar label{margin:0}.toolbar .secondary,.toolbar .file-btn{display:inline-flex;align-self:center;height:42px;min-height:42px;padding:0 14px;white-space:nowrap;border-radius:8px}.search{flex:1;min-width:220px;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #cbd7d1;border-radius:8px;padding-left:12px}.search input{border:0;background:transparent}.table-wrap{overflow:auto;background:#fff;border:1px solid #dfe8e3;border-radius:8px}.dark .table-wrap,.dark .search{background:#18231f;border-color:#385049}.product-cards{display:none}.product-cards.result-first{margin-bottom:14px}.product-card{background:#fff;border:1px solid #dfe8e3;border-radius:8px;padding:14px}.dark .product-card{background:#18231f;border-color:#385049}.product-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.product-code{color:#17483d;font-size:1.2rem;font-weight:850}.dark .product-code{color:#bdebdc}.status-pill{border:1px solid #cbd7d1;border-radius:8px;color:#64756f;font-size:.78rem;font-weight:750;padding:5px 8px;text-transform:uppercase}.status-pill.on{background:#e1f2ea;border-color:#b9ddcd;color:#1e684e}.dark .status-pill{border-color:#50665f;color:#b9cbc4}.dark .status-pill.on{background:#1d483a;border-color:#33705c;color:#ddfff3}.product-card h2{margin:0 0 12px;overflow-wrap:anywhere}.product-card dl{display:grid;gap:9px;margin:0}.product-card dl div{display:grid;gap:2px}.product-card dt{color:#65766f;font-size:.78rem;font-weight:800;text-transform:uppercase}.product-card dd{margin:0;overflow-wrap:anywhere}.card-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}.card-actions .secondary{min-width:0;padding:0 8px}.table-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;color:#5f716b;font-size:.95rem}.pager{display:flex;gap:8px}.pager .secondary:disabled{cursor:not-allowed;opacity:.5}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;padding:12px;border-bottom:1px solid #e5ece8;vertical-align:top}.dark th,.dark td{border-color:#293934}th{background:#f0f6f3;font-size:.85rem;text-transform:uppercase}.dark th{background:#20302b}.row-actions{display:flex;gap:8px;flex-wrap:wrap}.row-actions button,.row-actions a{border:0;background:transparent;color:#206a58;cursor:pointer}.file-btn input{display:none}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#040a0885;display:grid;place-items:center;padding:18px;z-index:30}.modal-card{width:min(560px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid #dfe8e3;border-radius:8px;padding:22px}.large-modal{width:min(920px,100%)}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{padding:8px 11px;border:1px solid #cbd7d1;background:#fff;color:inherit}.chip.on{background:#25745f;color:#fff;border-color:#25745f}.dark .chip{background:#18231f;border-color:#456158;color:#edf6f1}.dark .chip.on{background:#2d7c67;border-color:#2d7c67;color:#fff}.location-chips{display:flex;gap:8px;margin:0 0 14px;overflow-x:auto;padding-bottom:4px}.location-chips .chip{min-width:max-content}.location-chips span{opacity:.72;font-size:.82rem}.notice{background:#e1f2ea;border:1px solid #b9ddcd;border-radius:8px;color:#1e684e;margin-bottom:12px;padding:10px 12px}.dark .notice{background:#19382f;border-color:#316451;color:#ddfff3}.warehouse-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.warehouse-choice{min-height:132px;flex-direction:column;background:#fff;border:1px solid #dfe8e3;color:inherit;padding:18px}.warehouse-card svg{color:#25745f}.toast{position:fixed;right:18px;bottom:18px;background:#153b32;color:#fff;padding:12px 16px;border-radius:8px;z-index:40;animation:fadeOut 4s forwards}.avatar{width:96px;height:96px;border-radius:8px;object-fit:cover;border:1px solid #dfe8e3}.history-item{border:1px solid #dfe8e3;border-radius:8px;margin-bottom:10px;padding:12px}.dark .history-item{border-color:#293934}.history-item span{color:#65766f;display:block;font-size:.86rem;margin-top:3px}.history-item p{margin:8px 0 0}.danger-action{background:#b3261e}@keyframes fadeOut{0%,80%{opacity:1}to{opacity:0}}@media (max-width: 880px){.app-shell{grid-template-columns:1fr}.sidebar{position:sticky;top:0;z-index:20;flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid #dfe8e3}.sidebar .brand{min-width:max-content;margin:0 10px 0 0}.nav{min-width:max-content}.topbar{align-items:stretch;flex-direction:column}.mobile-menu-btn{display:inline-flex;align-self:flex-start}.top-actions{display:none;width:100%}.top-actions.open{display:grid;grid-template-columns:1fr}.top-actions.open .ghost,.top-actions.open .icon-btn{width:100%}.stats,.two-col,.profile-grid,.grid2{grid-template-columns:1fr}.page{padding:18px}h1{font-size:1.55rem}}@media (max-width: 520px){.auth-shell{padding:12px}.login-card,.modal-card{padding:18px}.toolbar{width:100%}.toolbar>*{flex:1 1 auto}.product-search-panel{grid-template-columns:1fr auto;position:sticky;top:0;z-index:8;background:#f5f7f4;padding:2px 0 8px}.dark .product-search-panel{background:#0f1714}.product-search-panel .secondary{min-width:76px;padding:0 12px}.search{min-width:0}.status-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.compact-toggle{display:inline-flex;width:100%}.compact-tools{display:none}.compact-tools.open{display:flex}.compact-tools.open>*{flex:1 1 calc(50% - 8px)}.table-meta{align-items:stretch;flex-direction:column}.pager .secondary{flex:1}.product-cards{display:grid;gap:12px}.page>.table-wrap{display:none}.card-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{bottom:0;top:auto;position:fixed;left:0;right:0;padding:8px}.sidebar .brand{display:none}.nav{flex:1 0 auto;justify-content:center;padding:9px 10px}.content{padding-bottom:74px}}
