:root {
  --navy: #071523;
  --navy-soft: #0d2234;
  --blue: #168fd0;
  --cyan: #55c8f2;
  --violet: #7b4a9d;
  --green: #2f9f59;
  --orange: #f48a23;
  --red: #e64a45;
  --ink: #142332;
  --muted: #6f7d89;
  --line: #dfe6eb;
  --paper: #f4f7f9;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Manrope', Arial, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.portal-shell { min-height: 100svh; }
.login-view { display: grid; min-height: 100svh; grid-template-columns: minmax(0, 1.08fr) minmax(460px, .92fr); }
.login-brand-panel { position: relative; display: flex; min-height: 100svh; justify-content: space-between; flex-direction: column; padding: 46px clamp(40px, 6vw, 92px); overflow: hidden; background: radial-gradient(circle at 85% 70%, rgb(27 158 214 / 25%), transparent 32%), radial-gradient(circle at 18% 92%, rgb(124 72 157 / 32%), transparent 27%), linear-gradient(135deg, #071523 0%, #0a1b2b 68%, #07111d 100%); color: white; isolation: isolate; }
.login-brand-panel::before { position: absolute; z-index: -1; inset: 0; opacity: .17; background-image: linear-gradient(rgb(255 255 255 / 13%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 13%) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(135deg, #000, transparent 78%); content: ''; }
.portal-brand img { width: 190px; height: auto; filter: brightness(0) invert(1); }
.login-brand-copy { position: relative; z-index: 2; max-width: 720px; padding: 70px 0; }
.overline { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #527080; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.overline span { width: 25px; height: 2px; background: var(--blue); }
.overline--light { color: rgb(255 255 255 / 65%); }
.overline--light span { background: var(--cyan); }
.login-brand-copy h1 { margin: 0; max-width: 760px; font-size: clamp(56px, 5.7vw, 92px); font-weight: 600; line-height: .98; letter-spacing: -.065em; }
.login-brand-copy h1 em { color: #75d2f4; font-style: normal; }
.login-brand-copy > p:last-child { max-width: 590px; margin: 30px 0 0; color: rgb(255 255 255 / 65%); font-size: 16px; line-height: 1.7; }
.login-brand-metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / 18%); }
.login-brand-metrics div { display: flex; flex-direction: column; gap: 5px; padding: 22px 20px 0 0; border-right: 1px solid rgb(255 255 255 / 14%); }
.login-brand-metrics strong { font-size: 24px; color: #dff6ff; }
.login-brand-metrics span { color: rgb(255 255 255 / 45%); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.login-orbit { position: absolute; right: -170px; bottom: -160px; z-index: 0; width: 560px; height: 560px; border: 1px solid rgb(89 201 244 / 24%); border-radius: 50%; }
.login-orbit::before, .login-orbit::after { position: absolute; border: 1px solid rgb(89 201 244 / 15%); border-radius: 50%; content: ''; }
.login-orbit::before { inset: 70px; }.login-orbit::after { inset: 145px; }
.login-orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.login-orbit i:nth-child(1) { top: 87px; left: 74px; }.login-orbit i:nth-child(2) { top: 216px; left: -3px; }.login-orbit i:nth-child(3) { top: 25px; left: 250px; background: #bc86db; }

.login-form-panel { position: relative; display: grid; min-height: 100svh; place-items: center; padding: 78px clamp(36px, 6vw, 100px); background: white; }
.back-link { position: absolute; top: 38px; right: 46px; color: #667481; font-size: 11px; font-weight: 700; }
.back-link span { margin-right: 8px; color: var(--blue); }
.login-card { width: min(430px, 100%); }
.login-icon { display: grid; width: 54px; height: 54px; place-items: center; margin-bottom: 33px; border: 1px solid #cfe3ee; border-radius: 16px; background: #eff9fd; }
.login-icon svg { width: 27px; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.login-card h2 { margin: 0; font-size: 38px; font-weight: 650; line-height: 1.08; letter-spacing: -.05em; }
.form-intro { margin: 17px 0 36px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.login-card label { display: block; margin: 19px 0 8px; color: #455563; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.field-wrap { position: relative; }
.field-wrap > svg { position: absolute; top: 50%; left: 16px; width: 20px; height: 20px; fill: none; stroke: #7b8a96; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; transform: translateY(-50%); }
.field-wrap input { width: 100%; height: 56px; padding: 0 58px 0 48px; border: 1px solid #d8e0e5; border-radius: 7px; outline: none; background: #fbfcfd; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.field-wrap input:focus { border-color: #54b9e7; background: white; box-shadow: 0 0 0 4px rgb(22 143 208 / 9%); }
.password-toggle { position: absolute; top: 50%; right: 12px; padding: 8px; border: 0; background: none; color: #4380a0; cursor: pointer; font-size: 10px; font-weight: 800; transform: translateY(-50%); }
.login-error { min-height: 18px; margin: 13px 0 0; color: #c33d37; font-size: 11px; }
.login-submit { display: flex; width: 100%; height: 57px; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 19px 0 23px; border: 0; border-radius: 7px; background: linear-gradient(100deg, #0c86c1, #4dadd8); color: white; cursor: pointer; font-size: 12px; font-weight: 800; box-shadow: 0 14px 32px rgb(22 143 208 / 22%); transition: transform .2s, box-shadow .2s; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgb(22 143 208 / 29%); }
.login-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.login-submit span { font-size: 19px; }
.login-help { margin: 23px 0 0; color: #8a959e; font-size: 10px; line-height: 1.6; text-align: center; }
.prototype-note { position: absolute; bottom: 25px; margin: 0; color: #a3adb5; font-size: 9px; letter-spacing: .04em; }

.dashboard-view { display: grid; min-height: 100svh; grid-template-columns: 240px minmax(0, 1fr); }
.dashboard-sidebar { position: sticky; top: 0; display: flex; height: 100svh; flex-direction: column; padding: 35px 27px 27px; overflow-y: auto; background: var(--navy); color: white; }
.dashboard-brand img { width: 152px; filter: brightness(0) invert(1); }
.bus-identity { display: flex; align-items: center; gap: 13px; margin: 44px 0 35px; padding: 19px 0; border-top: 1px solid rgb(255 255 255 / 12%); border-bottom: 1px solid rgb(255 255 255 / 12%); }
.bus-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: rgb(80 194 238 / 12%); }
.bus-avatar svg { width: 24px; fill: none; stroke: #67c9ef; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.bus-identity div { display: flex; flex-direction: column; gap: 3px; }
.bus-identity small { color: rgb(255 255 255 / 42%); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.bus-identity strong { font-size: 16px; }
.dashboard-nav { display: flex; flex-direction: column; gap: 5px; }
.dashboard-nav a { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 6px; color: rgb(255 255 255 / 58%); font-size: 10px; font-weight: 700; transition: color .2s, background .2s; }
.dashboard-nav a span { color: rgb(255 255 255 / 25%); font-size: 8px; }
.dashboard-nav a:hover, .dashboard-nav a.is-active { background: rgb(255 255 255 / 7%); color: white; }
.dashboard-nav a.is-active span { color: #66c9ef; }
.sidebar-help { margin-top: auto; padding: 17px; border: 1px solid rgb(255 255 255 / 11%); border-radius: 7px; background: rgb(255 255 255 / 4%); }
.sidebar-help small { color: #62c4ea; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-help p { margin: 9px 0 13px; color: rgb(255 255 255 / 54%); font-size: 9px; line-height: 1.55; }
.sidebar-help a { color: white; font-size: 9px; font-weight: 700; }
.logout-button { display: flex; min-height: 45px; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding: 11px 16px; border: 1px solid rgb(103 201 239 / 42%); border-radius: 8px; background: linear-gradient(135deg, rgb(32 137 185 / 24%), rgb(16 76 111 / 32%)); color: #f4fbff; cursor: pointer; font-size: 11px; font-weight: 800; box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%); transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.logout-button span { color: #78d2f3; font-size: 18px; line-height: 1; transform: rotate(180deg); }
.logout-button strong { font: inherit; }
.logout-button:hover { border-color: rgb(103 201 239 / 72%); background: linear-gradient(135deg, rgb(36 157 211 / 38%), rgb(17 85 124 / 44%)); box-shadow: 0 8px 24px rgb(0 0 0 / 16%); transform: translateY(-1px); }
.logout-button:focus-visible { outline: 2px solid #78d2f3; outline-offset: 3px; }

.dashboard-main { position: relative; min-width: 0; padding: 36px clamp(18px, 2.4vw, 38px) 30px; overflow: hidden; background: radial-gradient(circle at 76% 5%, rgb(62 145 196 / 9%), transparent 24%), var(--paper); }
.dashboard-main::before { position: absolute; top: -90px; right: -15px; width: min(720px, 58vw); height: 360px; pointer-events: none; opacity: .38; background-image: linear-gradient(135deg, transparent 0 42%, rgb(77 142 183 / 15%) 42% 42.4%, transparent 42.4% 52%, rgb(77 142 183 / 12%) 52% 52.4%, transparent 52.4%), linear-gradient(45deg, transparent 0 61%, rgb(77 142 183 / 9%) 61% 61.4%, transparent 61.4%); content: ''; }
.dashboard-main > * { position: relative; z-index: 1; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.dashboard-header h1 { margin: 0; font-size: clamp(48px, 4.7vw, 72px); font-weight: 650; line-height: .95; letter-spacing: -.055em; }
.dashboard-title .overline { margin-bottom: 16px; color: #34637f; }
.dashboard-period-line { display: flex; align-items: center; gap: 9px; margin: 16px 0 0; color: #657786; font-size: 12px; }
.dashboard-period-line svg { width: 17px; fill: none; stroke: #48677b; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.dashboard-period-line strong { color: #405665; font-weight: 600; }
.dashboard-period-line i { width: 4px; height: 4px; border-radius: 50%; background: #9eacb5; }
.header-controls { display: flex; align-items: center; gap: 12px; }
.header-controls label { color: #677a87; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.header-controls select, .download-button { height: 48px; border: 1px solid #cfdbe2; border-radius: 7px; background: rgb(255 255 255 / 88%); color: #293e4c; font-size: 10px; font-weight: 700; box-shadow: 0 5px 18px rgb(23 54 71 / 4%); }
.header-controls select { min-width: 155px; padding: 0 38px 0 15px; }
.download-button { display: flex; align-items: center; gap: 10px; padding: 0 18px; cursor: pointer; }
.download-button span { color: #087fc1; font-size: 18px; line-height: 1; }
.data-status { display: flex; align-items: center; gap: 20px; margin: 28px 0 0; padding: 14px 17px; border: 1px solid #d3dfe5; border-radius: 7px; background: rgb(255 255 255 / 82%); box-shadow: 0 8px 25px rgb(30 61 77 / 3%); }
.data-status span { display: flex; align-items: center; gap: 9px; color: #278748; font-size: 9px; font-weight: 800; }
.data-status i { width: 8px; height: 8px; border-radius: 50%; background: #43b967; box-shadow: 0 0 0 5px rgb(62 189 108 / 12%); }
.data-status strong { color: #536773; font-size: 9px; }
.data-status small { margin-left: auto; color: #8e9ba4; font-size: 8px; }
.dashboard-section { padding: 54px 0 0; scroll-margin-top: 30px; }
.section-heading, .panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading p, .panel-heading p { margin: 0 0 9px; color: #5d7280; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2, .panel-heading h2 { margin: 0; font-size: clamp(24px, 2.2vw, 34px); font-weight: 650; line-height: 1.12; letter-spacing: -.045em; }
.summary-intro { display: block; margin-top: 7px; color: #617480; font-size: 11px; }
.period-chip { padding: 9px 14px; border: 1px solid #ccd9e0; border-radius: 99px; color: #566b79; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.kpi-card { position: relative; display: flex; min-height: 236px; flex-direction: column; padding: 22px; overflow: hidden; border: 1px solid #d6e0e5; border-radius: 9px; background: rgb(255 255 255 / 91%); color: #177ed7; box-shadow: 0 10px 28px rgb(23 53 69 / 4%); }
.kpi-card::after { display: none; }
.kpi-card-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }
.kpi-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: color-mix(in srgb, currentColor 11%, white); }
.kpi-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.kpi-card p { margin: 0; color: currentColor; font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.kpi-menu { align-self: start; color: #334d5c; font-size: 11px; letter-spacing: .08em; }
.kpi-card .kpi-value, .kpi-card .days-value { display: block; margin-top: 22px; color: #102131; font-size: clamp(23px, 2vw, 31px); font-weight: 600; letter-spacing: -.045em; }
.kpi-card .days-value b { font-weight: 600; }
.kpi-card .days-value small { font-size: .56em; font-weight: 500; letter-spacing: -.02em; }
.kpi-detail { display: block; margin-top: 7px; color: #5f7380; font-size: 9px; }
.kpi-foot { display: block; margin-top: auto; color: #7c8d98; font-size: 8px; }
.kpi-sparkline { height: 48px; margin: 13px 0 8px; }
.kpi-sparkline svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sparkline-path, .sparkline-guide { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.sparkline-guide { stroke: #e6edf1; stroke-width: 1; }
.kpi-card--expense { color: #7250d8; }
.kpi-card--balance { border-color: #a9dab8; background: linear-gradient(145deg, rgb(255 255 255 / 96%), #f1fbf4); color: #29934d; }
.kpi-card--days { color: #d49313; }
.margin-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: auto; color: #627581; font-size: 8px; }
.margin-progress::before { grid-row: 1; grid-column: 1; height: 6px; border-radius: 99px; background: #dfe7e3; content: ''; }
.margin-progress i { z-index: 1; grid-row: 1; grid-column: 1; height: 6px; border-radius: 99px; background: #2e9d55; }
.days-strip { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin-top: 17px; }
.days-strip i { height: 11px; border: 1px solid #ccd8df; border-radius: 2px; background: #edf2f5; }
.days-strip i.is-worked { border-color: #dda51e; background: #dda51e; }
.days-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; color: #738590; font-size: 7px; }
.days-legend span { display: flex; align-items: center; gap: 6px; }
.days-legend i { width: 6px; height: 6px; border-radius: 50%; background: #43b967; box-shadow: 0 0 0 3px rgb(67 185 103 / 10%); }
.days-legend span:last-child i { background: #d7e0e5; box-shadow: none; }
.days-legend b { font-weight: 600; white-space: nowrap; }
.operational-result { margin-top: 14px; padding: 19px 20px; border: 1px solid #d5e0e5; border-radius: 9px; background: rgb(255 255 255 / 83%); box-shadow: 0 10px 28px rgb(23 53 69 / 3%); }
.result-label { display: flex; align-items: center; gap: 7px; margin: 0 0 13px; color: #4c6270; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-label span { display: grid; width: 13px; height: 13px; place-items: center; border: 1px solid #9eafb9; border-radius: 50%; font-size: 7px; text-transform: none; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 225px; gap: 18px; }
.equation-card { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid #dce5e9; border-radius: 7px; background: linear-gradient(100deg, white, #f8fbfc); }
.equation-card div { display: flex; align-items: center; flex-direction: column; gap: 3px; text-align: center; }
.equation-card small { color: #748692; font-size: 8px; }
.equation-card strong { color: #16499f; font-size: clamp(16px, 1.7vw, 23px); font-weight: 650; letter-spacing: -.035em; }
.equation-card div:nth-of-type(2) strong { color: #785196; }
.equation-card > b { color: #192d3a; font-size: 21px; font-weight: 400; }
.equation-result strong { color: #238746; }
.margin-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px; border: 1px solid #afd9bb; border-radius: 7px; background: #f2fbf5; }
.margin-card div { display: flex; flex-direction: column; gap: 6px; }
.margin-card small { color: #4d6774; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.margin-card strong { color: #278d4d; font-size: 24px; font-weight: 650; }
.margin-ring { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#2d9b53 calc(var(--margin) * 1%), #d7e3dd 0); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 0); }
.flow-heading { margin-bottom: 24px; }
.flow-report-panel { overflow: hidden; }
.flow-scroll { overflow-x: auto; outline: none; scrollbar-color: #a9bac5 #eef2f4; scrollbar-width: thin; }
.flow-scroll:focus-visible { box-shadow: inset 0 0 0 3px rgb(22 143 208 / 24%); }
.resource-flow { display: block; width: 100%; min-width: 860px; height: auto; background: radial-gradient(circle at 48% 42%, rgb(49 157 205 / 7%), transparent 24%), #fff; font-family: 'Manrope', Arial, sans-serif; }
.flow-kicker { fill: #173d88; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.flow-kicker--right { fill: #dc302b; }
.flow-arrow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }.flow-arrow--blue { stroke: #1745bb; }.flow-arrow--red { stroke: #e62e29; }
.flow-ribbon { opacity: .96; }
.flow-source-cap--green { fill: #294f20; }.flow-source-cap--orange { fill: #e85f00; }.flow-source-cap--purple { fill: #43208b; }.flow-source-cap--blue { fill: #06677f; }
.flow-route-label circle { fill: #f5faf3; stroke: #527b43; stroke-width: 1.2; }.flow-route-label--orange circle { fill: #fff8f1; stroke: #ee7720; }.flow-route-label--purple circle { fill: #f8f5ff; stroke: #5c3bab; }.flow-route-label--blue circle { fill: #f0fafc; stroke: #147c96; }
.flow-route-symbol { fill: #466e39; font-size: 16px; font-weight: 800; text-anchor: middle; }.flow-route-label--orange .flow-route-symbol { fill: #e36c16; }.flow-route-label--purple .flow-route-symbol { fill: #5835a5; }.flow-route-label--blue .flow-route-symbol { fill: #11748c; }
.flow-label-title { fill: #172b39; font-size: 12px; font-weight: 800; }.flow-route-label--orange .flow-label-title { fill: #d85e13; }.flow-route-label--purple .flow-label-title { fill: #412786; }.flow-route-label--blue .flow-label-title { fill: #116e82; }
.flow-label-value { fill: #102330; font-size: 14px; font-weight: 800; }.flow-label-percent { fill: #667681; font-size: 10px; font-weight: 700; }
.flow-total-card, .flow-egress-card, .flow-produced-card { fill: #fff; stroke: #b7c7d0; stroke-width: 1.2; }.flow-total-card { stroke: #246fc1; }.flow-egress-card { stroke: #e23832; }.flow-produced-card { fill: #f7fbf8; stroke: #6d9a76; }
.flow-total-accent { fill: #174ac5; }
.flow-total-caption, .flow-total-question, .flow-egress-caption, .flow-egress-sub, .flow-produced-caption, .flow-produced-sub { fill: #173042; font-size: 10px; font-weight: 800; text-anchor: middle; }.flow-total-caption { fill: #174ac5; }.flow-total-question, .flow-egress-sub, .flow-produced-sub { font-size: 8px; }
.flow-total-number, .flow-egress-number, .flow-produced-number { fill: #101e29; font-size: 20px; font-weight: 800; text-anchor: middle; }.flow-egress-number { fill: #e52e29; }.flow-produced-number { fill: #315f3b; }
.flow-total-percent, .flow-egress-percent, .flow-produced-percent { fill: #455762; font-size: 10px; font-weight: 800; text-anchor: middle; }.flow-produced-percent { fill: #315f3b; }
.flow-expense-cap { fill: #d41717; }
.flow-expense-title { fill: #df2c28; font-size: 12px; font-weight: 800; }.flow-expense-value { fill: #172631; font-size: 13px; font-weight: 800; }.flow-expense-percent { fill: #6f7c85; font-size: 9px; font-weight: 700; }
.flow-footnote { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; border-top: 1px solid #e5eaed; background: #f9fbfc; color: #798791; font-size: 8px; }
.flow-footnote span { display: flex; align-items: center; gap: 8px; }.flow-footnote i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }.flow-footnote strong { color: #425562; font-size: 8px; text-transform: uppercase; }

/* Comparativo general de buses */
.comparison-heading { align-items: flex-end; }
.comparison-intro { display: block; margin-top: 7px; color: #6a7d8a; font-size: 10px; }
.comparison-heading-controls { display: flex; align-items: center; gap: 11px; }
.comparison-period-control { display: flex; height: 43px; align-items: center; gap: 9px; padding: 0 10px 0 13px; border: 1px solid #ccd8df; border-radius: 6px; background: white; }
.comparison-period-control svg { width: 16px; fill: none; stroke: #173d54; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.comparison-period-control select { min-width: 120px; height: 100%; border: 0; outline: 0; background: transparent; color: #263c4a; font-size: 9px; font-weight: 700; }
.comparison-export { display: flex; height: 43px; align-items: center; gap: 9px; padding: 0 17px; border: 1px solid #ccd8df; border-radius: 6px; background: white; color: #263c4a; cursor: pointer; font-size: 9px; font-weight: 700; }
.comparison-export span { color: #168fd0; font-size: 16px; }
.comparison-filter-panel { margin-top: 24px; padding: 20px 22px 15px; }
.comparison-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.comparison-filter-heading strong { color: #405965; font-size: 12px; }
.comparison-filter-heading button { border: 0; background: none; color: #687b86; cursor: pointer; font-size: 11px; }
.comparison-filter-heading button:disabled { cursor: default; opacity: .45; }
.comparison-filter-heading button span { margin-left: 6px; font-size: 12px; }
.comparison-selectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid #e2e8eb; }
.comparison-bus-option { display: inline-flex; height: 38px; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #d8e1e6; border-radius: 6px; background: #fbfcfd; color: #3e5662; cursor: pointer; font-size: 11px; font-weight: 750; transition: border-color .2s, background .2s; }
.comparison-bus-option:hover { border-color: #9dc8da; background: #f7fbfd; }
.comparison-bus-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.comparison-bus-option i { display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid #cbd7de; border-radius: 3px; background: white; color: transparent; font-size: 9px; font-style: normal; }
.comparison-bus-option input:checked + i { border-color: #2d9b52; background: #2d9b52; color: white; box-shadow: 0 0 0 2px rgb(45 155 82 / 9%); }
.comparison-bus-option:has(input:focus-visible) { outline: 2px solid #4bb2df; outline-offset: 2px; }
.comparison-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; }
.comparison-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.comparison-legend span { display: inline-flex; align-items: center; gap: 7px; color: #526975; font-size: 11px; font-weight: 750; }
.comparison-color { width: 8px; height: 8px; border-radius: 50%; }
.comparison-color--expenses, .comparison-segment--expenses { background: #ef2222; }
.comparison-color--produced, .comparison-segment--produced { background: #31a955; }
.comparison-color--acpm, .comparison-segment--acpm { background: #ff6b00; }
.comparison-color--payroll, .comparison-segment--payroll { background: #3f7fe8; }
.comparison-color--allowance, .comparison-segment--allowance { background: #ffd55f; }
.comparison-color--days { background: #315d24; }
.comparison-mode { display: flex; flex: 0 0 auto; padding: 2px; border: 1px solid #d3dde3; border-radius: 99px; background: #f9fbfc; }
.comparison-mode button { min-width: 92px; padding: 8px 13px; border: 0; border-radius: 99px; background: transparent; color: #647985; cursor: pointer; font-size: 11px; font-weight: 750; }
.comparison-mode button.is-active { background: #0b2132; color: white; box-shadow: 0 4px 12px rgb(7 25 39 / 16%); }
.comparison-chart-panel { margin-top: 14px; padding: 20px 20px 16px; }
.comparison-unit { display: block; margin-bottom: 7px; color: #5d7481; font-size: 11px; font-weight: 650; }
.comparison-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #b8c8d1 #eef2f4; scrollbar-width: thin; }
.comparison-chart { position: relative; min-width: 1010px; height: 430px; padding: 18px 18px 42px 66px; background-image: repeating-linear-gradient(to bottom, #e6edf1 0, #e6edf1 1px, transparent 1px, transparent 54px); }
.comparison-y-axis { position: absolute; top: 18px; bottom: 42px; left: 0; width: 64px; color: #536c7a; font-size: 10px; font-weight: 650; }
.comparison-y-axis span { position: absolute; right: 9px; transform: translateY(-50%); }
.comparison-bars { display: grid; height: 370px; grid-template-columns: repeat(var(--bus-count), minmax(96px, 1fr)); align-items: stretch; gap: 22px; }
.comparison-item { display: grid; min-width: 96px; height: 100%; grid-template-rows: 1fr 28px; align-items: end; }
.comparison-bar-area { position: relative; display: flex; height: 345px; align-items: flex-end; justify-content: center; }
.comparison-days { position: absolute; bottom: calc(var(--bar-height) + 39px); display: flex; align-items: baseline; gap: 3px; padding: 6px 10px; border-radius: 99px; background: #e9f7eb; color: #294f20; font-size: 11px; font-weight: 800; white-space: nowrap; }
.comparison-days strong { font-size: 12px; }
.comparison-income { position: absolute; bottom: calc(var(--bar-height) + 17px); color: #102736; font-size: 11px; font-weight: 800; white-space: nowrap; }
.comparison-stack { display: flex; width: min(96px, 88%); height: var(--bar-height); min-height: 2px; flex-direction: column-reverse; overflow: visible; border-radius: 6px 6px 1px 1px; box-shadow: 0 8px 20px rgb(25 55 72 / 10%); }
.comparison-segment { position: relative; display: grid; min-height: 0; flex: 0 0 var(--segment-height); place-items: center; padding: 0 3px; color: white; font-size: 12.5px; font-style: normal; font-weight: 900; letter-spacing: -.025em; line-height: 1; text-shadow: 0 1px 2px rgb(0 0 0 / 38%); white-space: nowrap; }
.comparison-segment:first-child { border-radius: 0 0 1px 1px; }.comparison-segment:last-child { border-radius: 4px 4px 0 0; }
.comparison-segment--acpm, .comparison-segment--allowance { color: #1a2730; text-shadow: none; }
.comparison-item > strong { align-self: end; color: #3f5662; font-size: 11px; font-weight: 800; text-align: center; white-space: nowrap; }
.comparison-empty { display: grid; height: 100%; place-items: center; color: #85939c; font-size: 10px; text-align: center; }
.comparison-metrics { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 13px; overflow: hidden; border: 1px solid #d6e5ed; border-radius: 7px; background: linear-gradient(100deg, #f4faff, #f7fbfc); }
.comparison-metrics article { min-height: 74px; padding: 14px 17px; border-right: 1px solid #dce7ec; }
.comparison-metrics article:last-child { border-right: 0; }
.comparison-metrics small { display: block; min-height: 24px; color: #617784; font-size: 9.5px; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.comparison-metrics article > strong { display: block; margin-top: 5px; color: #132a39; font-size: 16px; letter-spacing: -.03em; }
.comparison-metrics article div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.comparison-metrics article div strong { color: #19303f; font-size: 11px; }
.comparison-metrics article div b { color: #28924d; font-size: 10px; white-space: nowrap; }
.comparison-metrics-empty { grid-column: 1/-1; padding: 22px; color: #82919a; font-size: 9px; text-align: center; }
.comparison-footnote { display: flex; justify-content: space-between; gap: 20px; padding: 17px 10px 0; color: #84919a; font-size: 7px; }.comparison-footnote strong { color: #738691; font-weight: 500; }
.split-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: 8px; background: white; }
.route-panel, .expense-panel { padding: 26px; }
.panel-heading { align-items: flex-start; }
.panel-heading h2 { font-size: 24px; }
.panel-heading > strong { color: #53636f; font-size: 14px; }
.route-list { display: flex; flex-direction: column; gap: 22px; margin-top: 36px; }
.route-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 18px; }
.route-row > div { display: flex; align-items: center; gap: 8px; }
.route-row > div strong { font-size: 10px; }.route-row > div span { color: #87949e; font-size: 8px; }.route-row > b { font-size: 10px; }
.route-dot { width: 8px; height: 8px; border-radius: 50%; }.route-dot--green { background: #4d7f3b; }.route-dot--orange { background: #f47d20; }.route-dot--blue { background: #177d9b; }.route-dot--purple { background: #6240a6; }
.route-track { grid-column: 1/-1; height: 7px; overflow: hidden; border-radius: 99px; background: #eef2f4; }
.route-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #188dc8, #57badf); }
.expense-visual { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 26px; margin-top: 31px; }
.expense-donut { display: grid; width: 154px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: conic-gradient(#e45951 0 39.48%, #f08725 39.48% 77.32%, #f4c64f 77.32% 96.05%, #7c4d9c 96.05%); }
.expense-donut::before { position: absolute; width: 104px; aspect-ratio: 1; border-radius: 50%; background: white; content: ''; }
.expense-donut span { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; font-size: 15px; font-weight: 800; }
.expense-donut small { color: #8a969f; font-size: 8px; text-transform: uppercase; }
.expense-legend { display: flex; flex-direction: column; }
.expense-legend > div { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf1f3; }
.expense-legend > div > i { width: 7px; height: 7px; border-radius: 2px; background: #e45951; }.expense-legend > div:nth-child(2) > i { background: #f08725; }.expense-legend > div:nth-child(3) > i { background: #f4c64f; }.expense-legend > div:nth-child(4) > i { background: #7c4d9c; }
.expense-legend span { display: flex; flex-direction: column; }.expense-legend b { font-size: 9px; }.expense-legend small { color: #95a0a8; font-size: 7px; }.expense-legend strong { font-size: 9px; }
.count-heading { align-items: center; }
.count-intro { display: block; margin-top: 7px; color: #6b7e8a; font-size: 10px; }
.count-kpis { display: grid; min-width: 360px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.count-kpis article { display: flex; min-height: 72px; align-items: center; gap: 13px; padding: 14px 17px; border: 1px solid #d4dfe5; border-radius: 7px; background: white; box-shadow: 0 8px 22px rgb(24 53 69 / 3%); }
.count-kpis article > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.count-kpis small { overflow: hidden; color: #718490; font-size: 7px; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.count-kpis b { color: #102536; font-size: 21px; letter-spacing: -.035em; }
.count-kpi-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 50%; }
.count-kpi-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.count-kpi-icon--blue { background: #edf5ff; color: #227bde; }.count-kpi-icon--green { background: #eaf8ef; color: #25934b; }
.count-table-panel { margin-top: 24px; overflow: hidden; }
.count-table-controls { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-bottom: 1px solid #dce4e8; }
.count-control { display: flex; height: 38px; align-items: center; gap: 8px; padding: 0 8px 0 11px; border: 1px solid #d5dfe4; border-radius: 6px; background: white; }
.count-control svg { width: 16px; fill: none; stroke: #213c4d; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.count-control select { min-width: 130px; height: 100%; border: 0; outline: none; background: transparent; color: #354c59; font-size: 10px; font-weight: 700; }
.count-control--route select { min-width: 175px; }
.count-export { display: flex; height: 38px; align-items: center; gap: 8px; margin-left: auto; padding: 0 14px; border: 1px solid #cfdce2; border-radius: 6px; background: white; color: #304753; cursor: pointer; font-size: 10px; font-weight: 700; }
.count-export span { color: #27904b; font-size: 16px; }
.count-table-scroll { overflow-x: auto; scrollbar-color: #b8c8d1 #eef2f4; scrollbar-width: thin; }
.count-data-table { min-width: 680px; table-layout: fixed; }
.count-data-table th { padding: 11px 5px; border-right: 1px solid #d8e2e7; background: #f2f6f8; color: #3f5b69; font-size: 12.5px; line-height: 1.2; text-align: center; white-space: normal; }
.count-data-table th small { display: block; font-size: 11px; }
.count-data-table th:last-child, .count-data-table td:last-child { border-right: 0; }
.count-data-table th:nth-child(1) { width: 7%; }.count-data-table th:nth-child(2) { width: 18%; }.count-data-table th:nth-child(3) { width: 12%; }.count-data-table th:nth-child(4), .count-data-table th:nth-child(5), .count-data-table th:nth-child(6) { width: 16%; }.count-data-table th:nth-child(7) { width: 15%; }
.count-data-table td { padding: 11px 5px; border-right: 1px solid #dde6ea; border-bottom: 1px solid #dce5e9; color: #223f4d; font-size: 14px; line-height: 1.25; text-align: center; }
.count-data-table td:nth-child(n+3):nth-child(-n+6) { font-weight: 650; text-align: right; }
.count-data-table td:first-child { color: #182d3b; font-weight: 800; }
.count-data-table tbody tr:nth-child(even) { background: #fbfcfd; }.count-data-table tbody tr:hover { background: #f3f8fb; }
.count-data-table .count-empty-row { padding: 34px; color: #7b8d97; text-align: center; }
.count-route { display: inline-flex; padding: 6px 8px; border-radius: 4px; background: #eaf3ff; color: #276ec4; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.count-route--1 { background: #e8f7ec; color: #28834b; }.count-route--2 { background: #f1ebff; color: #6a48bd; }.count-route--3 { background: #fff2e7; color: #bc691f; }
.count-difference { font-weight: 700; }.count-difference.is-positive { color: #26944b; }.count-difference.is-negative { color: #e33338; }
.count-state { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid; border-radius: 5px; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.count-state i { display: grid; width: 11px; height: 11px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 7px; font-style: normal; }
.count-state--ahead { border-color: #abd9ea; background: #edf8fc; color: #197ba5; }
.count-state--normal { border-color: #b7e4c5; background: #edfaf1; color: #208847; }
.count-state--short { border-color: #f0b9bc; background: #fff0f1; color: #d72e35; }
.count-state--empty { border-color: #d5dfe4; background: #f3f6f7; color: #71828c; }
.count-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 14px; border-top: 1px solid #dce4e8; color: #7b8d98; font-size: 7px; }
.count-table-footer > div { display: flex; align-items: center; gap: 6px; }
.count-table-footer select, .count-table-footer button { height: 34px; border: 1px solid #d7e0e5; border-radius: 5px; background: white; color: #526773; font-size: 7px; }
.count-table-footer select { min-width: 105px; padding: 0 8px; }.count-table-footer button { padding: 0 11px; cursor: pointer; }.count-table-footer button:disabled { cursor: default; opacity: .42; }
.count-pages { display: flex; gap: 4px; }.count-pages button { min-width: 32px; padding: 0 8px; }.count-pages button.is-active { border-color: #168fd0; background: #168fd0; color: white; }
.count-criteria { margin-top: 14px; padding: 17px 19px; }
.count-criteria > strong { display: block; margin-bottom: 14px; color: #283f4d; font-size: 8px; }
.count-criteria > div { display: grid; grid-template-columns: repeat(4, 1fr); }
.count-criteria section { display: flex; gap: 10px; padding: 0 20px; border-right: 1px solid #dce4e8; }
.count-criteria section:first-child { padding-left: 0; }.count-criteria section:last-child { padding-right: 0; border-right: 0; }
.count-criteria section > span { display: flex; flex-direction: column; gap: 5px; }
.count-criteria b { font-size: 8px; }.count-criteria small { color: #748691; font-size: 7px; line-height: 1.5; }
.count-state-icon { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border: 1.5px solid; border-radius: 50%; font-size: 10px; font-style: normal; }
.count-state-icon--ahead { color: #1d86ad; }.count-state-icon--normal { color: #25944b; }.count-state-icon--short { color: #e4373d; }.count-state-icon--empty { color: #71828c; }

/* Detalle diario y trazabilidad */
.detail-heading { align-items: flex-end; }
.detail-intro { display: block; margin-top: 7px; color: #687c89; font-size: 10px; }
.detail-heading-actions { display: flex; align-items: center; gap: 9px; }
.detail-heading-actions label, .detail-heading-actions button { display: flex; height: 42px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #d1dde3; border-radius: 6px; background: white; color: #304653; font-size: 8px; font-weight: 700; }
.detail-heading-actions label svg { width: 16px; fill: none; stroke: #284657; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.detail-heading-actions select { min-width: 105px; height: 100%; border: 0; outline: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; }
.detail-heading-actions button { cursor: pointer; }.detail-heading-actions button span { color: #197fd0; font-size: 15px; }.detail-heading-actions button span.is-green { color: #24934a; }
.detail-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 23px; }
.detail-kpis article { display: flex; min-height: 71px; align-items: center; gap: 10px; padding: 12px; border: 1px solid #d6e0e5; border-radius: 7px; background: white; box-shadow: 0 7px 20px rgb(22 52 68 / 3%); }
.detail-kpis article > span { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.detail-kpis small { color: #728490; font-size: 6px; font-weight: 700; text-transform: uppercase; }
.detail-kpis b { overflow: hidden; color: #132837; font-size: clamp(12px, 1.3vw, 17px); letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.detail-kpi-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 14px; font-style: normal; }
.detail-kpi-icon--green { background: #eaf8ef; color: #26944c; }.detail-kpi-icon--blue { background: #eaf3ff; color: #267bd4; }.detail-kpi-icon--orange { background: #fff0e5; color: #ef7a1a; }.detail-kpi-icon--violet { background: #f2edff; color: #7851d2; }.detail-kpi-icon--amber { background: #fff6df; color: #d8950e; }.detail-kpi-icon--red { background: #fff0f1; color: #de343a; }
.detail-filter-panel { display: flex; align-items: flex-end; gap: 9px; margin-top: 14px; padding: 15px 17px; }
.detail-filter-panel > label { display: flex; flex-direction: column; gap: 6px; }
.detail-filter-panel label small { color: #6e808b; font-size: 7px; font-weight: 700; }
.detail-filter-panel select, .detail-search span { width: 150px; height: 38px; border: 1px solid #d5dfe4; border-radius: 6px; background: white; color: #405661; font-size: 8px; }
.detail-filter-panel select { padding: 0 10px; }.detail-search span { display: flex; width: 180px; align-items: center; gap: 8px; padding: 0 10px; }
.detail-search svg { width: 15px; fill: none; stroke: #71848f; stroke-linecap: round; stroke-width: 1.7; }.detail-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #405661; font-size: 8px; }
.detail-route-toggles { display: flex; align-items: center; gap: 9px; margin-left: 6px; }
.detail-route-toggle { display: inline-flex; align-items: center; gap: 6px; color: #415762; cursor: pointer; font-size: 7px; font-weight: 700; }
.detail-route-toggle input { position: absolute; opacity: 0; }.detail-route-toggle i { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 3px; background: var(--route-color); color: white; font-size: 9px; font-style: normal; }.detail-route-toggle input:not(:checked) + i { background: #e7edf0; color: transparent; }
.detail-clear { height: 38px; margin-left: auto; padding: 0 13px; border: 1px solid #d2dde3; border-radius: 6px; background: white; color: #516672; cursor: pointer; font-size: 8px; }
.detail-table-panel { margin-top: 14px; overflow: hidden; }
.detail-table-scroll { overflow-x: auto; scrollbar-color: #b8c8d1 #eef2f4; scrollbar-width: thin; }
.detail-data-table { min-width: 1050px; table-layout: fixed; }
.detail-data-table th, .detail-data-table td { padding: 5px 4px; border-right: 1px solid #e2e9ed; text-align: center; }
.detail-data-table th:last-child, .detail-data-table td:last-child { border-right: 0; }
.detail-data-table thead tr:nth-child(2) th { background: #f5f8f9; color: #3f5d6b; font-size: 12px; line-height: 1.2; white-space: normal; }
.detail-data-table thead tr:nth-child(2) th:nth-child(1) { width: 4%; }.detail-data-table thead tr:nth-child(2) th:nth-child(2) { width: 7%; }.detail-data-table thead tr:nth-child(2) th:nth-child(3) { width: 8%; }.detail-data-table thead tr:nth-child(2) th:nth-child(4) { width: 8%; }.detail-data-table thead tr:nth-child(2) th:nth-child(5) { width: 10%; }.detail-data-table thead tr:nth-child(2) th:nth-child(6) { width: 7%; }.detail-data-table thead tr:nth-child(2) th:nth-child(7) { width: 8%; }.detail-data-table thead tr:nth-child(2) th:nth-child(8) { width: 9%; }.detail-data-table thead tr:nth-child(2) th:nth-child(9) { width: 8%; }.detail-data-table thead tr:nth-child(2) th:nth-child(10) { width: 8%; }.detail-data-table thead tr:nth-child(2) th:nth-child(11) { width: 9%; }.detail-data-table thead tr:nth-child(2) th:nth-child(12) { width: 14%; }
.detail-data-table .detail-group-row th { padding: 10px 5px; border-right: 1px solid #d8e4eb; background: #edf5ff; color: #1e64ba; font-size: 12px; text-align: center; }
.detail-data-table .detail-group-row th:nth-child(2) { background: #edf9f1; color: #26874a; }.detail-data-table .detail-group-row th:nth-child(3) { background: #f5f0ff; color: #734fd0; }
.detail-data-table td { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #dce5e9; color: #294754; font-size: 13.5px; line-height: 1.25; white-space: nowrap; }.detail-data-table td:nth-child(n+4):nth-child(-n+11) { font-weight: 650; text-align: right; }.detail-data-table td:first-child { color: #172f3d; font-weight: 800; }.detail-data-table tbody tr:nth-child(even) { background: #fbfcfd; }.detail-data-table tbody tr:hover { background: #f3f8fb; }
.detail-route-cell { display: inline-flex; align-items: center; gap: 6px; }.detail-route-cell i { width: 7px; height: 7px; border-radius: 50%; background: var(--route-color); }
.detail-data-table td.detail-observation { overflow-wrap: anywhere; color: #405762; line-height: 1.3; text-align: left; white-space: normal; }
.detail-difference.is-positive { color: #219049; font-weight: 700; }.detail-difference.is-negative { color: #df3238; font-weight: 700; }
.detail-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid; border-radius: 5px; font-size: 6px; font-weight: 800; text-transform: uppercase; }
.detail-status i { display: grid; width: 10px; height: 10px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 6px; font-style: normal; }
.detail-status--worked { border-color: #b5e1c2; background: #ecf9f0; color: #248647; }.detail-status--missing { border-color: #efd081; background: #fff8e5; color: #b97700; }.detail-status--rest { border-color: #d5dfe4; background: #f0f3f5; color: #6d7e89; }.detail-status--review { border-color: #efb7ba; background: #fff0f1; color: #d92f36; }
.detail-data-table tfoot td { padding: 11px 5px; border-top: 1px solid #c9dce7; background: #eaf4fb; color: #142f40; font-size: 14px; font-weight: 850; }.detail-data-table tfoot td:first-child { text-align: left; }
.detail-table-footer { display: flex; justify-content: space-between; gap: 20px; padding: 11px 16px; border-top: 1px solid #dce4e8; color: #7a8c96; font-size: 7px; }.detail-table-footer strong { color: #536874; font-weight: 600; }
.detail-criteria { margin-top: 14px; padding: 17px 19px; }.detail-criteria > strong { display: block; margin-bottom: 14px; color: #273e4c; font-size: 8px; }.detail-criteria > div { display: grid; grid-template-columns: repeat(4, 1fr); }.detail-criteria section { display: flex; gap: 10px; padding: 0 17px; border-right: 1px solid #dce4e8; }.detail-criteria section:first-child { padding-left: 0; }.detail-criteria section:last-child { padding-right: 0; border-right: 0; }.detail-criteria section > span { display: flex; flex-direction: column; gap: 4px; }.detail-criteria b { font-size: 7px; text-transform: uppercase; }.detail-criteria small { color: #748691; font-size: 6px; line-height: 1.45; }
.detail-state-symbol { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border: 1.5px solid; border-radius: 50%; font-size: 9px; font-style: normal; }.detail-state-symbol--worked { color: #26934b; }.detail-state-symbol--missing { border-color: transparent; color: #e39a00; }.detail-state-symbol--rest { color: #667d8d; }.detail-state-symbol--review { color: #e33239; }
.secondary-button { padding: 9px 12px; border: 1px solid #d6dfe4; border-radius: 5px; background: white; color: #51616e; cursor: pointer; font-size: 8px; font-weight: 800; }.secondary-button span { margin-left: 7px; color: var(--blue); }
.table-card { margin-top: 23px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 15px 17px; border-bottom: 1px solid #edf1f3; text-align: left; }
th { background: #f8fafb; color: #526b78; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
td { color: #294754; font-size: 13.5px; font-variant-numeric: tabular-nums; } tbody tr:last-child td { border-bottom: 0; }
.negative { color: #c94a45; }
.status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 99px; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.status--active { background: #e8f6ed; color: #34834f; }.status--pending { background: #fff3dc; color: #9b6b17; }.status--rest { background: #eef1f3; color: #71808a; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 30px; margin-top: 70px; padding-top: 22px; border-top: 1px solid #dce4e8; color: #9ca7af; font-size: 8px; }

.operator-view { min-height: 100svh; background: #f3f6f8; }
.operator-topbar { position: sticky; top: 0; z-index: 20; display: flex; height: 76px; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 58px); background: var(--navy); color: white; box-shadow: 0 8px 28px rgb(4 19 31 / 12%); }
.operator-topbar > a img { width: 145px; filter: brightness(0) invert(1); }
.operator-profile { display: flex; align-items: center; gap: 11px; }
.operator-avatar { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgb(91 200 240 / 35%); border-radius: 50%; background: rgb(91 200 240 / 10%); color: #75d4f5; font-size: 9px; font-weight: 800; }
.operator-profile div { display: flex; flex-direction: column; gap: 2px; }.operator-profile small { color: rgb(255 255 255 / 38%); font-size: 7px; letter-spacing: .07em; text-transform: uppercase; }.operator-profile strong { font-size: 10px; }
.operator-profile button { margin-left: 12px; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 5px; background: transparent; color: rgb(255 255 255 / 62%); cursor: pointer; font-size: 8px; font-weight: 700; }
.operator-layout { display: grid; min-height: calc(100svh - 76px); grid-template-columns: 245px minmax(0, 1fr); }
.operator-sidebar { padding: 38px 27px; border-right: 1px solid #dce4e8; background: #fff; }
.operator-sidebar > p { margin: 0 0 24px; color: #7b8993; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.operator-sidebar ol { position: relative; margin: 0; padding: 0; list-style: none; }
.operator-sidebar ol::before { position: absolute; top: 21px; bottom: 21px; left: 17px; width: 1px; background: #d9e1e6; content: ''; }
.operator-sidebar li { position: relative; display: flex; align-items: center; gap: 13px; margin-bottom: 25px; color: #87939c; }
.operator-sidebar li > span { position: relative; z-index: 1; display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid #d3dde3; border-radius: 50%; background: white; font-size: 8px; font-weight: 800; }
.operator-sidebar li div { display: flex; flex-direction: column; gap: 3px; }.operator-sidebar li strong { font-size: 10px; }.operator-sidebar li small { font-size: 7px; }
.operator-sidebar li.is-active { color: var(--ink); }.operator-sidebar li.is-active > span { border-color: var(--blue); background: var(--blue); color: white; box-shadow: 0 0 0 5px rgb(22 143 208 / 9%); }
.operator-permissions { margin-top: 45px; padding: 16px; border: 1px solid #e0e6ea; border-radius: 7px; background: #f8fafb; }.operator-permissions small { color: #3f88aa; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.operator-permissions p { margin: 8px 0 0; color: #788690; font-size: 8px; line-height: 1.6; }
.operator-main { width: min(1080px, calc(100% - 56px)); margin: 0 auto; padding: 54px 0 75px; }
.operator-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; }
.operator-heading h1 { margin: 0; font-size: clamp(40px, 4vw, 60px); font-weight: 650; line-height: 1; letter-spacing: -.055em; }.operator-heading > div:first-child > p:last-child { max-width: 620px; margin: 16px 0 0; color: #70808b; font-size: 11px; line-height: 1.65; }
.operator-current { display: flex; min-width: 190px; align-items: flex-end; flex-direction: column; gap: 4px; padding: 15px 17px; border: 1px solid #dce4e8; border-radius: 7px; background: white; }.operator-current small { color: #8a969f; font-size: 7px; text-transform: uppercase; }.operator-current strong { font-size: 12px; }.operator-current span { display: flex; align-items: center; gap: 6px; color: #388354; font-size: 7px; font-weight: 800; text-transform: uppercase; }.operator-current i { width: 6px; height: 6px; border-radius: 50%; background: #3fbe6c; }
.operator-demo-notice { display: flex; align-items: center; gap: 14px; margin-top: 27px; padding: 12px 15px; border: 1px solid #ecd9a8; border-radius: 6px; background: #fffaf0; }.operator-demo-notice span { flex: 0 0 auto; padding: 5px 7px; border-radius: 99px; background: #f3dfaa; color: #785b19; font-size: 7px; font-weight: 800; text-transform: uppercase; }.operator-demo-notice p { margin: 0; color: #7c6d49; font-size: 8px; }
.operator-demo-notice.is-connected { border-color: #bcdcc7; background: #f3fbf6; }.operator-demo-notice.is-connected span { background: #d7efdf; color: #276640; }.operator-demo-notice.is-connected p { color: #48705a; }
.data-status.is-loading { opacity: .62; }.data-status.has-warning { border-color: #efd9aa; background: #fffaf0; }.data-status.has-warning span, .data-status.has-warning strong { color: #795d20; }
.operator-card { margin-top: 20px; padding: 27px; border: 1px solid #dce4e8; border-radius: 9px; background: white; box-shadow: 0 10px 35px rgb(27 52 68 / 4%); }
.operator-card-heading { display: flex; align-items: center; gap: 13px; }.operator-card-heading > span:first-child { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #eef8fc; color: var(--blue); font-size: 8px; font-weight: 800; }.operator-card-heading p { margin: 0 0 4px; color: #88959e; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.operator-card-heading h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.file-drop { display: flex; min-height: 215px; align-items: center; justify-content: center; flex-direction: column; margin-top: 25px; padding: 28px; border: 1.5px dashed #b7c9d3; border-radius: 8px; background: #f8fbfc; cursor: pointer; text-align: center; transition: border-color .2s, background .2s, transform .2s; }.file-drop:hover, .file-drop.is-dragging { border-color: #31a6d7; background: #f0f9fd; transform: translateY(-1px); }.file-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-drop-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 17px; border: 1px solid #cbe0ea; border-radius: 14px; background: white; }.file-drop-icon svg { width: 24px; fill: none; stroke: var(--blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }.file-drop strong { color: #314755; font-size: 11px; }.file-drop small { margin-top: 8px; color: #8c989f; font-size: 8px; }
.selected-file { display: flex; align-items: center; gap: 13px; margin-top: 16px; padding: 14px; border: 1px solid #dce6e9; border-radius: 7px; background: #f9fbfb; }.excel-badge { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 7px; background: #e7f5eb; color: #287447; font-size: 8px; font-weight: 800; }.selected-file div { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }.selected-file strong { overflow: hidden; color: #334956; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.selected-file small { color: #87949d; font-size: 8px; }.selected-file button { width: 31px; height: 31px; border: 0; border-radius: 50%; background: #edf1f3; color: #65757f; cursor: pointer; font-size: 17px; }
.upload-error { min-height: 15px; margin: 9px 0 0; color: #c64039; font-size: 8px; }.upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 9px; }.upload-actions > span { color: #93a0a8; font-size: 8px; }
.operator-primary, .operator-publish { display: flex; height: 43px; align-items: center; gap: 24px; padding: 0 16px; border: 0; border-radius: 6px; background: linear-gradient(100deg, #128dc8, #4eb7df); color: white; cursor: pointer; font-size: 9px; font-weight: 800; box-shadow: 0 9px 24px rgb(22 143 208 / 18%); }.operator-primary:disabled { background: #cfd8dd; cursor: not-allowed; box-shadow: none; }.operator-primary b { font-size: 15px; }
.validation-card { scroll-margin-top: 95px; }.validation-state { margin-left: auto; padding: 6px 8px; border-radius: 99px; background: #e8f6ed; color: #2e7d4a; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.validation-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border: 1px solid #e1e7ea; border-radius: 7px; }.validation-metrics article { min-height: 112px; padding: 18px; border-right: 1px solid #e1e7ea; }.validation-metrics article:last-child { border-right: 0; }.validation-metrics small { color: #87949d; font-size: 7px; font-weight: 800; text-transform: uppercase; }.validation-metrics strong { display: block; margin: 11px 0 5px; font-size: 22px; letter-spacing: -.04em; }.validation-metrics span { color: #9aa5ac; font-size: 7px; }.validation-metrics article.has-errors { background: #fff7f5; }.validation-metrics article.has-errors strong { color: #c5423a; }
.detected-buses { margin-top: 22px; }.detected-buses > p { margin: 0 0 10px; color: #74838d; font-size: 8px; font-weight: 800; text-transform: uppercase; }.detected-buses > div { display: flex; flex-wrap: wrap; gap: 7px; }.bus-chip { padding: 7px 10px; border: 1px solid #cfe0e8; border-radius: 99px; background: #f2f9fc; color: #28627e; font-size: 8px; font-weight: 800; }
.validation-message { margin-top: 20px; padding: 13px 14px; border: 1px solid #dce5e9; border-radius: 6px; background: #f8fafb; color: #687983; font-size: 8px; line-height: 1.6; }.validation-message.has-warning { border-color: #edcfaa; background: #fff9f2; color: #856241; }
.publish-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e1e7ea; }.publish-summary > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }.publish-summary small { color: #8d99a1; font-size: 7px; text-transform: uppercase; }.publish-summary strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.publish-summary div span { color: #8c989f; font-size: 7px; }.operator-publish { background: linear-gradient(100deg, #267b47, #45a868); box-shadow: 0 9px 24px rgb(45 145 81 / 17%); }
.publication-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border-color: #bcdcc7; background: #f7fcf9; }.publication-check { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 50%; background: #dff2e5; color: #2d8850; font-size: 18px; }.publication-card p { margin: 0 0 3px; color: #4b8b63; font-size: 7px; font-weight: 800; text-transform: uppercase; }.publication-card h2 { margin: 0; font-size: 18px; }.publication-card div > span { display: block; max-width: 620px; margin-top: 6px; color: #6f8177; font-size: 8px; line-height: 1.5; }.publication-card button { padding: 9px 12px; border: 1px solid #a8cfb5; border-radius: 5px; background: white; color: #36744d; cursor: pointer; font-size: 8px; font-weight: 800; }
.operator-history { margin-top: 42px; }.operator-history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }.operator-history-heading p { margin: 0 0 5px; color: #87939c; font-size: 7px; font-weight: 800; text-transform: uppercase; }.operator-history-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }.operator-history-heading > span { color: #9aa4ab; font-size: 7px; }
.history-table { margin-top: 15px; overflow: hidden; border: 1px solid #dce4e8; border-radius: 7px; background: white; }.history-row { display: grid; grid-template-columns: 1.4fr 1fr .5fr .45fr; align-items: center; gap: 18px; padding: 14px 17px; color: #667680; font-size: 8px; }.history-row--head { border-bottom: 1px solid #e5eaed; background: #f8fafb; color: #88959e; font-size: 7px; font-weight: 800; text-transform: uppercase; }.history-row strong { color: #344956; font-size: 8px; }.history-status { width: max-content; padding: 5px 7px; border-radius: 99px; background: #e7f5eb; color: #2f7e4b; font-size: 7px; font-weight: 800; text-transform: uppercase; }

@media (max-width: 1180px) {
  .dashboard-view { grid-template-columns: 218px minmax(0, 1fr); }
  .dashboard-sidebar { padding-right: 20px; padding-left: 20px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .result-layout { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .detail-kpis { grid-template-columns: repeat(3, 1fr); }.detail-filter-panel { flex-wrap: wrap; }.detail-clear { margin-left: 0; }
  .expense-visual { grid-template-columns: 200px 1fr; }
  .operator-layout { grid-template-columns: 210px minmax(0, 1fr); }.operator-main { width: min(100% - 42px, 980px); }.validation-metrics { grid-template-columns: repeat(2, 1fr); }.validation-metrics article:nth-child(2) { border-right: 0; }.validation-metrics article:nth-child(-n+2) { border-bottom: 1px solid #e1e7ea; }
}

@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 430px; padding: 35px 32px; }
  .login-brand-copy { padding: 55px 0; }.login-brand-copy h1 { font-size: clamp(50px, 10vw, 72px); }.login-brand-copy > p:last-child { display: none; }
  .login-brand-metrics { display: none; }.login-form-panel { min-height: 650px; padding: 95px 30px 75px; }.back-link { top: 30px; right: 30px; }
  .dashboard-view { display: block; }.dashboard-sidebar { position: relative; z-index: 5; display: grid; width: 100%; height: auto; grid-template-columns: auto 1fr auto; align-items: center; padding: 18px 24px; }
  .dashboard-brand img { width: 130px; }.bus-identity { justify-self: center; margin: 0; padding: 0 24px; border: 0; }.dashboard-nav, .sidebar-help { display: none; }.logout-button { margin: 0; padding: 10px 13px; }
  .dashboard-main { padding: 32px 25px 24px; }
  .comparison-filter-footer { align-items: flex-start; flex-direction: column; }
  .comparison-metrics { grid-template-columns: repeat(3, 1fr); }
  .comparison-metrics article:nth-child(3) { border-right: 0; }
  .comparison-metrics article:nth-child(-n+3) { border-bottom: 1px solid #dce7ec; }
  .count-heading { align-items: flex-start; }.count-kpis { min-width: 330px; }
  .count-data-table { min-width: 600px; }
  .count-data-table th, .count-data-table td { padding: 6px 4px; }
  .count-route, .count-state { padding-right: 5px; padding-left: 5px; }
  .detail-data-table { min-width: 900px; }
  .detail-data-table th, .detail-data-table td { padding: 6px 4px; }
  .detail-route-cell { gap: 3px; }
  .detail-status { padding-right: 4px; padding-left: 4px; }
  .detail-heading { align-items: flex-start; flex-direction: column; }.detail-heading-actions { width: 100%; flex-wrap: wrap; }.detail-route-toggles { order: 5; width: 100%; margin: 4px 0 0; }
  .operator-layout { display: block; }.operator-sidebar { padding: 20px 24px; border-right: 0; border-bottom: 1px solid #dce4e8; }.operator-sidebar > p, .operator-permissions { display: none; }.operator-sidebar ol { display: grid; grid-template-columns: repeat(3, 1fr); }.operator-sidebar ol::before { top: 17px; right: 16%; bottom: auto; left: 16%; width: auto; height: 1px; }.operator-sidebar li { justify-content: center; margin: 0; }.operator-main { width: min(100% - 44px, 820px); padding-top: 40px; }
}

@media (max-width: 650px) {
  .login-brand-panel { min-height: 355px; padding: 28px 22px; }.portal-brand img { width: 155px; }.login-brand-copy { padding: 32px 0 14px; }.login-brand-copy h1 { font-size: 46px; }.login-form-panel { padding-right: 22px; padding-left: 22px; }
  .dashboard-sidebar { grid-template-columns: 1fr auto; }.bus-identity { display: none; }.dashboard-brand img { width: 115px; }
  .dashboard-main { padding: 27px 18px 22px; }.dashboard-main::before { width: 90vw; opacity: .25; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }.dashboard-header h1 { font-size: 52px; }.dashboard-period-line { margin-top: 13px; font-size: 10px; }.header-controls { width: 100%; flex-wrap: wrap; }.header-controls label { width: 100%; }.header-controls select { flex: 1; min-width: 0; }.download-button { flex: 1; justify-content: center; }
  .data-status { align-items: flex-start; flex-direction: column; gap: 6px; }.data-status small { margin-left: 0; }
  .dashboard-section { padding-top: 42px; }.summary-intro { font-size: 10px; line-height: 1.55; }.kpi-grid { grid-template-columns: 1fr; }.kpi-card { min-height: 230px; }.days-strip { grid-template-columns: repeat(16, 1fr); }.operational-result { padding: 17px 14px; }.result-layout { grid-template-columns: 1fr; }.equation-card { grid-template-columns: 1fr; gap: 0; padding: 9px 16px; }.equation-card > b { display: none; }.equation-card div { display: flex; align-items: center; justify-content: space-between; flex-direction: row; padding: 11px 0; border-bottom: 1px solid #e3eaed; text-align: left; }.equation-card div:last-child { border-bottom: 0; }.equation-card strong { order: 2; }.equation-result { grid-column: auto; padding-top: 11px; border-top: 0; }.margin-card { min-height: 86px; }
  .section-heading { align-items: flex-start; flex-direction: column; }.count-kpis { width: 100%; min-width: 0; }.count-kpis article { min-width: 0; padding: 12px; }.count-kpis small { font-size: 6px; }.count-kpis b { font-size: 18px; }
  .expense-visual { grid-template-columns: 1fr; justify-items: center; }.expense-legend { width: 100%; }
  .count-table-panel { margin-right: -18px; margin-left: -18px; border-right: 0; border-left: 0; border-radius: 0; }.count-table-controls { flex-wrap: wrap; padding-right: 18px; padding-left: 18px; }.count-control { flex: 1; }.count-control select, .count-control--route select { width: 100%; min-width: 0; }.count-export { width: 100%; justify-content: center; margin-left: 0; }.count-table-footer { align-items: flex-start; flex-direction: column; padding-right: 18px; padding-left: 18px; }.count-criteria { margin-right: -18px; margin-left: -18px; border-right: 0; border-left: 0; border-radius: 0; }.count-criteria > div { grid-template-columns: 1fr; gap: 13px; }.count-criteria section { padding: 0 0 13px; border-right: 0; border-bottom: 1px solid #dce4e8; }.count-criteria section:last-child { padding-bottom: 0; border-bottom: 0; }
  .count-data-table { min-width: 620px; font-variant-numeric: tabular-nums; }
  .count-data-table th { padding: 8px 3px; font-size: 11px; }
  .count-data-table th small { font-size: 10px; }
  .count-data-table td { padding: 9px 3px; font-size: 12.5px; }
  .count-route { gap: 3px; padding: 5px; font-size: 10.5px; }
  .count-state { gap: 3px; padding: 5px; font-size: 10.5px; }
  .detail-kpis { grid-template-columns: 1fr 1fr; }.detail-heading-actions label { flex: 1; }.detail-heading-actions button { flex: 1; justify-content: center; }.detail-filter-panel { align-items: stretch; margin-right: -18px; margin-left: -18px; padding-right: 18px; padding-left: 18px; border-right: 0; border-left: 0; border-radius: 0; }.detail-filter-panel > label { flex: 1 1 135px; }.detail-filter-panel select, .detail-search span { width: 100%; }.detail-route-toggles { flex-wrap: wrap; }.detail-clear { width: 100%; }.detail-table-panel { margin-right: -18px; margin-left: -18px; border-right: 0; border-left: 0; border-radius: 0; }.detail-table-footer { padding-right: 18px; padding-left: 18px; }.detail-criteria { margin-right: -18px; margin-left: -18px; border-right: 0; border-left: 0; border-radius: 0; }.detail-criteria > div { grid-template-columns: 1fr; gap: 12px; }.detail-criteria section { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid #dce4e8; }.detail-criteria section:last-child { padding-bottom: 0; border-bottom: 0; }
  .detail-data-table { min-width: 900px; font-variant-numeric: tabular-nums; }
  .detail-data-table th, .detail-data-table td { padding: 7px 3px; }
  .detail-data-table thead tr:nth-child(2) th { font-size: 11px; line-height: 1.2; }
  .detail-data-table td { font-size: 12px; }
  .detail-data-table .detail-group-row th { padding: 8px 3px; font-size: 11px; }
  .detail-route-cell { gap: 2px; }
  .detail-route-cell i { width: 5px; height: 5px; }
  .detail-status { gap: 2px; padding: 3px; font-size: 5.2px; }
  .dashboard-footer { flex-direction: column; gap: 8px; }.route-panel, .expense-panel { padding: 22px 18px; }
  .flow-report-panel { margin-right: -18px; margin-left: -18px; border-right: 0; border-left: 0; border-radius: 0; }
  .flow-scroll { padding-bottom: 4px; }
  .resource-flow { min-width: 920px; }
  .flow-footnote { align-items: flex-start; flex-direction: column; }
  .comparison-heading-controls { width: 100%; }.comparison-period-control { flex: 1; }.comparison-period-control select { width: 100%; min-width: 0; }.comparison-filter-panel, .comparison-chart-panel { margin-right: -18px; margin-left: -18px; border-right: 0; border-left: 0; border-radius: 0; }.comparison-filter-panel { padding-right: 18px; padding-left: 18px; }.comparison-filter-heading { align-items: flex-start; }.comparison-filter-heading button { white-space: nowrap; }.comparison-selectors { flex-wrap: nowrap; margin-right: -18px; padding-right: 18px; padding-bottom: 15px; overflow-x: auto; }.comparison-bus-option { flex: 0 0 auto; }.comparison-mode { width: 100%; }.comparison-mode button { flex: 1; }.comparison-chart-panel { padding-right: 0; padding-left: 0; }.comparison-unit { margin-left: 18px; }.comparison-scroll { padding-left: 0; }.comparison-metrics { grid-template-columns: 1fr 1fr; margin-right: 18px; margin-left: 18px; }.comparison-metrics article { border-right: 1px solid #dce7ec; border-bottom: 1px solid #dce7ec; }.comparison-metrics article:nth-child(even) { border-right: 0; }.comparison-metrics article:nth-child(3) { border-right: 1px solid #dce7ec; }.comparison-metrics article:nth-child(-n+3) { border-bottom: 1px solid #dce7ec; }.comparison-metrics article:last-child { grid-column: 1/-1; border-right: 0; border-bottom: 0; }.comparison-footnote { align-items: flex-start; flex-direction: column; gap: 5px; margin-right: 18px; margin-left: 18px; }
  .comparison-chart { min-width: 920px; }
  .operator-topbar { height: 67px; padding: 0 18px; }.operator-topbar > a img { width: 112px; }.operator-avatar, .operator-profile div { display: none; }.operator-profile button { margin: 0; }.operator-sidebar { padding: 17px 13px; }.operator-sidebar li { gap: 7px; }.operator-sidebar li > span { width: 29px; height: 29px; }.operator-sidebar li small { display: none; }.operator-main { width: calc(100% - 30px); padding-top: 30px; }.operator-heading { align-items: flex-start; flex-direction: column; }.operator-current { width: 100%; align-items: flex-start; }.operator-demo-notice { align-items: flex-start; flex-direction: column; }.operator-card { padding: 20px 16px; }.file-drop { min-height: 190px; padding: 23px 15px; }.upload-actions, .publish-summary { align-items: stretch; flex-direction: column; }.operator-primary, .operator-publish { width: 100%; justify-content: space-between; }.validation-metrics { grid-template-columns: 1fr 1fr; }.validation-metrics article { min-height: 105px; padding: 14px; }.publication-card { grid-template-columns: auto 1fr; }.publication-card button { grid-column: 1/-1; }.operator-history-heading { align-items: flex-start; flex-direction: column; }.history-row { grid-template-columns: 1fr auto; }.history-row > span:nth-child(3) { display: none; }.history-row--head span:nth-child(2) { display: none; }.history-row:not(.history-row--head) > span:nth-child(2) { grid-column: 1; }.history-row:not(.history-row--head) > span:last-child { grid-row: 1; grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
