/* STARLINK PAYMENT SYSTEM v1.8.6 — High contrast typography patch
   Visual-only overrides for authenticated admin workspace. */

:root {
  --sp-contrast-primary: #F5F8FF;
  --sp-contrast-secondary: #D5E0EF;
  --sp-contrast-tertiary: #C3D1E4;
  --sp-contrast-muted: #B3C5DC;
  --sp-contrast-faint: #A8BCD5;
}

/* Global text hierarchy. Keep login, public payment view and status colors intact. */
#appView,
#appView .page-section { color: var(--sp-contrast-secondary); }
#appView .page-section h1,
#appView .page-section h2,
#appView .page-section h3,
#appView .page-section h4,
#appView .panel-heading h3,
#appView .settings-card-head h3 { color: var(--sp-contrast-primary) !important; }

/* Navigation, identity and top workspace bar. */
#appView .side-label { color: #AFC3DD !important; }
#appView .side-brand small { color: #B6C8DE !important; }
#appView .nav-link { color: #D0DCEC !important; }
#appView .nav-link.active,
#appView .nav-link:hover { color: #FFFFFF !important; }
#appView .nav-count { color: #F1F6FE !important; }
#appView .sidebar-help strong,
#appView .profile-copy strong { color: #F3F7FF !important; }
#appView .sidebar-help small,
#appView .profile-copy small { color: #C1D0E3 !important; }
#appView .logout-button { color: #BFD0E4 !important; }
#appView .breadcrumbs { color: #B6C8DE !important; }
#appView .breadcrumbs span { color: #93A9C5 !important; }
#appView .breadcrumbs b { color: #E1EAF6 !important; }
#appView .topbar-title h1 { color: #F5F8FF !important; }
#appView .top-date { color: #C5D3E5 !important; }
#appView .environment-pill { color: #E0E9F5 !important; }

/* Dashboard hero, summary cards and small labels. */
#page-dashboard .welcome-row p { color: #D4E0EF !important; }
#page-dashboard .welcome-row .eyebrow { color: #F0D5A5 !important; }
#appView .metric-label { color: #E0E9F5 !important; font-weight: 700; }
#appView .metric-value { color: #FFFFFF !important; }
#appView .metric-foot,
#appView .metric-note { color: #C5D4E7 !important; }
#appView .metric-note.positive { color: #83E6C3 !important; }
#appView .metric-card .metric-icon { filter: saturate(1.12) brightness(1.08); }
#appView .panel-heading p,
#appView .settings-card-head p,
#appView .settings-card > p { color: #C0D0E4 !important; }
#appView .dashboard-network-metrics span { color: #D0DCEC !important; }
#appView .dashboard-network-device { color: #E0E9F5 !important; }
#appView .dashboard-network-device b { color: #F4F7FD !important; }
#appView .dashboard-network-device small { color: #BFD0E4 !important; }
#appView .text-button { color: #AFCBFF !important; }
#appView .text-button:hover { color: #D7E5FF !important; }
#appView .chart-y-labels,
#appView .bar-month { color: #B9CBE0 !important; }
#appView .chart-empty { color: #C4D2E5 !important; }
#appView .quick-action { color: #E5EDF8 !important; }
#appView .quick-action b { color: #F4F7FD !important; }
#appView .quick-action small { color: #C1D0E3 !important; }

/* Page section title columns and action descriptions. */
#appView .section-toolbar .eyebrow { color: #E8CA97 !important; }
#appView .section-toolbar h2 { color: #F6F8FD !important; }
#appView .section-toolbar p { color: #D0DCEC !important; }
#appView .section-toolbar .btn-light { color: #E6EEF9 !important; }

/* Tables: clear header, body text, secondary descriptions and totals. */
#appView .table-toolbar { color: #D8E3F1 !important; }
#appView .table-total { color: #D2DDEC !important; }
#appView .table-panel thead th { color: #E1EAF6 !important; }
#appView .table-panel tbody td { color: #D7E2F0 !important; }
#appView .customer-cell b { color: #F5F8FF !important; }
#appView .customer-cell small,
#appView .table-panel tbody td small { color: #C0D0E4 !important; }
#appView .invoice-no { color: #B8D0FF !important; }
#appView .amount-cell { color: #FFFFFF !important; }
#appView .empty-cell { color: #C7D5E7 !important; }
#appView .invoice-summary-strip > div { color: #D0DCEC !important; }
#appView .invoice-summary-strip b { color: #F4F7FD !important; }
#appView .remit-state { color: #C1D0E3 !important; }
#appView .mini-btn { color: #E0EAF7 !important; }
#appView .mini-btn.primary-mini { color: #D8E6FF !important; }

/* Search, filters, fields, labels and helper copy. */
#appView .search-box { color: #D6E2F0 !important; }
#appView .search-box input,
#appView .search-box input:focus { color: #F4F7FD !important; }
#appView input::placeholder,
#appView textarea::placeholder { color: #AFC1D8 !important; opacity: 1 !important; }
#appView .filter-select { color: #E1EAF6 !important; }
#appView .form-field label,
#appView .monitor-alert-phone label,
#appView .monitor-provision-traffic-settings label,
#appView .monitor-provision-label { color: #E0E9F5 !important; }
#appView .form-field input,
#appView .form-field select,
#appView .form-field textarea,
#appView .monitor-alert-phone input,
#appView .monitor-provision-traffic-edit input { color: #F4F7FD !important; }
#appView .form-field small,
#appView .modal-form .muted { color: #C0D0E4 !important; }

/* Payments and settings information. */
#appView .payment-metric span,
#appView .payment-metric small { color: #D0DCEC !important; }
#appView .payment-metric b { color: #FFFFFF !important; }
#appView .settings-detail { color: #C8D6E8 !important; }
#appView .settings-detail b { color: #F2F6FC !important; }
#appView .settings-note,
#appView .setup-item { color: #D0DCEC !important; }
#appView .setup-item b { color: #F2F6FC !important; }
#appView .setup-item p { color: #C0D0E4 !important; }
#appView .settings-warning b { color: #FFE0AE !important; }
#appView .settings-warning p { color: #E8D2B0 !important; }

/* Monitoring cards, device details, chart annotations and expandable rows. */
#appView .monitor-metric span,
#appView .monitor-metric small { color: #D0DCEC !important; }
#appView .monitor-metric b { color: #FFFFFF !important; }
#appView .monitor-metric.online b { color: #8BE9C8 !important; }
#appView .monitor-metric.offline b { color: #FFADB5 !important; }
#appView .monitor-metric.suspended b { color: #F5D39C !important; }
#appView .monitor-fold-summary { color: #E6EEF9 !important; }
#appView .monitor-fold-summary-main b,
#appView .monitor-fold-summary-main small { color: #DDE7F4 !important; }
#appView .monitor-fold-summary-value { color: #F0D4A7 !important; }
#appView .monitor-analytics-kpis span,
#appView .monitor-analytics-kpis small { color: #C8D6E8 !important; }
#appView .monitor-analytics-kpis b { color: #FFFFFF !important; }
#appView .monitor-chart-card h4 { color: #F0F5FC !important; }
#appView .monitor-chart-card small { color: #C4D3E6 !important; }
#appView .monitor-chart-card svg text,
#appView .monitor-traffic-chart svg text,
#appView .monitor-lifetime-chart-wrap svg text { fill: #C5D4E7 !important; }
#appView .monitor-lifetime-total span,
#appView .monitor-lifetime-card span { color: #D0DCEC !important; }
#appView .monitor-lifetime-total b,
#appView .monitor-lifetime-card b { color: #9BEBD0 !important; }
#appView .monitor-availability-fold > summary,
#appView .monitor-availability-fold > summary b { color: #E5EDF8 !important; }
#appView .monitor-availability-fold > summary small { color: #C3D2E5 !important; }
#appView .monitor-alert-options,
#appView .monitor-policy-panel .monitor-fold-body,
#appView .monitor-fold-body,
#appView .monitor-events-list { color: #D0DCEC !important; }
#appView .monitor-alert-options label { color: #E0E9F5 !important; }
#appView .monitor-alert-phone small,
#appView .monitor-provision-traffic-settings > small { color: #C0D0E4 !important; }
#appView .monitor-uptime-row b,
#appView .monitor-lifetime-heading b { color: #F0F5FC !important; }
#appView .monitor-uptime-row small,
#appView .monitor-uptime-row .coverage-note,
#appView .monitor-lifetime-heading small,
#appView .monitor-lifetime-legend span,
#appView .monitor-dish-cell small,
#appView .monitor-subline,
#appView .monitor-traffic-head > div:first-child small { color: #C1D0E4 !important; }
#appView .monitor-traffic-collapsed-title b,
#appView .monitor-traffic-head > div:first-child b { color: #F0F5FC !important; }
#appView .monitor-traffic-collapsed-title small { color: #C2D1E4 !important; }
#appView .traffic-value { color: #D1DDEC !important; }
#appView .traffic-value b { color: #FFFFFF !important; }
#appView .monitor-traffic-empty,
#appView .monitor-lifetime-empty { color: #D0DCEC !important; }

/* Modals, footer and secondary interface hints. */
#appView .modal-heading h3 { color: #FFFFFF !important; }
#appView .modal-heading p,
#appView .invoice-link-info p { color: #D0DCEC !important; }
#appView .modal-heading .eyebrow { color: #F0D4A7 !important; }
#appView .modal-close { color: #E0E9F5 !important; }
#appView .app-footer { color: #B9CBE0 !important; }
#appView .muted { color: #C0D0E4 !important; }

/* Preserve bright semantic badges while clarifying their text. */
#appView .status-pill.online,
#appView .status-pill.paid,
#appView .status-pill.success { color: #087A5B !important; }
#appView .status-pill.offline,
#appView .status-pill.danger { color: #B93649 !important; }
#appView .status-pill.pending,
#appView .status-pill.warning { color: #875311 !important; }

/* On compact screens, retain the same contrast and avoid translucent text. */
@media (max-width: 700px) {
  #appView .nav-link { color: #DCE6F2 !important; }
  #appView .table-panel tbody td,
  #appView .customer-cell small,
  #appView .table-panel tbody td small { color: #D0DCEC !important; }
}
