/* MatchDayPro V1F.2CE | cadencia + comparacao + rota.
   Restrito a #desgaste; mantem os triggers legados para os drawers ja existentes. */
#desgaste{--mdp-ce-amber:#efb52d;--mdp-ce-amber-dark:#af7d08;--mdp-ce-ink:#15201c;--mdp-ce-sage:#597a68;--mdp-ce-line:var(--mdp-border,rgba(106,121,114,.20));--mdp-ce-muted:var(--mdp-text-muted,#6b7872)}
#desgaste .mdp-ce-basis{display:flex;align-items:center;gap:7px;margin:14px 0 7px;color:var(--mdp-ce-muted);font-size:12px;font-weight:650;min-height:20px}
#desgaste .mdp-ce-basis i{color:var(--mdp-ce-amber-dark)}
#desgaste .mdp-ce-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:10px 0 15px}
#desgaste .mdp-ce-kpis .mdp-ce-legacy-hidden{display:none!important}
#desgaste .mdp-ce-kpis .mdp-cl-dg-kpi{padding:17px 17px 15px;min-height:146px}
#desgaste .mdp-ce-kpis .mdp-cl-dg-kpi small{min-height:0;line-height:1.4}
#desgaste .mdp-ce-kpis .mdp-cl-dg-kpi-number{font-size:clamp(24px,2vw,33px)}
#desgaste .mdp-ce-panels{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:13px;margin:12px 0 18px}
#desgaste .mdp-ce-panels>.mdp-cl-dg-panel{padding:21px;border-radius:18px;box-shadow:0 4px 16px rgba(11,34,24,.025)}
#desgaste .mdp-ce-panels .mdp-cl-dg-panel-head{margin-bottom:18px}
#desgaste .mdp-ce-panels .mdp-cl-dg-panel-head h3{font-size:20px}
#desgaste .mdp-ce-panels .mdp-cl-dg-panel-head p{max-width:600px}
#desgaste .mdp-ce-route-panel{grid-column:1/-1}
#desgaste .mdp-ce-strip-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
#desgaste .mdp-ce-strip-head strong{font-size:12px;font-weight:800}
#desgaste .mdp-ce-strip-head span{font-size:11px;color:var(--mdp-ce-muted)}
#desgaste .mdp-ce-rest-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(24px,1fr);gap:6px;align-items:stretch;min-height:124px;overflow-x:auto;padding:4px 1px 10px;scrollbar-width:thin;scrollbar-color:rgba(180,152,70,.45) transparent}
#desgaste .mdp-ce-rest-step{display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:center;color:inherit!important;text-decoration:none!important;min-width:24px}
#desgaste .mdp-ce-rest-step:focus-visible{outline:2px solid var(--mdp-ce-amber-dark);outline-offset:2px;border-radius:7px}
#desgaste .mdp-ce-rest-column{height:93px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;border-radius:8px;background:rgba(124,147,129,.065);border:1px solid rgba(133,151,136,.13);padding:3px}
#desgaste .mdp-ce-rest-bar{display:block;width:100%;border-radius:5px 5px 3px 3px;background:#7d9988;min-height:5px;transition:filter .18s}
#desgaste .mdp-ce-rest-step.is-short .mdp-ce-rest-bar{background:#d8990c}
#desgaste .mdp-ce-rest-step.is-medium .mdp-ce-rest-bar{background:#eabe49}
#desgaste .mdp-ce-rest-step.is-long .mdp-ce-rest-bar{background:#628f75}
#desgaste .mdp-ce-rest-step:hover .mdp-ce-rest-bar{filter:brightness(.87)}
#desgaste .mdp-ce-rest-step>small{font-size:10px;font-weight:700;color:var(--mdp-ce-muted)}
#desgaste .mdp-ce-rest-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:9px;padding-top:13px;border-top:1px solid var(--mdp-ce-line)}
#desgaste .mdp-ce-band-item,#desgaste .mdp-ce-duel-item{min-width:0}
#desgaste .mdp-ce-band-label,#desgaste .mdp-ce-duel-label{display:flex;justify-content:space-between;align-items:baseline;gap:7px;font-size:11px;color:var(--mdp-ce-muted);margin-bottom:7px}
#desgaste .mdp-ce-band-label strong,#desgaste .mdp-ce-duel-label strong{font-size:13px;color:inherit;white-space:nowrap;font-weight:850}
#desgaste .mdp-ce-band-track,#desgaste .mdp-ce-duel-track{height:8px;background:rgba(135,155,142,.18);overflow:hidden;border-radius:20px}
#desgaste .mdp-ce-band-track>span,#desgaste .mdp-ce-duel-track>span{display:block;height:100%;border-radius:20px;min-width:0;max-width:100%}
#desgaste .mdp-ce-band-track .is-short,#desgaste .mdp-ce-duel-track .is-less{background:#d79b19}
#desgaste .mdp-ce-band-track .is-medium{background:#edc552}
#desgaste .mdp-ce-band-track .is-long,#desgaste .mdp-ce-duel-track .is-more{background:#638e72}
#desgaste .mdp-ce-duel-track .is-equal{background:#96a3a0}
#desgaste .mdp-ce-duel-bars{display:block;min-height:0}
#desgaste .mdp-ce-duel-items{display:grid;gap:19px;padding:5px 0 10px}
#desgaste .mdp-ce-duel-label{font-size:13px;margin-bottom:9px;font-weight:720}
#desgaste .mdp-ce-duel-label strong{font-size:13px;color:inherit}
#desgaste .mdp-ce-duel-track{height:11px}
#desgaste .mdp-ce-interpretation{font-size:11px;line-height:1.55;color:var(--mdp-ce-muted);padding:12px 0 0;margin:5px 0 0;border-top:1px solid var(--mdp-ce-line)}
#desgaste .mdp-ce-route-subhead{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
#desgaste .mdp-ce-route-subhead strong{font-size:13px}
#desgaste .mdp-ce-route-subhead small{font-size:11px;color:var(--mdp-ce-muted)}
#desgaste .mdp-ce-route-track{display:flex;align-items:stretch;gap:0;overflow-x:auto;padding:3px 0 12px;scrollbar-width:thin}
#desgaste .mdp-ce-route-stop{position:relative;display:flex;flex-direction:column;gap:5px;min-width:128px;max-width:210px;flex:1;padding:14px 12px 13px 17px;background:rgba(128,150,134,.08);border:1px solid var(--mdp-ce-line);border-radius:11px;color:inherit!important;text-decoration:none!important}
#desgaste .mdp-ce-route-stop:not(:first-child){margin-left:22px}
#desgaste .mdp-ce-route-stop:not(:first-child):before{content:"";position:absolute;right:100%;width:22px;height:2px;top:24px;background:var(--mdp-ce-amber)}
#desgaste .mdp-ce-route-stop i{font-size:15px;color:var(--mdp-ce-amber-dark)}
#desgaste .mdp-ce-route-stop strong{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
#desgaste .mdp-ce-route-stop small{font-size:10px;color:var(--mdp-ce-muted)}
#desgaste a.mdp-ce-route-stop:hover{background:rgba(237,185,54,.13);border-color:rgba(208,156,31,.48)}
#desgaste a.mdp-ce-route-stop:focus-visible{outline:2px solid var(--mdp-ce-amber-dark);outline-offset:2px}
#desgaste .mdp-ce-route-coverage{font-size:11px;color:var(--mdp-ce-muted);margin:7px 0 0;line-height:1.5}
#desgaste .mdp-ce-route-legs{margin-top:16px;padding-top:14px;border-top:1px solid var(--mdp-ce-line);display:grid;gap:0}
#desgaste .mdp-ce-route-legs-title{font-size:12px;margin-bottom:6px}
#desgaste .mdp-ce-route-leg{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--mdp-ce-line)}
#desgaste .mdp-ce-route-leg:last-child{border-bottom:0}
#desgaste .mdp-ce-route-leg-place{min-width:0;display:flex;flex-direction:column;gap:3px}
#desgaste .mdp-ce-route-leg-place strong{font-size:12px;overflow-wrap:anywhere}
#desgaste .mdp-ce-route-leg-place small{font-size:10px;color:var(--mdp-ce-muted)}
#desgaste .mdp-ce-route-leg b{font-size:14px;white-space:nowrap}
#desgaste .mdp-cl-dg-highlight-wrap{margin-top:13px}
@media(max-width:1020px){#desgaste .mdp-ce-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#desgaste .mdp-ce-panels{grid-template-columns:1fr}#desgaste .mdp-ce-route-panel{grid-column:auto}}
@media(max-width:600px){#desgaste .mdp-ce-basis{font-size:11px;line-height:1.45}#desgaste .mdp-ce-kpis{gap:8px}#desgaste .mdp-ce-kpis .mdp-cl-dg-kpi{padding:13px;min-height:132px}#desgaste .mdp-ce-kpis .mdp-cl-dg-kpi-number{font-size:23px}#desgaste .mdp-ce-kpis .mdp-cl-dg-kpi small{font-size:10px}#desgaste .mdp-ce-panels>.mdp-cl-dg-panel{padding:15px}#desgaste .mdp-ce-panels .mdp-cl-dg-panel-head h3{font-size:18px}#desgaste .mdp-ce-rest-strip{grid-auto-columns:26px}#desgaste .mdp-ce-rest-bands{grid-template-columns:1fr;gap:9px}#desgaste .mdp-ce-band-item{display:grid;grid-template-columns:minmax(0,126px) minmax(0,1fr);align-items:center;gap:10px}#desgaste .mdp-ce-band-label{margin:0}#desgaste .mdp-ce-band-track{height:9px}#desgaste .mdp-ce-route-stop{flex:none;width:135px}#desgaste .mdp-ce-route-track{padding-bottom:14px}}
@media(max-width:350px){#desgaste .mdp-ce-kpis .mdp-cl-dg-kpi-number{font-size:21px}#desgaste .mdp-ce-band-item{grid-template-columns:minmax(0,115px) minmax(0,1fr)}}
[data-theme="dark"] #desgaste,[data-bs-theme="dark"] #desgaste,.mdp-theme-dark #desgaste{--mdp-ce-ink:#f1f3ef;--mdp-ce-line:rgba(210,221,212,.17);--mdp-ce-muted:#adbbb4}
[data-theme="dark"] #desgaste .mdp-ce-route-stop,.mdp-theme-dark #desgaste .mdp-ce-route-stop{background:rgba(210,231,213,.045)}
@media(prefers-reduced-motion:reduce){#desgaste .mdp-ce-rest-bar{transition:none}}
#desgaste .mdp-ce-rest-step.is-unknown .mdp-ce-rest-bar{background:#96a3a0}

/* V1F.2CE-R2: editorial de trajetos, faixas fixas e escudos */
#desgaste .mdp-ce-rest-crest{display:flex;align-items:center;justify-content:center;height:24px;min-height:24px;margin-top:1px}
#desgaste .mdp-ce-rest-crest img{display:block;width:22px;height:22px;object-fit:contain}
#desgaste .mdp-ce-crest-fallback{color:var(--mdp-ce-muted);font-size:15px!important}
#desgaste .mdp-ce-route-slider{min-width:0;position:relative}
#desgaste .mdp-ce-route-track{gap:11px;padding:3px 2px 12px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-color:rgba(172,143,69,.5) transparent;scrollbar-width:thin}
#desgaste .mdp-ce-route-stop{flex:0 0 clamp(175px,21%,238px);min-width:175px;max-width:238px;min-height:158px;padding:12px 14px;scroll-snap-align:start;gap:7px;justify-content:flex-start}
#desgaste .mdp-ce-route-stop:not(:first-child){margin-left:0}
#desgaste .mdp-ce-route-stop:not(:first-child):before{display:none}
#desgaste .mdp-ce-route-category{align-self:flex-start;font-size:9px;font-weight:850;letter-spacing:.06em;color:var(--mdp-ce-muted)}
#desgaste .mdp-ce-route-stop.is-upcoming{border-color:rgba(183,124,16,.66);background:rgba(233,180,56,.08)}
#desgaste .mdp-ce-route-stop.is-upcoming .mdp-ce-route-category{color:var(--mdp-ce-amber-dark)}
#desgaste .mdp-ce-route-place{display:flex;align-items:flex-start;gap:8px;min-height:31px}
#desgaste .mdp-ce-route-place>i{flex:0 0 auto;margin-top:2px;font-size:15px}
#desgaste .mdp-ce-route-place strong{font-size:12px;line-height:1.3;overflow-wrap:anywhere}
#desgaste .mdp-ce-route-date{font-size:10px;color:var(--mdp-ce-muted)}
#desgaste .mdp-ce-route-info{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-top:auto;padding-top:8px;border-top:1px solid var(--mdp-ce-line)}
#desgaste .mdp-ce-route-chip{font-size:10px;line-height:1.3;font-weight:650;color:var(--mdp-ce-muted);padding:3px 5px;border-radius:5px;background:rgba(111,133,122,.07)}
#desgaste .mdp-ce-route-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;padding-top:1px}
#desgaste .mdp-ce-route-hint{margin-right:auto;font-size:10px;color:var(--mdp-ce-muted)}
#desgaste .mdp-ce-route-arrow{display:grid;place-items:center;width:30px;height:28px;border:1px solid var(--mdp-ce-line);border-radius:8px;background:transparent;color:inherit;cursor:pointer}
#desgaste .mdp-ce-route-arrow:hover:not(:disabled){background:rgba(222,173,50,.11);border-color:var(--mdp-ce-amber)}
#desgaste .mdp-ce-route-arrow:disabled{opacity:.34;cursor:default}
#desgaste .mdp-ce-route-track:focus-visible,#desgaste .mdp-ce-route-arrow:focus-visible{outline:2px solid var(--mdp-ce-amber-dark);outline-offset:3px}
#desgaste .mdp-ce-route-legs{display:none}
#desgaste .mdp-cl-dg-highlights{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:680px){#desgaste .mdp-cl-dg-highlights{grid-template-columns:1fr}#desgaste .mdp-ce-route-stop{flex:0 0 185px;width:185px;min-width:185px;max-width:185px}#desgaste .mdp-ce-route-hint{font-size:9px}}
/* Tema oficial da pagina usa body[data-theme=dark] e body.mdp-dark.
   A regra antiga sem prefixo 'body' nao substituia o fundo claro dos paineis. */
body[data-theme="dark"].mdp-clube-analysis #desgaste,body.mdp-dark.mdp-clube-analysis #desgaste{
 --mdp-ce-ink:#eff5ee;--mdp-ce-muted:#b6c5b9;--mdp-ce-line:#394b3f;--mdp-ce-amber-dark:#f2c75b;color:#ecf3ed;
}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-panel,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-panel,
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-highlight-wrap,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-highlight-wrap{
 background:#1b231f!important;border-color:#39473e!important;color:#eef3ed!important;
}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-panel-head h3,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-panel-head h3,
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-highlight-heading h3,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-highlight-heading h3,
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-fact>strong,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-fact>strong{
 color:#f0f5ef!important;
}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-panel-head p,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-panel-head p,
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-ce-route-coverage,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-ce-route-coverage{color:#bac6bc!important}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-ce-route-stop,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-ce-route-stop,
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-fact,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-fact{
 background:#242e27!important;border-color:#435349!important;color:#eff5ef!important;
}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-ce-route-stop.is-upcoming,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-ce-route-stop.is-upcoming{background:#342d1c!important;border-color:#ad8b31!important}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-ce-route-chip,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-ce-route-chip{background:#303e33;color:#cad6cc}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-ce-rest-column,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-ce-rest-column{background:#273229;border-color:#435247}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-ce-route-stop:hover,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-ce-route-stop:hover{border-color:#c69b3f!important;background:#334035!important}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-ce-route-stop.is-upcoming:hover,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-ce-route-stop.is-upcoming:hover{background:#40361d!important}

body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-kpi,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-kpi{background:#232a26!important;border-color:#3a483e!important;color:#edf4ed!important}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-kpi-number,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-kpi-number{color:#f4f7f2!important}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-kpi-top,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-kpi-top,
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-kpi>small,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-kpi>small{color:#bac9be!important}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-switch,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-switch{background:#202922;border-color:#415145;color:#c4cfc6}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-switch button:not(.is-active),
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-switch button:not(.is-active){color:#c4cfc6}
body[data-theme="dark"].mdp-clube-analysis #desgaste .mdp-cl-dg-switch button.is-active,
body.mdp-dark.mdp-clube-analysis #desgaste .mdp-cl-dg-switch button.is-active{background:#f1b72f;color:#1f251f}

#desgaste .mdp-cl-dg-highlights{grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr))}
