body.is-authenticated .portal-main { width: min(1740px, calc(100% - 40px)); max-width: none; padding: 24px 0 44px; }
body.is-authenticated .portal-console { grid-template-columns: 222px minmax(0, 1fr); gap: 28px; align-items: start; }
body.is-authenticated .module-sidebar {
  top: 88px;
  min-height: 0;
  padding: 12px 0;
  color: var(--workspace-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.is-authenticated .sidebar-heading { display: block; margin: 0 12px 18px; }
body.is-authenticated .sidebar-heading strong { color: var(--workspace-ink); font-size: 25px; }
body.is-authenticated :is(.sidebar-intro, .sidebar-footer) { display: none; }
body.is-authenticated .portal-home-nav {
  min-height: 48px; margin-bottom: 24px; padding: 10px 12px;
  grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px;
  color: #006e6a; background: #e1efed; border: 1px solid #bedad6; border-radius: 8px;
}
body.is-authenticated .portal-home-nav small { display: none; }
body.is-authenticated .portal-home-nav .module-icon { color: #006e6a; background: none; }
body.is-authenticated .portal-home-nav > b { color: #007d78; }
body.is-authenticated .module-group > p { padding: 0 12px; color: #536d79; font-size: 10px; letter-spacing: .07em; }
body.is-authenticated .module-grid { grid-template-columns: 1fr; gap: 3px; }
body.is-authenticated :is(.module-card, .memento-module) {
  grid-template-columns: 24px minmax(0, 1fr); gap: 2px 12px;
  min-height: 64px; padding: 11px 12px; border: 1px solid transparent;
  border-radius: 8px; color: var(--workspace-ink); background: transparent;
  box-shadow: none; transform: none;
}
body.is-authenticated :is(.module-card, .memento-module):not(.is-locked):hover {
  transform: none; background: #fff; border-color: var(--workspace-line); box-shadow: none;
}
body.is-authenticated :is(.module-icon, .portal-home-nav .module-icon) { width: 24px; height: 24px; color: #3c6779; background: none; border: 0; border-radius: 0; }
body.is-authenticated .module-icon svg { width: 22px; height: 22px; }
body.is-authenticated :is(.module-copy small, .module-copy > span, .memento-module small, .memento-module em) { display: none; }
body.is-authenticated :is(.module-copy strong, .memento-module strong) { margin: 0; font-size: 15px; color: var(--workspace-ink); line-height: 1.3; }
body.is-authenticated .module-action { display: flex; grid-column: 2; margin: 0; color: #3f6774; font-size: 12px; line-height: 1.3; }
body.is-authenticated .module-action b { display: none; }
body.is-authenticated :is(.module-card, .memento-module).is-locked { opacity: 1; border-color: transparent; background: transparent; }
body.is-authenticated :is(.module-card, .memento-module).is-locked .module-action { color: #63717b; }
body.is-authenticated .future-modules:not(.is-hidden) { display: block; }
body.is-authenticated .portal-console-view { padding: 0; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.is-authenticated .console-heading { padding: 4px 0 20px; border-bottom: 1px solid var(--workspace-line); gap: 16px; }
body.is-authenticated .console-heading h2 { font-size: clamp(28px, 2.6vw, 38px); }
body.is-authenticated .console-heading h2 + p { margin-top: 5px; color: var(--workspace-muted); font-size: 15px; }
body.is-authenticated .console-heading > span { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--workspace-muted); font-size: 13px; }
body.is-authenticated .operations-overview { margin-top: 22px; }
.overview-heading { align-items: end; margin-bottom: 18px; }
.overview-heading h3 { margin: 0; font-size: 28px; }
.overview-heading p { margin: 3px 0 0; color: var(--workspace-muted); font-size: 14px; }
.overview-heading > small { max-width: 300px; font-size: 12px; color: var(--workspace-muted); }
.dashboard-filter-toolbar { display: flex; align-items: center; gap: 16px; margin: 18px 0; }
.dashboard-filter-toolbar p { margin: 0; color: var(--workspace-muted); font-size: 13px; overflow-wrap: anywhere; }
.dashboard-filter-trigger { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; padding: 12px 18px; border: 1px solid #bdd0d8; border-radius: 8px; background: #fff; color: var(--workspace-ink); font-weight: 600; cursor: pointer; }
.dashboard-filter-trigger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dashboard-filter-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: 14px; color: var(--workspace-ink); background: #fff; box-shadow: 0 24px 80px rgb(5 28 42 / 28%); overflow: auto; }
.dashboard-filter-dialog::backdrop { background: rgb(8 35 48 / 65%); backdrop-filter: blur(5px); }
body:has(.dashboard-filter-dialog[open]) { overflow: hidden; }
.dashboard-filter-dialog > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 24px 28px; background: #10394b; color: #fff; }
.dashboard-filter-dialog h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 30px; color: inherit; }
.dashboard-filter-dialog header p { margin: 6px 0 0; font-size: 14px; color: #c7dce3; }
.dashboard-filter-dialog header button { width: 36px; height: 36px; flex-shrink: 0; border: 1px solid #698693; border-radius: 8px; background: transparent; color: #fff; font-size: 25px; cursor: pointer; }
.dashboard-filter-dialog .dashboard-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 18px; padding: 24px 28px; background: #fff; border: 0; border-radius: 0; }
.dashboard-filters > footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--workspace-line); }
.dashboard-filters > footer > button:first-child { margin-right: auto; }
@media (max-width: 520px) { .dashboard-filter-dialog .dashboard-filters { grid-template-columns: minmax(0,1fr); padding: 20px; } .dashboard-filter-dialog > header { padding: 20px; } }
.dashboard-filters label { display: grid; gap: 5px; min-width: 0; margin: 0; color: #3c596a; font-size: 12px; font-weight: 600; }
.dashboard-filters :is(input, select), .dashboard-chart :is(input, select) { width: 100%; min-width: 0; height: 39px; padding: 7px 10px; border: 1px solid #bdcdd5; border-radius: 6px; background: #fff; color: var(--workspace-ink); font: inherit; }
.dashboard-filters :is(input, select) { font-size: 14px; }
.dashboard-filters button { min-height: 39px; padding: 7px 16px; font-size: 14px; align-self: end; }
.dashboard-message { color: #536d79; font-size: 14px; margin: 16px 0; }
.dashboard-message:empty { margin: 0; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 22px; border: 1px solid var(--workspace-line); border-radius: 10px; background: #fff; overflow: hidden; }
.dashboard-kpis article { min-width: 0; padding: 18px 16px; border-right: 1px solid var(--workspace-line); }
.dashboard-kpis article:last-child { border-right: 0; }
.dashboard-kpis h4 { margin: 0; color: #465f6c; font-size: 13px; font-weight: 600; }
.dashboard-kpis strong { display: block; margin: 8px 0 4px; color: #153e51; font-family: "Barlow Condensed", sans-serif; font-size: clamp(29px, 2.4vw, 38px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-kpis article:nth-child(2) strong { color: #00756e; }
.dashboard-kpis p { margin: 0; min-height: 30px; color: #657b87; font-size: 11px; line-height: 1.4; }
.dashboard-kpis article.kpi-cnr { background: #fff2db; border-color: #dca94e; }
.dashboard-kpis article.kpi-cnr :is(h4, strong, p) { color: #704400; }
.dashboard-cnr-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 32px; padding: 16px 18px; margin-bottom: 22px; border: 1px solid #dca94e; border-radius: 8px; background: #fff8eb; color: #704400; }
.dashboard-cnr-strip h4 { margin: 0; font-size: 12px; color: #704400; font-weight: 700; }
.dashboard-cnr-strip > div { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.dashboard-cnr-strip strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.dashboard-cnr-strip small { color: var(--workspace-muted); }
.dashboard-charts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 18px; margin-bottom: 18px; }
.dashboard-detail-charts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.dashboard-detail-charts.is-single-source { grid-template-columns: minmax(0, 1fr); }
.dashboard-chart { min-width: 0; padding: 20px; border: 1px solid var(--workspace-line); border-radius: 10px; background: #fff; }
.dashboard-chart > header { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.dashboard-chart h4 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.25; }
.dashboard-chart header p { margin: 4px 0 0; font-size: 12px; color: var(--workspace-muted); }
.dashboard-chart header :is(input, select) { width: auto; max-width: 100%; height: 34px; font-size: 12px; }
.dashboard-chart header input { width: 155px; }
.trend-viewport { overflow-x: auto; scrollbar-width: thin; }
.trend-viewport svg { display: block; width: 100%; max-height: 300px; font: 11px "Source Sans 3", sans-serif; fill: #506a78; }
.chart-grid { stroke: #e3eaee; stroke-width: 1; }
.chart-bar { fill: #05857f; }
.chart-value { fill: #143649; font-size: 10px; font-weight: 700; }
.chart-data { margin-top: 6px; }
.dashboard-chart summary, .dashboard-definitions summary { color: #356171; font-size: 13px; cursor: pointer; padding: 8px 0; }
.report-bars { display: grid; gap: 18px; }
.report-bar > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; }
.report-bar strong { white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; }
.report-bar small { display: inline-block; min-width: 48px; text-align: right; font-size: 11px; color: var(--workspace-muted); font-weight: 400; }
.report-bar-track { display: block; margin-top: 7px; height: 5px; background: #edf2f4; border-radius: 2px; }
.report-bar-track i { display: block; height: 100%; background: #438895; border-radius: 2px; }
.report-bars--compact .report-bar-track i { background: #799fab; }
.dashboard-table-scroll { overflow: auto; max-height: 420px; scrollbar-width: thin; }
.dashboard-chart table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dashboard-chart :is(th,td) { padding: 10px 8px; border-bottom: 1px solid #e5ecef; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dashboard-chart th:first-child { text-align: left; }
.dashboard-chart tbody th { font-weight: 500; }
.dashboard-chart thead th { position: sticky; top: 0; color: #526b78; font-size: 11px; font-weight: 600; background: #f7f9fa; }
.brigade-report th:first-child { max-width: 220px; min-width: 115px; white-space: normal; overflow-wrap: anywhere; }
.dashboard-rate-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; padding: 0 0 16px; }
.dashboard-rate-summary > div { display: grid; gap: 2px; }
.dashboard-rate-summary span { font-size: 12px; color: var(--workspace-muted); }
.dashboard-rate-summary strong { font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-rate-summary p { margin: 0; color: var(--workspace-muted); font-size: 12px; }
#dashboardMoreBrigades { margin-top: 14px; min-height: 34px; font-size: 12px; padding: 7px 12px; }
.dashboard-footnote { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin: 24px 0 12px; }
.dashboard-footnote p { margin: 0; color: var(--workspace-muted); font-size: 12px; max-width: 750px; }
.dashboard-footnote a { flex-shrink: 0; color: #00776f; font-size: 13px; font-weight: 600; text-decoration: none; }
.dashboard-definitions { padding: 8px 16px; border: 1px solid var(--workspace-line); border-radius: 8px; }
.dashboard-definitions p { max-width: 1000px; font-size: 13px; line-height: 1.6; color: #465f6c; }
.dashboard-empty { font-size: 14px; color: var(--workspace-muted); padding: 20px 0; }
body.is-authenticated .admin-access-panel { margin-top: 32px; padding: 24px; background: #fff; border: 1px solid var(--workspace-line); border-radius: 10px; }
.dashboard-chart .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1250px) {
  body.is-authenticated .portal-console { grid-template-columns: 202px minmax(0,1fr); gap: 20px; }
  .dashboard-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dashboard-kpis article:nth-child(3) { border-right: 0; }
  .dashboard-kpis article:nth-child(-n+3) { border-bottom: 1px solid var(--workspace-line); }
  .dashboard-charts { grid-template-columns: minmax(0,1fr); }
  .dashboard-filters { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 800px) {
  body.is-authenticated .portal-main { width: calc(100% - 28px); padding-top: 12px; }
  body.is-authenticated .portal-console { grid-template-columns: minmax(0,1fr); gap: 20px; }
  body.is-authenticated .module-sidebar { position: static; grid-column: 1; grid-row: 1; padding: 0 0 16px; border-bottom: 1px solid var(--workspace-line); }
  body.is-authenticated .sidebar-heading { margin: 4px 0 12px; }
  body.is-authenticated .portal-home-nav { display: none; }
  body.is-authenticated .module-grid { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
  body.is-authenticated .module-card { flex: 0 0 184px; min-height: 65px; padding: 10px; background: #fff; border-color: var(--workspace-line); }
  body.is-authenticated .module-group > p { display: none; }
  body.is-authenticated .future-modules:not(.is-hidden) { margin-top: 4px; }
  body.is-authenticated .memento-module { max-width: 220px; padding: 6px 10px; min-height: 46px; }
  body.is-authenticated .portal-console-view { grid-column: 1; grid-row: 2; padding: 0; }
  body.is-authenticated .console-heading { flex-wrap: wrap; align-items: start; }
  .dashboard-footnote { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 520px) {
  .dashboard-filters { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 14px; gap: 10px; }
  .dashboard-filters :is(input, select) { font-size: 16px; }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-kpis article { padding: 16px 12px; }
  .dashboard-kpis article:nth-child(3) { border-right: 1px solid var(--workspace-line); }
  .dashboard-kpis article:nth-child(even) { border-right: 0; }
  .dashboard-kpis article:nth-child(-n+4) { border-bottom: 1px solid var(--workspace-line); }
  .dashboard-cnr-strip { gap: 10px; padding: 14px 0; }
  .dashboard-cnr-strip h4 { width: 100%; }
  .dashboard-cnr-strip > div { flex: 1 1 100%; }
  .dashboard-cnr-strip > div > span { min-width: 130px; }
  .dashboard-chart { padding: 16px; }
  .dashboard-chart > header { gap: 10px; }
  .dashboard-chart :is(th,td) { padding: 9px 6px; }
  .overview-heading { flex-direction: column; align-items: start; gap: 10px; }
  .overview-heading > small { text-align: left; }
  body.is-authenticated .admin-access-panel { padding: 16px; }
}
