.analysis-app{--an-blue:#315d82;--an-muted:#5a6f80;color:#21384a;min-width:0}.analysis-app p{line-height:1.6}.an-controls{position:sticky;top:0;z-index:12;border:1px solid #dce5ec;border-radius:12px;background:#f9fbfd;box-shadow:0 5px 16px #18374b0a;margin:6px 0 22px}.an-controls form{padding:14px 18px 10px}.an-presets{display:flex;gap:17px;flex-wrap:wrap;margin-bottom:12px}.an-presets button{font-size:12px}.an-filter-line{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.an-filter-line>.field{flex:1;min-width:140px;max-width:205px;margin:0}.an-filter-line>.button{align-self:flex-end;margin-bottom:1px}.an-compare{margin:16px 0 0;align-items:center;flex:1;min-width:155px;font-size:12px}.an-filter-line input[type=checkbox]{width:16px;height:16px;flex:none;accent-color:#315d82}.an-loco-picker{position:relative;align-self:flex-end;min-width:150px;font-size:12px;margin-bottom:2px}.an-loco-picker>summary{padding:10px;border:1px solid #d4dee7;border-radius:6px;background:white}.an-loco-picker>div{position:absolute;z-index:15;top:100%;left:0;width:270px;max-height:350px;overflow:auto;background:#fff;border:1px solid #cedbe5;border-radius:8px;box-shadow:0 8px 24px #19374b26;padding:15px}.an-loco-picker small{display:block;color:#627488;font-size:10px;margin-top:3px}.an-tabs{display:flex;gap:3px;padding:0 12px;overflow-x:auto;border-top:1px solid #e1e8ee;margin-top:12px}.an-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:#536a7d;padding:14px 13px;font:inherit;font-size:13px;white-space:nowrap}.an-tabs button[aria-pressed=true]{color:#1f4c71;border-bottom-color:#315d82;font-weight:650;background:#edf3f8}.an-filter-hint{font-size:12px;color:#795922;margin:12px 0 0}.an-result-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.an-result-heading>p{font-size:11px;color:#526d81;margin:0}.an-result-heading>div{display:flex;gap:8px;flex:none}.an-result-heading .button{font-size:11px}.an-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:20px 0}.an-kpis.three{grid-template-columns:repeat(3,minmax(0,1fr))}.an-kpi{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid #dce5ec;background:#fff;border-radius:10px;padding:20px;color:#21384a;font:inherit;min-width:0}.an-kpi>span:first-child{font-size:12px;color:#526b7f;font-weight:550}.an-kpi strong{font-size:29px;line-height:1.3;letter-spacing:-.7px;margin:10px 0 6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.an-kpi small{font-size:11px;line-height:1.6;color:#627385}.an-kpi .an-kpi-action{font-size:10px;color:#315d82;margin-top:auto;padding-top:15px}.an-kpi:hover{border-color:#8cabc2;box-shadow:0 4px 12px #143a5310}.an-quality{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff9ec;border:1px solid #e8d7b2;border-left:4px solid #b58a3b;padding:17px 20px;border-radius:9px;margin:22px 0}.an-quality strong{font-size:14px;color:#74551f}.an-quality p{font-size:12px;color:#715e3c;margin:5px 0 0}.an-quality.is-good{background:#eff8f4;border-color:#bcdccc;border-left-color:#518a72}.an-quality.is-good strong,.an-quality.is-good p{color:#326750}.an-quality .button{flex:none}.an-overview-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:18px}.an-card{padding:22px;border:1px solid #dce5ec;border-radius:10px;background:#fff;min-width:0;margin-bottom:20px}.an-card h2,.an-section-title h2{font-size:17px;font-weight:650;margin:0 0 7px}.an-card h3{font-size:14px;margin:14px 0 8px}.an-card>p,.an-card details{font-size:12px;color:#52677a;line-height:1.65}.an-section-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0 15px}.an-card>.an-section-title{margin-top:0}.an-section-title p{font-size:12px;color:#627588;margin:4px 0}.an-section-title>.field{min-width:145px;margin-bottom:0}.an-note{font-size:12px;color:#5a7084;line-height:1.65;margin:14px 0 22px}.an-bar{height:22px;display:flex;overflow:hidden;border-radius:5px;background:#edf0f4;min-width:0}.an-segment{display:block;min-width:0;height:100%}.an-segment.train{background:#427ba6}.an-segment.light_engine{background:#ba638b}.an-segment.shunting{background:#7c72b1}.an-segment.service{background:#5e9292}.an-segment.unknown{background:#d7b76e}.an-segment.idle{background:#8fa2b4}.an-segment.conflict{background:repeating-linear-gradient(45deg,#b85860,#b85860 4px,#d9969c 4px,#d9969c 7px)}.an-segment.gap{background:repeating-linear-gradient(135deg,#eef1f5,#eef1f5 5px,#dce3e9 5px,#dce3e9 6px)}.an-segment.available{background:#609780}.an-segment.workshop{background:#c58e54}.an-segment.external{background:#6686b2}.an-segment.unavailable{background:#9b8796}.an-legend{display:flex;flex-wrap:wrap;gap:9px 17px;margin:14px 0;color:#587083;font-size:10px}.an-legend>span{display:flex;align-items:center;gap:6px}.an-legend i{width:10px;height:10px;border-radius:2px;flex:none}.an-action-list button{display:flex;width:100%;align-items:center;gap:15px;padding:15px 0;background:transparent;border:0;border-bottom:1px solid #e4ebf1;color:#29485e;text-align:left;font:inherit}.an-action-list button:last-child{border:0}.an-action-list strong{font-size:22px;min-width:83px;font-variant-numeric:tabular-nums}.an-action-list span{font-size:12px}.an-action-list span:nth-child(2){flex:1}.an-action-list small{display:block;font-size:10px;color:#677c8d;line-height:1.5;margin-top:5px}.an-action-list button:hover{background:#f5f8fb}.an-comparison{display:flex;gap:25px;flex-wrap:wrap;margin:15px 0}.an-comparison>div{flex:1;min-width:160px}.an-comparison span{display:block;font-size:11px;color:#61778a;margin-bottom:6px}.an-comparison strong{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}.an-chip{display:inline-block;background:#f9f1df;color:#80612c;border:1px solid #eadab7;border-radius:5px;padding:4px 7px;font-size:10px;white-space:normal}.an-chip.is-good{background:#eaf5ef;border-color:#c4decf;color:#396e54}.an-toggle{display:flex;padding:3px;background:#eaf0f5;border-radius:6px;gap:3px}.an-toggle button{font:inherit;font-size:12px;border:0;background:transparent;padding:7px 10px;border-radius:4px;color:#4d677d}.an-toggle button[aria-pressed=true]{background:#fff;color:#254e70;box-shadow:0 1px 4px #24466020}.an-table-wrap{width:100%;max-height:65vh;overflow:auto;border:1px solid #dce5ec;border-radius:9px;background:#fff;margin:14px 0}.an-table-wrap table{width:100%;font-size:12px}.an-table-wrap th{position:sticky;top:0;z-index:2;background:#f1f5f8;font-size:11px}.an-table-wrap th button{border:0;padding:0;font:inherit;background:transparent;color:inherit;text-align:left}.an-table-wrap td,.an-table-wrap th{padding:13px 14px;vertical-align:top}.an-table-wrap tbody tr:hover{background:#f8fbfd}.an-table-wrap td small{display:block;font-size:10px;line-height:1.5;color:#61768a;margin-top:5px;max-width:200px}.an-table-wrap td:not(:first-child){font-variant-numeric:tabular-nums}.an-profile{min-width:200px;width:28%}.an-profile-button{display:block;width:100%;padding:0;border:0;background:transparent}.an-profile-button .an-bar{height:18px}.an-method{margin:25px 0 0;padding:18px;border-top:1px solid #d9e3eb;color:#536c80;font-size:12px;line-height:1.7}.an-method>summary{font-size:12px}.an-method p{margin:12px 0}.an-archive{display:flex;gap:8px;flex-wrap:wrap}.an-loading{padding:55px;text-align:center;color:#597488}.an-trend>button{display:grid;grid-template-columns:130px minmax(140px,1fr) 180px;gap:20px;width:100%;align-items:center;text-align:left;border:0;border-bottom:1px solid #e5ebf0;background:transparent;padding:15px 0;font:inherit;color:#34566f}.an-trend>button:hover{background:#f6f9fb}.an-trend>button>span{font-size:11px;line-height:1.5}.an-trend small{display:block;font-size:10px;color:#667f92}.an-finding{border-left:3px solid #8faabb;padding:3px 0 15px 15px;margin-top:16px}.an-finding p{font-size:12px;color:#5b7185}.an-empty{text-align:center;padding:32px}.an-dialog{width:min(1000px,calc(100vw - 35px));max-height:90vh;padding:25px}.an-dialog>header{position:sticky;top:-25px;background:white;z-index:3;padding:10px 0;border-bottom:1px solid #dce5ec}.an-dialog h2{font-size:20px}.an-dialog h3{font-size:14px;margin:25px 0 12px}.an-dialog p,.an-dialog li,.an-dialog summary{font-size:12px;line-height:1.6}.an-dialog .an-table-wrap{max-height:50vh}.an-dialog .an-issue{border-left:3px solid #d9b47c;background:#fcf8ef;padding:10px}.an-dialog .an-issue strong{display:block;font-weight:500}.an-dialog .an-issue button{margin:6px 15px 0 0}.an-week-links{display:flex;gap:8px;flex-wrap:wrap}.an-dialog .an-note{margin-bottom:10px}.analysis-app button:focus-visible,.an-dialog button:focus-visible,.analysis-app summary:focus-visible{outline:3px solid #5c93bc;outline-offset:3px}
@media(max-width:1100px){.an-kpis{gap:10px}.an-kpi{padding:15px}.an-kpi strong{font-size:24px}.an-overview-grid{grid-template-columns:1fr}.an-result-heading{flex-wrap:wrap}.an-filter-line{gap:10px}.an-controls form{padding:12px}.an-tabs button{font-size:12px;padding:13px 10px}.an-trend>button{grid-template-columns:110px minmax(100px,1fr) 150px;gap:12px}}
@media(max-width:700px){.an-controls{position:static}.an-filter-line>.field{max-width:none;min-width:120px}.an-kpis,.an-kpis.three{grid-template-columns:repeat(2,minmax(0,1fr))}.an-kpis.three .an-kpi:last-child{grid-column:1/-1}.an-quality{align-items:flex-start;flex-direction:column;gap:10px}.an-section-title{flex-wrap:wrap;gap:10px}.an-card{padding:16px}.an-kpi strong{font-size:22px}.an-trend>button{grid-template-columns:100px minmax(0,1fr)}.an-trend>button>span:last-child{grid-column:2}.an-presets{gap:10px 15px}.an-dialog{padding:18px}.an-dialog>header{top:-18px}.an-table-wrap td,.an-table-wrap th{padding:10px}.an-loco-picker>div{width:240px}.an-result-heading>div{flex-wrap:wrap}.an-tabs{padding:0 5px}.an-tabs button{font-size:11px}.an-compare{min-width:130px}}
@media print{body:has(.analysis-app) main>section:not(#reportPage){display:none!important}.analysis-app .an-controls{position:static;box-shadow:none}.analysis-app .an-presets,.analysis-app form,.analysis-app .an-result-heading>div,.analysis-app .an-kpi-action,.analysis-app .an-action-list,.analysis-app .an-method,.analysis-app .an-quality button,.analysis-app .an-section-title>button{display:none!important}.analysis-app .an-tabs button:not([aria-pressed=true]){display:none}.analysis-app .an-tabs button{border:0}.analysis-app .an-table-wrap{max-height:none;overflow:visible;border-radius:0}.analysis-app table{font-size:9px}.analysis-app td,.analysis-app th{padding:5px!important}.analysis-app th{position:static}.analysis-app .an-kpis{grid-template-columns:repeat(4,1fr)}.analysis-app .an-kpi{break-inside:avoid;padding:10px}.analysis-app .an-kpi strong{font-size:19px}.analysis-app .an-card{break-inside:avoid}.analysis-app .an-segment{print-color-adjust:exact;-webkit-print-color-adjust:exact}.analysis-app .an-table-wrap button{font:inherit;text-align:left}.analysis-app .an-overview-grid{grid-template-columns:1fr}}

.an-print-note{display:none}@media print{.analysis-app .an-print-note{display:block;font-size:9px;line-height:1.5}}

.an-bar [data-kind="passive"],.an-legend [data-kind="passive"]{--segment-color:#8995a5;background:#8995a5}

.an-segment.passive{background:#8995a5}
