@import url('./elaris-bookkeeping-structure.css?v=build-4l-1');
/* Elaris Option 2 — Muted Professional. Loaded last as the single palette authority. */
:root{
  --nav:#193843;
  --nav2:#193843;
  --ink:#1B3245;
  --surface:#FFFFFF;
  --page:#F5F7F8;
  --accent:#318CA3;
  --blue:#607ED1;
  --purple:#8471C4;
  --orange:#D9965D;
  --green:#559A77;
  --red:#CF7070;
  --line:#DDE5E8;
  --muted:#6E7F8A;

  --elaris-blue:#607ED1;
  --elaris-purple:#8471C4;
  --elaris-orange:#D9965D;
  --elaris-green:#559A77;
  --elaris-red:#CF7070;
  --elaris-blue-soft:#EFF2FA;
  --elaris-purple-soft:#F2EFF8;
  --elaris-orange-soft:#FAF2EA;
  --elaris-green-soft:#EEF6F1;
  --elaris-red-soft:#FAEEEE;
}

/* Foundation */
body{background:#F5F7F8!important;color:#1B3245!important}
.sidebar{background:#193843!important;box-shadow:8px 0 24px rgba(25,56,67,.08)!important}
.topbar{background:#FFFFFF!important;border-bottom-color:#DDE5E8!important}
.content{background:#F5F7F8!important}
.page-heading h1,.panel h2,.panel-title h2{color:#1B3245!important}
.eyebrow{color:#318CA3!important}
.command-input>span{color:#607ED1!important}

/* Navigation uses the same muted sidebar rather than a second blue theme. */
.nav-item:hover,.nav-item.active,.org-item.active,.org-module:hover,.org-module.active,.org-subnav button:hover,.org-subnav button.active{
  background:color-mix(in srgb,#318CA3 24%,#193843)!important;
  color:#fff!important;
}
.organisation-menu{border-left-color:rgba(255,255,255,.18)!important}
.sidebar-footer{border-color:rgba(255,255,255,.16)!important}
.avatar{background:color-mix(in srgb,#607ED1 42%,#193843)!important}

/* Primary controls */
.people-primary,.heading-actions .people-primary{
  background:#318CA3!important;
  border-color:#318CA3!important;
  color:#fff!important;
  box-shadow:0 4px 12px rgba(49,140,163,.16)!important;
}
.secondary,.heading-actions .secondary{border-color:#DDE5E8!important;color:#1B3245!important;background:#fff!important}

/* Shared white surfaces */
.stat-card,.panel,.workspace-summary-widget,.bookkeeping-widget,.billable-panel,.invoice-register,.expense-panel,.receipt-panel,.credit-accounts-list,.credit-account-card,.credit-activity-panel,.budget-panel,.banking-panel,.cash-register-panel,.cash-bottom-actions,.booking-panel,
.billable-section,.invoice-group,.expense-section,.receipt-section,.banking-section,.budget-table{
  background:#fff!important;
  border-color:#DDE5E8!important;
}

/* Semantic accents — one meaning everywhere. */
.blue{color:#607ED1!important}.purple{color:#8471C4!important}.orange{color:#D9965D!important}.green{color:#559A77!important}.red{color:#CF7070!important}

/* Cash Position */
.cash-work-progress.blue .cash-work-progress-track>span{background:#607ED1!important}
.cash-work-progress.purple .cash-work-progress-track>span{background:#8471C4!important}
.cash-work-progress.orange .cash-work-progress-track>span{background:#D9965D!important}
.cash-work-progress.green .cash-work-progress-track>span{background:#559A77!important}
.cash-work-progress.red .cash-work-progress-track>span{background:#CF7070!important}
.cash-work-progress-caption.attention{color:#B77A46!important}
.cash-work-progress-caption.good{color:#477F64!important}
.cash-row-progress-track>span{background:#D9965D!important}
.cash-row-progress small{color:#B77A46!important}
.cash-status-pill.green{background:#EEF6F1!important;color:#477F64!important}
.cash-status-pill.orange{background:#FAF2EA!important;color:#A86F3E!important}
.cash-status-pill.red{background:#FAEEEE!important;color:#B95F5F!important}
.cash-visual-summary .cash-transfer-needed strong{color:#B95F5F!important}

/* Command Centre calendar and quick actions */
.week .today,.quick-grid i{background:#EFF2FA!important;color:#607ED1!important}
.red-event{border-color:#CF7070!important;background:#FAEEEE!important}
.orange-event{border-color:#D9965D!important;background:#FAF2EA!important}
.blue-event{border-color:#607ED1!important;background:#EFF2FA!important}

/* Bookkeeping summary cards use the exact palette. */
.billable-summary-cards>div:nth-child(1),.invoice-summary-cards>div:nth-child(1),.expense-summary-cards>div:nth-child(1),.receipt-summary-cards>div:nth-child(4),.credit-summary-cards>div:nth-child(2),.budget-summary-cards>div:nth-child(4),.banking-summary-cards>div:nth-child(1){border-color:#DDE5E8!important;border-top-color:#DDE5E8!important}
.billable-summary-cards>div:nth-child(2),.invoice-summary-cards>div:nth-child(2),.expense-summary-cards>div:nth-child(2),.receipt-summary-cards>div:nth-child(1),.credit-summary-cards>div:nth-child(4),.budget-summary-cards>div:nth-child(3),.banking-summary-cards>div:nth-child(2){border-color:#DDE5E8!important;border-top-color:#DDE5E8!important}
.billable-summary-cards>div:nth-child(3),.expense-summary-cards>div:nth-child(3),.receipt-summary-cards>div:nth-child(2),.credit-summary-cards>div:nth-child(3),.budget-summary-cards>div:nth-child(2){border-color:#DDE5E8!important;border-top-color:#DDE5E8!important}
.billable-summary-cards>div:nth-child(4),.invoice-summary-cards>div:nth-child(4),.expense-summary-cards>div:nth-child(4),.receipt-summary-cards>div:nth-child(3),.credit-summary-cards>div:nth-child(1),.budget-summary-cards>div:nth-child(1),.banking-summary-cards>div:nth-child(3){border-color:#DDE5E8!important;border-top-color:#DDE5E8!important}
.invoice-summary-cards>div:nth-child(3),.banking-summary-cards>div:nth-child(4){border-color:#DDE5E8!important;border-top-color:#DDE5E8!important}

/* Icon circles */
.billable-summary-cards>div:nth-child(1)::after,.invoice-summary-cards>div:nth-child(1)::after,.receipt-summary-cards>div:nth-child(4)::after,.credit-summary-cards>div:nth-child(2)::after,.budget-summary-cards>div:nth-child(4)::after,.banking-summary-cards>div:nth-child(1)::after{background:#EFF2FA!important;color:#607ED1!important}
.billable-summary-cards>div:nth-child(2)::after,.invoice-summary-cards>div:nth-child(2)::after,.expense-summary-cards>div:nth-child(2)::after,.receipt-summary-cards>div:nth-child(1)::after,.credit-summary-cards>div:nth-child(4)::after,.budget-summary-cards>div:nth-child(3)::after,.banking-summary-cards>div:nth-child(2)::after{background:#FAF2EA!important;color:#D9965D!important}
.billable-summary-cards>div:nth-child(3)::after,.expense-summary-cards>div:nth-child(3)::after,.receipt-summary-cards>div:nth-child(2)::after,.credit-summary-cards>div:nth-child(3)::after,.budget-summary-cards>div:nth-child(2)::after{background:#F2EFF8!important;color:#8471C4!important}
.billable-summary-cards>div:nth-child(4)::after,.invoice-summary-cards>div:nth-child(4)::after,.expense-summary-cards>div:nth-child(4)::after,.receipt-summary-cards>div:nth-child(3)::after,.credit-summary-cards>div:nth-child(1)::after,.budget-summary-cards>div:nth-child(1)::after,.banking-summary-cards>div:nth-child(3)::after{background:#EEF6F1!important;color:#559A77!important}
.invoice-summary-cards>div:nth-child(3)::after,.banking-summary-cards>div:nth-child(4)::after{background:#FAEEEE!important;color:#CF7070!important}

/* Alerts and status pills */
.expense-alert,.credit-alert{background:#FCF7F1!important;border-left-color:#D9965D!important}
.bookkeeping-alert{background:#FBF2F2!important;border-left-color:#CF7070!important}
.budget-rule,.credit-account-strip{background:#F4F8F9!important;border-left-color:#318CA3!important}
.banking-row>em,.receipt-link.warning{background:#FAF2EA!important;color:#A86F3E!important}
.banking-row>em.reconciled,.receipt-link.completed{background:#EEF6F1!important;color:#477F64!important}

/* Tables and fields */
.billable-head,.invoice-head,.expense-head,.receipt-head,.credit-activity-head,.budget-head,.banking-head{background:#F3F6F7!important;color:#637582!important}
.billable-row:not(.billable-head):hover,.invoice-row:not(.invoice-head):hover,.expense-row[data-expense-row]:hover,.receipt-row[data-receipt-row]:hover,.credit-activity-row[data-credit-activity]:hover,.budget-row[data-budget-row]:hover,.banking-row:not(.banking-head):hover{background:#F7F9FA!important}
input,select,textarea{accent-color:#318CA3}
:focus-visible{outline-color:#318CA3}
