:root{--bg: #f4f6fb;--surface: #ffffff;--text: #1e2433;--muted: #6b7385;--border: #e3e7ef;--primary: #4f46e5;--primary-hover: #4338ca;--up: #15803d;--down: #dc2626;--warn: #b45309;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}@media(min-width:1680px){:root{font-size:17px}}@media(min-width:2200px){:root{font-size:20px}}@media(min-width:3000px){:root{font-size:26px}}*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100dvh;background:var(--bg)}img,svg{max-width:100%}h1,h2,h3,h4{margin:0}button{font:inherit;cursor:pointer}input,select,textarea{font:inherit;color:inherit}.muted{color:var(--muted);margin:0}.small{font-size:.82rem}.strong{font-weight:600}.center-screen{min-height:100vh;min-height:100dvh;display:grid;place-items:center}.brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:1.1rem;line-height:1.2}.brand-logo{color:var(--primary);font-size:1.4rem}.login-page{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);background:var(--bg)}.login-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:32px;padding:max(40px,env(safe-area-inset-top)) 48px max(32px,env(safe-area-inset-bottom)) max(48px,env(safe-area-inset-left));color:#fff;background:radial-gradient(circle at 85% 15%,rgba(129,140,248,.35),transparent 45%),radial-gradient(circle at 10% 90%,rgba(236,72,153,.22),transparent 45%),linear-gradient(160deg,#1e2433,#262d6b 55%,#3b2a6e)}.login-hero .brand{font-size:1.25rem}.login-hero .brand-logo{color:#a5b4fc;font-size:1.7rem}.login-hero .brand-sub{color:#c7d2fe}.gem-art{position:absolute;right:-60px;bottom:-40px;width:min(520px,70%);color:#a5b4fc2e;pointer-events:none}.login-hero-body{position:relative;max-width:460px}.login-hero-body h2{font-size:clamp(1.7rem,2.6vw,2.5rem);line-height:1.2;letter-spacing:-.01em}.login-hero-body ul{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-direction:column;gap:14px;color:#dfe3ff}.login-hero-body li{display:flex;align-items:center;gap:12px}.tick{flex-shrink:0;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#a5b4fc33;color:#c7d2fe}.login-hero-foot{position:relative;margin:0;color:#9aa3c7;font-size:.82rem}.login-main{display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) 24px}.login-card{width:100%;max-width:420px;background:var(--surface);padding:36px;border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 50px #1e243314;display:flex;flex-direction:column;gap:8px}.login-card.shake{animation:shake .4s}@keyframes shake{20%,60%{transform:translate(-6px)}40%,80%{transform:translate(6px)}}@media(prefers-reduced-motion:reduce){.login-card.shake{animation:none}}.login-mobile-brand{display:none}.login-card h1{font-size:1.7rem}.login-card .muted{margin-bottom:12px}.login-card label{font-size:.9rem;font-weight:600;margin-top:8px}.login-alert{display:flex;align-items:center;gap:8px}.input-icon{position:relative}.input-icon>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}.login-card .input-icon input{height:46px;padding-left:40px;padding-right:44px;border-radius:10px;background:#f8f9fc}.login-card .input-icon input:focus{background:var(--surface)}.peek-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:34px;height:34px;border:none;border-radius:8px;background:none;color:var(--muted)}.peek-btn:hover{background:#eef0f6;color:var(--primary)}.caps-warn{margin:0;color:var(--warn);font-size:.82rem;font-weight:600}.login-row{margin-top:6px}.login-card .remember{display:inline-flex;align-items:center;gap:8px;margin:0;font-weight:500;color:var(--muted);cursor:pointer}.login-card .remember input{flex:none;width:18px;height:18px;margin:0;padding:0;accent-color:var(--primary)}.login-card .primary-btn{height:48px;border-radius:10px;font-size:1rem}.login-help{margin:12px 0 0;padding-top:14px;border-top:1px solid var(--border);color:var(--muted);font-size:.84rem;text-align:center}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.login-page{grid-template-columns:1fr;grid-template-rows:auto 1fr}.login-hero{padding:max(28px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 28px max(24px,env(safe-area-inset-left));gap:20px}.login-hero-body h2{font-size:1.5rem}.login-hero-body ul,.login-hero-foot{display:none}.gem-art{width:260px;right:-50px;bottom:-70px}.login-main{place-items:center;padding-top:32px;padding-bottom:max(32px,env(safe-area-inset-bottom))}}@media(max-width:600px){.login-hero{display:none}.login-page{grid-template-rows:1fr;background:radial-gradient(circle at 100% 0%,rgba(129,140,248,.25),transparent 50%),linear-gradient(180deg,#eef2ff 0%,var(--bg) 60%)}.login-main{place-items:center;margin-top:0;padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.login-mobile-brand{display:flex;margin-bottom:18px}.login-card{padding:26px 20px;border-radius:16px}.bell-btn{width:38px;height:38px}.bell-panel{width:auto}.toast-stack{top:auto;bottom:max(16px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));width:auto}.login-card h1{font-size:1.45rem}}.login-card input,.modal input,.modal select,.modal textarea,.toolbar .search,.toolbar select{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);outline:none;transition:border-color .2s,box-shadow .2s}.login-card input:focus,.modal input:focus,.modal select:focus,.modal textarea:focus,.toolbar .search:focus,.toolbar select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #4f46e526}.primary-btn{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:16px;padding:11px;border:none;border-radius:8px;background:var(--primary);color:#fff;font-weight:600;transition:background .2s}.primary-btn:hover:not(:disabled){background:var(--primary-hover)}.primary-btn:disabled{opacity:.7;cursor:wait}.alert{background:#fef2f2;color:var(--down);border:1px solid #fecaca;padding:10px 12px;border-radius:8px;font-size:.9rem}.alert.success{background:#f0fdf4;color:var(--up);border-color:#bbf7d0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-weight:500;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}.btn:hover:not(:disabled){border-color:#c7cddb;background:#f8f9fc}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}.btn-danger{color:var(--down)}.btn-danger:hover:not(:disabled){background:#fef2f2;border-color:#fecaca}.modal-foot .btn-danger{background:var(--down);border-color:var(--down);color:#fff}.btn-dark{background:#1e2433;border-color:#1e2433;color:#fff}.btn-dark:hover:not(:disabled){background:#2d3548}.btn-ghost{border-color:transparent;color:var(--primary)}.btn-sm{padding:4px 10px;font-size:.82rem}.icon-btn{background:none;border:none;font-size:1.5rem;line-height:1;color:var(--muted)}.dash{display:flex;min-height:100vh;min-height:100dvh}.sidebar{position:sticky;top:0;width:14.5rem;height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain;flex-shrink:0;background:#1e2433;color:#fff;padding:max(24px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:28px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.nav-item{display:block;text-decoration:none;color:#c3c8d4;padding:10px 12px;border-radius:8px}.nav-item:hover{background:#ffffff0f;color:#fff}.nav-item.active{background:var(--primary);color:#fff}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:12px;padding:14px max(24px,env(safe-area-inset-right)) 14px 24px;padding-top:max(14px,env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--border)}.page-title{flex:1;min-width:0}.page-title h1{font-size:1.25rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-title .muted{font-size:.85rem}.brand-sub{display:block;font-size:.72rem;font-weight:500;color:#8b93a7;letter-spacing:.03em}.nav-item{display:flex;align-items:center;gap:10px}.sidebar nav{gap:18px}.nav-section{display:flex;flex-direction:column;gap:2px}.nav-title{padding:0 12px 4px;font-size:.7rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#6b7385}.nav-item svg{flex-shrink:0;opacity:.85}.sidebar-foot{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 8px 0;border-top:1px solid rgba(255,255,255,.08);font-size:.9rem}.sidebar-foot .user-name{display:flex;min-width:0}.sidebar-foot .user-name small{color:#8b93a7}.sidebar-logout{margin-left:auto;display:grid;place-items:center;padding:6px;border:none;border-radius:8px;background:none;color:#c3c8d4}.sidebar-logout:hover{background:#ffffff14;color:#fca5a5}.dropdown-sep{height:1px;margin:4px 0;background:var(--border)}.dropdown-item svg{color:var(--muted)}.dropdown-item.danger svg{color:inherit}.filter-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.filter-bar input,.filter-bar select{height:36px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);outline:none}.filter-bar input:focus,.filter-bar select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #4f46e526}.filter-search{flex:1 1 220px;max-width:320px}.filter-field{display:flex;flex-direction:column;gap:3px}.filter-field>span{font-size:.72rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.filter-field select{min-width:150px;max-width:240px}.date-pair{display:flex;align-items:center;gap:6px}.date-pair input{width:140px}.filter-clear{height:36px}.filter-toggle{display:none;gap:6px}.filter-toggle.has-active{border-color:var(--primary);color:var(--primary)}.filter-count{min-width:20px;padding:0 6px;border-radius:999px;background:var(--primary);color:#fff;font-size:.75rem;font-weight:700;line-height:20px;text-align:center}.section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-bottom:10px}.section-head .section-title{margin:0}.inline-filter{display:inline-flex;align-items:center;gap:8px;font-size:.85rem;color:var(--muted)}.inline-filter select{height:34px;padding:0 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-weight:600}.filter-actions{margin-left:auto;display:flex;gap:8px}.welcome-actions{display:flex;flex-wrap:wrap;gap:8px}.report-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}.report-card{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);text-align:left;transition:border-color .15s,box-shadow .15s}.report-card:hover{border-color:#c7cddb}.report-card.active{border-color:var(--primary);box-shadow:0 0 0 2px #4f46e533;background:#fafaff}.report-card strong{display:block;font-size:.95rem}.report-card small{display:block;margin-top:2px;color:var(--muted);font-size:.8rem;line-height:1.35}.report-icon{flex-shrink:0;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#eef2ff;color:var(--primary)}.report-card.active .report-icon{background:var(--primary);color:#fff}.report-panel{display:flex;flex-direction:column;gap:14px}.report-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px}.report-panel .filter-bar{padding:0;border:none}.report-preview{display:flex;flex-direction:column;gap:8px}.report-preview .table-wrap{max-height:520px;overflow:auto;border:1px solid var(--border);border-radius:10px}.report-preview th{position:sticky;top:0}.activity-main{min-width:0;flex:1}.activity .note{margin-top:4px;padding:6px 10px;border-left:3px solid var(--primary);background:#f8f9fc}.link-inline{padding:0;border:none;background:none;color:var(--primary);font-weight:700}.link-inline:hover{text-decoration:underline}.help-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;counter-reset:step}.help-steps li{--step: #9ca3af;position:relative;padding:10px 14px 10px 48px;border:1px solid var(--border);border-left:4px solid var(--step);border-radius:10px;counter-increment:step}.help-steps li:before{content:counter(step);position:absolute;left:12px;top:12px;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:var(--step);color:#fff;font-size:.8rem;font-weight:700}.help-steps li.dispatched{--step: #ca8a04}.help-steps li.received{--step: #2563eb}.help-steps li.returned{--step: #7c3aed}.help-steps li.completed{--step: #16a34a}.faq{display:flex;flex-direction:column;gap:8px}.faq details{padding:10px 14px;border:1px solid var(--border);border-radius:10px}.faq summary{font-weight:600;cursor:pointer}.faq details p{margin-top:6px}.profile-menu{position:relative;margin-left:auto}.profile-btn{display:flex;align-items:center;gap:10px;padding:4px 10px 4px 4px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);text-align:left}.profile-btn:hover{background:#f8f9fc}.caret{color:var(--muted);font-size:.8rem}.dropdown{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:260px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 32px #1e243326;padding:6px}.dropdown-head{display:flex;gap:12px;align-items:center;padding:10px;margin-bottom:4px;border-bottom:1px solid var(--border);word-break:break-all}.dropdown-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:none;border-radius:8px;background:none;color:var(--text);text-align:left;text-decoration:none;font-size:.92rem}.dropdown-item:hover{background:#f1f3f9}.dropdown-item.danger{color:var(--down)}.dropdown-item.danger:hover{background:#fef2f2}.avatar.lg{width:42px;height:42px;flex-shrink:0;font-size:1.1rem}.avatar.xl{width:72px;height:72px;font-size:1.8rem}.role-tag{display:inline-block;margin-top:4px;padding:1px 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.75rem;font-weight:600}.welcome{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px;background:linear-gradient(135deg,#eef2ff,#fff 70%)}.welcome h2{font-size:1.3rem}.welcome-totals{display:flex;gap:28px;margin-left:auto}.welcome-totals div{display:flex;flex-direction:column;align-items:center}.welcome-totals strong{font-size:1.6rem;line-height:1.1}.welcome-totals span{color:var(--muted);font-size:.8rem}.section-title{font-size:1rem;margin-bottom:10px}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.stat-card{display:flex;flex-direction:column;gap:2px;padding:16px;border:1px solid var(--border);border-top:4px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);text-decoration:none;transition:transform .15s,box-shadow .15s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px #1e243314}.stat-card strong{font-size:2rem;line-height:1.1}.stat-card span:last-child{color:var(--muted);font-size:.85rem}.stat-step{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.stat-card.draft{border-top-color:#9ca3af}.stat-card.dispatched{border-top-color:#eab308}.stat-card.received{border-top-color:#3b82f6}.stat-card.returned{border-top-color:#8b5cf6}.stat-card.completed{border-top-color:#22c55e}.dash-grid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;align-items:start}.card-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border)}.card-head h3,.card-title{font-size:1rem}.card-title{margin-bottom:14px}.card td a{color:var(--primary);text-decoration:none}.activity{list-style:none;margin:0;padding:6px 0}.activity li{display:flex;gap:10px;padding:8px 16px;font-size:.88rem}.dot-mark{flex-shrink:0;width:10px;height:10px;margin-top:6px;border-radius:50%;background:#9ca3af}.dot-mark.dispatched{background:#eab308}.dot-mark.received{background:#3b82f6}.dot-mark.returned{background:#8b5cf6}.dot-mark.completed{background:#22c55e}.dot-mark.deleted{background:var(--down)}.dot-mark.account{background:var(--primary)}.dot-mark.overdue{background:#f97316}.toast.overdue{border-left-color:#f97316}.global-search{position:relative;flex-shrink:0}.search-box{display:flex;align-items:center;gap:8px;width:15rem;height:42px;padding:0 10px 0 12px;border:1px solid var(--border);border-radius:999px;background:#f8f9fc;color:var(--muted)}.search-box:focus-within{border-color:var(--primary);background:var(--surface);box-shadow:0 0 0 3px #4f46e526}.search-box input{flex:1;min-width:0;border:none;outline:none;background:none;color:var(--text)}.search-box kbd{padding:0 6px;border:1px solid var(--border);border-radius:5px;font-size:.72rem;font-family:inherit}.search-toggle{display:none;place-items:center;width:38px;height:38px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--muted)}.search-results{width:26rem;max-height:min(460px,70vh);overflow-y:auto}.search-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;border:none;border-radius:8px;background:none;color:var(--text);text-align:left}.search-item.active{background:#f1f3f9}.search-item>span:first-child{display:flex;flex-direction:column;min-width:0}.search-item small{color:var(--muted);font-size:.78rem}.search-item .badge{flex-shrink:0;white-space:nowrap}.search-empty{margin:0;padding:16px;text-align:center;color:var(--muted)}.pick-ok{color:var(--up);font-weight:600}.pick-missing{color:var(--warn)}@media(max-width:1280px){.search-box{width:11rem}.search-box kbd{display:none}}@media(max-width:800px){.search-toggle{display:grid}.global-search .search-box{display:none}.global-search.expanded{position:absolute;left:12px;right:12px;z-index:20}.global-search.expanded .search-toggle{display:none}.global-search.expanded .search-box{display:flex;width:100%;background:var(--surface)}.search-results{position:absolute;left:0;right:0;width:auto}}.dot-mark.edited{background:#64748b}.bulk-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:10px 14px;border:1px dashed var(--border);border-radius:12px;background:var(--surface)}.bulk-bar.active{position:sticky;bottom:max(12px,env(safe-area-inset-bottom));z-index:6;border:1px solid var(--primary);background:#f5f6ff;box-shadow:0 10px 30px #4f46e52e}.bulk-all{display:inline-flex;align-items:center;gap:10px;font-weight:600;font-size:.9rem;cursor:pointer}.bulk-bar:not(.active) .bulk-all{color:var(--muted);font-weight:500}.bulk-all input,.group-check{width:18px;height:18px;accent-color:var(--primary)}.group-check{margin:0 10px 0 0;vertical-align:-3px}.bulk-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}.chip.more{background:#f1f3f9;color:var(--muted)}.reason-list{margin:6px 0 0;padding-left:18px}.bell{position:relative;flex-shrink:0}.bell-btn{position:relative;display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--muted)}.bell-btn:hover,.bell-btn.has-unread{color:var(--primary)}.bell-btn.has-unread svg{animation:bell-ring 2.5s ease-in-out 1}@keyframes bell-ring{0%,30%,to{transform:rotate(0)}5%,15%,25%{transform:rotate(14deg)}10%,20%{transform:rotate(-14deg)}}.bell-count{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;display:grid;place-items:center;border:2px solid var(--surface);border-radius:999px;background:var(--down);color:#fff;font-size:.7rem;font-weight:700;line-height:1}.bell-panel{width:380px;padding:0;overflow:hidden}.bell-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border)}.bell-desktop{display:flex;align-items:center;gap:8px;width:100%;padding:10px 14px;border:none;border-bottom:1px solid var(--border);background:#eef2ff;color:#3730a3;font-size:.84rem;font-weight:600;text-align:left}.bell-list,.notif-list{list-style:none;margin:0;padding:0}.bell-list{max-height:min(420px,60vh);overflow-y:auto}.bell-item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px 14px;border:none;border-bottom:1px solid var(--border);background:none;color:var(--text);text-align:left}.bell-item:hover{background:#f8f9fc}.bell-item.unread{background:#f5f6ff}.bell-item.unread strong{color:var(--primary)}.notif-list li:last-child .bell-item{border-bottom:none}.bell-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:.88rem}.bell-text small{color:var(--muted);font-size:.76rem}.unread-dot{flex-shrink:0;width:9px;height:9px;margin-top:6px;border-radius:50%;background:var(--primary)}.bell-empty{padding:28px 14px;text-align:center;color:var(--muted)}.bell-all{display:block;padding:11px;text-align:center;color:var(--primary);font-weight:600;font-size:.88rem;text-decoration:none}.bell-all:hover{background:#f8f9fc}.nav-badge{margin-left:auto;min-width:22px;padding:1px 7px;border-radius:999px;background:var(--down);color:#fff;font-size:.72rem;font-weight:700;text-align:center}.menu-btn{position:relative}.menu-dot{position:absolute;top:4px;right:2px;width:9px;height:9px;border-radius:50%;background:var(--down)}.toast-stack{position:fixed;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));z-index:60;width:min(380px,calc(100vw - 32px));display:flex;flex-direction:column;gap:10px;pointer-events:none}.toast{display:flex;align-items:flex-start;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:12px;background:var(--surface);box-shadow:0 12px 32px #1e24332e;pointer-events:auto;animation:toast-in .25s ease-out}.toast.dispatched{border-left-color:#eab308}.toast.received{border-left-color:#3b82f6}.toast.returned{border-left-color:#8b5cf6}.toast.repair_sent{border-left-color:#dc2626}.toast.repair,.toast.repaired{border-left-color:#db2777}.toast.completed{border-left-color:#22c55e}@keyframes toast-in{0%{opacity:0;transform:translateY(-8px)}}.toast-body{flex:1;display:flex;gap:10px;padding:12px 4px 12px 14px;border:none;background:none;color:var(--text);text-align:left}.toast-body>span:last-child{display:flex;flex-direction:column;gap:2px;font-size:.88rem}.toast-close{padding:8px 12px;border:none;background:none;color:var(--muted);font-size:1.3rem;line-height:1}@media(prefers-reduced-motion:reduce){.toast,.bell-btn.has-unread svg{animation:none}}.tab-hint{margin:0;padding:8px 12px;border-radius:8px;background:#f1f3f9;color:var(--muted);font-size:.88rem}.profile-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}.profile-card{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}.profile-info{width:100%;margin:12px 0 0;text-align:left;font-size:.9rem}.profile-info dt{color:var(--muted);font-size:.78rem;margin-top:10px}.profile-info dd{margin:0;word-break:break-all}.profile-forms{display:flex;flex-direction:column;gap:16px}.card input:not([type=checkbox]):not([type=radio]){width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);outline:none}.card input:not([type=checkbox]):not([type=radio]):focus{border-color:var(--primary);box-shadow:0 0 0 3px #4f46e526}.card input:not([type=checkbox]):not([type=radio]):disabled{background:#f4f6fb;color:var(--muted)}.form-actions{display:flex;justify-content:flex-end;margin-top:16px}.menu-btn{display:none;background:none;border:none;font-size:1.4rem}.user-name{display:flex;flex-direction:column;line-height:1.2}.user-name small{color:var(--muted)}.avatar{width:34px;height:34px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:700}.outline-btn{background:none;border:1px solid var(--border);border-radius:8px;padding:6px 14px;color:var(--text)}.outline-btn:hover{border-color:var(--down);color:var(--down)}.content{padding:24px;display:flex;flex-direction:column;gap:16px}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:20px}.card.no-pad{padding:0;overflow:hidden}.step-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.step-tab{--step: #9ca3af;display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);text-align:left;transition:border-color .15s,box-shadow .15s,background .15s}.step-tab.dispatched{--step: #ca8a04}.step-tab.received{--step: #2563eb}.step-tab.returned{--step: #7c3aed}.step-tab.completed{--step: #16a34a}.step-tab:hover{border-color:var(--step)}.step-tab.active{border-color:var(--step);background:color-mix(in srgb,var(--step) 8%,#fff);box-shadow:0 0 0 2px color-mix(in srgb,var(--step) 25%,transparent)}.step-count{flex-shrink:0;min-width:44px;height:44px;padding:0 6px;display:grid;place-items:center;border-radius:999px;background:color-mix(in srgb,var(--step) 15%,#fff);color:var(--step);font-size:1.15rem;font-weight:700;font-variant-numeric:tabular-nums}.step-tab.active .step-count{background:var(--step);color:#fff}.step-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}.step-text strong{font-size:.92rem}.step-text small{color:var(--muted);font-size:.76rem}@media(min-width:601px)and (max-width:1600px){.step-tab{flex-direction:column;align-items:flex-start;gap:8px}.step-count{min-width:36px;height:36px;font-size:1rem}}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.toolbar .search{max-width:320px}.toolbar select{width:auto;min-width:180px}.toolbar-actions{display:flex;flex-wrap:wrap;gap:8px}.push-right{margin-left:auto}.check-inline{display:flex;align-items:center;gap:6px;font-size:.9rem;color:var(--muted)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--border);white-space:nowrap;vertical-align:middle}th{background:#f8f9fc;color:var(--muted);font-weight:600;font-size:.82rem}tbody tr:last-child td{border-bottom:none}.check-col{width:36px}.group-row td{background:#eef2ff;font-weight:600;color:#3730a3}.empty{text-align:center;color:var(--muted);padding:32px}.clip{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.pw-cell{display:inline-flex;align-items:center;gap:6px}.pw-cell code{min-width:96px;padding:2px 8px;border-radius:6px;background:#f1f3f9;font-family:ui-monospace,Consolas,monospace}.eye-btn{display:grid;place-items:center;padding:4px;border:none;border-radius:6px;background:none;color:var(--muted)}.eye-btn:hover{background:#eef0f6;color:var(--primary)}.row-actions{display:flex;gap:6px;align-items:center}.days{padding:2px 10px;border-radius:999px;font-weight:600;font-size:.82rem}.days.ok{background:#dcfce7;color:var(--up)}.days.warn{background:#fef3c7;color:var(--warn)}.days.late{background:#fee2e2;color:var(--down)}.badge{padding:2px 10px;border-radius:999px;font-size:.8rem;font-weight:600}.badge.draft{background:#eef0f6;color:var(--muted)}.badge.dispatched{background:#fef9c3;color:#a16207}.badge.received{background:#dbeafe;color:#1d4ed8}.badge.returned{background:#ede9fe;color:#6d28d9}.badge.completed{background:#dcfce7;color:#15803d}.badge.repair_sent{background:#fee2e2;color:#b91c1c}.badge.repair{background:#fce7f3;color:#be185d}.step-tab.repair_sent{--step: #dc2626}.step-tab.repair{--step: #db2777}.stat-card.repair_sent{border-top-color:#dc2626}.stat-card.repair{border-top-color:#db2777}.dot-mark.repair_sent{background:#dc2626}.dot-mark.repair,.dot-mark.repaired{background:#db2777}.help-steps li.repair_sent{--step: #dc2626}.help-steps li.repair{--step: #db2777}.btn-warn{color:#b91c1c;border-color:#fecaca;background:#fff5f5}.btn-warn:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}.reason{display:inline-block;max-width:280px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}.repair-reason{padding:10px 12px;border-radius:8px;border-left:4px solid #dc2626;background:#fef2f2;font-size:.9rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#1e243373;display:grid;place-items:center;padding:16px}.modal{width:100%;max-width:520px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;background:var(--surface);border-radius:14px;box-shadow:0 20px 60px #1e243340}.modal form{display:flex;flex-direction:column;min-height:0}.modal.wide{max-width:760px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-body{padding:20px;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.modal-body p{margin:0}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--border)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}.form-grid label,.field{display:flex;flex-direction:column;gap:4px;font-size:.88rem;font-weight:600}.span-2{grid-column:1 / -1}.input-row{display:flex;gap:6px}.input-row input{flex:1;min-width:0;font-family:ui-monospace,Consolas,monospace}.warn-text{color:var(--down);margin:0}.add-result{display:flex;flex-direction:column;gap:8px}.fail-table{margin-top:6px;font-size:.85rem}.fail-table td{padding:4px 8px 4px 0;border:none;white-space:normal}.check-box{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:8px;background:#f8f9fc;font-weight:600;cursor:pointer}.check-box input,.check-inline input,.check-col input{width:18px;height:18px;accent-color:var(--primary)}.share-text{font-family:ui-monospace,Consolas,monospace;font-size:.85rem;resize:vertical;background:#f8f9fc!important}.sr-chips{display:flex;flex-wrap:wrap;gap:6px}.chip{padding:3px 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:600;font-size:.85rem}.sr-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}.step{position:relative;display:flex;flex-direction:column;gap:2px;padding:10px;border:1px solid var(--border);border-radius:10px;font-size:.85rem;opacity:.6}.step.done{opacity:1;border-color:#bbf7d0;background:#f0fdf4}.step .dot{width:10px;height:10px;border-radius:50%;background:var(--border)}.step.done .dot{background:var(--up)}.totals{display:flex;flex-wrap:wrap;gap:8px 24px;padding:10px 12px;border-radius:8px;background:#eef2ff}.timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.timeline li{display:flex;gap:12px;align-items:flex-start}.timeline .day{flex-shrink:0;min-width:64px;padding:2px 8px;border-radius:6px;background:#1e2433;color:#fff;font-size:.8rem;font-weight:600;text-align:center}.timeline .note{margin-top:4px;padding:6px 10px;border-left:3px solid var(--primary);background:#f8f9fc;font-size:.88rem}.tv{height:100vh;height:100dvh;overflow:hidden;background:#0f1420;color:#e8ebf2;padding:max(20px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:18px}.tv-head{display:flex;flex-wrap:wrap;align-items:center;gap:16px 36px}.tv-head h1{font-size:1.7rem}.tv-brand{color:#a5b4fc;font-weight:600}.tv-stats{display:flex;gap:28px;margin-left:auto}.tv-stats div,.tv-clock{display:flex;flex-direction:column;align-items:center}.tv-stats strong{font-size:2.4rem;line-height:1}.tv-stats span,.tv-clock span{color:#8b93a7;font-size:.85rem}.tv-stats .late strong{color:#f87171}.tv-clock strong{font-size:1.8rem;font-variant-numeric:tabular-nums}.tv-buttons{display:flex;flex-wrap:wrap;gap:8px}.tv-buttons button,.tv-buttons select{padding:8px 12px;border:1px solid #2d3548;border-radius:8px;background:#1a2130;color:#e8ebf2}.tv-board{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tv-col{--band: #22c55e;display:flex;flex-direction:column;min-height:0;border-radius:14px;background:#161c2a;border-top:6px solid var(--band)}.tv-col.over{--band: #ef4444}.tv-col.repair{--band: #ec4899}.tv-stats .repair strong{color:#f472b6}.tv-tag{margin-left:8px;padding:1px 8px;border-radius:999px;background:#ec4899;color:#0f1420;font-size:.75rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;vertical-align:middle}.tv-tag.wait{background:#fbbf24}.tv-chip.wait{border-left-color:#fbbf24}.tv-col-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #232b3d}.tv-col-head h2{font-size:1.5rem;line-height:1.2;color:var(--band)}.tv-col-head span{display:block;margin-top:2px;line-height:1.3;color:#8b93a7;font-size:.9rem}.tv-col-head strong{min-width:56px;height:56px;padding:0 8px;display:grid;place-items:center;border-radius:999px;background:var(--band);color:#0f1420;font-size:1.8rem;font-variant-numeric:tabular-nums}.tv-list{flex:1;min-height:0;overflow-y:auto;padding:10px;display:flex;flex-direction:column;gap:8px}.tv-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;background:#1f2738;border-left:5px solid var(--band)}.tv-col.over .tv-row{background:#2a1619;animation:tv-pulse 2s ease-in-out infinite}@keyframes tv-pulse{50%{background:#3a1a1e}}.tv-info{flex:1;min-width:0}.tv-sr{font-size:1.45rem;font-weight:700;letter-spacing:.02em}.tv-client{font-size:1rem;color:#c7cddb}.tv-date{color:#8b93a7;font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tv-days{display:flex;flex-direction:column;align-items:center;min-width:60px;color:var(--band)}.tv-days strong{font-size:2.4rem;line-height:1;font-variant-numeric:tabular-nums}.tv-days strong.today{font-size:1.1rem}.tv-days span{text-transform:uppercase;letter-spacing:.08em;font-size:.72rem}.tv-group{padding:8px 10px 10px;border-radius:10px;background:#1b2232}.tv-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:1rem;font-weight:600;color:#c7cddb}.tv-group-head strong{padding:0 10px;border-radius:999px;background:#2d3548;font-size:.9rem}.tv-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:6px}.tv-chip{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:5px 8px;border-radius:6px;border-left:4px solid var(--band);background:#252e42;font-size:.95rem;font-weight:700;letter-spacing:.02em;font-variant-numeric:tabular-nums}.tv-chip b{color:var(--band);font-size:.85rem}.tv-col-empty{padding:24px 0;text-align:center;color:#4b5568;font-size:1.1rem}.tv-error{padding:10px 14px;border-radius:8px;background:#3a1a1e;color:#fca5a5}.tv-foot{color:#6b7385;font-size:.8rem;text-align:center}@media(max-width:1100px){.tv{height:auto;min-height:100vh;min-height:100dvh;overflow:visible}.tv-board{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-col.repair{grid-column:1 / -1}.tv-list{max-height:60vh}}@media(max-width:1024px){.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:min(18rem,85vw);transform:translate(-100%);transition:transform .25s}.sidebar.open{transform:translate(0);box-shadow:8px 0 30px #0f142040}.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:29;background:#1e243373}.menu-btn{display:block;flex-shrink:0;padding:4px 6px;color:var(--text)}.topbar{padding-left:max(16px,env(safe-area-inset-left))}.content{padding:20px max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}}@media(max-width:800px){.form-grid,.dash-grid,.profile-grid{grid-template-columns:1fr}.steps{grid-template-columns:1fr 1fr}.welcome-totals{margin-left:0}.toolbar .search{max-width:none}.push-right{margin-left:0}.topbar .user-name,.page-title .muted,.caret{display:none}.profile-btn{padding:3px}.tv-head{gap:12px 24px}.tv-head h1{font-size:1.35rem}.tv-stats{margin-left:0}}@media(max-width:640px){.tv{padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}.tv-board{grid-template-columns:1fr}.tv-stats{width:100%;justify-content:space-between;gap:12px}.tv-stats strong{font-size:1.9rem}.tv-clock{align-items:flex-start}.tv-buttons{width:100%}.tv-buttons select{flex:1 1 140px;min-width:0}.tv-col-head strong{min-width:46px;height:46px;font-size:1.4rem}.tv-sr{font-size:1.2rem}.tv-days strong{font-size:1.9rem}}@media(max-width:600px){.content{padding:14px max(12px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:12px}.topbar{gap:8px;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:10px}.page-title h1{font-size:1.05rem}.card{padding:14px}.filter-bar{padding:10px;gap:8px}.filter-search{flex:1 1 0;min-width:0;max-width:none}.filter-toggle{display:inline-flex;height:42px}.filter-bar:not(.open) .filter-extra{display:none}.filter-field,.filter-field select,.filter-actions{flex:1 1 100%;width:100%;max-width:none}.date-pair input{flex:1;width:auto;min-width:0}.filter-clear,.toolbar-actions,.welcome-actions{width:100%}.toolbar-actions .btn,.welcome-actions .btn,.report-head .btn{flex:1 1 auto}.report-head .btn{width:100%}.step-tabs,.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.step-tab{padding:10px;gap:8px}.step-count{min-width:38px;height:38px;font-size:1rem}.stat-card{padding:12px}.stat-card strong{font-size:1.6rem}.welcome{gap:12px}.welcome-totals{width:100%;justify-content:space-around}.report-grid{grid-template-columns:1fr}.report-card small{display:none}table{font-size:.85rem}th,td{padding:8px 10px}.stack-table thead{display:none}.stack-table,.stack-table tbody{display:block}.stack-table tbody tr{display:flex;flex-wrap:wrap;align-items:center;padding:12px 14px;border-bottom:1px solid var(--border)}.stack-table tbody tr:last-child{border-bottom:none}.stack-table td{padding:0;border:none;white-space:normal}.stack-table td.check-col{width:auto;margin-right:10px}.stack-table td.stack-title{flex:1;font-size:1rem;margin-bottom:6px}.stack-table td[data-label]{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:3px 0;text-align:right}.stack-table td[data-label]:before{content:attr(data-label);color:var(--muted);font-size:.8rem;text-align:left}.stack-table td.stack-actions{width:100%;margin-top:10px}.stack-table .row-actions{flex-wrap:wrap}.stack-table .row-actions .btn{flex:1 1 auto}.stack-table .group-row{padding:8px 14px;background:#eef2ff}.stack-table .group-row td{width:100%;background:none}.bulk-actions{width:100%;margin-left:0}.bulk-actions .btn{flex:1 1 auto}.stack-table td.empty{width:100%}.stack-table .reason{max-width:60vw}.activity li{padding:8px 12px}.reason{max-width:160px}.modal-backdrop{place-items:end stretch;padding:0}.modal,.modal.wide{max-width:none;max-height:92vh;max-height:92dvh;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom)}.modal-foot .btn{flex:1}.dropdown{position:fixed;top:auto;right:max(8px,env(safe-area-inset-right));left:max(8px,env(safe-area-inset-left));width:auto;margin-top:8px}.login-card{padding:24px 20px}.sr-summary{grid-template-columns:1fr}}@media(max-width:380px){.step-tabs,.stat-grid{grid-template-columns:1fr}.step-text small{display:none}.steps{grid-template-columns:1fr}}@media(max-height:500px)and (orientation:landscape){.modal,.modal.wide{max-height:96dvh}.topbar{position:static}}@media(pointer:coarse){input,select,textarea{font-size:16px}.btn{min-height:40px}.btn-sm{min-height:34px;padding:6px 12px}.nav-item,.dropdown-item{padding-top:12px;padding-bottom:12px}.check-box input,.check-inline input,.check-col input{width:22px;height:22px}.eye-btn{padding:8px}.filter-bar input,.filter-bar select,.inline-filter select{height:42px}.table-wrap,.tv-list,.modal-body{-webkit-overflow-scrolling:touch}}@media(hover:none){.stat-card:hover{transform:none;box-shadow:none}}.pager{display:flex;align-items:center;justify-content:center;gap:1rem;padding:.75rem;border-top:1px solid var(--border)}
