/* STARLINK PAYMENT SYSTEM v1.8.13 — Brighter premium surfaces.
   Visual-only admin workspace skin. Keeps semantic card/status colors,
   all forms and dashboard data bindings, and login/public-payment views intact. */

:root {
  --sp-bright-panel: #203b58;
  --sp-bright-panel-top: #294967;
  --sp-bright-panel-edge: #496887;
  --sp-bright-panel-soft: #294764;
  --sp-bright-inset: #1c3550;
  --sp-bright-inset-raised: #274563;
  --sp-bright-row: #203b58;
  --sp-bright-row-alt: #254362;
}

/* Main page sections and shared cards: lift surfaces closer to the KPI palette. */
#appView .section-toolbar,
#appView .panel,
#appView .table-panel,
#appView .settings-card,
#appView .monitor-fold-panel,
#appView .monitor-chart-card,
#appView .monitor-lifetime-total,
#appView .payment-settings-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(130, 177, 231, .12), transparent 38%),
    linear-gradient(145deg, #294967 0%, #23415f 54%, #1d3854 100%) !important;
  border-color: #496887 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .075),
    0 12px 28px rgba(0, 0, 0, .16) !important;
}

#appView .section-toolbar {
  background:
    radial-gradient(circle at 92% 0%, rgba(217, 189, 140, .13), transparent 34%),
    linear-gradient(120deg, #294766 0%, #223e5b 100%) !important;
}

/* Dashboard supporting panels and quick-action columns. */
#appView .dashboard-network-panel {
  background: linear-gradient(145deg, #1d3855 0%, #1a314b 100%) !important;
  border-color: #405f80 !important;
}
#appView .dashboard-network-device {
  background: linear-gradient(145deg, #2a4a69 0%, #244260 100%) !important;
  border-color: #547495 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 5px 13px rgba(0,0,0,.12) !important;
}
#appView .dashboard-network-device:hover {
  background: linear-gradient(145deg, #315577 0%, #294969 100%) !important;
  border-color: #7193b9 !important;
}
#appView .dashboard-network-metrics {
  background: linear-gradient(135deg, #304f70 0%, #294663 52%, #344b6a 100%) !important;
  border-color: #5b789a !important;
}
#appView .dashboard-network-metrics > div {
  background: linear-gradient(145deg, #27496d, #203c5a) !important;
  border-color: #4c6e91 !important;
}
#appView .dashboard-network-metrics > div:nth-child(2) {
  background: linear-gradient(145deg, #1d6256, #174b45) !important;
  border-color: #438e7c !important;
}
#appView .dashboard-network-metrics > div:nth-child(3) {
  background: linear-gradient(145deg, #76532f, #543e2e) !important;
  border-color: #a47d4d !important;
}
#appView .dashboard-network-metrics > div:nth-child(4) {
  background: linear-gradient(145deg, #51477f, #38375f) !important;
  border-color: #8177b5 !important;
}
#appView .quick-action {
  background: linear-gradient(145deg, rgba(42, 73, 105, .76), rgba(31, 57, 84, .76)) !important;
  border: 1px solid rgba(105, 139, 178, .35) !important;
  border-radius: 12px !important;
}
#appView .quick-action:hover {
  background: linear-gradient(145deg, #345a80, #2a496b) !important;
  border-color: #7b9fc7 !important;
}

/* Table panels, toolbars, headers, and every data row. */
#appView .table-toolbar {
  background: linear-gradient(145deg, #294866, #223e5b) !important;
  border-bottom-color: #4b6b8d !important;
}
#appView .table-panel thead th {
  background: #315271 !important;
  border-bottom-color: #5c7b9c !important;
}
#appView .table-panel tbody tr {
  background: #203b58 !important;
}
#appView .table-panel tbody tr:nth-child(even) {
  background: #254362 !important;
}
#appView .table-panel tbody tr:hover {
  background: #315576 !important;
}
#appView .table-panel tbody td {
  border-bottom-color: rgba(172, 198, 229, .2) !important;
}
#appView .invoice-summary-strip > div {
  background: linear-gradient(145deg, #2b4b6b, #24415f) !important;
  border-color: #567493 !important;
}
#appView .mini-btn {
  background: #2b4967 !important;
  border-color: #587596 !important;
}
#appView .mini-btn:hover {
  background: #3a6085 !important;
  border-color: #8eb0d5 !important;
}
#appView .mini-btn.primary-mini {
  background: linear-gradient(135deg, #315b8c, #29496f) !important;
  border-color: #668bb7 !important;
}

/* Search fields and input columns gain a brighter inset surface. */
#appView .search-box,
#appView .filter-select {
  background: #1e3955 !important;
  border-color: #587493 !important;
}
#appView .search-box:focus-within {
  background: #274968 !important;
  border-color: #8bb5e8 !important;
}
#appView .form-field input,
#appView .form-field select,
#appView .form-field textarea,
#appView .monitor-alert-phone input,
#appView .monitor-provision-traffic-edit input {
  background: #1e3955 !important;
  border-color: #587493 !important;
}
#appView .form-field input:focus,
#appView .form-field select:focus,
#appView .form-field textarea:focus,
#appView .monitor-alert-phone input:focus,
#appView .monitor-provision-traffic-edit input:focus {
  background: #294a69 !important;
  border-color: #91b7e3 !important;
}
#appView .form-field select option,
#appView select option {
  background: #203b58 !important;
}

/* Payment summary columns preserve their blue / emerald / champagne distinction. */
#appView .payment-metric {
  background: linear-gradient(145deg, #2b4b6b, #223f5c) !important;
  border-color: #587797 !important;
}
#appView .payment-metric:nth-child(2) {
  background: linear-gradient(145deg, #1d6256, #17483f) !important;
  border-color: #438c79 !important;
}
#appView .payment-metric:nth-child(3),
#appView .payment-metric.highlight {
  background: linear-gradient(145deg, #76532f, #51402f) !important;
  border-color: #a47d4d !important;
}

/* Settings cards, helper columns, and status notices. */
#appView .settings-detail {
  background: rgba(54, 83, 115, .4) !important;
  border-color: rgba(144, 174, 211, .24) !important;
}
#appView .settings-note,
#appView .setup-item,
#appView .monitor-provision-traffic-settings {
  background: linear-gradient(145deg, #294866, #223e5a) !important;
  border-color: #557392 !important;
}
#appView .setup-number {
  background: #405b79 !important;
}
#appView .settings-warning {
  background: linear-gradient(125deg, rgba(126, 86, 39, .48), rgba(83, 61, 43, .42)) !important;
  border-color: rgba(218, 169, 101, .58) !important;
}
#appView .settings-warning > span {
  background: rgba(224, 171, 91, .25) !important;
}

/* Monitoring metric cards, analytics columns, charts, and expandable panels. */
#appView .monitor-metric {
  background: linear-gradient(145deg, #2a4a6a, #213d5a) !important;
  border-color: #557493 !important;
}
#appView .monitor-metric:nth-child(2) {
  background: linear-gradient(145deg, #1d6256, #17483f) !important;
  border-color: #438c79 !important;
}
#appView .monitor-metric:nth-child(3) {
  background: linear-gradient(145deg, #71414b, #4d303c) !important;
  border-color: #965969 !important;
}
#appView .monitor-metric:nth-child(4) {
  background: linear-gradient(145deg, #315b80, #244260) !important;
  border-color: #5d85aa !important;
}
#appView .monitor-metric:nth-child(5) {
  background: linear-gradient(145deg, #76532f, #51402f) !important;
  border-color: #a47d4d !important;
}
#appView .monitor-fold-panel,
#appView .monitor-availability-fold,
#appView .monitor-traffic-collapsible {
  background: linear-gradient(145deg, #294866, #203b58) !important;
  border-color: #567595 !important;
}
#appView .monitor-fold-summary:hover,
#appView .monitor-fold-panel[open] > .monitor-fold-summary,
#appView .monitor-availability-fold > summary:hover {
  background: #365a7d !important;
}
#appView .monitor-fold-chevron {
  background: #3b5b7d !important;
}
#appView .monitor-analytics-kpis > div {
  background: linear-gradient(145deg, #2b4b6b, #223f5c) !important;
  border-color: #587797 !important;
}
#appView .monitor-chart-card,
#appView .monitor-lifetime-total {
  background: linear-gradient(145deg, #294866, #203b58) !important;
}
#appView .monitor-traffic-chart,
#appView .monitor-lifetime-chart-wrap {
  background: #1b3550 !important;
  border-color: #4b6b8d !important;
}
#appView .monitor-lifetime-card {
  background: #2a4968 !important;
  border: 1px solid #557493 !important;
}
#appView .monitor-traffic-row td {
  background: #254362 !important;
}
#appView .monitor-range-switch {
  background: #1e3955 !important;
  border-color: #567595 !important;
}
#appView .monitor-range-switch button.active {
  background: #3b6289 !important;
}
#appView .monitor-events-list > *,
#appView .monitor-events-list .monitor-event,
#appView .monitor-event-item {
  background: rgba(47, 77, 109, .72) !important;
  border-color: rgba(143, 175, 211, .28) !important;
}

/* Modals, provision panels and toast cards use the same brighter treatment. */
#appView .modal-card {
  background: linear-gradient(145deg, #294967 0%, #203b58 100%) !important;
  border-color: #6685a5 !important;
}
#appView .modal-close {
  background: #3a5b7d !important;
}
#appView .invoice-link-info {
  background: linear-gradient(145deg, #315576, #274563) !important;
  border-color: #6484a7 !important;
}
#appView #monitorProvisionCode {
  background: #142b43 !important;
  border-color: #587493 !important;
}
#appView .toast {
  background: linear-gradient(145deg, #31516f, #263f5c) !important;
  border-color: #6988a8 !important;
}

/* Keep all semantic badges and the four vivid KPI cards exactly color-coded. */
#appView .metric-grid > .metric-card:nth-child(1) { filter: saturate(1.02); }
#appView .metric-grid > .metric-card:nth-child(2) { filter: saturate(1.02); }
#appView .metric-grid > .metric-card:nth-child(3) { filter: saturate(1.02); }
#appView .metric-grid > .metric-card:nth-child(4) { filter: saturate(1.02); }
#appView .status-pill,
#appView .status-badge,
#appView .badge { filter: none !important; }

@media (max-width: 700px) {
  #appView .section-toolbar,
  #appView .panel,
  #appView .table-panel,
  #appView .settings-card,
  #appView .monitor-fold-panel,
  #appView .monitor-chart-card,
  #appView .modal-card {
    background: linear-gradient(145deg, #294967 0%, #203b58 100%) !important;
  }
}


/* STARLINK PAYMENT SYSTEM v1.8.14 — subdued semantic colors for network summary.
   One consistent 145-degree gradient treatment; moderate saturation and luminance. */
#appView .dashboard-network-metrics > div:nth-child(1) {
  background: linear-gradient(145deg, #245447 0%, #1d433b 100%) !important;
  border-color: #3e7968 !important;
}
#appView .dashboard-network-metrics > div:nth-child(2) {
  background: linear-gradient(145deg, #603c43 0%, #4c3038 100%) !important;
  border-color: #87565f !important;
}
#appView .dashboard-network-metrics > div:nth-child(3) {
  background: linear-gradient(145deg, #63502f 0%, #4f412b 100%) !important;
  border-color: #8b744a !important;
}
#appView .dashboard-network-metrics > div:nth-child(4) {
  background: linear-gradient(145deg, #515e69 0%, #414b56 100%) !important;
  border-color: #74828e !important;
}
#appView .dashboard-network-metrics > div b,
#appView .dashboard-network-metrics > div span {
  color: #edf3fa !important;
}
#appView .dashboard-network-metrics > div {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 3px 8px rgba(0,0,0,.08) !important;
}
