@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* =========================================================
   CUTE & COLORFUL PASTEL LIGHT DESIGN SYSTEM
   Lively, Soft, Friendly, Anti-Fatigue Pastel Palettes
   ========================================================= */

:root {
  --white: #ffffff;
  --text: #1e293b;
  --text-soft: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;

  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
}

/* =========================================================
   CLEAN ALL-WHITE APPLICATION BACKGROUND
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #1e293b !important;
  background: #ffffff !important;
  margin: 0;
  padding: 0;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font-family: inherit !important;
}

/* =========================================================
   THEME 1: VIBRANT TANGERINE ORANGE + WHITE
   ========================================================= */

[data-theme="theme-orange"] body,
[data-theme="theme-orange"] main,
[data-theme="theme-orange"] #sec-cash-counter {
  background: #ffffff !important;
}

/* KPI Cards in Orange Theme: Simple Normal Border + Left Stripe */
[data-theme="theme-orange"] .kpi-occ,
[data-theme="theme-orange"] .kpi-dtcc,
[data-theme="theme-orange"] .kpi-dtdc,
[data-theme="theme-orange"] .kpi-exp,
[data-theme="theme-orange"] .kpi-bal,
[data-theme="theme-orange"] .kpi-ctb,
[data-theme="theme-orange"] #sec-cash-counter .grid>div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #ea580c !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="theme-orange"] #sec-cash-counter .grid>div span:first-child {
  color: #64748b !important;
}

[data-theme="theme-orange"] #sec-cash-counter .grid>div .rounded-lg {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] #yesterdayCTotal,
[data-theme="theme-orange"] #todaysCTotal,
[data-theme="theme-orange"] #todaysDTotal,
[data-theme="theme-orange"] #todaysTotalCash,
[data-theme="theme-orange"] #cctb {
  color: #ea580c !important;
}

[data-theme="theme-orange"] #todaysETotal {
  color: #e11d48 !important;
}

/* Cash & Digital Cards in Orange Theme */
[data-theme="theme-orange"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(1),
[data-theme="theme-orange"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(2) {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="theme-orange"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(1)>div:first-child,
[data-theme="theme-orange"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(2)>div:first-child {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
}

[data-theme="theme-orange"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2 h3 {
  color: #0f172a !important;
}

[data-theme="theme-orange"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2 h3 span:last-child {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] #cash-amount,
[data-theme="theme-orange"] #digital-amount {
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

[data-theme="theme-orange"] #cash-amount:focus,
[data-theme="theme-orange"] #digital-amount:focus {
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
}

[data-theme="theme-orange"] #btn-add-cash,
[data-theme="theme-orange"] #btn-add-digital {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #c2410c !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.22) !important;
}

[data-theme="theme-orange"] thead {
  background: #ffffff !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* SCD Modal in Orange Theme */
[data-theme="theme-orange"] .scd-modal-icon-badge,
[data-theme="theme-orange"] .scd-brand-badge {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] .scd-modal-subtitle,
[data-theme="theme-orange"] .scd-modal-accent-color {
  color: #ea580c !important;
}

[data-theme="theme-orange"] .scd-modal-form-btn {
  background: #ffffff !important;
  color: #ea580c !important;
  border: 1.5px solid #ea580c !important;
}

[data-theme="theme-orange"] .scd-modal-form-btn:hover {
  background: #fff7ed !important;
}

[data-theme="theme-orange"] #scd-sale-card {
  border-left: 4px solid #ea580c !important;
}

[data-theme="theme-orange"] #scd-sale-icon-badge {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] #scd-total-sale {
  color: #ea580c !important;
}

[data-theme="theme-orange"] #timelineModal thead,
[data-theme="theme-orange"] #timelineModal thead th {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-bottom: 1px solid #fed7aa !important;
}

/* Expense Modal in Orange Theme */
[data-theme="theme-orange"] .expense-modal-icon-badge {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] .expense-modal-subtitle,
[data-theme="theme-orange"] .expense-modal-accent-color {
  color: #ea580c !important;
}

[data-theme="theme-orange"] .expense-modal-submit-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #c2410c !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.22) !important;
}

[data-theme="theme-orange"] .expense-modal-total-badge {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] .expense-modal-thead,
[data-theme="theme-orange"] .expense-modal-thead th {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-bottom: 1px solid #fed7aa !important;
}

/* Audit Page in Orange Theme */
[data-theme="theme-orange"] .audit-brand-badge {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] .audit-accordion-header {
  background: #fff7ed !important;
  border-bottom: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] .audit-accent-text {
  color: #ea580c !important;
}

[data-theme="theme-orange"] .btn-orange-solid,
[data-theme="theme-orange"] #save-audit-button:not(:disabled) {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #c2410c !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.22) !important;
}

[data-theme="theme-orange"] .btn-orange {
  background: #ffffff !important;
  color: #ea580c !important;
  border: 1.5px solid #ea580c !important;
}

[data-theme="theme-orange"] .btn-orange:hover {
  background: #fff7ed !important;
}

[data-theme="theme-orange"] .audit-table-thead,
[data-theme="theme-orange"] .audit-table-thead th,
[data-theme="theme-orange"] #audit-checklist-table thead,
[data-theme="theme-orange"] #audit-checklist-table thead th {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-bottom: 1px solid #fed7aa !important;
}

/* LCW in Orange Theme */
[data-theme="theme-orange"] .lcw-brand-badge {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] .lcw-refresh-btn,
[data-theme="theme-orange"] .lcw-submit-btn,
[data-theme="theme-orange"] #btn-submit-exchange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #c2410c !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.22) !important;
}

[data-theme="theme-orange"] .lcw-inventory-card {
  border-left: 4px solid #ea580c !important;
}

[data-theme="theme-orange"] .lcw-total-badge,
[data-theme="theme-orange"] .lcw-status-badge {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] .lcw-total-badge #lcw-inventory-total,
[data-theme="theme-orange"] .lcw-accent-text {
  color: #ea580c !important;
}

[data-theme="theme-orange"] .lcw-table-thead,
[data-theme="theme-orange"] .lcw-table-thead th {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border-bottom: 1px solid #fed7aa !important;
}

/* Login Page & SCD Form in Orange Theme */
[data-theme="theme-orange"] .login-brand-badge,
[data-theme="theme-orange"] .btn-login,
[data-theme="theme-orange"] #btn-submit-scd {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #c2410c !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.22) !important;
}

[data-theme="theme-orange"] .section-header {
  background: #fff7ed !important;
  color: #ea580c !important;
  border-bottom: 1px solid #fed7aa !important;
}

[data-theme="theme-orange"] .remark-modal-accent {
  color: #ea580c !important;
}

[data-theme="theme-orange"] .remark-modal-save-btn {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #c2410c !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.22) !important;
}

/* =========================================================
   THEME 2: LIGHT BLUE + WHITE (Calm Ocean Azure)
   ========================================================= */

[data-theme="theme-blue"] body,
[data-theme="theme-blue"] main,
[data-theme="theme-blue"] #sec-cash-counter {
  background: #ffffff !important;
}

/* KPI Cards in Blue Theme */
[data-theme="theme-blue"] .kpi-occ,
[data-theme="theme-blue"] .kpi-dtcc,
[data-theme="theme-blue"] .kpi-dtdc,
[data-theme="theme-blue"] .kpi-exp,
[data-theme="theme-blue"] .kpi-bal,
[data-theme="theme-blue"] .kpi-ctb,
[data-theme="theme-blue"] #sec-cash-counter .grid>div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #0284c7 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="theme-blue"] #sec-cash-counter .grid>div span:first-child {
  color: #64748b !important;
}

[data-theme="theme-blue"] #sec-cash-counter .grid>div .rounded-lg {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] #yesterdayCTotal,
[data-theme="theme-blue"] #todaysCTotal,
[data-theme="theme-blue"] #todaysDTotal,
[data-theme="theme-blue"] #todaysTotalCash,
[data-theme="theme-blue"] #cctb {
  color: #0284c7 !important;
}

[data-theme="theme-blue"] #todaysETotal {
  color: #e11d48 !important;
}

/* Cash & Digital Cards in Blue Theme */
[data-theme="theme-blue"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(1),
[data-theme="theme-blue"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(2) {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="theme-blue"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(1)>div:first-child,
[data-theme="theme-blue"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(2)>div:first-child {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
}

[data-theme="theme-blue"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2 h3 {
  color: #0f172a !important;
}

[data-theme="theme-blue"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2 h3 span:last-child {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] #cash-amount,
[data-theme="theme-blue"] #digital-amount {
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

[data-theme="theme-blue"] #cash-amount:focus,
[data-theme="theme-blue"] #digital-amount:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="theme-blue"] #btn-add-cash,
[data-theme="theme-blue"] #btn-add-digital {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.22) !important;
}

[data-theme="theme-blue"] thead {
  background: #ffffff !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* SCD Modal in Blue Theme */
[data-theme="theme-blue"] .scd-modal-icon-badge,
[data-theme="theme-blue"] .scd-brand-badge {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] .scd-modal-subtitle,
[data-theme="theme-blue"] .scd-modal-accent-color {
  color: #0284c7 !important;
}

[data-theme="theme-blue"] .scd-modal-form-btn {
  background: #ffffff !important;
  color: #0284c7 !important;
  border: 1.5px solid #0284c7 !important;
}

[data-theme="theme-blue"] .scd-modal-form-btn:hover {
  background: #f0f9ff !important;
}

[data-theme="theme-blue"] #scd-sale-card {
  border-left: 4px solid #0284c7 !important;
}

[data-theme="theme-blue"] #scd-sale-icon-badge {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] #scd-total-sale {
  color: #0284c7 !important;
}

[data-theme="theme-blue"] #timelineModal thead,
[data-theme="theme-blue"] #timelineModal thead th {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border-bottom: 1px solid #bae6fd !important;
}

/* Expense Modal in Blue Theme */
[data-theme="theme-blue"] .expense-modal-icon-badge {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] .expense-modal-subtitle,
[data-theme="theme-blue"] .expense-modal-accent-color {
  color: #0284c7 !important;
}

[data-theme="theme-blue"] .expense-modal-submit-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.22) !important;
}

[data-theme="theme-blue"] .expense-modal-total-badge {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] .expense-modal-thead,
[data-theme="theme-blue"] .expense-modal-thead th {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border-bottom: 1px solid #bae6fd !important;
}

/* Audit Page in Blue Theme */
[data-theme="theme-blue"] .audit-brand-badge {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] .audit-accordion-header {
  background: #f0f9ff !important;
  border-bottom: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] .audit-accent-text {
  color: #0284c7 !important;
}

[data-theme="theme-blue"] .btn-orange-solid,
[data-theme="theme-blue"] #save-audit-button:not(:disabled) {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.22) !important;
}

[data-theme="theme-blue"] .btn-orange {
  background: #ffffff !important;
  color: #0284c7 !important;
  border: 1.5px solid #0284c7 !important;
}

[data-theme="theme-blue"] .btn-orange:hover {
  background: #f0f9ff !important;
}

[data-theme="theme-blue"] .audit-table-thead,
[data-theme="theme-blue"] .audit-table-thead th,
[data-theme="theme-blue"] #audit-checklist-table thead,
[data-theme="theme-blue"] #audit-checklist-table thead th {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border-bottom: 1px solid #bae6fd !important;
}

/* LCW in Blue Theme */
[data-theme="theme-blue"] .lcw-brand-badge {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] .lcw-refresh-btn,
[data-theme="theme-blue"] .lcw-submit-btn,
[data-theme="theme-blue"] #btn-submit-exchange {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.22) !important;
}

[data-theme="theme-blue"] .lcw-inventory-card {
  border-left: 4px solid #0284c7 !important;
}

[data-theme="theme-blue"] .lcw-total-badge,
[data-theme="theme-blue"] .lcw-status-badge {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] .lcw-total-badge #lcw-inventory-total,
[data-theme="theme-blue"] .lcw-accent-text {
  color: #0284c7 !important;
}

[data-theme="theme-blue"] .lcw-table-thead,
[data-theme="theme-blue"] .lcw-table-thead th {
  background: #f0f9ff !important;
  color: #0369a1 !important;
  border-bottom: 1px solid #bae6fd !important;
}

/* Login Page & SCD Form in Blue Theme */
[data-theme="theme-blue"] .login-brand-badge,
[data-theme="theme-blue"] .btn-login,
[data-theme="theme-blue"] #btn-submit-scd {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.22) !important;
}

[data-theme="theme-blue"] .section-header {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border-bottom: 1px solid #bae6fd !important;
}

[data-theme="theme-blue"] .remark-modal-accent {
  color: #0284c7 !important;
}

[data-theme="theme-blue"] .remark-modal-save-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.22) !important;
}

/* =========================================================
   THEME 3: BLACK + WHITE / MINIMALIST SLATE [DEFAULT]
   ========================================================= */

[data-theme="theme-slate"] body,
:root:not([data-theme]) body,
[data-theme="theme-slate"] main,
:root:not([data-theme]) main,
[data-theme="theme-slate"] #sec-cash-counter,
:root:not([data-theme]) #sec-cash-counter {
  background: #ffffff !important;
}

/* KPI Cards in Grey Theme */
[data-theme="theme-slate"] .kpi-occ,
:root:not([data-theme]) .kpi-occ,
[data-theme="theme-slate"] .kpi-dtcc,
:root:not([data-theme]) .kpi-dtcc,
[data-theme="theme-slate"] .kpi-dtdc,
:root:not([data-theme]) .kpi-dtdc,
[data-theme="theme-slate"] .kpi-exp,
:root:not([data-theme]) .kpi-exp,
[data-theme="theme-slate"] .kpi-bal,
:root:not([data-theme]) .kpi-bal,
[data-theme="theme-slate"] .kpi-ctb,
:root:not([data-theme]) .kpi-ctb,
[data-theme="theme-slate"] #sec-cash-counter .grid>div,
:root:not([data-theme]) #sec-cash-counter .grid>div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #94a3b8 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="theme-slate"] #sec-cash-counter .grid>div span:first-child,
:root:not([data-theme]) #sec-cash-counter .grid>div span:first-child {
  color: #64748b !important;
}

[data-theme="theme-slate"] #sec-cash-counter .grid>div .rounded-lg,
:root:not([data-theme]) #sec-cash-counter .grid>div .rounded-lg {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="theme-slate"] #yesterdayCTotal,
:root:not([data-theme]) #yesterdayCTotal,
[data-theme="theme-slate"] #todaysCTotal,
:root:not([data-theme]) #todaysCTotal,
[data-theme="theme-slate"] #todaysDTotal,
:root:not([data-theme]) #todaysDTotal,
[data-theme="theme-slate"] #todaysETotal,
:root:not([data-theme]) #todaysETotal,
[data-theme="theme-slate"] #todaysTotalCash,
:root:not([data-theme]) #todaysTotalCash,
[data-theme="theme-slate"] #cctb,
:root:not([data-theme]) #cctb {
  color: #1e293b !important;
}

/* Cash & Digital Cards in Grey Theme */
[data-theme="theme-slate"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(1),
:root:not([data-theme]) #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(1),
[data-theme="theme-slate"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(2),
:root:not([data-theme]) #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(2) {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="theme-slate"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(1)>div:first-child,
:root:not([data-theme]) #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(1)>div:first-child,
[data-theme="theme-slate"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(2)>div:first-child,
:root:not([data-theme]) #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2>div:nth-child(2)>div:first-child {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
}

[data-theme="theme-slate"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2 h3,
:root:not([data-theme]) #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2 h3 {
  color: #1e293b !important;
}

[data-theme="theme-slate"] #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2 h3 span:last-child,
:root:not([data-theme]) #sec-cash-counter .grid.grid-cols-1.lg\:grid-cols-2 h3 span:last-child {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] #cash-amount,
:root:not([data-theme]) #cash-amount,
[data-theme="theme-slate"] #digital-amount,
:root:not([data-theme]) #digital-amount {
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  background: #ffffff !important;
}

[data-theme="theme-slate"] #cash-amount:focus,
:root:not([data-theme]) #cash-amount:focus,
[data-theme="theme-slate"] #digital-amount:focus,
:root:not([data-theme]) #digital-amount:focus {
  border-color: #64748b !important;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18) !important;
}

[data-theme="theme-slate"] #btn-add-cash,
:root:not([data-theme]) #btn-add-cash,
[data-theme="theme-slate"] #btn-add-digital,
:root:not([data-theme]) #btn-add-digital {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
  box-shadow: 0 3px 10px rgba(71, 85, 105, 0.2) !important;
}

[data-theme="theme-slate"] thead,
:root:not([data-theme]) thead {
  background: #ffffff !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* SCD Modal in Grey Theme */
[data-theme="theme-slate"] .scd-modal-icon-badge,
:root:not([data-theme]) .scd-modal-icon-badge,
[data-theme="theme-slate"] .scd-brand-badge,
:root:not([data-theme]) .scd-brand-badge {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] .scd-modal-subtitle,
:root:not([data-theme]) .scd-modal-subtitle,
[data-theme="theme-slate"] .scd-modal-accent-color,
:root:not([data-theme]) .scd-modal-accent-color {
  color: #475569 !important;
}

[data-theme="theme-slate"] .scd-modal-form-btn,
:root:not([data-theme]) .scd-modal-form-btn {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1.5px solid #64748b !important;
}

[data-theme="theme-slate"] .scd-modal-form-btn:hover,
:root:not([data-theme]) .scd-modal-form-btn:hover {
  background: #f8fafc !important;
  color: #1e293b !important;
}

[data-theme="theme-slate"] #scd-sale-card,
:root:not([data-theme]) #scd-sale-card {
  border-left: 4px solid #94a3b8 !important;
}

[data-theme="theme-slate"] #scd-sale-icon-badge,
:root:not([data-theme]) #scd-sale-icon-badge {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] #scd-total-sale,
:root:not([data-theme]) #scd-total-sale {
  color: #1e293b !important;
}

[data-theme="theme-slate"] #timelineModal thead,
:root:not([data-theme]) #timelineModal thead,
[data-theme="theme-slate"] #timelineModal thead th,
:root:not([data-theme]) #timelineModal thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

/* Expense Modal in Grey Theme */
[data-theme="theme-slate"] .expense-modal-icon-badge,
:root:not([data-theme]) .expense-modal-icon-badge {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] .expense-modal-subtitle,
:root:not([data-theme]) .expense-modal-subtitle,
[data-theme="theme-slate"] .expense-modal-accent-color,
:root:not([data-theme]) .expense-modal-accent-color {
  color: #475569 !important;
}

[data-theme="theme-slate"] .expense-modal-submit-btn,
:root:not([data-theme]) .expense-modal-submit-btn {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
  box-shadow: 0 3px 10px rgba(71, 85, 105, 0.2) !important;
}

[data-theme="theme-slate"] .expense-modal-total-badge,
:root:not([data-theme]) .expense-modal-total-badge {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] .expense-modal-thead,
:root:not([data-theme]) .expense-modal-thead,
[data-theme="theme-slate"] .expense-modal-thead th,
:root:not([data-theme]) .expense-modal-thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

/* Audit Page in Grey Theme */
[data-theme="theme-slate"] .audit-brand-badge,
:root:not([data-theme]) .audit-brand-badge {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] .audit-accordion-header,
:root:not([data-theme]) .audit-accordion-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] .audit-accent-text,
:root:not([data-theme]) .audit-accent-text {
  color: #475569 !important;
}

[data-theme="theme-slate"] .btn-orange-solid,
:root:not([data-theme]) .btn-orange-solid,
[data-theme="theme-slate"] #save-audit-button:not(:disabled),
:root:not([data-theme]) #save-audit-button:not(:disabled) {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
  box-shadow: 0 3px 10px rgba(71, 85, 105, 0.2) !important;
}

[data-theme="theme-slate"] .btn-orange,
:root:not([data-theme]) .btn-orange {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1.5px solid #64748b !important;
}

[data-theme="theme-slate"] .btn-orange:hover,
:root:not([data-theme]) .btn-orange:hover {
  background: #f8fafc !important;
  color: #1e293b !important;
}

[data-theme="theme-slate"] .audit-table-thead,
:root:not([data-theme]) .audit-table-thead,
[data-theme="theme-slate"] .audit-table-thead th,
:root:not([data-theme]) .audit-table-thead th,
[data-theme="theme-slate"] #audit-checklist-table thead,
:root:not([data-theme]) #audit-checklist-table thead,
[data-theme="theme-slate"] #audit-checklist-table thead th,
:root:not([data-theme]) #audit-checklist-table thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

/* LCW in Grey Theme */
[data-theme="theme-slate"] .lcw-brand-badge,
:root:not([data-theme]) .lcw-brand-badge {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] .lcw-refresh-btn,
:root:not([data-theme]) .lcw-refresh-btn,
[data-theme="theme-slate"] .lcw-submit-btn,
:root:not([data-theme]) .lcw-submit-btn,
[data-theme="theme-slate"] #btn-submit-exchange,
:root:not([data-theme]) #btn-submit-exchange {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
  box-shadow: 0 3px 10px rgba(71, 85, 105, 0.2) !important;
}

[data-theme="theme-slate"] .lcw-inventory-card,
:root:not([data-theme]) .lcw-inventory-card {
  border-left: 4px solid #94a3b8 !important;
}

[data-theme="theme-slate"] .lcw-total-badge,
:root:not([data-theme]) .lcw-total-badge,
[data-theme="theme-slate"] .lcw-status-badge,
:root:not([data-theme]) .lcw-status-badge {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] .lcw-total-badge #lcw-inventory-total,
:root:not([data-theme]) .lcw-total-badge #lcw-inventory-total,
[data-theme="theme-slate"] .lcw-accent-text,
:root:not([data-theme]) .lcw-accent-text {
  color: #475569 !important;
}

[data-theme="theme-slate"] .lcw-table-thead,
:root:not([data-theme]) .lcw-table-thead,
[data-theme="theme-slate"] .lcw-table-thead th,
:root:not([data-theme]) .lcw-table-thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

/* Login Page & SCD Form in Grey Theme */
[data-theme="theme-slate"] .login-brand-badge,
:root:not([data-theme]) .login-brand-badge,
[data-theme="theme-slate"] .btn-login,
:root:not([data-theme]) .btn-login,
[data-theme="theme-slate"] #btn-submit-scd,
:root:not([data-theme]) #btn-submit-scd {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
  box-shadow: 0 3px 10px rgba(71, 85, 105, 0.2) !important;
}

[data-theme="theme-slate"] .section-header,
:root:not([data-theme]) .section-header {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme="theme-slate"] .remark-modal-accent,
:root:not([data-theme]) .remark-modal-accent {
  color: #475569 !important;
}

[data-theme="theme-slate"] .remark-modal-save-btn,
:root:not([data-theme]) .remark-modal-save-btn {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
  box-shadow: 0 3px 10px rgba(71, 85, 105, 0.2) !important;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.28), transparent);
  opacity: .7;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1 !important;
  box-shadow: var(--shadow-md) !important;
}

.glass-card table,
.glass-card .overflow-y-auto,
.glass-card .overflow-x-auto {
  border-radius: var(--radius-lg);
}

/* =========================================================
   LIGHT & AIRY HEADER
   ========================================================= */

header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #60a5fa 20%, #3b82f6 50%, #60a5fa 80%, transparent 100%);
  opacity: 0.55;
}

header h1 {
  letter-spacing: -.03em !important;
  color: #0f172a !important;
}

header .bi-wallet2,
header .bi-shield-check {
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.12));
}

/* =========================================================
   ALL-LIGHT TAILWIND COLOR MAPPINGS
   ========================================================= */

.text-orange-600,
.text-orange-700,
.text-orange-800,
.text-orange-900,
.text-orange-950,
.text-\[\#ea580c\] {
  color: #2563eb !important;
}

.text-orange-500 {
  color: #3b82f6 !important;
}

.bg-orange-600,
.bg-orange-700 {
  background-color: #2563eb !important;
}

.bg-orange-500 {
  background-color: #3b82f6 !important;
}

.bg-orange-50,
.bg-orange-50\/80,
.bg-orange-50\/60,
.bg-orange-50\/50 {
  background-color: #f8fafc !important;
}

.bg-orange-100 {
  background-color: #eff6ff !important;
}

.bg-orange-200 {
  background-color: #dbeafe !important;
}

.border-orange-200,
.border-orange-200\/90,
.border-orange-200\/80,
.border-orange-300 {
  border-color: #e2e8f0 !important;
}

.bg-gradient-to-tr.from-orange-600,
.bg-gradient-to-r.from-orange-600 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14) !important;
}

/* Clean Light Tab Navigation */
.tab-btn {
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

.tab-btn:hover {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.tab-btn.active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08) !important;
}

/* =========================================================
   LIGHT BUTTONS
   ========================================================= */

.btn-orange-solid {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.5rem !important;
  line-height: 1.2 !important;
  min-height: 38px;
  border-radius: 12px !important;
  position: relative;
  overflow: hidden;
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10) !important;
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    background .22s ease !important;
}

.btn-orange-solid:hover:not(:disabled) {
  background: #334155 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

.btn-orange {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.5rem !important;
  line-height: 1.2 !important;
  min-height: 38px;
  border-radius: 12px !important;
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    background .22s ease !important;
}

.btn-orange:hover:not(:disabled) {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
}

.btn-white {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

.btn-white:hover:not(:disabled) {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06) !important;
}

.btn-orange:active:not(:disabled),
.btn-orange-solid:active:not(:disabled) {
  transform: translateY(0) scale(.985);
}

button:disabled {
  cursor: not-allowed !important;
  opacity: .55 !important;
  transform: none !important;
}

/* =========================================================
   LIGHT FORM INPUTS
   ========================================================= */

input,
select,
textarea {
  color: var(--text) !important;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
  border-color: #e2e8f0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  transition:
    border-color .18s ease,
    box-shadow .18s ease !important;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #cbd5e1 !important;
}

[data-theme="theme-orange"] input:focus,
:root:not([data-theme]) input:focus,
[data-theme="theme-orange"] select:focus,
:root:not([data-theme]) select:focus,
[data-theme="theme-orange"] textarea:focus,
:root:not([data-theme]) textarea:focus,
[data-theme="theme-orange"] .focus-orange:focus,
:root:not([data-theme]) .focus-orange:focus {
  outline: none !important;
  border-color: #ea580c !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15) !important;
}

[data-theme="theme-blue"] input:focus,
[data-theme="theme-blue"] select:focus,
[data-theme="theme-blue"] textarea:focus,
[data-theme="theme-blue"] .focus-orange:focus {
  outline: none !important;
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="theme-slate"] input:focus,
[data-theme="theme-slate"] select:focus,
[data-theme="theme-slate"] textarea:focus,
[data-theme="theme-slate"] .focus-orange:focus {
  outline: none !important;
  border-color: #64748b !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18) !important;
}

input[type="number"] {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   KPI / STAT CARDS
   ========================================================= */

.glass-card[class*="border-l-4"] {
  border-left-width: 4px !important;
}

#sec-cash-counter .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-6>div span:first-child,
.glass-card[class*="border-l-4"] .flex>span:first-child {
  font-size: 0.85rem !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

#yesterdayCTotal,
#todaysCTotal,
#todaysDTotal,
#todaysETotal,
#todaysTotalCash,
#cctb {
  font-size: 1.35rem !important;
  font-weight: 900 !important;
}

/* =========================================================
   CASH & DIGITAL RECENT ENTRIES TABLES
   (Only amount is bold, serial number is reduced)
   ========================================================= */

#cash-table-body,
#digital-table-body {
  font-weight: 400 !important;
}

#cash-table-body td,
#digital-table-body td {
  font-weight: 400 !important;
}

/* SNo. column - reduced size, non-bold */
#cash-table-body td:first-child,
#digital-table-body td:first-child,
#cash-table-body td:first-child span,
#digital-table-body td:first-child span {
  font-size: 1rem !important;
  /* 13px */
  font-weight: 400 !important;
  color: black !important;
  line-height: 1.4 !important;
}

/* Time column - non-bold */
#cash-table-body td:nth-child(2),
#digital-table-body td:nth-child(2) {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: black !important;
}

/* ONLY AMOUNT IS BOLD */
#cash-table-body td:nth-child(3),
#digital-table-body td:nth-child(3) {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* LTotal column - non-bold */
#cash-table-body td:nth-child(4),
#digital-table-body td:nth-child(4) {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: black !important;
}

/* Remarks column - non-bold */
#cash-table-body td:nth-child(5),
#digital-table-body td:nth-child(5),
#cash-table-body td:nth-child(5) span,
#digital-table-body td:nth-child(5) span {
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
}

.tabular-nums {
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */

.glass-card h2,
.glass-card h3,
.glass-card h4 {
  letter-spacing: -.015em;
  color: #0f172a;
}

.accordion-header {
  position: relative;
  min-height: 64px;
  cursor: pointer;
  user-select: none;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0;
  transition: background .2s ease;
}

.accordion-header:hover {
  background: #f1f5f9 !important;
}

.accordion-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3b82f6;
}

/* =========================================================
   CLEAN & CRISP LIGHT TABLES
   ========================================================= */

table {
  border-collapse: separate !important;
  border-spacing: 0;
}

table thead th {
  font-size: .75rem !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase;
  padding: .85rem 1rem !important;
  white-space: nowrap;
}

table tbody tr {
  background: #ffffff;
  transition: background .15s ease;
}

table tbody tr:hover {
  background: #f8fafc !important;
}

table td {
  color: #334155;
  border-color: #f1f5f9 !important;
  padding: .75rem 1rem !important;
}

table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* =========================================================
   PROFILE DROPDOWN
   ========================================================= */

#user-profile-widget,
.user-profile-widget-container {
  z-index: 70;
  min-width: 0;
  flex-shrink: 0;
}

#user-profile-widget>button,
.user-profile-widget-container>button {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 13px !important;
  box-shadow: var(--shadow-xs) !important;
  transition: all .2s ease !important;
  max-width: 100%;
}

#user-profile-widget>button:hover,
.user-profile-widget-container>button:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  transform: translateY(-1px);
}

@media (max-width: 639px) {
  #user-profile-widget>button,
  .user-profile-widget-container>button {
    padding: 4px 8px !important;
    gap: 5px !important;
    border-radius: 10px !important;
    max-width: 130px !important;
  }
  #user-profile-widget>button span,
  .user-profile-widget-container>button span {
    max-width: 60px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }
}

#profileDropdownMenu {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* User Profile Theme Selector Buttons */
.profile-theme-btn {
  border-radius: 11px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 8px !important;
  cursor: pointer !important;
}

/* Inactive theme buttons */
.profile-theme-btn:not(.active-theme) {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.profile-theme-btn:not(.active-theme) span {
  color: #334155 !important;
}

.profile-theme-btn:not(.active-theme):hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

/* Active Theme - Grey + White */
.profile-theme-btn.active-theme[data-theme="theme-slate"] {
  background: #64748b !important;
  color: #ffffff !important;
  border: 1px solid #64748b !important;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3) !important;
}
.profile-theme-btn.active-theme[data-theme="theme-slate"] span {
  color: #ffffff !important;
}

/* Active Theme - Orange */
.profile-theme-btn.active-theme[data-theme="theme-orange"] {
  background: #ea580c !important;
  color: #ffffff !important;
  border: 1px solid #ea580c !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35) !important;
}
.profile-theme-btn.active-theme[data-theme="theme-orange"] span {
  color: #ffffff !important;
}

/* Active Theme - Blue */
.profile-theme-btn.active-theme[data-theme="theme-blue"] {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35) !important;
}
.profile-theme-btn.active-theme[data-theme="theme-blue"] span {
  color: #ffffff !important;
}

/* =========================================================
   CUTE & COLORFUL MODAL THEMES
   ========================================================= */

.modal,
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.35) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.modal.active {
  display: flex !important;
}

#confirmModal,
#remarkModal,
#auditConfirmModal {
  z-index: 2000 !important;
}

/* Expense Modal */
#expenseModal>div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.12) !important;
}

#expense-input-section {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
}

#expense-amount,
#expense-description {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

/* SCD Timeline Modal */
#timelineModal>div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.12) !important;
  font-size: 16px !important;
}

#timelineModal thead,
#timelineModal thead th {
  background: #ffffff !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 0.85rem !important;
  padding: 0.6rem 0.85rem !important;
}

#timelineModal table td {
  font-size: 0.875rem !important;
  padding: 0.5rem 0.75rem !important;
}

#timelineModal #scd-total-count,
#timelineModal #scd-total-sale,
#timelineModal #scd-cash-sale,
#timelineModal #scd-digital-sale {
  font-size: 1.5rem !important;
}

/* Confirm Modal */
#confirmModal>div {
  background: #ffffff !important;
  border: 1px solid #86efac !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.12) !important;
}

#confirmTypeBadge {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
}

#confirmSubmitBtn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25) !important;
}

/* Remark Modal */
#remarkModal>div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.12) !important;
}

#remarkInput,
#remarkInputAmt {
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

/* Audit Confirm Modal */
#auditConfirmModal>div {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.12) !important;
}

#auditConfirmModal thead,
#auditConfirmModal thead th {
  background: #ffffff !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.modal-content-full {
  background: #ffffff !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.close-button {
  position: absolute !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 50 !important;
  transition: transform .2s ease, background .2s ease, color .2s ease !important;
}

.close-button:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  transform: scale(1.08) rotate(90deg) !important;
}

/* =========================================================
   LIGHT LOADING OVERLAY
   ========================================================= */

#loading-overlay {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#loading-overlay .spinner-border {
  color: #3b82f6 !important;
  border-right-color: transparent !important;
}

/* =========================================================
   LIGHT TOASTS
   ========================================================= */

.toast-container {
  bottom: 22px !important;
  right: 22px !important;
  z-index: 1100;
}

.toast {
  min-width: 280px;
  max-width: min(420px, calc(100vw - 32px));
  padding: .85rem 1.1rem !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
}

/* =========================================================
   LCW / INVENTORY & NOTE TILES (WHITE SURFACES + COLOR ACCENT BORDERS)
   ========================================================= */

#inv-cn500,
[id*="card-500"] {
  background: #ffffff !important;
  border: 1.5px solid #f0abfc !important;
  border-radius: 16px !important;
}

#inv-cn200,
[id*="card-200"] {
  background: #ffffff !important;
  border: 1.5px solid #86efac !important;
  border-radius: 16px !important;
}

#inv-cn100,
[id*="card-100"] {
  background: #ffffff !important;
  border: 1.5px solid #7dd3fc !important;
  border-radius: 16px !important;
}

#inv-cn50,
[id*="card-50"] {
  background: #ffffff !important;
  border: 1.5px solid #fde68a !important;
  border-radius: 16px !important;
}

#inv-cn20,
[id*="card-20"] {
  background: #ffffff !important;
  border: 1.5px solid #fda4af !important;
  border-radius: 16px !important;
}

#inv-cn10,
[id*="card-10"] {
  background: #ffffff !important;
  border: 1.5px solid #e9d5ff !important;
  border-radius: 16px !important;
}

#inv-cn5,
[id*="card-5"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
}

[id^="stock-cn"][id$="-count"] {
  color: #0f172a;
}

[id^="stock-cn"][id$="-sub"] {
  color: #2563eb !important;
}

/* =========================================================
   ACCESSIBILITY / FOCUS
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.30) !important;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   MOBILE RESPONSIVE OPTIMIZATIONS (Phone Viewports)
   Minimized Headings & Zero-Waste Table Width Spacing
   ========================================================= */

@media (max-width: 768px) {
  /* --- 1. Minimized Headings --- */
  h1,
  .dash-heading-lg,
  header h1,
  .audit-brand,
  .brand-title {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
  }

  h2,
  .dash-heading-md,
  .accordion-header h2,
  .glass-card h2,
  .section-title {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
  }

  h3,
  .dash-heading-sm,
  .glass-card h3,
  .card-title {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }

  h4,
  .glass-card h4 {
    font-size: 0.775rem !important;
    line-height: 1.3 !important;
  }

  /* --- 2. Compact KPI Stat Labels & Values on Mobile --- */
  #sec-cash-counter .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-6>div span:first-child,
  .glass-card[class*="border-l-4"] .flex>span:first-child,
  .kpi-title {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.03em !important;
  }

  #yesterdayCTotal,
  #todaysCTotal,
  #todaysDTotal,
  #todaysETotal,
  #todaysTotalCash,
  #cctb,
  .dash-kpi-val {
    font-size: 1.15rem !important;
    line-height: 1.2 !important;
  }

  .dash-kpi-val-sm {
    font-size: 0.95rem !important;
  }

  /* --- 3. Zero-Waste Table Width & Spacing Elimination --- */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
  }

  table thead th {
    font-size: 0.72rem !important;
    padding: 6px 6px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  table td,
  table tbody td {
    padding: 5px 6px !important;
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
  }

  /* Cash & Digital Entry Tables Specific Tight Spacing */
  #cash-table-body td,
  #digital-table-body td,
  #expense-table-body td,
  #combined-table-body td,
  #tbl-transactions-body td {
    padding: 5px 4px !important;
  }

  #cash-table-body td:first-child,
  #digital-table-body td:first-child,
  #cash-table-body td:first-child span,
  #digital-table-body td:first-child span {
    font-size: 0.75rem !important;
    padding-left: 6px !important;
    padding-right: 4px !important;
  }

  #cash-table-body td:nth-child(2),
  #digital-table-body td:nth-child(2) {
    font-size: 0.75rem !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  #cash-table-body td:nth-child(3),
  #digital-table-body td:nth-child(3) {
    font-size: 0.875rem !important;
    padding-left: 4px !important;
    padding-right: 6px !important;
  }

  #cash-table-body td:nth-child(4),
  #digital-table-body td:nth-child(4) {
    font-size: 0.75rem !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  #cash-table-body td:nth-child(5),
  #digital-table-body td:nth-child(5),
  #cash-table-body td:nth-child(5) span,
  #digital-table-body td:nth-child(5) span {
    font-size: 0.75rem !important;
    padding-left: 4px !important;
    padding-right: 6px !important;
  }

  /* --- 4. Container & Card Padding Optimization --- */
  .table-scroll-container,
  .table-container,
  .overflow-x-auto {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .glass-card,
  .modern-card,
  .exec-card {
    padding: 8px 8px !important;
    border-radius: 12px !important;
  }

  #sec-cash-counter {
    padding: 8px 6px !important;
  }

  header {
    padding: 8px 10px !important;
  }

  /* Compact Input Elements on Mobile */
  #cash-amount,
  #digital-amount {
    font-size: 1.05rem !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  #btn-add-cash,
  #btn-add-digital {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  /* --- 5. Mobile Modal Optimizations --- */
  .modal,
  .modal-overlay {
    padding: 0.5rem !important;
  }

  .close-button {
    top: 0.65rem !important;
    right: 0.65rem !important;
    width: 1.85rem !important;
    height: 1.85rem !important;
    font-size: 1.15rem !important;
  }

  #expenseModal > div,
  #timelineModal > div,
  #confirmModal > div,
  #remarkModal > div {
    border-radius: 18px !important;
    max-height: 94vh !important;
  }

  #expenseModalTitle,
  #timelineModalTitle {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
  }

  .expense-modal-subtitle,
  .scd-modal-subtitle {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
  }

  #timelineModal thead,
  #timelineModal thead th {
    font-size: 0.68rem !important;
    padding: 0.35rem 0.5rem !important;
  }

  #timelineModal table td {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.5rem !important;
  }

  #timelineModal #scd-total-count,
  #timelineModal #scd-total-sale,
  #timelineModal #scd-cash-sale,
  #timelineModal #scd-digital-sale {
    font-size: 1.05rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 480px) {
  /* Extra Compact for smaller phones */
  h1,
  .dash-heading-lg,
  header h1 {
    font-size: 1.05rem !important;
  }

  h2,
  .dash-heading-md,
  .glass-card h2 {
    font-size: 0.9rem !important;
  }

  h3,
  .dash-heading-sm,
  .glass-card h3 {
    font-size: 0.8rem !important;
  }

  table thead th {
    padding: 5px 4px !important;
    font-size: 0.68rem !important;
  }

  table td,
  table tbody td {
    padding: 4px 4px !important;
    font-size: 0.75rem !important;
  }

  #sec-cash-counter .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-6 {
    gap: 5px !important;
  }

  #sec-cash-counter .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-6>div {
    padding: 6px 4px !important;
  }

  #yesterdayCTotal,
  #todaysCTotal,
  #todaysDTotal,
  #todaysETotal,
  #todaysTotalCash,
  #cctb {
    font-size: 1.05rem !important;
  }

  #expenseModalTitle,
  #timelineModalTitle {
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
  }

  .expense-modal-subtitle,
  .scd-modal-subtitle {
    font-size: 0.62rem !important;
    letter-spacing: 0.04em !important;
  }

  #timelineModal #scd-total-count,
  #timelineModal #scd-total-sale,
  #timelineModal #scd-cash-sale,
  #timelineModal #scd-digital-sale {
    font-size: 0.92rem !important;
  }

  #timelineModal thead th {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.65rem !important;
  }

  #timelineModal table td {
    padding: 0.3rem 0.4rem !important;
    font-size: 0.72rem !important;
  }
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {
  @page {
    margin: 8mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  body::before {
    display: none !important;
  }

  .glass-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  .btn-orange,
  .btn-orange-solid,
  .toast-container,
  #loading-overlay,
  .modal {
    display: none !important;
  }

  table thead {
    background: #f1f5f9 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}