/*
 Finance Admin: legibility corrections layered after the Midnight Glass theme.
 Preserve genuine warning/success semantic colors and all layout/functional code.
*/
:root{
  --glass-ink:#f3f8ff;
  --glass-muted:#c3d5e5;
  --glass-focus:#90f0ca;
}
body,.content,.view{color:var(--glass-ink)}
/* Components originally hardcoded dark text for white backgrounds */
:where(.view) :is(.revenue-category-section,.revenue-category-card,.booking-summary-card,
.booking-archive-panel,.booking-archive-detail,.booking-archive-day-metrics,
.month-browser,.month-card,.month-summary>div,.monthly-revenue-export,
.monthly-revenue-report-title,.monthly-financial-card,.monthly-financial-conclusion,
.debt-money-grid>div,.agency-info-grid>div,.agency-card,.debt-card,
.push-health-item,.admin-notify-item,.worker-photo-picker){
  background:rgba(37,61,92,.60)!important;
  border-color:rgba(211,236,255,.21)!important;
  color:#f3f9ff!important
}
.revenue-category-card.active{
  background:linear-gradient(125deg,rgba(17,131,95,.62),rgba(21,79,132,.51))!important;
  border-color:rgba(135,245,193,.42)!important
}
.revenue-category-title :is(h3,p),.revenue-category-card :is(strong,b,.revenue-category-open,.revenue-category-count,.revenue-category-name),
.month-card :is(small,b,strong,span),.month-summary :is(small,b),
.agency-info-grid :is(small,b,span),
.debt-money-grid :is(small,b),.booking-summary-card :is(small,strong),
.debt-card :is(h3,.debt-dates,.debt-notes),
.booking-archive-head :is(h3,p),.booking-archive-day-head :is(h4,span){
  color:#edf6ff!important
}
.revenue-category-title p,.revenue-category-count,.month-card small,
.agency-info-grid small,.debt-money-grid small,.booking-summary-card small,
.booking-archive-head p,.booking-archive-day-head span{color:#c3d5e5!important}
/* All displayed figures should stand out, not disappear into dark cards */
:where(.view) :is(.currency-box,.financial-currencies>div,.carryover-currency,.count-stat-glass,.month-summary>div){
  background:rgba(133,186,238,.14)!important;
  border-color:rgba(213,238,255,.25)!important
}
#dashboardView .currency-box b,
#dashboardView .currency-box span,
.monthly-financial-card .financial-currencies b,
.monthly-financial-card .financial-currencies small,
.carryover-currency strong,
.carryover-currency small{
  color:#f5fbff!important;
}
.carryover-currency.negative strong{color:#ffb4bc!important}
.monthly-financial-card.net .financial-currencies b{color:#d8ffe9!important}
:where(.view) :is(.section-head,.panel-head) :is(h2,h3,h4){color:#f4faff!important}
:where(.view) :is(.details-cell,.notes-text,.txn-meta,.booking-customer-hint,
.monthly-revenue-preview .monthly-revenue-source,
.monthly-revenue-preview .monthly-revenue-notes){color:#dcebf8!important}
:where(.view) :is(.green,.blue){color:#9cecc7!important}
:where(.view) .red{color:#ffafb6!important}
/* A readable translucent popover and notification center. */
.admin-notify-dialog,.admin-notify-item,.admin-notify-item.unread,
.push-health-panel,.push-health-item{
  background:rgba(25,44,72,.96)!important;
  color:#eff8ff!important;
  border:1px solid rgba(216,238,255,.23)!important;
}
.admin-notify-dialog{box-shadow:0 25px 70px rgba(0,0,0,.46)!important}
.admin-notify-dialog :is(h2,h3,p,strong,button),
.admin-notify-item :is(h3,p,strong),
.push-health-panel :is(h3,p,span,small,b),
.admin-notify-item small{color:#e3f1fb!important}
.admin-notify-item.unread{border-right:4px solid #72e7a4!important}
.admin-notify-item.urgent{border-right-color:#ff9fa6!important}
.admin-notify-dialog :is(button,input,select){
  color:#f2faff!important;border-color:rgba(210,235,255,.22)!important
}
:where(.view) :is(.form-grid input,.form-grid select,.form-grid textarea,
.filters input,.filters select,.monthly-revenue-export-actions input,
.monthly-financial-actions input){
  background:rgba(9,26,49,.75)!important;color:#f4faff!important;
  border-color:rgba(214,240,255,.31)!important;
}
:where(.view) :is(input,textarea)::placeholder{color:#b0c8db!important}
:where(.view) :is(.btn-soft,.icon-btn,.year-btn){color:#f4faff!important}
:where(.view) :is(.booking-status-select,.portal-role-select){background:#102742!important;color:#fff!important}
:where(.view) .booking-mode-tab:not(.active){color:#f4faff!important}
/* Ensure transfer, booking, receipts and account tables keep readable text */
.table-wrap table,.transfer-history table{background:transparent!important}
.table-wrap th,.transfer-history th{background:rgba(136,193,242,.16)!important;color:#ecf9ff!important}
.table-wrap td,.transfer-history td{color:#edf7ff!important}
#dashboardView .balance-card .money-row{border-color:rgba(235,247,255,.19)!important}
.notice.error{color:#ffe3e5!important}
@media (max-width:650px){
 .revenue-category-card,.booking-summary-card,.month-card{border-radius:13px!important}
 .modal-card{max-width:calc(100vw - 18px)}
}