:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171a22;
  background: #f2f4f7;
  font-synthesis: none;
  --red: #d61624;
  --red-dark: #a90e1a;
  --ink: #161922;
  --muted: #697386;
  --line: #e2e6ec;
  --panel: #ffffff;
  --blue: #2764dc;
  --green: #159447;
  --amber: #d78312;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f3f5f8; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: #191c24; color: white; display: flex; flex-direction: column; z-index: 20; }
.brand { height: 108px; background: var(--red); display: grid; place-items: center; padding: 20px 28px; }
.brand img { width: 176px; height: 62px; object-fit: contain; }
.sidebar nav { padding: 22px 12px; display: grid; gap: 5px; }
.nav-item { border: 0; border-radius: 10px; background: transparent; color: #aeb5c1; min-height: 46px; padding: 0 15px; display: flex; gap: 12px; align-items: center; text-align: left; font-size: .92rem; }
.nav-item span { width: 20px; font-size: 1.1rem; text-align: center; }
.nav-item:hover { background: #242833; color: white; }
.nav-item.active { background: var(--red); color: white; box-shadow: 0 8px 22px rgba(214, 22, 36, .28); }
.nav-item.settings { margin: auto 12px 18px; }
main { min-height: 100vh; margin-left: 248px; }
.topbar { height: 74px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 28px; gap: 24px; position: sticky; top: 0; z-index: 10; }
.menu-button { display: none; border: 0; background: #f1f3f6; border-radius: 9px; width: 42px; height: 42px; }
.global-search { height: 44px; flex: 1; max-width: 760px; margin: 0 auto; border: 1px solid #dbe0e8; border-radius: 12px; background: #f8f9fb; display: flex; align-items: center; gap: 10px; padding: 0 13px; color: #8791a3; }
.global-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #20242d; }
kbd { border: 1px solid #d8dde6; border-radius: 5px; background: white; padding: 3px 7px; font-size: .72rem; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.connection-badge { border:1px solid #bfe5cb; border-radius:999px; background:#eaf7ef; color:#14733a; padding:7px 10px; font-size:.74rem; font-weight:800; white-space:nowrap; }.connection-badge.offline { border-color:#f0b9be; background:#fff0f1; color:#a81420; }
.sync-badge { color: #85530b; background: #fff6e1; border: 1px solid #f6dfa6; border-radius: 999px; padding: 7px 10px; font-size: .76rem; font-weight: 700; }
.role-button { border: 1px solid #dbe0e8; background: white; border-radius: 10px; padding: 10px 12px; }
.workspace { padding: 30px; max-width: 1680px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 4px; color: var(--red); font-size: .76rem; letter-spacing: .12em; font-weight: 800; }
h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.heading-actions, .table-actions { display: flex; gap: 10px; }
.primary, .secondary, .panel-title button, .icon-button { border-radius: 10px; min-height: 42px; padding: 0 15px; font-weight: 700; }
.link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary { border: 1px solid var(--red); background: var(--red); color: white; }
.primary:hover { background: var(--red-dark); }
.secondary { border: 1px solid #d8dde5; background: white; color: #353b48; }
.status-strip { background: #e8ebef; border: 1px solid #dfe3e9; border-radius: 12px; display: flex; gap: 4px; padding: 5px; margin-bottom: 18px; }
.status-tab { border: 0; background: transparent; border-radius: 8px; padding: 10px 18px; color: #5f6879; font-weight: 700; }
.status-tab.active { background: white; color: #171a22; box-shadow: 0 2px 7px rgba(30,38,54,.08); }
.last-update { margin-left: auto; padding: 10px 12px; color: #727b8c; font-size: .82rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.metric { background: white; border: 1px solid var(--line); border-top: 4px solid currentColor; min-height: 128px; border-radius: 13px; padding: 23px; display: flex; align-items: center; gap: 16px; box-shadow: 0 7px 22px rgba(25,33,49,.04); }
.metric.blue { color: var(--blue); }.metric.amber { color: var(--amber); }.metric.red { color: var(--red); }.metric.green { color: var(--green); }
.metric-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, currentColor 11%, white); font-weight: 900; font-size: 1.15rem; }
.metric span { display: block; color: #535d6e; font-size: .84rem; font-weight: 700; }
.metric strong { display: inline-block; color: #171a22; font-size: 2rem; margin: 4px 7px 0 0; letter-spacing: -.04em; }
.metric small { color: #8a93a2; }
.overview-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 14px; margin-bottom: 14px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 7px 22px rgba(25,33,49,.04); }
.panel-title, .table-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.panel-title p, .table-header p { margin: 0 0 3px; font-weight: 800; }
.panel-title span, .table-header span { color: #7a8495; font-size: .8rem; }
.panel-title button { border: 1px solid #d8dde5; background: #f8f9fb; color: var(--blue); min-height: 34px; }
.progress-body { min-height: 230px; display: flex; align-items: center; justify-content: center; gap: clamp(30px, 8vw, 90px); padding: 24px; }
.donut { width: 158px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--green) 0 12%, var(--blue) 12% 42%, #9ea6b2 42% 100%); display: grid; place-items: center; position: relative; }
.donut::before { content: ""; position: absolute; inset: 20px; border-radius: 50%; background: white; }
.donut div { position: relative; text-align: center; }
.donut strong { display: block; font-size: 1.55rem; color: #1e2530; }
.donut span { font-size: .65rem; color: #818a98; font-weight: 800; }
.legend { min-width: 230px; display: grid; gap: 13px; }
.legend-row { display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; align-items: center; font-size: .84rem; }
.legend-row i { width: 9px; height: 9px; border-radius: 50%; }
.legend-row span { color: #596375; }.legend-row strong { color: #20242c; }
.priority-list { padding: 9px 18px 17px; }
.priority-item { display: grid; grid-template-columns: 35px 1fr auto; gap: 11px; align-items: center; padding: 14px 0; border-bottom: 1px solid #edf0f3; }
.priority-item:last-child { border-bottom: 0; }
.priority-icon { width: 34px; height: 34px; background: #fff0f0; color: var(--red); border-radius: 9px; display: grid; place-items: center; font-weight: 900; }
.priority-item strong { display: block; font-size: .86rem; }.priority-item span { color: #7b8494; font-size: .75rem; }.priority-item b { color: var(--red); font-size: .73rem; }
.table-panel { overflow: hidden; }
.table-actions select { min-width: 180px; border: 1px solid #d8dde5; border-radius: 9px; background: white; padding: 0 10px; color: #4f5868; }
.icon-button { width: 42px; border: 1px solid #d8dde5; background: white; padding: 0; font-size: 1.2rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 880px; }
th { text-align: left; background: #f8f9fb; color: #778091; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; padding: 12px 16px; }
td { padding: 13px 16px; border-top: 1px solid #edf0f3; font-size: .84rem; color: #464f5f; }
td strong { color: #1d222b; } td small { display: block; color: #818a99; margin-top: 2px; }
.os-number { color: var(--blue); font-weight: 800; }
.demo-tag { display: inline-block; margin-left: 6px; background: #fff4dc; color: #94620c; padding: 2px 5px; border-radius: 5px; font-size: .62rem; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 9px; background: #eef1f4; color: #4f5967; font-size: .74rem; font-weight: 750; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8f98a6; }
.status-pill[data-status="Pendiente de completar"] { background: #fff0f1; color: #a81420; }.status-pill[data-status="Pendiente de completar"]::before { background: var(--red); }
.status-pill[data-status="En proceso"] { background: #eaf1ff; color: #2456b8; }.status-pill[data-status="En proceso"]::before { background: var(--blue); }
.status-pill[data-status="Esperando repuestos"] { background: #fff4df; color: #9b600a; }.status-pill[data-status="Esperando repuestos"]::before { background: var(--amber); }
.status-pill[data-status="Control de calidad"] { background: #f3edff; color: #6d43aa; }.status-pill[data-status="Control de calidad"]::before { background: #8252c7; }
.status-pill[data-status="Listo para entregar"] { background: #e9f8ee; color: #13773a; }.status-pill[data-status="Listo para entregar"]::before { background: var(--green); }
.status-pill[data-status="Programado"] { background: #e8f7ed; color: #13773a; }.status-pill[data-status="Programado"]::before { background: var(--green); }
.status-pill[data-status="Prioridad"] { background: #fff4df; color: #9b600a; }.status-pill[data-status="Prioridad"]::before { background: var(--amber); }
.status-pill[data-status="Urgente"] { background: #fff0f1; color: #a81420; }.status-pill[data-status="Urgente"]::before { background: var(--red); }
.status-pill[data-status="Pendiente"] { background: #fff4df; color: #93600d; }.status-pill[data-status="Pendiente"]::before { background: var(--amber); }
.status-pill[data-status="Reproceso"] { background: #f3edff; color: #6d43aa; }.status-pill[data-status="Reproceso"]::before { background: #8252c7; }
.status-pill[data-status="Culminado"] { background: #e9f8ee; color: #13773a; }.status-pill[data-status="Culminado"]::before { background: var(--green); }
.operational-state small { display:block; max-width:230px; margin-top:6px; color:#707a89; font-size:.68rem; line-height:1.35; }
.open-button { border: 1px solid #cdd8ec; color: var(--blue); background: white; border-radius: 8px; padding: 7px 10px; font-weight: 700; }
.loading { text-align: center; padding: 34px; color: #818a98; }
.hidden { display: none !important; }
.module-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
.module-heading h1 { margin-top: 3px; }.module-heading p { margin: 0; color: #778091; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.record-card { padding: 18px; }.record-card h3 { margin: 0 0 5px; font-size: 1rem; }.record-card p { margin: 0; color: #6f7888; font-size: .84rem; }
.record-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); font-size: .78rem; color: #697386; }
.client-vehicle-line i { color: #a0a7b2; font-style: normal; }.client-contact { display: grid; gap: 3px; margin-top: 15px; border-top: 1px solid var(--line); padding-top: 13px; }.client-contact strong { color: #252b35; font-size: .82rem; }.client-contact span { color: #697386; font-size: .78rem; }.client-vehicle-card .record-meta { margin-top: 11px; border-top: 0; padding-top: 0; }
.vehicle-card { display: flex; flex-direction: column; }.vehicle-photo-button { display: flex; min-height: 40px; margin-top: 14px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid #b8cbea; border-radius: 9px; background: #eef4ff; color: #2459bd; padding: 0 11px; font-size: .76rem; font-weight: 850; }.vehicle-photo-button:hover { background: #dfeaff; }.vehicle-photo-button:disabled { cursor: wait; opacity: .7; }.vehicle-photo-button b { border-radius: 999px; background: white; padding: 4px 7px; color: #53647e; font-size: .66rem; }
.module-table { overflow: hidden; }.module-table .table-header { border-bottom: 1px solid var(--line); }
.empty-state { padding: 54px 24px; text-align: center; color: #6f7888; }.empty-state strong { display: block; color: #242a34; font-size: 1rem; margin-bottom: 4px; }
.kanban-board { display: grid; grid-template-columns: repeat(5, minmax(250px, 1fr)); gap: 12px; overflow-x: auto; padding: 2px 2px 16px; }
.kanban-column { background: #e9edf2; border-radius: 12px; padding: 10px; min-height: 360px; }
.kanban-column header { display: flex; align-items: center; justify-content: space-between; padding: 5px 5px 12px; font-weight: 800; font-size: .82rem; }
.kanban-column header span { background: white; border-radius: 999px; padding: 2px 7px; color: #6c7585; }
.kanban-card { border: 1px solid #dce1e8; background: white; border-radius: 10px; padding: 13px; margin-bottom: 9px; box-shadow: 0 4px 13px rgba(30,38,53,.05); }
.kanban-card button { border: 0; padding: 0; background: transparent; color: var(--blue); font-weight: 800; }.kanban-card p { margin: 7px 0 2px; font-size: .85rem; font-weight: 700; }.kanban-card small { color: #7a8494; }
.timeline { display: grid; gap: 0; }.timeline-item { display: grid; grid-template-columns: 18px 1fr; gap: 12px; position: relative; padding-bottom: 19px; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 13px; bottom: 0; width: 2px; background: #e1e5ea; }.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 12px; height: 12px; border: 3px solid #f4b8bd; background: var(--red); border-radius: 50%; margin-top: 3px; position: relative; z-index: 1; }
.timeline-item strong { display: block; font-size: .86rem; }.timeline-item span { color: #778091; font-size: .78rem; }.timeline-item p { margin: 5px 0 0; color: #555f70; font-size: .82rem; }
.drawer-dialog, .form-dialog { border: 0; padding: 0; background: transparent; max-height: 100vh; max-height: 100dvh; }
.drawer-dialog { margin: 0 0 0 auto; width: min(640px, 100vw); height: 100vh; height: 100dvh; max-width: none; }
.form-dialog { position: fixed; inset: 0; width: min(760px, calc(100vw - 28px)); max-width: none; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); margin: auto; border-radius: 15px; overflow: visible; }
dialog::backdrop { background: rgba(13,17,24,.58); backdrop-filter: blur(2px); }
.dialog-shell { height: 100%; background: white; display: flex; flex-direction: column; overflow: hidden; }
.form-dialog .dialog-shell { height: auto; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); border-radius: 15px; }
.dialog-header { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.dialog-header h2 { margin: 0; font-size: 1.45rem; letter-spacing: -.025em; }.close-button { width: 38px; height: 38px; border: 1px solid #dce1e7; border-radius: 9px; background: white; font-size: 1.55rem; line-height: 1; }
.dialog-content { padding: 22px 24px; overflow-y: auto; flex: 1; }.dialog-footer { border-top: 1px solid var(--line); padding: 15px 24px; display: flex; justify-content: flex-end; gap: 10px; }
.task-delete { margin-right:auto; }
.detail-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9fb; }
.detail-hero h3 { margin: 0 0 4px; font-size: 1.1rem; }.detail-hero p { margin: 0; color: #6f7888; }.detail-amount { text-align: right; }.detail-amount strong { display: block; font-size: 1.35rem; }.detail-amount span { color: #778091; font-size: .78rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }.detail-card { border: 1px solid var(--line); border-radius: 11px; padding: 15px; }.detail-card h4 { margin: 0 0 9px; }.detail-card dl { margin: 0; display: grid; grid-template-columns: 100px 1fr; gap: 7px; font-size: .82rem; }.detail-card dt { color: #7a8494; }.detail-card dd { margin: 0; font-weight: 650; }
.status-editor { border: 1px solid #f0d1d4; background: #fff8f8; border-radius: 12px; padding: 16px; margin-bottom: 16px; }.status-editor label { display: block; font-size: .78rem; font-weight: 800; color: #636d7d; margin-bottom: 6px; }.status-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; }.status-row select,.status-row input { min-height: 40px; border: 1px solid #d8dde5; border-radius: 8px; padding: 0 10px; background: white; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 11px; }.section-title h3 { margin: 0; font-size: 1rem; }
.document-list { display: grid; gap: 8px; }.document-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }.document-item strong { display: block; font-size: .82rem; }.document-item span { color: #7b8494; font-size: .73rem; }.document-item a { color: var(--blue); font-weight: 750; font-size: .8rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.photo-grid img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.photo-dialog { width: min(980px, calc(100vw - 28px)); }.photo-summary { display: grid; grid-template-columns: 1fr auto; gap: 18px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9fb; padding: 14px 16px; }.photo-summary span { display: block; color: #707a8a; font-size: .72rem; font-weight: 800; text-transform: uppercase; }.photo-summary strong { display: block; margin-top: 4px; }.photo-summary small { display: block; margin-top: 5px; color: #707a8a; font-size: .72rem; }.photo-summary > div:last-child { min-width: 120px; text-align: right; }.photo-summary > div:last-child strong { color: var(--blue); font-size: 1.35rem; }.photo-sync-status { margin-bottom: 14px; border-left: 4px solid #159447; border-radius: 8px; background: #eef9f2; padding: 11px 13px; color: #28583a; font-size: .84rem; }.photo-sync-status.error { border-color: #d79a24; background: #fff8e8; color: #725216; }.photo-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.photo-review-grid > a { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; color: #313742; text-decoration: none; }.photo-review-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef1f4; }.photo-review-grid a span { display: block; overflow: hidden; padding: 9px 11px; font-size: .76rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.photo-empty { grid-column: 1 / -1; min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed #cbd2dc; border-radius: 12px; background: #fafbfc; padding: 28px; text-align: center; }.photo-empty span { max-width: 560px; color: #717b8b; line-height: 1.5; }.photo-empty button { margin-top: 8px; }.photo-access,.photo-inline { min-height: 36px; border: 1px solid #b8cbea; border-radius: 8px; background: #eef4ff; color: #2459bd; padding: 0 10px; font-size: .74rem; font-weight: 850; }.photo-access:hover,.photo-inline:hover { background: #dfeaff; }.photo-inline { min-height: 30px; margin-top: 7px; }.row-actions,.detail-shortcuts,.route-heading-actions { display: flex; align-items: center; gap: 7px; }.row-actions { justify-content: flex-end; }.detail-shortcuts { margin-top: 10px; }.detail-shortcuts button { flex: 1; }.route-heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.upload-label { color: var(--blue); font-size: .8rem; font-weight: 750; cursor: pointer; }.upload-label input { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.form-grid label,.stacked-label { color: #5f6878; font-size: .79rem; font-weight: 750; }.form-grid input,.form-grid select,.form-grid textarea,.stacked-label input { width: 100%; margin-top: 6px; border: 1px solid #d9dee6; border-radius: 9px; padding: 10px; color: #20252e; background: white; }.form-grid .full { grid-column: 1 / -1; }
.helper { color: #788293; font-size: .8rem; line-height: 1.5; }.source-status { border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 10px; padding: 14px; margin-bottom: 16px; }.source-status.connected { border-left-color: var(--green); }.source-status strong { display: block; margin-bottom: 4px; }.source-status span { color: #6f7888; font-size: .8rem; overflow-wrap: anywhere; }
.reconciliation { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 15px; }.reconciliation div { background: #f5f7f9; border-radius: 8px; padding: 10px; }.reconciliation strong { display: block; font-size: 1.1rem; }.reconciliation span { color: #758090; font-size: .7rem; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.report-card { padding: 20px; }.report-card > strong { display: block; font-size: 1.9rem; }.report-card > span { color: #778091; font-size: .8rem; }.bar-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; margin-top: 12px; font-size: .78rem; }.bar { height: 8px; background: #edf0f3; border-radius: 999px; overflow: hidden; }.bar i { display: block; height: 100%; background: var(--red); border-radius: inherit; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.settings-card { padding: 20px; }.settings-card h3 { margin: 0 0 8px; }.settings-card p { color: #6f7888; line-height: 1.5; font-size: .84rem; }.danger-button { border: 1px solid #efc4c8; color: var(--red); background: #fff6f7; border-radius: 9px; min-height: 40px; padding: 0 14px; font-weight: 750; }
.source-card { grid-column: 1 / -1; }.connection-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; margin: 2px 0 12px; }.connection-badge.cloud { color: #0a58ca; background: #eaf3ff; }.connection-badge.ready { color: #12713c; background: #e8f8ee; }.source-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0; margin: 0 0 14px; list-style: none; }.source-list li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; }.source-list a { color: var(--ink); text-decoration: none; }.source-list span { color: #6f7888; font-size: .76rem; }
.route-shortcut { width: 100%; min-height: 40px; margin-top: 10px; border: 1px solid #efc4c8; border-radius: 9px; background: white; color: var(--red); font-weight: 800; }
.route-type-dialog { width: min(920px, calc(100vw - 28px)); }.route-type-help { margin: 0 0 14px; color: #667181; line-height: 1.5; }.route-type-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.route-type-option { position: relative; min-height: 150px; border: 2px solid #e0e4ea; border-radius: 12px; background: white; padding: 16px; text-align: left; }.route-type-option:hover:not(:disabled) { border-color: #ef9aa1; background: #fffafa; }.route-type-option.selected { border-color: var(--red); background: #fff4f5; box-shadow: 0 5px 18px rgba(218,24,40,.1); }.route-type-option span { display: block; margin-bottom: 9px; color: #202631; font-size: 1rem; font-weight: 900; }.route-type-option small { display: block; color: #697385; font-size: .72rem; line-height: 1.5; }.route-type-option b { display: inline-flex; margin-top: 12px; border-radius: 999px; background: #eef1f5; color: #596477; padding: 5px 8px; font-size: .66rem; }.route-type-option.selected b { background: #ffe0e3; color: var(--red); }
.week-picker { display: flex; align-items: flex-end; gap: 9px; }.week-picker label { color: #687284; font-size: .78rem; font-weight: 800; }.week-picker input { display: block; min-height: 42px; margin-top: 5px; border: 1px solid #d8dde5; border-radius: 9px; background: white; padding: 0 11px; color: #242a34; }
.planning-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }.planning-summary article { min-height: 92px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 11px; background: white; padding: 16px; box-shadow: 0 6px 18px rgba(25,33,49,.04); }.planning-summary span { display: block; color: #707a8b; font-size: .78rem; font-weight: 750; }.planning-summary strong { display: block; margin-top: 4px; font-size: 1.7rem; letter-spacing: -.04em; }.planning-summary .summary-alert { border-left-color: var(--red); background: #fff7f8; color: var(--red); }
.service-board { margin-bottom: 24px; overflow: hidden; }.service-board .panel-title > strong { color: var(--red); font-size: .86rem; }.service-board-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); }.service-board-grid article { min-height: 98px; background: white; padding: 15px 17px; }.service-board-grid span { display: block; color: #616b7b; font-size: .76rem; font-weight: 850; }.service-board-grid strong { display: block; margin: 4px 0 1px; color: #202631; font-size: 1.75rem; }.service-board-grid small { color: #818a98; font-size: .68rem; }.service-board-grid article[data-service="MECANICA"] { border-top: 3px solid #2764dc; }.service-board-grid article[data-service="PLANCHADO_PINTURA"] { border-top: 3px solid var(--red); }.service-board-grid article[data-service="AROS"] { border-top: 3px solid #7c4dcc; }
.planning-section { margin-top: 24px; scroll-margin-top: 92px; }.planning-section-title,.route-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 12px; }.planning-section-title h2,.route-heading h2 { margin: 0; font-size: 1.22rem; }.planning-section-title p,.route-heading p { margin: 4px 0 0; color: #707a8a; font-size: .86rem; }.planned-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.planned-order { padding: 17px; overflow: hidden; }.planned-order.has-block { border-color: #efc1c5; }.planned-order-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; }.planned-order-head h3 { margin: 7px 0 2px; font-size: .96rem; }.planned-order-head p { margin: 0; color: #707a8a; font-size: .78rem; }.planned-order-head > strong { color: var(--blue); font-size: 1.25rem; }.priority-badge { margin-left: 7px; border-radius: 5px; background: #fff0f1; color: var(--red); padding: 3px 5px; font-size: .62rem; }.planned-service { margin-top: 14px; border-radius: 8px; background: #f5f7fa; padding: 10px 11px; }.planned-service span { display: block; color: #707a8a; font-size: .68rem; font-weight: 800; text-transform: uppercase; }.planned-service strong { display: block; margin-top: 4px; color: #303642; font-size: .78rem; line-height: 1.4; }.planned-route-summary { margin-top: 10px; }.planned-route-summary > span { color: #687284; font-size: .7rem; font-weight: 850; }.planned-route-summary > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }.planned-route-summary b { border-radius: 999px; background: #eef2f7; color: #465064; padding: 4px 7px; font-size: .63rem; }.planned-route-summary em { color: #9a6b16; font-size: .69rem; font-style: normal; }.route-progress { height: 8px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #e9edf2; }.route-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--red),#e65b65); }.planned-stats { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; color: #707a8a; font-size: .72rem; }.blocked-text { color: var(--red); font-weight: 800; }.planned-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 14px; }.planned-actions .primary { min-height: 39px; }.remove-planned,.remove-all-planned { min-height: 39px; border: 1px solid #efc4c8; border-radius: 8px; background: #fff7f8; color: var(--red); padding: 0 10px; font-size: .74rem; font-weight: 800; }.remove-planned:hover,.remove-all-planned:hover { background: #ffedef; }.remove-planned:disabled,.remove-all-planned:disabled { opacity: .55; cursor: wait; }
.orders-planning-table { min-width: 1020px; }.order-vehicle-selection { display:flex; align-items:center; gap:11px; }.order-plan-choice { flex:0 0 auto; width:19px; height:19px; accent-color:var(--red); }.order-planning-actions { display: flex; align-items: flex-end; gap: 10px; }.order-planning-actions label { color: #687284; font-size: .76rem; font-weight: 800; }.order-planning-actions input { display: block; min-height: 40px; margin-top: 4px; border: 1px solid #d8dde5; border-radius: 8px; padding: 0 9px; }
.route-section { border-top: 1px solid #dfe4ea; padding-top: 24px; }.route-heading { align-items: flex-start; }.process-route { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px,1fr); gap: 11px; overflow-x: auto; padding: 3px 2px 18px; scroll-snap-type: x proximity; }.process-column { min-height: 430px; overflow: hidden; border: 1px solid #dfe4ea; border-top: 4px solid #6f7a8c; border-radius: 12px; background: #f0f3f6; display: flex; flex-direction: column; scroll-snap-align: start; }.process-mec_inicio,.process-mec_lavado,.process-mec_terminado { border-top-color: #2764dc; }.process-aro_desmontaje,.process-aro_reparacion,.process-aro_descapado,.process-aro_pintado,.process-aro_diamantado_1,.process-aro_diamantado_2,.process-aro_balanceo { border-top-color: #7c4dcc; }.process-desarmado { border-top-color: #596579; }.process-plastico { border-top-color: #7c4dcc; }.process-planchado { border-top-color: #d47a0a; }.process-preparado { border-top-color: #1590a8; }.process-pintado { border-top-color: #2764dc; }.process-armado { border-top-color: #875b35; }.process-acabado { border-top-color: #159447; }.process-column > header { padding: 14px; border-bottom: 1px solid #dfe4ea; background: white; }.process-column > header > div:first-child { display: grid; grid-template-columns: 30px 1fr; gap: 9px; }.process-number { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #202631; color: white; font-size: .76rem; font-weight: 900; }.process-route-label { display: block; margin-bottom: 3px; color: #7b8493; font-size: .6rem; font-weight: 900; text-transform: uppercase; }.process-column h3 { margin: 0; font-size: .9rem; text-transform: uppercase; letter-spacing: .035em; }.process-column header p { min-height: 34px; margin: 3px 0 8px; color: #788293; font-size: .72rem; line-height: 1.35; }.stage-status { display: inline-flex; border-radius: 999px; background: #eef1f4; color: #5b6574; padding: 5px 8px; font-size: .67rem; font-weight: 850; }.stage-status[data-stage-status="En proceso"] { background: #e8f0ff; color: #2459bd; }.stage-status[data-stage-status="Completado"] { background: #e8f7ed; color: #14733a; }.stage-status[data-stage-status="Bloqueado"] { background: #fff0f1; color: #a71622; }.stage-status[data-stage-status="Omitido"] { background: #eceef1; color: #7c8491; text-decoration: line-through; }.process-technicians { padding: 11px 13px; border-bottom: 1px solid #dfe4ea; background: #f8f9fb; }.process-technicians span { color: #7b8493; font-size: .66rem; font-weight: 850; text-transform: uppercase; }.process-technicians p { margin: 3px 0 0; color: #38404c; font-size: .72rem; line-height: 1.4; }.process-task-list { flex: 1; padding: 10px; }.process-empty { padding: 24px 10px; text-align: center; color: #8a93a1; font-size: .76rem; }.process-task { margin-bottom: 9px; border: 1px solid #dce1e7; border-radius: 9px; background: white; padding: 11px; box-shadow: 0 3px 9px rgba(28,35,48,.04); }.task-title { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.task-title strong { font-size: .8rem; line-height: 1.35; }.edit-task { width: 27px; height: 27px; border: 1px solid #dbe0e7; border-radius: 7px; background: white; color: #596375; }.process-task > p { margin: 6px 0 9px; color: #707a8a; font-size: .72rem; line-height: 1.4; }.task-assignment { display: grid; grid-template-columns: 1fr 116px; gap: 7px; align-items: center; }.task-assignment span { color: #252b34; font-size: .72rem; font-weight: 850; }.task-assignment select { width: 100%; min-height: 31px; border: 1px solid #dbe0e7; border-radius: 7px; background: #f8f9fb; padding: 0 5px; color: #4f5967; font-size: .68rem; }.process-column > footer { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 10px; border-top: 1px solid #dfe4ea; background: white; }.add-process-task,.stage-toggle { min-height: 37px; border-radius: 8px; font-size: .72rem; font-weight: 800; }.add-process-task { border: 1px solid var(--red); background: var(--red); color: white; }.add-process-task:disabled { border-color: #c8cdd5; background: #c8cdd5; cursor: not-allowed; }.stage-toggle { border: 1px solid #d9dee5; background: white; color: #697386; padding: 0 9px; }
.priority-rank { display: inline-flex; margin-right: 7px; border-radius: 6px; background: #202631; color: white; padding: 4px 7px; font-size: .65rem; font-weight: 850; }.planned-order-head .priority-criteria { margin-top: 8px; color: #3e4653; font-weight: 750; }
.availability-panel { margin: 0 0 24px; overflow: hidden; }.availability-panel .panel-title small { color: #788293; }.availability-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); }.technician-availability { min-height: 76px; border: 0; background: white; padding: 13px; display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; text-align: left; }.technician-availability:hover { background: #f8f9fb; }.availability-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #e6f6eb; }.technician-availability strong { display: block; font-size: .82rem; }.technician-availability small { display: block; margin-top: 2px; overflow: hidden; color: #7b8493; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }.technician-availability b { border-radius: 999px; background: #eaf7ee; color: #14763b; padding: 5px 7px; font-size: .64rem; }.technician-availability[data-availability="Ocupado"] .availability-dot,.technician-hero[data-availability="Ocupado"] .availability-dot { background: var(--blue); box-shadow: 0 0 0 4px #e5edff; }.technician-availability[data-availability="Ocupado"] b { background: #e8efff; color: #2558b8; }.technician-availability[data-availability="Bloqueado"] .availability-dot,.technician-hero[data-availability="Bloqueado"] .availability-dot { background: var(--red); box-shadow: 0 0 0 4px #ffe5e8; }.technician-availability[data-availability="Bloqueado"] b { background: #ffebed; color: #a51723; }.technician-availability[data-availability="Con tareas"] .availability-dot,.technician-hero[data-availability="Con tareas"] .availability-dot { background: var(--amber); box-shadow: 0 0 0 4px #fff0d8; }.technician-availability[data-availability="Con tareas"] b { background: #fff2df; color: #945b08; }
.stage-status[data-stage-status="Pausado"] { background: #fff2df; color: #945b08; }.task-time { margin: 8px 0; color: #697386; font-size: .68rem; font-weight: 800; }.task-time.running { color: var(--blue); }
.technician-controls { display: flex; gap: 9px; }.technician-controls label { color: #687284; font-size: .75rem; font-weight: 800; }.technician-controls input,.technician-controls select { display: block; min-width: 170px; min-height: 42px; margin-top: 5px; border: 1px solid #d8dde5; border-radius: 9px; background: white; padding: 0 10px; }.work-rule { margin-bottom: 14px; border: 1px solid #f0d1d4; border-left: 4px solid var(--red); border-radius: 10px; background: #fff8f8; padding: 13px 15px; color: #555f6f; font-size: .84rem; }.technician-hero { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 20px; margin-bottom: 14px; }.technician-hero > div:first-child { display: flex; gap: 13px; align-items: center; }.technician-hero p { margin: 0; color: #788293; font-size: .74rem; }.technician-hero h2 { margin: 2px 0 0; }.technician-hero > strong { align-self: center; border-radius: 999px; background: #edf0f3; padding: 7px 11px; font-size: .75rem; }.technician-counters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); padding-top: 14px; }.technician-counters span { color: #737d8d; font-size: .76rem; }.technician-counters b { display: block; margin-bottom: 2px; color: #20252e; font-size: 1.05rem; }.technician-task-list { display: grid; gap: 12px; }.technician-task { overflow: hidden; }.technician-task[data-task-status="En proceso"] { border-color: #b9ccef; box-shadow: 0 8px 26px rgba(39,100,220,.1); }.tech-task-priority { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #202631; color: white; }.tech-task-priority span { font-size: .7rem; font-weight: 800; }.tech-task-priority strong { font-size: .8rem; }.tech-task-main { display: flex; justify-content: space-between; gap: 18px; padding: 17px; }.tech-task-main h3 { margin: 2px 0 4px; font-size: 1.05rem; }.tech-task-main p:not(.eyebrow) { margin: 0; color: #687284; font-size: .84rem; }.tech-order-context { display: grid; grid-template-columns: 1.1fr 2fr 1fr 1fr; gap: 10px; padding: 0 17px 17px; }.tech-order-context div { border-radius: 8px; background: #f5f7f9; padding: 10px; }.tech-order-context span { display: block; color: #7a8494; font-size: .67rem; font-weight: 800; text-transform: uppercase; }.tech-order-context strong { display: block; margin-top: 4px; color: #313742; font-size: .78rem; line-height: 1.35; }.tech-task-footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding: 13px 17px; }.timer-display span { display: block; color: #778190; font-size: .67rem; }.timer-display strong { display: block; margin-top: 2px; }.timer-display.running strong { color: var(--blue); }.tech-task-actions { display: flex; gap: 7px; }.tech-task-actions button { width: auto; }
.status-pill[data-status="Pausada"] { background: #fff2df; color: #945b08; }.status-pill[data-status="Pausada"]::before { background: var(--amber); }.status-pill[data-status="Bloqueada"] { background: #fff0f1; color: #a71622; }.status-pill[data-status="Bloqueada"]::before { background: var(--red); }.status-pill[data-status="Terminada"] { background: #e8f7ed; color: #14733a; }.status-pill[data-status="Terminada"]::before { background: var(--green); }
.work-board-controls,.history-controls { display: flex; gap: 9px; }.work-board-controls label { color: #687284; font-size: .75rem; font-weight: 800; }.work-board-controls input,.history-controls input,.history-controls select { display: block; min-width: 190px; min-height: 42px; border: 1px solid #d8dde5; border-radius: 9px; background: white; padding: 0 10px; }.work-board-controls label input { margin-top: 5px; }.history-controls input { min-width: 280px; }
.process-board-controls { display:flex; gap:9px; }.process-board-controls label { color:#687284; font-size:.72rem; font-weight:800; }.process-board-controls input { display:block; min-width:180px; min-height:40px; margin-top:4px; border:1px solid #d8dde5; border-radius:9px; background:white; padding:0 10px; }.process-board-controls label:last-child input { min-width:260px; }.process-board-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; margin-bottom:12px; }.process-board-summary article { min-height:76px; border:1px solid var(--line); border-left:4px solid #737d8d; border-radius:10px; background:white; padding:11px 13px; }.process-board-summary article:nth-child(3) { border-left-color:var(--blue); }.process-board-summary article:nth-child(4) { border-left-color:var(--amber); }.process-board-summary article:nth-child(5) { border-left-color:var(--green); }.process-board-summary span { display:block; color:#737d8d; font-size:.66rem; font-weight:850; }.process-board-summary strong { display:block; margin-top:3px; font-size:1.38rem; }.process-board-table { overflow:hidden; }.process-filter-bar { display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--line); padding:10px 12px; }.process-filter-bar select { min-height:36px; border:1px solid #d8dde5; border-radius:8px; background:white; padding:0 9px; }.process-filter-bar span { margin-left:auto; color:#727c8c; font-size:.7rem; font-weight:800; }.process-board-table table { min-width:1180px; }.process-board-table th { position:sticky; top:0; z-index:1; background:#f5f7fa; }.process-board-table th,.process-board-table td { padding:9px 10px; vertical-align:middle; }.process-board-table tbody tr:hover { background:#fbfcfe; }.process-board-table td>strong,.process-board-table td>small { display:block; }.process-board-table td>small { margin-top:3px; color:#7a8493; font-size:.65rem; }.process-unit-cell { min-width:255px; }.process-unit-cell .vehicle-identity { font-size:.7rem; }.process-unit-cell .vehicle-plate { font-size:.85rem; }.process-service-name { display:block; margin-bottom:3px; color:#7a8493; font-size:.6rem; font-weight:850; text-transform:uppercase; }.process-row-status { display:inline-block; border-radius:999px; background:#eef1f4; color:#616b79; padding:5px 8px; font-size:.65rem; font-weight:850; white-space:nowrap; }.process-row-status[data-status="En proceso"] { background:#e8f0ff; color:#1e58bd; }.process-row-status[data-status="Pausada"],.process-row-status[data-status="Pausado"] { background:#fff3df; color:#9a5b00; }.process-row-status[data-status="Terminada"],.process-row-status[data-status="Completado"] { background:#e6f6ec; color:#16743b; }.process-row-actions { display:flex; gap:5px; flex-wrap:nowrap; }.process-row-actions button { min-height:31px; border:1px solid #d4dbe5; border-radius:7px; background:white; padding:0 8px; font-size:.64rem; font-weight:850; white-space:nowrap; }.process-task-action.start { color:#1d59b8; }.process-task-action.pause { color:#9a5b00; border-color:#e7c889; }.process-task-action.finish { color:white; border-color:#16833f; background:#16833f; }.process-task-assign { color:white!important; border-color:var(--red)!important; background:var(--red)!important; }.process-task-edit { color:#505b6d; }
.workboard-summary,.history-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }.history-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }.workboard-summary article,.history-kpis article { min-height: 88px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 11px; background: white; padding: 14px 16px; box-shadow: 0 6px 18px rgba(25,33,49,.04); }.workboard-summary article:nth-child(2),.history-kpis article:nth-child(2) { border-left-color: #7c4dcc; }.workboard-summary article:nth-child(3),.history-kpis article:nth-child(3) { border-left-color: var(--amber); }.workboard-summary article:nth-child(5),.history-kpis article:nth-child(4) { border-left-color: var(--green); }.workboard-summary .summary-alert { border-left-color: var(--red); background: #fff7f8; color: var(--red); }.workboard-summary span,.history-kpis span { display: block; color: #707a8b; font-size: .72rem; font-weight: 800; }.workboard-summary strong,.history-kpis strong { display: block; margin-top: 3px; font-size: 1.65rem; }
.workboard-services { margin-bottom: 14px; overflow: hidden; }.workboard-services > div:last-child { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); }.workboard-services article { min-height: 88px; background: white; padding: 14px 16px; border-top: 3px solid #687284; }.workboard-services article[data-service="MECANICA"] { border-top-color: var(--blue); }.workboard-services article[data-service="PLANCHADO_PINTURA"] { border-top-color: var(--red); }.workboard-services article[data-service="AROS"] { border-top-color: #7c4dcc; }.workboard-services span,.workboard-services small { display: block; color: #737d8d; font-size: .7rem; }.workboard-services span { font-weight: 850; }.workboard-services strong { display: block; margin: 3px 0; font-size: 1.55rem; }
.work-unit-list { display: grid; gap: 14px; }.work-unit { overflow: hidden; }.work-unit-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 17px; }.work-unit-title { display: flex; min-width: 0; align-items: center; gap: 10px; }.work-unit-title .priority-rank { flex: 0 0 auto; margin: 0; }.work-unit-header h2 { min-width: 0; margin: 0; font-size: 1rem; letter-spacing: 0; }.work-progress { min-width: 72px; text-align: right; }.work-progress strong,.work-progress span { display: block; }.work-progress strong { color: var(--blue); font-size: 1.28rem; }.work-progress span { color: #768090; font-size: .66rem; }.work-unit-context { display: grid; grid-template-columns: 1.45fr 2fr .8fr .8fr; gap: 8px; padding: 0 17px 12px; }.work-unit-context > div { border-radius: 8px; background: #f5f7f9; padding: 10px; }.work-unit-context span,.work-unit-context small { display: block; color: #778190; font-size: .64rem; }.work-unit-context span { font-weight: 850; text-transform: uppercase; }.work-unit-context strong { display: block; margin: 4px 0 2px; color: #303642; font-size: .76rem; line-height: 1.35; }.work-unit-bar { height: 7px; margin: 0 17px; overflow: hidden; border-radius: 999px; background: #e7ebf0; }.work-unit-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--red),#ee6872); }.work-service-list { display: grid; gap: 10px; padding: 12px 17px; background: #fafbfc; }.work-service-lane { overflow: hidden; border: 1px solid #e0e4ea; border-radius: 9px; background: white; }.work-service-lane > header { display: flex; justify-content: space-between; align-items: center; border-left: 4px solid #687284; padding: 8px 11px; }.work-service-lane[data-service="MECANICA"] > header { border-left-color: var(--blue); }.work-service-lane[data-service="PLANCHADO_PINTURA"] > header { border-left-color: var(--red); }.work-service-lane[data-service="AROS"] > header { border-left-color: #7c4dcc; }.work-service-lane > header strong { font-size: .76rem; }.work-service-lane > header span { border-radius: 999px; background: #f0f2f5; padding: 4px 7px; color: #687284; font-size: .65rem; font-weight: 850; }.work-service-lane > div { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(165px,1fr); overflow-x: auto; border-top: 1px solid #e6e9ee; }.work-process { min-height: 82px; border-right: 1px solid #e6e9ee; padding: 9px 10px; }.work-process:last-child { border-right: 0; }.work-process > span,.work-process > b,.work-process > small { display: block; }.work-process > span { color: #303642; font-size: .7rem; font-weight: 850; }.work-process > b { width: fit-content; margin: 6px 0 3px; border-radius: 999px; background: #eef1f4; color: #626c7b; padding: 3px 6px; font-size: .61rem; }.work-process[data-status="En proceso"] > b { background: #e8f0ff; color: #2459bd; }.work-process[data-status="Completado"] > b { background: #e8f7ed; color: #14733a; }.work-process[data-status="Bloqueado"] > b { background: #fff0f1; color: #a71622; }.work-process > small { color: #7e8795; font-size: .62rem; line-height: 1.35; }.work-unit-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 10px 17px; }.work-unit-actions > div { display: flex; gap: 7px; }.work-route-pending { color: #7c8593; font-size: .76rem; }
.history-order-list { display: grid; gap: 14px; }.history-order { overflow: hidden; }.history-order > summary { position: relative; display: grid; grid-template-columns: 1.15fr 1fr auto 22px; gap: 18px; align-items: center; padding: 17px 19px; cursor: pointer; list-style: none; }.history-order > summary::-webkit-details-marker { display: none; }.history-identity span,.history-identity strong,.history-identity small,.history-total span,.history-total strong,.history-total small { display: block; }.history-identity span { color: var(--blue); font-size: .72rem; font-weight: 900; }.history-identity strong { margin: 3px 0; font-size: 1.35rem; letter-spacing: .03em; }.history-identity small { color: #707a8a; font-size: .72rem; }.history-summary-services { display: flex; flex-wrap: wrap; gap: 5px; }.history-summary-services b { border-radius: 999px; background: #eef1f5; color: #4c5667; padding: 5px 8px; font-size: .64rem; }.history-summary-services b[data-service="MECANICA"] { background: #e9f0ff; color: #2459bd; }.history-summary-services b[data-service="PLANCHADO_PINTURA"] { background: #fff0f1; color: #a71622; }.history-summary-services b[data-service="AROS"] { background: #f1eafd; color: #6640a6; }.history-total { min-width: 112px; text-align: right; }.history-total span { color: #7a8494; font-size: .65rem; font-weight: 800; text-transform: uppercase; }.history-total strong { margin: 3px 0; font-size: 1.12rem; }.history-total small { color: #6e7888; font-size: .65rem; }.history-chevron { color: #697386; font-size: 1.2rem; transition: transform .18s; }.history-order[open] .history-chevron { transform: rotate(180deg); }.history-body { border-top: 1px solid var(--line); background: #fafbfc; padding: 16px 18px 18px; }.history-time-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.history-time-grid article,.history-order-context > div { border: 1px solid #e1e5eb; border-radius: 9px; background: white; padding: 11px; }.history-time-grid span,.history-order-context span { display: block; color: #778190; font-size: .64rem; font-weight: 850; text-transform: uppercase; }.history-time-grid strong,.history-order-context strong { display: block; margin-top: 4px; color: #303642; font-size: .78rem; line-height: 1.4; }.history-time-grid small { display: block; margin-top: 4px; color: #8a93a0; font-size: .62rem; line-height: 1.35; }.history-order-context { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 8px; margin-top: 8px; }.history-section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 18px 0 9px; }.history-section-title h3 { margin: 0; font-size: .92rem; }.history-section-title span { color: #7a8493; font-size: .68rem; }.history-service-list { display: grid; gap: 10px; }.history-service { overflow: hidden; border: 1px solid #dfe4ea; border-radius: 10px; background: white; }.history-service > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-left: 4px solid #687284; padding: 10px 12px; }.history-service[data-service="MECANICA"] > header { border-left-color: var(--blue); }.history-service[data-service="PLANCHADO_PINTURA"] > header { border-left-color: var(--red); }.history-service[data-service="AROS"] > header { border-left-color: #7c4dcc; }.history-service > header span,.history-service > header strong { display: block; }.history-service > header span { color: #7b8493; font-size: .6rem; font-weight: 850; text-transform: uppercase; }.history-service > header strong { margin-top: 2px; font-size: .8rem; }.history-service > header > b { color: #586273; font-size: .68rem; }.history-process-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 1px; border-top: 1px solid #e4e8ed; background: #e4e8ed; }.history-process { display: flex; flex-direction: column; min-height: 170px; background: white; padding: 11px; }.history-process-head { display: flex; justify-content: space-between; gap: 8px; }.history-process-head span,.history-process-head small { display: block; }.history-process-head span { font-size: .72rem; font-weight: 900; text-transform: uppercase; }.history-process-head small { margin-top: 2px; color: #7b8493; font-size: .6rem; }.history-process-head .stage-status { flex: 0 0 auto; align-self: flex-start; }.history-task-list { flex: 1; margin-top: 10px; }.history-task-list > div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #eef0f3; padding: 7px 0; }.history-task-list > div:first-child { border-top: 0; }.history-task-list span,.history-task-list strong,.history-task-list small { display: block; }.history-task-list span:first-child { min-width: 0; color: #626c7b; font-size: .65rem; }.history-task-list span:first-child strong { overflow: hidden; color: #272d36; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }.history-task-list span:last-child { flex: 0 0 auto; text-align: right; }.history-task-list span:last-child b { font-size: .65rem; }.history-task-list span:last-child small { color: #7d8795; font-size: .58rem; }.history-process > footer { display: flex; justify-content: space-between; border-top: 1px solid #e9ecf0; padding-top: 8px; color: #6d7786; font-size: .63rem; }.history-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.history-technicians { display: grid; gap: 7px; }.history-technicians article { border: 1px solid #e0e4ea; border-radius: 8px; background: white; padding: 9px 10px; }.history-technicians strong,.history-technicians span,.history-technicians small { display: block; }.history-technicians strong { font-size: .73rem; }.history-technicians span { margin-top: 2px; color: #4e5868; font-size: .67rem; }.history-technicians small { margin-top: 3px; color: #818a98; font-size: .6rem; }.history-events { max-height: 240px; margin: 0; overflow-y: auto; list-style: none; padding: 0 0 0 4px; }.history-events li { display: grid; grid-template-columns: 12px 1fr; gap: 8px; padding: 0 0 10px; }.history-events i { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px #ffe7e9; }.history-events strong,.history-events span,.history-events small { display: block; }.history-events strong { font-size: .7rem; }.history-events span { margin-top: 2px; color: #707a8a; font-size: .61rem; }.history-events small { margin-top: 3px; color: #4f5968; font-size: .63rem; }.history-empty { color: #858e9c; font-size: .7rem; }.history-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px -18px -18px; border-top: 1px solid var(--line); background: white; padding: 12px 18px; }.history-actions > span { color: #778190; font-size: .68rem; }.history-actions > div { display: flex; gap: 7px; }
.task-dialog { width: min(620px, calc(100vw - 28px)); }
.confirm-dialog { width: min(520px, calc(100vw - 28px)); }.confirm-message { margin: 0; color: #4f5968; font-size: .95rem; line-height: 1.6; }.danger-confirm { min-height: 42px; border: 1px solid var(--red); border-radius: 10px; background: var(--red); color: white; padding: 0 16px; font-weight: 800; }.danger-confirm:hover { background: var(--red-dark); }
.toast { position: fixed; right: 24px; bottom: 24px; background: #181c24; color: white; padding: 13px 16px; border-radius: 10px; box-shadow: 0 12px 34px rgba(0,0,0,.25); z-index: 100; transform: translateY(100px); opacity: 0; transition: .22s ease; max-width: 360px; }.toast.show { transform: translateY(0); opacity: 1; }.toast.error { background: #9e1520; }
.mobile-overlay { display: none; }
@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .sync-badge { display: none; }
  .module-grid,.report-grid { grid-template-columns: 1fr 1fr; }
  .planned-grid { grid-template-columns: 1fr 1fr; }
  .availability-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .workboard-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }.work-unit-context,.history-order-context { grid-template-columns: 1fr 1fr; }.history-time-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sidebar { overflow-y:auto; transform: translateX(-100%); transition: transform .22s ease; }
  .nav-item.settings { flex:0 0 auto; margin:0 12px 18px; }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open .mobile-overlay { display: block; position: fixed; inset: 0; background: rgba(10,14,22,.48); z-index: 15; }
  main { margin-left: 0; }
  .topbar { padding: 0 14px; gap: 10px; }
  .menu-button { display: block; }
  .global-search kbd, .role-button { display: none; }
  .connection-badge { padding:6px 8px; font-size:.66rem; }
  .workspace { padding: 20px 14px; }
  .page-heading { align-items: flex-start; }
  .heading-actions .secondary { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 112px; padding: 15px; }.metric-icon { display: none; }.metric strong { font-size: 1.7rem; }
  .last-update { display: none; }
  .status-tab { padding: 10px 11px; font-size: .82rem; }
  .progress-body { flex-direction: column; gap: 24px; }
  .legend { width: 100%; min-width: 0; }
  .table-header { align-items: flex-start; }.table-actions select { max-width: 148px; min-width: 0; }
  .order-planning-actions { width: 100%; flex-wrap: wrap; }.order-planning-actions label { flex: 1; }.order-planning-actions input { width: 100%; }.order-planning-actions .primary { flex: 1; }
  .drawer-dialog { width: 100vw; }.form-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }.form-dialog .dialog-shell { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }.detail-grid,.settings-grid,.source-list { grid-template-columns: 1fr; }.status-row { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }.module-grid,.report-grid { grid-template-columns: 1fr; }.reconciliation { grid-template-columns: 1fr 1fr; }.photo-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-heading,.planning-section-title,.route-heading { align-items: flex-start; flex-direction: column; }.week-picker { width: 100%; }.week-picker label { flex: 1; }.week-picker input { width: 100%; }.planning-summary { grid-template-columns: 1fr 1fr; }.planned-grid { grid-template-columns: 1fr; }.candidate-section .planning-section-title > button { width: 100%; }.process-route { grid-auto-columns: minmax(270px,84vw); }.route-heading-actions { width: 100%; justify-content: flex-start; }.route-type-options { grid-template-columns: 1fr; }.route-type-option { min-height: 118px; }
  .availability-grid { grid-template-columns: 1fr 1fr; }.technician-controls { width: 100%; }.technician-controls label { flex: 1; }.technician-controls input,.technician-controls select { width: 100%; min-width: 0; }.technician-counters { grid-template-columns: 1fr 1fr; gap: 12px; }.tech-order-context { grid-template-columns: 1fr 1fr; }.tech-task-footer { align-items: flex-start; flex-direction: column; }.tech-task-actions { width: 100%; }.tech-task-actions button { flex: 1; }
  .work-board-controls,.history-controls { width: 100%; flex-wrap: wrap; }.work-board-controls label,.history-controls input,.history-controls select { flex: 1; min-width: 0; }.work-board-controls input { width: 100%; min-width: 0; }.workboard-summary,.history-kpis { grid-template-columns: 1fr 1fr; }.work-unit-context { grid-template-columns: 1fr 1fr; }.work-unit-actions,.history-actions { align-items: flex-start; flex-direction: column; }.work-unit-actions > div,.history-actions > div { width: 100%; }.work-unit-actions button,.history-actions button { flex: 1; }.history-order > summary { grid-template-columns: 1fr auto 20px; }.history-summary-services { grid-column: 1 / -1; grid-row: 2; }.history-total { grid-column: 2; grid-row: 1; }.history-chevron { grid-column: 3; grid-row: 1; }.history-lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .topbar { gap:7px; }.connection-badge { width:27px; overflow:hidden; padding:5px 7px; font-size:.74rem; }
  .metrics { grid-template-columns: 1fr; }
  .page-heading { display: block; }.heading-actions { margin-top: 14px; }.primary { width: 100%; }
  .status-tab:nth-child(3) { display: none; }
  .availability-grid,.service-board-grid { grid-template-columns: 1fr; }.technician-controls { flex-direction: column; }.tech-order-context { grid-template-columns: 1fr; }.tech-task-actions { flex-direction: column; }.photo-review-grid { grid-template-columns: 1fr; }.photo-summary { grid-template-columns: 1fr; }.photo-summary > div:last-child { text-align: left; }.planned-actions { grid-template-columns: 1fr; }.detail-shortcuts { align-items: stretch; flex-direction: column; }
  .work-board-controls,.history-controls { flex-direction: column; }.workboard-summary,.history-kpis,.workboard-services > div:last-child,.work-unit-context,.history-time-grid,.history-order-context { grid-template-columns: 1fr; }.work-unit-header { align-items: flex-start; }.work-unit-title { align-items: flex-start; flex-direction: column; gap: 6px; }.work-unit-header h2 { max-width: calc(100vw - 120px); font-size: .88rem; }.work-unit-actions > div,.history-actions > div { flex-direction: column; }.history-order > summary { grid-template-columns: 1fr 20px; }.history-total { grid-column: 1; grid-row: 2; text-align: left; }.history-summary-services { grid-column: 1 / -1; grid-row: 3; }.history-chevron { grid-column: 2; grid-row: 1; }.history-section-title { align-items: flex-start; flex-direction: column; }.history-process-list { grid-template-columns: 1fr; }
}

/* Control operativo fase 1 */
.dashboard-update { text-align: right; margin: -12px 0 10px; }
.operation-counters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.operation-counter { min-height: 118px; padding: 18px 20px; border: 1px solid var(--line); border-top: 4px solid currentColor; border-radius: 13px; background: white; text-align: left; color: var(--blue); box-shadow: 0 7px 22px rgba(25,33,49,.04); }
.operation-counter.amber { color: var(--amber); }.operation-counter.red { color: var(--red); }.operation-counter.active { outline: 3px solid color-mix(in srgb,currentColor 20%,transparent); }
.operation-counter span,.operation-counter small { display:block; color:#5d6778; font-weight:700; }.operation-counter strong { display:block; color:#171a22; font-size:2rem; margin:5px 0; }
.operation-panel { overflow:hidden; margin-bottom:24px; }.planning-buckets { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }.bucket-button { border:1px solid #d8dde5; background:white; border-radius:999px; padding:6px 10px; font-size:.72rem; }.bucket-button.active { background:#171a22; color:white; border-color:#171a22; }
.operation-list article { display:grid; grid-template-columns:1.1fr 1fr 1fr 1.15fr; gap:16px; align-items:center; padding:14px 20px; border-top:1px solid #edf0f3; font-size:.8rem; }.operation-list article:first-child { border-top:0; }.operation-list strong,.operation-list small { display:block; }.operation-list small { color:#778091; margin-top:3px; }.operation-unit button { border:0; padding:0; background:transparent; color:var(--blue); font-weight:850; font-size:1rem; }.operation-unit span { display:block; color:#626d7e; margin-top:3px; }
.production-section { margin-bottom:20px; }.section-heading { display:flex; justify-content:space-between; margin:0 0 12px; }.section-heading h2 { margin:0; }.production-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }.production-card { overflow:hidden; }.production-card header { display:flex; justify-content:space-between; align-items:center; padding:18px; border-top:4px solid var(--blue); }.production-card header span { color:#7a8495; font-size:.72rem; }.production-card h3 { margin:3px 0 0; font-size:.98rem; }.production-card header>strong { font-size:1.8rem; }.production-kpis { display:grid; grid-template-columns:repeat(3,1fr); border-block:1px solid var(--line); }.production-kpis span { padding:10px; font-size:.7rem; color:#707b8c; text-align:center; }.production-kpis b { display:block; color:#20252e; margin-top:3px; }.production-stages { padding:10px 17px; max-height:190px; overflow:auto; }.production-stages div { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid #f0f2f5; font-size:.75rem; }.production-card footer { padding:11px 17px; background:#f8f9fb; color:#667183; font-size:.72rem; }
.service-choice { border:1px solid var(--line); border-radius:10px; display:flex; gap:18px; flex-wrap:wrap; padding:12px; }.service-choice legend { color:#5f6878; font-size:.79rem; font-weight:750; }.service-choice label { display:flex; align-items:center; gap:7px; }.service-choice input { width:auto; margin:0; }
.operational-four { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:14px 0; }.operational-four article { border:1px solid var(--line); border-top:3px solid var(--blue); border-radius:10px; padding:11px; }.operational-four article.alert { border-top-color:var(--red); background:#fff8f8; }.operational-four span { display:block; color:#788294; font-size:.68rem; text-transform:uppercase; font-weight:800; }.operational-four strong { display:block; margin-top:5px; font-size:.78rem; line-height:1.35; }.detail-dl-wide { grid-template-columns:110px 1fr 110px 1fr!important; }.operation-form { margin-top:12px; }.operation-form>button { margin-top:14px; }
.detail-stage-list { display:grid; gap:8px; }.detail-stage-list>article { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px solid var(--line); border-left:4px solid #9ba3af; border-radius:9px; padding:11px; }.detail-stage-list>article[data-status="En proceso"] { border-left-color:var(--blue); }.detail-stage-list>article[data-status="Completado"] { border-left-color:var(--green); }.detail-stage-list>article[data-status="Bloqueado"] { border-left-color:var(--red); }.detail-stage-list span,.detail-stage-list small { display:block; color:#768092; font-size:.7rem; }.detail-stage-list strong { display:block; margin:2px 0; }.stage-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }.stage-action,.rework-action,.route-rework { border:1px solid #d8dde5; background:white; border-radius:7px; padding:6px 8px; font-size:.68rem; font-weight:750; }.rework-action,.route-rework { color:var(--red); border-color:#f0b4ba; }
.stage-detail-main { flex:1; min-width:0; }.stage-task-quick-list { display:grid; gap:6px; margin-top:8px; }.stage-task-quick { display:grid; grid-template-columns:minmax(150px,1fr) auto auto auto; align-items:center; gap:10px; padding:8px 9px; border:1px solid #e1e5ec; border-radius:8px; background:#f8fafc; }.stage-task-quick b { display:block; font-size:.78rem; }.stage-task-quick small { margin-top:2px; }.task-quick-time { color:#22324a; font-size:.7rem; white-space:nowrap; }.task-quick-status { padding:4px 7px; border-radius:999px; background:#edf1f6; color:#586174!important; font-weight:750; white-space:nowrap; }.task-quick-status[data-task-status="En proceso"] { background:#e8f0ff; color:#1259bf!important; }.task-quick-status[data-task-status="Terminada"] { background:#e8f7ee; color:#14833b!important; }.task-quick-status[data-task-status="Bloqueada"] { background:#fdebed; color:#bd1e2c!important; }.task-quick-actions { display:flex; gap:5px; }.task-quick-action { border:1px solid #b8c5d8; background:white; color:#194f9b; border-radius:7px; padding:6px 9px; font-size:.7rem; font-weight:800; }.task-quick-action.finish { background:#16833f; border-color:#16833f; color:white; }.task-finished { color:#16833f!important; font-weight:800; white-space:nowrap; }
.detail-time-card { display:grid; gap:12px; }.detail-service-times { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }.detail-service-times article { border:1px solid #dce3ed; border-left:4px solid var(--red); border-radius:9px; background:#f8fafc; padding:11px 12px; }.detail-service-times span,.detail-service-times strong,.detail-service-times small { display:block; }.detail-service-times span { color:#687386; font-size:.7rem; font-weight:750; }.detail-service-times strong { margin-top:3px; color:#17253a; font-size:1.12rem; }.detail-service-times small { margin-top:2px; color:#858e9c; font-size:.62rem; }.detail-task-times { display:grid; gap:6px; }.detail-time-row { display:grid; grid-template-columns:minmax(170px,1fr) minmax(95px,.55fr) auto minmax(105px,auto); align-items:center; gap:10px; border:1px solid #e2e6ed; border-radius:8px; padding:9px 10px; }.detail-time-row>div strong,.detail-time-row>div small { display:block; }.detail-time-row>div strong { font-size:.76rem; }.detail-time-row>div small { margin-top:2px; color:#778293; font-size:.64rem; }.detail-time-row>span:not(.task-quick-status) { color:#334157; font-size:.7rem; font-weight:700; }.detail-time-row>b { color:#17253a; font-size:.7rem; text-align:right; white-space:nowrap; }
.rework-list { display:grid; gap:8px; }.rework-list article { display:flex; justify-content:space-between; gap:12px; padding:11px; border:1px solid var(--line); border-radius:9px; }.rework-list article.active { background:#fff8e8; border-color:#f0ce88; }.rework-list span,.rework-list small { display:block; color:#707a8b; margin-top:3px; font-size:.72rem; }.resolve-rework { margin-top:5px; border:1px solid var(--green); color:var(--green); background:white; border-radius:7px; padding:5px 8px; }
.order-filters { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:8px; padding:12px 16px; border-bottom:1px solid var(--line); background:#fafbfc; }.order-filters input,.order-filters select { min-width:0; min-height:38px; border:1px solid #d8dde5; border-radius:8px; background:white; padding:0 10px; }
.order-client>strong,.order-client>small,.order-description { display:block; }.order-client>small { margin-top:2px; }.order-description { max-width:420px; margin-top:7px; color:#596476; font-size:.74rem; line-height:1.35; }.order-description b { color:#2e3540; }.detail-work-description { max-width:760px; margin-top:8px!important; color:#3f4856!important; font-size:.8rem; line-height:1.4; }
.vehicle-identity { display:inline-flex; max-width:100%; align-items:center; gap:7px; color:#566071; white-space:nowrap; vertical-align:middle; }
.vehicle-plate { flex:0 0 auto; color:#202631; font-size:.95rem; font-weight:850; letter-spacing:.035em; }
.identity-open { border:0!important; background:transparent!important; padding:0!important; color:#202631!important; text-align:left; }
.identity-open:hover { color:var(--blue)!important; text-decoration:underline; }
.vehicle-identity-rest { display:inline-flex; min-width:0; align-items:center; gap:7px; color:#626d7e; font-size:.78rem; font-weight:650; }
.vehicle-identity-rest > span { display:inline!important; color:inherit!important; margin:0!important; }
.vehicle-identity-rest i { color:#a0a7b2; font-style:normal; }
.vehicle-os { color:var(--blue)!important; font-size:.88rem; font-weight:900; }
.operation-unit .vehicle-identity,.operation-unit .vehicle-identity-rest { display:inline-flex; margin:0; }
.detail-identity,.ficha-identity,.planned-identity { margin:5px 0; }
.detail-identity .vehicle-plate,.ficha-identity .vehicle-plate { font-size:1.08rem; }
.detail-identity .vehicle-os,.ficha-identity .vehicle-os { font-size:1rem; }
.ficha-identity { margin-bottom:14px; border-radius:8px; background:#f5f7fa; padding:10px 11px; }
.planned-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.planned-identity { overflow-x:auto; padding-bottom:2px; }
.route-heading h2 .vehicle-identity { font-size:inherit; }
.history-identity .vehicle-identity,.history-identity .vehicle-identity-rest { display:inline-flex; margin:0; }
.history-identity .vehicle-identity-rest > span { display:inline!important; }
.history-identity > small { display:block; margin-top:5px; color:#707a8a; font-size:.72rem; }
.calendar-grid { grid-template-columns:1fr; }.calendar-order { align-items:center; }.calendar-order .vehicle-identity { flex:1; }
.report-orders { margin-top:14px; }.report-orders .table-header input { width:min(360px,45vw); min-height:38px; border:1px solid #d8dde5; border-radius:8px; padding:0 10px; }
.onedrive-link { color:var(--blue); font-weight:800; }.backup-card label { display:block; margin:12px 0; color:#626d7e; font-size:.76rem; font-weight:800; }.backup-card input { display:block; width:100%; min-height:40px; margin-top:5px; border:1px solid #d8dde5; border-radius:8px; padding:0 10px; }.settings-actions { display:flex; flex-wrap:wrap; gap:8px; }.backup-warning { color:var(--red); }
.orders-planning-table { min-width:1180px; }.orders-planning-table th:first-child,.orders-planning-table td:first-child { min-width:510px; }.orders-planning-table th:nth-child(2),.orders-planning-table td:nth-child(2) { min-width:330px; }.orders-planning-table th:nth-child(4),.orders-planning-table td:nth-child(4) { min-width:230px; }
.table-panel table th:first-child,.table-panel table td:first-child { min-width:510px; }
@media (max-width:1100px) { .production-grid { grid-template-columns:1fr; }.operation-list article { grid-template-columns:1fr 1fr; }.operational-four { grid-template-columns:1fr 1fr; }.detail-dl-wide { grid-template-columns:100px 1fr!important; } }
@media (max-width:700px) { .operation-counters { grid-template-columns:1fr; }.operation-counter { min-height:88px; }.operation-list article { grid-template-columns:1fr; }.operational-four { grid-template-columns:1fr; }.planning-buckets { justify-content:flex-start; }.detail-stage-list>article,.rework-list article { align-items:flex-start; flex-direction:column; }.stage-actions { justify-content:flex-start; }.stage-task-quick { grid-template-columns:1fr; width:100%; }.task-quick-actions { width:100%; }.task-quick-action { flex:1; }.service-choice { display:grid; }.production-stages { max-height:none; }.order-filters { grid-template-columns:1fr; }.vehicle-identity,.operation-unit .vehicle-identity,.history-identity .vehicle-identity { display:grid; justify-items:start; gap:3px; white-space:normal; }.vehicle-identity-rest,.operation-unit .vehicle-identity-rest,.history-identity .vehicle-identity-rest { display:flex; flex-wrap:wrap; gap:3px 5px; font-size:.7rem; }.vehicle-plate { font-size:1rem; }.vehicle-os { font-size:.76rem; }.report-orders .table-header { flex-direction:column; align-items:stretch; }.report-orders .table-header input { width:100%; }.planned-grid { grid-template-columns:1fr; } }
@media (max-width:900px) { .detail-service-times { grid-template-columns:1fr 1fr; } }
@media (max-width:700px) { .detail-service-times { grid-template-columns:1fr; }.detail-time-row { grid-template-columns:1fr auto; }.detail-time-row>span:not(.task-quick-status) { grid-column:1; }.detail-time-row>.task-quick-status { grid-column:2; grid-row:1; }.detail-time-row>b { grid-column:2; grid-row:2; } }
@media (max-width:700px) { .process-board-controls { width:100%; display:grid; grid-template-columns:1fr; }.process-board-controls input,.process-board-controls label:last-child input { width:100%; min-width:0; }.process-board-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }.process-board-summary article:last-child { grid-column:1/-1; }.process-filter-bar { align-items:stretch; flex-direction:column; }.process-filter-bar select { width:100%; }.process-filter-bar span { margin-left:0; }.process-board-table .table-scroll { max-height:calc(100vh - 310px); overflow:auto; }.process-unit-cell .vehicle-identity { display:flex; align-items:center; min-width:225px; }.process-unit-cell .vehicle-identity-rest { display:flex; flex-wrap:nowrap; } }
.process-board-shell { overflow:hidden; }.process-vehicle-board { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(250px,calc((100% - 30px)/4)); align-items:start; gap:10px; overflow-x:auto; padding:10px; scroll-snap-type:x proximity; }.process-vehicle-column { overflow:hidden; border:1px solid #dce1e8; border-radius:10px; background:#f5f7fa; scroll-snap-align:start; }.process-vehicle-header { min-height:92px; border-bottom:1px solid #dfe4ea; background:white; padding:11px 12px; }.process-vehicle-header .vehicle-identity { display:flex; flex-wrap:wrap; gap:4px 6px; white-space:normal; }.process-vehicle-header .vehicle-plate { font-size:1rem; }.process-vehicle-header .vehicle-identity-rest { display:flex; flex-wrap:wrap; gap:3px 5px; font-size:.67rem; }.process-vehicle-header p { display:-webkit-box; margin:7px 0 0; overflow:hidden; color:#6d7787; font-size:.67rem; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }.process-column-services { display:grid; gap:9px; padding:9px; }.process-column-service { overflow:hidden; border:1px solid #dfe4ea; border-radius:9px; background:white; }.process-column-service>header { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #e4e8ed; background:#f8fafc; padding:7px 9px; }.process-column-service>header strong { color:#596374; font-size:.65rem; text-transform:uppercase; }.process-column-service>header span { border-radius:999px; background:#e9edf2; color:#606b7a; padding:3px 6px; font-size:.58rem; font-weight:850; }.process-column-service>div { display:grid; gap:1px; background:#e7ebf0; }.process-board-card { min-height:94px; background:white; padding:8px; }.process-board-card>header { display:flex; align-items:center; gap:7px; margin-bottom:7px; }.process-card-number { display:grid; flex:0 0 25px; height:25px; place-items:center; border-radius:7px; background:#19202d; color:white; font-size:.66rem; font-weight:900; }.process-board-card>header strong,.process-board-card>header small { display:block; }.process-board-card>header strong { font-size:.72rem; }.process-board-card>header small { margin-top:1px; color:#7b8493; font-size:.58rem; }.process-board-card[data-status="En proceso"] { box-shadow:inset 3px 0 0 var(--blue); }.process-board-card[data-status="Completado"] { box-shadow:inset 3px 0 0 var(--green); }.process-board-card[data-status="Pausado"] { box-shadow:inset 3px 0 0 var(--amber); }.process-card-task { border:1px solid #e1e5eb; border-radius:7px; background:#fafbfc; padding:7px; }.process-card-task+.process-card-task { margin-top:5px; }.process-card-task-head { display:flex; justify-content:space-between; align-items:start; gap:5px; }.process-card-task-head strong,.process-card-task-head span { display:block; }.process-card-task-head strong { font-size:.68rem; }.process-card-task-head span { margin-top:2px; color:#596474; font-size:.62rem; font-weight:750; }.process-card-task-head .process-row-status { padding:3px 5px; font-size:.55rem; }.process-card-task>p { margin:5px 0 0; color:#737d8c; font-size:.6rem; line-height:1.35; }.process-card-task-foot { display:flex; align-items:end; justify-content:space-between; gap:6px; margin-top:6px; }.process-card-task-foot>span { color:#647083; font-size:.57rem; font-weight:750; }.process-card-task-foot .process-row-actions { flex-wrap:wrap; justify-content:flex-end; }.process-card-task-foot .process-row-actions button { min-height:27px; padding:0 6px; font-size:.58rem; }.process-card-empty { display:grid; gap:7px; color:#87909e; font-size:.62rem; text-align:center; }.process-card-empty button { min-height:31px; border:1px solid var(--red); border-radius:7px; background:var(--red); color:white; padding:0 7px; font-size:.61rem; font-weight:850; }
@media (max-width:700px) { .process-vehicle-board { grid-auto-columns:minmax(250px,86vw); }.process-vehicle-header { min-height:84px; } }

/* Dashboard operativo */
.dashboard-filter-panel { margin-bottom:16px; padding:14px 16px; }
.dashboard-filters { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }
.dashboard-filters>label,.dashboard-custom-dates label { display:grid; gap:5px; color:#626d7e; font-size:.68rem; font-weight:850; }
.dashboard-filters select,.dashboard-filters input { min-width:168px; height:40px; border:1px solid #d8dde5; border-radius:9px; background:white; color:#202631; padding:0 10px; }
.dashboard-custom-dates { display:flex; gap:8px; }
.dashboard-filter-panel .dashboard-update { margin:9px 0 -3px; padding:0; }
.dashboard-message { display:grid; justify-items:center; gap:8px; margin-bottom:16px; padding:28px; color:#6e7889; text-align:center; }
.dashboard-message strong { color:#2c3441; }.dashboard-message button { margin-top:5px; }
.dashboard-metrics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:11px; margin-bottom:16px; }
.dashboard-metric { position:relative; min-height:142px; overflow:hidden; border:1px solid var(--line); border-top:4px solid #8b95a5; border-radius:13px; background:white; padding:16px; text-align:left; box-shadow:0 7px 22px rgba(25,33,49,.04); }
.dashboard-metric:hover { transform:translateY(-1px); box-shadow:0 10px 24px rgba(25,33,49,.08); }
.dashboard-metric.blue { border-top-color:var(--blue); }.dashboard-metric.red { border-top-color:var(--red); }.dashboard-metric.green { border-top-color:var(--green); }.dashboard-metric.amber { border-top-color:var(--amber); }.dashboard-metric.purple { border-top-color:#7c4dcc; }
.dashboard-metric>span { display:block; min-height:35px; color:#687386; font-size:.74rem; font-weight:800; line-height:1.3; }
.dashboard-metric>strong { display:block; margin:5px 0 4px; color:#171a22; font-size:1.72rem; line-height:1; }
.dashboard-metric>small { display:block; color:#87909f; font-size:.66rem; line-height:1.3; }
.dashboard-variation { display:block; margin-top:9px; color:#687386; font-size:.61rem; font-weight:800; }.dashboard-variation.positive { color:#16833f; }.dashboard-variation.negative { color:#bd1e2c; }
.dashboard-chart-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:14px; margin-bottom:14px; }
.dashboard-chart-card { min-height:342px; overflow:hidden; }.dashboard-chart-card>.panel-title,.dashboard-productivity>.panel-title,.dashboard-trend>.panel-title { padding:16px 18px; }
.donut-layout { display:grid; grid-template-columns:200px minmax(0,1fr); align-items:center; gap:20px; padding:22px; }
.status-donut { position:relative; display:grid; width:190px; height:190px; place-items:center; border:0; border-radius:50%; background:#edf0f4; }
.status-donut::after { position:absolute; width:112px; height:112px; border-radius:50%; background:white; content:""; }
.status-donut>span { z-index:1; color:#6a7485; font-size:.7rem; font-weight:800; text-align:center; }.status-donut strong { display:block; color:#1c2430; font-size:1.8rem; }
.donut-legend { display:grid; gap:5px; }.donut-legend button { display:grid; grid-template-columns:9px 1fr auto 44px; align-items:center; gap:8px; border:0; border-radius:7px; background:transparent; padding:7px; color:#465164; text-align:left; }.donut-legend button:hover { background:#f5f7fa; }.donut-legend i { width:9px; height:9px; border-radius:50%; }.donut-legend span { font-size:.72rem; font-weight:750; }.donut-legend b { color:#202631; }.donut-legend small { color:#7f8998; text-align:right; }
.horizontal-bars { display:grid; gap:11px; padding:18px; }.horizontal-bar-row { display:grid; grid-template-columns:minmax(155px,1.05fr) minmax(120px,1fr) 28px; align-items:center; gap:10px; border:0; border-radius:8px; background:transparent; padding:6px; text-align:left; }.horizontal-bar-row:hover { background:#f6f8fb; }.horizontal-bar-row>span { color:#465164; font-size:.7rem; font-weight:750; line-height:1.25; }.horizontal-bar-row>b { color:#202631; text-align:right; }.bar-track { height:10px; overflow:hidden; border-radius:999px; background:#edf0f4; }.bar-track i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--red),#f04451); }
.dashboard-productivity,.dashboard-trend { overflow:hidden; margin-bottom:14px; }
.top-technician-card { display:grid; grid-template-columns:minmax(220px,1fr) auto; gap:3px 18px; border-bottom:1px solid var(--line); background:#f8fafc; padding:16px 19px; }.top-technician-card>span { grid-column:1/-1; color:#7b8595; font-size:.68rem; font-weight:850; text-transform:uppercase; }.top-technician-card>strong { color:#162033; font-size:1.15rem; }.top-technician-card>div { grid-column:2; grid-row:2/4; text-align:right; }.top-technician-card>div b { display:block; color:var(--red); font-size:1.6rem; }.top-technician-card>div small { color:#778191; font-size:.62rem; }.top-technician-card>p { margin:3px 0 0; color:#657083; font-size:.7rem; }
.productivity-bars { display:grid; }.productivity-row { display:grid; grid-template-columns:28px minmax(145px,.8fr) minmax(180px,1.2fr) 52px minmax(260px,1fr); align-items:center; gap:12px; padding:11px 18px; border-top:1px solid #edf0f3; }.productivity-row:first-child { border-top:0; }.rank-number { display:grid; width:25px; height:25px; place-items:center; border-radius:7px; background:#18202d; color:white; font-size:.68rem; }.productivity-name strong,.productivity-name span { display:block; }.productivity-name strong { font-size:.78rem; }.productivity-name span { margin-top:2px; color:#7a8494; font-size:.63rem; }.productivity-track { height:9px; overflow:hidden; border-radius:999px; background:#eef1f5; }.productivity-track i { display:block; height:100%; border-radius:999px; background:var(--blue); }.productivity-index { color:#153f85; text-align:right; }.productivity-detail { display:flex; gap:12px; justify-content:flex-end; color:#606c7e; font-size:.64rem; font-weight:750; }
.dashboard-empty { display:grid; justify-items:center; gap:5px; padding:38px 18px; color:#7a8494; font-size:.72rem; text-align:center; }.dashboard-empty strong { color:#3b4554; }.dashboard-empty.compact { border-bottom:1px solid var(--line); padding:18px; }
#trendChart { padding:10px 16px 4px; }.trend-legend { display:flex; justify-content:flex-end; gap:16px; padding:5px 4px 0; color:#697486; font-size:.68rem; font-weight:750; }.trend-legend span { display:flex; align-items:center; gap:5px; }.trend-legend i { width:12px; height:3px; border-radius:4px; }.trend-legend .entries { background:#2166d1; }.trend-legend .completed { background:#16833f; }.trend-scroll { overflow-x:auto; }.trend-svg { display:block; width:100%; min-width:650px; height:auto; }.trend-grid line { stroke:#e9edf2; stroke-width:1; }.trend-grid text { fill:#7d8796; font-size:9px; }.trend-line { fill:none; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }.trend-line.entries { stroke:#2166d1; }.trend-line.completed { stroke:#16833f; }
.dashboard-alert-section { margin-bottom:10px; }.dashboard-alert-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }.dashboard-alert-card { overflow:hidden; border:1px solid var(--line); border-top:3px solid #8b95a5; border-radius:11px; background:white; }.dashboard-alert-card.red { border-top-color:var(--red); }.dashboard-alert-card.amber { border-top-color:var(--amber); }.dashboard-alert-card.blue { border-top-color:var(--blue); }.dashboard-alert-card.purple { border-top-color:#7c4dcc; }.dashboard-alert-card header { display:flex; justify-content:space-between; align-items:center; padding:11px 12px; border-bottom:1px solid #edf0f3; }.dashboard-alert-card header span { color:#4c5769; font-size:.68rem; font-weight:850; }.dashboard-alert-card header strong { display:grid; min-width:24px; height:24px; place-items:center; border-radius:999px; background:#f0f2f5; font-size:.68rem; }.dashboard-alert-card>div { max-height:190px; overflow:auto; }.dashboard-alert-card button { display:block; width:100%; border:0; border-top:1px solid #f0f2f5; background:white; padding:9px 11px; text-align:left; }.dashboard-alert-card button:first-child { border-top:0; }.dashboard-alert-card button:hover { background:#f8fafc; }.dashboard-alert-card button b,.dashboard-alert-card button small { display:block; }.dashboard-alert-card button b { overflow:hidden; font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }.dashboard-alert-card button small { margin-top:3px; color:#7a8494; font-size:.6rem; }.dashboard-alert-card p { margin:0; padding:16px 11px; color:#9098a5; font-size:.65rem; text-align:center; }
@media (max-width:1350px) { .dashboard-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }.dashboard-alert-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:1050px) { .dashboard-chart-grid { grid-template-columns:1fr; }.dashboard-alert-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.productivity-row { grid-template-columns:28px minmax(140px,.8fr) minmax(130px,1fr) 48px; }.productivity-detail { grid-column:2/-1; justify-content:flex-start; } }
@media (max-width:700px) { .dashboard-filter-panel { padding:12px; }.dashboard-filters,.dashboard-custom-dates { display:grid; grid-template-columns:1fr; width:100%; }.dashboard-filters>label,.dashboard-custom-dates label,.dashboard-filters select,.dashboard-filters input { width:100%; min-width:0; }.dashboard-filters .icon-button { width:100%; }.dashboard-metrics { grid-template-columns:1fr 1fr; }.dashboard-metric { min-height:126px; }.donut-layout { grid-template-columns:1fr; justify-items:center; }.donut-legend { width:100%; }.horizontal-bar-row { grid-template-columns:1fr 28px; }.horizontal-bar-row .bar-track { grid-column:1; grid-row:2; }.horizontal-bar-row>b { grid-column:2; grid-row:1/3; }.top-technician-card { grid-template-columns:1fr; }.top-technician-card>div { grid-column:1; grid-row:auto; text-align:left; }.productivity-row { grid-template-columns:28px 1fr 46px; }.productivity-track { grid-column:2/-1; }.productivity-detail { grid-column:2/-1; flex-wrap:wrap; gap:7px; }.dashboard-alert-grid { grid-template-columns:1fr; } }
@media (max-width:430px) { .dashboard-metrics { grid-template-columns:1fr; } }

/* Reportes históricos */
.report-filter-panel { overflow:hidden; margin-bottom:14px; }.report-quick-ranges { display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--line); padding:12px 16px; }.report-quick-ranges button { min-height:34px; border:1px solid #d8dde5; border-radius:999px; background:white; color:#566173; padding:0 12px; font-size:.69rem; font-weight:800; }.report-quick-ranges button.active { border-color:#1c2431; background:#1c2431; color:white; }.report-filter-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; padding:14px 16px; }.report-filter-grid label { display:grid; gap:5px; color:#657083; font-size:.65rem; font-weight:850; }.report-filter-grid input,.report-filter-grid select { width:100%; min-width:0; height:39px; border:1px solid #d8dde5; border-radius:8px; background:white; padding:0 9px; color:#202631; }.report-filter-panel>footer { display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid var(--line); background:#fafbfc; padding:11px 16px; }.report-filter-panel>footer>span { color:#788293; font-size:.68rem; }.report-filter-panel>footer>div { display:flex; gap:7px; }
.report-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }.report-summary-card { min-height:128px; border:1px solid var(--line); border-top:4px solid #8792a2; border-radius:12px; background:white; padding:15px; text-align:left; box-shadow:0 6px 18px rgba(26,33,47,.04); }.report-summary-card:hover { transform:translateY(-1px); box-shadow:0 9px 22px rgba(26,33,47,.08); }.report-summary-card.completed,.report-summary-card.ontime { border-top-color:var(--green); }.report-summary-card.progress,.report-summary-card.hours { border-top-color:var(--blue); }.report-summary-card.delayed { border-top-color:var(--red); }.report-summary-card.average,.report-summary-card.top { border-top-color:#7c4dcc; }.report-summary-card>span,.report-summary-card>strong,.report-summary-card>small,.report-summary-card>em { display:block; }.report-summary-card>span { min-height:32px; color:#697487; font-size:.7rem; font-weight:850; }.report-summary-card>strong { margin:4px 0; color:#18202d; font-size:1.48rem; line-height:1.12; }.report-summary-card>small { color:#89919f; font-size:.62rem; }.report-variation { margin-top:8px; color:#707a8a; font-size:.6rem; font-style:normal; font-weight:800; }.report-variation.positive { color:#16833f; }.report-variation.negative { color:#bd1e2c; }
.report-two-columns { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(340px,.75fr); gap:14px; margin-bottom:14px; }.report-analysis-card,.report-table-card,.report-process-card,.report-detail { overflow:hidden; }.report-analysis-card .panel-title select,.report-table-card .panel-title select,.report-process-card .panel-title select { height:36px; max-width:260px; border:1px solid #d8dde5; border-radius:8px; background:white; padding:0 9px; font-size:.7rem; }.report-chart-legend { display:flex; justify-content:flex-end; gap:15px; padding:10px 18px 0; color:#657083; font-size:.65rem; font-weight:800; }.report-chart-legend span { display:flex; align-items:center; gap:5px; }.report-chart-legend i { width:12px; height:3px; border-radius:5px; }.report-chart-scroll { overflow-x:auto; padding:0 10px 7px; }.report-trend-svg { display:block; width:100%; min-width:700px; height:auto; }.report-trend-svg line { stroke:#e8ecf1; }.report-trend-svg text { fill:#7c8695; font-size:9px; }.report-trend-svg polyline { fill:none; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }.report-trend-point { cursor:pointer; }.report-trend-point:hover { r:7; }
.report-donut-layout { display:grid; grid-template-columns:180px 1fr; align-items:center; gap:15px; padding:24px 18px; }.report-donut { position:relative; display:grid; width:174px; height:174px; place-items:center; border:0; border-radius:50%; background:#edf0f4; }.report-donut::after { position:absolute; width:103px; height:103px; border-radius:50%; background:white; content:""; }.report-donut>span { z-index:1; color:#6d7788; font-size:.66rem; font-weight:800; text-align:center; }.report-donut>span strong { display:block; color:#1a2230; font-size:1.55rem; }.report-donut-legend { display:grid; gap:3px; }.report-donut-legend button { display:grid; grid-template-columns:8px 1fr auto 39px; align-items:center; gap:6px; border:0; border-radius:6px; background:transparent; padding:6px; text-align:left; }.report-donut-legend button:hover { background:#f5f7fa; }.report-donut-legend i { width:8px; height:8px; border-radius:50%; }.report-donut-legend span { color:#526073; font-size:.66rem; font-weight:750; }.report-donut-legend b { font-size:.72rem; }.report-donut-legend small { color:#89919e; font-size:.6rem; text-align:right; }
.report-table-card { margin-bottom:14px; }.report-table-scroll { max-height:520px; overflow:auto; }.report-table-scroll table { min-width:1220px; width:100%; border-collapse:collapse; }.report-table-scroll thead { position:sticky; top:0; z-index:2; }.report-table-scroll th { background:#f7f9fb; color:#697386; font-size:.64rem; text-align:left; text-transform:uppercase; }.report-table-scroll th,.report-table-scroll td { border-bottom:1px solid #e9edf2; padding:10px 11px; vertical-align:middle; }.report-table-scroll td { color:#3f4a5b; font-size:.7rem; }.report-table-scroll tbody tr { cursor:pointer; }.report-table-scroll tbody tr:hover { background:#f8fafc; }.report-unit strong,.report-unit small { display:block; }.report-unit strong { color:#17202e; font-size:.73rem; }.report-unit small { margin-top:3px; color:#627087; font-size:.65rem; font-weight:750; }.report-progress { position:relative; min-width:85px; height:18px; overflow:hidden; border-radius:999px; background:#edf1f5; }.report-progress i { display:block; height:100%; background:#dbe7ff; }.report-progress span { position:absolute; inset:0; display:grid; place-items:center; color:#214f9c; font-size:.58rem; font-weight:900; }.report-state { display:inline-block; border-radius:999px; background:#eef1f5; padding:4px 7px; font-size:.6rem; font-weight:850; white-space:nowrap; }.report-state[data-state="En proceso"] { background:#e7efff; color:#1859bd; }.report-state[data-state="Retrasadas"] { background:#fdebed; color:#b51d2a; }.report-state[data-state="Pausadas"] { background:#fff1db; color:#8f5809; }.report-state[data-state="Culminadas"] { background:#e8f7ee; color:#14753a; }.report-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 16px; background:#fafbfc; color:#6e7889; font-size:.68rem; }.report-pagination>div { display:flex; align-items:center; gap:9px; }.report-pagination button { min-height:32px; padding:0 10px; font-size:.66rem; }
.technician-section { grid-template-columns:1fr 1fr; }.report-bars { display:grid; gap:7px; padding:14px 17px; max-height:390px; overflow:auto; }.report-bar-row { display:grid; grid-template-columns:minmax(140px,.85fr) minmax(120px,1fr) 55px; align-items:center; gap:9px; border:0; border-radius:7px; background:transparent; padding:7px; text-align:left; }.report-bar-row:hover { background:#f6f8fb; }.report-bar-row>span { color:#4c586b; font-size:.68rem; font-weight:800; }.report-bar-row>div { height:9px; overflow:hidden; border-radius:999px; background:#edf1f5; }.report-bar-row>div i { display:block; height:100%; border-radius:999px; background:var(--blue); }.report-bar-row.process>div i { background:var(--red); }.report-bar-row>b { color:#243044; font-size:.68rem; text-align:right; }.report-ranking { display:grid; }.report-ranking article { display:grid; grid-template-columns:28px 1fr 52px minmax(130px,.7fr); align-items:center; gap:9px; border-top:1px solid #edf0f3; padding:10px 14px; }.report-ranking article:first-child { border-top:0; }.report-ranking article>b { display:grid; width:25px; height:25px; place-items:center; border-radius:7px; background:#1a2230; color:white; font-size:.65rem; }.report-ranking article div strong,.report-ranking article div span { display:block; }.report-ranking article div strong { font-size:.72rem; }.report-ranking article div span { margin-top:2px; color:#7b8595; font-size:.59rem; }.report-ranking article>em { color:var(--red); font-size:.9rem; font-style:normal; font-weight:900; text-align:right; }.report-ranking article>small { color:#657083; font-size:.6rem; text-align:right; }.report-process-card { margin-bottom:14px; }.process-bars { grid-template-columns:1fr 1fr; }.report-process-card .report-bar-row { grid-template-columns:minmax(180px,1fr) minmax(150px,1fr) 35px; }
.report-table-scroll tr[data-delay="yellow"] { box-shadow:inset 4px 0 0 #e2b320; }.report-table-scroll tr[data-delay="orange"] { box-shadow:inset 4px 0 0 #e07810; }.report-table-scroll tr[data-delay="red"] { box-shadow:inset 4px 0 0 var(--red); }.report-detail { scroll-margin-top:90px; }.report-detail .panel-title button { min-height:32px; }.report-detail small { display:block; margin-top:3px; color:#748093; }
@media (max-width:1250px) { .report-filter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.report-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.report-two-columns,.technician-section { grid-template-columns:1fr; }.report-donut-layout { grid-template-columns:180px minmax(0,1fr); }.process-bars { grid-template-columns:1fr; } }
@media (max-width:700px) { .report-filter-grid { grid-template-columns:1fr 1fr; }.report-filter-panel>footer { align-items:flex-start; flex-direction:column; }.report-filter-panel>footer>div { width:100%; }.report-filter-panel>footer button { flex:1; }.report-summary-grid { grid-template-columns:1fr 1fr; }.report-donut-layout { grid-template-columns:1fr; justify-items:center; }.report-donut-legend { width:100%; }.report-analysis-card .panel-title,.report-table-card .panel-title,.report-process-card .panel-title { align-items:stretch; flex-direction:column; }.report-analysis-card .panel-title select,.report-table-card .panel-title select,.report-process-card .panel-title select { width:100%; max-width:none; }.report-pagination { align-items:flex-start; flex-direction:column; }.report-pagination>div { width:100%; justify-content:space-between; }.report-bar-row,.report-process-card .report-bar-row { grid-template-columns:1fr 48px; }.report-bar-row>div { grid-column:1; grid-row:2; }.report-bar-row>b { grid-column:2; grid-row:1/3; }.report-ranking article { grid-template-columns:28px 1fr 45px; }.report-ranking article>small { grid-column:2/-1; text-align:left; } }
@media (max-width:430px) { .report-filter-grid,.report-summary-grid { grid-template-columns:1fr; }.report-quick-ranges { display:grid; grid-template-columns:1fr 1fr; }.report-summary-card { min-height:116px; } }

/* Acceso seguro */
.login-screen { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; overflow:auto; background:linear-gradient(145deg,#141923,#252d3a); padding:24px; }
body.authenticated .login-screen { display:none; }
body:not(.authenticated)>.sidebar,body:not(.authenticated)>main,body:not(.authenticated)>.mobile-overlay { visibility:hidden; }
.login-card { display:grid; width:min(430px,100%); gap:14px; border:1px solid rgba(255,255,255,.1); border-radius:18px; background:#fff; padding:30px; box-shadow:0 24px 70px rgba(0,0,0,.35); }
.login-card>img { width:190px; max-height:64px; object-fit:contain; object-position:left center; border-radius:10px; background:#171c25; padding:10px 14px; }
.login-card .eyebrow { margin:8px 0 -8px; color:#d61624; }
.login-card h1 { margin:0; color:#171c25; font-size:1.6rem; }
.login-card>p:not(.eyebrow):not(.login-error) { margin:0 0 4px; color:#697386; font-size:.82rem; }
.login-card label { display:grid; gap:6px; color:#4e5868; font-size:.72rem; font-weight:800; }
.login-card input { width:100%; height:46px; border:1px solid #d8dde5; border-radius:9px; background:#fff; padding:0 12px; color:#1f2733; font:inherit; }
.login-card input:focus { border-color:#d61624; outline:3px solid rgba(214,22,36,.12); }
.login-card button { min-height:46px; margin-top:3px; }
.login-error { margin:0; border-radius:8px; background:#fdebed; padding:9px 11px; color:#ad1c29; font-size:.72rem; }
.user-session { display:flex; align-items:center; gap:10px; }
.user-session>span { display:grid; min-width:105px; text-align:right; }
.user-session strong { color:#252c38; font-size:.7rem; }
.user-session small { color:#7c8593; font-size:.6rem; }
@media (max-width:700px) { .login-card { padding:23px; }.user-session>span { display:none; } }
