:root{--tsr:#ef5b19;--ink:#171717;--muted:#6b7280;--line:#e5e7eb;--bg:#f6f7f8}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.brand{background:#111;color:#fff;padding:9vw 8vw}.brand b,.accent{color:var(--tsr)}.panel{display:flex;align-items:center;justify-content:center;background:#fff}.card{width:min(430px,86%);padding:36px;border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 50px #00000012}input,select{width:100%;padding:13px;border:1px solid #d1d5db;border-radius:9px;margin:6px 0 15px}.btn{background:var(--tsr);color:#fff;border:0;border-radius:9px;padding:13px 18px;font-weight:700;width:100%}.top{background:#fff;border-bottom:1px solid var(--line);padding:16px 4%;display:flex;justify-content:space-between}.wrap{padding:28px 4%}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric,.module{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.metric strong{font-size:28px}.modules{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}.module h3{margin-top:0}.tag{display:inline-block;background:#fff1e9;color:#a63b08;padding:5px 9px;border-radius:999px;font-size:12px}.table{width:100%;border-collapse:collapse;background:#fff;margin-top:20px}.table th,.table td{text-align:left;padding:12px;border-bottom:1px solid var(--line)}.table th{background:#171717;color:#fff}@media(max-width:800px){.login{grid-template-columns:1fr}.brand{display:none}.grid{grid-template-columns:1fr 1fr}.modules{grid-template-columns:1fr}}

/* ===== TSR HUB dashboard redesign ===== */
.hub-body{background:#f5f7fb;color:#0d1728;overflow-x:hidden}.hub-shell{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid #e9edf3;padding:22px 14px;display:flex;flex-direction:column}.sidebar-brand{font-size:26px;font-weight:900;letter-spacing:-1px;padding:0 12px 25px}.sidebar-brand b{color:#f05a17}.sidebar-brand small{display:block;font-size:12px;color:#8792a5;font-weight:500;letter-spacing:0;margin-top:2px}.nav-main,.nav-secondary{display:grid;gap:6px}.nav-item{position:relative;display:flex;align-items:center;gap:13px;text-decoration:none;color:#142033;padding:12px 14px;border-radius:11px;font-weight:700;font-size:14px}.nav-item:hover,.nav-item.active{background:#fff0e9;color:#f05a17}.nav-ico{width:22px;text-align:center;font-size:20px}.nav-divider{height:1px;background:#edf0f4;margin:20px 10px}.badge{margin-left:auto;background:#f05a17;color:#fff;border-radius:6px;padding:2px 7px;font-size:11px}.sidebar-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:14px 10px}.sidebar-user strong{display:block;font-size:13px}.sidebar-user small{display:block;color:#8792a5;font-size:10px;margin-top:2px}.sidebar-user>a{margin-left:auto;text-decoration:none;color:#334155;font-size:24px}.avatar{width:36px;height:36px;border-radius:50%;background:#cfe0f8;display:grid;place-items:center;font-weight:800;font-size:12px}.avatar.small{width:34px;height:34px}.hub-content{min-width:0}.hub-topbar{height:64px;background:#fff;border-bottom:1px solid #e9edf3;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.searchbox{width:min(490px,45vw);height:38px;background:#f7f9fc;border:1px solid #edf0f4;border-radius:10px;padding:0 12px;display:flex;align-items:center;gap:8px;color:#64748b}.searchbox input{border:0;background:transparent;outline:0;margin:0;padding:0;width:100%;font-size:13px}.top-actions{display:flex;align-items:center;gap:18px;font-size:12px;color:#27364d}.separator{height:22px;width:1px;background:#dce2ea}.bell{position:relative;font-size:19px}.bell i{position:absolute;right:-8px;top:-7px;background:#e5352d;color:#fff;width:17px;height:17px;border-radius:50%;font:700 10px Arial;display:grid;place-items:center}.dashboard-main{padding:0 28px 28px}.hero{height:200px;margin:0 -28px;padding:32px 28px;display:grid;grid-template-columns:1.25fr .75fr;position:relative;overflow:hidden;background:linear-gradient(100deg,#fff 0%,#fff 48%,#fff3ec 100%)}.hero-copy{position:relative;z-index:2}.eyebrow{font-size:11px;letter-spacing:4px;color:#f05a17;font-weight:900}.hero h1{font-size:39px;line-height:1.05;margin:16px 0 12px;letter-spacing:-1.7px}.hero h1 em{font-style:normal;color:#f05a17}.hero p{color:#718096;line-height:1.5;margin:0;font-size:16px}.hero-road{position:absolute;right:0;top:0;width:44%;height:100%;background:linear-gradient(120deg,#fff0 0%,#fff2ed 30%,#ffd8c3 100%);clip-path:polygon(16% 0,100% 0,100% 100%,0 100%);overflow:hidden}.hero-road:after{content:"";position:absolute;right:-6%;bottom:-38px;width:115%;height:110px;border-top:5px solid #fff9;border-radius:50%;transform:rotate(-8deg);box-shadow:0 -15px 35px #e67d4d2b}.truck{position:absolute;right:8%;bottom:35px;width:86px;height:43px;border-radius:5px;background:#e75b22;color:#fff;font-size:19px;font-weight:900;display:grid;place-items:center;box-shadow:0 12px 25px #71311530}.truck:before,.truck:after{content:"";position:absolute;bottom:-8px;width:15px;height:15px;background:#1c2532;border-radius:50%}.truck:before{left:12px}.truck:after{right:12px}.hero-slogan{position:absolute;left:29%;top:56px;transform:rotate(-6deg);font-size:20px;font-style:italic;color:#59718d;line-height:1.15}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:0;position:relative;z-index:4}.module-card{min-height:190px;border:1px solid #e4e9ef;border-radius:16px;text-decoration:none;color:#111827;padding:25px 25px;display:flex;gap:18px;position:relative;overflow:hidden;box-shadow:0 8px 24px #1f29370a;transition:.2s ease}.module-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px #1f293712}.module-card.orange{background:linear-gradient(135deg,#fff 10%,#fff2eb)}.module-card.blue{background:linear-gradient(135deg,#fff 10%,#eef6ff)}.module-card.green{background:linear-gradient(135deg,#fff 10%,#eefbf3)}.module-icon{flex:0 0 68px;width:68px;height:68px;border-radius:13px;display:grid;place-items:center;color:#fff;font-size:30px}.orange .module-icon{background:linear-gradient(145deg,#ff852d,#ff5a00)}.blue .module-icon{background:linear-gradient(145deg,#66a9ff,#347be4)}.green .module-icon{background:linear-gradient(145deg,#64ca7a,#2eaa56)}.module-text h2{font-size:18px;margin:10px 0 9px}.module-text p{font-size:14px;color:#526176;line-height:1.45;margin:0 0 26px}.module-text strong{font-size:13px}.orange .module-text strong{color:#f05a17}.blue .module-text strong{color:#2f7fe8}.green .module-text strong{color:#31a85a}.module-arrow{position:absolute;right:20px;top:24px;width:39px;height:39px;background:#fff;border-radius:50%;display:grid;place-items:center;font-size:28px;box-shadow:0 4px 12px #1f293712}.ghost-icon{position:absolute;right:16px;bottom:-15px;font-size:92px;opacity:.10}.dashboard-grid{display:grid;grid-template-columns:1.05fr .93fr .9fr;gap:20px;margin-top:20px}.left-stack{display:grid;gap:20px}.panel-card{background:#fff;border:1px solid #e3e8ef;border-radius:14px;overflow:hidden;box-shadow:0 5px 18px #1f293708}.panel-head{height:53px;padding:0 20px;border-bottom:1px solid #e8ecf1;display:flex;align-items:center;justify-content:space-between}.panel-head h3{font-size:14px;margin:0}.panel-head a{font-size:12px;color:#1e73d8;text-decoration:none;font-weight:700}.stats-row{display:grid;grid-template-columns:repeat(4,1fr);padding:17px 12px 20px}.stats-row>div{text-align:center}.stat-icon{display:block;font-size:24px;height:27px}.stats-row b{display:block;font-size:22px;margin:3px 0}.stats-row small{font-size:11px;color:#526176}.orange-t{color:#f05a17}.blue-t{color:#4b91ef}.red-t{color:#ef4444}.green-t{color:#42b56c}.brand-banner{height:174px;border-radius:14px;overflow:hidden;background:linear-gradient(100deg,#101827 0%,#1e293b 47%,#d26532 100%);color:#fff;display:grid;grid-template-columns:1.2fr .8fr;position:relative}.brand-banner>div:first-child{padding:27px;z-index:2}.brand-banner h3{font-size:22px;line-height:1.08;margin:0 0 8px}.brand-banner p{font-size:12px;margin:0 0 25px;color:#e5e7eb}.brand-banner span{font-size:10px;letter-spacing:3px}.banner-road{background:linear-gradient(145deg,#f5a15a,#0f172a);clip-path:polygon(25% 0,100% 0,100% 100%,0 100%);opacity:.8}.activity-list>div{height:60px;display:flex;align-items:center;padding:8px 20px;gap:12px}.mini-avatar{width:34px;height:34px;border-radius:50%;background:#e8edf5;display:grid;place-items:center;font-size:11px;font-weight:800}.activity-list p{margin:0;flex:1;font-size:12px}.activity-list p b,.activity-list p small{display:block}.activity-list p small{color:#768398;margin-top:3px}.dot{width:7px;height:7px;border-radius:50%}.green-dot{background:#44b96c}.orange-dot{background:#ff7a18}.blue-dot{background:#4d91ec}.task-list label{height:54px;border-bottom:1px solid #edf0f4;display:flex;align-items:center;gap:10px;padding:0 18px;font-size:12px}.task-list label:last-child{border-bottom:0}.task-list input{width:18px;height:18px;margin:0}.task-list span{flex:1}.task-list b{color:#f05a17}.task-list time{color:#26364b}.quote-strip{margin-top:20px;background:#fff;border:1px solid #e3e8ef;border-radius:14px;min-height:82px;display:flex;align-items:center;justify-content:space-between;padding:14px 30px}.quote-strip blockquote{font:italic 15px/1.4 Georgia,serif;margin:0;color:#27364d;border-left:3px solid #f05a17;padding-left:16px}.mini-logo{font-size:27px;font-weight:900;font-style:italic}.mini-logo small{display:block;font-size:8px;letter-spacing:4px;color:#8290a4;margin-top:3px}
@media(max-width:1100px){.hub-shell{grid-template-columns:82px minmax(0,1fr)}.sidebar-brand{font-size:18px;padding-left:6px}.sidebar-brand small,.nav-item:not(.active){font-size:0}.nav-item{justify-content:center}.nav-item.active{font-size:0}.nav-ico{font-size:22px}.sidebar-user>div:not(.avatar),.sidebar-user>a{display:none}.sidebar-user{justify-content:center}.dashboard-grid{grid-template-columns:1fr 1fr}.left-stack{grid-column:1/-1;grid-template-columns:1fr 1fr}.hero-road{width:48%}.module-grid{gap:12px}.module-card{padding:18px}.module-icon{width:52px;height:52px;flex-basis:52px}}
@media(max-width:760px){.hub-shell{display:block}.sidebar{display:none}.hub-topbar{padding:0 14px}.top-actions>span{display:none}.searchbox{width:75vw}.dashboard-main{padding:0 14px 20px}.hero{margin:0 -14px;padding:25px 14px;height:auto;min-height:210px;grid-template-columns:1fr}.hero-road{display:none}.hero h1{font-size:31px}.hero p{font-size:14px}.module-grid,.dashboard-grid,.left-stack{grid-template-columns:1fr}.module-card{min-height:165px}.stats-row{grid-template-columns:repeat(2,1fr);row-gap:18px}.quote-strip{align-items:flex-start;gap:20px;flex-direction:column}.mini-logo{align-self:flex-end}}

/* RRHH Control de jornada */
.rrhh-main{padding:22px 32px 16px;max-width:1600px;margin:0 auto}.breadcrumbs{display:flex;gap:10px;align-items:center;font-size:13px;color:#667085;margin-bottom:18px}.breadcrumbs a{color:#667085;text-decoration:none}.breadcrumbs b{color:#111827}.rrhh-title-row{display:flex;align-items:center;gap:22px;margin-bottom:24px}.rrhh-title-row>div:first-child{flex:1}.rrhh-title-row h1{font-size:34px;line-height:1;margin:0 0 8px;color:#111827}.rrhh-title-row p{margin:0;color:#667085}.sync-card{background:#fff;border:1px solid #e8edf3;border-radius:14px;padding:12px 14px;display:flex;align-items:center;gap:12px;box-shadow:0 6px 18px rgba(16,24,40,.05)}.sync-card>i{width:10px;height:10px;background:#17b455;border-radius:50%}.sync-card div{display:flex;flex-direction:column;min-width:160px}.sync-card small{color:#667085}.sync-card b{font-size:12px;color:#344054;margin-top:3px}.sync-card button,.clear-btn{border:1px solid #d7e0eb;background:#fff;border-radius:10px;padding:10px 16px;color:#146edb;font-weight:700}.primary-btn,.filter-btn{border:0;background:#ff681d;color:#fff;border-radius:10px;padding:14px 22px;font-weight:800;box-shadow:0 8px 18px rgba(255,104,29,.18);white-space:nowrap}.rrhh-subnav{margin:-8px 10px 12px;padding:7px;background:#fff4ee;border-radius:12px;display:flex;flex-direction:column}.rrhh-subnav a{padding:10px 16px;color:#536276;text-decoration:none;font-size:14px;border-radius:8px}.rrhh-subnav a.active{color:#b33d08;background:#fff;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.04)}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.kpi-card{background:#fff;border:1px solid #e8edf3;border-radius:14px;padding:20px;display:flex;align-items:center;gap:17px;box-shadow:0 7px 22px rgba(16,24,40,.05)}.kpi-icon{width:58px;height:58px;border-radius:15px;display:grid;place-items:center;font-size:29px;font-weight:800}.kpi-card.purple .kpi-icon{background:#eee7ff;color:#7c3aed}.kpi-card.blue .kpi-icon{background:#e0f1ff;color:#1683db}.kpi-card.green .kpi-icon{background:#e2f7e8;color:#14a44d}.kpi-card.orange .kpi-icon{background:#fff0e7;color:#ff681d}.kpi-card small{display:block;color:#475467;margin-bottom:5px}.kpi-card strong{display:block;font-size:31px;line-height:1.05;color:#101828}.kpi-card p{font-size:11px;color:#667085;margin:7px 0 0}.kpi-card p b{color:#13a94f;margin-right:5px}.kpi-card p.negative b{color:#f04438}.filter-panel{background:#fff;border:1px solid #e8edf3;border-radius:14px;padding:16px;display:grid;grid-template-columns:1.35fr 1fr 1fr 1.1fr 1.1fr auto auto;gap:12px;align-items:end;margin-bottom:12px;box-shadow:0 7px 22px rgba(16,24,40,.04)}.filter-panel label{font-size:12px;font-weight:700;color:#344054}.filter-panel input,.filter-panel select{width:100%;height:40px;margin-top:7px;border:1px solid #d9e1ea;border-radius:9px;background:#fff;padding:0 12px;color:#344054}.filter-btn{height:40px;padding:0 28px}.clear-btn{height:40px;color:#344054}.data-panel{background:#fff;border:1px solid #e8edf3;border-radius:14px;overflow:hidden;box-shadow:0 7px 22px rgba(16,24,40,.04)}.table-scroll{overflow:auto}.rrhh-table{width:100%;border-collapse:collapse;min-width:1050px}.rrhh-table th{background:#f8fafc;color:#344054;text-align:left;padding:13px 14px;font-size:12px}.rrhh-table td{border-top:1px solid #edf1f5;padding:11px 14px;font-size:13px;color:#344054}.driver{display:flex;align-items:center;gap:10px}.driver>span{width:34px;height:34px;background:#e8eef6;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700}.driver div{display:flex;flex-direction:column}.driver small{color:#667085;margin-top:2px}.type-pill,.status-pill{display:inline-flex;align-items:center;border-radius:8px;padding:5px 10px;font-size:12px}.type-pill.pesado{background:#eee8ff;color:#6938c6}.type-pill.ligero{background:#e2f2ff;color:#0874bd}.status-pill{gap:7px}.status-pill i{width:7px;height:7px;border-radius:50%}.status-pill.correcto{background:#e7f8ec;color:#12843c}.status-pill.correcto i{background:#18b550}.status-pill.revisar{background:#fff0e5;color:#d95c0b}.status-pill.revisar i{background:#ff7a18}.dots{border:0;background:transparent;font-size:20px;color:#536276}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-top:1px solid #edf1f5;color:#667085;font-size:12px}.pagination{display:flex;align-items:center;gap:5px}.pagination button,.pagination select{height:34px;min-width:34px;border:1px solid transparent;background:#fff;border-radius:8px;color:#344054}.pagination button.active{background:#fff0e8;color:#d94d0b}.pagination select{border-color:#d9e1ea;padding:0 10px}.rrhh-footer{display:flex;justify-content:space-between;gap:20px;padding:14px 2px;color:#77849a;font-size:11px}.rrhh-footer b{color:#667085;white-space:nowrap}.rrhh-footer b i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#17b455;margin-right:7px}
@media(max-width:1200px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.filter-panel{grid-template-columns:repeat(3,1fr)}.rrhh-title-row{flex-wrap:wrap}.rrhh-title-row>div:first-child{flex-basis:100%}}
@media(max-width:760px){.rrhh-main{padding:18px}.kpi-grid{grid-template-columns:1fr}.filter-panel{grid-template-columns:1fr}.sync-card{width:100%}.primary-btn{width:100%}.table-footer,.rrhh-footer{align-items:flex-start;flex-direction:column}.pagination{flex-wrap:wrap}}

/* Conductores */
.table-action{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border:1px solid #dfe5ec;border-radius:8px;text-decoration:none;color:#172033;background:#fff;font-size:12px;font-weight:700;margin-right:5px}.table-action:hover{border-color:#ff5a1f;color:#e94d13;background:#fff7f2}.status-pill.activo,.status-pill.sincronizado{background:#eaf8ef;color:#168447}.status-pill.inactivo{background:#f1f3f5;color:#68707c}.status-pill.pendiente{background:#fff1e8;color:#d94b0b}@media(max-width:1100px){.rrhh-table{min-width:1050px}}
/* TSR Control Jornada v2026-09-16 */
.action-row{display:flex;gap:10px;align-items:center}.secondary-btn{border:1px solid #d9e1eb;background:#fff;color:#25354b;padding:11px 15px;border-radius:10px;font-weight:700;text-decoration:none}.metric-inline{display:flex;gap:22px;flex-wrap:wrap}.metric-inline div{background:#fff;border:1px solid #e3e9f1;border-radius:12px;padding:15px 18px;min-width:155px}.metric-inline strong{display:block;font-size:25px}.detail-card{background:#fff;border:1px solid #e3e9f1;border-radius:14px;padding:20px;margin-top:16px}.detail-card h2{margin-top:0}.timeline-row{display:grid;grid-template-columns:55px 70px 70px 70px 1fr;gap:10px;padding:10px;border-bottom:1px solid #edf1f5}.timeline-row.head{font-weight:800;background:#f8fafc}.source-pill{background:#e8f2ff;color:#1769d2;padding:4px 8px;border-radius:7px;font-size:11px}.doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.doc-card{background:#fff;border:1px solid #e3e9f1;border-radius:14px;padding:18px}.doc-card a{color:#e9541b;font-weight:800;text-decoration:none}.notice{padding:13px 15px;border-radius:10px;background:#fff6ed;border:1px solid #ffd8bd;color:#8a431d}.upload-zone{border:2px dashed #ccd7e5;border-radius:14px;background:#fff;padding:35px;text-align:center}.upload-zone input{margin:15px}.incident-high{color:#b42318}.incident-med{color:#e65b16}.incident-low{color:#1769d2}@media(max-width:1000px){.doc-grid{grid-template-columns:1fr}.metric-inline{display:grid;grid-template-columns:1fr 1fr}}
.report-form{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:14px;align-items:end;margin-top:18px}.report-form label{font-size:12px;font-weight:800;color:#34445a}.report-form select,.report-form input{display:block;width:100%;margin-top:7px;padding:11px 12px;border:1px solid #d6dfeb;border-radius:9px;background:#fff;color:#17243a}.muted{color:#718096;font-size:12px;line-height:1.55}@media(max-width:1000px){.report-form{grid-template-columns:1fr 1fr}.doc-grid .doc-card[style]{grid-column:span 1!important}}
/* ==========================================
   TSR - AJUSTES LOGO + TOPBAR
   ========================================== */

/* LOGO CENTRADO */
.sidebar-brand.tsr-logo-brand {
    width: 100%;
    box-sizing: border-box;

    padding: 28px 15px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.tsr-logo-link {
    width: 100%;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.tsr-logo-img {
    display: block;

    width: 125px;
    max-width: 80%;
    height: auto;

    margin: 0 auto;

    object-fit: contain;
}

.sidebar-brand.tsr-logo-brand small {
    display: block;

    width: 100%;

    margin-top: 12px;

    text-align: center;

    font-size: 11px;
    font-weight: 400;

    color: #7b8ca5;
}


/* ==========================================
   BARRA SUPERIOR SIN BUSCADOR
   ========================================== */

.hub-topbar-clean {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    padding: 0 26px;

    background: #ffffff;

    border-bottom: 1px solid #e7edf5;

    box-sizing: border-box;
}

.hub-topbar-right {
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;

    font-size: 12px;
    font-weight: 500;

    color: #26364d;
}

.top-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dceafb;

    color: #16385e;

    font-size: 12px;
    font-weight: 700;
}


/* Por si queda algún buscador antiguo dentro del topbar */
.hub-topbar-clean input,
.hub-topbar-clean form,
.hub-topbar-clean .search,
.hub-topbar-clean .top-search {
    display: none !important;
}