:root{--bg:#f4f7fb;--panel:#fff;--text:#132238;--muted:#64748b;--line:#e4eaf1;--blue:#2563eb;--navy:#0f2744;--teal:#0f766e;--amber:#d97706;--red:#dc2626;--green:#15803d;--shadow:0 10px 28px rgba(15,39,68,.07)}

*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text)}

.app-shell{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,#0b1f36,#102f50);color:#fff;padding:26px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 25px;border-bottom:1px solid rgba(255,255,255,.12)}.brand-mark{width:42px;height:42px;border-radius:12px;background:#fff;color:#12304e;display:grid;place-items:center;font-weight:800}.brand strong,.brand span{display:block}.brand span{font-size:12px;opacity:.65;margin-top:3px}.sidebar nav{display:flex;flex-direction:column;gap:7px;margin-top:12px}.nav-item{color:#fff;text-decoration:none;padding:12px 14px;border-radius:10px;font-size:14px;display:flex;align-items:center;gap:10px;opacity:.78}.nav-item:hover{background:rgba(255,255,255,.08);opacity:1}.nav-item.active{background:rgba(255,255,255,.15);font-weight:800;opacity:1}.nav-icon{width:25px;height:25px;border-radius:7px;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:11px;font-weight:900}.source-box{margin-top:auto;padding:15px;border-radius:12px;background:rgba(255,255,255,.08);display:grid;gap:5px;overflow:hidden}.source-box span,.source-box small{font-size:11px;opacity:.68}.source-box strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.main-content{padding:30px;max-width:1800px;width:100%;margin:0 auto}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;color:var(--blue);margin:0 0 6px}.topbar h1{font-size:28px;margin:0 0 6px}.subtitle{margin:0;color:var(--muted)}.status-pill{background:#eaf8f1;color:#137044;padding:9px 12px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.status-pill span{display:inline-block;width:8px;height:8px;background:#22c55e;border-radius:50%;margin-right:6px}.metric-header-tag{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;font-size:18px;font-weight:900}.metric-header-tag.tml,.metric-tag.tml{background:#dbeafe;color:#1d4ed8}.metric-header-tag.tr,.metric-tag.tr{background:#ccfbf1;color:#0f766e}.metric-header-tag.ti,.metric-tag.ti{background:#fef3c7;color:#b45309}

.filters-card,.panel,.kpi,.overview-card{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}.filters-card{border-radius:16px;padding:16px;margin-bottom:18px}.filters-grid{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr)) auto;gap:12px;align-items:end}.filters-grid label{font-size:11px;font-weight:700;color:#56657a;display:grid;gap:6px}.filters-grid input,.filters-grid select{height:41px;border:1px solid #d8e1eb;border-radius:9px;background:#fff;padding:0 10px;color:#1f2f44;min-width:0}.filter-actions{display:flex;gap:8px;align-items:center}.filter-actions button{height:41px;border:0;border-radius:9px;background:var(--navy);color:#fff;padding:0 16px;font-weight:700;cursor:pointer}.filter-actions a{height:41px;display:grid;place-items:center;padding:0 10px;color:var(--muted);text-decoration:none;font-size:12px}

.metric-overview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}.overview-card{border-radius:16px;padding:20px;text-decoration:none;color:inherit;transition:.18s}.overview-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(15,39,68,.12)}.overview-title{display:flex;align-items:center;gap:10px}.overview-title>strong{font-size:13px}.metric-tag{width:38px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:11px;font-weight:900}.overview-value{font-size:34px;font-weight:850;margin:18px 0 12px}.overview-line,.progress-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin-top:7px}.overview-line strong,.progress-meta strong{color:var(--text)}.progress{height:6px;background:#edf2f7;border-radius:100px;overflow:hidden;margin-top:8px}.progress i{display:block;height:100%;background:#22c55e;border-radius:100px}.text-bad{color:var(--red)!important}.text-good{color:var(--green)!important}

.kpi-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:18px}.general-kpis{grid-template-columns:repeat(3,1fr)}.kpi{border-radius:15px;padding:18px;min-width:0}.kpi span{display:block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.kpi strong{display:block;font-size:27px;margin:8px 0 5px;letter-spacing:-.02em}.kpi small{font-size:11px;color:#7b8798}.kpi.deviation strong{color:var(--red)}

.charts-grid,.tables-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.three-charts{grid-template-columns:1.3fr 1fr 1fr}.panel{border-radius:16px;overflow:hidden;margin-bottom:16px}.panel-head{padding:18px 19px 8px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.panel h2{margin:0 0 4px;font-size:16px}.panel p{margin:0;color:var(--muted);font-size:11px}.chart-wrap{height:310px;padding:8px 15px 18px}.count-pill{font-size:11px;font-weight:800;background:#eef2f7;color:#516174;padding:6px 9px;border-radius:999px;white-space:nowrap}

.table-scroll{overflow:auto;padding:8px 15px 16px}.tall-table{max-height:520px}table{width:100%;border-collapse:collapse;font-size:12px}thead{position:sticky;top:0;background:#fff;z-index:1}th{color:#718096;font-size:10px;text-transform:uppercase;letter-spacing:.03em;text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:11px 8px;border-bottom:1px solid #edf1f5;white-space:nowrap}tbody tr:hover{background:#f8fafc}tr:last-child td{border-bottom:0}.driver{max-width:250px;overflow:hidden;text-overflow:ellipsis}.delta{font-weight:800;padding:4px 7px;border-radius:7px}.delta.bad{color:#b91c1c;background:#feecec}.delta.good{color:#166534;background:#eaf8ee}.percent-pill{font-weight:800;padding:4px 7px;border-radius:999px}.percent-pill.good{background:#eaf8ee;color:#166534}.percent-pill.warn{background:#fff7df;color:#a16207}.percent-pill.bad{background:#feecec;color:#b91c1c}.empty{text-align:center;color:var(--muted);padding:28px}.full-panel{width:100%}

@media(max-width:1450px){.three-charts{grid-template-columns:1fr 1fr}.three-charts .wide{grid-column:1/-1}.kpi-grid{grid-template-columns:repeat(3,1fr)}}

@media(max-width:1100px){.app-shell{grid-template-columns:210px 1fr}.filters-grid{grid-template-columns:repeat(3,1fr)}.filter-actions{grid-column:span 3}.charts-grid,.tables-grid,.three-charts{grid-template-columns:1fr}.three-charts .wide{grid-column:auto}.metric-overview-grid{grid-template-columns:1fr}.general-kpis{grid-template-columns:repeat(3,1fr)}}

@media(max-width:760px){.app-shell{display:block}.sidebar{height:auto;position:static;display:block;padding:16px}.sidebar nav{display:flex;overflow:auto}.nav-item{white-space:nowrap}.source-box{display:none}.main-content{padding:16px}.topbar{display:flex}.filters-grid{grid-template-columns:1fr 1fr}.filter-actions{grid-column:span 2}.kpi-grid,.general-kpis{grid-template-columns:1fr 1fr}.topbar h1{font-size:22px}.metric-header-tag{width:48px;height:48px}.chart-wrap{height:280px}}

/* Gestión de justificaciones */

.management-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 18px}.management-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:15px;padding:17px}.management-card span{display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.management-card strong{display:block;font-size:27px;margin:7px 0 4px}.management-card small{font-size:11px;color:#7b8798}.management-card.justified strong{color:var(--green)}.management-card.pending strong{color:var(--red)}

.deviations-head{align-items:center}.status-filters{display:flex;gap:7px;flex-wrap:wrap}.status-filter{text-decoration:none;color:#506176;background:#f1f5f9;border:1px solid #e2e8f0;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:800}.status-filter.active{background:#142b46;color:#fff;border-color:#142b46}.status-filter.pending.active{background:#b91c1c;border-color:#b91c1c}.status-filter.justified.active{background:#15803d;border-color:#15803d}.deviation-table-wrap{max-height:620px}.status-badge{font-size:10px;font-weight:900;padding:5px 8px;border-radius:999px}.status-badge.pending{background:#feecec;color:#b91c1c}.status-badge.justified{background:#eaf8ee;color:#166534}.reason-cell{max-width:230px;overflow:hidden;text-overflow:ellipsis}.justify-btn{border:0;border-radius:8px;padding:8px 11px;background:#172f4b;color:#fff;font-size:11px;font-weight:800;cursor:pointer}.justify-btn:hover{filter:brightness(1.08)}

.modal-overlay{position:fixed;inset:0;background:rgba(8,20,36,.58);display:none;align-items:center;justify-content:center;padding:18px;z-index:1000}.modal-overlay.show{display:flex}.modal-card{width:min(760px,100%);max-height:94vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 26px 80px rgba(0,0,0,.24);padding:22px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:16px}.modal-head h2{margin:0;font-size:22px}.modal-close{border:0;background:#eef2f7;color:#334155;width:36px;height:36px;border-radius:10px;font-size:23px;line-height:1;cursor:pointer}.case-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;background:#f7f9fc;border:1px solid #e6ebf1;border-radius:13px;padding:12px;margin-bottom:17px}.case-summary div{min-width:0}.case-summary span{display:block;color:#718096;font-size:9px;font-weight:800;text-transform:uppercase;margin-bottom:4px}.case-summary strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.case-summary .case-deviation strong{color:#b91c1c}.justify-form{display:grid;gap:13px}.justify-form label{font-size:11px;font-weight:800;color:#506176;display:grid;gap:6px}.justify-form select,.justify-form input,.justify-form textarea{width:100%;border:1px solid #d8e1eb;border-radius:9px;background:#fff;padding:10px 11px;color:#1f2f44;font:inherit}.justify-form textarea{resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:4px}.secondary-btn,.save-btn,.remove-btn{border:0;border-radius:9px;padding:10px 14px;font-weight:800;cursor:pointer}.secondary-btn{background:#eef2f7;color:#4b5d72}.save-btn{background:#142b46;color:#fff}.delete-form{margin-top:13px;padding-top:13px;border-top:1px solid #edf1f5}.remove-btn{background:#fff1f2;color:#b42318;font-size:11px}.remove-btn:hover{background:#ffe4e6}

@media(max-width:1100px){.management-grid{grid-template-columns:1fr 1fr}.case-summary{grid-template-columns:1fr 1fr}}

@media(max-width:760px){.management-grid{grid-template-columns:1fr 1fr}.deviations-head{align-items:flex-start;flex-direction:column}.case-summary{grid-template-columns:1fr 1fr}.modal-card{padding:16px}.modal-actions{flex-direction:column}.secondary-btn,.save-btn{width:100%}}

/* Usuarios, sesión y permisos */

.flash-stack{display:grid;gap:8px;margin-bottom:16px}.flash-message{padding:11px 14px;border-radius:10px;font-size:12px;font-weight:700;border:1px solid}.flash-message.success{background:#ecfdf3;color:#166534;border-color:#bbf7d0}.flash-message.error{background:#fff1f2;color:#b42318;border-color:#fecdd3}.flash-message.info{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}

.sidebar-user{display:flex;align-items:center;gap:9px;margin-top:18px;padding:12px 10px;border-top:1px solid rgba(255,255,255,.11);border-bottom:1px solid rgba(255,255,255,.11)}.user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.16);font-weight:900}.user-info{min-width:0;flex:1}.user-info strong,.user-info span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-info strong{font-size:12px}.user-info span{font-size:10px;opacity:.65;margin-top:2px}.logout-link{color:#fff;text-decoration:none;font-size:20px;opacity:.7}.logout-link:hover{opacity:1}.read-only-label{font-size:10px;font-weight:800;color:#64748b;background:#f1f5f9;border-radius:7px;padding:6px 8px}.field-help{font-size:10px;color:#7b8798;font-weight:500}.justify-form input[readonly]{background:#f8fafc;color:#475569}

.auth-body{min-height:100vh;background:#edf2f7;display:grid;place-items:center;padding:24px}.auth-shell{width:min(980px,100%);min-height:590px;display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 24px 80px rgba(15,39,68,.15)}.auth-brand-panel{background:linear-gradient(145deg,#0b1f36,#16446d);color:#fff;padding:64px 54px;display:flex;flex-direction:column;justify-content:center}.auth-brand-mark{width:58px;height:58px;border-radius:16px;background:#fff;color:#12304e;display:grid;place-items:center;font-size:20px;font-weight:900;margin-bottom:38px}.eyebrow\.light{color:#a9d6ff}.auth-brand-panel h1{font-size:40px;line-height:1.05;margin:0 0 17px}.auth-brand-panel>p:not(.eyebrow){font-size:15px;line-height:1.6;color:rgba(255,255,255,.72);max-width:440px}.auth-feature-list{display:grid;gap:12px;margin-top:34px;font-size:13px;color:rgba(255,255,255,.86)}.auth-card{padding:60px 50px;display:flex;flex-direction:column;justify-content:center}.auth-card-head{display:flex;align-items:center;gap:13px;margin-bottom:26px}.auth-card-head h2{font-size:25px;margin:0 0 5px}.auth-card-head p{margin:0;color:#718096;font-size:12px}.auth-mini-logo{width:40px;height:40px;border-radius:11px;background:#e9f1fb;color:#12304e;display:grid;place-items:center;font-weight:900}.auth-form{display:grid;gap:16px}.auth-form label,.user-create-form label{font-size:11px;font-weight:800;color:#506176;display:grid;gap:7px}.auth-form input,.user-create-form input,.user-create-form select{height:44px;border:1px solid #d8e1eb;border-radius:10px;padding:0 12px;font:inherit;color:#1f2f44;background:#fff}.auth-primary,.primary-btn{border:0;border-radius:10px;background:#12304e;color:#fff;font-weight:800;cursor:pointer}.auth-primary{height:46px;margin-top:5px}.primary-btn{height:43px;padding:0 18px;align-self:end}.auth-primary:hover,.primary-btn:hover{filter:brightness(1.08)}

.user-kpis{grid-template-columns:repeat(4,1fr)}.user-create-panel{padding-bottom:17px}.user-create-form{display:grid;grid-template-columns:1.2fr 1fr 1fr .8fr auto;gap:12px;align-items:end;padding:7px 19px 15px}.role-guide{display:flex;gap:8px 20px;flex-wrap:wrap;padding:12px 19px 0;border-top:1px solid #edf1f5;color:#718096;font-size:10px}.role-guide strong{color:#334155}.user-table-wrap{max-height:580px}.users-table td{vertical-align:middle}.you-tag{margin-left:6px;font-size:9px;background:#e0ecff;color:#1d4ed8;padding:3px 6px;border-radius:999px;font-weight:800}.role-badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900}.role-badge.administrador{background:#e0ecff;color:#1d4ed8}.role-badge.supervisor{background:#e7f8f5;color:#0f766e}.role-badge.consulta{background:#f1f5f9;color:#475569}.user-row-actions{display:flex;align-items:center;gap:6px}.user-row-actions form{margin:0}.small-action{border:1px solid #dbe3ec;background:#fff;color:#3f5065;border-radius:8px;padding:7px 9px;font-size:10px;font-weight:800;cursor:pointer}.small-action:hover{background:#f8fafc}.small-action.danger{color:#b42318;border-color:#fecdd3}.small-action.success{color:#166534;border-color:#bbf7d0}.compact-modal{width:min(520px,100%)}

@media(max-width:1100px){.user-kpis{grid-template-columns:1fr 1fr}.user-create-form{grid-template-columns:1fr 1fr}.user-create-form .primary-btn{width:100%}.auth-shell{grid-template-columns:1fr}.auth-brand-panel{display:none}.auth-card{min-height:560px}}

@media(max-width:760px){.sidebar-user{margin-top:12px}.user-kpis{grid-template-columns:1fr 1fr}.user-create-form{grid-template-columns:1fr}.role-guide{display:grid}.auth-body{padding:12px}.auth-card{padding:32px 24px;min-height:520px}.user-row-actions{flex-wrap:wrap}}

/* =========================================================

LOGO FADEL - LOGIN

========================================================= */

.auth-fadel-logo {

display: flex;

align-items: center;

}

.auth-fadel-logo img {

display: block;

width: 100%;

height: auto;

object-fit: contain;

}

/* Logo grande del panel izquierdo */

.auth-fadel-logo-main {

width: 260px;

margin-bottom: 32px;

}

.auth-fadel-logo-main img {

max-height: 120px;

}

/* Logo pequeño del formulario */

.auth-fadel-logo-small {

width: 120px;

min-width: 120px;

margin-right: 18px;

}

.auth-fadel-logo-small img {

max-height: 70px;

}

/* Ajuste cabecera login */

.auth-card-head {

display: flex;

align-items: center;

gap: 16px;

}

/* Responsive login */

@media (max-width: 768px) {

.auth-fadel-logo-main {

width: 180px;

margin-bottom: 22px;

}

.auth-fadel-logo-main img {

max-height: 90px;

}

.auth-fadel-logo-small {

width: 90px;

min-width: 90px;

}

.auth-fadel-logo-small img {

max-height: 55px;

}

}

/* =========================================================

LOGIN MÁS GRANDE

========================================================= */

.auth-shell {

width: min(1100px, 92vw);

min-height: 560px;

}

.auth-brand-panel {

padding: 55px 55px;

}

.auth-card {

padding: 55px 50px;

}

/* Texto login */

.auth-brand-panel h1 {

font-size: 38px;

}

.auth-card-head h2 {

font-size: 28px;

}

/* Inputs y botón */

.auth-form input {

min-height: 50px;

font-size: 15px;

}

.auth-primary {

min-height: 52px;

font-size: 16px;

}

/* Notebook / pantallas menores */

@media (max-width: 900px) {

.auth-shell {

width: 94vw;

min-height: auto;

}

.auth-brand-panel,

.auth-card {

padding: 35px;

}

}

/* =========================================================

LOGO FADEL + CONTROL DE TIEMPOS - SIDEBAR

========================================================= */

.sidebar-brand {

width: 100%;

display: flex;

align-items: center;

gap: 12px;

padding: 22px 14px 25px;

background: transparent;

}

/* Logo Fadel */

.sidebar-fadel-logo {

width: 72px;

min-width: 72px;

height: 55px;

display: flex;

align-items: center;

justify-content: center;

overflow: visible;

}

.sidebar-fadel-logo img {

width: 100%;

height: 100%;

object-fit: contain;

display: block;

}

/* Control de Tiempos */

.sidebar-brand-text {

display: flex;

flex-direction: column;

justify-content: center;

min-width: 0;

line-height: 1.05;

}

.sidebar-brand-text strong {

color: #ffffff;

font-size: 15px;

font-weight: 800;

line-height: 1.05;

}

.sidebar-brand-text span {

color: rgba(255, 255, 255, 0.70);

font-size: 10px;

margin-top: 6px;

}

/* =========================================================

MENÚ POR BLOQUES OPERATIVOS

/* ------------------------------------------------ */ */

.sidebar-nav {

display: flex;

flex-direction: column;

gap: 5px;

}

/* BLOQUE */

.menu-block {

margin: 0 8px 5px;

border: 1px solid rgba(255, 255, 255, 0.07);

border-radius: 10px;

overflow: hidden;

background: rgba(255, 255, 255, 0.025);

}

/* CABECERA DEL BLOQUE */

.menu-block-title {

display: flex;

align-items: center;

justify-content: space-between;

gap: 10px;

padding: 11px 12px;

cursor: pointer;

user-select: none;

list-style: none;

transition: background .2s ease;

}

.menu-block-title::-webkit-details-marker {

display: none;

}

.menu-block-title:hover {

background: rgba(255, 255, 255, 0.045);

}

.menu-block-title div {

display: flex;

flex-direction: column;

gap: 3px;

}

.menu-block-title small {

color: rgba(255, 255, 255, 0.38);

font-size: 8px;

font-weight: 800;

letter-spacing: 1.1px;

}

.menu-block-title strong {

color: rgba(255, 255, 255, 0.88);

font-size: 11px;

font-weight: 800;

line-height: 1.2;

}

/* FLECHA */

.menu-arrow {

color: rgba(255, 255, 255, 0.45);

font-size: 14px;

transition: transform .2s ease;

}

.menu-block[open] .menu-arrow {

transform: rotate(180deg);

}

/* CONTENIDO */

.menu-block-content {

padding:

3px

5px

8px;

border-top:

1px solid

rgba(255, 255, 255, 0.05);

}

/* ITEMS */

.menu-block-content .nav-item {

min-height: 37px;

margin: 3px 0;

padding:

7px

8px;

}

/* TEXTO */

.nav-label {

display: flex;

flex-direction: column;

min-width: 0;

}

.nav-label small {

margin-top: 2px;

font-size: 8px;

font-weight: 500;

color:

rgba(255, 255, 255, 0.30);

}

/* ITEMS QUE TODAVÍA NO TIENEN PÁGINA */

.nav-disabled {

opacity: .50;

cursor: default;

pointer-events: none;

}

/* DIVISOR */

.menu-divider {

height: 1px;

margin:

9px

14px;

background:

rgba(255, 255, 255, 0.08);

}

/* GESTIÓN / ADMINISTRACIÓN */

.nav-simple-block {

margin:

0

8px

8px;

}

.nav-section-title {

padding:

9px

10px

6px;

color:

rgba(255, 255, 255, 0.38);

font-size: 8px;

font-weight: 800;

letter-spacing: 1.2px;

text-transform: uppercase;

}

/* =========================================================

FILTROS - DISTRIBUCIÓN ACTUALIZADA

Desde | Hasta | Móvil | Tipo | Chofer | Supervisor | Acciones

========================================================= */

.filters-card {

background: var(--panel);

border: 1px solid var(--line);

box-shadow: var(--shadow);

border-radius: 16px;

padding: 16px;

margin-bottom: 18px;

}

/* CONTENEDOR PRINCIPAL */

.filters-grid {

display: grid;

grid-template-columns:

minmax(150px, 1fr)      /* Desde */

minmax(150px, 1fr)      /* Hasta */

minmax(130px, .90fr)    /* Móvil */

minmax(145px, .95fr)    /* Tipo de móvil */

minmax(180px, 1.15fr)   /* Chofer */

minmax(135px, .85fr)    /* Supervisor */

auto;                   /* Aplicar + Limpiar */

gap: 12px;

align-items: end;

width: 100%;

}

/* LABEL */

.filters-grid label {

font-size: 11px;

font-weight: 700;

color: #56657a;

display: grid;

gap: 6px;

min-width: 0;

}

/* INPUTS Y SELECT */

.filters-grid input,

.filters-grid select {

width: 100%;

min-width: 0;

height: 41px;

border: 1px solid #d8e1eb;

border-radius: 9px;

background: #ffffff;

padding: 0 10px;

color: #1f2f44;

font-family: inherit;

font-size: 12px;

}

/* FOCUS */

.filters-grid input:focus,

.filters-grid select:focus {

outline: none;

border-color: #94b6d8;

box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);

}

/* =========================================================

BOTONES

========================================================= */

.filter-actions {

display: flex;

align-items: center;

gap: 8px;

white-space: nowrap;

height: 41px;

}

/* BOTÓN APLICAR */

.filter-actions button {

height: 41px;

border: 0;

border-radius: 9px;

background: var(--navy);

color: #ffffff;

padding: 0 18px;

font-weight: 700;

font-size: 12px;

cursor: pointer;

transition: .18s ease;

}

.filter-actions button:hover {

filter: brightness(1.08);

}

/* LIMPIAR */

.filter-actions a {

height: 41px;

display: grid;

place-items: center;

padding: 0 10px;

color: var(--muted);

text-decoration: none;

font-size: 12px;

white-space: nowrap;

}

.filter-actions a:hover {

color: var(--navy);

}

/* =========================================================

NOTEBOOK / PANTALLA MEDIANA

========================================================= */

@media (max-width: 1350px) {

.filters-grid {

grid-template-columns:

repeat(3, minmax(180px, 1fr));

}

.filter-actions {

grid-column: 1 / -1;

justify-content: flex-start;

}

}

/* =========================================================

TABLET

========================================================= */

@media (max-width: 900px) {

.filters-grid {

grid-template-columns:

repeat(2, minmax(160px, 1fr));

}

.filter-actions {

grid-column: 1 / -1;

}

}

/* =========================================================

CELULAR

========================================================= */

@media (max-width: 600px) {

.filters-grid {

grid-template-columns: 1fr;

}

.filter-actions {

grid-column: auto;

width: 100%;

}

.filter-actions button {

flex: 1;

}

}   

/* =========================================================

BOTÓN DESCARGAR EXCEL

========================================================= */

.download-btn {

display: inline-flex;

align-items: center;

justify-content: center;

height: 36px;

padding: 0 14px;

border-radius: 9px;

background: #0f2744;

color: #ffffff;

text-decoration: none;

font-size: 11px;

font-weight: 800;

white-space: nowrap;

transition: .18s ease;

}

.download-btn:hover {

filter: brightness(1.08);

transform: translateY(-1px);

}

/* ============================================================

AVANCE MENSUAL

/* ------------------------------------------------ */ */

.monthly-progress-grid {

display: grid;

grid-template-columns: repeat(4, minmax(0, 1fr));

gap: 16px;

margin-top: 18px;

margin-bottom: 30px;

}

.monthly-card {

min-width: 0;

}

.monthly-percent {

font-size: 34px;

font-weight: 800;

color: #0f172a;

margin: 15px 0 12px;

}

.monthly-table {

display: grid;

grid-template-columns: 1fr;

gap: 8px;

margin-top: 15px;

}

.monthly-table > div {

display: flex;

justify-content: space-between;

align-items: center;

padding: 9px 0;

border-bottom: 1px solid #e5e7eb;

}

.monthly-table > div:last-child {

border-bottom: none;

}

.monthly-table span {

color: #64748b;

font-size: 13px;

}

.monthly-table strong {

color: #0f172a;

font-size: 14px;

}

@media (max-width: 1200px) {

.monthly-progress-grid {

grid-template-columns: repeat(

2,

minmax(0, 1fr)

);

}

}

@media (max-width: 700px) {

.monthly-progress-grid {

grid-template-columns: 1fr;

}

}


/* Barra lateral: estilo unificado. */
@media (min-width:761px){
  .app-shell{grid-template-columns:245px minmax(0,1fr);}
  .app-shell>.sidebar{width:245px;min-width:245px;}
}
.sidebar{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:16px 12px;overflow-x:hidden;overflow-y:auto;}
.sidebar>.sidebar-brand{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;margin:0;padding:10px 4px 20px;flex:0 0 auto;width:100%;min-width:0;}
.sidebar .sidebar-fadel-logo{width:68px;min-width:68px;height:44px;flex:0 0 68px;display:flex;align-items:center;justify-content:center;}
.sidebar .sidebar-fadel-logo img{max-width:100%;width:100%;height:100%;object-fit:contain;}
.sidebar .sidebar-brand-text{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;flex:1;}
.sidebar .sidebar-brand-text strong{font-size:14px;line-height:1.25;overflow-wrap:normal;word-break:normal;}
.sidebar .sidebar-brand-text span{font-size:10px;margin-top:5px;}
.sidebar nav.sidebar-nav{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;flex:0 0 auto;gap:7px;width:100%;height:auto;margin:10px 0 0;padding:0;overflow:visible;}
.sidebar nav.sidebar-nav>*{flex:0 0 auto;min-width:0;min-height:0;height:auto;width:100%;}
.sidebar details.menu-block{display:block;flex:0 0 auto;min-width:0;min-height:0;height:auto;margin:0;border:1px solid rgba(255,255,255,.1);border-radius:10px;overflow:hidden;}
.sidebar details.menu-block>summary.menu-block-title{display:flex;flex-direction:row;align-items:center;justify-content:space-between;min-height:52px;height:auto;padding:10px 12px;gap:8px;cursor:pointer;}
.sidebar .menu-block-title>div{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;min-width:0;flex:1;}
.sidebar .menu-block-title small{display:block;font-size:9px;line-height:1.2;}
.sidebar .menu-block-title strong{display:block;font-size:12px;line-height:1.3;white-space:normal;word-break:normal;overflow-wrap:normal;}
.sidebar .menu-arrow{flex:0 0 auto;}
.sidebar .menu-block-content{padding:5px 6px 8px;}
.sidebar .menu-block-content .nav-item{height:auto;min-height:35px;margin:2px 0;padding:7px 9px;}
.sidebar .nav-simple-block{flex:0 0 auto;min-height:0;height:auto;margin:0;padding:0;}
.sidebar .nav-section-title{padding:10px 10px 6px;}
.sidebar .nav-item{min-width:0;line-height:1.3;}
.sidebar .nav-label{white-space:normal;overflow-wrap:normal;word-break:normal;min-width:0;}
.sidebar .sidebar-user{flex:0 0 auto;margin-top:16px;}
.sidebar .source-box{flex:0 0 auto;margin-top:16px;}
@media(max-width:760px){
 .app-shell{display:block;}
 .sidebar{position:static;height:auto;width:100%;min-width:0;overflow:visible;}
 .sidebar nav.sidebar-nav{display:flex;flex-direction:column;overflow:visible;}
}
