@import "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap";:root{--bg-primary:#0a0c16;--bg-secondary:#0d1121b3;--bg-card:#161c3673;--bg-input:#0a0c16cc;--accent-primary:#6366f1;--accent-secondary:#a855f7;--accent-cyan:#06b6d4;--accent-pink:#ec4899;--text-primary:#f8fafc;--text-secondary:#94a3b8;--text-muted:#64748b;--border-color:#ffffff12;--border-hover:#6366f166;--border-focus:#6366f1b3;--glass-blur:16px;--glass-reflection:linear-gradient(135deg, #ffffff0d 0%, #fff0 100%);--color-pending:#f59e0b;--color-shipped:#3b82f6;--color-delivered:#10b981;--color-cancelled:#ef4444;--font-sans:"Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-display:"Outfit", var(--font-sans);--font-mono:"JetBrains Mono", monospace;--shadow-sm:0 2px 8px -1px #0000004d;--shadow-md:0 10px 25px -5px #00000080;--shadow-lg:0 20px 50px -12px #0009;--shadow-glow:0 0 30px #6366f126}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);background-color:var(--bg-primary);color:var(--text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:radial-gradient(at 0 0,#6366f11a 0,#0000 50%),radial-gradient(at 100% 100%,#a855f714 0,#0000 50%),radial-gradient(at 50% 0,#06b6d40d 0,#0000 50%);background-attachment:fixed;min-height:100vh;line-height:1.5;overflow-x:hidden}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-primary)}::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#6366f166}h1,h2,h3,h4,h5,h6{font-family:var(--font-display);letter-spacing:-.02em;font-weight:600}.app-container{flex-direction:column;gap:1.5rem;max-width:1440px;min-height:100vh;margin:0 auto;padding:1.5rem;display:flex}.app-header{background:var(--bg-secondary);-webkit-backdrop-filter:blur(var(--glass-blur));border:1px solid var(--border-color);box-shadow:var(--shadow-md);border-radius:16px;justify-content:space-between;align-items:center;padding:1.25rem 2rem;display:flex}.brand{align-items:center;gap:.75rem;display:flex}.brand-icon{color:var(--accent-primary);filter:drop-shadow(0 0 8px #6366f199)}.brand-title{background:linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 70%, var(--accent-secondary) 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;font-size:1.5rem;font-weight:700}.header-controls{align-items:center;gap:1rem;display:flex}.sync-pill{border:1px solid var(--border-color);border-radius:50px;align-items:center;gap:.5rem;padding:.5rem .875rem;font-size:.85rem;font-weight:500;transition:all .3s;display:flex}.sync-pill.synced{color:var(--color-delivered);background:#10b9811a;border-color:#10b9814d}.sync-pill.syncing{color:var(--color-shipped);background:#3b82f61a;border-color:#3b82f64d}.sync-pill.error{color:var(--color-cancelled);background:#ef44441a;border-color:#ef44444d}.sync-pill.offline{color:var(--text-secondary);background:#94a3b81a;border-color:#94a3b84d}.dot-animation{background-color:currentColor;border-radius:50%;width:8px;height:8px}.syncing .dot-animation{animation:1.5s infinite pulse}@keyframes pulse{0%{opacity:.5;transform:scale(.8)}50%{opacity:1;transform:scale(1.2)}to{opacity:.5;transform:scale(.8)}}.btn{cursor:pointer;border:1px solid #0000;border-radius:10px;outline:none;justify-content:center;align-items:center;gap:.5rem;padding:.625rem 1.25rem;font-size:.9rem;font-weight:500;transition:all .2s cubic-bezier(.4,0,.2,1);display:inline-flex}.btn-primary{background:linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);color:#fff;box-shadow:var(--shadow-sm)}.btn-primary:hover{box-shadow:var(--shadow-glow);opacity:.95;transform:translateY(-1px)}.btn-primary:active{transform:translateY(1px)}.btn-secondary{background:var(--bg-card);border-color:var(--border-color);color:var(--text-primary)}.btn-secondary:hover{border-color:var(--border-hover);color:#fff;background:#ffffff0d}.btn-danger{color:var(--color-cancelled);background:#ef44441a;border-color:#ef444433}.btn-danger:hover{border-color:var(--color-cancelled);background:#ef444433}.btn-icon-only{background:var(--bg-card);border:1px solid var(--border-color);color:var(--text-secondary);cursor:pointer;border-radius:10px;padding:.625rem;transition:all .2s}.btn-icon-only:hover{color:var(--text-primary);border-color:var(--border-hover);background:#ffffff0d}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem;display:grid}.stat-card{background:var(--bg-card);-webkit-backdrop-filter:blur(var(--glass-blur));border:1px solid var(--border-color);box-shadow:var(--shadow-sm);border-radius:16px;justify-content:space-between;align-items:flex-start;padding:1.5rem;transition:all .3s;display:flex;position:relative;overflow:hidden}.stat-card:before{content:"";background:var(--glass-reflection);pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0}.stat-card:hover{border-color:var(--border-hover);box-shadow:var(--shadow-md);transform:translateY(-2px)}.stat-details h3{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem;font-size:.85rem}.stat-value{font-size:1.875rem;font-weight:700;font-family:var(--font-display);color:var(--text-primary)}.stat-icon-wrapper{background:#ffffff08;border:1px solid #ffffff0d;border-radius:12px;justify-content:center;align-items:center;padding:.75rem;display:flex}.stat-card:first-child .stat-icon-wrapper{color:var(--accent-primary);background:#6366f11a}.stat-card:nth-child(2) .stat-icon-wrapper{color:var(--accent-secondary);background:#a855f71a}.stat-card:nth-child(3) .stat-icon-wrapper{color:var(--color-pending);background:#f59e0b1a}.stat-card:nth-child(4) .stat-icon-wrapper{color:var(--color-delivered);background:#10b9811a}.stat-card:nth-child(5) .stat-icon-wrapper{color:var(--accent-cyan);background:#06b6d41a}.main-content{background:var(--bg-secondary);-webkit-backdrop-filter:blur(var(--glass-blur));border:1px solid var(--border-color);box-shadow:var(--shadow-lg);border-radius:16px;flex-direction:column;gap:1.25rem;min-height:500px;padding:1.5rem;display:flex}.control-bar{border-bottom:1px solid var(--border-color);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding-bottom:1.25rem;display:flex}.search-wrapper{flex:1;min-width:280px;max-width:450px;position:relative}.search-icon{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:1rem;transform:translateY(-50%)}.search-input{background:var(--bg-input);border:1px solid var(--border-color);width:100%;color:var(--text-primary);font-family:var(--font-sans);border-radius:10px;outline:none;padding:.625rem 1rem .625rem 2.75rem;font-size:.9rem;transition:all .2s}.search-input:focus{border-color:var(--border-focus);box-shadow:0 0 10px #6366f133}.filters-wrapper{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.select-filter{background:var(--bg-input);border:1px solid var(--border-color);color:var(--text-primary);font-family:var(--font-sans);cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-position:right .75rem center;background-repeat:no-repeat;background-size:16px;border-radius:10px;outline:none;padding:.625rem 2.25rem .625rem 1rem;font-size:.9rem;transition:all .2s}.select-filter:focus{border-color:var(--border-focus)}.table-wrapper{border:1px solid var(--border-color);border-radius:10px;overflow-x:auto}.orders-table{border-collapse:collapse;text-align:left;width:100%;font-size:.9rem}.orders-table th{color:var(--text-secondary);border-bottom:1px solid var(--border-color);-webkit-user-select:none;user-select:none;background:#ffffff05;padding:1rem;font-weight:600}.orders-table td{border-bottom:1px solid var(--border-color);color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;max-width:250px;padding:1rem;overflow:hidden}.orders-table tbody tr{cursor:pointer;transition:background-color .15s}.orders-table tbody tr:hover{background:#ffffff05}.badge{text-transform:uppercase;letter-spacing:.03em;border-radius:50px;align-items:center;padding:.25rem .625rem;font-size:.75rem;font-weight:600;display:inline-flex}.badge-delivered{color:#b91c1c!important;background-color:#fee2e2!important;border:1px solid #fca5a5!important}.badge-lost{color:#b45309!important;background-color:#fef3c7!important;border:1px solid #fde68a!important}.badge-returned{color:#15803d!important;background-color:#dcfce7!important;border:1px solid #bbf7d0!important}.badge-missing{color:#1d4ed8!important;background-color:#dbeafe!important;border:1px solid #bfdbfe!important}.badge-not-in-stock{color:#fff!important;background-color:#991b1b!important;border:1px solid #7f1d1d!important}.badge-on-the-way{color:#fff!important;background-color:#065f46!important;border:1px solid #047857!important}.badge-empty,.badge-pending{color:#94a3b8!important;background-color:#ffffff0d!important;border:1px solid #ffffff1a!important}.modal-overlay{-webkit-backdrop-filter:blur(10px);z-index:1000;background:#04050bcc;justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0}.modal-content{width:100%;max-width:800px;max-height:90vh;box-shadow:var(--shadow-lg);background:#0f1224;border:1px solid #ffffff1a;border-radius:20px;flex-direction:column;display:flex;overflow-y:auto}.modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:1.5rem;display:flex}.modal-header h2{font-size:1.35rem;font-family:var(--font-display)}.modal-body{flex-direction:column;gap:1.5rem;padding:1.5rem;display:flex}.modal-footer{border-top:1px solid var(--border-color);justify-content:flex-end;gap:.75rem;padding:1.25rem 1.5rem;display:flex}.details-grid{grid-template-columns:repeat(2,1fr);gap:1rem;display:grid}.grid-span-2{grid-column:span 2}.info-group{flex-direction:column;gap:.375rem;display:flex}.info-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;font-size:.75rem;font-weight:500}.info-value{color:var(--text-primary);background:var(--bg-input);border:1px solid var(--border-color);border-radius:8px;align-items:center;min-height:2.25rem;padding:.5rem .75rem;font-size:.95rem;display:flex}.info-value a{color:var(--accent-cyan);text-decoration:none}.info-value a:hover{text-decoration:underline}.form-input{background:var(--bg-input);border:1px solid var(--border-color);width:100%;color:var(--text-primary);font-family:var(--font-sans);border-radius:8px;outline:none;padding:.5rem .75rem;font-size:.95rem}.form-input:focus{border-color:var(--border-focus)}.sync-setup-guide{background:#6366f10d;border:1px solid #6366f126;border-radius:12px;flex-direction:column;gap:.75rem;padding:1.25rem;display:flex}.sync-setup-guide h4{color:var(--accent-primary);font-size:.95rem}.sync-setup-guide ol{color:var(--text-secondary);flex-direction:column;gap:.5rem;padding-left:1.25rem;font-size:.85rem;display:flex}.code-snippet-box{border:1px solid var(--border-color);background:#060813;border-radius:8px;padding:.75rem;position:relative}.code-snippet-box pre{font-family:var(--font-mono);color:var(--text-secondary);font-size:.8rem;overflow-x:auto}.btn-copy{padding:.25rem .5rem;font-size:.75rem;position:absolute;top:.5rem;right:.5rem}.empty-state{text-align:center;color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:1rem;padding:4rem 2rem;display:flex}.empty-state-icon{color:var(--text-muted)}.invoice-container{color:#1e293b;background:#fff;border-radius:8px;flex-direction:column;gap:2rem;max-width:800px;margin:0 auto;padding:2.5rem;font-family:system-ui,-apple-system,sans-serif;display:flex;box-shadow:0 4px 6px -1px #0000001a}.invoice-header{border-bottom:2px solid #e2e8f0;justify-content:space-between;align-items:flex-start;padding-bottom:1.5rem;display:flex}.invoice-brand h2{color:#0f172a;font-size:1.75rem}.invoice-brand p{color:#64748b;font-size:.85rem}.invoice-meta{text-align:right;flex-direction:column;gap:.25rem;display:flex}.invoice-title{color:#3b82f6;text-transform:uppercase;font-size:1.5rem;font-weight:800}.invoice-addresses{grid-template-columns:repeat(2,1fr);gap:2rem;display:grid}.address-block h4{text-transform:uppercase;color:#64748b;letter-spacing:.05em;margin-bottom:.5rem;font-size:.8rem}.address-block p{color:#334155;font-size:.9rem;line-height:1.4}.invoice-items-table{border-collapse:collapse;width:100%}.invoice-items-table th{color:#475569;background:#f8fafc;border-bottom:2px solid #e2e8f0;padding:.75rem 1rem;font-size:.85rem;font-weight:600}.invoice-items-table td{color:#334155;border-bottom:1px solid #e2e8f0;padding:1rem;font-size:.9rem}.invoice-summary{flex-direction:column;align-self:flex-end;gap:.75rem;width:300px;display:flex}.summary-row{color:#475569;justify-content:space-between;font-size:.9rem;display:flex}.summary-row.total{color:#0f172a;border-top:2px solid #e2e8f0;padding-top:.75rem;font-size:1.2rem;font-weight:700}.invoice-footer{text-align:center;color:#64748b;border-top:1px solid #e2e8f0;padding-top:1.5rem;font-size:.8rem}.seller-badge{-webkit-user-select:none;user-select:none;border-radius:50px;align-items:center;padding:.35rem .75rem;font-size:.8rem;font-weight:600;transition:all .2s;display:inline-flex}.seller-badge-0{color:#15803d!important;background-color:#dcfce7!important;border:1px solid #bbf7d0!important}.seller-badge-1{color:#b91c1c!important;background-color:#ffe4e6!important;border:1px solid #fecdd3!important}.seller-badge-2{color:#c2410c!important;background-color:#ffedd5!important;border:1px solid #fed7aa!important}.seller-badge-3{color:#fff!important;background-color:#991b1b!important;border:1px solid #7f1d1d!important}.seller-badge-4{color:#fff!important;background-color:#004b93!important;border:1px solid #00376c!important}.seller-badge-5{color:#6b21a8!important;background-color:#f3e8ff!important;border:1px solid #e9d5ff!important}.seller-select-container{width:100%;position:relative}.seller-select-trigger{background:var(--bg-input);border:1px solid var(--border-color);width:100%;min-height:2.5rem;color:var(--text-primary);cursor:pointer;text-align:left;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-position:right .75rem center;background-repeat:no-repeat;background-size:16px;border-radius:8px;outline:none;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.375rem 2.25rem .375rem .75rem;transition:all .2s;display:flex;position:relative}.seller-select-trigger:focus-within{border-color:var(--border-focus)}.seller-select-placeholder{color:var(--text-muted);font-size:.95rem}.seller-dropdown-menu{box-shadow:var(--shadow-lg);z-index:100;background:#0f1224;border:1px solid #ffffff1a;border-radius:12px;flex-direction:column;margin-top:4px;display:flex;position:absolute;top:100%;left:0;right:0;overflow:hidden}.seller-dropdown-search-box{border-bottom:1px solid var(--border-color);padding:.5rem}.seller-dropdown-search-box input{background:var(--bg-primary);border:1px solid var(--border-color);color:#fff;border-radius:6px;outline:none;width:100%;padding:.4rem .75rem;font-size:.85rem}.seller-dropdown-search-box input:focus{border-color:var(--border-focus)}.seller-dropdown-list{flex-direction:column;max-height:180px;padding:.25rem 0;display:flex;overflow-y:auto}.seller-dropdown-item{cursor:pointer;align-items:center;padding:.5rem .75rem;transition:background-color .15s;display:flex}.seller-dropdown-item:hover{background:#ffffff0a}.seller-dropdown-item-new{color:var(--accent-cyan);cursor:pointer;border-top:1px dashed var(--border-color);padding:.5rem .75rem;font-size:.85rem;font-weight:500}.seller-dropdown-item-new:hover{background:#06b6d40a}.seller-dropdown-footer{border-top:1px solid var(--border-color);background:#0003;justify-content:flex-end;padding:.5rem .75rem;display:flex}.btn-link-edit{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:.25rem;padding:.25rem;font-size:.75rem;font-weight:500;transition:all .2s;display:inline-flex}.btn-link-edit:hover{color:#fff;background:#ffffff0d}.seller-edit-panel{flex-direction:column;gap:.5rem;max-height:200px;padding:.5rem;display:flex;overflow-y:auto}.seller-edit-row{border-bottom:1px solid #ffffff05;align-items:center;gap:.5rem;padding:.25rem;display:flex}.seller-edit-input-field{background:var(--bg-primary);border:1px solid var(--border-color);color:#fff;border-radius:4px;outline:none;flex:1;padding:.25rem .5rem;font-size:.8rem}.seller-edit-input-field:focus{border-color:var(--border-focus)}.seller-edit-actions{gap:.25rem;display:flex}.btn-edit-action{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:.25rem;display:flex}.btn-edit-action:hover{color:#fff;background:#ffffff0d}.btn-edit-action.save:hover{color:var(--color-delivered);background:#10b9811a}@media print{@page{size:A4;margin:12mm 15mm}body{color:#000!important;background-color:#fff!important;background-image:none!important;margin:0!important;padding:0!important}.app-container{background:0 0!important;gap:0!important;max-width:100%!important;min-height:auto!important;margin:0!important;padding:0!important;display:block!important}.modal-header,.modal-footer,.btn,.app-header,.stats-grid,.main-content,.control-bar{display:none!important}.modal-overlay{-webkit-backdrop-filter:none!important;z-index:9999!important;background:0 0!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;display:block!important;position:absolute!important;top:0!important;left:0!important}.modal-content{box-shadow:none!important;background:0 0!important;border:none!important;width:100%!important;max-width:100%!important;max-height:none!important;display:block!important;overflow:visible!important}.modal-body{padding:0!important}.invoice-container{box-shadow:none!important;color:#000!important;gap:1.2rem!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}.invoice-header{margin-bottom:0!important;padding-bottom:.75rem!important}.invoice-brand h2{font-size:1.5rem!important}.invoice-addresses{gap:1.5rem!important}.invoice-items-table th{-webkit-print-color-adjust:exact;print-color-adjust:exact;background-color:#f1f5f9!important;padding:.5rem .75rem!important}.invoice-items-table td{padding:.6rem .75rem!important}.invoice-summary{gap:.5rem!important;width:260px!important}.invoice-feedback-card,.invoice-terms-block,.invoice-footer{margin-top:1rem!important}.invoice-container p,.invoice-container td,.invoice-container span,.invoice-container div{font-size:.8rem!important}.invoice-container h4{margin-bottom:.25rem!important;font-size:.75rem!important}.invoice-terms-block p{font-size:.65rem!important;line-height:1.3!important}}.invoice-container.theme-emerald{border-top:6px solid #059669;font-family:Plus Jakarta Sans,system-ui,sans-serif}.invoice-container.theme-emerald .invoice-title{color:#059669}.invoice-container.theme-emerald .invoice-items-table th{color:#047857;background-color:#ecfdf5;border-bottom:2px solid #a7f3d0}.invoice-container.theme-emerald .summary-row.total{color:#047857;border-top:2px solid #059669}.invoice-container.theme-royal{border:1px solid #d8e2ef;border-top:8px solid #1d4ed8;font-family:Georgia,serif}.invoice-container.theme-royal h2,.invoice-container.theme-royal .invoice-title{color:#1d4ed8;font-family:Georgia,serif}.invoice-container.theme-royal .invoice-items-table th{color:#1e40af;background-color:#eff6ff;border-bottom:2px solid #bfdbfe}.invoice-container.theme-royal .summary-row.total{color:#1e40af;border-top:2px solid #1d4ed8}.invoice-container.theme-ocean{border-top:6px solid #0d9488;border-radius:12px;font-family:Plus Jakarta Sans,sans-serif}.invoice-container.theme-ocean .invoice-title{color:#0d9488;letter-spacing:.1em}.invoice-container.theme-ocean .invoice-items-table th{color:#0f766e;background-color:#f0fdfa;border-bottom:2px solid #99f6e4}.invoice-container.theme-ocean .summary-row.total{color:#0f766e;border-top:2px solid #0d9488}.invoice-container.theme-crimson{border-top:6px solid #b91c1c;border-bottom:3px double #d97706;font-family:Georgia,serif}.invoice-container.theme-crimson .invoice-title{color:#b91c1c}.invoice-container.theme-crimson .invoice-brand h2{color:#7f1d1d}.invoice-container.theme-crimson .invoice-items-table th{color:#991b1b;background-color:#fef2f2;border-bottom:2px solid #fca5a5}.invoice-container.theme-crimson .summary-row.total{color:#991b1b;border-top:2px solid #b91c1c}.invoice-container.theme-purple{border-top:6px solid #6d28d9;border-left:2px solid #e9d5ff;font-family:Outfit,sans-serif}.invoice-container.theme-purple .invoice-title{color:#6d28d9}.invoice-container.theme-purple .invoice-items-table th{color:#5b21b6;background-color:#faf5ff;border-bottom:2px solid #e9d5ff}.invoice-container.theme-purple .summary-row.total{color:#5b21b6;border-top:2px solid #6d28d9}.invoice-container.theme-charcoal{border:1px solid #e2e8f0;font-family:system-ui,-apple-system,sans-serif}.invoice-container.theme-charcoal .invoice-title{color:#374151}.invoice-container.theme-charcoal .invoice-items-table th{color:#1f2937;background-color:#f3f4f6;border-bottom:2px solid #e5e7eb}.invoice-container.theme-charcoal .summary-row.total{color:#111827;border-top:2px solid #374151}@media print{.invoice-container.theme-emerald{border-top:6px solid #059669!important}.invoice-container.theme-royal{border-top:8px solid #1d4ed8!important}.invoice-container.theme-ocean{border-top:6px solid #0d9488!important}.invoice-container.theme-crimson{border-top:6px solid #b91c1c!important}.invoice-container.theme-purple{border-top:6px solid #6d28d9!important}.invoice-container.theme-charcoal{border:1px solid #cbd5e1!important}.invoice-container.theme-emerald .invoice-items-table th{background-color:#ecfdf5!important}.invoice-container.theme-royal .invoice-items-table th{background-color:#eff6ff!important}.invoice-container.theme-ocean .invoice-items-table th{background-color:#f0fdfa!important}.invoice-container.theme-crimson .invoice-items-table th{background-color:#fef2f2!important}.invoice-container.theme-purple .invoice-items-table th{background-color:#faf5ff!important}.invoice-container.theme-charcoal .invoice-items-table th{background-color:#f3f4f6!important}}


/* ==========================================
   OrderFlowMaster Theme Overrides & Command Center
   ========================================== */

:root {
  --bg-primary: #F4F7FB;
  --bg-secondary: #ffffffcc;
  --bg-card: #ffffff;
  --bg-input: #F7F9FC;
  --text-primary: #162033;
  --text-secondary: #6F7F97;
  --text-muted: #8899b0;
  --border-color: #dfe7f3;
  --border-hover: #9bb0d2;
  --border-focus: #6C4DF6;
  --accent-primary: #6C4DF6;
  --accent-secondary: #9A6CFF;
  --accent-cyan: #12B8F6;
  
  --bg-panel2: #f8fbff;
  --bg-panel3: #eef4ff;
  --color-green: #18BF8F;
  --color-amber: #F4A62A;
  --color-red: #EF5B6B;
  --shadow-soft: 0 8px 30px rgba(31,45,74,.08);
}

body.dark {
  --bg-primary: #070b14;
  --bg-secondary: #0d1322dd;
  --bg-card: #0d1322;
  --bg-input: #080e1a;
  --text-primary: #f7f9ff;
  --text-secondary: #7f91ad;
  --text-muted: #64748b;
  --border-color: #1b2740;
  --border-hover: #2b3e64;
  --border-focus: #6366f1;
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-cyan: #06b6d4;
  
  --bg-panel2: #10182a;
  --bg-panel3: #111b30;
  --color-green: #18bf8f;
  --color-amber: #f4a62a;
  --color-red: #ef5b6b;
  --shadow-soft: 0 8px 30px rgba(0,0,0,.20);
}

/* Modal and dropdown layout overrides for bright/dark */
.modal-content {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}
.seller-dropdown-menu {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}
.seller-dropdown-item:hover {
  background: var(--bg-primary) !important;
}
.seller-dropdown-search-box input {
  background: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}
.seller-edit-row {
  border-color: var(--border-color) !important;
}
.seller-edit-input-field {
  background: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
}
.sync-setup-guide {
  background: rgba(108, 77, 246, 0.05) !important;
  border-color: rgba(108, 77, 246, 0.15) !important;
}
.code-snippet-box {
  background: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
}
.invoice-container {
  box-shadow: var(--shadow-soft) !important;
}
.portal-nav-tabs button:hover {
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* CommandCenter styles */
.command-hero {
  display: grid;
  grid-template-columns: 1.55fr .85fr;
  gap: 16px;
  margin-bottom: 16px;
}
.command-hero-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.command-hero-main:after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -110px;
  top: -120px;
  background: rgba(108, 77, 246, 0.08);
  filter: blur(2px);
  pointer-events: none;
}
.command-hero-eyebrow {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 900;
}
.command-hero h1 {
  font-size: 28px;
  margin: 6px 0 6px;
  font-weight: 700;
  color: var(--text-primary);
}
.command-hero .sub {
  color: var(--text-secondary);
  max-width: 820px;
}
.commandbar {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.commandbar .search {
  flex: 1;
  position: relative;
}
.commandbar .search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px 12px 38px;
  color: var(--text-primary);
  outline: none;
}
.commandbar .search input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(108, 77, 246, 0.11);
}
.commandbar .search span {
  position: absolute;
  left: 13px;
  top: 12px;
  color: var(--text-secondary);
}
.health-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
  padding: 18px;
}
.health-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.live-indicator {
  color: var(--color-green);
  font-size: 12px;
  font-weight: 800;
}
.health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.health-mini {
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  border-radius: 13px;
  padding: 12px;
}
.health-mini strong {
  display: block;
  font-size: 16px;
  margin-top: 2px;
}
.health-mini small {
  color: var(--text-secondary);
}

.kpis-section {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
  padding: 16px;
  min-height: 122px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}
.kpi-card .label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 900;
  text-transform: uppercase;
}
.kpi-card .value {
  font-size: 24px;
  font-weight: 900;
  margin-top: 8px;
}
.kpi-card .delta {
  font-size: 11px;
  margin-top: 8px;
  color: var(--color-green);
  font-weight: 700;
}
.kpi-icon {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--bg-panel3);
  display: grid;
  place-items: center;
  color: var(--accent-primary);
  font-weight: 900;
}

.productivity-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 16px;
  margin-bottom: 16px;
}
.cc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  border-radius: 18px;
  padding: 18px;
}
.cc-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.cc-panel-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.muted-sub {
  color: var(--text-secondary);
  font-size: 12px;
}
.tasklist {
  display: grid;
  gap: 8px;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}
.task-item input {
  accent-color: var(--accent-primary);
  cursor: pointer;
}
.task-item .meta {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 11px;
  background: var(--bg-panel3);
  padding: 2px 6px;
  border-radius: 4px;
}
.focus-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: linear-gradient(135deg, rgba(108,77,246,.06), rgba(18,184,246,.04));
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 14px;
}
.focus-score {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 6px solid var(--accent-primary);
  font-weight: 900;
  font-size: 1.25rem;
}
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quick-actions-grid button {
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 11px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
}
.quick-actions-grid button:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108,77,246,.08);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr;
  gap: 16px;
  margin-bottom: 16px;
}
.pipeline-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.pipeline-stage {
  padding: 13px;
  border: 1px solid var(--border-color);
  background: var(--bg-panel2);
  border-radius: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.pipeline-stage:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card);
}
.pipeline-stage strong {
  display: block;
  font-size: 22px;
}
.pipeline-stage span {
  font-size: 11px;
  color: var(--text-secondary);
}
.pipeline-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--bg-panel3);
  margin-top: 11px;
  overflow: hidden;
}
.pipeline-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan));
}
.courier-performance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.alerts-list {
  display: grid;
  gap: 9px;
}
.cc-alert {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 91, 107, 0.24);
  background: rgba(239, 91, 107, 0.06);
  cursor: pointer;
  transition: all 0.15s;
}
.cc-alert:hover {
  border-color: var(--color-red);
}
.cc-alert.warn {
  border-color: rgba(244, 166, 42, 0.30);
  background: rgba(244, 166, 42, 0.07);
}
.cc-alert.warn:hover {
  border-color: var(--color-amber);
}
.cc-alert strong {
  font-size: 12px;
}
.cc-alert p {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
}

.activity-feed {
  display: grid;
  gap: 11px;
}
.activity-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.activity-item i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(18, 184, 246, 0.35);
}
.activity-item b {
  font-size: 12px;
}
.activity-item small {
  display: block;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cmdk {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  z-index: 2000;
}
.cmdk.show {
  display: flex;
}
.cmdbox {
  width: min(680px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  border-radius: 18px;
  padding: 14px;
}
.cmdbox input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
}
.cmdbox input:focus {
  border-color: var(--accent-primary);
}
.cmditems {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
}
.cmditem {
  padding: 11px;
  border-radius: 11px;
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s;
}
.cmditem:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: .25s;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .kpis-section { grid-template-columns: repeat(3, 1fr); }
  .command-hero, .productivity-grid, .pipeline-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .kpis-section { grid-template-columns: 1fr 1fr; }
  .pipeline-stages { grid-template-columns: 1fr 1fr; }
  .quick-actions-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================
   OPERATIONAL DASHBOARD REFINEMENTS (v74)
   ========================================== */

/* KPI Card Hovers */
.kpi-card {
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary) !important;
}

/* Severity Badges in Task Queue */
.severity-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
  display: inline-block;
}
.severity-badge.critical {
  background: rgba(248, 113, 113, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.severity-badge.high {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.severity-badge.medium {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.severity-badge.low {
  background: rgba(107, 114, 128, 0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Quick View Filters Bar */
.quick-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.quick-filter-btn {
  background: var(--bg-panel2);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.quick-filter-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}
.quick-filter-btn.active {
  background: var(--accent-primary) !important;
  color: white !important;
  border-color: var(--accent-primary) !important;
}
.quick-filter-btn .badge-count {
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  padding: 1px 5px;
  border-radius: 99px;
  font-size: 0.7rem;
}
body.dark .quick-filter-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.15);
}

/* Row Action Context Menu */
.context-menu-container {
  position: relative;
  display: inline-block;
}
.context-menu-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.context-menu-btn:hover {
  background: var(--bg-panel3);
  color: var(--text-primary);
}
.context-menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 4px 0;
  min-width: 150px;
  display: flex;
  flex-direction: column;
}
.context-menu-item {
  background: none;
  border: none;
  text-align: left;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
  font-family: inherit;
}
.context-menu-item:hover {
  background: var(--bg-panel2);
  color: var(--accent-primary);
}
.context-menu-item.danger {
  color: var(--color-red) !important;
}
.context-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* Assistant Mascot Drawer */
.mascot-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(108,77,246,0.3);
  cursor: pointer;
  z-index: 2000;
  font-size: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mascot-bubble:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(108,77,246,0.45);
}
.mascot-drawer {
  position: fixed;
  right: 20px;
  bottom: 76px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mascot-drawer-header {
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(108,77,246,0.08), rgba(18,184,246,0.05));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mascot-drawer-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.mascot-drawer-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-secondary);
}
.mascot-drawer-body {
  padding: 16px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mascot-section-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 2px;
}

/* Polished Empty States */
.empty-state-card {
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-panel2);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 20px auto;
}
.empty-state-card .icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}
.empty-state-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.empty-state-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Table Text Contrast Audits in Bright Mode */
body:not(.dark) th {
  color: #374151 !important; /* Rich contrast dark gray for headers */
}
body:not(.dark) td {
  color: #111827 !important; /* Dark charcoal color for row cells */
}
body:not(.dark) .stat-card .label {
  color: #4b5563 !important;
}
body:not(.dark) .stat-card .value {
  color: #111827 !important;
}
body:not(.dark) input, body:not(.dark) select, body:not(.dark) textarea {
  color: #111827 !important;
  background: #f9fafb !important;
}
body:not(.dark) .cmdbox input {
  color: #111827 !important;
  background: #f3f4f6 !important;
}
body:not(.dark) .cmditem {
  color: #1f2937 !important;
  background: #f9fafb !important;
}
body:not(.dark) .cmditem:hover {
  background: #f3f4f6 !important;
}
body:not(.dark) .empty-state-card {
  background: #f9fafb !important;
}
body:not(.dark) .cc-panel {
  background: #ffffff !important;
}
body:not(.dark) .cc-panel-title h3 {
  color: #111827 !important;
}
body:not(.dark) .task-item {
  background: #f9fafb !important;
  color: #111827 !important;
}
body:not(.dark) .task-item:hover {
  background: #f3f4f6 !important;
}
body:not(.dark) .quick-filter-btn {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  border-color: #e5e7eb !important;
}
body:not(.dark) .quick-filter-btn:hover {
  background: #e5e7eb !important;
  color: #111827 !important;
}
body:not(.dark) .quick-filter-btn.active {
  color: #ffffff !important;
}
body:not(.dark) .context-menu-dropdown {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 4px 0;
  min-width: 150px;
  display: flex;
  flex-direction: column;
}
.context-menu-item {
  background: none;
  border: none;
  text-align: left;
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
  font-family: inherit;
}
.context-menu-item:hover {
  background: var(--bg-panel2);
  color: var(--accent-primary);
}
.context-menu-item.danger {
  color: var(--color-red) !important;
}
.context-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* Assistant Mascot Drawer */
.mascot-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(108,77,246,0.3);
  cursor: pointer;
  z-index: 2000;
  font-size: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mascot-bubble:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(108,77,246,0.45);
}
.mascot-drawer {
  position: fixed;
  right: 20px;
  bottom: 76px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mascot-drawer-header {
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(108,77,246,0.08), rgba(18,184,246,0.05));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mascot-drawer-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.mascot-drawer-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-secondary);
}
.mascot-drawer-body {
  padding: 16px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mascot-section-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 2px;
}

/* Polished Empty States */
.empty-state-card {
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-panel2);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 20px auto;
}
.empty-state-card .icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}
.empty-state-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.empty-state-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Table Text Contrast Audits in Bright Mode */
body:not(.dark) th {
  color: #374151 !important; /* Rich contrast dark gray for headers */
}
body:not(.dark) td {
  color: #111827 !important; /* Dark charcoal color for row cells */
}
body:not(.dark) .stat-card .label {
  color: #4b5563 !important;
}
body:not(.dark) .stat-card .value {
  color: #111827 !important;
}
body:not(.dark) input, body:not(.dark) select, body:not(.dark) textarea {
  color: #111827 !important;
  background: #f9fafb !important;
}
body:not(.dark) .cmdbox input {
  color: #111827 !important;
  background: #f3f4f6 !important;
}
body:not(.dark) .cmditem {
  color: #1f2937 !important;
  background: #f9fafb !important;
}
body:not(.dark) .cmditem:hover {
  background: #f3f4f6 !important;
}
body:not(.dark) .empty-state-card {
  background: #f9fafb !important;
}
body:not(.dark) .cc-panel {
  background: #ffffff !important;
}
body:not(.dark) .cc-panel-title h3 {
  color: #111827 !important;
}
body:not(.dark) .task-item {
  background: #f9fafb !important;
  color: #111827 !important;
}
body:not(.dark) .task-item:hover {
  background: #f3f4f6 !important;
}
body:not(.dark) .quick-filter-btn {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
  border-color: #e5e7eb !important;
}
body:not(.dark) .quick-filter-btn:hover {
  background: #e5e7eb !important;
  color: #111827 !important;
}
body:not(.dark) .quick-filter-btn.active {
  color: #ffffff !important;
}
body:not(.dark) .context-menu-dropdown {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}
body:not(.dark) .context-menu-item:hover {
  background: #f3f4f6 !important;
}
body:not(.dark) .mascot-drawer {
  background: #ffffff !important;
}

/* Bright Mode High-Contrast Text Overrides */
body:not(.dark) .activity-item b {
  color: #111827 !important;
}
body:not(.dark) .activity-item small {
  color: #4b5563 !important;
}
body:not(.dark) .health-mini strong {
  color: #111827 !important;
}
body:not(.dark) .health-mini small {
  color: #4b5563 !important;
}

/* Orders workspace v2 — visual system matched to orderflowmaster_orders_workspace_v2.html */
body.orders-workspace-v2 .app-container { max-width:1540px; gap:14px; padding:18px; }
body.orders-workspace-v2 .app-header { min-height:64px; padding:0 16px; border-radius:16px; position:sticky; top:10px; z-index:50; }
body.orders-workspace-v2 .brand-title { font-size:17px; }
body.orders-workspace-v2 .portal-nav-tabs { gap:3px!important; margin:0!important; padding:0!important; overflow-x:auto; }
body.orders-workspace-v2 .portal-nav-tabs button { padding:12px 14px!important; white-space:nowrap; }
body.orders-workspace-v2 .stats-grid { grid-template-columns:repeat(7,minmax(145px,1fr)); gap:10px; }
body.orders-workspace-v2 .stat-card { min-height:91px; border-radius:14px; padding:13px; box-shadow:var(--shadow-soft,0 5px 18px rgba(24,39,75,.07)); }
body.orders-workspace-v2 .stat-details h3 { margin:0; font-size:10px; letter-spacing:.05em; font-weight:800; }
body.orders-workspace-v2 .stat-value { margin-top:7px; font-size:19px; }
body.orders-workspace-v2 .stat-icon-wrapper { width:29px; height:29px; padding:0; border-radius:9px; }
body.orders-workspace-v2 .main-content { gap:12px; min-height:0; padding:14px; border-radius:16px; }
.orders-workspace-root .hero { margin-bottom:2px!important; }
.orders-workspace-root .hero h1 { font-size:25px!important; margin:4px 0!important; }
.orders-workspace-root .quick-filters { order:-1; gap:6px; margin:0; padding-bottom:12px; border-bottom:1px solid var(--border-color); }
.orders-workspace-root .quick-filter-btn { border-radius:999px; padding:7px 10px; }
.orders-workspace-root .control-bar { gap:8px; padding-bottom:10px; }
.orders-workspace-root .search-wrapper { max-width:none; min-width:300px; }
.orders-workspace-root .filters-wrapper { gap:8px!important; }
.orders-workspace-root .select-filter,.orders-workspace-root .search-input { min-height:39px; }
.orders-workspace-root .tablewrap { max-height:620px!important; }
.orders-workspace-root table { min-width:1180px; }
.orders-workspace-root th { font-size:10px!important; letter-spacing:.04em; }
.orders-workspace-root td { padding-top:10px!important; padding-bottom:10px!important; }
.orders-workspace-root .footerline { font-size:12px!important; }
body.orders-workspace-v2:not(.dark) .app-container { --bg-primary:#f4f7fc; --bg-secondary:#fff; --bg-card:#fff; --bg-input:#f8fbff; --bg-panel2:#f8fbff; --bg-panel3:rgba(109,80,246,.08); --text-primary:#162033; --text-secondary:#74839a; --text-muted:#74839a; --border-color:#dfe7f2; --accent-primary:#6d50f6; --accent-secondary:#9a6cff; --accent-cyan:#16b9f4; --shadow-md:0 12px 34px rgba(24,39,75,.10); --shadow-lg:0 12px 34px rgba(24,39,75,.10); --shadow-soft:0 5px 18px rgba(24,39,75,.07); }
body.orders-workspace-v2:not(.dark) { background:radial-gradient(circle at 15% 8%,rgba(109,80,246,.10),transparent 24%),#f4f7fc; }
body.orders-workspace-v2:not(.dark) .app-header,body.orders-workspace-v2:not(.dark) .main-content,body.orders-workspace-v2:not(.dark) .stat-card { background:#fff; }
body.orders-workspace-v2:not(.dark) .stat-icon-wrapper { color:var(--accent-primary); background:rgba(109,80,246,.08); border:0; }
body:not(.dark) .orders-workspace-root .quick-filter-btn,body:not(.dark) .orders-workspace-root .select-filter,body:not(.dark) .orders-workspace-root .search-input { background:#f8fbff!important; }
body:not(.dark) .orders-workspace-root .quick-filter-btn.active { background:#6d50f6!important; border-color:#6d50f6!important; }
body:not(.dark) .orders-workspace-root .tablewrap,body:not(.dark) .orders-workspace-root th { background:#fff!important; }
@media(max-width:1200px){body.orders-workspace-v2 .stats-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:720px){body.orders-workspace-v2 .app-container{padding:8px}body.orders-workspace-v2 .app-header{top:4px}body.orders-workspace-v2 .stats-grid{grid-template-columns:repeat(2,1fr)}body.orders-workspace-v2 .header-controls .sync-pill{display:none!important}.orders-workspace-root .hero{align-items:flex-start!important;flex-direction:column}.orders-workspace-root .hero h1{font-size:21px!important}.orders-workspace-root .control-bar{align-items:stretch}.orders-workspace-root .search-wrapper{min-width:100%}}

/* Fast, colourful operational cues — paint-only effects, no filters or layout animation. */
body.orders-workspace-v2 .stat-card { border-top:3px solid #6d50f6; }
body.orders-workspace-v2 .stat-card:nth-child(2) { border-top-color:#16b9f4; }
body.orders-workspace-v2 .stat-card:nth-child(3) { border-top-color:#f2a629; }
body.orders-workspace-v2 .stat-card:nth-child(4) { border-top-color:#18b989; }
body.orders-workspace-v2 .stat-card:nth-child(5) { border-top-color:#ef6070; }
body.orders-workspace-v2 .stat-card:nth-child(6) { border-top-color:#9a6cff; }
body.orders-workspace-v2 .stat-card:nth-child(7) { border-top-color:#16b9f4; }
body.orders-workspace-v2 .stat-card:nth-child(2) .stat-icon-wrapper { color:#16b9f4; background:rgba(22,185,244,.12); }
body.orders-workspace-v2 .stat-card:nth-child(3) .stat-icon-wrapper { color:#f2a629; background:rgba(242,166,41,.13); }
body.orders-workspace-v2 .stat-card:nth-child(4) .stat-icon-wrapper { color:#18b989; background:rgba(24,185,137,.13); }
body.orders-workspace-v2 .stat-card:nth-child(5) .stat-icon-wrapper { color:#ef6070; background:rgba(239,96,112,.12); }
body.orders-workspace-v2 .stat-card:nth-child(6) .stat-icon-wrapper { color:#9a6cff; background:rgba(154,108,255,.12); }
body.orders-workspace-v2 .stat-card:nth-child(7) .stat-icon-wrapper { color:#16b9f4; background:rgba(22,185,244,.12); }
body.orders-workspace-v2 .orders-workspace-root .main-content { border-top:3px solid rgba(109,80,246,.72); }
body.orders-workspace-v2 .orders-workspace-root tbody tr:hover { background:rgba(109,80,246,.055); }

/* v3 workspace composition: a clear operational board, as in the supplied HTML. */
body.orders-workspace-v2 .main-content {
  background: #fff !important;
  border: 1px solid #dfe7f2;
  border-top: 3px solid #6d50f6;
  box-shadow: 0 12px 34px rgba(24,39,75,.10);
}
body.orders-workspace-v2 .orders-workspace-root { display:flex; flex-direction:column; gap:14px; }
body.orders-workspace-v2 .orders-workspace-root .hero {
  padding: 4px 2px 0;
  margin: 0 !important;
}
body.orders-workspace-v2 .orders-workspace-root .hero h1 { font-size:26px !important; font-weight:800; letter-spacing:-.035em; }
body.orders-workspace-v2 .orders-workspace-root .hero p { font-size:14px; }
body.orders-workspace-v2 .orders-workspace-root .quick-filters {
  background:#f8fbff;
  border:1px solid #dfe7f2;
  border-radius:12px;
  padding:9px !important;
  margin:0 !important;
}
body.orders-workspace-v2 .orders-workspace-root .quick-filter-btn {
  min-height:32px;
  padding:7px 12px;
  font-size:12px;
  font-weight:800;
  background:#fff !important;
  border-color:#dfe7f2 !important;
}
body.orders-workspace-v2 .orders-workspace-root .quick-filter-btn.active { box-shadow:0 5px 12px rgba(109,80,246,.24); }
body.orders-workspace-v2 .orders-workspace-root .control-bar {
  padding:10px;
  background:#f8fbff;
  border:1px solid #dfe7f2;
  border-radius:12px;
}
body.orders-workspace-v2 .orders-workspace-root .search-input,
body.orders-workspace-v2 .orders-workspace-root .select-filter {
  background:#fff !important;
  border-color:#d5e0ee;
  font-size:13px;
}
body.orders-workspace-v2 .orders-workspace-root .select-filter { min-width:145px; }
body.orders-workspace-v2 .orders-workspace-root .tablewrap {
  border-color:#d8e3f0 !important;
  border-radius:12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
body.orders-workspace-v2 .orders-workspace-root th {
  height:42px;
  color:#6d7d95 !important;
  background:#f8fbff !important;
  font-size:10px !important;
  font-weight:900;
}
body.orders-workspace-v2 .orders-workspace-root td { font-size:13px; color:#243148 !important; }
body.orders-workspace-v2 .orders-workspace-root tbody tr { transition:background-color .12s ease; }
body.orders-workspace-v2 .orders-workspace-root .badge-status {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:82px;
  padding:5px 8px;
  border-radius:999px;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.03em;
  white-space:nowrap;
}
body.orders-workspace-v2 .orders-workspace-root .badge-pending { color:#a86606 !important; background:rgba(242,166,41,.16) !important; border:1px solid rgba(242,166,41,.27) !important; }
body.orders-workspace-v2 .orders-workspace-root .badge-on-the-way,
body.orders-workspace-v2 .orders-workspace-root .badge-shipped { color:#0879a8 !important; background:rgba(22,185,244,.13) !important; border:1px solid rgba(22,185,244,.24) !important; }
body.orders-workspace-v2 .orders-workspace-root .badge-delivered { color:#087b59 !important; background:rgba(24,185,137,.14) !important; border:1px solid rgba(24,185,137,.25) !important; }
body.orders-workspace-v2 .orders-workspace-root .badge-returned,
body.orders-workspace-v2 .orders-workspace-root .badge-lost { color:#bd3246 !important; background:rgba(239,96,112,.13) !important; border:1px solid rgba(239,96,112,.25) !important; }
body.orders-workspace-v2 .orders-workspace-root .tracking-mono { color:#4777c7 !important; font-weight:700; }
body.orders-workspace-v2 .orders-workspace-root .tracking-none { color:#ef6070 !important; font-weight:800; }
body.orders-workspace-v2 .orders-workspace-root .btn-action-menu { border-color:#d7e2ef; background:#fff; color:#51637c; }
body.orders-workspace-v2 .saved-views-bar {
  order:-1;
  margin:0 !important;
  padding:8px 10px;
  background:#fff;
  border:1px solid #dfe7f2;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(24,39,75,.04);
}
body.orders-workspace-v2 .saved-views-bar .btn { min-height:34px; font-size:12px !important; font-weight:800; }
body.orders-workspace-v2 .workspace-sync-btn { margin-left:auto; color:#087b59; border-color:rgba(24,185,137,.32); background:rgba(24,185,137,.08); }
body.orders-workspace-v2 .secondary-quick-filters {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  padding:2px 0 0;
}
body.orders-workspace-v2 .secondary-quick-filters strong { color:#61718a; font-size:11px; margin-right:2px; }
body.orders-workspace-v2 .secondary-quick-filter {
  min-height:31px;
  padding:6px 10px;
  color:#64748b;
  background:#f8fbff;
  border:1px solid #dfe7f2;
  border-radius:9px;
  cursor:pointer;
  font:800 11px/1 var(--font-sans);
}
body.orders-workspace-v2 .secondary-quick-filter span { margin-left:5px; padding:1px 5px; border-radius:99px; background:rgba(109,80,246,.10); color:#6d50f6; }
body.orders-workspace-v2 .secondary-quick-filter.active { color:#fff; background:#6d50f6; border-color:#6d50f6; box-shadow:0 4px 10px rgba(109,80,246,.18); }
body.orders-workspace-v2 .secondary-quick-filter.active span { color:#fff; background:rgba(255,255,255,.18); }
body.orders-workspace-v2 .order-flags { white-space:nowrap; }
body.orders-workspace-v2 .order-flag { display:inline-flex; padding:4px 7px; border-radius:999px; font-size:10px; font-weight:800; line-height:1; }
body.orders-workspace-v2 .order-flag.warning { color:#a86606; background:rgba(242,166,41,.15); border:1px solid rgba(242,166,41,.24); }
body.orders-workspace-v2 .order-flag.danger { color:#bd3246; background:rgba(239,96,112,.13); border:1px solid rgba(239,96,112,.24); }
body.dark.orders-workspace-v2 .main-content,body.dark.orders-workspace-v2 .saved-views-bar { background:#0f1626 !important; border-color:#1e2b42; }
body.dark.orders-workspace-v2 .orders-workspace-root .quick-filters,body.dark.orders-workspace-v2 .orders-workspace-root .control-bar { background:#121c2e; border-color:#1e2b42; }
body.dark.orders-workspace-v2 .orders-workspace-root .quick-filter-btn,body.dark.orders-workspace-v2 .orders-workspace-root .search-input,body.dark.orders-workspace-v2 .orders-workspace-root .select-filter { background:#0f1626 !important; border-color:#1e2b42; color:#f4f7ff !important; }
@media(max-width:1200px){body.orders-workspace-v2 .orders-workspace-root .filters-wrapper{width:100%}body.orders-workspace-v2 .orders-workspace-root .search-wrapper{max-width:none;flex-basis:100%}}
@media(max-width:720px){body.orders-workspace-v2 .workspace-sync-btn{margin-left:0}body.orders-workspace-v2 .saved-views-bar{align-items:stretch}body.orders-workspace-v2 .saved-views-bar .btn{flex:1}.secondary-quick-filters{padding-top:4px}}

/* Final parity composition: flatten the visual flow into the required operations hierarchy. */
@media(min-width:721px){
  body.orders-workspace-v2 .orders-workspace-root { display:contents; }
  body.orders-workspace-v2 .orders-workspace-root .hero { order:1; width:100%; margin-top:2px !important; }
  body.orders-workspace-v2 .orders-kpi-alerts { order:2; width:100%; }
  body.orders-workspace-v2 .orders-workspace-root .quick-filters { order:3; width:100%; margin:0 !important; border-radius:16px 16px 0 0; border-bottom:0; }
  body.orders-workspace-v2 .orders-workspace-root .saved-views-bar { order:4; align-self:flex-end; width:auto; position:relative; z-index:2; margin:-43px 12px 0 auto !important; padding:4px !important; background:transparent; border:0; box-shadow:none; }
  body.orders-workspace-v2 .orders-workspace-root .control-bar { order:5; width:100%; margin-top:-1px; border-radius:0; border-top:0; border-bottom:0; background:#fff; }
  body.orders-workspace-v2 .orders-workspace-root .secondary-quick-filters { order:6; width:100%; margin-top:-1px; padding:8px 14px 10px; background:#fff; border-left:1px solid #dfe7f2; border-right:1px solid #dfe7f2; }
  body.orders-workspace-v2 .orders-workspace-root .quickfilters { order:7; width:100%; margin-top:-1px; padding:8px 14px 10px !important; background:#fff; border-left:1px solid #dfe7f2; border-right:1px solid #dfe7f2; }
  body.orders-workspace-v2 .orders-workspace-root .tablewrap { order:8; width:100%; margin-top:-1px; border-radius:0 !important; }
  body.orders-workspace-v2 .orders-workspace-root .footerline { order:9; width:100%; margin-top:-1px; padding:12px 14px !important; background:#fff; border:1px solid #dfe7f2; border-top:0; border-radius:0 0 16px 16px; box-shadow:0 12px 28px rgba(24,39,75,.08); }
}
body.orders-workspace-v2 .orders-kpi-alerts { gap:10px !important; }
body.orders-workspace-v2 .orders-kpi-alerts > div[style*="rgba(245, 158, 11"],
body.orders-workspace-v2 .orders-kpi-alerts > div[style*="rgba(16, 185, 129"] { min-height:46px !important; padding:9px 14px !important; border-radius:12px !important; font-size:12px !important; box-shadow:0 4px 12px rgba(24,39,75,.05) !important; }
body.orders-workspace-v2 .orders-kpi-alerts .btn { min-height:30px; padding:5px 10px !important; font-size:11px !important; }
body.orders-workspace-v2 .app-container { max-width:1540px; }
body.orders-workspace-v2 .portal-nav-tabs button { font-size:12px !important; }
body.orders-workspace-v2 .orders-workspace-root .hero .btn { min-height:38px; padding:8px 14px; font-size:12px; }
body.orders-workspace-v2 .orders-workspace-root .tablewrap td { height:44px; padding-left:10px !important; padding-right:10px !important; font-size:12px; }
body.orders-workspace-v2 .orders-workspace-root .tablewrap th { min-height:42px; padding:11px 10px !important; font-size:10.5px !important; }
body.orders-workspace-v2 .orders-workspace-root table { min-width:1440px; }
body.orders-workspace-v2 .orders-workspace-root td:nth-child(2) { min-width:170px; }
body.orders-workspace-v2 .orders-workspace-root td:nth-child(3) { min-width:108px; }
body.orders-workspace-v2 .orders-workspace-root td:nth-child(4) { min-width:120px; }
body.orders-workspace-v2 .orders-workspace-root td:nth-child(5) { min-width:135px; }
body.orders-workspace-v2 .orders-workspace-root td:nth-child(6) { min-width:155px; }
body.orders-workspace-v2 .orders-workspace-root td:nth-child(7) { min-width:245px; }
body.orders-workspace-v2 .orders-workspace-root td:nth-child(10),body.orders-workspace-v2 .orders-workspace-root td:nth-child(12) { white-space:nowrap; }
body.orders-workspace-v2 .orders-workspace-root .btn-action-menu { width:30px; height:30px; display:inline-grid; place-items:center; padding:0; border-radius:8px; font-size:16px; letter-spacing:1px; }
body.orders-workspace-v2 .orders-workspace-root .btn-action-menu:hover { border-color:#9bb0d0; color:#6d50f6; background:#f8fbff; }

/* Final pixel polish: one operational workspace card and a safely reachable Action column. */
@media (min-width:721px) {
  body.orders-workspace-v2 .orders-workspace-root .quick-filters {
    min-height:54px;
    padding:10px 12px !important;
    background:#fff;
    border:1px solid #dfe7f2;
    border-bottom:0;
    border-radius:16px 16px 0 0;
    box-shadow:0 12px 28px rgba(24,39,75,.08);
  }
  body.orders-workspace-v2 .orders-workspace-root .saved-views-bar {
    height:0;
    min-height:0;
    margin:-39px 12px 0 auto !important;
    overflow:visible;
  }
  body.orders-workspace-v2 .orders-workspace-root .control-bar,
  body.orders-workspace-v2 .orders-workspace-root .secondary-quick-filters,
  body.orders-workspace-v2 .orders-workspace-root .quickfilters,
  body.orders-workspace-v2 .orders-workspace-root .tablewrap,
  body.orders-workspace-v2 .orders-workspace-root .footerline {
    background:#fff !important;
    box-shadow:none !important;
  }
  body.orders-workspace-v2 .orders-workspace-root .control-bar {
    min-height:66px;
    padding:10px 12px;
    border-left:1px solid #dfe7f2;
    border-right:1px solid #dfe7f2;
  }
  body.orders-workspace-v2 .orders-workspace-root .secondary-quick-filters {
    min-height:48px;
    padding:8px 12px 9px;
  }
  body.orders-workspace-v2 .orders-workspace-root .tablewrap {
    border:0 !important;
    border-left:1px solid #dfe7f2 !important;
    border-right:1px solid #dfe7f2 !important;
    border-radius:0 !important;
  }
}
body.orders-workspace-v2 .orders-workspace-root .control-bar .search-input,
body.orders-workspace-v2 .orders-workspace-root .control-bar .select-filter,
body.orders-workspace-v2 .orders-workspace-root .control-bar .btn {
  min-height:34px;
  font-size:12px;
}
body.orders-workspace-v2 .orders-workspace-root .control-bar .filters-wrapper { gap:7px !important; }
body.orders-workspace-v2 .orders-workspace-root .secondary-quick-filters { gap:6px; }
body.orders-workspace-v2 .orders-workspace-root .secondary-quick-filters strong { color:#65768d; font-size:10.5px; }
body.orders-workspace-v2 .orders-workspace-root .tablewrap {
  scrollbar-color:#8d79f3 #eef3f9;
  scrollbar-width:auto;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap::-webkit-scrollbar { height:12px; }
body.orders-workspace-v2 .orders-workspace-root .tablewrap::-webkit-scrollbar-track { background:#eef3f9; border-radius:99px; }
body.orders-workspace-v2 .orders-workspace-root .tablewrap::-webkit-scrollbar-thumb { background:#8d79f3; border:3px solid #eef3f9; border-radius:99px; }
body.orders-workspace-v2 .orders-workspace-root .tablewrap th {
  height:43px;
  background:#f6f9fd !important;
  color:#60738e !important;
  border-bottom:1px solid #d6e0ed !important;
  font-size:10.75px !important;
  font-weight:800 !important;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap td {
  height:45px;
  color:#3e4e67;
  font-size:12.25px;
  font-weight:500;
  border-bottom-color:#e7edf5;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap td:nth-child(7) {
  max-width:245px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap td:nth-child(9) {
  white-space:nowrap;
  font-weight:750;
  color:#33435b;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap td:nth-last-child(2),
body.orders-workspace-v2 .orders-workspace-root .tablewrap th:nth-last-child(2) { min-width:125px; }
body.orders-workspace-v2 .orders-workspace-root .tablewrap th:last-child,
body.orders-workspace-v2 .orders-workspace-root .tablewrap td:last-child {
  position:sticky !important;
  right:0;
  min-width:58px;
  text-align:center;
  background:#fff !important;
  box-shadow:-5px 0 10px rgba(43,62,90,.06);
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap th:last-child {
  z-index:7 !important;
  background:#f6f9fd !important;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap td:last-child { z-index:3; }
body.orders-workspace-v2 .orders-workspace-root .btn-action-menu {
  width:30px;
  height:30px;
  margin:0 auto;
  color:#53637a;
  background:#fff;
  border:1px solid #cad6e5;
  border-radius:8px;
  font-size:15px;
  font-weight:800;
  line-height:1;
}
body.orders-workspace-v2 .orders-workspace-root .btn-action-menu:hover,
body.orders-workspace-v2 .orders-workspace-root .btn-action-menu:focus-visible {
  color:#6246e9;
  background:#f5f2ff;
  border-color:#a897f8;
}

/* Orders table access and scanability: retain density while making every row distinct. */
body.orders-workspace-v2 .orders-workspace-root .tablewrap tbody tr > td {
  height:47px;
  padding:12px 12px !important;
  font-size:12.5px;
  border-bottom:1px solid #dbe5f0 !important;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap tbody tr:last-child > td { border-bottom:0 !important; }
body.orders-workspace-v2 .orders-workspace-root .tablewrap .order-number-cell {
  color:#2778d6 !important;
  font-weight:750 !important;
  text-decoration:none;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap .order-number-cell:hover {
  color:#175eb5 !important;
  text-decoration:underline;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap th:last-child,
body.orders-workspace-v2 .orders-workspace-root .tablewrap td:last-child {
  min-width:64px;
  width:64px;
}
body.orders-workspace-v2 .orders-workspace-root .tablewrap td:nth-last-child(2),
body.orders-workspace-v2 .orders-workspace-root .tablewrap th:nth-last-child(2) {
  min-width:132px;
  padding-right:16px !important;
}

/* Production-derived return notifications. */
.return-notification-stack { display:flex; flex-direction:column; gap:10px; }
.return-notification { min-height:46px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:9px 14px; border-radius:12px; font-size:12px; font-weight:650; box-shadow:0 4px 12px rgba(24,39,75,.05); }
.return-notification.pending { color:#b57608; background:rgba(245,158,11,.10); border:1px solid rgba(245,158,11,.28); }
.return-notification.refundable { color:#078d6a; background:rgba(16,185,129,.11); border:1px solid rgba(16,185,129,.28); }
.return-notification .btn { min-height:30px; padding:5px 10px; font-size:11px; }

/* Keep the page dimmed while refund-notice details stay operationally readable. */
.refund-notice-modal { background:#fff !important; color:#25344a !important; border:1px solid #d7e1ed !important; border-radius:16px !important; box-shadow:0 24px 64px rgba(15,23,42,.30) !important; overflow:hidden; }
.refund-notice-modal .modal-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; background:#f7faff; border-bottom:1px solid #dce6f1; }
.refund-notice-modal .modal-header h2 { margin:0; color:#18283f; font-size:18px; }
.refund-notice-modal .modal-header .btn-icon-only { width:32px; height:32px; padding:0; color:#52647c; background:#fff; border:1px solid #d4dfeb; }
.refund-notice-modal .modal-body { padding:0 !important; max-height:min(60vh,560px) !important; overflow:auto !important; background:#fff; }
.refund-notice-modal .orders-table { width:100%; min-width:580px; border-collapse:separate; border-spacing:0; color:#33445b; font-size:12.5px; }
.refund-notice-modal .orders-table th { position:sticky; top:0; z-index:1; padding:12px 14px; color:#5c708b; background:#f3f7fc; border-bottom:1px solid #cfdae7; font-size:10.5px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.refund-notice-modal .orders-table td { padding:12px 14px; color:#33445b; background:#fff; border-bottom:1px solid #e2eaf3; white-space:nowrap; }
.refund-notice-modal .orders-table tbody tr:hover td { background:#f8fbff; }
.refund-notice-modal .orders-table td:first-child { color:#2778d6; font-weight:750; }
.refund-notice-modal .orders-table td:last-child { color:#087f61; font-weight:700; text-align:right; }
@media (max-width:640px) { .refund-notice-modal { width:calc(100% - 24px) !important; } .refund-notice-modal .modal-header { padding:14px 16px; } .refund-notice-modal .orders-table th, .refund-notice-modal .orders-table td { padding:11px 12px; } }

/* Shared light operational treatment for the Delivered, ReturnLess and Refund Balance workspaces. */
body:not(.dark) .delivered-operations-workspace-root,
body:not(.dark) .returnless-workspace-root,
body:not(.dark) .refunded-balance-workspace-root {
  color:#26364e;
}
body:not(.dark) .delivered-operations-workspace-root .stats-grid,
body:not(.dark) .returnless-workspace-root .stats-grid,
body:not(.dark) .refunded-balance-workspace-root .stats-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(185px,1fr));
  gap:10px;
  margin:0 0 12px !important;
}
body:not(.dark) .delivered-operations-workspace-root .stat-card,
body:not(.dark) .returnless-workspace-root .stat-card,
body:not(.dark) .refunded-balance-workspace-root .stat-card {
  min-height:86px;
  padding:13px 14px;
  background:#fff !important;
  border:1px solid #dce6f1 !important;
  border-radius:12px;
  box-shadow:0 4px 13px rgba(25,48,82,.055);
}
body:not(.dark) .delivered-operations-workspace-root .stat-details h3,
body:not(.dark) .returnless-workspace-root .stat-details h3,
body:not(.dark) .refunded-balance-workspace-root .stat-details h3 {
  margin:0 0 6px;
  color:#71829a !important;
  font-size:10px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}
body:not(.dark) .delivered-operations-workspace-root .stat-value,
body:not(.dark) .returnless-workspace-root .stat-value,
body:not(.dark) .refunded-balance-workspace-root .stat-value {
  color:#243652 !important;
  font-size:19px;
  font-weight:800;
  line-height:1.15;
}
body:not(.dark) .delivered-operations-workspace-root .stat-icon-wrapper,
body:not(.dark) .returnless-workspace-root .stat-icon-wrapper,
body:not(.dark) .refunded-balance-workspace-root .stat-icon-wrapper {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  color:#6246e9;
  background:#f0edff;
  border-radius:10px;
}
body:not(.dark) .delivered-operations-workspace-root .control-bar,
body:not(.dark) .returnless-workspace-root .control-bar,
body:not(.dark) .refunded-balance-workspace-root .control-bar {
  min-height:64px;
  margin:0 0 10px;
  padding:8px;
  background:#fff !important;
  border:1px solid #dce6f1;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(25,48,82,.035);
}
body:not(.dark) .delivered-operations-workspace-root .search-wrapper,
body:not(.dark) .returnless-workspace-root .search-wrapper,
body:not(.dark) .refunded-balance-workspace-root .search-wrapper {
  min-height:40px;
  background:#f8fbff;
  border:1px solid #dbe6f2;
  border-radius:9px;
}
body:not(.dark) .delivered-operations-workspace-root .search-input,
body:not(.dark) .returnless-workspace-root .search-input,
body:not(.dark) .refunded-balance-workspace-root .search-input,
body:not(.dark) .delivered-operations-workspace-root .select-filter,
body:not(.dark) .returnless-workspace-root .select-filter,
body:not(.dark) .refunded-balance-workspace-root .select-filter {
  min-height:40px;
  color:#394b65;
  background:#fff !important;
  border-color:#d6e1ed !important;
  font-size:12px;
}
body:not(.dark) .delivered-operations-workspace-root .btn,
body:not(.dark) .returnless-workspace-root .btn,
body:not(.dark) .refunded-balance-workspace-root .btn {
  min-height:38px;
  padding:8px 12px;
  border-radius:8px;
  font-size:12px;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap,
body:not(.dark) .returnless-workspace-root .tablewrap,
body:not(.dark) .refunded-balance-workspace-root .tablewrap {
  overflow:auto;
  background:#fff;
  border:1px solid #dce6f1;
  border-radius:12px;
  box-shadow:0 4px 14px rgba(25,48,82,.045);
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap table,
body:not(.dark) .returnless-workspace-root .tablewrap table,
body:not(.dark) .refunded-balance-workspace-root .tablewrap table {
  width:100%;
  min-width:900px;
  color:#35465f;
  border-collapse:separate;
  border-spacing:0;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap th,
body:not(.dark) .returnless-workspace-root .tablewrap th,
body:not(.dark) .refunded-balance-workspace-root .tablewrap th {
  padding:12px 13px;
  color:#687b95;
  background:#f5f8fc !important;
  border-bottom:1px solid #d5e0ed;
  font-size:10px;
  font-weight:800;
  letter-spacing:.045em;
  text-transform:uppercase;
  white-space:nowrap;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td,
body:not(.dark) .returnless-workspace-root .tablewrap td,
body:not(.dark) .refunded-balance-workspace-root .tablewrap td {
  height:46px;
  padding:11px 13px;
  color:#3b4d66 !important;
  background:#fff !important;
  border-bottom:1px solid #e1e9f2 !important;
  font-size:12.5px;
  line-height:1.35;
  vertical-align:middle;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap tbody tr:last-child td,
body:not(.dark) .returnless-workspace-root .tablewrap tbody tr:last-child td,
body:not(.dark) .refunded-balance-workspace-root .tablewrap tbody tr:last-child td { border-bottom:0 !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap tbody tr:hover td,
body:not(.dark) .returnless-workspace-root .tablewrap tbody tr:hover td,
body:not(.dark) .refunded-balance-workspace-root .tablewrap tbody tr:hover td { background:#f8fbff !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:first-child,
body:not(.dark) .returnless-workspace-root .tablewrap td:first-child,
body:not(.dark) .refunded-balance-workspace-root .tablewrap td:first-child { color:#2778d6 !important; font-weight:750; }
body:not(.dark) .delivered-operations-workspace-root .pagination,
body:not(.dark) .returnless-workspace-root .pagination,
body:not(.dark) .refunded-balance-workspace-root .pagination,
body:not(.dark) .delivered-operations-workspace-root .table-footer,
body:not(.dark) .returnless-workspace-root .table-footer,
body:not(.dark) .refunded-balance-workspace-root .table-footer {
  color:#72849c;
  font-size:12px;
}
body:not(.dark) .delivered-operations-workspace-root .empty-state-card,
body:not(.dark) .returnless-workspace-root .empty-state-card,
body:not(.dark) .refunded-balance-workspace-root .empty-state-card {
  margin:0;
  padding:34px 20px;
  color:#60738e;
  background:#fff !important;
  border:1px dashed #ccd9e8;
  border-radius:12px;
}
@media (max-width:720px) {
  body:not(.dark) .delivered-operations-workspace-root .stats-grid,
  body:not(.dark) .returnless-workspace-root .stats-grid,
  body:not(.dark) .refunded-balance-workspace-root .stats-grid { grid-template-columns:1fr; }
  body:not(.dark) .delivered-operations-workspace-root .control-bar,
  body:not(.dark) .returnless-workspace-root .control-bar,
  body:not(.dark) .refunded-balance-workspace-root .control-bar { align-items:stretch; }
}

/* Pinned Delivered rows: apply tint to cells so table surfaces do not mask it. */
body:not(.dark) .delivered-operations-workspace-root tbody tr.pinned-row-0 > td { background:#f0efff !important; }
body:not(.dark) .delivered-operations-workspace-root tbody tr.pinned-row-1 > td { background:#edf8ff !important; }
body:not(.dark) .delivered-operations-workspace-root tbody tr.pinned-row-2 > td { background:#edfbf4 !important; }
body:not(.dark) .delivered-operations-workspace-root tbody tr.pinned-row-0:hover > td { background:#e6e3ff !important; }
body:not(.dark) .delivered-operations-workspace-root tbody tr.pinned-row-1:hover > td { background:#e1f4ff !important; }
body:not(.dark) .delivered-operations-workspace-root tbody tr.pinned-row-2:hover > td { background:#e0f8ec !important; }

/* Keep the Actions column and three-dot trigger visible at the table edge. */
body:not(.dark) .delivered-operations-workspace-root .tablewrap { overflow-x:auto !important; overflow-y:visible !important; }
body:not(.dark) .delivered-operations-workspace-root table th:last-child,
body:not(.dark) .delivered-operations-workspace-root table td:last-child {
  position:sticky;
  right:0;
  z-index:6;
  min-width:148px;
  background:#fff;
  box-shadow:-8px 0 14px rgba(55,72,120,.07);
}
body:not(.dark) .delivered-operations-workspace-root table thead th:last-child { background:#f3f6fc; }
body:not(.dark) .delivered-operations-workspace-root tbody tr:hover td:last-child { background:#f7f8ff; }
body:not(.dark) .delivered-operations-workspace-root .context-menu-container { position:relative; z-index:20; }
body:not(.dark) .delivered-operations-workspace-root .context-menu-btn { min-width:34px; min-height:32px; display:inline-flex; align-items:center; justify-content:center; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap table { width:1500px !important; min-width:1500px !important; table-layout:fixed; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-last-child(2),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-last-child(2) { min-width:122px; white-space:normal; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:last-child,
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:last-child { width:178px; min-width:178px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:last-child > div { flex-wrap:nowrap; min-width:164px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:last-child .btn { min-width:88px; white-space:normal; line-height:1.1; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-last-child(2),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-last-child(2) { width:125px; }

/* Delivered Log layout repair: explicit readable columns and internal scroll. */
body:not(.dark) .delivered-operations-workspace-root {
  width: min(100%, 1820px) !important;
  max-width: 1820px !important;
  margin-inline: auto !important;
  padding-inline: clamp(18px, 2.2vw, 42px) !important;
  box-sizing: border-box;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap table {
  width: max-content !important;
  min-width: 1540px !important;
  table-layout: auto !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap th,
body:not(.dark) .delivered-operations-workspace-root .tablewrap td {
  box-sizing: border-box;
  vertical-align: middle;
  padding: 12px 14px !important;
  border-bottom: 1px solid #dce5f2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(1),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(1) { width:44px; min-width:44px; padding-inline:10px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(2),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) { width:220px; min-width:220px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(3),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(3) { width:125px; min-width:125px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(4),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(4) { width:120px; min-width:120px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(5),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(5) { width:175px; min-width:175px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(6),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(6) { width:125px; min-width:125px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(7),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(7) { width:135px; min-width:135px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(8),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(8) { width:165px; min-width:165px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(9),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(9) { width:150px; min-width:150px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(10),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(10) { width:125px; min-width:125px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(11),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(11) { width:190px; min-width:190px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(2),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) { color:#1264b5; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) { font-weight:750; letter-spacing:.01em; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) > span,
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) > button { margin-left:8px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(5) select,
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(7) select {
  width:100% !important;
  min-width:0 !important;
  height:38px;
  box-sizing:border-box;
  padding:0 30px 0 11px !important;
  border-radius:8px !important;
  font-size:.78rem !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(10) span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  min-height:28px;
  padding:4px 9px !important;
  line-height:1.15;
  white-space:normal;
  text-align:center;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(11) > div {
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center;
  justify-content:flex-start !important;
  gap:8px !important;
  min-width:160px;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(11) .btn { min-width:108px; height:38px; white-space:normal; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:last-child,
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:last-child {
  position:static !important;
  right:auto !important;
  box-shadow:none !important;
  z-index:auto !important;
}
body:not(.dark) .delivered-operations-workspace-root .portal-nav-tabs { gap:clamp(4px, .7vw, 12px); justify-content:space-between; }
body:not(.dark) .delivered-operations-workspace-root .portal-nav-tabs button { flex:1 1 auto; min-width:max-content; }
@media (max-width:1100px) {
  body:not(.dark) .delivered-operations-workspace-root { padding-inline:16px !important; }
  body:not(.dark) .delivered-operations-workspace-root .tablewrap table { min-width:1540px !important; }
}
@media (max-width:680px) {
  body:not(.dark) .delivered-operations-workspace-root { padding-inline:10px !important; }
  body:not(.dark) .delivered-operations-workspace-root .control-bar { flex-direction:column; align-items:stretch; }
  body:not(.dark) .delivered-operations-workspace-root .control-bar .search-wrapper,
  body:not(.dark) .delivered-operations-workspace-root .control-bar .filters-wrapper { width:100%; max-width:none; }
  body:not(.dark) .delivered-operations-workspace-root .control-bar .filters-wrapper { flex-wrap:wrap; justify-content:flex-start; }
}

/* Courier return portal: always stay above dashboard alerts and retain readable contrast. */
.modal-overlay[style*="99999"] .modal-header h2 { color: #f8fafc !important; }
.modal-overlay[style*="99999"] .modal-header p { color: #b7c8d8 !important; }
.modal-overlay[style*="99999"] .modal-header strong { color: #ffffff !important; }

/* Premium light treatment — Delivered Log only. Visual overrides only. */
body:not(.dark) .delivered-operations-workspace-root {
  color:#22324a;
  font-size:14px;
}
body:not(.dark) .delivered-operations-workspace-root .stats-grid {
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin:2px 0 17px !important;
}
body:not(.dark) .delivered-operations-workspace-root .stat-card {
  min-height:112px;
  padding:18px;
  border:1px solid #d4e0ee !important;
  border-top:3px solid #6657e9 !important;
  border-radius:15px;
  box-shadow:0 8px 22px rgba(33,57,90,.075);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
body:not(.dark) .delivered-operations-workspace-root .stat-card:hover {
  border-color:#b8c9df !important;
  box-shadow:0 12px 28px rgba(45,65,101,.13);
  transform:translateY(-2px);
}
body:not(.dark) .delivered-operations-workspace-root .stat-card:nth-child(2) { border-top-color:#2a9fe5 !important; }
body:not(.dark) .delivered-operations-workspace-root .stat-card:nth-child(3) { border-top-color:#17a878 !important; }
body:not(.dark) .delivered-operations-workspace-root .stat-card:nth-child(4) { border-top-color:#d99a23 !important; }
body:not(.dark) .delivered-operations-workspace-root .stat-card:nth-child(5) {
  background:linear-gradient(135deg,#fff 0%,#fff7f7 100%) !important;
  border-color:#edc9cf !important;
  border-top-color:#dc586a !important;
}
body:not(.dark) .delivered-operations-workspace-root .stat-details h3 {
  margin:0 0 8px;
  color:#61748e !important;
  font-size:11px;
  font-weight:800;
  letter-spacing:.07em;
}
body:not(.dark) .delivered-operations-workspace-root .stat-value {
  color:#172b4d !important;
  font-size:27px;
  font-weight:800;
  letter-spacing:-.04em;
}
body:not(.dark) .delivered-operations-workspace-root .stat-icon-wrapper {
  width:42px;
  height:42px;
  border:1px solid #e0e8f2;
  border-radius:12px;
  font-size:17px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
body:not(.dark) .delivered-operations-workspace-root .stat-card:nth-child(3) .stat-icon-wrapper { color:#0b8e64; background:#e8fbf4; border-color:#c7f0e0; }
body:not(.dark) .delivered-operations-workspace-root .stat-card:nth-child(4) .stat-icon-wrapper { color:#a46700; background:#fff6df; border-color:#f5dfac; }
body:not(.dark) .delivered-operations-workspace-root .stat-card:nth-child(5) .stat-icon-wrapper { color:#c34153; background:#fff0f2; border-color:#f5cdd3; }

body:not(.dark) .delivered-operations-workspace-root .quick-filters {
  gap:9px;
  margin:0 0 15px;
  padding:6px;
  background:#f4f7fc;
  border:1px solid #dce6f1;
  border-radius:13px;
}
body:not(.dark) .delivered-operations-workspace-root .quick-filter-btn {
  min-height:37px;
  color:#50647e;
  background:#fff;
  border:1px solid #dbe5f0;
  border-radius:9px;
  padding:7px 11px;
  font-size:12.5px;
  font-weight:700;
  transition:all .16s ease;
}
body:not(.dark) .delivered-operations-workspace-root .quick-filter-btn:hover {
  color:#4d3ed0;
  border-color:#beb5f8;
  background:#f6f4ff;
  transform:translateY(-1px);
}
body:not(.dark) .delivered-operations-workspace-root .quick-filter-btn.active {
  color:#fff !important;
  background:linear-gradient(135deg,#6255e8,#7865f2) !important;
  border-color:#6255e8 !important;
  box-shadow:0 5px 13px rgba(96,81,224,.25);
}
body:not(.dark) .delivered-operations-workspace-root .quick-filter-btn .badge-count {
  min-width:20px;
  margin-left:6px;
  padding:2px 6px;
  color:#4d3ed0;
  background:#eeecff;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}
body:not(.dark) .delivered-operations-workspace-root .quick-filter-btn.active .badge-count { color:#fff; background:rgba(255,255,255,.22); }

body:not(.dark) .delivered-operations-workspace-root .control-bar {
  min-height:70px;
  gap:13px;
  padding:11px 12px;
  border-color:#d4e0ee;
  border-radius:14px;
  box-shadow:0 7px 20px rgba(35,55,88,.055);
}
body:not(.dark) .delivered-operations-workspace-root .search-wrapper { flex:1 1 430px; max-width:none; min-height:44px; border-color:#cedceb; }
body:not(.dark) .delivered-operations-workspace-root .search-input {
  min-height:44px;
  color:#263a56;
  background:#fbfdff !important;
  border-color:#cedceb !important;
  font-size:13px;
  font-weight:600;
}
body:not(.dark) .delivered-operations-workspace-root .search-input::placeholder { color:#91a0b3; font-weight:500; }
body:not(.dark) .delivered-operations-workspace-root .search-wrapper:focus-within { border-color:#8378ec; box-shadow:0 0 0 3px rgba(100,86,232,.12); }
body:not(.dark) .delivered-operations-workspace-root .filters-wrapper { gap:8px !important; }
body:not(.dark) .delivered-operations-workspace-root .select-filter,
body:not(.dark) .delivered-operations-workspace-root .filters-wrapper .btn {
  min-height:44px;
  color:#3d516d;
  background:#fff !important;
  border-color:#cedbea !important;
  border-radius:9px;
  font-size:12.5px;
  font-weight:700;
  transition:all .16s ease;
}
body:not(.dark) .delivered-operations-workspace-root .select-filter:hover,
body:not(.dark) .delivered-operations-workspace-root .filters-wrapper .btn:hover { border-color:#948bed !important; background:#f8f7ff !important; color:#5345d4; }
body:not(.dark) .delivered-operations-workspace-root .select-filter:focus,
body:not(.dark) .delivered-operations-workspace-root .filters-wrapper .btn:focus-visible { outline:none; border-color:#7468e9 !important; box-shadow:0 0 0 3px rgba(104,89,232,.14); }

body:not(.dark) .delivered-operations-workspace-root .tablewrap {
  border-color:#cfdae8;
  border-radius:14px;
  box-shadow:0 10px 25px rgba(32,53,87,.07);
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap table { min-width:1080px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th {
  padding:14px 15px;
  color:#536883;
  background:#eef3f9 !important;
  border-bottom:1px solid #cbd8e7;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.065em;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td {
  height:54px;
  padding:13px 15px;
  color:#334862 !important;
  border-bottom:1px solid #dfe7f0 !important;
  font-size:13px;
  font-weight:550;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap tbody tr:nth-child(even) td { background:#fafcff !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap tbody tr:hover td { background:#f0f5ff !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap tbody tr { transition:background .14s ease,transform .14s ease; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) {
  color:#246fc4 !important;
  font-weight:800;
  letter-spacing:.01em;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2):hover { color:#4f46d8 !important; text-decoration:underline; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap select {
  min-height:32px;
  color:#38506d !important;
  background:#fff !important;
  border:1px solid #cad8e8 !important;
  border-radius:7px !important;
  font-size:12px !important;
  font-weight:700;
  transition:border-color .15s ease,box-shadow .15s ease;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap select:hover { border-color:#9b91ef !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap select:focus { outline:none; border-color:#7569e8 !important; box-shadow:0 0 0 3px rgba(105,89,231,.13); }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-last-child(2) > span {
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:4px 9px !important;
  border:1px solid #d9e2ed;
  border-radius:999px !important;
  background:#eef2ff !important;
  font-size:11px !important;
  letter-spacing:.01em;
  box-shadow:0 1px 2px rgba(31,50,77,.05);
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-last-child(2) > span[style*="--color-cancelled"] { color:#c34254 !important; background:#fff0f2 !important; border-color:#f2c7ce; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:last-child .btn {
  min-height:32px;
  border-radius:7px;
  padding:6px 10px !important;
  font-size:11.5px !important;
  font-weight:800 !important;
  box-shadow:0 2px 5px rgba(59,76,112,.14);
  transition:transform .14s ease,box-shadow .14s ease,filter .14s ease;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:last-child .btn:hover:not(:disabled) { box-shadow:0 5px 11px rgba(59,76,112,.2); filter:brightness(1.03); transform:translateY(-1px); }
body:not(.dark) .delivered-operations-workspace-root .context-menu-btn {
  width:32px;
  height:32px;
  color:#647991;
  background:#fff;
  border:1px solid #cedaea;
  border-radius:8px;
  font-weight:800;
  letter-spacing:1px;
  transition:all .15s ease;
}
body:not(.dark) .delivered-operations-workspace-root .context-menu-btn:hover { color:#5446d7; background:#f4f2ff; border-color:#a69df0; }
body:not(.dark) .delivered-operations-workspace-root .context-menu-dropdown { border:1px solid #d2ddeb; border-radius:10px; box-shadow:0 12px 26px rgba(35,51,78,.16); overflow:hidden; }
/* The row menu is fixed to the viewport by the component, so opening it never changes the table height. */
body:not(.dark) .delivered-operations-workspace-root .context-menu-dropdown { min-width:190px; z-index:10000; }

/* Keep the action rail available while the orders viewport is scrolled in
   either direction. The header masks rows passing underneath it. */
body:not(.dark) .delivered-operations-workspace-root .tablewrap {
  overflow: auto !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap thead th {
  position: sticky !important;
  top: 0;
  z-index: 100;
  background: #f3f6fc !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap thead {
  position: sticky !important;
  top: 0;
  z-index: 100;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap thead th:last-child,
body:not(.dark) .delivered-operations-workspace-root .tablewrap tbody td:last-child {
  position: sticky !important;
  right: 0;
  z-index: 1 !important;
  background: #fff !important;
  box-shadow: -8px 0 14px rgba(55,72,120,.07);
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap thead th:last-child {
  z-index: 110 !important;
  background: #f3f6fc !important;
}

body:not(.dark) .delivered-operations-workspace-root .footerline {
  min-height:54px;
  margin-top:4px;
  padding:11px 4px 0 !important;
  color:#657994 !important;
  font-size:13px !important;
  font-weight:600;
}
body:not(.dark) .delivered-operations-workspace-root .footerline strong { color:#213750 !important; font-weight:800; }
body:not(.dark) .delivered-operations-workspace-root .footerline select { min-height:34px; color:#40546f !important; background:#fff !important; border-color:#cedaea !important; border-radius:8px !important; font-weight:700; }
body:not(.dark) .delivered-operations-workspace-root .pagination { gap:7px !important; }
body:not(.dark) .delivered-operations-workspace-root .pagination .page {
  width:36px !important;
  height:36px !important;
  color:#485d78 !important;
  background:#fff !important;
  border-color:#cedaea !important;
  border-radius:9px !important;
  font-size:14px;
  font-weight:800 !important;
  transition:all .15s ease;
}
body:not(.dark) .delivered-operations-workspace-root .pagination .page:hover:not(:disabled) { color:#5144d5 !important; border-color:#9f95ee !important; background:#f5f3ff !important; transform:translateY(-1px); }
body:not(.dark) .delivered-operations-workspace-root .pagination .page.active { color:#fff !important; background:linear-gradient(135deg,#6456e8,#7b68f3) !important; border-color:#6456e8 !important; box-shadow:0 5px 11px rgba(101,84,232,.24); }

@media (max-width:1180px) {
  body:not(.dark) .delivered-operations-workspace-root .stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Only Email workspace — bright premium register styling */
body:not(.dark) .only-email-workspace-root {
  max-width: 1480px;
  margin: 0 auto;
  padding: 2rem 2.25rem 3rem;
  color: #18243d;
}
body:not(.dark) .only-email-workspace-root h2 {
  margin: .2rem 0 .35rem;
  font-size: 2rem;
  letter-spacing: -.045em;
  color: #17243e;
}
body:not(.dark) .only-email-workspace-root .eyebrow {
  color: #6657e8;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
}
body:not(.dark) .only-email-workspace-root .stats-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}
body:not(.dark) .only-email-workspace-root .stat-card {
  min-height: 112px;
  padding: 1.1rem 1.25rem;
  border: 1px solid #d8e2f3;
  border-top: 3px solid #6657e8;
  border-radius: 15px;
  background: linear-gradient(145deg,#fff 0%,#f7f9ff 100%);
  box-shadow: 0 10px 24px rgba(43,63,112,.08);
  transition: transform .16s ease, box-shadow .16s ease;
}
body:not(.dark) .only-email-workspace-root .stat-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(43,63,112,.13); }
body:not(.dark) .only-email-workspace-root .stat-details h3 { color:#687a99; font-size:.68rem; letter-spacing:.09em; text-transform:uppercase; font-weight:800; }
body:not(.dark) .only-email-workspace-root .stat-value { color:#1d3154; font-size:2rem; font-weight:850; }
body:not(.dark) .only-email-workspace-root .stat-icon-wrapper { color:#6657e8; background:#efedff; border:1px solid #ddd8ff; }
body:not(.dark) .only-email-workspace-root .search-container {
  width: min(680px,100%);
  padding: .25rem;
  border: 1px solid #cbd9ee;
  border-radius: 12px;
  background:#fff;
  box-shadow:0 6px 16px rgba(43,63,112,.06);
}
body:not(.dark) .only-email-workspace-root .search-input { min-height:42px; border:0; background:#fbfcff; color:#1c2d4c; font-size:.92rem; }
body:not(.dark) .only-email-workspace-root .search-container:focus-within { border-color:#7569e8; box-shadow:0 0 0 4px rgba(101,84,232,.12); }
body:not(.dark) .only-email-workspace-root .tablewrap {
  overflow:auto;
  border:1px solid #d5e0f0;
  border-radius:15px;
  background:#fff;
  box-shadow:0 10px 25px rgba(43,63,112,.08);
}
body:not(.dark) .only-email-workspace-root table { width:100%; min-width:850px; border-collapse:separate; border-spacing:0; }
body:not(.dark) .only-email-workspace-root th { padding: .9rem 1rem; background:#f3f6fc; color:#607393; font-size:.7rem; font-weight:850; letter-spacing:.07em; text-transform:uppercase; border-bottom:1px solid #d9e3f1; white-space:nowrap; }
body:not(.dark) .only-email-workspace-root td { padding: 1rem; color:#263957; font-size:.86rem; border-bottom:1px solid #e8eef7; }
body:not(.dark) .only-email-workspace-root tbody tr:nth-child(even) td { background:#fbfcff; }
body:not(.dark) .only-email-workspace-root tbody tr:hover td { background:#f2f0ff; }
body:not(.dark) .only-email-workspace-root tbody tr:last-child td { border-bottom:0; }
body:not(.dark) .only-email-workspace-root .btn { border-radius:9px; font-weight:750; transition:transform .15s ease, box-shadow .15s ease; }
body:not(.dark) .only-email-workspace-root .btn:hover { transform:translateY(-1px); box-shadow:0 6px 14px rgba(56,72,120,.13); }
@media (max-width:720px) {
  body:not(.dark) .only-email-workspace-root { padding:1.25rem .85rem 2rem; }
  body:not(.dark) .only-email-workspace-root h2 { font-size:1.55rem; }
  body:not(.dark) .only-email-workspace-root .stats-grid { grid-template-columns:1fr; }
}

/* Refund Issues account register. */
body:not(.dark) .refund-issues-workspace-root { gap:18px; color:#263a55; background:linear-gradient(145deg,#fff 0%,#f8faff 100%) !important; border-color:#d7e2ef; }
body:not(.dark) .refund-issues-hero { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:4px 2px; }
body:not(.dark) .refund-issues-eyebrow { color:#6858e6; font-size:10px; font-weight:800; letter-spacing:.1em; }
body:not(.dark) .refund-issues-hero h2 { margin:4px 0; color:#1e3150; font-size:27px; font-weight:800; }
body:not(.dark) .refund-issues-hero p { color:#6e8099; font-size:13px; font-weight:550; }
body:not(.dark) .refund-issues-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
body:not(.dark) .refund-issue-stat { min-height:92px; padding:17px 18px; background:#fff; border:1px solid #d7e2ef; border-radius:13px; box-shadow:0 6px 17px rgba(35,56,91,.06); }
body:not(.dark) .refund-issue-stat span { display:block; color:#70829b; font-size:10px; font-weight:800; letter-spacing:.07em; }
body:not(.dark) .refund-issue-stat strong { display:block; margin-top:7px; color:#273b61; font-size:25px; font-weight:800; letter-spacing:-.03em; }
body:not(.dark) .refund-issue-stat:nth-child(1) { border-top:3px solid #6a5be7; }
body:not(.dark) .refund-issue-stat:nth-child(2) { border-top:3px solid #24a1df; }
body:not(.dark) .refund-issue-stat:nth-child(3) { border-top:3px solid #15a579; }
body:not(.dark) .refund-issues-toolbar { display:flex; align-items:center; gap:10px; min-height:48px; max-width:620px; padding:5px 12px; background:#fff; border:1px solid #cfdbeb; border-radius:11px; transition:all .16s ease; }
body:not(.dark) .refund-issues-toolbar:focus-within { border-color:#766ae9; box-shadow:0 0 0 4px rgba(103,87,231,.13); }
body:not(.dark) .refund-issues-toolbar span { width:32px; height:32px; display:grid; place-items:center; color:#6254df; background:#f0eeff; border-radius:8px; font-size:19px; font-weight:800; }
body:not(.dark) .refund-issues-toolbar input { width:100%; padding:0; color:#263a55; background:transparent; border:0; outline:0; font:650 13px var(--font-sans); }
body:not(.dark) .refund-account-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(440px,1fr)); gap:15px; }
body:not(.dark) .refund-account-card { overflow:hidden; background:#fff; border:1px solid #d5e1ee; border-radius:14px; box-shadow:0 7px 20px rgba(34,54,86,.07); transition:transform .16s ease,box-shadow .16s ease; }
body:not(.dark) .refund-account-card:hover { box-shadow:0 12px 26px rgba(34,54,86,.12); transform:translateY(-2px); }
body:not(.dark) .refund-account-card header { display:flex; align-items:center; justify-content:space-between; padding:15px 17px; background:linear-gradient(135deg,#f5f3ff,#fafcff); border-bottom:1px solid #e0e8f1; }
body:not(.dark) .refund-account-card header span { color:#7a6dea; font-size:10px; font-weight:800; letter-spacing:.07em; }
body:not(.dark) .refund-account-card h3 { margin:3px 0 0; color:#263a5b; font-size:18px; font-weight:800; }
body:not(.dark) .refund-count { padding:6px 10px; color:#fff; background:linear-gradient(135deg,#6658e6,#806bf0); border-radius:999px; font-size:11px; font-weight:800; box-shadow:0 4px 9px rgba(103,85,228,.2); }
body:not(.dark) .refund-account-head,body:not(.dark) .refund-account-row { display:grid; grid-template-columns:1.15fr 1.15fr .8fr 1.2fr; gap:10px; align-items:center; }
body:not(.dark) .refund-account-head { padding:10px 17px; color:#8392a6; background:#f7f9fc; border-bottom:1px solid #e3eaf2; font-size:9.5px; font-weight:800; letter-spacing:.06em; }
body:not(.dark) .refund-account-row { min-height:47px; padding:10px 17px; color:#40546e; border-bottom:1px solid #e6edf4; font-size:12px; font-weight:600; }
body:not(.dark) .refund-account-row:last-child { border-bottom:0; }
body:not(.dark) .refund-account-row:nth-child(odd) { background:#fbfcff; }
body:not(.dark) .refund-account-row b { color:#695ae5; font-weight:800; }
body:not(.dark) .refund-tracking { color:#2378c8; font-family:var(--font-mono); font-size:11px; font-weight:700; }
body:not(.dark) .refund-issues-empty { padding:54px 24px; color:#73849c; background:#fff; border:1px dashed #cbd8e7; border-radius:14px; text-align:center; font-size:14px; font-weight:600; }
body:not(.dark) .aged-account-action { color:#087f61 !important; font-weight:800 !important; background:#edfff7 !important; }
body:not(.dark) .aged-account-action:hover { color:#05634c !important; background:#d9faec !important; }
@media (max-width:760px) { body:not(.dark) .refund-issues-hero { align-items:flex-start; flex-direction:column; } body:not(.dark) .refund-issues-stats { grid-template-columns:1fr; } body:not(.dark) .refund-account-grid { grid-template-columns:1fr; } body:not(.dark) .refund-account-head,body:not(.dark) .refund-account-row { grid-template-columns:1fr 1fr; } }
@media (max-width:760px) {
  body:not(.dark) .delivered-operations-workspace-root .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.dark) .delivered-operations-workspace-root .search-wrapper { flex-basis:100%; }
  body:not(.dark) .delivered-operations-workspace-root .footerline { align-items:flex-start !important; flex-direction:column; gap:10px; }
}

/* Stronger Delivered Log search and filter rail. */
body:not(.dark) .delivered-operations-workspace-root .control-bar {
  position:relative;
  isolation:isolate;
  background:linear-gradient(135deg,#ffffff 0%,#fafbff 100%) !important;
}
body:not(.dark) .delivered-operations-workspace-root .control-bar .search-wrapper {
  flex:2 1 560px;
  max-width:700px;
  min-height:52px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:5px 12px 5px 8px;
  background:#fff;
  border:1px solid #c7d6e7;
  border-radius:12px;
  box-shadow:0 2px 5px rgba(42,62,95,.045),inset 0 1px 0 rgba(255,255,255,.9);
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
body:not(.dark) .delivered-operations-workspace-root .control-bar .search-wrapper > span {
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  padding-left:0 !important;
  color:#5b4ddd !important;
  background:#efedff;
  border:1px solid #dedaff;
  border-radius:9px;
  font-size:21px;
  font-weight:800;
}
body:not(.dark) .delivered-operations-workspace-root .control-bar .search-input {
  min-height:40px;
  padding:0 !important;
  color:#1f3551;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  font-size:14px;
  font-weight:650;
  letter-spacing:.005em;
}
body:not(.dark) .delivered-operations-workspace-root .control-bar .search-input:focus { outline:none; }
body:not(.dark) .delivered-operations-workspace-root .control-bar .search-wrapper:focus-within {
  border-color:#7569e8;
  box-shadow:0 0 0 4px rgba(101,84,232,.14),0 8px 18px rgba(71,61,165,.09);
  transform:translateY(-1px);
}
body:not(.dark) .delivered-operations-workspace-root .control-bar .search-wrapper:focus-within > span { color:#fff !important; background:linear-gradient(135deg,#6255e8,#7e6af3); border-color:#6255e8; }
body:not(.dark) .delivered-operations-workspace-root .control-bar .filters-wrapper {
  flex:1 1 auto;
  justify-content:flex-end;
  padding-left:8px;
}
body:not(.dark) .delivered-operations-workspace-root .control-bar .filters-wrapper .select-filter {
  min-width:145px;
  padding:0 34px 0 12px;
  background-color:#fafdff !important;
}
body:not(.dark) .delivered-operations-workspace-root .control-bar .filters-wrapper .btn {
  min-width:105px;
  color:#fff !important;
  background:linear-gradient(135deg,#6255e8,#7865ef) !important;
  border-color:#6255e8 !important;
  box-shadow:0 4px 10px rgba(99,83,229,.19);
}
body:not(.dark) .delivered-operations-workspace-root .control-bar .filters-wrapper .btn:hover {
  color:#fff !important;
  background:linear-gradient(135deg,#5548d9,#6e59ed) !important;
  box-shadow:0 7px 15px rgba(99,83,229,.28);
  transform:translateY(-1px);
}
@media (max-width:1180px) {
  body:not(.dark) .delivered-operations-workspace-root .control-bar .search-wrapper { flex-basis:100%; max-width:none; }
  body:not(.dark) .delivered-operations-workspace-root .control-bar .filters-wrapper { justify-content:flex-start; padding-left:0; }
}

/* Final Delivered Log layout pass: keep every column readable and let only the
   table viewport scroll horizontally.  This intentionally contains no data or
   interaction rules. */
body:not(.dark) .delivered-operations-workspace-root {
  width:100% !important;
  max-width:1820px !important;
  margin-inline:auto !important;
  padding-inline:clamp(14px,2vw,30px) !important;
  box-sizing:border-box;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap {
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  scrollbar-gutter:stable;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap table {
  width:max-content !important;
  min-width:1545px !important;
  table-layout:auto !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap th,
body:not(.dark) .delivered-operations-workspace-root .tablewrap td {
  box-sizing:border-box !important;
  vertical-align:middle !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap th { height:44px; padding:12px 14px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td { height:58px; padding:10px 14px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(1),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(1) { width:44px !important; min-width:44px !important; padding-inline:10px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(2),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) { width:220px !important; min-width:220px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(3),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(3) { width:125px !important; min-width:125px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(4),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(4) { width:120px !important; min-width:120px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(5),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(5) { width:175px !important; min-width:175px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(6),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(6) { width:125px !important; min-width:125px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(7),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(7) { width:135px !important; min-width:135px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(8),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(8) { width:165px !important; min-width:165px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(9),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(9) { width:150px !important; min-width:150px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(10),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(10) { width:125px !important; min-width:125px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:nth-child(11),
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(11) { width:190px !important; min-width:190px !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap th:last-child,
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:last-child { position:static !important; right:auto !important; box-shadow:none !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) { color:#1264b5 !important; font-weight:800 !important; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) > span,
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(2) > button { margin-left:8px; }
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(5) select,
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(7) select {
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  height:38px !important;
  padding:0 28px 0 11px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(10) > span {
  display:inline-flex !important;
  max-width:100% !important;
  min-height:28px !important;
  padding:4px 9px !important;
  align-items:center !important;
  justify-content:center !important;
  white-space:normal !important;
  line-height:1.15 !important;
  text-align:center !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(11) > div {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  min-width:160px !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap td:nth-child(11) .btn { min-width:108px !important; flex:0 0 auto !important; }

/* Navigation is outside the workspace root, so keep its labels distributed too. */
body:not(.dark) .portal-nav-tabs { width:100%; gap:clamp(4px,.8vw,14px); justify-content:space-between; }
body:not(.dark) .portal-nav-tabs button { flex:1 1 0; min-width:max-content; }
@media (max-width:680px) {
  body:not(.dark) .portal-nav-tabs { overflow-x:auto; justify-content:flex-start; }
  body:not(.dark) .portal-nav-tabs button { flex:0 0 auto; }
  body:not(.dark) .delivered-operations-workspace-root .control-bar { align-items:stretch; }
}

/* Final action-menu layer: keep the rail pinned, but let its fixed dropdown
   escape the table cell and paint above every row. */
body:not(.dark) .delivered-operations-workspace-root .tablewrap thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap thead th:last-child {
  right: 0 !important;
  z-index: 110 !important;
  background: #f3f6fc !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap tbody td:last-child {
  position: sticky !important;
  right: 0 !important;
  z-index: 1 !important;
  overflow: visible !important;
  background: #fff !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap tbody td:last-child:has(.context-menu-dropdown) {
  z-index: 100000 !important;
}
body:not(.dark) .delivered-operations-workspace-root .tablewrap tbody td:last-child > div,
body:not(.dark) .delivered-operations-workspace-root .context-menu-container {
  position: relative;
  z-index: 100000 !important;
  overflow: visible !important;
}
body:not(.dark) .delivered-operations-workspace-root .context-menu-dropdown {
  position: fixed !important;
  z-index: 1000000 !important;
  isolation: isolate;
}
