/* Minnymy Midnight: navy work surfaces, cyan signals, violet accents. */
@media screen {
body[data-panel-theme=midnight]{color-scheme:dark;--canvas:#0b1326;--surface:#131f38;--ink:#edf3ff;--muted:#a1b2cd;--line:#2a3a59;--accent:#a794ff;--ui-ink:#edf3ff;--ui-muted:#a1b2cd;--ui-line:#2a3a59;--ui-primary:#685bd9;--station-ink:#edf3ff;--station-accent:#72dce5;--station-border:#2a3a59;background:radial-gradient(ellipse at 80% 0,#25245370,transparent 52%),radial-gradient(ellipse at 20% 60%,#12364e30,transparent 55%),#0b1326!important;color:#edf3ff!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;}
body[data-panel-theme=midnight] .main{color:#edf3ff;}
body[data-panel-theme=midnight] :is(.main,.auth-card) :is(h1,h2,h3,h4,strong){color:#edf3ff!important;}
body[data-panel-theme=midnight] :is(.main,.auth-card) :is(label,small,.muted,.hint,.help,.sub,.ps-help){color:#a8b8d2!important;}
body[data-panel-theme=midnight] .main a:not(.btn){color:#aabfff!important;}
body[data-panel-theme=midnight] :is(.card,.db-card,.db-stat,.stat,.minim-chat,.minim-history,.minim-floating-chat,.tp-list,.to-results,.auth-shell,.auth-card,dialog){background:#131f38!important;color:#edf3ff!important;border-color:#2a3a59!important;border-radius:14px;box-shadow:0 8px 30px #02081926!important;}
body[data-panel-theme=midnight] :is(.card,.db-card,.db-stat){background:linear-gradient(135deg,#192641,#131f38 75%)!important;}
body[data-panel-theme=midnight] .sidebar{background:linear-gradient(180deg,#111c34,#0c152b)!important;border-right:1px solid #2a3a59!important;box-shadow:6px 0 30px #02081926;}
body[data-panel-theme=midnight] .sidebar .brand{padding-bottom:16px;border-bottom:1px solid #283651;}
body[data-panel-theme=midnight] .sidebar .brand img{object-fit:contain!important;height:auto!important;max-height:66px;padding:4px 12px;}
body[data-panel-theme=midnight] .sidebar .nav-heading{color:#8396b7!important;letter-spacing:1.6px!important;}
body[data-panel-theme=midnight] .sidebar .nav-link{color:#b8c5df!important;border:1px solid transparent!important;}
body[data-panel-theme=midnight] .sidebar .nav-link svg{color:#8ea6cc!important;opacity:1;}
body[data-panel-theme=midnight] .sidebar .nav-link:hover{background:#21314f!important;color:#fff!important;}
body[data-panel-theme=midnight] .sidebar .nav-link.active{background:linear-gradient(100deg,#6251c92e,#21465b60)!important;border-color:#655db670!important;color:#fff!important;box-shadow:inset 0 0 20px #8b6eff0a!important;}
body[data-panel-theme=midnight] .sidebar .nav-link.active:before{background:#80dae6!important;}
body[data-panel-theme=midnight] .sidebar .nav-link.active svg{color:#83e2ed!important;}
body[data-panel-theme=midnight] #sidebar-toggle{background:#192740!important;color:#b9d5ff!important;border-color:#3b4d6d!important;box-shadow:0 4px 15px #02081950;}
body[data-panel-theme=midnight] :is(.main,.auth-card) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select){background:#0e192f!important;color:#edf3ff!important;border-color:#344564!important;box-shadow:none!important;border-radius:9px;}
body[data-panel-theme=midnight] input::placeholder,body[data-panel-theme=midnight] textarea::placeholder{color:#8e9fbd!important;opacity:1;}
body[data-panel-theme=midnight] :is(input,textarea,select):focus{border-color:#8fa1ff!important;outline:2px solid #9484ff65;outline-offset:2px;}
body[data-panel-theme=midnight] :is(button,a,summary):focus-visible{outline:2px solid #8be5ef!important;outline-offset:3px;}
body[data-panel-theme=midnight] :is(.main,.auth-card) :is(button,.btn,.db-primary){background:linear-gradient(110deg,#6253ce,#456dc1)!important;border:1px solid #8c8ae866!important;color:#fff!important;box-shadow:0 4px 14px #5645c426!important;font-weight:600;transition:background .18s,border-color .18s,box-shadow .18s;}
body[data-panel-theme=midnight] :is(.main,.auth-card) :is(button,.btn):hover{border-color:#a5b7ff!important;box-shadow:0 4px 18px #8270ff30!important;}
body[data-panel-theme=midnight] :is(.main,.auth-card) :is(.btn-light,.ui-secondary,.shared-button.btn-light){background:#1c2b46!important;border-color:#3a4b69!important;color:#c4d3ee!important;box-shadow:none!important;}
body[data-panel-theme=midnight] :is(.main,.auth-card) :is(.btn-light,.ui-secondary):hover{background:#293b59!important;border-color:#6b80a6!important;}
body[data-panel-theme=midnight] :is(.main,.auth-card) :is(.btn-danger,.ui-destructive){background:#3b2435!important;color:#ffafb8!important;border-color:#774257!important;}
body[data-panel-theme=midnight] :is(.main,.auth-card) button:disabled{background:#1a253d!important;color:#8292af!important;border-color:#2b3a55!important;box-shadow:none!important;cursor:not-allowed;opacity:.7!important;}
body[data-panel-theme=midnight] input[type=checkbox],body[data-panel-theme=midnight] input[type=radio]{accent-color:#9585ff!important;}
body[data-panel-theme=midnight] input[type=file]::file-selector-button{background:#253650;color:#dce8ff;border:1px solid #405579;}
body[data-panel-theme=midnight] :is(table,.shared-table){color:#d9e4f7!important;}
body[data-panel-theme=midnight] :is(table th,.shared-table th,.to-table thead th,.tp-list-head){background:#192740!important;color:#aebfda!important;border-color:#2d3e5b!important;}
body[data-panel-theme=midnight] :is(table td,.shared-table td,.tp-row,.to-order-row){border-color:#2a3a56!important;color:#dae5f8!important;}
body[data-panel-theme=midnight] :is(table tbody tr,.tp-row):hover{background:#1d2d49!important;}
body[data-panel-theme=midnight] :is(.shared-selected,.tp-row.selected,.to-order-row.selected){background:#283355!important;box-shadow:inset 3px 0 #9a8aff!important;}
body[data-panel-theme=midnight] :is(dialog,.compact-dialog,.product-menu-items,.tp-custom>div,.customer-picker-results){background:#15213a!important;color:#e4edff!important;border-color:#3b4c6b!important;}
body[data-panel-theme=midnight] dialog::backdrop{background:#040918a8;backdrop-filter:blur(5px);}
body[data-panel-theme=midnight] :is(.shared-empty,.agenda-empty,.empty-state){background:#111d34!important;color:#a1b2cc!important;}
body[data-panel-theme=midnight] :is(.shared-alert,.error,.to-error,.ps .error,.auth-error,.warning-late,.order-late,.stock-low){background:#352334!important;border-color:#764559!important;color:#ffb3ba!important;}
body[data-panel-theme=midnight] :is(.success,.good,.quick-notice-add,.minim-saved){background:#173637!important;color:#8be4ca!important;border-color:#386a62!important;}
body[data-panel-theme=midnight] :is(.warning,.warning-urgent,.order-urgent,.quick-notice-subtract){background:#332b35!important;color:#f3cb92!important;border-color:#766147!important;}
body[data-panel-theme=midnight] :is(.badge,.db-tag,.ps-badge,.status-badge){background:#26334f!important;color:#bdcced!important;border:1px solid #3b4b69;}
body[data-panel-theme=midnight] :is(.db-warn,.badge-critical){background:#38283a!important;color:#ffb4bd!important;}
body[data-panel-theme=midnight] .page-header,body[data-panel-theme=midnight] :is(.db-top,.ps-head){border-color:#2a3a59!important;}
body[data-panel-theme=midnight] :is(.db-tools form,.db-shortcuts a,.db-mini-stats,.db-marketplace,.db-question-strip,.order-hand-delivery){background:#17243e!important;border-color:#324463!important;color:#c7d7f3!important;}
body[data-panel-theme=midnight] .db-eyebrow,body[data-panel-theme=midnight] .ps-eyebrow{color:#8bdae8!important;}
body[data-panel-theme=midnight] .db-revenue{position:relative;overflow:hidden;background:linear-gradient(120deg,#193c61,#152542)!important;border:1px solid #527ec159!important;border-top:1px solid #527ec159!important;box-shadow:0 8px 30px #02081933!important;border-radius:15px;padding:24px;}
body[data-panel-theme=midnight] .db-revenue-ty{background:linear-gradient(120deg,#3b3067,#222546 75%)!important;border-color:#9078d965!important;}
body[data-panel-theme=midnight] .db-revenue:after{content:'';position:absolute;width:165px;height:165px;border:1px solid #a7c3ff12;border-radius:50%;right:-65px;top:-70px;pointer-events:none;}
body[data-panel-theme=midnight] .db-revenue>strong{color:#fff!important;font-size:36px;letter-spacing:-1px;}
body[data-panel-theme=midnight] .db-revenue-source{color:#e1eaff!important;}
body[data-panel-theme=midnight] .db-revenue-count{background:#10183255!important;color:#d3ddff!important;}
body[data-panel-theme=midnight] .db-revenue>small{color:#c0c9e6!important;}
body[data-panel-theme=midnight] .db-revenue>a{color:#d8d0ff!important;}
body[data-panel-theme=midnight] .db-stat{border-top:2px solid #7d73da!important;}
body[data-panel-theme=midnight] .db-stat:nth-child(2){border-top-color:#6ab9e9!important;}
body[data-panel-theme=midnight] .db-stat:nth-child(3){border-top-color:#64c7b4!important;}
body[data-panel-theme=midnight] .db-stat:nth-child(4){border-top-color:#c8a0e4!important;}
body[data-panel-theme=midnight] .db-row{background:transparent!important;border-color:#2a3a59!important;}
body[data-panel-theme=midnight] .db-row:hover{background:#23324e!important;}
body[data-panel-theme=midnight] .db-track{background:#27354e!important;}
body[data-panel-theme=midnight] .db-track span{background:linear-gradient(90deg,#8e78ed,#84d8e7)!important;box-shadow:0 0 9px #8c7cff33;}
body[data-panel-theme=midnight] .db-date i,body[data-panel-theme=midnight] .db-dot{background:#84dce0!important;}
body[data-panel-theme=midnight] .ps .ps-order.ps-order{background:#192740!important;color:#d7e4fa!important;border-color:#324464!important;box-shadow:none!important;}
body[data-panel-theme=midnight] .ps .ps-order.ps-order.active{background:linear-gradient(110deg,#302e57,#1c3a50)!important;border-color:#8e83d9!important;box-shadow:inset 3px 0 #94deeb!important;}
body[data-panel-theme=midnight] :is(.ps-progress,.ps-scan-panel,.ps-item,.ps-item.next,.ps-item.done){background:#15243c!important;border-color:#354966!important;}
body[data-panel-theme=midnight] .ps-queue-tabs button{background:transparent!important;color:#adbfdd!important;box-shadow:none!important;}
body[data-panel-theme=midnight] .ps-queue-tabs button.selected{background:#37325c!important;color:#e0dcff!important;border-color:#8978ca!important;}
body[data-panel-theme=midnight] :is(.ps-stock-code,.ps-location){background:#172f42!important;color:#8ee6ed!important;border-color:#3d657a!important;}
body[data-panel-theme=midnight] #ps-ready-toast{background:#173840!important;border:1px solid #65c6b4!important;color:#c6fff0!important;box-shadow:0 12px 60px #0007!important;}
body[data-panel-theme=midnight] .agenda button.calendar-day{background:#14213a!important;border-color:#2b3c59!important;color:#d3e0f6!important;box-shadow:none!important;}
body[data-panel-theme=midnight] .agenda button.calendar-day.outside{background:#0f1a30!important;color:#8597b5!important;}
body[data-panel-theme=midnight] .agenda button.calendar-day.selected{background:#302e57!important;box-shadow:inset 0 0 0 2px #9480de!important;}
body[data-panel-theme=midnight] .agenda .today .day-number{background:#7663d2!important;color:#fff!important;}
body[data-panel-theme=midnight] .calendar-event{background:#253855!important;color:#c8d8f4!important;border-color:var(--kind,#9a8ef0)!important;}
body[data-panel-theme=midnight] :is(.minim-prompts button,.minim-message.user .minim-message-text,.minim-knowledge-item,.minim-action,.minim-composer,.minim-screen-grid label,.minim-enable){background:#20304d!important;color:#d8e4f9!important;border-color:#3b4d6e!important;}
body[data-panel-theme=midnight] .minim-message-text{color:#dce7fa!important;}
body[data-panel-theme=midnight] .minim-source-links a{background:#243350!important;color:#b8caff!important;border-color:#425775!important;}
body[data-panel-theme=midnight] .auth-page{background:radial-gradient(ellipse at 30% 10%,#38316070,transparent 65%),#0b1326!important;}
body[data-panel-theme=midnight] .auth-rail{background:linear-gradient(150deg,#29254f,#132740)!important;}
body[data-panel-theme=midnight] .auth-shell{border:1px solid #445273!important;}
body[data-panel-theme=midnight] .auth-card{box-shadow:none!important;border-radius:0!important;}
/* Artwork stays faithful to source files. */
body[data-panel-theme=midnight] :is(.ps-item-visual img,.tp-image img,.to-product-image img,.image-preview img,.picture){background:#fff!important;}
body[data-panel-theme=midnight] :is(.whatsapp-button,.whatsapp-tracking,.wa-send){background:#166c50!important;color:#bfffe0!important;border-color:#349a6f!important;}
body[data-panel-theme=midnight] ::selection{background:#7667b8;color:#fff;}
body[data-panel-theme=midnight]{scrollbar-color:#405174 #0e192f;}
body[data-panel-theme=midnight] progress{accent-color:#86d4dc;}
@media(prefers-reduced-motion:reduce){body[data-panel-theme=midnight] *{transition:none!important;scroll-behavior:auto!important;}}
@media(max-width:650px){body[data-panel-theme=midnight] .db-revenue>strong{font-size:30px;}body[data-panel-theme=midnight] :is(.main,.auth-card) :is(input,select,textarea){font-size:16px!important;}}
}
@media screen{
body[data-panel-theme=midnight] .main{background:transparent!important;}
body[data-panel-theme=midnight] :is(.main,.to-workspace,.ps){--line:#2a3a59;--muted:#a1b2cd;--navy:#b6c7ff;--panel-ink:#e3edff;--panel-muted:#a8b8d2;--station-ink:#edf3ff;--station-accent:#72dce5;--station-border:#2a3a59;}
body[data-panel-theme=midnight] .to-filter-panel{background:#141f36!important;border-color:#344362!important;}
body[data-panel-theme=midnight] .to-health.warning{background:transparent!important;color:#efbc86!important;}
body[data-panel-theme=midnight] .to-tabs a[aria-current=page]{background:#39345a70!important;color:#e7e0ff!important;}
body[data-panel-theme=midnight] .to-tabs a[aria-current=page]:after{background:#ad9aff!important;}
body[data-panel-theme=midnight] .to-tabs a b{color:#c9d7f2!important;background:#26334f!important;}
body[data-panel-theme=midnight] .ps-rack{background:#153444!important;border-color:#37677b!important;color:#a0e7ec!important;}
body[data-panel-theme=midnight] .ps .ps-item-visual{background:white!important;border-color:#49617e!important;box-shadow:none!important;}
body[data-panel-theme=midnight] .order-console .oc-whatsapp-send{background:#154e3d!important;border-color:#347d60!important;color:#b6f2cf!important;}
body[data-panel-theme=midnight] .order-console .oc-whatsapp-send svg{stroke:#6fe6a5!important;}
body[data-panel-theme=midnight] .ps:fullscreen{background:#0b1326!important;}
}
@media screen{
body[data-panel-theme=midnight] .main :is(.page-header,.ps-head,.to-head,.tp-head,.oc-top,.db-top){background:transparent!important;box-shadow:none!important;}
body[data-panel-theme=midnight] .main.ps .ps-queue-tabs button{background:#18253e!important;color:#b6c6e1!important;border-color:#334663!important;box-shadow:none!important;}
body[data-panel-theme=midnight] .main.ps .ps-queue-tabs button.selected{background:#36315c!important;color:#eee8ff!important;border-color:#8e7ad0!important;box-shadow:inset 0 -2px #a392e5!important;}
body[data-panel-theme=midnight] .main .order-console .oc-stages button{background:#1c2b46!important;border-color:#354866!important;color:#b8c9e5!important;box-shadow:none!important;}
body[data-panel-theme=midnight] .main .order-console .oc-stages button.current{background:linear-gradient(105deg,#423469,#234655)!important;color:#a4f2e0!important;border:1px solid #7e7bb8!important;}
body[data-panel-theme=midnight] .main .minim-history [data-chat-list] button{background:transparent!important;color:#b6c6e1!important;border:1px solid transparent!important;box-shadow:none!important;}
body[data-panel-theme=midnight] .main .minim-history [data-chat-list] button:hover,body[data-panel-theme=midnight] .main .minim-history [data-chat-list] button.active{background:#263454!important;border-color:#5c628d!important;}
body[data-panel-theme=midnight] .main.ps :is(input,select,textarea){background:#0e192f!important;color:#edf3ff!important;border-color:#344564!important;}
body[data-panel-theme=midnight] .main .to-workspace :is(input,select,textarea){background:#0e192f!important;color:#edf3ff!important;}
body[data-panel-theme=midnight] .main :is(.oc-menu>div,.oc-manual-shipping>div){background:#192740!important;border-color:#4e6183!important;}
body[data-panel-theme=midnight] .main .oc-stages{background:#152039!important;border-color:#354462!important;}
body[data-panel-theme=midnight] .main .to-filter-panel .to-filter-form{border-color:#344362!important;}
body[data-panel-theme=midnight] .main .to-advanced{border-color:#344362!important;}
}
@media screen and (max-width:760px){
body[data-panel-theme=midnight] .mobile-menu{display:none!important;}
body[data-panel-theme=midnight] #sidebar-toggle{left:214px;top:14px;width:36px;height:36px;}
body[data-panel-theme=midnight].sidebar-collapsed #sidebar-toggle{left:16px;}
body[data-panel-theme=midnight] .sidebar.mobile-open{transform:translateX(0)!important;box-shadow:12px 0 60px #0007;}
}
