:root{--bg:#f5f7fb;--panel:#fff;--ink:#1d2939;--muted:#667085;--line:#e7ebf1;--blue:#315efb;--blue2:#edf2ff;--green:#15835d;--greenbg:#e8f7ef;--amber:#a85a09;--amberbg:#fff3dc;--red:#c43c48;--redbg:#fff0f0;--nav:#17243b;--shadow:0 5px 22px #273c5c0c}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}aside{background:var(--nav);color:#d8e0ef;padding:22px 14px;display:flex;flex-direction:column;gap:26px}.brand{display:flex;align-items:center;gap:11px;padding:2px 9px}.brand-mark{width:35px;height:35px;border-radius:11px;background:linear-gradient(145deg,#7293ff,#315efb);display:grid;place-items:center;color:#fff;font-size:18px;font-weight:800}.brand strong{display:block;color:#fff;font-size:15px;letter-spacing:.1px}.brand span{font-size:11px;color:#9eacc4}.nav-label{padding:0 12px 8px;color:#8190a9;text-transform:uppercase;letter-spacing:1px;font-size:10px;font-weight:700}.nav{display:grid;gap:4px}.nav button{border:0;text-align:left;color:#b9c4d6;background:transparent;border-radius:9px;padding:10px 12px;display:flex;align-items:center;gap:11px;transition:.15s}.nav button:hover{background:#ffffff10;color:#fff}.nav button.active{background:#ffffff16;color:#fff;font-weight:650}.nav .ico{width:18px;text-align:center;font-size:16px;opacity:.9}.aside-bottom{margin-top:auto;font-size:11px;color:#8e9bb1;padding:12px 10px;border-top:1px solid #ffffff17}.aside-bottom b{color:#d6deea;font-weight:600}.main{min-width:0}.topbar{height:70px;padding:0 34px;background:#ffffffc9;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:2}.crumb{font-size:13px;color:var(--muted)}.crumb b{color:var(--ink);font-weight:650}.top-actions{display:flex;align-items:center;gap:10px}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e8edff;color:#315efb;font-weight:700}.content{max-width:1400px;margin:auto;padding:29px 34px 60px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.page-head h1{font-size:25px;margin:0 0 5px;letter-spacing:-.5px}.page-head p{margin:0;color:var(--muted)}.actions{display:flex;gap:9px;flex-wrap:wrap}.btn{border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:9px 13px;color:var(--ink);font-weight:600;box-shadow:0 1px 2px #102a4308}.btn:hover{border-color:#c5cedd;background:#fafbff}.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 3px 8px #315efb25}.btn.primary:hover{background:#244fe8}.btn.danger{color:var(--red);border-color:#ffd3d6;background:#fff}.btn.small{padding:6px 9px;font-size:12px}.btn.ghost{background:transparent;box-shadow:none}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:19px}.stat,.panel,.table-wrap{background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.stat{padding:17px 18px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:600}.stat-icon{width:32px;height:32px;border-radius:9px;background:var(--blue2);color:var(--blue);display:grid;place-items:center;font-size:16px}.stat-value{font-size:27px;font-weight:750;letter-spacing:-.6px;margin-top:10px}.stat-foot{font-size:11px;color:var(--muted);margin-top:2px}.grid2{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}.panel{padding:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.panel-head h2{font-size:15px;margin:0}.panel-head a,.text-link{border:0;background:none;color:var(--blue);font-weight:600;font-size:12px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;white-space:nowrap}.table th{text-align:left;color:#7b8798;background:#fafbfd;padding:11px 14px;font-size:11px;font-weight:700;border-bottom:1px solid var(--line)}.table td{padding:12px 14px;border-bottom:1px solid #eff1f5;vertical-align:middle}.table tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fafbfe}.product-name{font-weight:650;color:#25334a}.sub{display:block;color:#8792a3;font-size:11px;margin-top:3px}.pill{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:20px;font-size:11px;font-weight:650;background:#eff2f6;color:#5b6778}.pill.green{background:var(--greenbg);color:var(--green)}.pill.amber{background:var(--amberbg);color:var(--amber)}.pill.red{background:var(--redbg);color:var(--red)}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.field-control{border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 11px;color:var(--ink);min-height:37px}.search{min-width:210px;flex:1;max-width:350px}.toolbar select{min-width:140px}.empty{text-align:center;color:#8792a3;padding:34px 14px}.empty b{display:block;color:#475467;margin-bottom:5px;font-size:13px}.table-foot{padding:11px 14px;color:var(--muted);font-size:12px;border-top:1px solid var(--line);display:flex;justify-content:space-between}.stock-cell{font-weight:700}.move-list{display:grid;gap:0}.move{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #eff1f5}.move:last-child{border:0}.move-icon{width:30px;height:30px;flex:none;border-radius:9px;background:#edf2ff;color:var(--blue);display:grid;place-items:center}.move-text{min-width:0;flex:1}.move-text b{font-size:12px}.move-text div{color:var(--muted);font-size:11px;margin-top:2px}.move time{color:#98a2b3;font-size:10px;white-space:nowrap}.bar-row{display:grid;grid-template-columns:1fr auto;gap:6px;margin:13px 0}.bar-row span{font-size:12px;color:#526075}.bar-row b{font-size:12px}.bar{height:6px;border-radius:8px;background:#eef1f6;grid-column:1/-1;overflow:hidden}.bar i{height:100%;display:block;background:var(--blue);border-radius:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:650;color:#49566a}.field input,.field select,.field textarea{border:1px solid #dce2eb;border-radius:8px;background:#fff;padding:9px 10px;color:var(--ink);width:100%;min-height:39px;outline:none}.field textarea{min-height:76px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.field-control:focus{border-color:#8ea7ff;box-shadow:0 0 0 3px #315efb14}.hint{font-size:11px;color:#8994a4}.modal-back{position:fixed;inset:0;z-index:10;background:#17243b66;display:grid;place-items:center;padding:20px}.modal{background:#fff;width:min(620px,100%);max-height:min(90vh,850px);overflow:auto;border-radius:14px;box-shadow:0 25px 70px #10203840}.modal.wide{width:min(840px,100%)}.modal-head{padding:19px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#fff;z-index:1}.modal-head h2{font-size:17px;margin:0}.close{border:0;background:#f3f5f8;border-radius:8px;width:31px;height:31px;font-size:18px;color:#677386}.modal-body{padding:21px 22px}.modal-foot{padding:14px 22px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;position:sticky;bottom:0;background:#fff}.notice{border-radius:9px;background:#f5f7fb;padding:11px 12px;color:#657287;font-size:12px;margin:0 0 15px}.notice strong{color:#344054}.detail-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:4px 0 18px;border-bottom:1px solid var(--line)}.detail-top h3{margin:0 0 5px;font-size:19px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:18px 0;border-bottom:1px solid var(--line)}.detail-grid small{display:block;color:#8a95a4;font-size:10px;margin-bottom:3px}.detail-grid b{font-size:12px}.timeline{margin-top:16px}.timeline h3{font-size:14px;margin:0 0 10px}.timeline-item{display:grid;grid-template-columns:14px 1fr;gap:9px;padding:8px 0}.timeline-dot{margin:5px 0 0 3px;width:8px;height:8px;border-radius:50%;background:var(--blue);position:relative}.timeline-dot:after{content:"";position:absolute;width:1px;background:#e0e6f0;top:9px;bottom:-24px;left:3px}.timeline-item:last-child .timeline-dot:after{display:none}.timeline-item b{font-size:12px}.timeline-item div div{font-size:11px;color:var(--muted);margin-top:2px}.tag{font-size:10px;padding:3px 6px;border-radius:5px;background:#f1f3f7;color:#637083;margin-left:5px}.warn{background:#fff9ec;color:#8d5c0a;border:1px solid #f4e4bd;border-radius:8px;padding:10px 11px;font-size:12px;margin-bottom:12px}.toast{position:fixed;bottom:20px;right:22px;z-index:30;background:#17243b;color:white;padding:11px 15px;border-radius:9px;box-shadow:0 10px 30px #10203830;font-size:13px;animation:up .2s ease}@keyframes up{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}.mobile-menu{display:none}.hide{display:none!important}.settings-row{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px}.settings-row:last-child{border:0}.settings-row b{font-size:13px}.settings-row p{font-size:11px;color:var(--muted);margin:3px 0 0}.category-tree{display:grid;gap:8px}.cat-parent{border:1px solid var(--line);border-radius:9px;padding:12px 14px}.cat-parent b{font-size:13px}.cat-child{display:inline-flex;margin:8px 5px 0 0;padding:4px 8px;border-radius:15px;background:#f1f4fa;color:#657287;font-size:11px}.assign-person{display:flex;align-items:center;gap:9px}.person-dot{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#edf2ff;color:#315efb;font-size:11px;font-weight:700}
.product-cell{display:flex;align-items:center;gap:11px}.product-thumb{width:42px;height:42px;flex:none;border-radius:10px;object-fit:cover;border:1px solid var(--line);background:#f1f4f9}.product-placeholder{display:grid;place-items:center;color:#8491a5;font-size:17px}.photo-picker{display:grid;grid-template-columns:105px 1fr;gap:14px;align-items:center;border:1px dashed #cbd4e2;background:#fafbfe;border-radius:11px;padding:13px}.photo-preview{width:105px;height:88px;border-radius:10px;object-fit:cover;background:#eef2f7;border:1px solid var(--line)}.photo-empty{display:grid;place-items:center;color:#7a879a;text-align:center;font-size:11px}.photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.action-card{border:1px solid var(--line);background:#fff;border-radius:11px;padding:13px;text-align:left;display:flex;gap:11px;align-items:center;box-shadow:none}.action-card:hover{border-color:#aebfff;background:#f8faff}.action-card strong{display:block;font-size:13px}.action-card small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.action-symbol{width:34px;height:34px;border-radius:9px;background:var(--blue2);color:var(--blue);display:grid;place-items:center;font-size:16px;flex:none}.action-card:disabled{cursor:not-allowed;opacity:.5;background:#f6f7f9}.lock-note{border:1px solid #f1dfb7;background:#fff9ec;color:#80550b;border-radius:10px;padding:11px 12px;margin-bottom:12px;font-size:12px}.asset-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}.detail-hero{display:flex;gap:15px;align-items:flex-start}.detail-photo{width:88px;height:88px;border-radius:13px;object-fit:cover;border:1px solid var(--line);background:#f2f4f8;flex:none}.btn:disabled{cursor:not-allowed;opacity:.5}.helper-line{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;margin-top:6px}
@media(max-width:1000px){.app{grid-template-columns:210px 1fr}.content{padding:23px}.topbar{padding:0 23px}.cards{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}}@media(max-width:700px){.app{display:block}aside{position:fixed;z-index:20;left:-255px;top:0;bottom:0;width:240px;transition:.2s}.app.nav-open aside{left:0}.mobile-menu{display:inline-flex}.topbar{height:60px;padding:0 15px}.content{padding:19px 14px 40px}.page-head{display:block}.page-head .actions{margin-top:15px}.page-head h1{font-size:22px}.cards{gap:9px}.stat{padding:13px}.stat-value{font-size:23px}.stat-icon{width:28px;height:28px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.detail-grid{grid-template-columns:1fr 1fr}.search{max-width:none;min-width:100%}.toolbar select{flex:1}.top-actions .btn{padding:7px 9px}.grid2{gap:12px}.action-grid{grid-template-columns:1fr}.photo-picker{grid-template-columns:82px 1fr}.photo-preview{width:82px;height:72px}.detail-photo{width:68px;height:68px}}
/* Soft, colorful workspace theme */
:root{--bg:#f5f7ff;--panel:#fff;--ink:#20304a;--muted:#69758d;--line:#e6e9f4;--blue:#536dfe;--blue2:#eef1ff;--green:#168a68;--greenbg:#e9faf3;--amber:#ae650e;--amberbg:#fff4dc;--red:#c64758;--redbg:#fff0f2;--nav:#182344;--purple:#7657d5;--cyan:#28a6a1;--shadow:0 10px 30px #33416d10}
body{background:radial-gradient(circle at 75% 0,#eef1ff 0,transparent 32%),radial-gradient(circle at 5% 80%,#e8fbf5 0,transparent 28%),var(--bg);color:var(--ink)}
aside{background:linear-gradient(180deg,#182344 0%,#202c54 58%,#26345f 100%)}.brand-mark{background:linear-gradient(145deg,#6e8cff,#8a61e8);box-shadow:0 7px 18px #0c153533}.nav button{border-radius:12px;padding:11px 12px}.nav button.active{background:linear-gradient(135deg,#6176ff35,#a666e52b);box-shadow:inset 0 0 0 1px #ffffff12}.nav button:hover{background:#ffffff12}
.topbar{background:#ffffffdc;border-bottom-color:#e8eaf5}.content{padding-top:31px}.page-head h1{color:#253456}.page-head p{color:#748098}.btn{border-radius:11px;padding:10px 14px;font-weight:650;box-shadow:0 3px 10px #263b6510;transition:.18s transform,.18s box-shadow,.18s background}.btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px #263b6515}.btn.primary{background:linear-gradient(135deg,#5b74ff,#7358df);border-color:transparent;box-shadow:0 6px 16px #5d64e52b}.btn.primary:hover{background:linear-gradient(135deg,#4d67f6,#684bd5)}
.stat,.panel,.table-wrap{border-color:#eaecf6;box-shadow:var(--shadow)}.stat{position:relative;overflow:hidden}.stat:after{content:"";position:absolute;width:70px;height:70px;border-radius:50%;right:-25px;bottom:-30px;background:#fff7}.stat:nth-child(1){background:linear-gradient(145deg,#eef2ff,#f8f9ff)}.stat:nth-child(2){background:linear-gradient(145deg,#eafaf4,#f8fffc)}.stat:nth-child(3){background:linear-gradient(145deg,#fff5e5,#fffaf2)}.stat:nth-child(4){background:linear-gradient(145deg,#fff0f3,#fff8fa)}.stat:nth-child(1) .stat-icon{background:#dfe6ff;color:#4f68ed}.stat:nth-child(2) .stat-icon{background:#d9f4e9;color:#18805f}.stat:nth-child(3) .stat-icon{background:#ffebc8;color:#a86410}.stat:nth-child(4) .stat-icon{background:#ffe0e5;color:#c24657}.stat-value{color:#223152}.panel{background:#ffffffeb}.table th{background:#f6f7fd;color:#68748a}.table tbody tr:hover{background:#f7f9ff}.field-control,.field input,.field select,.field textarea{border-color:#dde2f0;border-radius:10px}.pill{border-radius:8px}.modal{border-radius:18px}.modal-head,.modal-foot{background:#fff}.action-card{border-radius:13px}.action-symbol{background:linear-gradient(145deg,#edf1ff,#e7e2ff);color:#625ad9}
.welcome-card{background:linear-gradient(115deg,#536dfe 0%,#7358df 52%,#2da6a1 130%);color:white;border-radius:18px;padding:22px 24px;margin:-5px 0 20px;display:flex;justify-content:space-between;align-items:center;gap:18px;box-shadow:0 14px 35px #5769db2c;overflow:hidden;position:relative}.welcome-card:after{content:"";position:absolute;width:190px;height:190px;border:30px solid #ffffff12;border-radius:50%;right:-55px;top:-80px}.welcome-card h2{font-size:20px;margin:0 0 6px}.welcome-card p{margin:0;color:#ffffffcf}.welcome-actions{display:flex;gap:9px;z-index:1}.welcome-card .btn{background:#fff;color:#4f5ec3;border:0}.welcome-card .btn.secondary{background:#ffffff18;color:#fff;border:1px solid #ffffff3d}
.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:18px}.admin-card{border:1px solid #e5e8f4;background:#fff;border-radius:15px;padding:16px;text-align:left;display:flex;align-items:center;gap:13px;transition:.18s;box-shadow:0 7px 20px #3040640b}.admin-card:hover{transform:translateY(-2px);border-color:#c9d1f3;box-shadow:0 12px 24px #30406416}.admin-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eef1ff;color:#5868df;font-size:18px;flex:none}.admin-card:nth-child(2) .admin-icon{background:#e7f8f1;color:#18805f}.admin-card:nth-child(3) .admin-icon{background:#fff2dc;color:#a7630d}.admin-card:nth-child(4) .admin-icon{background:#f4eaff;color:#7851b7}.admin-card:nth-child(5) .admin-icon{background:#e7f7fa;color:#147b88}.admin-card:nth-child(6) .admin-icon{background:#ffecef;color:#bd4656}.admin-card b{display:block}.admin-card small{display:block;color:var(--muted);margin-top:2px}.admin-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.module-list{display:grid;gap:9px}.module-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#fafbff}.module-row b{font-size:13px}.module-row small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.switch{position:relative;width:45px;height:25px;flex:none}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;inset:0;background:#cbd2e3;border-radius:30px;transition:.2s}.slider:before{content:"";position:absolute;width:19px;height:19px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 2px 5px #33415e35;transition:.2s}.switch input:checked+.slider{background:linear-gradient(135deg,#5b74ff,#7458de)}.switch input:checked+.slider:before{transform:translateX(20px)}.list-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;margin:4px 4px 0 0;border:1px solid var(--line);border-radius:10px;background:#f8f9fd;font-size:12px}.list-chip button{border:0;background:transparent;color:var(--red);padding:0;font-weight:800}.admin-section-title{font-size:12px;color:#647089;text-transform:uppercase;letter-spacing:.7px;margin:18px 0 8px}
@media(max-width:900px){.admin-grid{grid-template-columns:repeat(2,1fr)}.admin-columns{grid-template-columns:1fr}.welcome-card{align-items:flex-start;flex-direction:column}}@media(max-width:520px){.admin-grid{grid-template-columns:1fr}.welcome-actions{width:100%;flex-direction:column}.welcome-actions .btn{width:100%}}
.clickable-row{cursor:pointer}.clickable-row:focus{outline:2px solid #8092ff;outline-offset:-2px}.person-listbox{display:grid;gap:6px;max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:7px;background:#fafbff}.person-option{width:100%;border:1px solid transparent;background:#fff;border-radius:9px;padding:9px 10px;text-align:left;display:flex;align-items:center;justify-content:space-between;color:var(--ink)}.person-option:hover{border-color:#cbd3f4;background:#f6f8ff}.person-option.selected{border-color:#7d8cf3;background:#eef1ff;color:#4456c4}.person-option small{color:var(--muted)}.category-list-view{display:grid;gap:10px}.category-list-parent{border:1px solid var(--line);border-radius:12px;overflow:hidden}.category-list-parent>.settings-row{padding:13px 14px;background:#fafbff}.category-list-child{padding:10px 14px 10px 34px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}.status-note{border-radius:10px;padding:11px 12px;margin:0 0 13px;font-size:12px}.status-note.passive{background:#f2f4f8;color:#596579;border:1px solid #dfe4ec}.status-note.scrap{background:var(--redbg);color:var(--red);border:1px solid #ffd7dd}
.status-note.service{background:var(--redbg);color:var(--red);border:1px solid #ffd7dd}
.person-option[hidden]{display:none}
/* Slightly deeper workspace surfaces */
:root{--bg:#e8ecf5;--panel:#f8f9fd;--line:#d9deea}
body{background:radial-gradient(circle at 75% 0,#dfe4f6 0,transparent 34%),radial-gradient(circle at 5% 80%,#dcefe9 0,transparent 30%),var(--bg)}
.topbar{background:#f2f4f9e8}.panel,.table-wrap{background:#f8f9fd}.table th{background:#eceff6}.field-control,.field input,.field select,.field textarea{background:#fcfdff}.admin-card,.module-row{background:#f4f6fb}.stat:nth-child(1){background:linear-gradient(145deg,#e3e8f9,#f1f3fa)}.stat:nth-child(2){background:linear-gradient(145deg,#def2ea,#f0f8f4)}.stat:nth-child(3){background:linear-gradient(145deg,#f8ead2,#fcf4e7)}.stat:nth-child(4){background:linear-gradient(145deg,#f7e3e7,#fbf0f2)}
.modal,.modal-body{background:#eef1f6}.modal-head,.modal-foot{background:#e8ecf3;border-color:#d7dde8}.modal-back{background:#17243b82}.close{background:#dde2ec}
.assign-modal{width:min(800px,100%);background:#edf1f9}.assign-modal .modal-head{background:linear-gradient(110deg,#dfe7ff,#eee5ff 58%,#dff5f1);border-bottom-color:#cfd7ea}.assign-modal .modal-head h2:before{content:"♙";display:inline-grid;place-items:center;width:34px;height:34px;margin-right:10px;border-radius:11px;background:linear-gradient(135deg,#6079ff,#7959df);color:#fff;vertical-align:middle}.assign-modal .modal-body{background:linear-gradient(145deg,#e9eef9,#eef4f4);padding:18px 20px}.assign-modal .form-grid{align-items:start;gap:13px}.assign-modal .field{align-self:start;padding:12px;border:1px solid transparent;border-radius:14px}.assign-modal .tone-blue{background:#e2e9fb;border-color:#cbd7f5}.assign-modal .tone-amber{background:#f8ead1;border-color:#eed8ad}.assign-modal .tone-purple{background:#ebe3fa;border-color:#d8c9f1}.assign-modal .tone-teal{background:#dff1ed;border-color:#c6e4dd}.assign-modal .tone-pink{background:#f5e3ea;border-color:#ebcdd9}.assign-modal .field input,.assign-modal .field select{background:#ffffffd9;border-color:#cad3e5;box-shadow:0 3px 10px #3b4c7410}.assign-modal #m_qty{height:48px;min-height:48px;max-height:48px;align-self:start}.assign-modal .person-listbox{background:#ffffff75;border-color:#d2c7e8;padding:8px}.assign-modal .person-option{background:#ffffffd9}.assign-modal .modal-foot{background:linear-gradient(90deg,#e4eaf7,#ece6f7);border-top-color:#cfd7e6}.assign-modal .modal-foot .btn.primary{box-shadow:0 8px 18px #655ee53d}@media(max-width:700px){.assign-modal .modal-body{padding:14px}.assign-modal .field{padding:10px}}
/* Shared colorful modal language */
.creative-modal{background:#edf1f9;border:1px solid #ffffff80;overflow:auto}
.creative-modal .modal-head{background:linear-gradient(110deg,#dfe7ff,#eee5ff 58%,#dff5f1);border-bottom-color:#ccd5e6}
.creative-modal .modal-head h2{display:flex;align-items:center;color:#25334a;letter-spacing:-.2px}
.creative-modal .modal-head h2:before{content:attr(data-icon);display:inline-grid;place-items:center;width:34px;height:34px;flex:none;margin-right:10px;border-radius:11px;background:linear-gradient(135deg,#6079ff,#7959df);color:#fff;font-size:16px;box-shadow:0 7px 16px #5d65d42d}
.creative-modal.theme-teal .modal-head{background:linear-gradient(110deg,#d7f0ea,#e6eff9 58%,#e9e1fa)}
.creative-modal.theme-teal .modal-head h2:before{background:linear-gradient(135deg,#159a82,#397bc3)}
.creative-modal.theme-amber .modal-head{background:linear-gradient(110deg,#f7e6c7,#f5e5df 58%,#e8e6fa)}
.creative-modal.theme-amber .modal-head h2:before{background:linear-gradient(135deg,#e29a36,#d36d5f)}
.creative-modal.theme-pink .modal-head{background:linear-gradient(110deg,#f3dde7,#e9e4fa 58%,#dcebf8)}
.creative-modal.theme-pink .modal-head h2:before{background:linear-gradient(135deg,#d86491,#7567de)}
.creative-modal .modal-body{background:linear-gradient(145deg,#e9eef9,#eef4f4);padding:18px 20px}
.creative-modal .form-grid{align-items:start;gap:13px}
.creative-modal .field{align-self:start;padding:12px;border:1px solid #cbd7f5;border-radius:14px;background:#e2e9fb}
.creative-modal .form-grid>.field:nth-child(5n+2){background:#f8ead1;border-color:#eed8ad}
.creative-modal .form-grid>.field:nth-child(5n+3){background:#ebe3fa;border-color:#d8c9f1}
.creative-modal .form-grid>.field:nth-child(5n+4){background:#dff1ed;border-color:#c6e4dd}
.creative-modal .form-grid>.field:nth-child(5n+5){background:#f5e3ea;border-color:#ebcdd9}
.creative-modal .tone-blue{background:#e2e9fb!important;border-color:#cbd7f5!important}.creative-modal .tone-amber{background:#f8ead1!important;border-color:#eed8ad!important}.creative-modal .tone-purple{background:#ebe3fa!important;border-color:#d8c9f1!important}.creative-modal .tone-teal{background:#dff1ed!important;border-color:#c6e4dd!important}.creative-modal .tone-pink{background:#f5e3ea!important;border-color:#ebcdd9!important}
.creative-modal .field input,.creative-modal .field select,.creative-modal .field textarea{background:#ffffffdc;border-color:#c8d1e2;box-shadow:0 3px 10px #3b4c7410}
.creative-modal .photo-picker,.creative-modal .notice,.creative-modal .lock-note,.creative-modal .status-note{background:#ffffff8c;border-color:#cfd7e6}
.creative-modal .detail-top{padding:14px;border:1px solid #cbd7f5;border-radius:14px;background:#e2e9fb}
.creative-modal .detail-grid{gap:10px;border-bottom:0}.creative-modal .detail-grid>div{padding:12px;border:1px solid #d8c9f1;border-radius:12px;background:#ebe3fa}.creative-modal .detail-grid>div:nth-child(2n){background:#dff1ed;border-color:#c6e4dd}.creative-modal .detail-grid>div:nth-child(3n){background:#f8ead1;border-color:#eed8ad}
.creative-modal .timeline{padding:14px;border:1px solid #cfd7e6;border-radius:14px;background:#ffffff72}.creative-modal .timeline-item{padding:10px;border-bottom:1px solid #dce2ec}.creative-modal .timeline-item:last-child{border-bottom:0}
.creative-modal .action-card{background:#ffffffa6;border-color:#ccd5e6}.creative-modal .action-card:nth-child(2){background:#ebe3fa}.creative-modal .action-card:nth-child(3){background:#dff1ed}.creative-modal .action-card:nth-child(4){background:#f8ead1}
.creative-modal .modal-foot{background:linear-gradient(90deg,#e4eaf7,#ece6f7);border-top-color:#cfd7e6}.creative-modal .modal-foot .btn.primary{box-shadow:0 8px 18px #655ee53d}
.creative-modal.assign-modal{width:min(800px,100%)}
@media(max-width:700px){.creative-modal .modal-body{padding:14px}.creative-modal .field{padding:10px}}
/* v14: responsive cards, zebra lists and account controls */
.table tbody tr:nth-child(even){background:#f4f6fb}.table tbody tr:nth-child(odd){background:#ffffffb8}.table tbody tr:hover{background:#eaf0ff}
.move-list>.move:nth-child(even),.settings-row:nth-child(even){background:#f5f7fc}.move-list>.move,.settings-row{padding-left:10px;padding-right:10px;border-radius:8px}
.field-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.mini-add{width:27px;height:27px;padding:0;border:1px solid #bac6ec;border-radius:8px;background:#fff;color:#566ce1;font-weight:800;box-shadow:0 3px 8px #31456d12}.mini-add:hover{background:#eef1ff}
.submodal-back{z-index:45;background:#17243b99}.submodal-back .modal{width:min(500px,100%)}
.person-assignment-list{display:grid;gap:12px}.person-assignment-card{border:1px solid #dfe4f0;border-radius:15px;background:#fbfcff;overflow:hidden}.person-assignment-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;background:linear-gradient(105deg,#e8edff,#eee7fb,#e3f4ef)}.person-assignment-items{display:grid}.person-assignment-item{display:grid;grid-template-columns:minmax(180px,1.3fr) 1fr auto auto;align-items:center;gap:12px;padding:11px 14px;border-top:1px solid #e5e9f2}.person-assignment-item:nth-child(even){background:#f3f6fb}.product-link{border:0;background:transparent;padding:0;color:#314ec1;font-weight:700;text-align:left}.product-link:hover{text-decoration:underline}
.user-badges{display:flex;gap:5px;flex-wrap:wrap}.user-badge{font-size:10px;padding:4px 7px;border-radius:8px;background:#e9edfb;color:#4658b9}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.check-card{display:flex;gap:9px;align-items:center;padding:9px 10px;border:1px solid #dce2ee;border-radius:10px;background:#ffffffb8}.check-card input{width:auto;min-height:auto}.account-menu{display:flex;align-items:center;gap:8px}.account-name{border:0;background:#e8edff;color:#4054bd;border-radius:11px;padding:8px 11px;font-weight:700}.login-back{position:fixed;inset:0;z-index:100;background:radial-gradient(circle at 15% 20%,#506be755,transparent 35%),radial-gradient(circle at 85% 80%,#2aa68e55,transparent 35%),#17243b;display:grid;place-items:center;padding:20px}.login-card{width:min(430px,100%);background:#edf1f8;border:1px solid #ffffff55;border-radius:22px;box-shadow:0 30px 90px #08112680;overflow:hidden}.login-head{padding:25px;background:linear-gradient(125deg,#5b72f4,#7658d8 58%,#2b9c91);color:#fff}.login-head h1{margin:0 0 5px;font-size:24px}.login-head p{margin:0;color:#ffffffcf}.login-body{padding:22px;display:grid;gap:14px}.login-body .field{padding:11px;border:1px solid #d5dceb;border-radius:13px;background:#fff}.login-body .btn{width:100%;justify-content:center}.login-error{color:#b42335;background:#ffecef;border:1px solid #f5cbd2;border-radius:9px;padding:9px 11px;font-size:12px}.login-note{font-size:11px;color:#758197;text-align:center}
@media(max-width:700px){
  .products-mobile{overflow:visible;background:transparent;border:0;box-shadow:none}.products-mobile .table,.products-mobile .table tbody,.products-mobile .table tr,.products-mobile .table td{display:block;width:100%}.products-mobile .table thead{display:none}.products-mobile .table tbody{display:grid;gap:12px}.products-mobile .table tr{border:1px solid #dce2ef;border-radius:16px;padding:12px;background:linear-gradient(145deg,#fbfcff,#f0f3fb);box-shadow:0 8px 22px #34476a12}.products-mobile .table td{border:0;padding:7px 4px;white-space:normal;display:flex;justify-content:space-between;align-items:center;gap:14px}.products-mobile .table td:first-child{display:block;padding-bottom:10px;border-bottom:1px solid #e2e6ef}.products-mobile .table td:before{content:attr(data-label);font-size:10px;font-weight:800;color:#7a879a;text-transform:uppercase}.products-mobile .table td:first-child:before,.products-mobile .table td:last-child:before{display:none}.products-mobile .table td:last-child{padding-top:10px}.products-mobile .table td:last-child .btn{width:100%}.products-mobile .table-foot{display:block;line-height:1.8;padding:10px 4px}.person-assignment-item{grid-template-columns:1fr;gap:5px}.person-assignment-head{align-items:flex-start;flex-direction:column}.check-grid{grid-template-columns:1fr}.account-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
/* v16: department and warehouse mapping */
.department-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.department-card{border:1px solid #dce2ee;border-radius:16px;background:linear-gradient(145deg,#fbfcff,#f0f4fb);overflow:hidden;box-shadow:0 8px 22px #34476a0d}.department-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px;background:linear-gradient(110deg,#e5ebff,#eee7fa 60%,#e1f3ef)}.department-card-head h3{margin:0 0 4px;font-size:15px}.department-card-body{padding:13px 15px}.warehouse-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.warehouse-badge{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:10px;background:#e5f3ef;color:#176e5b;font-size:11px;font-weight:700;border:1px solid #cbe5de}.warehouse-badge:before{content:'▥'}.department-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}.department-metric{padding:9px;border-radius:10px;background:#ffffffa8;border:1px solid #e1e5ef;text-align:center}.department-metric b{display:block;color:#293a5b}.department-metric span{font-size:10px;color:var(--muted)}.mapping-note{margin-bottom:15px;border:1px solid #cfd9f3;background:linear-gradient(110deg,#e9efff,#e7f5f1);color:#40506d;border-radius:13px;padding:12px 14px}.check-card small{margin-left:auto;color:var(--muted);font-size:10px}@media(max-width:850px){.department-grid{grid-template-columns:1fr}}@media(max-width:520px){.department-card-head{flex-direction:column}.department-card-head .actions{width:100%}.department-card-head .btn{flex:1}}
/* v19: clearer warehouses, history and small-screen layout */
.warehouse-groups{display:grid;gap:16px}.warehouse-department{border:1px solid #d9e0ee;border-radius:17px;background:#f8faff;overflow:hidden}.warehouse-department-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:linear-gradient(110deg,#e4eaff,#eee7fa 58%,#e0f2ee)}.warehouse-department-head h2{font-size:15px;margin:0}.warehouse-department-head p{font-size:11px;color:var(--muted);margin:3px 0 0}.warehouse-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:12px}.warehouse-card{border:1px solid #dce2ee;background:#fff;border-radius:14px;padding:14px;text-align:left;display:grid;gap:12px;transition:.18s;min-width:0}.warehouse-card:hover{border-color:#9fafe7;box-shadow:0 9px 22px #31466d16;transform:translateY(-1px)}.warehouse-card-top{display:flex;align-items:flex-start;gap:11px}.warehouse-card-icon{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:11px;background:#e7edff;color:#5268d4;font-size:18px}.warehouse-card h3{font-size:14px;margin:0;color:var(--ink)}.warehouse-card p{font-size:11px;color:var(--muted);margin:3px 0 0;overflow-wrap:anywhere}.warehouse-card-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.warehouse-card-metrics span{padding:7px;border-radius:9px;background:#f0f3f9;text-align:center;font-size:10px;color:var(--muted)}.warehouse-card-metrics b{display:block;font-size:13px;color:#30405f}.warehouse-card-actions{display:flex;gap:7px;flex-wrap:wrap}.history-list{display:grid;gap:10px}.history-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:start;border:1px solid #dfe4ef;border-radius:14px;padding:13px;background:#fff;cursor:pointer}.history-item:nth-child(even){background:#f3f6fb}.history-item:hover{border-color:#b7c3e6;background:#eef3ff}.history-icon{width:38px;height:38px;border-radius:11px;background:#e8edff;color:#5368d5;display:grid;place-items:center;font-size:17px}.history-main{min-width:0}.history-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.history-title strong{font-size:13px}.history-detail{margin-top:7px;padding:8px 10px;border-radius:9px;background:#f0f3f8;color:#5f6c82;font-size:11px;overflow-wrap:anywhere}.history-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.history-meta span{font-size:10px;padding:4px 7px;border-radius:7px;background:#e8f4f0;color:#246d5d}.history-time{text-align:right;color:#7b879b;font-size:10px;white-space:nowrap}.print-actions{position:sticky;top:0;display:flex;justify-content:flex-end;gap:8px;padding:10px;margin:-20px -20px 22px;background:#eef1f6;border-bottom:1px solid #d7dde8}.print-actions button{border:1px solid #cbd3df;background:#fff;border-radius:8px;padding:8px 12px;font-weight:700}.print-actions .primary{background:#315efb;color:#fff;border-color:#315efb}
@media(max-width:850px){.warehouse-card-grid{grid-template-columns:1fr}}
@media(max-width:700px){
  html,body{max-width:100%;overflow-x:hidden}.app,.main,.content{width:100%;max-width:100%;min-width:0}.content{padding:16px 10px 36px}.topbar{width:100%;padding:0 10px}.crumb{max-width:45vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-head{padding:13px;border:1px solid #dce2ef;border-radius:15px;background:#f7f9fd;margin-bottom:13px}.page-head h1{font-size:20px}.page-head p{font-size:12px}.page-head .actions,.welcome-actions,.actions{width:100%;display:grid;grid-template-columns:1fr;gap:7px}.page-head .btn,.welcome-actions .btn,.actions>.btn{width:100%}.welcome-card{padding:16px}.cards{grid-template-columns:1fr 1fr}.stat{min-width:0;padding:12px}.stat-top{font-size:10px}.stat-value{font-size:21px}.panel{padding:11px;border-radius:14px}.panel-head{align-items:flex-start;gap:8px}.panel-head h2{font-size:13px}.toolbar{display:grid;grid-template-columns:1fr;width:100%}.toolbar .field-control,.toolbar select,.search{width:100%;min-width:0;max-width:none}.table-wrap{overflow:visible;background:transparent;border:0;box-shadow:none}.table-wrap .table,.table-wrap .table tbody,.table-wrap .table tr,.table-wrap .table td{display:block;width:100%}.table-wrap .table thead{display:none}.table-wrap .table tbody{display:grid;gap:10px}.table-wrap .table tr{border:1px solid #dce2ef;border-radius:14px;padding:10px;background:#f7f9fd!important;box-shadow:0 6px 18px #34476a10;white-space:normal;overflow:hidden}.table-wrap .table td{border:0;padding:7px 5px;white-space:normal;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;overflow-wrap:anywhere}.table-wrap .table td:before{content:attr(data-label);flex:0 0 86px;font-size:9px;font-weight:800;color:#7a879a;text-transform:uppercase;padding-top:3px}.table-wrap .table td:first-child{padding-bottom:9px;border-bottom:1px solid #e1e6ef}.table-wrap .table td:last-child{padding-top:9px}.table-wrap .table td:last-child .btn{width:100%}.table-foot{display:grid;gap:3px;padding:9px 3px}.product-cell{min-width:0}.product-cell>div{min-width:0}.product-cell .sub{white-space:normal;overflow-wrap:anywhere}.settings-row,.module-row,.person-assignment-head{align-items:flex-start;flex-direction:column;background:#f4f6fb;padding:11px}.settings-row>span,.settings-row>.actions{width:100%}.settings-row .btn{width:100%;margin-top:5px}.department-grid,.warehouse-card-grid{grid-template-columns:1fr}.department-card-head,.warehouse-department-head{align-items:flex-start;flex-direction:column}.department-card-head .actions{display:grid}.department-metrics,.warehouse-card-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.history-item{grid-template-columns:34px minmax(0,1fr);padding:10px;gap:9px}.history-icon{width:34px;height:34px}.history-time{grid-column:2;text-align:left;white-space:normal}.history-detail{background:#e9edf5}.modal-back{padding:7px;align-items:flex-start;overflow-y:auto}.modal{width:100%;max-width:100%;max-height:none;margin:7px 0}.modal-body{padding:12px!important}.modal-head,.modal-foot{padding-left:12px;padding-right:12px}.modal-foot{position:sticky;bottom:0;z-index:3}.form-grid,.detail-grid{grid-template-columns:1fr}.person-assignment-item{padding:10px;background:#f4f6fb}.person-assignment-card{background:#eef2f8}.account-menu{gap:4px}.account-name{max-width:105px}.top-actions .btn{font-size:11px}.photo-picker{grid-template-columns:1fr;text-align:center}.photo-preview{margin:auto}.check-grid{grid-template-columns:1fr}.check-card{background:#f8f9fd;overflow-wrap:anywhere}
}
@media print{.print-actions{display:none!important}}
/* v21: department product filtering and searchable supply stock entry */
.supply-picker{display:grid;gap:8px}.supply-picker .person-listbox{max-height:260px}.supply-option{align-items:flex-start}.supply-option>span{min-width:0}.supply-option b,.supply-option small{display:block}.supply-option b{overflow-wrap:anywhere}.supply-option small{margin-top:3px}.supply-selected{display:none;padding:10px 11px;border:1px solid #bfcaf0;border-radius:10px;background:#eef2ff;color:#4053b5;font-size:12px}.supply-selected.visible{display:flex;align-items:center;justify-content:space-between;gap:10px}.supply-empty{padding:15px 10px;text-align:center;border-radius:9px;background:#f2f4f9;color:#647187;font-size:12px}.supply-add{width:100%;margin-top:7px;justify-content:center}.department-filter{border-color:#cbd6f1;background:#f5f7ff}
@media(max-width:700px){.supply-option{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}.supply-selected.visible{align-items:flex-start;flex-direction:column}}
/* v24: reusable list pagination and saved views */
.list-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 18px;padding:10px 12px;border:1px solid #dce2ee;border-radius:12px;background:#eef1f7;color:#657287;font-size:11px}.list-pagination-left,.list-pagination-pages{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.list-pagination select{border:1px solid #ccd4e2;border-radius:8px;background:#fff;padding:6px 8px;color:var(--ink);font-weight:700}.page-button{min-width:31px;height:31px;border:1px solid #d4dbe7;border-radius:8px;background:#fff;color:#4d5b70;font-weight:700}.page-button:hover{border-color:#9eadde;background:#f7f9ff}.page-button.active{border-color:var(--blue);background:var(--blue);color:#fff}.page-button:disabled{opacity:.4;cursor:default}.save-view-button{border-color:#b8c5ea;background:#eef2ff;color:#4055bd}.save-view-button.saved{border-color:#9cd2bf;background:#e8f7ef;color:#187457}
@media(max-width:700px){.list-pagination{align-items:flex-start;flex-direction:column}.list-pagination-left,.list-pagination-pages{width:100%}.list-pagination-pages{justify-content:flex-start}.page-button{flex:0 0 auto}.save-view-button{width:100%}}
/* v25: clickable dashboard summaries and compact saved-view action */
.dashboard-stat-link{cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s}.dashboard-stat-link:hover{transform:translateY(-2px);border-color:#abb8e7;box-shadow:0 12px 28px #283c6919}.dashboard-stat-link:focus{outline:3px solid #315efb24;border-color:#8094e9}.dashboard-stat-link .stat-foot:after{content:'  →';color:var(--blue);font-weight:800}.page-head .save-view-button{width:40px!important;height:38px;padding:0!important;display:inline-grid;place-items:center;font-size:17px;border-radius:10px;flex:none}
@media(max-width:700px){.page-head .actions .save-view-button{width:40px!important;justify-self:end}}
/* v28: compact status/stock pills with equal desktop row heights */
#content .products-mobile .stock-cell{background:transparent!important;box-shadow:none;color:#293a5f}
#content .products-mobile tbody tr.clickable-row{height:70px}
.stock-status-box{display:inline-flex;align-items:center;gap:6px;min-height:27px;padding:0;border:0;background:transparent;box-shadow:none;white-space:nowrap;font-weight:700}
.stock-status-box>.pill,.stock-status-box>.sub,.stock-status-box>span:not(.pill):not(.sub){display:inline-flex;align-items:center;min-height:25px;margin:0!important;padding:4px 9px;border-radius:20px;font-size:11px;line-height:1.2;font-weight:700}
.stock-status-box>span:not(.pill):not(.sub){background:#edf2ff;color:#4055bd}
.stock-status-box>.sub{background:#f1f3f7;color:#5b6778}
@media(max-width:700px){#content .products-mobile .stock-cell{border:0!important;padding:7px 5px!important;margin:0}#content .products-mobile tbody tr.clickable-row{height:auto}.stock-status-box{width:100%;min-width:0;flex-wrap:wrap;gap:5px}}
/* v35: four genuinely different professional layouts; corporate stays untouched */
body[data-app-theme="ocean"]{--bg:#edf7f8;--panel:#fbffff;--ink:#17333a;--muted:#617d82;--line:#d8e9eb;--blue:#0b8fa5;--blue2:#dff5f7;--nav:#103b46;--theme-top:#f8ffffe8;--theme-soft:#edf8f9;--theme-field:#fff;--theme-shadow:0 14px 38px #17667812}
body[data-app-theme="emerald"]{--bg:#f0f4f1;--panel:#fff;--ink:#20372e;--muted:#66776f;--line:#d7e2db;--blue:#277d59;--blue2:#e1f2e9;--nav:#18372d;--theme-top:#ffffffee;--theme-soft:#eaf1ed;--theme-field:#fff;--theme-shadow:none}
body[data-app-theme="sunset"]{--bg:#fff5ee;--panel:#fffdfb;--ink:#412c29;--muted:#806b65;--line:#eedbd0;--blue:#d56735;--blue2:#ffeadf;--nav:#fffaf6;--theme-top:#fffaf6f2;--theme-soft:#fff0e6;--theme-field:#fffdfb;--theme-shadow:0 12px 32px #7b3e2012}
body[data-app-theme="violet"]{--bg:#10121a;--panel:#191c27;--ink:#f3f4fa;--muted:#9ca5b7;--line:#2d3242;--blue:#9a7bff;--blue2:#2b2549;--nav:#090b11;--green:#60d4a3;--greenbg:#173c30;--amber:#ffc46b;--amberbg:#44351d;--red:#ff8290;--redbg:#451f29;--theme-top:#151822ed;--theme-soft:#222632;--theme-field:#202430;--theme-shadow:0 15px 42px #00000035}
body[data-app-theme]:not([data-app-theme="corporate"]) .topbar{background:var(--theme-top);border-color:var(--line)}
body[data-app-theme]:not([data-app-theme="corporate"]) .table th{background:var(--theme-soft);color:var(--muted);border-color:var(--line)}
body[data-app-theme]:not([data-app-theme="corporate"]) .field-control,body[data-app-theme]:not([data-app-theme="corporate"]) .field input,body[data-app-theme]:not([data-app-theme="corporate"]) .field select,body[data-app-theme]:not([data-app-theme="corporate"]) .field textarea{background:var(--theme-field);color:var(--ink);border-color:var(--line)}
body[data-app-theme]:not([data-app-theme="corporate"]) .btn:not(.primary):not(.danger){background:var(--panel);color:var(--ink);border-color:var(--line)}
body[data-app-theme]:not([data-app-theme="corporate"]) .btn:not(.primary):not(.danger):hover{background:var(--theme-soft);border-color:var(--blue)}
body[data-app-theme]:not([data-app-theme="corporate"]) .stat,body[data-app-theme]:not([data-app-theme="corporate"]) .panel,body[data-app-theme]:not([data-app-theme="corporate"]) .table-wrap{background:var(--panel);border-color:var(--line);box-shadow:var(--theme-shadow)}
body[data-app-theme]:not([data-app-theme="corporate"]) .table td{border-color:var(--line)}
body[data-app-theme]:not([data-app-theme="corporate"]) .table tbody tr:nth-child(even){background:color-mix(in srgb,var(--theme-soft) 72%,var(--panel))}
body[data-app-theme]:not([data-app-theme="corporate"]) .table tbody tr:nth-child(odd){background:var(--panel)}
body[data-app-theme]:not([data-app-theme="corporate"]) .table tbody tr:hover{background:var(--blue2)}
body[data-app-theme]:not([data-app-theme="corporate"]) .modal{background:var(--panel);color:var(--ink);border-color:var(--line)}
body[data-app-theme]:not([data-app-theme="corporate"]) .modal-head,body[data-app-theme]:not([data-app-theme="corporate"]) .modal-foot{border-color:var(--line)}
body[data-app-theme]:not([data-app-theme="corporate"]) .creative-modal .modal-body{background:var(--bg)}
body[data-app-theme]:not([data-app-theme="corporate"]) .creative-modal .field{background:var(--panel)!important;border-color:var(--line)!important}
body[data-app-theme]:not([data-app-theme="corporate"]) .creative-modal .field input,body[data-app-theme]:not([data-app-theme="corporate"]) .creative-modal .field select,body[data-app-theme]:not([data-app-theme="corporate"]) .creative-modal .field textarea{background:var(--theme-field);color:var(--ink);border-color:var(--line)}
body[data-app-theme]:not([data-app-theme="corporate"]) .creative-modal .detail-top,body[data-app-theme]:not([data-app-theme="corporate"]) .creative-modal .detail-grid>div,body[data-app-theme]:not([data-app-theme="corporate"]) .creative-modal .timeline,body[data-app-theme]:not([data-app-theme="corporate"]) .creative-modal .action-card{background:var(--panel);border-color:var(--line);color:var(--ink)}
body[data-app-theme]:not([data-app-theme="corporate"]) .move-list>.move:nth-child(even),body[data-app-theme]:not([data-app-theme="corporate"]) .settings-row:nth-child(even){background:var(--theme-soft)}

/* Akış Pro: spacious glass surfaces and floating list rows */
body[data-app-theme="ocean"]{background:radial-gradient(circle at 88% 5%,#d7f2f3 0,transparent 26%),radial-gradient(circle at 20% 90%,#deeff7 0,transparent 30%),var(--bg)}
body[data-app-theme="ocean"] aside{background:linear-gradient(180deg,#0d3b47,#102f3a);border-right:1px solid #ffffff18}
body[data-app-theme="ocean"] .brand-mark{border-radius:50%;background:linear-gradient(145deg,#21b6bc,#087c98)}
body[data-app-theme="ocean"] .page-head{padding:18px 20px;border:1px solid #d1e9eb;border-radius:20px;background:#ffffff8c;backdrop-filter:blur(14px);box-shadow:0 12px 34px #1766780d}
body[data-app-theme="ocean"] .toolbar{padding:10px;border:1px solid #d4e9eb;border-radius:16px;background:#ffffff9c;backdrop-filter:blur(12px)}
body[data-app-theme="ocean"] .stat,body[data-app-theme="ocean"] .panel{border-radius:20px}
body[data-app-theme="ocean"] .stat:nth-child(1),body[data-app-theme="ocean"] .stat:nth-child(2),body[data-app-theme="ocean"] .stat:nth-child(3),body[data-app-theme="ocean"] .stat:nth-child(4){background:linear-gradient(145deg,#ffffffde,#eaf8f8)}
body[data-app-theme="ocean"] .stat-icon{border-radius:50%}
body[data-app-theme="ocean"] .warehouse-card,body[data-app-theme="ocean"] .department-card,body[data-app-theme="ocean"] .history-item{border-radius:18px;background:#ffffffc9;border-color:#d4e8ea;box-shadow:0 10px 26px #1766780b}
body[data-app-theme="ocean"] .creative-modal{border-radius:24px;background:#f8ffff;box-shadow:0 30px 90px #062d3a55}
body[data-app-theme="ocean"] .creative-modal .modal-head{background:linear-gradient(115deg,#cdeff1,#e5f4fb 52%,#e8e2fb)}
body[data-app-theme="ocean"] .creative-modal .modal-body{padding:22px}
body[data-app-theme="ocean"] .creative-modal .field{border-radius:16px!important;box-shadow:0 7px 18px #1766780a}
body[data-app-theme="ocean"] .creative-modal .detail-top,body[data-app-theme="ocean"] .creative-modal .detail-grid>div,body[data-app-theme="ocean"] .creative-modal .timeline{border-radius:16px}

/* Operasyon Kompakt: dense enterprise workspace */
body[data-app-theme="emerald"] .app{grid-template-columns:208px minmax(0,1fr)}
body[data-app-theme="emerald"] aside{padding:15px 10px;gap:14px}
body[data-app-theme="emerald"] .brand{padding:2px 7px}
body[data-app-theme="emerald"] .nav button{border-radius:6px;padding:8px 9px;font-size:12px}
body[data-app-theme="emerald"] .topbar{height:58px;padding:0 25px;backdrop-filter:none}
body[data-app-theme="emerald"] .content{max-width:1520px;padding:20px 26px 44px}
body[data-app-theme="emerald"] .page-head{margin-bottom:16px;align-items:center}
body[data-app-theme="emerald"] .page-head h1{font-size:22px}
body[data-app-theme="emerald"] .cards{gap:9px;margin-bottom:13px}
body[data-app-theme="emerald"] .stat{padding:13px 14px;border-radius:6px;box-shadow:none;border-left:4px solid var(--blue)}
body[data-app-theme="emerald"] .stat:nth-child(1),body[data-app-theme="emerald"] .stat:nth-child(2),body[data-app-theme="emerald"] .stat:nth-child(3),body[data-app-theme="emerald"] .stat:nth-child(4){background:#fff}
body[data-app-theme="emerald"] .stat-value{font-size:23px;margin-top:5px}
body[data-app-theme="emerald"] .panel,body[data-app-theme="emerald"] .table-wrap{border-radius:6px;box-shadow:none}
body[data-app-theme="emerald"] .panel{padding:14px}.panel-head{}
body[data-app-theme="emerald"] .toolbar{padding:8px;margin-bottom:9px;border:1px solid var(--line);border-radius:6px;background:#e8efeb}
body[data-app-theme="emerald"] .field-control{min-height:33px;padding:7px 9px;border-radius:5px}
body[data-app-theme="emerald"] .table th{padding:8px 11px;font-size:10px}
body[data-app-theme="emerald"] .table td{padding:8px 11px}
body[data-app-theme="emerald"] .btn{border-radius:5px;box-shadow:none;padding:7px 11px}
body[data-app-theme="emerald"] .btn.small{padding:5px 8px}
body[data-app-theme="emerald"] .warehouse-card,body[data-app-theme="emerald"] .department-card,body[data-app-theme="emerald"] .history-item,body[data-app-theme="emerald"] .module-row{border-radius:6px;box-shadow:none}
body[data-app-theme="emerald"] .creative-modal{border-radius:8px;border-left:7px solid var(--blue);box-shadow:0 24px 70px #102d2350}
body[data-app-theme="emerald"] .creative-modal .modal-head{background:#e7f0eb}
body[data-app-theme="emerald"] .creative-modal .modal-head h2:before{border-radius:5px;background:#277d59}
body[data-app-theme="emerald"] .creative-modal .modal-body{padding:16px}
body[data-app-theme="emerald"] .creative-modal .field,body[data-app-theme="emerald"] .creative-modal .detail-top,body[data-app-theme="emerald"] .creative-modal .detail-grid>div,body[data-app-theme="emerald"] .creative-modal .timeline{border-radius:6px!important;box-shadow:none}

/* Studio Üst Menü: horizontal navigation and editorial cards */
body[data-app-theme="sunset"]{background:linear-gradient(180deg,#fff9f4,#fff2e9)}
body[data-app-theme="sunset"] .brand-mark{background:linear-gradient(145deg,#f09b5f,#c9522c);border-radius:12px}
body[data-app-theme="sunset"] .topbar{height:54px;position:relative;padding:0 38px}
body[data-app-theme="sunset"] .content{max-width:1320px;padding-top:25px}
body[data-app-theme="sunset"] .page-head{padding-left:17px;border-left:5px solid var(--blue)}
body[data-app-theme="sunset"] .page-head h1{font-family:Georgia,serif;font-size:29px;letter-spacing:-.8px}
body[data-app-theme="sunset"] .stat,body[data-app-theme="sunset"] .panel,body[data-app-theme="sunset"] .table-wrap{border-radius:18px;box-shadow:var(--theme-shadow)}
body[data-app-theme="sunset"] .stat:nth-child(1),body[data-app-theme="sunset"] .stat:nth-child(2),body[data-app-theme="sunset"] .stat:nth-child(3),body[data-app-theme="sunset"] .stat:nth-child(4){background:#fffdfb}
body[data-app-theme="sunset"] .stat{border-top:4px solid #f1a36f}
body[data-app-theme="sunset"] .toolbar{padding:12px;border-radius:15px;background:#f8e7dd;border:1px solid #eed6c8}
body[data-app-theme="sunset"] .table th{font-family:Georgia,serif;font-size:11px;color:#765b53}
body[data-app-theme="sunset"] .table td{padding-top:14px;padding-bottom:14px}
body[data-app-theme="sunset"] .warehouse-card,body[data-app-theme="sunset"] .department-card,body[data-app-theme="sunset"] .history-item{border-radius:16px;background:#fffdfb;box-shadow:0 8px 24px #7b3e2010}
body[data-app-theme="sunset"] .creative-modal{border-radius:20px;box-shadow:0 30px 90px #4b211950}
body[data-app-theme="sunset"] .creative-modal .modal-head{background:linear-gradient(110deg,#ffe0c8,#ffece0 55%,#f1e5ff)}
body[data-app-theme="sunset"] .creative-modal .modal-head h2{font-family:Georgia,serif;font-size:20px}
body[data-app-theme="sunset"] .creative-modal .modal-head h2:before{background:linear-gradient(135deg,#e77b43,#b95582)}
body[data-app-theme="sunset"] .creative-modal .field{border-radius:12px!important;background:#fffaf6!important}
body[data-app-theme="sunset"] .creative-modal .detail-grid>div:nth-child(2n){background:#fff3ea!important}

/* Gece Bento: complete dark premium workspace */
body[data-app-theme="violet"]{background:radial-gradient(circle at 78% 0,#211c38 0,transparent 29%),var(--bg)}
body[data-app-theme="violet"] aside{background:linear-gradient(180deg,#090b11,#14101f);border-right:1px solid #29253b}
body[data-app-theme="violet"] .brand-mark{background:linear-gradient(145deg,#b090ff,#6d48ed);box-shadow:0 8px 22px #6d48ed45}
body[data-app-theme="violet"] .topbar{box-shadow:0 8px 22px #00000024}
body[data-app-theme="violet"] .content{max-width:1500px}
body[data-app-theme="violet"] .page-head{padding:18px 20px;border:1px solid #343047;border-radius:15px;background:linear-gradient(120deg,#1c202c,#211b36)}
body[data-app-theme="violet"] .page-head h1,body[data-app-theme="violet"] .product-name,body[data-app-theme="violet"] .field label,body[data-app-theme="violet"] .empty b,body[data-app-theme="violet"] .bar-row b,body[data-app-theme="violet"] .bar-row span,body[data-app-theme="violet"] .warehouse-card h3{color:var(--ink)}
body[data-app-theme="violet"] .sub,body[data-app-theme="violet"] .hint,body[data-app-theme="violet"] .move-text div{color:var(--muted)}
body[data-app-theme="violet"] .cards{grid-template-columns:1.35fr repeat(3,1fr);gap:12px}
body[data-app-theme="violet"] .stat{border-radius:16px;padding:18px;background:linear-gradient(145deg,#1d202b,#202331)!important;box-shadow:0 14px 36px #00000028}
body[data-app-theme="violet"] .stat:first-child{background:linear-gradient(135deg,#2b2350,#1c2539)!important}
body[data-app-theme="violet"] .stat-value{color:#fff}
body[data-app-theme="violet"] .panel,body[data-app-theme="violet"] .table-wrap{border-radius:14px}
body[data-app-theme="violet"] .toolbar{padding:11px;border:1px solid var(--line);border-radius:13px;background:#171a23}
body[data-app-theme="violet"] .table tbody tr:nth-child(even){background:#1d202b}
body[data-app-theme="violet"] .table tbody tr:nth-child(odd){background:#181b24}
body[data-app-theme="violet"] .table tbody tr:hover{background:#28233d}
body[data-app-theme="violet"] .pill{background:#2c3040;color:#c6ccda}
body[data-app-theme="violet"] .notice,body[data-app-theme="violet"] .history-detail,body[data-app-theme="violet"] .module-row,body[data-app-theme="violet"] .settings-row:nth-child(even),body[data-app-theme="violet"] .list-pagination{background:#202430;color:var(--muted);border-color:var(--line)}
body[data-app-theme="violet"] .notice strong{color:var(--ink)}
body[data-app-theme="violet"] .page-button,body[data-app-theme="violet"] .close{background:#272b38;color:var(--ink);border-color:var(--line)}
body[data-app-theme="violet"] .warehouse-card,body[data-app-theme="violet"] .department-card,body[data-app-theme="violet"] .warehouse-department,body[data-app-theme="violet"] .history-item,body[data-app-theme="violet"] .person-assignment-card,body[data-app-theme="violet"] .admin-card{background:#191c27;color:var(--ink);border-color:var(--line);box-shadow:none}
body[data-app-theme="violet"] .warehouse-card-metrics span,body[data-app-theme="violet"] .department-metric,body[data-app-theme="violet"] .history-detail{background:#232735;color:var(--muted);border-color:var(--line)}
body[data-app-theme="violet"] .warehouse-card-metrics b,body[data-app-theme="violet"] .department-metric b{color:var(--ink)}
body[data-app-theme="violet"] .warehouse-department-head,body[data-app-theme="violet"] .department-card-head,body[data-app-theme="violet"] .person-assignment-head{background:linear-gradient(110deg,#24283a,#2a2343)}
body[data-app-theme="violet"] .creative-modal{border-radius:18px;background:#191c27;border-color:#37324e;box-shadow:0 30px 95px #00000090}
body[data-app-theme="violet"] .creative-modal .modal-head{background:linear-gradient(110deg,#29233f,#1f2938);border-color:#37324e}
body[data-app-theme="violet"] .creative-modal .modal-head h2{color:#fff}
body[data-app-theme="violet"] .creative-modal .modal-head h2:before{background:linear-gradient(135deg,#a482ff,#6848e6)}
body[data-app-theme="violet"] .creative-modal .modal-body{background:#12151d}
body[data-app-theme="violet"] .creative-modal .field,body[data-app-theme="violet"] .creative-modal .detail-top,body[data-app-theme="violet"] .creative-modal .detail-grid>div,body[data-app-theme="violet"] .creative-modal .timeline,body[data-app-theme="violet"] .creative-modal .action-card{background:#1e222d!important;border-color:#343949!important;color:var(--ink)}
body[data-app-theme="violet"] .creative-modal .modal-foot{background:#191c27;border-color:#343949}
body[data-app-theme="violet"] .creative-modal .photo-picker,body[data-app-theme="violet"] .creative-modal .notice,body[data-app-theme="violet"] .creative-modal .lock-note,body[data-app-theme="violet"] .creative-modal .status-note{background:#202430;color:var(--muted);border-color:#3a4051}
body[data-app-theme="violet"] .account-name{background:#2b2549;color:#d9ceff}
body[data-app-theme="violet"] .btn.danger{background:#2a1e27;border-color:#5d3340}
body[data-app-theme="violet"] .action-card:disabled{background:#171a22}

@media(min-width:701px){
  body[data-app-theme="ocean"] .app{grid-template-columns:270px minmax(0,1fr)}
  body[data-app-theme="ocean"] .content{max-width:1480px;padding:32px 38px 65px}
  body[data-app-theme="ocean"] .table-wrap{background:transparent;border:0;box-shadow:none;overflow:visible}
  body[data-app-theme="ocean"] .table{border-collapse:separate;border-spacing:0 7px}
  body[data-app-theme="ocean"] .table th{border:0;background:transparent}
  body[data-app-theme="ocean"] .table td{background:#ffffffd6;border-top:1px solid #d8e9eb;border-bottom:1px solid #d8e9eb}
  body[data-app-theme="ocean"] .table td:first-child{border-left:1px solid #d8e9eb;border-radius:12px 0 0 12px}
  body[data-app-theme="ocean"] .table td:last-child{border-right:1px solid #d8e9eb;border-radius:0 12px 12px 0}
  body[data-app-theme="sunset"] .app{display:block}
  body[data-app-theme="sunset"] aside {
    position: sticky;
    top: 0;
    z-index: 8;
    width: 100%;
    min-height: 70px;
    padding: 10px clamp(12px, 2vw, 28px);
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #edd7cb;
    box-shadow: 0 8px 26px #713a2410;
  }
  body[data-app-theme="sunset"] .brand {
    flex: none;
    min-height: 0;
    padding: 0;
    border: 0;
  }
  body[data-app-theme="sunset"] .nav-shell { flex: 1 1 0; min-width: 0; }
  body[data-app-theme="sunset"] .nav-label,
  body[data-app-theme="sunset"] .nav-section-label,
  body[data-app-theme="sunset"] .aside-bottom,
  body[data-app-theme="sunset"] .nav-active-dot,
  body[data-app-theme="sunset"] .nav button.active::before { display: none; }
  body[data-app-theme="sunset"] .nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #c28b70 #f7e7dc;
    padding: 2px 2px 5px;
  }
  body[data-app-theme="sunset"] .nav-section { display: contents; }
  body[data-app-theme="sunset"] .nav button {
    width: auto;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 5px 9px;
    gap: 5px;
    border-radius: 10px;
    color: #6e554f;
    transform: none;
  }
  body[data-app-theme="sunset"] .nav .ico {
    width: 20px;
    height: 20px;
    border: 0;
    background: none;
    color: inherit;
  }
  body[data-app-theme="sunset"] .nav button.active .ico { background: none; color: inherit; }
  body[data-app-theme="sunset"] .nav button:hover{background:#f7e7dc;color:#3d2926}
  body[data-app-theme="sunset"] .nav button.active{background:#d56735;color:#fff;box-shadow:0 7px 16px #d5673530}
  body[data-app-theme="sunset"] .brand strong{color:#3f2b28}
  body[data-app-theme="sunset"] .brand span{color:#977b72}
}
@media (max-width: 700px) {
  body[data-app-theme="sunset"] .topbar { padding-inline: 10px; gap: 8px; }
  body[data-app-theme="sunset"] .topbar > div { min-width: 0; }
  body[data-app-theme="sunset"] .account-name { max-width: 30vw; }
}
.profile-hero{display:flex;align-items:center;gap:16px;padding:20px;background:linear-gradient(135deg,var(--blue2),var(--panel));border:1px solid var(--line);border-radius:14px;margin-bottom:16px}.profile-avatar{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:var(--blue);color:#fff;font-size:21px;font-weight:800;box-shadow:0 8px 20px color-mix(in srgb,var(--blue) 25%,transparent)}.profile-hero h2{margin:0 0 4px}.profile-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.profile-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:16px}.theme-grid{display:grid;grid-template-columns:repeat(5,minmax(118px,1fr));gap:10px}.theme-choice{border:2px solid var(--line);background:var(--panel);border-radius:13px;padding:9px;text-align:left;color:var(--ink);transition:.16s}.theme-choice:hover{transform:translateY(-2px);border-color:var(--blue)}.theme-choice.active{border-color:var(--blue);box-shadow:0 0 0 3px color-mix(in srgb,var(--blue) 12%,transparent)}.theme-preview{height:78px;border-radius:9px;overflow:hidden;display:grid;grid-template-columns:27% 73%;margin-bottom:8px;border:1px solid #0000000d}.theme-preview-sidebar{display:block;background:var(--preview-nav)}.theme-preview-main{display:block;background:var(--preview-bg);padding:8px}.theme-preview-main:before,.theme-preview-main:after{content:"";display:block;background:var(--preview-panel);border-radius:4px;height:12px;margin-bottom:6px;box-shadow:inset 3px 0 var(--preview-accent)}.theme-preview-main:after{height:35px;margin:0}.theme-preview.preview-glass{grid-template-columns:30% 70%;padding:4px;background:var(--preview-bg);gap:4px}.theme-preview.preview-glass .theme-preview-sidebar,.theme-preview.preview-glass .theme-preview-main{border-radius:6px}.theme-preview.preview-compact{grid-template-columns:20% 80%}.theme-preview.preview-compact .theme-preview-main{padding:5px}.theme-preview.preview-compact .theme-preview-main:before{height:8px;margin-bottom:4px;border-radius:2px}.theme-preview.preview-compact .theme-preview-main:after{height:47px;border-radius:2px}.theme-preview.preview-topnav{grid-template-columns:1fr;grid-template-rows:21px 1fr}.theme-preview.preview-topnav .theme-preview-sidebar{grid-column:1;height:21px}.theme-preview.preview-topnav .theme-preview-main{padding:7px}.theme-preview.preview-bento{grid-template-columns:24% 76%;background:#10121a}.theme-preview.preview-bento .theme-preview-main{display:grid;grid-template-columns:1fr 1fr;gap:5px}.theme-preview.preview-bento .theme-preview-main:before,.theme-preview.preview-bento .theme-preview-main:after{height:auto;margin:0;border-radius:5px}.theme-choice strong{display:block;font-size:11px}.theme-choice small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.theme-check{float:right;color:var(--blue);font-weight:900}.product-link-button{white-space:nowrap}.account-name{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1050px){.theme-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){body[data-app-theme="ocean"] .page-head{padding:14px;border-radius:16px}body[data-app-theme="emerald"] .content{padding:15px 10px 36px}body[data-app-theme="emerald"] .topbar{height:60px;padding:0 10px}body[data-app-theme="emerald"] .panel{padding:11px}body[data-app-theme="sunset"] .page-head h1{font-size:22px}body[data-app-theme="violet"] .cards{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.profile-layout{grid-template-columns:1fr}.theme-grid{grid-template-columns:repeat(2,1fr)}.profile-hero{align-items:flex-start}.product-link-button{padding-inline:8px}body[data-app-theme="sunset"] aside{background:#fffaf6;color:#6e554f}body[data-app-theme="sunset"] .brand strong{color:#3f2b28}body[data-app-theme="sunset"] .brand span{color:#977b72}body[data-app-theme="sunset"] .nav button{color:#6e554f}body[data-app-theme="sunset"] .nav button.active{background:#d56735;color:#fff}body[data-app-theme="violet"] .page-head{background:linear-gradient(120deg,#1c202c,#211b36);border-color:#343047}body[data-app-theme="violet"] .table-wrap .table tr{background:#1b1e29!important;border-color:#303545}body[data-app-theme="violet"] .table-wrap .table td:first-child{border-color:#303545}body[data-app-theme="violet"] .settings-row,body[data-app-theme="violet"] .module-row,body[data-app-theme="violet"] .person-assignment-item{background:#202430;color:var(--ink)}body[data-app-theme="violet"] .history-detail{background:#252938}}

/* Collapsible desktop navigation */
aside{position:relative}.sidebar-toggle{position:absolute;top:25px;right:-13px;z-index:4;width:28px;height:28px;border:1px solid #ffffff2b;border-radius:50%;display:grid;place-items:center;padding:0;background:#26375f;color:#fff;box-shadow:0 5px 14px #0b18383d;font-size:20px;line-height:1}.sidebar-toggle:hover{background:#365080}.assignment-focus{outline:2px solid var(--blue);outline-offset:2px;background:var(--blue2)!important}
@media(min-width:701px){
  body:not([data-app-theme="sunset"]) .app.nav-collapsed{grid-template-columns:78px minmax(0,1fr)}
  body:not([data-app-theme="sunset"]) .app.nav-collapsed aside{padding-left:10px;padding-right:10px}
  body:not([data-app-theme="sunset"]) .app.nav-collapsed .brand{justify-content:center;padding-left:0;padding-right:0}
  body:not([data-app-theme="sunset"]) .app.nav-collapsed .brand-copy,body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav-label,body:not([data-app-theme="sunset"]) .app.nav-collapsed .aside-bottom{display:none}
  body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav button{justify-content:center;font-size:0;padding-left:8px;padding-right:8px}
  body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav .ico{width:auto;font-size:18px}
}
body[data-app-theme="sunset"] .sidebar-toggle{display:none}
@media(max-width:700px){aside{position:fixed}.sidebar-toggle{display:none}.app.nav-collapsed{display:block}}
.supply-assignment-warehouses{display:grid;gap:7px;margin-top:9px}.supply-assignment-warehouses>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 10px;border:1px solid rgba(34,77,119,.14);border-radius:10px;background:rgba(255,255,255,.58)}.supply-assignment-warehouses span{text-align:right;color:var(--muted)}
.assignment-product-focus{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.assignment-product-focus strong,.assignment-product-focus span{display:block}.assignment-product-focus span{margin-top:3px;font-size:11px}@media(max-width:620px){.assignment-product-focus{align-items:flex-start;flex-direction:column}.assignment-product-focus .btn{width:100%}}
.product-history-launch{margin-top:17px;padding:15px 16px;border:1px solid #d5def1;border-radius:15px;background:linear-gradient(115deg,#eef3ff,#f2f8f6);display:flex;align-items:center;justify-content:space-between;gap:16px}.product-history-launch>div{display:flex;align-items:center;gap:12px}.product-history-launch p{margin:3px 0 0;color:var(--muted);font-size:11px}.history-launch-icon{width:40px;height:40px;display:grid;place-items:center;flex:none;border-radius:12px;background:#dce6ff;color:#3e5dc4;font-size:19px}.product-history-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:2px 0 16px;border-bottom:1px solid var(--line)}.product-history-hero h3{margin:0 0 4px;font-size:20px}.product-history-hero .product-cell>div>span{color:var(--muted);font-size:11px}.product-history-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}.product-history-stats>div{position:relative;padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.product-history-stats>div>span{position:absolute;right:12px;top:11px;width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:var(--blue2);color:var(--blue)}.product-history-stats b{display:block;font-size:22px;line-height:1.15}.product-history-stats small{display:block;margin-top:4px;color:var(--muted)}.current-holder-panel,.product-history-movements{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:15px;background:var(--panel)}.product-history-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}.product-history-section-head h3{margin:0;font-size:15px}.product-history-section-head p{margin:3px 0 0;color:var(--muted);font-size:11px}.current-holder-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.current-holder-list article{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid #dbe4f1;border-radius:12px;background:#f6f8fc}.current-holder-list p,.current-holder-list small{display:block;margin:2px 0 0;color:var(--muted);font-size:10px}.history-clear-state{display:flex;align-items:center;gap:11px;padding:12px;border-radius:12px;background:var(--greenbg);color:var(--green)}.history-clear-state>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fff}.history-clear-state p{margin:2px 0 0;font-size:10px}.product-history-toolbar{display:flex;gap:9px;align-items:center;margin-bottom:13px}.product-history-toolbar .search{max-width:none}.product-history-events{display:grid;gap:10px}.product-history-event{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;padding:12px;border:1px solid #dfe5ef;border-radius:14px;background:#fbfcfe}.product-history-event:nth-child(even){background:#f5f7fb}.product-history-marker{position:relative}.product-history-marker:after{content:'';position:absolute;left:20px;top:38px;bottom:-22px;width:2px;background:#e1e6ef}.product-history-event:last-child .product-history-marker:after{display:none}.product-history-marker>span{position:relative;z-index:1;width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#e8edff;color:#4c63cb;font-size:17px}.product-history-event.kind-assign .product-history-marker>span{background:#f1e8ff;color:#7d43b2}.product-history-event.kind-consume .product-history-marker>span{background:#fff0df;color:#ad640f}.product-history-event.kind-return .product-history-marker>span{background:#e6f5ee;color:#18775a}.product-history-event.kind-service .product-history-marker>span{background:#ffe9e9;color:#b6424b}.product-history-event-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.product-history-event-head strong{font-size:13px}.product-history-event-head p{margin:3px 0 0;color:#506079;font-size:11px}.product-history-event-head time{color:#7c899c;font-size:10px;white-space:nowrap}.product-history-explanation{margin-top:8px;padding:8px 10px;border-radius:9px;background:#eef2f7;color:#5f6d80;font-size:10px}.product-history-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.product-history-meta span{padding:5px 7px;border-radius:8px;background:#edf4f2;color:#376c60;font-size:10px}.product-history-meta b{margin-right:4px;color:#25564c}.product-history-event[hidden]{display:none!important}
@media(max-width:720px){.product-history-launch,.product-history-hero,.product-history-section-head{align-items:flex-start;flex-direction:column}.product-history-launch .btn,.product-history-hero .btn,.product-history-section-head .btn{width:100%}.product-history-stats{grid-template-columns:1fr 1fr}.current-holder-list{grid-template-columns:1fr}.product-history-toolbar{align-items:stretch;flex-direction:column}.product-history-toolbar .field-control{width:100%;max-width:none}.product-history-event-head{flex-direction:column;gap:4px}.product-history-event-head time{white-space:normal}.product-history-meta{display:grid;grid-template-columns:1fr}.product-history-meta span{display:block}}
.category-single-filter{position:relative;min-width:210px}.category-single-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;white-space:nowrap}.category-single-trigger span{max-width:190px;overflow:hidden;text-overflow:ellipsis}.category-single-trigger.active{border-color:#9cace7;background:var(--blue2);color:var(--blue);font-weight:650}.category-single-trigger b{color:var(--muted);font-size:15px}.category-single-menu{position:absolute;z-index:18;top:calc(100% + 7px);left:0;width:min(300px,calc(100vw - 36px));max-height:420px;padding:8px;border:1px solid #d9e0ec;border-radius:14px;background:var(--panel);box-shadow:0 18px 48px #17243b2e;overflow:auto}.category-step{display:grid;gap:3px;animation:categoryStepIn .14s ease-out}.category-step-head{display:grid;gap:2px;padding:8px 10px 10px}.category-step-head b{font-size:12px}.category-step-head small{color:var(--muted);font-size:9px}.category-step-option,.category-step-back{width:100%;min-height:39px;border:0;border-radius:9px;background:transparent;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;text-align:left}.category-step-option:hover,.category-step-back:hover{background:var(--bg)}.category-step-option.selected{background:var(--blue2);color:var(--blue);font-weight:650}.category-step-option>b{color:var(--blue);font-size:16px}.category-step-child{padding-left:19px}.category-step-back{justify-content:flex-start;color:var(--blue);font-size:11px;font-weight:650;border-bottom:1px solid var(--line);border-radius:8px 8px 0 0}.category-step-empty{padding:18px 10px;text-align:center;color:var(--muted);font-size:11px}@keyframes categoryStepIn{from{opacity:0;transform:translateX(5px)}to{opacity:1;transform:translateX(0)}}@media(max-width:760px){.category-single-filter{width:100%;min-width:0}.category-single-trigger span{max-width:none}.category-single-menu{position:fixed;left:12px;right:12px;top:auto;width:auto;max-height:min(68vh,480px)}}
.public-product-back{position:fixed;inset:0;z-index:100;background:radial-gradient(circle at 12% 18%,#5b72f43d,transparent 34%),radial-gradient(circle at 86% 82%,#2b9c9138,transparent 34%),#17243b;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:32px 18px;display:grid;place-items:center}.public-product-card{width:min(920px,100%);max-width:100%;background:#edf1f8;border:1px solid #ffffff52;border-radius:24px;box-shadow:0 30px 90px #08112680;overflow:hidden}.public-product-card>header{padding:25px 28px;background:linear-gradient(125deg,#5b72f4,#7658d8 58%,#2b9c91);color:#fff;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.public-product-card>header>div{min-width:0}.public-product-card h1{margin:4px 0;font-size:clamp(24px,4vw,36px);line-height:1.13;overflow-wrap:anywhere}.public-product-card header p{margin:0;color:#ffffffc9}.public-product-kicker{font-size:11px;font-weight:800;letter-spacing:.13em;color:#ffffffbd}.public-product-main{padding:25px 28px;display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:24px}.public-product-photo{min-height:230px;border-radius:18px;overflow:hidden;background:#dfe5ef;border:1px solid #d2d9e7;display:grid;place-items:center}.public-product-photo img{display:block;width:100%;height:100%;max-height:310px;object-fit:cover}.public-product-photo-empty{font-size:64px;color:#8794aa}.public-product-info{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.public-product-field{padding:14px 15px;background:#fff;border:1px solid #d8deea;border-radius:13px;min-width:0}.public-product-field span{display:block;font-size:10px;font-weight:800;letter-spacing:.06em;color:#778399;text-transform:uppercase;margin-bottom:5px}.public-product-field b{display:block;color:#202a3c;overflow-wrap:anywhere}.public-product-login,.public-product-access{margin:0 28px 25px;padding:20px;border-radius:17px;background:#fff;border:1px solid #d8deea;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}.public-product-login h2,.public-product-login p,.public-product-login .login-error{grid-column:1/-1}.public-product-login h2{margin:0}.public-product-login p,.public-product-access p{margin:0;color:#6f7b90}.public-product-login .field{min-width:0;padding:10px;background:#f7f9fc;border:1px solid #dce2ed;border-radius:12px}.public-product-login .field input{width:100%;max-width:100%;box-sizing:border-box}.public-product-login .btn,.public-product-access .btn{justify-content:center}.public-product-access{grid-template-columns:minmax(0,1fr) auto;align-items:center}.public-product-access.is-warning{border-color:#e9c78b;background:#fff9ed}.public-product-card>footer{padding:15px 28px;background:#e4e9f2;border-top:1px solid #d4dbe7;color:#68758a;font-size:12px;text-align:center}
@media(max-width:650px){
  .public-product-back{display:block;padding:0;overflow-x:hidden;background:#edf1f8}
  .public-product-card{width:100%;min-height:100dvh;border:0;border-radius:0;box-shadow:none}
  .public-product-card>header{padding:calc(19px + env(safe-area-inset-top)) max(17px,env(safe-area-inset-right)) 19px max(17px,env(safe-area-inset-left));flex-direction:column;gap:12px}
  .public-product-card>header .pill{align-self:flex-start}.public-product-card h1{font-size:clamp(23px,7.5vw,31px)}
  .public-product-main{padding:17px max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left));grid-template-columns:1fr;gap:14px}
  .public-product-photo{width:100%;min-height:0;max-height:230px;aspect-ratio:16/10;border-radius:15px}.public-product-photo img{max-height:none}
  .public-product-info{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.public-product-field{padding:11px 12px;border-radius:11px}.public-product-field span{font-size:8px}.public-product-field b{font-size:12px;line-height:1.35}
  .public-product-login,.public-product-access{margin:0 max(16px,env(safe-area-inset-right)) 16px max(16px,env(safe-area-inset-left));padding:16px;grid-template-columns:1fr;gap:10px;border-radius:15px}
  .public-product-login h2,.public-product-login p,.public-product-login .login-error{grid-column:1}.public-product-login h2{font-size:19px}.public-product-login p,.public-product-access p{font-size:11px;line-height:1.45}
  .public-product-login .field{padding:9px}.public-product-login .field input{min-height:44px;font-size:16px}.public-product-login .btn,.public-product-access .btn{width:100%;min-height:45px}
  .public-product-card>footer{padding:14px max(18px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));font-size:10px;line-height:1.45}
}
@media(max-width:350px){.public-product-info{grid-template-columns:1fr}.public-product-photo{aspect-ratio:4/3}.public-product-card h1{font-size:22px}}

/* Mobile product detail */
@media(max-width:700px){
  .product-detail-back{padding:0;background:#17243bd9;overscroll-behavior:contain}
  .product-detail-modal{width:100%;max-width:none;min-height:100dvh;max-height:none;margin:0;border-radius:0;background:#eef2f8;box-shadow:none;overflow-x:hidden}
  .product-detail-modal .modal-head{min-height:58px;padding:calc(11px + env(safe-area-inset-top)) 15px 11px;background:#fff;border-bottom-color:#dce3ee;box-shadow:0 4px 14px #293b5b0b}
  .product-detail-modal .modal-head h2{font-size:16px;letter-spacing:-.2px}
  .product-detail-modal .modal-head h2:before{width:31px;height:31px;border-radius:9px;font-size:14px}
  .product-detail-modal .close{width:36px;height:36px;border:1px solid #dce3ee;border-radius:11px;background:#f3f6fa}
  .product-detail-modal .modal-body{padding:12px 12px calc(22px + env(safe-area-inset-bottom))!important;background:#eef2f8!important}
  .product-detail-modal .detail-top{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:13px!important;border:1px solid #d7e0ee!important;border-radius:17px!important;background:linear-gradient(135deg,#fff,#f5f8fd)!important;box-shadow:0 8px 22px #30476d0d}
  .product-detail-modal .detail-hero{min-width:0;display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;align-items:center}
  .product-detail-modal .detail-photo{width:82px;height:82px;border-radius:14px;border:2px solid #fff;box-shadow:0 6px 16px #273c5d20}
  .product-detail-modal .detail-hero>div{min-width:0}
  .product-detail-modal .detail-top h3{margin:0 0 3px;font-size:17px;line-height:1.25;overflow-wrap:anywhere}
  .product-detail-modal .detail-hero .sub{margin-top:0;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
  .product-detail-modal .asset-status{gap:5px;margin-top:8px}
  .product-detail-modal .asset-status .pill{padding:4px 7px;font-size:9px}
  .product-detail-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
  .product-detail-actions .btn{width:100%;min-width:0;margin:0!important;padding:8px 6px;font-size:10px;white-space:normal}
  .product-detail-modal .lock-note,.product-detail-modal .notice,.product-detail-modal .status-note{margin:10px 0 0;padding:11px 12px;border-radius:13px;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
  .product-detail-modal .supply-assignment-warehouses{gap:6px;margin-top:8px}
  .product-detail-modal .supply-assignment-warehouses>div{padding:8px;border-radius:9px}
  .product-detail-modal .detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 0 0;border:0}
  .product-detail-modal .detail-grid>div{min-width:0;min-height:69px;padding:10px!important;border:1px solid #dce3ee!important;border-radius:13px!important;background:#fff!important;box-shadow:0 4px 12px #30476d08;display:flex;flex-direction:column;justify-content:center}
  .product-detail-modal .detail-grid>div:nth-child(4n+2){background:#f3f7ff!important}
  .product-detail-modal .detail-grid>div:nth-child(4n+3){background:#f2f8f6!important}
  .product-detail-modal .detail-grid small{margin-bottom:4px;color:#71809a;font-size:8px;font-weight:850;letter-spacing:.04em}
  .product-detail-modal .detail-grid b{font-size:11px;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}
  .product-stock-summary{margin-top:10px!important;padding:13px!important;border:1px solid #dce3ee!important;border-radius:16px!important;background:#fff!important}
  .product-stock-summary .panel-head{align-items:center;margin:0 0 7px!important}
  .product-stock-summary .panel-head b{font-size:11px!important}
  .product-stock-summary .panel-head .btn{width:auto;flex:none}
  .product-stock-summary .settings-row{min-height:43px;padding:9px 0;background:transparent;flex-direction:row;align-items:center}
  .product-stock-summary .settings-row span{min-width:0;font-size:10px;overflow-wrap:anywhere}
  .product-stock-summary .settings-row b{flex:none;font-size:10px;text-align:right}
  .product-detail-modal .product-history-launch{margin-top:10px;padding:12px;border-radius:15px;gap:10px;background:linear-gradient(125deg,#f3f6ff,#eef8f4)}
  .product-detail-modal .product-history-launch>div{width:100%;align-items:flex-start;gap:9px}
  .product-detail-modal .history-launch-icon{width:34px;height:34px;border-radius:10px;font-size:16px}
  .product-detail-modal .product-history-launch b{font-size:11px}
  .product-detail-modal .product-history-launch p{font-size:9px;line-height:1.45}
  .product-detail-modal .product-history-launch .btn{width:100%;min-height:39px}
  .product-detail-modal .product-qr-card{grid-template-columns:104px minmax(0,1fr);gap:11px;margin-top:10px;padding:12px;border-radius:15px;align-items:start}
  .product-detail-modal .product-qr-visual{width:104px;padding:7px;border-radius:12px}
  .product-detail-modal .product-qr-copy{text-align:left}
  .product-detail-modal .product-qr-copy h3{font-size:14px}
  .product-detail-modal .product-qr-copy p{margin:4px 0 7px;font-size:9px;line-height:1.4}
  .product-detail-modal .product-qr-copy code{padding:6px 7px;font-size:7px}
  .product-detail-modal .product-qr-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
  .product-detail-modal .product-qr-actions .btn{width:100%;min-width:0;padding:7px 5px;font-size:9px}
}
@media(max-width:370px){
  .product-detail-modal .detail-hero{grid-template-columns:68px minmax(0,1fr)}
  .product-detail-modal .detail-photo{width:68px;height:68px}
  .product-detail-modal .detail-grid{grid-template-columns:1fr}
  .product-detail-modal .detail-grid>div{min-height:0}
  .product-detail-modal .product-qr-card{grid-template-columns:86px minmax(0,1fr)}
  .product-detail-modal .product-qr-visual{width:86px}
}
@media(max-width:700px){
  .product-detail-modal .modal-body{background:linear-gradient(155deg,#e8eefc 0%,#f1edf9 47%,#e8f4f1 100%)!important}
  .product-detail-modal .detail-top{position:relative;overflow:hidden;border-color:#cdd8f2!important;background:linear-gradient(135deg,#e8efff 0%,#f0eaff 52%,#e3f5f0 100%)!important}
  .product-detail-modal .detail-top:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#5274f5,#8d5bd7,#22a58a)}
  .product-detail-modal .detail-photo{border-color:#ffffffd9;box-shadow:0 8px 22px #566ba336}
  .product-detail-modal .detail-grid>div{border-color:#cad8f5!important;background:linear-gradient(145deg,#f8faff,#e7efff)!important}
  .product-detail-modal .detail-grid>div:nth-child(4n+2){border-color:#d9cbf0!important;background:linear-gradient(145deg,#fbf9ff,#eee5fb)!important}
  .product-detail-modal .detail-grid>div:nth-child(4n+3){border-color:#bee2d8!important;background:linear-gradient(145deg,#f7fffc,#e1f4ee)!important}
  .product-detail-modal .detail-grid>div:nth-child(4n+4){border-color:#efd6aa!important;background:linear-gradient(145deg,#fffcf5,#faecd3)!important}
  .product-detail-modal .detail-grid small{color:#667697}
  .product-detail-modal .detail-grid>div:nth-child(4n+2) small{color:#745b96}
  .product-detail-modal .detail-grid>div:nth-child(4n+3) small{color:#407968}
  .product-detail-modal .detail-grid>div:nth-child(4n+4) small{color:#8b6b35}
  .product-stock-summary{border-color:#bfd3ef!important;background:linear-gradient(135deg,#f8fbff,#e8f1ff)!important;box-shadow:0 7px 20px #40628c12}
  .product-stock-summary .panel-head b{color:#36547c}
  .product-stock-summary .settings-row{border-color:#cfddf0}
  .product-stock-summary .settings-row b{color:#315da3}
  .product-detail-modal .product-history-launch{border-color:#d7c9ef;background:linear-gradient(125deg,#f0eaff,#faedf6 52%,#e7f5f0)}
  .product-detail-modal .history-launch-icon{background:linear-gradient(135deg,#765ee5,#a45fb5);color:#fff;box-shadow:0 6px 14px #7157bd30}
  .product-detail-modal .product-qr-card{border-color:#bddfd6;background:linear-gradient(135deg,#e7f6f1 0%,#edf1ff 52%,#f4eafa 100%)}
  .product-detail-modal .product-qr-kicker{color:#6b54c8}
  .product-detail-modal .product-qr-visual{border-color:#c8d9ee;box-shadow:0 9px 24px #3c557526}
  .product-detail-modal .notice{border-color:#d6c8ef;background:linear-gradient(135deg,#f7f1ff,#fdf7ff)}
  .product-detail-modal .lock-note{border-color:#edcf97;background:linear-gradient(135deg,#fff8e8,#fff0d5)}
  body[data-app-theme="violet"] .product-detail-modal .modal-body{background:linear-gradient(155deg,#121722,#1c192b 52%,#132522)!important}
  body[data-app-theme="violet"] .product-detail-modal .detail-top{border-color:#4b4268!important;background:linear-gradient(135deg,#242c43,#302541 55%,#183a35)!important}
  body[data-app-theme="violet"] .product-detail-modal .detail-grid>div,body[data-app-theme="violet"] .product-detail-modal .detail-grid>div:nth-child(n){border-color:#3d465b!important;background:linear-gradient(145deg,#212634,#29233a)!important}
  body[data-app-theme="violet"] .product-detail-modal .detail-grid small{color:#aeb9d0}
  body[data-app-theme="violet"] .product-stock-summary{border-color:#3e5269!important;background:linear-gradient(135deg,#1d2633,#202b3d)!important}
  body[data-app-theme="violet"] .product-stock-summary .panel-head b,body[data-app-theme="violet"] .product-stock-summary .settings-row b{color:#aebeff}
}
.direct-service-action{border-color:#e7c8ad;background:linear-gradient(135deg,#fffaf5,#fff3e8)}.direct-service-action:hover{border-color:#d69a68;background:#fff0e1}.direct-service-action .action-symbol{background:#ffe4cb;color:#a84d16}.direct-service-product{margin:0 0 16px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#f7f9fd}.direct-service-product>div{display:grid;gap:5px}.locked-field{min-height:43px;display:flex;align-items:center;padding:10px 12px;border:1px solid #d8deea;border-radius:10px;background:#edf1f7;color:#42506a;font-weight:700}
.procurement-field{padding:12px;border:1px solid #d9e1ef;border-radius:12px;background:linear-gradient(145deg,#f9fbff,#f1f5fb)}.procurement-field label{display:flex;align-items:center;justify-content:space-between;gap:8px}.procurement-field label span{font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#7d8aa0;background:#e5ebf5;border-radius:999px;padding:3px 7px}.procurement-detail{background:linear-gradient(145deg,#fff,#f6f8fc)!important;border-color:#dce3ef!important}
.product-details-toggle{min-height:38px;border-radius:10px;white-space:nowrap}.product-details-toggle.active{background:#24324a;color:#fff;border-color:#24324a}.compact-stock-status{min-height:26px;display:flex;align-items:center}@media(max-width:700px){.page-head .actions .product-details-toggle{width:auto!important}}
.product-qr-card{position:relative;overflow:hidden;margin-top:17px;padding:17px;border:1px solid #d2dcef;border-radius:17px;background:linear-gradient(135deg,#f5f8ff 0%,#edf6f3 100%);display:grid;grid-template-columns:174px minmax(0,1fr);gap:18px;align-items:center}.product-qr-card:after{content:"";position:absolute;right:-70px;top:-90px;width:210px;height:210px;border-radius:50%;background:#536ee20d;pointer-events:none}.product-qr-visual{position:relative;z-index:1;display:block;padding:10px;border:1px solid #d5ddeb;border-radius:15px;background:#fff;box-shadow:0 10px 28px #172a4c18;transition:.16s}.product-qr-visual:hover{transform:translateY(-2px);box-shadow:0 14px 34px #172a4c24}.product-qr-svg{display:block;width:100%;height:auto;aspect-ratio:1}.product-qr-copy{position:relative;z-index:1;min-width:0}.product-qr-kicker{display:block;margin-bottom:4px;color:#536ee2;font-size:9px;font-weight:850;letter-spacing:.14em}.product-qr-copy h3{margin:0;color:var(--ink);font-size:18px}.product-qr-copy p{max-width:560px;margin:6px 0 10px;color:var(--muted);font-size:11px;line-height:1.55}.product-qr-copy code{display:block;overflow:hidden;padding:8px 10px;border:1px solid #dbe3ef;border-radius:9px;background:#ffffffa6;color:#536178;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.product-qr-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.product-qr-error{min-height:130px;display:grid;place-items:center;color:var(--muted);font-size:11px;text-align:center}
body[data-app-theme="violet"] .product-qr-card{background:linear-gradient(135deg,#202533,#24213a);border-color:#3a4051}body[data-app-theme="violet"] .product-qr-copy code{background:#171a22;border-color:#3a4051;color:#bac3d5}
@media(max-width:620px){.product-qr-card{grid-template-columns:132px minmax(0,1fr);gap:13px;padding:13px}.product-qr-copy p{font-size:10px}.product-qr-actions .btn{flex:1;justify-content:center}}
@media(max-width:460px){.product-qr-card{grid-template-columns:1fr}.product-qr-visual{width:min(210px,100%);margin:auto}.product-qr-copy{text-align:center}.product-qr-actions{justify-content:center}.product-qr-copy code{text-align:left}}

/* Live warehouse counting */
.count-empty-panel{min-height:270px;padding:34px;border:1px solid #d8e1ee;border-radius:20px;background:linear-gradient(135deg,#eef3ff,#f2f8f6);display:flex;align-items:center;justify-content:center;gap:24px;text-align:left}.count-empty-icon{width:92px;height:92px;display:grid;place-items:center;flex:none;border-radius:26px;background:#fff;color:var(--blue);font-size:38px;box-shadow:0 16px 38px #23385e17}.count-empty-panel h2{margin:0 0 7px;font-size:22px}.count-empty-panel p{max-width:570px;margin:0 0 16px;color:var(--muted);line-height:1.6}.count-live-hero{position:relative;overflow:hidden;margin-bottom:14px;padding:22px 24px;border-radius:19px;background:linear-gradient(125deg,#1d2b50,#314a86 55%,#287d75);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 16px 40px #17284a26}.count-live-hero:after{content:"";position:absolute;width:250px;height:250px;right:-75px;top:-95px;border-radius:50%;background:#ffffff0b}.count-live-copy{position:relative;z-index:1}.count-live-copy h2{margin:8px 0 4px;font-size:24px}.count-live-copy p{margin:0;color:#dce6ff;font-size:11px}.count-live-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid #ffffff2e;border-radius:999px;background:#ffffff14;font-size:9px;font-weight:850;letter-spacing:.1em}.count-live-badge i{width:7px;height:7px;border-radius:50%;background:#53e4ae;box-shadow:0 0 0 5px #53e4ae20;animation:countPulse 1.5s infinite}.count-progress-ring{--count-progress:0deg;position:relative;z-index:1;width:104px;height:104px;display:grid;place-items:center;flex:none;border-radius:50%;background:conic-gradient(#66e3bd var(--count-progress),#ffffff20 0)}.count-progress-ring:before{content:"";position:absolute;inset:9px;border-radius:50%;background:#28416f}.count-progress-ring b,.count-progress-ring span{position:relative;z-index:1}.count-progress-ring b{align-self:end;font-size:23px;line-height:1}.count-progress-ring span{align-self:start;color:#d9e6ff;font-size:8px}.count-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.count-stats>div{padding:14px 15px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.count-stats span,.count-stats small{display:block;color:var(--muted);font-size:9px}.count-stats b{display:block;margin:3px 0;font-size:23px}.count-stats .count-user-stat{overflow:hidden;font-size:13px;line-height:26px;text-overflow:ellipsis;white-space:nowrap}.count-scan-panel{margin-bottom:14px;padding:18px;border:1px solid #cfdcf1;border-radius:17px;background:linear-gradient(120deg,#eef3ff,#f4f8ff)}.count-scan-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.count-scan-head h2{margin:0;font-size:16px}.count-scan-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.count-camera-button{min-height:43px;white-space:nowrap}.count-manual{display:flex;gap:8px;margin-top:14px}.count-manual input{max-width:none;flex:1}.count-results-panel .panel-head{align-items:center}.count-results-panel .panel-head>div p{margin:3px 0 0}.count-results-panel .search{max-width:260px}.count-table .product-cell{min-width:220px}.count-quantity{display:flex;align-items:center;gap:5px;min-width:132px}.count-quantity button{width:31px;height:31px;border:1px solid #cfdaeb;border-radius:9px;background:#f4f7fc;color:#34445f;font-size:15px}.count-quantity input{width:58px;height:31px;border:1px solid #cfdaeb;border-radius:9px;background:#fff;color:var(--ink);text-align:center;font:700 12px inherit}.count-quantity input::-webkit-inner-spin-button{display:none}.count-missing-panel{margin-top:14px}.count-missing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.count-missing-grid>div{min-width:0;padding:11px;border:1px solid #e0e6ef;border-radius:12px;background:#f7f9fc}.count-missing-grid span{float:right;color:#8997ab}.count-missing-grid b,.count-missing-grid small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count-missing-grid b{font-size:11px}.count-missing-grid small{margin-top:3px;color:var(--muted);font-size:9px}.count-more{text-align:center;margin:12px 0 0}.count-history{margin-top:16px}.count-history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.count-history-grid>button{min-width:0;padding:13px;border:1px solid #dce3ee;border-radius:13px;background:#f8fafd;color:var(--ink);text-align:left}.count-history-grid>button:hover{border-color:#a9b9db;background:#f2f6ff}.count-history-grid b,.count-history-grid small,.count-history-grid em{display:block}.count-history-grid b{margin:8px 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count-history-grid small{color:var(--muted);font-size:9px}.count-history-grid em{margin-top:8px;color:#4e6280;font-size:9px;font-style:normal;font-weight:700}.count-history-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#e3f5ec;color:#167258;font-size:8px;font-weight:800;letter-spacing:.04em}.count-history-status.cancelled{background:#f2e9e9;color:#9c4a4a}.count-summary-head{padding:3px 0 15px;border-bottom:1px solid var(--line)}.count-summary-head h3{margin:9px 0 3px;font-size:21px}.count-summary-head p{margin:0;color:var(--muted);font-size:10px}
.count-scanner-back{position:fixed;inset:0;z-index:220;background:#08111df5;display:grid;place-items:center;padding:20px}.count-scanner{width:min(520px,100%);overflow:hidden;border:1px solid #ffffff20;border-radius:22px;background:#101b2b;color:#fff;box-shadow:0 28px 80px #0008}.count-scanner>header{padding:16px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.count-scanner>header span{color:#7ddfc0;font-size:8px;font-weight:850;letter-spacing:.13em}.count-scanner>header h2{margin:3px 0;font-size:19px}.count-scanner>header p{margin:0;color:#aabbd1;font-size:10px}.count-scanner>header button{width:36px;height:36px;border:1px solid #ffffff24;border-radius:11px;background:#ffffff0d;color:#fff;font-size:24px}.count-camera-stage{position:relative;overflow:hidden;aspect-ratio:4/3;background:#050a11}.count-camera-stage video{width:100%;height:100%;display:block;object-fit:cover}.count-camera-guide{position:absolute;inset:16%;pointer-events:none}.count-camera-guide i{position:absolute;width:38px;height:38px;border-color:#69e2bd;border-style:solid;filter:drop-shadow(0 0 6px #69e2bd80)}.count-camera-guide i:nth-child(1){left:0;top:0;border-width:3px 0 0 3px;border-radius:9px 0 0}.count-camera-guide i:nth-child(2){right:0;top:0;border-width:3px 3px 0 0;border-radius:0 9px 0 0}.count-camera-guide i:nth-child(3){right:0;bottom:0;border-width:0 3px 3px 0;border-radius:0 0 9px}.count-camera-guide i:nth-child(4){left:0;bottom:0;border-width:0 0 3px 3px;border-radius:0 0 0 9px}.count-camera-hint{position:absolute;left:50%;bottom:9%;transform:translateX(-50%);padding:7px 10px;border-radius:999px;background:#07101cc7;color:#dbe8f8;font-size:9px;white-space:nowrap}.count-scanner-feedback{margin:12px 14px 0;padding:11px 12px;border:1px solid #29435b;border-radius:11px;background:#17283b;color:#cfe1f2;font-size:10px;text-align:center}.count-scanner-feedback.success{border-color:#2f8068;background:#12382f;color:#91f0cf}.count-scanner-feedback.error{border-color:#9d434b;background:#421c23;color:#ffb7bd}.count-scanner-feedback.warning{border-color:#936a28;background:#3d2c13;color:#ffd487}.count-scanner-feedback.busy{border-color:#446eb1;background:#172c50;color:#bcd5ff}.count-scanner-manual{display:flex;gap:8px;padding:12px 14px 15px}.count-scanner-manual input{min-width:0;flex:1;border:1px solid #31445c;border-radius:10px;background:#0d1725;color:#fff;padding:10px 11px;font-size:12px}.count-scanner-manual button{border:0;border-radius:10px;background:#5e75ed;color:#fff;padding:0 14px;font-weight:750}
.count-active-switcher{margin-bottom:14px;padding:16px;border:1px solid var(--line);border-radius:17px;background:var(--panel)}.count-active-switcher .panel-head{margin-bottom:11px}.count-active-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.count-active-card{position:relative;min-width:0;padding:13px;border:1px solid #d9e1ed;border-radius:13px;background:#f7f9fc;color:var(--ink);text-align:left}.count-active-card:hover{border-color:#9aadd1}.count-active-card.active{border-color:#5978df;background:#eef2ff;box-shadow:0 0 0 2px #5978df1f}.count-active-card>span{display:block;color:#6a7c99;font-size:7px;font-weight:850;letter-spacing:.1em}.count-active-card>b,.count-active-card>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count-active-card>b{margin:5px 0 3px;font-size:12px}.count-active-card>small{color:var(--muted);font-size:8px}.count-active-card>i{display:block;height:5px;margin-top:10px;overflow:hidden;border-radius:999px;background:#dfe5ef}.count-active-card>i em{display:block;height:100%;border-radius:inherit;background:#617be2}.count-active-card>strong{position:absolute;right:13px;top:12px;color:#506683;font-size:9px}.count-counter-chips{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:12px}.count-counter-chips>span{margin-right:2px;color:#c9d8ee;font-size:8px}.count-counter-chips>b{padding:5px 8px;border:1px solid #ffffff26;border-radius:999px;background:#ffffff13;color:#fff;font-size:8px}.count-user-picker>label{display:flex;align-items:center;justify-content:space-between}.count-user-picker>label small{color:var(--muted);font-weight:500}.count-user-picker>.field-control{margin-bottom:9px}.count-user-grid{max-height:290px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:2px}.count-user-choice{position:relative;min-width:0;padding:10px;border:1px solid #dce3ed;border-radius:12px;background:#f8fafd;display:flex;align-items:center;gap:9px;cursor:pointer}.count-user-choice:hover{border-color:#9eafd0}.count-user-choice:has(input:checked){border-color:#5e77dc;background:#eef2ff;box-shadow:0 0 0 2px #5e77dc16}.count-user-choice input{position:absolute;opacity:0;pointer-events:none}.count-user-choice>span{width:30px;height:30px;display:grid;place-items:center;flex:none;border-radius:10px;background:#dce5f5;color:#405677;font-weight:850}.count-user-choice>div{min-width:0;flex:1}.count-user-choice b,.count-user-choice small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count-user-choice b{font-size:10px}.count-user-choice small{margin-top:2px;color:var(--muted);font-size:8px}.count-user-choice>i{width:20px;height:20px;display:grid;place-items:center;flex:none;border-radius:50%;background:#dfe5ed;color:#8996a9;font-size:9px;font-style:normal}.count-user-choice:has(input:checked)>i{background:#5875db;color:#fff}.count-scan-alert{position:absolute;left:50%;top:50%;z-index:5;width:min(88%,430px);padding:20px 18px;transform:translate(-50%,-46%) scale(.94);opacity:0;border:2px solid #ffffff56;border-radius:22px;background:#17283bf2;color:#fff;text-align:center;box-shadow:0 22px 70px #000a;pointer-events:none;transition:opacity .16s ease,transform .16s ease}.count-scan-alert.show{opacity:1;transform:translate(-50%,-50%) scale(1)}.count-scan-alert>span{width:58px;height:58px;margin:0 auto 12px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#17283b;font-size:34px;font-weight:900}.count-scan-alert>strong{display:block;font-size:20px;line-height:1.35}.count-scan-alert.success{background:#087158f2;border-color:#71e8c7}.count-scan-alert.success>span{color:#087158}.count-scan-alert.warning{background:#8a5a09f3;border-color:#ffd174}.count-scan-alert.warning>span{color:#8a5a09}.count-scan-alert.error{background:#9a2630f3;border-color:#ff9aa3}.count-scan-alert.error>span{color:#9a2630}
.count-manual-picker{margin-top:15px;padding-top:15px;border-top:1px solid #cfdaeb}.count-manual-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.count-manual-title b,.count-manual-title span{display:block}.count-manual-title b{font-size:12px}.count-manual-title span{margin-top:2px;color:var(--muted);font-size:9px}.count-manual-picker>.field-control{width:100%;max-width:none;margin-bottom:9px}.count-manual-list{max-height:280px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:2px}.count-manual-list>button{min-width:0;padding:9px;border:1px solid #d9e1ef;border-radius:12px;background:#fff;color:var(--ink);display:flex;align-items:center;gap:9px;text-align:left}.count-manual-list>button:hover{border-color:#8198d7;background:#f8faff}.count-manual-list>button>span{width:34px;height:34px;display:grid;place-items:center;flex:none;overflow:hidden;border-radius:9px;background:#e8edf7;color:#586b8a}.count-manual-list>button>span img{width:100%;height:100%;object-fit:cover}.count-manual-list>button>div{min-width:0;flex:1}.count-manual-list b,.count-manual-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count-manual-list b{font-size:10px}.count-manual-list small{margin-top:2px;color:var(--muted);font-size:8px}.count-manual-list em{padding:5px 7px;border-radius:8px;background:#e9edff;color:#4f65ca;font-size:8px;font-style:normal;font-weight:800;white-space:nowrap}.count-manual-list em.added{background:#e1f4eb;color:#16735a}.count-scanner-manual .count-list-return{width:100%;min-height:42px;border:1px solid #435a77;background:#172b42;color:#dceaff}.count-scanner-manual .count-list-return:hover{background:#203a57}
.count-warehouse-start{border-color:#c8d7f5;background:#eef3ff;color:#3c5cad}.count-warehouse-start:hover{border-color:#7f99df;background:#e5edff}.count-warehouse-start.active{border-color:#83cdb8;background:#e4f6ef;color:#167258}.count-fixed-warehouse{margin-bottom:13px;padding:12px 13px;border:1px solid #bfd1f2;border-radius:14px;background:linear-gradient(120deg,#e7eeff,#edf8f4);display:flex;align-items:center;gap:10px}.count-fixed-warehouse>span{width:36px;height:36px;display:grid;place-items:center;flex:none;border-radius:11px;background:#5975d8;color:#fff;font-size:17px}.count-fixed-warehouse>div{min-width:0;flex:1}.count-fixed-warehouse b,.count-fixed-warehouse small{display:block}.count-fixed-warehouse b{font-size:12px}.count-fixed-warehouse small{margin-top:2px;color:#617089;font-size:9px}.count-fixed-warehouse em{padding:5px 8px;border-radius:999px;background:#dff2ea;color:#1a715b;font-size:8px;font-style:normal;font-weight:800}.count-user-picker select:disabled,.count-user-picker input:disabled{opacity:.8}.creative-modal select:disabled{cursor:not-allowed;background:#eef1f6;color:#59677c}
body[data-app-theme="violet"] .count-empty-panel,body[data-app-theme="violet"] .count-scan-panel,body[data-app-theme="violet"] .count-missing-grid>div,body[data-app-theme="violet"] .count-history-grid>button{background:#202430;border-color:#3a4051;color:var(--ink)}body[data-app-theme="violet"] .count-live-hero{background:linear-gradient(125deg,#1d2435,#2a2347 58%,#24463f)}body[data-app-theme="violet"] .count-progress-ring:before{background:#292540}body[data-app-theme="violet"] .count-quantity button,body[data-app-theme="violet"] .count-quantity input{background:#171a22;border-color:#3a4051;color:var(--ink)}
@keyframes countPulse{50%{opacity:.45;transform:scale(.82)}}
@media(max-width:800px){.count-missing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.count-history-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.count-empty-panel{min-height:0;padding:24px 18px;align-items:flex-start;flex-direction:column}.count-empty-icon{width:72px;height:72px;border-radius:20px;font-size:30px}.count-live-hero{padding:18px}.count-live-copy h2{font-size:20px}.count-progress-ring{width:86px;height:86px}.count-progress-ring b{font-size:19px}.count-stats{grid-template-columns:1fr 1fr}.count-scan-head{align-items:stretch;flex-direction:column}.count-camera-button{width:100%;justify-content:center}.count-manual{align-items:stretch;flex-direction:column}.count-manual .btn{width:100%;justify-content:center}.count-results-panel .panel-head{align-items:stretch;flex-direction:column}.count-results-panel .search{width:100%;max-width:none}.count-history-grid{grid-template-columns:1fr}.count-table .product-cell{min-width:0}.count-scanner-back{padding:0;place-items:stretch}.count-scanner{width:100%;min-height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column}.count-scanner>header{padding:calc(15px + env(safe-area-inset-top)) 16px 14px}.count-camera-stage{aspect-ratio:auto;min-height:0;flex:1}.count-scanner-feedback{font-size:11px}.count-scanner-manual{padding-bottom:calc(15px + env(safe-area-inset-bottom))}.count-scanner-manual input{font-size:16px}}
@media(max-width:650px){.count-active-grid,.count-user-grid,.count-manual-list{grid-template-columns:1fr}.count-active-card{padding:14px}.count-counter-chips{margin-top:10px}.count-scan-alert{width:90%;padding:22px 16px}.count-scan-alert>strong{font-size:19px}.count-scan-alert>span{width:62px;height:62px;font-size:36px}.count-user-grid{max-height:38vh}.count-manual-list{max-height:42vh}}
@media(max-width:430px){.count-live-hero{align-items:flex-start}.count-progress-ring{width:76px;height:76px}.count-progress-ring span{display:none}.count-progress-ring b{align-self:center}.count-missing-grid{grid-template-columns:1fr}}

/* v62: mobile viewport stability and product icon actions */
.return-warehouse-lock,.return-product-lock{padding:7px 9px;border:1px solid #c7d8ee;border-radius:9px;background:#eef4fb;color:#40536f}.return-warehouse-lock b{color:#29466b}.return-product-lock{border-color:#d4d9ef;background:#f1f2fb;color:#56617a}.product-action-icons{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap}.page-head .actions.product-action-icons .product-icon-action{position:relative;width:40px!important;height:40px!important;min-width:40px;padding:0!important;display:inline-grid;place-items:center;border-radius:11px;flex:none}.product-icon-action svg{width:19px;height:19px;pointer-events:none}.product-icon-action:focus-visible{outline:3px solid #315efb2b;outline-offset:2px}.product-icon-action[data-tooltip]:after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 8px);z-index:35;max-width:210px;padding:6px 8px;transform:translate(-50%,4px);opacity:0;pointer-events:none;border-radius:7px;background:#17243b;color:#fff;font-size:9px;font-weight:700;line-height:1.25;white-space:nowrap;box-shadow:0 8px 22px #10203835;transition:.14s}.product-icon-action[data-tooltip]:hover:after,.product-icon-action[data-tooltip]:focus-visible:after{transform:translate(-50%,0);opacity:1}.product-export-excel{border-color:#a8d7c2!important;background:#edf9f3!important;color:#167253!important}.product-export-pdf{border-color:#efb8bf!important;background:#fff1f2!important;color:#b42335!important}.product-export-print{border-color:#c9d3e4!important;background:#f4f7fb!important;color:#40536f!important}.product-stock-entry-action{border-color:#e8bf62!important;background:linear-gradient(145deg,#fff7d8,#ffe6a4)!important;color:#9a6200!important;box-shadow:0 5px 14px #c68a1425!important}.product-stock-entry-action:hover{border-color:#d9a83e!important;background:linear-gradient(145deg,#fff2c0,#ffdc82)!important;color:#7f4f00!important}.product-details-toggle.product-icon-action.active{background:#24324a!important;color:#fff!important}.page-head .actions.product-action-icons .btn.primary.product-icon-action{background:var(--blue);color:#fff;border-color:var(--blue)}
@media(max-width:700px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:0;position:relative;touch-action:pan-y}.app,.main,.content,#content,.page-head,.panel,.toolbar,.table-wrap,.modal,.modal-body,.modal-head,.modal-foot{min-width:0;max-width:100%}.content{overflow-x:hidden}.topbar{min-width:0;max-width:100vw}.field-control,input,select,textarea{min-width:0;max-width:100%;font-size:16px!important}img,svg,canvas,video{max-width:100%;height:auto}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-width:0;overflow:hidden}.modal-back{width:100%;max-width:100vw;overflow-x:hidden}.page-head .actions.product-action-icons{width:100%;display:flex!important;grid-template-columns:none;justify-content:flex-start;gap:6px}.page-head .actions.product-action-icons .product-icon-action{width:38px!important;height:38px!important;min-width:38px}.product-icon-action[data-tooltip]:after{display:none}.category-single-menu{max-width:calc(100vw - 24px)}.product-history-stats,.count-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v65: polished enterprise sidebar */
.app{grid-template-columns:264px minmax(0,1fr)}aside{--side-text:#aebbd0;--side-strong:#f7f9ff;--side-border:#ffffff13;--side-hover:#ffffff0a;--side-active:#ffffff12;--side-accent:#8195ff;position:relative;padding:17px 13px 15px;gap:12px;overflow-y:auto;background:radial-gradient(circle at 12% -4%,color-mix(in srgb,var(--blue) 35%,transparent),transparent 27%),linear-gradient(180deg,color-mix(in srgb,var(--nav) 94%,#091326),var(--nav));border-right:1px solid var(--side-border);box-shadow:10px 0 36px #10182b10}.brand{min-height:68px;padding:8px 9px 11px;gap:11px;border-bottom:1px solid var(--side-border)}.brand-mark{width:42px;height:42px;flex:none;border:1px solid #ffffff1f;border-radius:13px;background:linear-gradient(145deg,#7287ff,#7458dd);box-shadow:0 9px 24px #111a3a45;display:grid;place-items:center}.brand-mark svg{width:23px;height:23px;stroke:#fff;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.brand-copy{min-width:0}.brand strong{color:var(--side-strong);font-size:14px;font-weight:750;letter-spacing:-.1px}.brand span{display:block;margin-top:3px;color:var(--side-text);font-size:9px;line-height:1.3;white-space:nowrap}.nav-shell{min-width:0}.nav-label{padding:5px 10px 7px;color:color-mix(in srgb,var(--side-text) 75%,transparent);font-size:8px;font-weight:800;letter-spacing:.14em}.nav{display:grid;gap:10px}.nav-section{display:grid;gap:3px}.nav-section-label{padding:5px 10px 3px;color:color-mix(in srgb,var(--side-text) 58%,transparent);font-size:7px;font-weight:850;letter-spacing:.14em}.nav button{position:relative;min-height:42px;width:100%;border:1px solid transparent;border-radius:11px;padding:5px 9px;color:var(--side-text);background:transparent;display:flex;align-items:center;gap:9px;text-align:left;font-size:12.5px;font-weight:560;transition:background .16s,border-color .16s,color .16s,transform .16s}.nav button:hover{background:var(--side-hover);border-color:var(--side-border);color:var(--side-strong);transform:translateX(1px)}.nav button.active{background:var(--side-active);border-color:#ffffff18;color:var(--side-strong);font-weight:700;box-shadow:0 7px 20px #07102820}.nav button.active:before{content:"";position:absolute;left:-1px;top:9px;bottom:9px;width:3px;border-radius:0 5px 5px 0;background:var(--side-accent);box-shadow:0 0 13px color-mix(in srgb,var(--side-accent) 70%,transparent)}.nav .ico{width:31px;height:31px;flex:none;border:1px solid transparent;border-radius:9px;background:#ffffff07;color:color-mix(in srgb,var(--side-text) 92%,#fff);display:grid;place-items:center;font-size:0}.nav .ico svg{width:16px;height:16px}.nav button.active .ico{border-color:color-mix(in srgb,var(--side-accent) 28%,transparent);background:color-mix(in srgb,var(--side-accent) 16%,transparent);color:#aebaff}.nav-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-active-dot{margin-left:auto;width:5px;height:5px;flex:none;border-radius:50%;background:transparent}.nav button.active .nav-active-dot{background:var(--side-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--side-accent) 12%,transparent)}.aside-bottom{min-height:54px;margin-top:auto;padding:9px 10px;border:1px solid var(--side-border);border-radius:12px;background:#ffffff06;color:var(--side-text);display:flex;align-items:center;gap:9px}.aside-bottom .system-ready-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#48d9a2;box-shadow:0 0 0 5px #48d9a218}.aside-bottom div{min-width:0}.aside-bottom b,.aside-bottom small{display:block}.aside-bottom b{color:var(--side-strong);font-size:10px;font-weight:700}.aside-bottom small{margin-top:2px;color:var(--side-text);font-size:8px}.sidebar-toggle{top:25px;right:-13px;width:27px;height:27px;border:1px solid #d7deeb;border-radius:9px;background:#fff;color:#52617a;box-shadow:0 7px 18px #14203925}.sidebar-toggle:hover{background:#f3f6fb;color:#26364f}.sidebar-toggle svg{width:15px;height:15px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-app-theme="sunset"] aside{--side-text:#7b625b;--side-strong:#3e2e2a;--side-border:#d9c4b8;--side-hover:#f5e4da;--side-active:#d56735;--side-accent:#d56735;background:#fff8f3}body[data-app-theme="sunset"] .brand-mark{background:linear-gradient(145deg,#f09b5f,#c9522c)}body[data-app-theme="sunset"] .nav button.active{background:#d56735;color:#fff;border-color:#d56735}body[data-app-theme="sunset"] .nav button.active .ico{color:#fff;background:#ffffff18;border-color:#ffffff25}body[data-app-theme="sunset"] .nav button.active .nav-active-dot{background:#fff}body[data-app-theme="violet"] aside{--side-accent:#a58aff}
@media(min-width:701px){body:not([data-app-theme="sunset"]) .app.nav-collapsed{grid-template-columns:78px minmax(0,1fr)}body:not([data-app-theme="sunset"]) .app.nav-collapsed aside{padding-left:10px;padding-right:10px}body:not([data-app-theme="sunset"]) .app.nav-collapsed .brand{justify-content:center;padding-left:0;padding-right:0}body:not([data-app-theme="sunset"]) .app.nav-collapsed .brand-copy,body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav-label,body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav-section-label,body:not([data-app-theme="sunset"]) .app.nav-collapsed .aside-bottom{display:none}body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav{gap:8px}body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav button{justify-content:center;min-height:44px;padding:5px;font-size:0}body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav .ico{width:32px;height:32px}body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav-text,body:not([data-app-theme="sunset"]) .app.nav-collapsed .nav-active-dot{display:none}body[data-app-theme="sunset"] .nav-section{display:contents}body[data-app-theme="sunset"] .nav-section-label{display:none}}
.mobile-nav-backdrop{display:none}@media(max-width:700px){.app.nav-open .mobile-nav-backdrop{position:fixed;inset:0;z-index:19;display:block;width:100%;height:100%;padding:0;border:0;background:#09132666;backdrop-filter:blur(2px)}aside{position:fixed;left:0;width:min(282px,86vw);padding:16px 12px;gap:10px;transform:translateX(-100%);transition:transform .2s ease;box-shadow:none}.app.nav-open aside{left:0;transform:translateX(0);box-shadow:18px 0 45px #09132638}.sidebar-toggle{display:none}.brand{min-height:62px}.nav{gap:8px}.nav button{min-height:41px}.aside-bottom{margin-top:8px}}

/* v82: compact, orderly mobile product cards */
@media(max-width:700px){
  #content .products-mobile .table tbody{gap:11px}
  #content .products-mobile .table tr.clickable-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:11px;border:1px solid #dbe2ef;border-radius:16px;background:#fff!important;box-shadow:0 7px 20px #263b6510;overflow:hidden}
  #content .products-mobile .table td{display:block!important;width:auto!important;min-width:0;margin:0;padding:9px 10px!important;border:1px solid #e5e9f2!important;border-radius:10px;background:#f7f9fc;overflow:hidden;text-align:left}
  #content .products-mobile .table td:before{display:block!important;width:auto;min-width:0;margin:0 0 5px;padding:0;content:attr(data-label);color:#7a879a;font-size:8px;font-weight:850;line-height:1.2;letter-spacing:.06em;text-transform:uppercase}
  #content .products-mobile .table td:first-child{grid-column:1/-1;display:block!important;padding:2px 2px 10px!important;border:0!important;border-bottom:1px solid #e5e9f2!important;border-radius:0;background:transparent}
  #content .products-mobile .table td:first-child:before,#content .products-mobile .table td:last-child:before{display:none!important}
  #content .products-mobile .table td:nth-child(2){background:#f7f5ff}
  #content .products-mobile .table td:nth-child(3){background:#f3f7ff}
  #content .products-mobile .table td:nth-child(4){background:#f7f8fb}
  #content .products-mobile .table td:nth-child(5){background:#f2f9f6}
  #content .products-mobile .table td:last-child{grid-column:1/-1;padding:2px 0 0!important;border:0!important;background:transparent;overflow:visible}
  #content .products-mobile .product-cell{align-items:center;gap:10px}
  #content .products-mobile .product-thumb{width:44px;height:44px;border-radius:11px}
  #content .products-mobile .product-name{display:block;font-size:13px;line-height:1.25}
  #content .products-mobile .product-cell .sub{margin-top:3px;font-size:9px;line-height:1.35}
  #content .products-mobile td:nth-child(2),#content .products-mobile td:nth-child(3){font-size:11px;line-height:1.35}
  #content .products-mobile td:nth-child(3) .sub,#content .products-mobile td:nth-child(4) .sub{display:block;margin-top:4px;font-size:9px}
  #content .products-mobile td:nth-child(4) .pill,#content .products-mobile td:nth-child(5) .pill{font-size:9px;padding:4px 7px}
  #content .products-mobile .stock-cell{padding:9px 10px!important;border:1px solid #e0ece7!important;background:#f2f9f6!important}
  #content .products-mobile .stock-cell>span{margin:3px 4px 0 0!important}
  #content .products-mobile td:last-child .btn{min-height:38px;border-radius:10px;font-size:11px;box-shadow:0 5px 13px #536dfe24}
}
@media(max-width:355px){#content .products-mobile .table tr.clickable-row{grid-template-columns:1fr}#content .products-mobile .table td:first-child,#content .products-mobile .table td:last-child{grid-column:1}}

/* Admin panel: compact user preview instead of an unbounded full list */
.admin-user-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.admin-user-row{min-width:0;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:linear-gradient(145deg,#fff,#f8f9ff)}
.admin-user-row>div{min-width:0}.admin-user-row p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-user-row .btn{flex:none}
.admin-user-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:11px 13px;border-radius:11px;background:#f5f7fc;color:var(--muted);font-size:11px}
@media(max-width:900px){.admin-user-preview{grid-template-columns:1fr}}
@media(max-width:700px){.admin-user-panel .panel-head{align-items:flex-start;gap:12px}.admin-user-panel .panel-head .actions{justify-content:flex-end}.admin-user-row{align-items:flex-start}.admin-user-summary{align-items:flex-start;flex-direction:column}}

/* v83: collapsible mobile product filter tray */
.product-filter-toggle{display:none}.product-filter-panel{display:contents}
@media(max-width:700px){
  .product-filter-toolbar{display:grid!important;grid-template-columns:1fr;gap:8px;margin-bottom:12px}
  .product-filter-toolbar>.search{width:100%;min-height:43px}
  .product-filter-toggle{width:100%;min-height:48px;padding:7px 11px;border:1px solid #d8e0ee;border-radius:12px;background:#fff;color:var(--ink);display:flex;align-items:center;gap:10px;text-align:left;box-shadow:0 4px 13px #263b650b}
  .product-filter-toggle.active{border-color:#aebcf2;background:#f5f7ff;box-shadow:0 0 0 3px #536dfe10}
  .product-filter-toggle-icon{width:31px;height:31px;flex:none;border-radius:9px;background:#edf1ff;color:#5269df;display:grid;place-items:center}
  .product-filter-toggle-icon svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  .product-filter-toggle-copy{min-width:0;flex:1}.product-filter-toggle-copy b,.product-filter-toggle-copy small{display:block}.product-filter-toggle-copy b{font-size:12px}.product-filter-toggle-copy small{margin-top:1px;color:var(--muted);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .product-filter-count{min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#536dfe;color:#fff;display:grid;place-items:center;font-size:9px;font-weight:800}
  .product-filter-chevron{color:#66758d;font-size:15px;transition:transform .18s}.product-filter-toggle.active .product-filter-chevron{transform:rotate(180deg)}
  .product-filter-panel{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:9px;border:1px solid #dce3f0;border-radius:13px;background:#eef2f9;box-shadow:inset 0 1px #fff}
  .product-filter-panel.open{display:grid}
  .product-filter-panel>*{width:100%!important;min-width:0!important;max-width:none!important;margin:0}
  .product-filter-panel>.field-control,.product-filter-panel .category-single-trigger{min-height:41px;padding:8px 10px;font-size:12px!important}
  .product-filter-panel>*:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:360px){.product-filter-panel{grid-template-columns:1fr}.product-filter-panel>*:last-child:nth-child(odd){grid-column:1}}

/* v84: assignment module follows the compact product-card language */
.assignment-filter-toggle{display:none}.assignment-filter-panel{display:contents}
@media(max-width:700px){
  .assignment-filter-toolbar{display:grid!important;grid-template-columns:1fr;gap:8px;margin-bottom:12px}
  .assignment-filter-toolbar>.search{width:100%;min-height:43px}
  .assignment-filter-toggle{width:100%;min-height:48px;padding:7px 11px;border:1px solid #d8e0ee;border-radius:12px;background:#fff;color:var(--ink);display:flex;align-items:center;gap:10px;text-align:left;box-shadow:0 4px 13px #263b650b}
  .assignment-filter-toggle.active{border-color:#aebcf2;background:#f5f7ff;box-shadow:0 0 0 3px #536dfe10}.assignment-filter-toggle.active .product-filter-chevron{transform:rotate(180deg)}
  .assignment-filter-panel{display:none;padding:9px;border:1px solid #dce3f0;border-radius:13px;background:#eef2f9}.assignment-filter-panel.open{display:block}.assignment-filter-panel>*{width:100%!important;min-width:0!important;max-width:none!important;margin:0}
  .assignment-mobile-table .table tbody{gap:11px}
  .assignment-mobile-table .table tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:11px!important;border:1px solid #dbe2ef!important;border-radius:16px!important;background:#fff!important;box-shadow:0 7px 20px #263b6510!important;overflow:hidden}
  .assignment-mobile-table .table td{display:block!important;width:auto!important;min-width:0;margin:0;padding:9px 10px!important;border:1px solid #e5e9f2!important;border-radius:10px;background:#f7f9fc;overflow:hidden;text-align:left}
  .assignment-mobile-table .table td:before{display:block!important;width:auto;min-width:0;margin:0 0 5px;padding:0;content:attr(data-label);color:#7a879a;font-size:8px;font-weight:850;line-height:1.2;letter-spacing:.06em;text-transform:uppercase}
  .assignment-mobile-table .product-cell{align-items:center;gap:10px}.assignment-mobile-table .product-thumb{width:44px;height:44px;border-radius:11px}.assignment-mobile-table .product-link{font-size:12px;line-height:1.25}.assignment-mobile-table .sub{margin-top:3px;font-size:9px;line-height:1.35}
  .assignment-active-mobile .table td:nth-child(2),.assignment-stock-mobile .table td:nth-child(1),.assignment-closed-mobile .table td:nth-child(2){grid-column:1/-1;order:-2;padding:2px 2px 10px!important;border:0!important;border-bottom:1px solid #e5e9f2!important;border-radius:0;background:transparent}
  .assignment-active-mobile .table td:nth-child(2):before,.assignment-stock-mobile .table td:nth-child(1):before,.assignment-closed-mobile .table td:nth-child(2):before{display:none!important}
  .assignment-active-mobile .table td:nth-child(1){background:#f7f5ff}.assignment-active-mobile .table td:nth-child(3){background:#f3f7ff}.assignment-active-mobile .table td:nth-child(4){background:#f7f8fb}.assignment-active-mobile .table td:nth-child(5){background:#f2f9f6}
  .assignment-active-mobile .table td:nth-child(6),.assignment-stock-mobile .table td:nth-child(5),.assignment-closed-mobile .table td:nth-child(4){grid-column:1/-1;padding:2px 0 0!important;border:0!important;background:transparent;overflow:visible}
  .assignment-active-mobile .table td:nth-child(6):before,.assignment-stock-mobile .table td:nth-child(5):before,.assignment-closed-mobile .table td:nth-child(4):before{display:none!important}
  .assignment-active-mobile td:nth-child(6) .actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px;width:100%}.assignment-active-mobile td:nth-child(6) .btn{width:100%;min-height:38px;margin:0;border-radius:10px;font-size:10px}
  .assignment-stock-mobile .table td:nth-child(2){background:#f7f5ff}.assignment-stock-mobile .table td:nth-child(3){background:#f3f7ff}.assignment-stock-mobile .table td:nth-child(4){grid-column:1/-1;background:#f2f9f6}
  .assignment-stock-mobile .table td:nth-child(5) .btn,.assignment-closed-mobile .table td:nth-child(4) .btn{width:100%;min-height:38px;border-radius:10px;font-size:10px}
  .assignment-closed-mobile .table td:nth-child(1){background:#f7f5ff}.assignment-closed-mobile .table td:nth-child(3){background:#f2f9f6}
  .person-assignment-list{gap:10px}.person-assignment-card{border-radius:15px;background:#fff!important;box-shadow:0 7px 20px #263b6510}.person-assignment-head{padding:11px!important;gap:9px;background:linear-gradient(110deg,#edf1ff,#f4efff)!important}.person-assignment-head>.btn{width:100%;min-height:36px;margin:0}
  .person-assignment-item{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:9px!important;background:#fff!important}
  .person-assignment-item>*{min-width:0;padding:8px;border:1px solid #e5e9f2;border-radius:9px;background:#f7f9fc;overflow-wrap:anywhere;font-size:10px}
  .person-assignment-item>*:before{display:block;margin-bottom:4px;color:#7a879a;font-size:7px;font-weight:850;letter-spacing:.06em}
  .person-assignment-item>.product-link{grid-column:1/-1;text-align:left;background:#f7f5ff}.person-assignment-item>.product-link:before{content:'ÜRÜN'}.person-assignment-item>span:nth-child(2):before{content:'SERİ / KOD'}.person-assignment-item>b:before{content:'ADET'}.person-assignment-item>span:last-child{grid-column:1/-1;background:#f2f9f6}.person-assignment-item>span:last-child:before{content:'TESLİM TARİHİ'}
}
@media(max-width:355px){.assignment-mobile-table .table tr,.person-assignment-item{grid-template-columns:1fr!important}.assignment-active-mobile .table td:nth-child(2),.assignment-active-mobile .table td:nth-child(6),.assignment-stock-mobile .table td:nth-child(1),.assignment-stock-mobile .table td:nth-child(4),.assignment-stock-mobile .table td:nth-child(5),.assignment-closed-mobile .table td:nth-child(2),.assignment-closed-mobile .table td:nth-child(4),.person-assignment-item>.product-link,.person-assignment-item>span:last-child{grid-column:1}.assignment-active-mobile td:nth-child(6) .actions{grid-template-columns:1fr!important}}

/* v86: mobile grid cards must respect live-search visibility */
@media(max-width:700px){
  #content .products-mobile .table tr[hidden],
  #content .assignment-mobile-table .table tr[hidden],
  #content .person-assignment-card[hidden],
  #content .person-assignment-item[hidden],
  #content [data-assignment-search][hidden]{display:none!important}
}
