/* v4 semantic palette, shared by black glass and minimal white. */
body{--rs-surface:#141c2a;--rs-ink:#e9effa;--rs-soft:#a8b7cf;--rs-outline:#ffffff18;--rs-info:#a5b4fc;--rs-success:#6ee7b7;--rs-danger:#fda4af;--rs-warning:#fcd34d}
.rs-brand-logo{width:62px!important;max-width:62px!important;height:46px!important;object-fit:contain!important;background:#fff!important;padding:4px!important;border:1px solid #ffffff30!important;border-radius:12px!important}#profileBtn img{width:36px;height:36px;object-fit:contain;border:0!important;box-shadow:none!important}
.rs-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 11px;font-size:12px;line-height:1.35;font-weight:600;border:1px solid color-mix(in srgb,currentColor 25%,transparent);white-space:normal;background:color-mix(in srgb,currentColor 9%,transparent)}.rs-pill-info{color:var(--rs-info)!important}.rs-pill-success{color:var(--rs-success)!important}.rs-pill-danger{color:var(--rs-danger)!important}.rs-pill-warning{color:var(--rs-warning)!important}.rs-pill-neutral{color:var(--rs-soft)!important}.rs-section-title{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:16px!important;padding-bottom:12px;border-bottom:1px solid var(--rs-outline)}.rs-heading-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:#818cf81a;color:var(--rs-info);flex:0 0 32px}.rs-heading-icon svg{width:18px;height:18px}.rs-report-period{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px}.rs-report-period label{font-weight:600;font-size:13px}.rs-report-period small{color:var(--rs-soft)}.rs-action-edit,.rs-action-print{color:var(--rs-info)!important;background:#818cf818!important;border:1px solid #818cf845!important}.rs-action-delete{color:var(--rs-danger)!important;background:#fb718514!important;border:1px solid #fb71853d!important}.rs-action-add{color:var(--rs-success)!important;background:#10b98118!important;border:1px solid #10b98144!important}.rs-action-print{display:inline-flex;align-items:center;gap:7px}.rs-action-print svg{width:17px;height:17px}.rs-close-action{color:var(--rs-ink)!important;min-width:88px;flex-shrink:0;justify-content:center}
#txTable tr,#customerTable tr,#usersTable tr{transition:background .15s}#txTable tr:nth-child(even),#customerTable tr:nth-child(even),#usersTable tr:nth-child(even){background:#ffffff02}#txTable tr:hover,#customerTable tr:hover,#usersTable tr:hover{background:#818cf80a}#customerTable td .rs-pill{max-width:220px}#custServiceFilter,#custService{border-color:#818cf860!important;background:#818cf812!important;color:var(--rs-info)!important}#view-statement>.glass,#view-customerLedger>.glass,#view-adv2_panel>.glass{background:linear-gradient(135deg,#172238,#0e1624)!important}#invTotal,#grandTotalValue{font-size:24px;font-weight:750;color:var(--rs-success)!important;font-variant-numeric:tabular-nums}#invoiceForm #invTotal{padding:4px 0}#editInvoiceModal .rs-modal-card{--rs-modal-width:960px}#editItemBody .qty{min-width:75px}#editItemBody .rate{min-width:110px}#editInvoiceTotals{background:#10b9810c!important;border:1px solid #10b98130;padding:16px!important}#editInvoiceTotals input{max-width:160px}#paymentModal .rs-modal-card{--rs-modal-width:560px}#paymentModal .rs-modal-card>div:first-child{display:flex!important;flex-wrap:nowrap!important;gap:12px}#paymentHistory>div{padding:10px;border-radius:10px;border:1px solid var(--rs-outline)}#view-reports h3,#view-reports h4{color:var(--rs-ink)}
/* Full light palette: override inherited dark utility classes as well as cards. */
body.theme-minimal{color-scheme:light;--rs-bg:#edf2f8;--rs-panel:#fff;--rs-surface:#f4f7fc;--rs-text:#16253d;--rs-ink:#16253d;--rs-soft:#51627d;--rs-muted:#51627d;--rs-outline:#23395b20;--rs-line:#23395b20;--rs-info:#4338ca;--rs-success:#047857;--rs-danger:#be123c;--rs-warning:#92400e;background:radial-gradient(ellipse at 5% 0,#e0e7ff,transparent 45%),#edf2f8!important;color:#16253d!important}
body.theme-minimal :is(.glass,.modal-glass,.rs-modal-card){background:linear-gradient(135deg,#fffffffa,#f7f9fdf5)!important;border-color:#23395b20!important;box-shadow:0 12px 36px #263b5910,inset 0 1px #fff!important;color:#16253d!important}body.theme-minimal>header.sticky{background:#fffffff5!important;color:#16253d!important;border-bottom:1px solid #23395b20!important}body.theme-minimal :is(h1,h2,h3,h4,h5,th,td,header span,header i,header button){text-shadow:none!important}body.theme-minimal :is([class*="text-white"],.text-gray-100,.text-gray-200,.text-gray-300,.text-gray-900){color:#24344f!important}body.theme-minimal :is([class*="text-white/"],.text-gray-400,.text-gray-500,.text-gray-600){color:#51627d!important}body.theme-minimal :is(.text-emerald-300,.text-emerald-400,.text-green-400){color:#047857!important}body.theme-minimal :is(.text-rose-300,.text-red-400,.text-rose-400){color:#be123c!important}body.theme-minimal :is(.text-sky-300,.text-cyan-300,.text-blue-400){color:#0369a1!important}body.theme-minimal :is(.text-amber-300,.text-amber-400,.text-yellow-400){color:#92400e!important}body.theme-minimal :is(.text-purple-300,.text-indigo-300){color:#4338ca!important}
body.theme-minimal :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#fff!important;color:#16253d!important;border:1px solid #b9c5d7!important}body.theme-minimal select option{background:#fff!important;color:#16253d!important}body.theme-minimal input::placeholder,body.theme-minimal textarea::placeholder{color:#687890!important}body.theme-minimal input[type=checkbox]{accent-color:#4f46e5}body.theme-minimal :is(.btn,#profileBtn,#notifBtn,.rs-close){color:#24344f!important;background:#eef2f9!important;border-color:#c4cfdf!important}body.theme-minimal :is(#profileBtn svg,#notifBtn svg){color:#4338ca!important}body.theme-minimal .rs-brand-text,body.theme-minimal #profileName{color:#16253d!important}body.theme-minimal .rs-brand-text small{color:#51627d!important}body.theme-minimal :is(#notifPanel,#profileMenu){background:#fff!important;color:#16253d!important;border-color:#c4cfdf!important}body.theme-minimal #notifList li{background:#f2f5fc!important;border-color:#d4deec!important}body.theme-minimal #profileMenu button[onclick*="logout"]{color:#be123c!important;background:#fff1f2!important;border-color:#fecdd3!important}body.theme-minimal .rs-modal{background:#15254077!important}body.theme-minimal .rs-modal-card>div:first-child:has(h2,h3),body.theme-minimal .rs-modal-card>div:last-child:has(>button){background:#fff!important;border-color:#d4deec!important}body.theme-minimal #accessList{background:#eef2f8!important}body.theme-minimal :is([class*="bg-black/"],[class*="bg-white/"],.rs-payment,.rs-draft-bar){background:#eef3fa!important}body.theme-minimal [style*="background"][style*="#"]:not(canvas):not(svg):not(path){background-color:#f4f7fc!important;color:#24344f!important}body.theme-minimal #sidebar{background:#fffffff5!important;color:#16253d!important}body.theme-minimal #sidebar nav .btn[aria-current=page]{background:#e0e7ff!important;border-color:#a5b4fc!important}body.theme-minimal .rs-modal-card .rs-field,body.theme-minimal .rs-admin-form label{color:#51627d!important}body.theme-minimal #rsUserStatus,body.theme-minimal .rs-user-kpis span{color:#51627d!important}body.theme-minimal .rs-role{color:#4338ca!important;background:#e0e7ff!important}body.theme-minimal #view-statement>.glass,body.theme-minimal #view-customerLedger>.glass,body.theme-minimal #view-adv2_panel>.glass{background:linear-gradient(135deg,#fff,#edf4ff)!important}body.theme-minimal .rs-action-edit,body.theme-minimal .rs-action-print{color:#4338ca!important;background:#eef2ff!important;border-color:#c7d2fe!important}body.theme-minimal .rs-action-delete{color:#be123c!important;background:#fff1f2!important;border-color:#fecdd3!important}body.theme-minimal .rs-action-add{color:#047857!important;background:#ecfdf5!important;border-color:#a7f3d0!important}body.theme-minimal .rs-pill-info{color:#4338ca!important}body.theme-minimal .rs-pill-success{color:#047857!important}body.theme-minimal .rs-pill-danger{color:#be123c!important}body.theme-minimal .rs-pill-warning{color:#92400e!important}body.theme-minimal .chip,body.theme-minimal .badge{background:#e0e7ff!important;color:#3730a3!important;box-shadow:none!important}body.theme-minimal .rs-delivery,body.theme-minimal .rs-draft-bar span{color:#4338ca!important}body.theme-minimal .rs-delivery[data-state=accepted]{color:#047857!important}body.theme-minimal .rs-delivery[data-state=failed],body.theme-minimal .rs-delivery[data-state=unknown]{color:#92400e!important}body.theme-minimal .rs-heading-icon{color:#4338ca!important;background:#e0e7ff!important}
@media(max-width:600px){.rs-report-period>*{max-width:100%}.rs-report-period small{width:100%}#view-commission-report>.flex{flex-wrap:wrap;gap:12px}#view-commission-report .flex:has(#commissionFrom){flex-wrap:wrap}#editInvoiceModal .rs-modal-card>div:first-child{flex-wrap:nowrap!important}#editInvoiceTotals input{max-width:120px}}
body.theme-minimal :is([class*="bg-gray-"],[class*="bg-slate-"],[class*="bg-base-"]){background:#eef3fa!important}body.theme-minimal #mainContent :is([style*="color:white"],[style*="color: white"],[style*="color:#fff"],[style*="color: #fff"],[style*="color:#e6"]){color:#24344f!important}body.theme-minimal #mainContent [style*="background"]:not(canvas):not(svg):not(path){background-color:#f3f6fc!important}#view-statement{background:transparent!important}#view-statement>h3{color:var(--rs-ink)!important}.rs-role::before{content:'●';font-size:9px;margin-right:6px;color:currentColor}
.rs-report-note{padding:14px 16px;border:1px solid var(--rs-outline);border-radius:14px;background:#818cf80a;color:var(--rs-soft);font-size:13px;line-height:1.6}.rs-modal-card button[title=Edit]{color:var(--rs-info)!important}.rs-modal-card button[title=Delete]{color:var(--rs-danger)!important}
