.dashboard-page{--ouno-red: #e10600;--ouno-red-dark: #b80500;--ouno-red-soft: rgba(225, 6, 0, .08);--surface: #ffffff;--text: #111827;--muted: #6b7280;--border: #e8eaee;min-height:100dvh;background:radial-gradient(ellipse 120% 80% at 50% -20%,rgba(225,6,0,.06),transparent 55%),#f4f5f7}.dashboard-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));background:#ffffffeb;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border);box-shadow:0 1px 12px #0000000a}.dashboard-logo{width:72px;height:auto;flex-shrink:0}.dashboard-header-actions{display:flex;align-items:center;gap:8px;min-width:0}.dashboard-user-chip{display:flex;align-items:center;gap:8px;min-width:0;max-width:160px;padding:4px 10px 4px 4px;border-radius:999px;background:var(--ouno-red-soft);border:1px solid rgba(225,6,0,.12)}.dashboard-user-avatar{flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(145deg,var(--ouno-red),var(--ouno-red-dark));color:#fff;font-size:.65rem;font-weight:800;letter-spacing:.02em}.dashboard-user-name{font-size:.78rem;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-logout-btn{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--muted);cursor:pointer;transition:color .15s,border-color .15s,background .15s,transform .1s}.dashboard-logout-btn:hover{color:var(--ouno-red);border-color:#e106004d;background:var(--ouno-red-soft)}.dashboard-logout-btn:active{transform:scale(.94)}.dashboard-main{padding:16px 14px 28px;padding-bottom:max(28px,env(safe-area-inset-bottom));max-width:520px;margin:0 auto}.dashboard-group{margin-bottom:22px}.dashboard-group-head{margin-bottom:10px}.dashboard-group-badge{display:inline-block;padding:5px 14px;border-radius:999px;background:linear-gradient(135deg,var(--ouno-red),var(--ouno-red-dark));color:#fff;font-size:.68rem;font-weight:800;letter-spacing:.12em;box-shadow:0 4px 14px #e1060047}.dashboard-cards{display:flex;flex-direction:column;gap:10px}.dashboard-cards--grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-card--tile{aspect-ratio:1;padding:12px}.dashboard-card--tile .dashboard-card-top{flex-direction:column;align-items:stretch;height:100%}.dashboard-card--tile .dashboard-card-text{flex:1;display:flex;flex-direction:column;min-height:0}.dashboard-card--tile .dashboard-card-title{font-size:.84rem;margin-bottom:6px}.dashboard-card--tile .dashboard-card-order-num{font-size:1.55rem}.dashboard-card--tile .dashboard-card-order-unit{font-size:.76rem}.dashboard-card--tile .dashboard-card-products{font-size:.72rem}.dashboard-card--tile .dashboard-card-chevron{align-self:flex-end;margin-top:auto;width:26px;height:26px}.dashboard-card-hint{font-size:.78rem;font-weight:600;color:var(--muted);line-height:1.3}.dashboard-card{position:relative;display:block;text-decoration:none;color:inherit;background:var(--surface);border-radius:16px;padding:14px 16px;border:1px solid var(--border);box-shadow:0 2px 8px #0000000a,0 8px 24px #00000008;overflow:hidden;transition:transform .12s,box-shadow .15s,border-color .15s}.dashboard-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#d1d5db;border-radius:16px 0 0 16px;transition:background .15s}.dashboard-card--active:before{background:linear-gradient(180deg,var(--ouno-red),var(--ouno-red-dark))}.dashboard-card--active{border-color:#e106002e;box-shadow:0 2px 8px #e106000f,0 10px 28px #e106001a}.dashboard-card:active{transform:scale(.985)}.dashboard-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.dashboard-card-text{min-width:0;padding-left:6px}.dashboard-card-title{display:block;font-size:.9rem;font-weight:700;color:#374151;line-height:1.35;margin-bottom:8px}.dashboard-card--active .dashboard-card-title{color:var(--text)}.dashboard-card-metrics{display:flex;flex-direction:column;gap:4px}.dashboard-card-metrics--loading{font-size:.82rem;font-weight:500;color:var(--muted);opacity:.55}.dashboard-card-primary{display:flex;align-items:baseline;gap:6px}.dashboard-card-order-num{font-size:1.85rem;font-weight:800;line-height:1;color:#9ca3af;font-variant-numeric:tabular-nums;letter-spacing:-.03em}.dashboard-card--active .dashboard-card-order-num{color:var(--ouno-red)}.dashboard-card-order-unit{font-size:.88rem;font-weight:600;color:var(--muted)}.dashboard-card--active .dashboard-card-order-unit{color:#374151}.dashboard-card-products{font-size:.78rem;font-weight:500;color:var(--muted);line-height:1.2}.dashboard-card--active .dashboard-card-products{color:#6b7280}.dashboard-card-chevron{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:#f3f4f6;color:#9ca3af;transition:background .15s,color .15s}.dashboard-card--active .dashboard-card-chevron{background:var(--ouno-red-soft);color:var(--ouno-red)}@media(min-width:600px){.dashboard-logo{width:88px}.dashboard-user-chip{max-width:220px}.dashboard-user-name{font-size:.82rem}.dashboard-main{max-width:640px;padding:20px 20px 36px}.dashboard-cards--grid{gap:12px}.dashboard-card--tile .dashboard-card-order-num{font-size:1.75rem}.dashboard-card-title{font-size:.94rem}.dashboard-card-order-num{font-size:2.1rem}.dashboard-card-products{font-size:.82rem}}.cargo-page{--ouno-red: #e10600;--ouno-red-dark: #b80500;--surface: #ffffff;--text: #111827;--muted: #6b7280;--border: #e8eaee;position:relative;min-height:100dvh;background:#f4f5f7}.cargo-page--flash-success:after,.cargo-page--flash-error:after{content:"";position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;pointer-events:none;animation-duration:.55s;animation-timing-function:ease;animation-fill-mode:both}.cargo-page--flash-success:after{animation-name:cargo-flash-success}.cargo-page--flash-error:after{animation-name:cargo-flash-error}@keyframes cargo-flash-success{0%,to{background:transparent}35%{background:#10b98161}}@keyframes cargo-flash-error{0%,to{background:transparent}35%{background:#ef444457}}.cargo-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--border)}.cargo-toolbar-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:1.5px solid var(--ouno-red);border-radius:10px;background:var(--surface);color:var(--ouno-red);font-size:.95rem;font-weight:600;text-decoration:none;cursor:pointer}.cargo-toolbar-btn:active{background:#e106000f}.cargo-main{padding:16px 14px 24px;display:flex;flex-direction:column;gap:14px}.cargo-scan{display:flex;flex-direction:column;gap:8px}.cargo-scan-label{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:.85rem;font-weight:600}.cargo-scan-input{width:100%;min-height:46px;padding:0 14px;border:2px solid rgba(225,6,0,.45);border-radius:12px;background:var(--surface);color:var(--text);font-size:14px;font-weight:600;box-sizing:border-box}.cargo-scan-input:focus{outline:none;border-color:#e10600}.cargo-feedback{padding:10px 12px;border-radius:10px;font-size:.92rem;line-height:1.4}.cargo-feedback--success{background:#10b9811f;color:#047857}.cargo-feedback--error{background:#ef44441f;color:#b91c1c}.cargo-feedback--info{background:#3b82f61a;color:#1d4ed8}.cargo-state{display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px 0;color:var(--muted)}.cargo-state--inline{padding:8px 0 0}.cargo-spinner{width:28px;height:28px;border:3px solid #e5e7eb;border-top-color:var(--ouno-red);border-radius:50%;animation:cargo-spin .7s linear infinite}@keyframes cargo-spin{to{transform:rotate(360deg)}}.cargo-list-section{display:flex;flex-direction:column;gap:12px}.cargo-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.cargo-list-title{margin:0;font-size:.95rem;font-weight:800;color:var(--text)}.cargo-list-count{padding:4px 10px;border-radius:999px;background:#e1060014;border:1px solid rgba(225,6,0,.14);color:var(--ouno-red);font-size:.75rem;font-weight:700;white-space:nowrap}.cargo-list{display:flex;flex-direction:column;gap:10px}.cargo-list-item{position:relative;border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:14px 16px 14px 18px;display:flex;flex-direction:column;gap:10px;overflow:hidden;box-shadow:0 2px 8px #0000000a,0 8px 24px #00000008}.cargo-list-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:16px 0 0 16px;background:#9ca3af}.cargo-list-item-title{margin:0;padding-left:4px;font-size:.95rem;font-weight:800;color:var(--text);line-height:1.3;word-break:break-word}.cargo-card{border:2px solid rgba(225,6,0,.55);border-radius:18px;background:var(--surface);padding:16px;display:flex;flex-direction:column;gap:14px}.cargo-card--selected{border-color:#e10600bf;box-shadow:0 0 0 4px #e1060014}.cargo-list-item .cargo-card-fields{padding-left:4px}.cargo-card-title{margin:0;font-size:1.15rem;font-weight:700;color:var(--text)}.cargo-card-fields{margin:0;display:flex;flex-direction:column;gap:10px}.cargo-card-row{display:grid;grid-template-columns:minmax(0,38%) minmax(0,1fr);gap:8px;align-items:start}.cargo-card-row dt{margin:0;color:var(--muted);font-size:.88rem;font-weight:600}.cargo-card-row dd{margin:0;color:var(--text);font-size:.92rem;line-height:1.35;word-break:break-word}.cargo-transfer-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;border:none;border-radius:10px;background:var(--ouno-red);color:#fff;font-size:1rem;font-weight:700;cursor:pointer}.cargo-transfer-btn:hover:not(:disabled){background:var(--ouno-red-dark)}.cargo-transfer-btn:disabled{opacity:.7;cursor:not-allowed}.login-page{--ouno-red: #e10600;--ouno-red-dark: #b80500;--ouno-red-soft: rgba(225, 6, 0, .1);--surface: #ffffff;--text: #111827;--muted: #6b7280;--border: #e8eaee;position:relative;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px 16px;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom));overflow:hidden;background:radial-gradient(ellipse 90% 60% at 50% -10%,rgba(225,6,0,.14),transparent 60%),radial-gradient(circle at 100% 100%,rgba(225,6,0,.06),transparent 40%),#f4f5f7}.login-bg-shape{position:absolute;border-radius:50%;pointer-events:none}.login-bg-shape--1{width:280px;height:280px;top:-80px;right:-60px;background:radial-gradient(circle,rgba(225,6,0,.12),transparent 70%)}.login-bg-shape--2{width:200px;height:200px;bottom:10%;left:-50px;background:radial-gradient(circle,rgba(225,6,0,.08),transparent 70%)}.login-shell{position:relative;z-index:1;width:100%;max-width:400px}.login-card{background:var(--surface);border-radius:24px;padding:32px 24px 28px;border:1px solid var(--border);box-shadow:0 4px 16px #0000000a,0 20px 48px #00000012;overflow:hidden}.login-card:before{content:"";display:block;height:4px;margin:-32px -24px 24px;background:linear-gradient(90deg,var(--ouno-red),var(--ouno-red-dark))}.login-brand{text-align:center;margin-bottom:28px}.login-logo{width:96px;height:auto;margin-bottom:18px}.login-badge{display:inline-block;padding:8px 18px;border-radius:999px;background:linear-gradient(135deg,var(--ouno-red),var(--ouno-red-dark));color:#fff;font-size:1.05rem;font-weight:800;letter-spacing:.04em;box-shadow:0 6px 20px #e1060052}.login-subtitle{margin:14px 0 0;color:var(--muted);font-size:.88rem;line-height:1.45}.login-form{display:flex;flex-direction:column;gap:16px}.login-field{display:flex;flex-direction:column;gap:6px}.login-field label{font-size:.8rem;font-weight:700;color:#374151;letter-spacing:.02em}.login-field input{width:100%;padding:14px 16px;border:1.5px solid var(--border);border-radius:14px;font-size:1rem;background:#fafbfc;color:var(--text);transition:border-color .15s,box-shadow .15s,background .15s}.login-field input::placeholder{color:#9ca3af}.login-field input:focus{outline:none;border-color:#e1060073;background:#fff;box-shadow:0 0 0 4px var(--ouno-red-soft)}.login-field input:disabled{opacity:.65;cursor:not-allowed}.login-error{padding:12px 14px;border-radius:12px;background:#fef2f2;color:#b91c1c;font-size:.86rem;font-weight:500;border:1px solid #fecaca;line-height:1.4}.login-btn{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:4px;width:100%;padding:15px 20px;border:none;border-radius:14px;background:linear-gradient(135deg,var(--ouno-red),var(--ouno-red-dark));color:#fff;font-size:1rem;font-weight:700;letter-spacing:.02em;cursor:pointer;box-shadow:0 8px 24px #e1060059;transition:transform .1s,box-shadow .15s,opacity .15s}.login-btn:hover:not(:disabled){box-shadow:0 10px 28px #e106006b}.login-btn:disabled{opacity:.75;cursor:wait}.login-btn:not(:disabled):active{transform:scale(.985)}.login-btn-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:login-spin .7s linear infinite}@keyframes login-spin{to{transform:rotate(360deg)}}.login-footer{margin:20px 0 0;text-align:center;font-size:.72rem;font-weight:600;letter-spacing:.08em;color:#9ca3af;text-transform:uppercase}@media(min-width:480px){.login-card{padding:36px 32px 32px}.login-card:before{margin:-36px -32px 28px}.login-logo{width:108px}.login-badge{font-size:1.12rem}}.order-scan-panel{position:sticky;top:calc(56px + env(safe-area-inset-top,0px));z-index:15;margin-bottom:16px;padding:14px 16px;background:#fffffff5;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--border, #e8eaee);border-radius:16px;box-shadow:0 2px 10px #0000000a;transition:border-color .2s,box-shadow .2s,background .2s}.order-scan-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.order-scan-mode{display:inline-block;padding:4px 10px;border-radius:999px;background:#4f46e51a;color:#4338ca;font-size:.72rem;font-weight:800;letter-spacing:.04em}.order-scan-active-line{margin-top:6px;font-size:.78rem;font-weight:600;color:#374151;line-height:1.35}.order-scan-reset-btn{flex-shrink:0;padding:6px 10px;border:1px solid #e8eaee;border-radius:8px;background:#fff;color:#6b7280;font-size:.72rem;font-weight:700;cursor:pointer}.order-scan-input{width:100%;padding:14px 16px;border:2px solid rgba(79,70,229,.22);border-radius:14px;font-size:1rem;font-weight:600;background:#fff;color:#111827}.order-scan-input:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 4px #6366f11f}.order-scan-input:disabled{opacity:.6}.order-scan-qr-block{margin-top:12px}.order-scan-qr-label{display:block;margin-bottom:6px;font-size:.72rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#4338ca}.order-scan-input--qr{border-style:dashed}.order-scan-feedback{margin-top:10px;padding:10px 12px;border-radius:10px;font-size:.82rem;font-weight:600;line-height:1.35}.order-scan-feedback--success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}.order-scan-feedback--error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.order-scan-feedback--info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.order-detail-page{--ouno-red: #e10600;--ouno-red-dark: #b80500;--accent: #4f46e5;--accent-dark: #4338ca;--accent-soft: rgba(79, 70, 229, .08);--surface: #ffffff;--text: #111827;--muted: #6b7280;--border: #e8eaee;position:relative;min-height:100dvh;background:radial-gradient(ellipse 120% 80% at 50% -20%,rgba(79,70,229,.05),transparent 55%),#f4f5f7}.order-detail-page--flash-success:after,.order-detail-page--flash-error:after{content:"";position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;pointer-events:none;animation-duration:.55s;animation-timing-function:ease;animation-fill-mode:both}.order-detail-page--flash-success:after{animation-name:order-detail-flash-success}.order-detail-page--flash-error:after{animation-name:order-detail-flash-error}@keyframes order-detail-flash-success{0%,to{background:transparent;box-shadow:inset 0 0 #10b98100}35%{background:#10b98161;box-shadow:inset 0 0 0 6px #10b9818c}}@keyframes order-detail-flash-error{0%,to{background:transparent;box-shadow:inset 0 0 #ef444400}35%{background:#ef444457;box-shadow:inset 0 0 0 6px #ef44448c}}.order-detail-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));background:#ffffffeb;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border);box-shadow:0 1px 12px #0000000a}.order-detail-header-center{flex:1;min-width:0;text-align:center}.order-detail-header-actions{flex-shrink:0;display:flex;align-items:center;gap:8px}.order-detail-icon-btn--active{color:var(--accent);border-color:#4f46e559;background:var(--accent-soft)}.order-detail-header-label{display:block;font-size:.68rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:2px}.order-detail-header-center h1{margin:0;font-size:1rem;font-weight:800;color:var(--ouno-red);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-detail-icon-btn{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--muted);text-decoration:none;cursor:pointer;transition:color .15s,border-color .15s,background .15s,transform .1s}.order-detail-icon-btn:hover:not(:disabled){color:var(--accent);border-color:#4f46e547;background:var(--accent-soft)}.order-detail-icon-btn:active:not(:disabled){transform:scale(.94)}.order-detail-icon-btn:disabled{opacity:.5;cursor:not-allowed}.order-detail-icon-btn--spin svg{animation:order-detail-spin .7s linear infinite}@keyframes order-detail-spin{to{transform:rotate(360deg)}}.order-detail-main{padding:14px 14px 24px;max-width:520px;margin:0 auto}.order-detail-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:32px 16px;color:var(--muted);font-size:.9rem}.order-detail-state--error{color:#b91c1c;background:#fef2f2;border-radius:14px;border:1px solid #fecaca}.order-detail-state--error p{margin:0}.order-detail-back-link{margin-top:12px;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:10px;background:#fff;border:1px solid #fecaca;color:#b91c1c;font-size:.82rem;font-weight:700;text-decoration:none}.order-detail-spinner{width:28px;height:28px;border:3px solid #e5e7eb;border-top-color:var(--accent);border-radius:50%;animation:order-detail-spin .7s linear infinite}.order-detail-summary{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:8px 10px;margin-bottom:10px;box-shadow:0 1px 6px #00000008}.order-detail-summary-row{display:flex;align-items:flex-start;gap:8px}.order-detail-summary-row+.order-detail-summary-row{margin-top:6px;padding-top:6px;border-top:1px solid #f1f5f9}.order-detail-summary-label{flex-shrink:0;width:4.6rem;font-size:.6rem;font-weight:800;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em;line-height:1.35;padding-top:1px}.order-detail-summary-value{flex:1;min-width:0;font-size:.72rem;font-weight:600;color:#334155;line-height:1.35;word-break:break-word}.order-detail-products-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.order-detail-products-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.order-detail-shelf-sort{min-height:28px;padding:4px 10px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#334155;font-size:.68rem;font-weight:800;letter-spacing:.02em;cursor:pointer;white-space:nowrap}.order-detail-shelf-sort:active{background:#f8fafc;border-color:#94a3b8}.order-detail-products-head h2{margin:0;font-size:.92rem;font-weight:800;color:var(--text)}.order-detail-products-summary{flex-shrink:0;display:inline-flex;align-items:stretch;border-radius:12px;border:1.5px solid #dbe3ee;background:#fff;box-shadow:0 2px 8px #0f172a0f;overflow:hidden}.order-detail-products-summary--complete{border-color:#22c55e59;background:linear-gradient(180deg,#fff,#f0fdf4)}.order-detail-products-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:54px;padding:7px 12px}.order-detail-products-stat-value{font-size:1rem;font-weight:800;color:#0f172a;line-height:1;font-variant-numeric:tabular-nums}.order-detail-products-summary--complete .order-detail-products-stat-value{color:#15803d}.order-detail-products-stat-label{margin-top:3px;font-size:.62rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.08em;line-height:1}.order-detail-products-summary--complete .order-detail-products-stat-label{color:#16a34a}.order-detail-products-stat-divider{width:1px;align-self:stretch;background:#e2e8f0}.order-detail-products-summary--complete .order-detail-products-stat-divider{background:#22c55e38}.order-detail-lines{display:flex;flex-direction:column;gap:10px}.order-line-card{position:relative;display:flex;align-items:flex-start;gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:14px 14px 14px 12px;box-shadow:0 2px 10px #0000000a;overflow:hidden;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .1s}.order-line-card:active{transform:scale(.99)}.order-line-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#cbd5e1;border-radius:16px 0 0 16px}.order-line-card--pending{background:var(--surface)}.order-line-card--pending .order-line-index{background:#f1f5f9;color:#64748b}.order-line-card--active:before,.order-line-card--partial:before{background:linear-gradient(180deg,#ea580c,#c2410c)}.order-line-card--active,.order-line-card--partial{background:#fff7ed;border-color:#ea580c38;box-shadow:0 2px 8px #ea580c0f}.order-line-card--active{box-shadow:0 0 0 2px #f59e0b29,0 2px 8px #ea580c14}.order-line-card--active .order-line-index,.order-line-card--partial .order-line-index{background:#ea580c24;color:#c2410c}.order-line-card--complete:before{background:linear-gradient(180deg,#22c55e,#15803d)}.order-line-card--complete{background:#f0fdf4;border-color:#22c55e3d;box-shadow:0 2px 8px #22c55e0f;opacity:1}.order-line-card--complete .order-line-index{background:#22c55e24;color:#15803d}.order-line-card--gap{border-color:#ef444452;box-shadow:0 0 0 2px #ef44441f,0 2px 8px #ef44440f;background:#fef2f2;opacity:1}.order-line-card--gap:before{background:linear-gradient(180deg,#ef4444,#b91c1c)!important}.order-line-card--gap .order-line-index{background:#ef444424;color:#dc2626}.order-line-card--gap .order-line-meta-status{color:#dc2626}.order-line-card:not(.order-line-card--complete):not(.order-line-card--active):not(.order-line-card--partial):not(.order-line-card--gap):before{background:linear-gradient(180deg,#94a3b8,#64748b)}.order-line-index{flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--accent-soft);color:var(--accent-dark);font-size:.78rem;font-weight:800;margin-left:4px}.order-line-body{flex:1;min-width:0}.order-line-pick{margin-bottom:8px;padding:9px 11px;border-radius:12px;background:linear-gradient(135deg,#eef2ff,#f5f3ff);border:1px solid rgba(79,70,229,.18)}.order-line-pick--empty{background:#f8fafc;border-color:#e2e8f0}.order-line-pick-label{display:block;margin-bottom:3px;font-size:.62rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#64748b}.order-line-pick-value{display:block;font-size:1.08rem;font-weight:800;line-height:1.25;color:#312e81;word-break:break-word;overflow-wrap:anywhere}.order-line-pick--empty .order-line-pick-value{font-size:.86rem;font-weight:700;color:#94a3b8}.order-line-code{margin-bottom:4px;font-size:.74rem;font-weight:700;color:#64748b;font-variant-numeric:tabular-nums;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-line-code:before{content:"Barkod · ";font-weight:600;color:#94a3b8}.order-line-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:6px;margin-top:10px;margin-bottom:2px}.order-line-meta-item{display:flex;flex-direction:column;gap:2px;min-width:0;padding:6px 8px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0}.order-line-meta-item--stock .order-line-meta-value{color:#047857}.order-line-meta-label{font-size:.58rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#94a3b8}.order-line-meta-value{font-size:.88rem;font-weight:800;color:#1e293b;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-line-meta-status{font-size:.82rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-line-meta-status--pending{color:#6b7280}.order-line-meta-status--active{color:#b45309}.order-line-meta-status--partial{color:#c2410c}.order-line-meta-status--complete{color:#15803d}.order-line-stock-note{margin-top:8px;margin-bottom:2px;font-size:.72rem;color:#b45309;font-weight:600;line-height:1.35}.order-line-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.84rem;font-weight:600;color:var(--text);line-height:1.35;word-break:break-word}.order-line-status{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.66rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.order-line-status--pending{background:#f3f4f6;color:#6b7280}.order-line-status--active{background:#fffbeb;color:#b45309}.order-line-status--partial{background:#fff7ed;color:#c2410c}.order-line-status--complete{background:#22c55e1f;color:#15803d}.order-line-progress-text{font-size:.74rem;font-weight:600;color:var(--muted)}.order-line-serials-accordion{margin-top:10px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#fff}.order-line-serials-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:8px 10px;border:0;background:#f9fafb;color:var(--text);cursor:pointer;text-align:left}.order-line-serials-toggle--open{border-bottom:1px solid var(--border)}.order-line-serials-toggle--bad{background:#fef2f2}.order-line-serials-toggle-label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:.74rem;font-weight:700}.order-line-serials-toggle-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);font-size:.68rem;font-weight:800}.order-line-serials-toggle--bad .order-line-serials-toggle-count{background:#fee2e2;color:#b91c1c}.order-line-serials-toggle-alert{font-size:.66rem;font-weight:800;color:#b91c1c}.order-line-serials-chevron--open{transform:rotate(90deg)}.order-line-serials-toggle svg{flex-shrink:0;transition:transform .2s ease}.order-line-serials-panel{max-height:0;overflow:hidden;transition:max-height .22s ease}.order-line-serials-panel--open{max-height:320px;overflow-y:auto}.order-line-serials{list-style:none;margin:0;padding:8px;display:flex;flex-direction:column;gap:6px}.order-line-serial-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:#f9fafb;border:1px solid var(--border)}.order-line-serial-no{flex:1;min-width:0;font-size:.76rem;font-weight:700;color:var(--text);word-break:break-all;font-variant-numeric:tabular-nums}.order-line-serial-item--ok{background:#ecfdf5;border-color:#a7f3d0}.order-line-serial-item--bad{background:#fef2f2;border-color:#fecaca}.order-line-serial-status{flex-shrink:0;font-size:.64rem;font-weight:700;color:var(--muted)}.order-line-serial-item--bad .order-line-serial-status{color:#b91c1c}.order-line-serial-item--ok .order-line-serial-status{color:#047857}.order-line-serial-depo{flex-shrink:0;font-size:.66rem;font-weight:700;color:var(--muted)}.order-line-serial-delete{flex-shrink:0;width:28px;height:28px;border:1px solid #fecaca;border-radius:8px;background:#fff;color:#b91c1c;font-size:1.1rem;line-height:1;cursor:pointer}.order-line-serial-delete:disabled{opacity:.5;cursor:not-allowed}.order-line-qty{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:48px;padding:8px 6px;border-radius:12px;background:#f9fafb;border:1px solid var(--border)}.order-line-side{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:8px;align-self:center}.order-line-stock-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1.5px solid rgba(59,130,246,.45);border-radius:10px;background:#3b82f614;color:#1d4ed8;font-size:.92rem;font-weight:800;cursor:pointer}.order-line-stock-btn:hover:not(:disabled){background:#3b82f624;border-color:#3b82f6a6}.order-line-stock-btn:disabled{opacity:.45;cursor:not-allowed}.order-line-qty-num{font-size:1.35rem;font-weight:800;color:var(--text);line-height:1;font-variant-numeric:tabular-nums}.order-line-qty-unit{margin-top:2px;font-size:.62rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.order-detail-note{display:none}.order-detail-logo-mode{margin:0 0 10px;padding:0;border:0}.order-detail-logo-mode-legend{margin-bottom:6px;padding:0;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.order-detail-logo-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.order-detail-logo-mode-option{position:relative;display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 10px 8px 28px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#475569;font-size:.74rem;font-weight:700;cursor:pointer}.order-detail-logo-mode-option input{position:absolute;left:10px;width:14px;height:14px;margin:0;accent-color:#4f46e5;cursor:pointer}.order-detail-logo-mode-option--active{border-color:#4f46e559;background:#4f46e514;color:#312e81;box-shadow:inset 0 0 0 1px #4f46e51f}.order-detail-logo-mode-option:active:not(.order-detail-logo-mode-option--active){background:#f8fafc}.order-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.order-detail-actions--single{grid-template-columns:1fr}.order-detail-action-btn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 12px;border:none;border-radius:12px;font-size:.82rem;font-weight:800;color:#fff;cursor:pointer;transition:transform .1s,opacity .15s}.order-detail-action-btn:active:not(:disabled){transform:scale(.98)}.order-detail-action-btn:disabled{opacity:.55;cursor:not-allowed}.order-detail-action-btn--irsaliye{background:linear-gradient(135deg,#334155,#1e293b);box-shadow:0 4px 14px #1e293b38}.order-detail-action-btn--etiket{background:linear-gradient(135deg,var(--accent),var(--accent-dark));box-shadow:0 4px 14px #4f46e538}.order-detail-release{margin-bottom:12px}.order-detail-release-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;padding:10px 14px;border:1px solid rgba(245,158,11,.45);border-radius:12px;background:linear-gradient(135deg,#fffbeb,#fef3c7);color:#92400e;font-size:.82rem;font-weight:800;cursor:pointer;transition:transform .1s,opacity .15s}.order-detail-release-btn:active:not(:disabled){transform:scale(.99)}.order-detail-release-btn:disabled{opacity:.55;cursor:not-allowed}.order-detail-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:#0f172a73;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.order-detail-modal{width:min(100%,420px);max-height:min(85dvh,640px);overflow:auto;background:#fff;border-radius:16px;box-shadow:0 20px 50px #0003}.order-detail-modal--wide{width:min(100%,560px)}.order-detail-modal-head{padding:14px 16px;border-bottom:1px solid var(--border)}.order-detail-modal-head h3{margin:0;font-size:.95rem;font-weight:800;color:var(--text)}.order-detail-modal-subtitle{margin:6px 0 0;font-size:.82rem;color:var(--muted);font-weight:600}.order-detail-modal-body{padding:14px 16px;font-size:.86rem;line-height:1.5;color:#374151}.order-detail-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px 16px}.order-detail-modal-input{width:100%;padding:12px 14px;border:2px solid #e5e7eb;border-radius:10px;font-size:1rem;font-weight:600}.order-detail-modal-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #4f46e51f}.order-detail-modal-error{margin-top:8px;color:#b91c1c;font-size:.8rem;font-weight:600}.order-detail-modal-btn{padding:9px 14px;border-radius:10px;border:1px solid var(--border);background:#fff;color:#374151;font-size:.82rem;font-weight:700;cursor:pointer}.order-detail-modal-btn--primary{border-color:transparent;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff}.order-detail-serial-table{width:100%;border-collapse:collapse;font-size:.78rem}.order-detail-serial-table th,.order-detail-serial-table td{padding:8px 6px;border-bottom:1px solid #f1f5f9;text-align:left}.order-detail-serial-table th{color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:.68rem}.order-detail-serial-table tr.is-bad td{color:#b91c1c;font-weight:600}.order-detail-stock-state{padding:18px 0;text-align:center;color:var(--muted);font-size:.9rem}.order-detail-stock-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.order-detail-stock-count{font-size:.82rem;font-weight:700;color:var(--text)}.order-detail-stock-toolbar-actions{display:flex;gap:8px}.order-detail-stock-action{padding:6px 10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#1d4ed8;font-size:.78rem;font-weight:700;cursor:pointer}.order-detail-stock-action:disabled{opacity:.5;cursor:not-allowed}.order-detail-stock-list{list-style:none;margin:0;padding:0;max-height:min(52vh,420px);overflow:auto;border:1px solid var(--border);border-radius:12px}.order-detail-stock-item+.order-detail-stock-item{border-top:1px solid #f1f5f9}.order-detail-stock-option{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;padding:10px 12px;cursor:pointer}.order-detail-stock-option--used{opacity:.65;cursor:not-allowed}.order-detail-stock-serial{font-size:.86rem;font-weight:700;color:var(--text);word-break:break-all}.order-detail-stock-depo,.order-detail-stock-used{font-size:.74rem;font-weight:600;color:var(--muted)}.order-detail-stock-used{color:#b45309}@media(min-width:600px){.order-detail-main{max-width:640px;padding-left:20px;padding-right:20px}.order-detail-header-center h1{font-size:1.1rem}.order-line-qty-num{font-size:1.5rem}}.stock-page{--ouno-red: #e10600;--ouno-red-dark: #b80500;--surface: #ffffff;--text: #111827;--muted: #6b7280;--border: #e8eaee;position:relative;min-height:100dvh;background:#f4f5f7}.stock-page--flash-success:after,.stock-page--flash-error:after{content:"";position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;pointer-events:none;animation-duration:.55s;animation-timing-function:ease;animation-fill-mode:both}.stock-page--flash-success:after{animation-name:stock-flash-success}.stock-page--flash-error:after{animation-name:stock-flash-error}@keyframes stock-flash-success{0%,to{background:transparent}35%{background:#10b98161}}@keyframes stock-flash-error{0%,to{background:transparent}35%{background:#ef444457}}.stock-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--border)}.stock-toolbar-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:1.5px solid var(--ouno-red);border-radius:10px;background:var(--surface);color:var(--ouno-red);font-size:.95rem;font-weight:600;text-decoration:none;cursor:pointer}.stock-toolbar-btn:active{background:#e106000f}.stock-main{padding:16px 14px 24px;display:flex;flex-direction:column;gap:14px}.stock-scan{display:flex;flex-direction:column;gap:8px}.stock-scan-label{display:inline-flex;align-items:center;gap:8px;font-size:.92rem;font-weight:700;color:var(--text)}.stock-scan-input{width:100%;min-height:48px;padding:12px 14px;border:1.5px solid var(--border);border-radius:12px;background:var(--surface);font-size:1rem;color:var(--text)}.stock-scan-input:focus{outline:none;border-color:#e1060073;box-shadow:0 0 0 3px #e106001a}.stock-feedback{padding:12px 14px;border-radius:12px;font-size:.9rem;font-weight:600;line-height:1.4}.stock-feedback--success{background:#ecfdf5;color:#047857;border:1px solid rgba(16,185,129,.25)}.stock-feedback--error{background:#fef2f2;color:#b91c1c;border:1px solid rgba(239,68,68,.25)}.stock-feedback--info{background:#eff6ff;color:#1d4ed8;border:1px solid rgba(59,130,246,.25)}.stock-state{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 0;color:var(--muted);font-size:.92rem}.stock-spinner{width:28px;height:28px;border:3px solid #e5e7eb;border-top-color:var(--ouno-red);border-radius:50%;animation:stock-spin .8s linear infinite}@keyframes stock-spin{to{transform:rotate(360deg)}}.stock-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:0 2px 10px #0000000a}.stock-card-code{margin:0 0 14px;font-size:.88rem;font-weight:700;color:var(--muted);word-break:break-all}.stock-card-fields{margin:0;display:grid;gap:10px}.stock-card-row{display:grid;grid-template-columns:88px 1fr;gap:10px;align-items:baseline}.stock-card-row dt{margin:0;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#94a3b8}.stock-card-row dd{margin:0;font-size:1.35rem;font-weight:800;color:var(--text);line-height:1.2;word-break:break-word}.stock-card-row--highlight dd{color:#312e81}.orders-page{--ouno-red: #e10600;--ouno-red-dark: #b80500;--ouno-red-soft: rgba(225, 6, 0, .08);--surface: #ffffff;--text: #111827;--muted: #6b7280;--border: #e8eaee;min-height:100dvh;background:radial-gradient(ellipse 120% 80% at 50% -20%,rgba(225,6,0,.06),transparent 55%),#f4f5f7}.orders-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));background:#ffffffeb;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border);box-shadow:0 1px 12px #0000000a}.orders-header-center{flex:1;min-width:0;text-align:center}.orders-header-center h1{margin:0;font-size:.95rem;font-weight:800;color:var(--text);line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.orders-group-badge{display:inline-block;margin-top:4px;padding:2px 10px;border-radius:999px;background:linear-gradient(135deg,var(--ouno-red),var(--ouno-red-dark));color:#fff;font-size:.6rem;font-weight:800;letter-spacing:.1em}.orders-icon-btn{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--muted);text-decoration:none;cursor:pointer;transition:color .15s,border-color .15s,background .15s,transform .1s}.orders-icon-btn:hover:not(:disabled){color:var(--ouno-red);border-color:#e106004d;background:var(--ouno-red-soft)}.orders-icon-btn:active:not(:disabled){transform:scale(.94)}.orders-icon-btn:disabled{opacity:.5;cursor:not-allowed}.orders-icon-btn--spin svg{animation:orders-spin .7s linear infinite}@keyframes orders-spin{to{transform:rotate(360deg)}}.orders-toolbar{padding:12px 14px;display:flex;flex-direction:column;gap:10px}.orders-count-pill{align-self:flex-start;padding:4px 12px;border-radius:999px;background:var(--ouno-red-soft);border:1px solid rgba(225,6,0,.14);color:var(--ouno-red);font-size:.75rem;font-weight:700}.orders-search-wrap{display:flex;align-items:center;gap:10px;padding:0 14px;background:var(--surface);border:1.5px solid var(--border);border-radius:14px;box-shadow:0 2px 8px #00000008;color:#9ca3af;transition:border-color .15s,box-shadow .15s}.orders-search-wrap:focus-within{border-color:#e1060066;box-shadow:0 0 0 4px var(--ouno-red-soft);color:var(--ouno-red)}.orders-search{flex:1;min-width:0;padding:13px 0;border:none;background:transparent;font-size:.95rem;color:var(--text)}.orders-search:focus{outline:none}.orders-search::placeholder{color:#9ca3af}.orders-list{padding:0 14px 28px;padding-bottom:max(28px,env(safe-area-inset-bottom));max-width:520px;margin:0 auto;display:flex;flex-direction:column;gap:10px}.orders-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:40px 16px;color:var(--muted);font-size:.9rem}.orders-state--error{color:#b91c1c;background:#fef2f2;border-radius:14px;border:1px solid #fecaca}.orders-state-spinner{width:28px;height:28px;border:3px solid #e5e7eb;border-top-color:var(--ouno-red);border-radius:50%;animation:orders-spin .7s linear infinite}.order-card{position:relative;display:block;text-decoration:none;color:inherit;background:var(--surface);border-radius:16px;padding:14px 16px;border:1px solid var(--border);box-shadow:0 2px 8px #0000000a,0 8px 24px #00000008;overflow:hidden;transition:transform .12s,box-shadow .15s,border-color .15s}.order-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#d1d5db;border-radius:16px 0 0 16px;transition:background .15s}.order-card--busy:before{background:linear-gradient(180deg,#f59e0b,#d97706)}.order-card:not(.order-card--busy):before{background:linear-gradient(180deg,var(--ouno-red),var(--ouno-red-dark))}.order-card:active{transform:scale(.985)}.order-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding-left:6px}.order-card-title{font-size:.95rem;font-weight:800;color:var(--text);line-height:1.3;word-break:break-word}.order-card-chevron{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;background:var(--ouno-red-soft);color:var(--ouno-red)}.order-card-body{display:flex;flex-direction:column;gap:8px;padding-left:6px}.order-row{display:grid;grid-template-columns:minmax(88px,34%) 1fr;gap:8px;align-items:start;font-size:.82rem;line-height:1.35}.order-label{color:var(--muted);font-weight:600}.order-value{color:var(--text);font-weight:500;word-break:break-word}.order-row--highlight{margin-top:2px;padding:6px 8px;margin-left:-8px;margin-right:-4px;border-radius:10px;background:#fffbeb;border:1px solid #fde68a}.order-row--highlight .order-label{color:#b45309}.order-row--highlight .order-value{color:#92400e;font-weight:700}@media(min-width:600px){.orders-header-center h1{font-size:1.05rem}.orders-list{max-width:640px;padding-left:20px;padding-right:20px}.orders-toolbar{max-width:640px;margin:0 auto;padding-left:20px;padding-right:20px}.order-card-title{font-size:1rem}.order-row{font-size:.86rem}}*,*:before,*:after{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{font-family:Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:#111827;background:#f3f4f6;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button,input{font:inherit}.app-loading{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#6b7280}.app-loading-spinner{width:36px;height:36px;border:3px solid #e5e7eb;border-top-color:#f59e0b;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
