/*
 * CUI Revenue & Margin: new CUI Fiber Solutions look.
 * Loaded only when techops_new_look_active() is true (TechOps Home launch switch:
 * Preview for previewers, Live for everyone). Loads after dashboard.css and overrides it.
 * Positive, warning and negative status colors are left as they are.
 */

/* Brand values: the plugin's own variables, re-pointed. */
.cui-rm-portal,
.cui-rm-schedule-dialog,
.cui-rm-admin-card {
	--cui-navy: #04234A;      /* CUI Navy */
	--cui-blue: #0867C1;      /* CUI Blue */
	--cui-blue-2: #064585;    /* CUI Mid Blue */
	--cui-sky: #0E9FEE;       /* Signal Blue: chart bars */
	--cui-bg: #F2F5F9;
	--cui-card: #FFFFFF;
	--cui-line: #D9E2EC;
	--cui-text: #1B2B3F;
	--cui-muted: #5B6B80;
	--cui-shadow: 0 12px 30px rgba(4, 35, 74, .12);
	--rm-orange: #FA9925;     /* Fiber Orange: buttons and accents */
	--rm-orange-hover: #FFAD4A;
	--rm-tint: #EAF2FB;       /* light CUI Blue: selected and highlighted backgrounds */
	--rm-soft: #F5F8FC;       /* toolbars, alternate rows */
	--rm-border: #C9D5E3;     /* inputs and outlined buttons */
	font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
}

/* Headings and big numbers in Barlow Condensed, CUI Navy. */
.cui-rm-portal .cui-rm-brand strong,
.cui-rm-portal .cui-rm-filter-heading h2,
.cui-rm-portal .cui-rm-section-heading h2,
.cui-rm-portal .cui-rm-card-heading h3,
.cui-rm-portal .cui-rm-kpi > strong,
.cui-rm-portal .cui-rm-report-kpi strong,
.cui-rm-portal .cui-rm-pillar-period-heading strong {
	font-family: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
	letter-spacing: .01em;
}
.cui-rm-portal .cui-rm-filter-heading h2,
.cui-rm-portal .cui-rm-section-heading h2,
.cui-rm-portal .cui-rm-card-heading h3,
.cui-rm-portal .cui-rm-kpi > strong,
.cui-rm-portal .cui-rm-report-kpi strong,
.cui-rm-portal .cui-rm-pillar-period-heading strong,
.cui-rm-portal .cui-rm-period-grain-toggle select { color: #04234A; }
.cui-rm-portal .cui-rm-kpi > strong { font-size: 28px; }

/* Header: the signature gradient with an orange edge. */
.cui-rm-portal .cui-rm-portal-header {
	background: linear-gradient(110deg, #04234A 0%, #0867C1 100%);
	border-bottom: 3px solid var(--rm-orange);
}
.cui-rm-portal .cui-rm-portal-nav button.active { color: #04234A; }

/* Tabs and period pills: selected = CUI Blue. */
.cui-rm-portal .cui-rm-content-tabs,
.cui-rm-portal .cui-rm-hierarchy-tabs,
.cui-rm-portal .cui-rm-trend-tabs,
.cui-rm-portal .cui-rm-segmented { border-color: var(--rm-border); background: var(--rm-soft); }
.cui-rm-portal .cui-rm-content-tabs button,
.cui-rm-portal .cui-rm-hierarchy-tabs button,
.cui-rm-portal .cui-rm-trend-tabs button,
.cui-rm-portal .cui-rm-segmented button { color: #3B4B60; }
.cui-rm-portal .cui-rm-content-tabs button.active,
.cui-rm-portal .cui-rm-hierarchy-tabs button.active,
.cui-rm-portal .cui-rm-trend-tabs button.active,
.cui-rm-portal .cui-rm-segmented button.active,
.cui-rm-portal .cui-rm-period-pill input:checked + span {
	background: #0867C1;
	border-color: #0867C1;
	color: #FFFFFF; /* white on CUI Blue: the unselected-tab color above must not reach the selected tab */
	box-shadow: 0 3px 8px rgba(8, 103, 193, .25);
}
.cui-rm-portal .cui-rm-period-pill input:checked + span small { color: rgba(255, 255, 255, .85); }
.cui-rm-portal .cui-rm-period-pill > span { border-color: var(--rm-border); color: #1B2B3F; }
.cui-rm-portal .cui-rm-period-pill input:focus-visible + span { outline-color: rgba(8, 103, 193, .35); }
.cui-rm-portal .cui-rm-period-grain-toggle select,
.cui-rm-portal .cui-rm-period-selection-summary { border-color: var(--rm-border); }

/* Inputs */
.cui-rm-portal .cui-rm-field-group select,
.cui-rm-portal .cui-rm-field-group input,
.cui-rm-portal .cui-rm-report-controls select,
.cui-rm-portal .cui-rm-report-controls input,
.cui-rm-portal .cui-rm-search input,
.cui-rm-portal .cui-rm-inline-report-controls select,
.cui-rm-portal .cui-rm-inline-report-controls input,
.cui-rm-portal .cui-rm-filter-picker > summary { border-color: var(--rm-border); }
.cui-rm-portal .cui-rm-field-group select:focus,
.cui-rm-portal .cui-rm-report-controls select:focus,
.cui-rm-portal .cui-rm-report-controls input:focus,
.cui-rm-portal .cui-rm-search input:focus { border-color: #0867C1; box-shadow: 0 0 0 3px rgba(8, 103, 193, .18); }

/* Buttons: primary = Fiber Orange with navy text. */
.cui-rm-portal .cui-rm-btn-primary { background: var(--rm-orange); border-color: var(--rm-orange); color: #04234A !important; }
.cui-rm-portal .cui-rm-btn-primary:hover { background: var(--rm-orange-hover); border-color: var(--rm-orange-hover); }
.cui-rm-portal .cui-rm-btn-secondary { border-color: var(--rm-border); color: #04234A !important; }
.cui-rm-portal .cui-rm-btn-secondary:hover { border-color: #0867C1; background: var(--rm-tint); }
.cui-rm-portal .cui-rm-btn-quiet { background: var(--rm-soft); border-color: var(--cui-line); color: #3B4B60 !important; }
.cui-rm-portal .cui-rm-btn-quiet:hover { background: var(--rm-tint); }
.cui-rm-portal .cui-rm-report-toolbar .button { border-color: var(--rm-border); color: #04234A; }

/* Cards, toolbars and light-blue backgrounds */
.cui-rm-portal { border-color: var(--cui-line); }
.cui-rm-portal .cui-rm-filter-panel,
.cui-rm-portal .cui-rm-matrix-card,
.cui-rm-portal .cui-rm-chart-card,
.cui-rm-portal .cui-rm-detail-card,
.cui-rm-portal .cui-rm-report-section { box-shadow: 0 7px 20px rgba(4, 35, 74, .07); }
.cui-rm-portal .cui-rm-kpi { box-shadow: 0 5px 14px rgba(4, 35, 74, .06); }
.cui-rm-portal .cui-rm-kpi > small,
.cui-rm-portal .cui-rm-period-pill > span small { color: #5B6B80; }
.cui-rm-portal .cui-rm-freshness-grid > div { border-color: var(--cui-line); background: var(--rm-soft); }
.cui-rm-portal .cui-rm-matrix-toolbar,
.cui-rm-portal .cui-rm-detail-toolbar,
.cui-rm-portal .cui-rm-report-toolbar,
.cui-rm-portal .cui-rm-inline-report-controls,
.cui-rm-portal .cui-rm-selection-summary,
.cui-rm-portal .cui-rm-pillar-period-selector { background: var(--rm-soft); }
.cui-rm-portal .cui-rm-report-cards > div,
.cui-rm-portal .cui-rm-report-kpi { background: var(--rm-soft); }
.cui-rm-portal .cui-rm-report-kpi:before { background: var(--rm-orange); }
.cui-rm-portal .cui-rm-report-launchers a:hover { border-color: #0867C1; }
.cui-rm-portal .cui-rm-report-launchers span,
.cui-rm-portal .cui-rm-report-icon,
.cui-rm-portal .cui-rm-filter-picker-actions button { background: var(--rm-tint); color: #0867C1; }
.cui-rm-portal .cui-rm-filter-picker-panel { border-color: var(--cui-line); box-shadow: 0 16px 36px rgba(4, 35, 74, .18); }
.cui-rm-portal .cui-rm-filter-options label:hover { background: var(--rm-tint); }
.cui-rm-portal .cui-rm-spinner { border-color: var(--cui-line); border-top-color: #0867C1; }

/* Tables */
.cui-rm-portal .cui-rm-matrix-table th,
.cui-rm-portal .cui-rm-detail-table th,
.cui-rm-portal .cui-rm-report-table th { background: #EEF3F9; color: #04234A; border-bottom-color: var(--rm-border); }
.cui-rm-portal .cui-rm-matrix-table tbody tr:nth-child(even) td,
.cui-rm-portal .cui-rm-detail-table tbody tr:nth-child(even) td,
.cui-rm-portal .cui-rm-report-table tbody tr:nth-child(even) td { background: var(--rm-soft); }
.cui-rm-portal .cui-rm-matrix-table tbody tr:hover td,
.cui-rm-portal .cui-rm-detail-table tbody tr:hover td,
.cui-rm-portal .cui-rm-report-table tbody tr:hover td { background: var(--rm-tint); }
.cui-rm-portal .cui-rm-expand { border-color: var(--rm-border); color: #04234A; }
.cui-rm-portal .cui-rm-expand:hover { border-color: #0867C1; background: var(--rm-tint); }
.cui-rm-portal .cui-rm-total td { background: var(--rm-tint) !important; border-top-color: #0867C1; color: #04234A; }
.cui-rm-portal .cui-rm-total-row td { background: #EEF3F9; border-top-color: var(--rm-border); }
.cui-rm-portal #cui-rm-cui-revenue .cui-rm-row-group td,
#cui-rm-cui-revenue .cui-rm-row-group td { background: #EEF3F9; }

/* Charts */
.cui-rm-portal .cui-rm-chart-bar:hover { fill: #0867C1; }

/* Pillar report (Excel-style): brand blues in place of the Office blues, Barlow in place of Calibri. */
.cui-rm-portal .cui-rm-pillar-report { font-family: 'Barlow', 'Helvetica Neue', Arial, sans-serif; }
.cui-rm-portal .cui-rm-pillar-report .s2,
.cui-rm-portal .cui-rm-pillar-report .s3,
.cui-rm-portal .cui-rm-pillar-report td:first-child.s2 { background: #04234A; }
.cui-rm-portal .cui-rm-pillar-report td:first-child.s9,
.cui-rm-portal .cui-rm-pillar-report td:first-child.s10 { background: #0867C1; }
.cui-rm-portal .cui-rm-pillar-report td:first-child.s14,
.cui-rm-portal .cui-rm-pillar-report td:first-child.s15 { background: #064585; }
.cui-rm-portal .cui-rm-pillar-report td:first-child.s5 { background: #C9DCF0; }
.cui-rm-portal .cui-rm-pillar-report td:first-child.s7 { background: var(--rm-tint); }
.cui-rm-portal .cui-rm-pillar-report .s5,
.cui-rm-portal .cui-rm-pillar-report .s6 { background: #C9DCF0; }
.cui-rm-portal .cui-rm-pillar-report .s7,
.cui-rm-portal .cui-rm-pillar-report .s8 { background: var(--rm-tint); }
.cui-rm-portal .cui-rm-pillar-report .s9,
.cui-rm-portal .cui-rm-pillar-report .s10,
.cui-rm-portal .cui-rm-pillar-report .s11 { background: #0867C1; }
.cui-rm-portal .cui-rm-pillar-report .s14,
.cui-rm-portal .cui-rm-pillar-report .s15 { background: #064585; }

/* Schedules */
.cui-rm-schedule-dialog { box-shadow: 0 20px 60px rgba(4, 35, 74, .35); }
.cui-rm-schedule-dialog::backdrop { background: rgba(4, 35, 74, .55); }
.cui-rm-portal .cui-rm-schedule-table th { border-bottom-color: var(--cui-line); }
