.daily-route-sheet {
  display: block;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .06);
}

.route-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 28px;
  padding: 0 0 26px;
  border-bottom: 1px solid #eaecf0;
}
.route-header-main { min-width: 0; flex: 1; }
.route-header-main .sheet-list-back,
.route-detail-navigation .sheet-list-back { margin: 0 0 20px; }
.route-heading h2,
.route-detail-head h2 { margin: 6px 0 8px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.16; }
.route-heading p,
.route-detail-head p { max-width: 680px; margin: 0; color: #667085; line-height: 1.55; }
.route-header-actions { display: flex; align-items: flex-end; gap: 12px; flex: none; }
.route-header-actions .ghost-button { min-height: 44px; margin: 0; padding: 0 16px; }

.route-date { display: grid; gap: 7px; }
.route-date span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #667085; }
.route-date input { min-height: 44px; border: 1px solid #d0d5dd; border-radius: 11px; padding: 9px 12px; background: #fff; color: #101828; }
.route-date input:focus { outline: none; border-color: var(--role, #1570ef); box-shadow: 0 0 0 3px var(--role-soft, #eff8ff); }

.route-overview { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 14px; margin-bottom: 34px; }
.route-overview article { min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px; border: 1px solid #eaecf0; border-radius: 15px; background: #f9fafb; }
.route-overview small { display: block; color: #667085; font-size: 12px; font-weight: 700; }
.route-overview strong { font: 800 26px Manrope, sans-serif; line-height: 1.15; }
.route-overview .is-economic { border-color: color-mix(in srgb, var(--role, #b54708) 18%, white); background: var(--role-soft, #fff7e8); color: var(--role, #b54708); }

.route-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 17px; }
.route-section-heading h3,
.route-stops-heading h3 { margin: 5px 0 0; font: 750 19px Manrope, sans-serif; }
.route-section-heading > small { color: #667085; font-size: 12px; }
.route-technicians { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.route-tech-card { display: grid; min-height: 250px; text-align: left; gap: 10px; padding: 22px; border: 1px solid #e4e7ec; border-radius: 17px; background: #fff; color: #101828; box-shadow: 0 7px 20px rgba(16, 24, 40, .055); transition: border-color .18s, box-shadow .18s, transform .18s; }
.route-tech-card:hover { border-color: var(--role, #f79009); box-shadow: 0 12px 26px rgba(16, 24, 40, .09); transform: translateY(-2px); }
.route-tech-title { display: flex; justify-content: space-between; gap: 14px; font: 700 17px Manrope, sans-serif; }
.route-tech-title i { color: #98a2b3; }
.route-tech-value { margin-top: 3px; font: 800 25px Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.route-tech-value small,
.route-hourly small { font-size: 12px; color: #667085; }
.route-hourly { font-weight: 700; color: #475467; }
.route-progress-label { margin-top: 4px; font-size: 12px; color: #667085; }
.route-progress { height: 7px; border-radius: 7px; background: #e4e7ec; overflow: hidden; }
.route-progress i { display: block; height: 100%; border-radius: inherit; }
.p-red { background: #f04438; }
.p-orange { background: #f79009; }
.p-yellow { background: #fdb022; }
.p-green { background: #12b76a; }
.route-breakdown,
.route-counts { font-size: 13px; line-height: 1.45; color: #667085; }
.route-warning { display: inline-flex; align-items: center; gap: 6px; color: #b42318; font-size: 12px; font-weight: 700; }

.route-loading,
.route-empty { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #667085; }
.route-loading > span { width: 28px; height: 28px; border: 3px solid #e4e7ec; border-top-color: var(--role, #f79009); border-radius: 50%; animation: spin .8s linear infinite; }

.route-detail-navigation { padding-bottom: 18px; border-bottom: 1px solid #eaecf0; }
.route-detail-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin: 25px 0 20px; }
.route-detail-summary { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; padding: 21px 24px; border: 1px solid #e4e7ec; border-radius: 15px; background: #f8fafc; margin-bottom: 24px; }
.route-detail-summary > strong { font: 800 27px Manrope, sans-serif; }
.route-detail-summary small { font-size: 13px; color: #667085; }
.route-detail-summary > span { color: #667085; font-weight: 600; }
.route-detail-grid { display: grid; grid-template-columns: minmax(360px, 42%) minmax(0, 1fr); gap: 26px; align-items: start; }
.route-map { height: 560px; position: sticky; top: 92px; border: 1px solid #d0d5dd; border-radius: 17px; overflow: hidden; background: #e4e7ec; box-shadow: 0 7px 20px rgba(16, 24, 40, .07); }
.route-map > [data-route-map] { height: 100%; }
.route-map > [data-route-distance] { position: absolute; z-index: 500; top: 14px; right: 14px; padding: 9px 13px; background: rgba(255, 255, 255, .94); border-radius: 10px; font-weight: 800; box-shadow: 0 3px 10px #0002; }
.route-map > [data-map-expand] { position: absolute; z-index: 500; bottom: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px #0002; cursor: pointer; }
.route-map.is-expanded { position: fixed; inset: 18px; z-index: 1500; height: auto; }
.route-stops { --route-stop-gap: 17px; min-width: 0; }
.route-stops-heading { margin-bottom: 17px; }
.route-stop { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; margin-bottom: var(--route-stop-gap); cursor: pointer; }
.route-stop > div { padding: 20px; border: 1px solid #eaecf0; border-radius: 15px; background: #fff; box-shadow: 0 5px 16px #1018280a; }
.route-stop.is-selected > div { border-color: #1570ef; box-shadow: 0 0 0 3px #1570ef20; }
.route-stop.needs-check > div { border-left: 4px solid #f79009; }
.route-timeline { position: relative; display: flex; flex-direction: column; align-items: center; }
.route-timeline b { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: #1570ef; color: #fff; font-size: 12px; }
.route-timeline i { position: absolute; top: 30px; bottom: calc(-1 * var(--route-stop-gap)); left: 50%; width: 4px; transform: translateX(-50%); background: #1570ef44; pointer-events: none; }
.route-stop:last-child .route-timeline i { display: none; }
.route-stop header { display: flex; justify-content: space-between; gap: 14px; }
.route-stop header strong { font-size: 17px; }
.route-stop header small { display: block; color: #667085; margin-top: 4px; line-height: 1.45; }
.route-stop header button { flex: none; border: 0; background: none; font-size: 18px; color: #667085; cursor: pointer; }
.route-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 17px 0; }
.route-times span { min-width: 0; padding: 11px; background: #f8fafc; border-radius: 9px; }
.route-times small { display: block; color: #667085; font-size: 10px; line-height: 1.25; }
.route-times b { font-variant-numeric: tabular-nums; }
.route-stop p { color: #667085; margin: 9px 0; }
.route-stop-value { display: block; font-size: 18px; margin: 10px 0; }

.route-info-body { display: grid; gap: 12px; }
.route-info-body section { padding: 13px; background: #f2f4f7; border-radius: 12px; }
.route-info-body p { line-height: 1.5; margin: 5px 0 0; color: #475467; }
.route-intervention-list { display: grid; gap: 8px; padding: 18px; }
.route-intervention-list button { display: flex; justify-content: space-between; padding: 14px; border: 1px solid #eaecf0; border-radius: 11px; background: #fff; font-weight: 700; }
.route-pin span { display: grid; place-items: center; width: 30px; height: 30px; border: 3px solid #fff; border-radius: 50%; background: #1570ef; color: #fff; font-weight: 800; box-shadow: 0 2px 8px #0005; }

@media (max-width: 1100px) {
  .route-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-overview .is-economic { grid-column: span 2; }
}
@media (max-width: 900px) {
  .daily-route-sheet { padding: 22px; }
  .route-header { align-items: stretch; flex-direction: column; }
  .route-header-actions { justify-content: flex-end; }
  .route-overview { grid-template-columns: repeat(2, 1fr); }
  .route-overview .is-economic { grid-column: auto; }
  .route-detail-grid { grid-template-columns: 1fr; }
  .route-map { position: relative; top: auto; height: 380px; }
  .route-times { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .daily-route-sheet { padding: 18px; border-radius: 15px; }
  .route-header-actions { align-items: stretch; flex-direction: column; }
  .route-header-actions .ghost-button { justify-content: center; }
  .route-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .route-technicians { grid-template-columns: 1fr; }
  .route-overview { grid-template-columns: 1fr 1fr; gap: 10px; }
  .route-overview article { min-height: 90px; padding: 15px; }
  .route-overview .is-economic { grid-column: 1 / -1; }
  .route-detail-head { align-items: stretch; flex-direction: column; }
  .route-detail-summary { align-items: flex-start; flex-direction: column; gap: 9px; }
  .route-map { height: 320px; }
  .route-stop { grid-template-columns: 31px minmax(0, 1fr); gap: 8px; }
  .route-stop > div { padding: 16px; }
}

.route-times em{font-style:normal;font-size:11px;color:#946200;overflow-wrap:anywhere}.route-stop-badges{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.route-stop-badges .route-warning{border-radius:8px;background:#fff3db;padding:5px 8px}.route-stop-value small{font-weight:500;font-size:12px}.route-intervention-ids{font-weight:650;overflow-wrap:anywhere}.route-detail-extra{flex-basis:100%;display:grid;gap:8px;min-width:0}.route-detail-extra progress{width:100%;height:8px;accent-color:#34a853}.route-info .offer-modal{max-height:90vh;overflow:auto}.route-times>span{min-width:0}.route-stop>div{min-width:0}@media(max-width:520px){.route-times{grid-template-columns:repeat(2,minmax(0,1fr))}.route-stop-value small{display:block}}

.route-time-value{display:flex;align-items:center;gap:8px;white-space:nowrap}.route-time-origin{display:inline-flex;align-items:center;justify-content:center;flex:none;font-style:normal}.route-time-origin.is-estimated{width:8px;height:8px;border-radius:50%;background:#f59e0b}.route-time-origin.is-certified{width:17px;height:19px;color:#198754}.route-time-origin svg{display:block;width:100%;height:100%}
