:root{--bg:#07111f;--panel:#0f172a;--panel2:#111c31;--card:#132238;--line:#243449;--text:#e5eefb;--muted:#9fb0c7;--brand:#38bdf8;--ok:#22c55e;--warn:#f59e0b;--danger:#ef4444;--white:#fff;--shadow:0 16px 45px rgba(0,0,0,.25);--r:18px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top left,#123052 0,#07111f 42%,#050914 100%);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);min-height:100vh}a{color:inherit;text-decoration:none}.container{width:min(1180px,100%);margin:0 auto;padding:22px}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:14px 22px;background:rgba(7,17,31,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08)}.brand{display:flex;gap:9px;align-items:center}.brand span{width:34px;height:34px;border-radius:12px;background:linear-gradient(135deg,#38bdf8,#2563eb);display:grid;place-items:center}.brand small{color:var(--muted);font-weight:700}.top-actions{display:flex;gap:10px;align-items:center}.user-chip{padding:9px 12px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:13px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(440px,100%);background:rgba(15,23,42,.92);border:1px solid rgba(255,255,255,.1);border-radius:26px;padding:28px;box-shadow:var(--shadow)}.logo-big{width:62px;height:62px;border-radius:20px;background:linear-gradient(135deg,#38bdf8,#1d4ed8);display:grid;place-items:center;font-size:30px;margin-bottom:12px}.muted{color:var(--muted)}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:rgba(15,23,42,.86);border:1px solid rgba(255,255,255,.08);border-radius:var(--r);padding:18px;box-shadow:var(--shadow)}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.card h1,.card h2,.card h3{margin:0}.card h1{font-size:28px}.card h2{font-size:20px}.card h3{font-size:17px}.actions{display:flex;gap:10px;flex-wrap:wrap}.btn{border:0;border-radius:13px;padding:11px 14px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px}.btn-primary{background:linear-gradient(135deg,#38bdf8,#2563eb);color:white}.btn-ok{background:linear-gradient(135deg,#22c55e,#15803d);color:white}.btn-warn{background:linear-gradient(135deg,#f59e0b,#b45309);color:white}.btn-danger{background:linear-gradient(135deg,#ef4444,#b91c1c);color:white}.btn-ghost{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:var(--text)}.btn-small{padding:8px 10px;min-height:34px;border-radius:10px;font-size:13px}label{display:block;font-size:13px;font-weight:800;color:#cbd5e1;margin:0 0 7px}.input,select,textarea{width:100%;background:#0b1424;color:var(--text);border:1px solid #27364d;border-radius:13px;padding:12px 13px;outline:none;font:inherit}textarea{min-height:92px;resize:vertical}.input:focus,select:focus,textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.12)}.form-row{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:14px}.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.check-pill{display:flex;gap:9px;align-items:center;padding:12px;border:1px solid #2a3a53;background:#0b1424;border-radius:14px;font-weight:800;color:#dbeafe}.check-pill input{width:18px;height:18px}.table-wrap{overflow:auto;border-radius:16px;border:1px solid rgba(255,255,255,.08)}table{width:100%;border-collapse:collapse;min-width:760px;background:#0b1424}th,td{padding:12px;border-bottom:1px solid #1f2d42;text-align:left;vertical-align:top}th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#93c5fd;background:#111c31}tr:hover td{background:#0f1b2e}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;background:#12243a;color:#bfdbfe;border:1px solid #25415f}.badge-ok{background:rgba(34,197,94,.12);color:#86efac;border-color:rgba(34,197,94,.35)}.badge-warn{background:rgba(245,158,11,.12);color:#fcd34d;border-color:rgba(245,158,11,.35)}.hero{display:grid;grid-template-columns:1.4fr .6fr;gap:16px;align-items:stretch}.stat{padding:16px;border-radius:18px;background:linear-gradient(135deg,rgba(56,189,248,.16),rgba(37,99,235,.07));border:1px solid rgba(56,189,248,.2)}.stat b{display:block;font-size:28px}.report{background:white;color:#111827;border-radius:18px;padding:26px;line-height:1.55}.report h2{text-align:center;margin:0 0 16px;color:#111827}.report p{margin:6px 0}.report-section{margin-top:18px}.report ul{margin-top:8px}.print-only{display:none}.service-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}.empty{padding:24px;border:1px dashed #334155;border-radius:16px;text-align:center;color:var(--muted)}@media(max-width:850px){.container{padding:14px}.hero,.grid-2,.grid-3,.form-row{grid-template-columns:1fr}.check-grid{grid-template-columns:1fr 1fr}.service-quick{grid-template-columns:1fr 1fr}.card{padding:15px}.card-head{flex-direction:column}.topbar{padding:12px 14px}.user-chip{display:none}.brand small{display:none}.btn{width:100%}.actions{width:100%}.actions .btn{flex:1}.card h1{font-size:23px}}@media(max-width:480px){.check-grid,.service-quick{grid-template-columns:1fr}th,td{padding:10px}.login-card{padding:20px}.report{padding:18px}}@media print{body{background:white}.topbar,.no-print,.actions{display:none!important}.container{width:100%;padding:0}.card{box-shadow:none;border:0;padding:0}.report{border-radius:0;padding:0}.print-only{display:block}}


/* Login ORBIS - versión profesional */
.login-wrap{place-items:center;padding:18px;background:radial-gradient(circle at top,#153a61 0,#07111f 42%,#050914 100%)}
.login-card-pro{width:min(410px,100%);padding:30px 28px 28px;text-align:left;border-radius:24px;background:rgba(15,23,42,.94)}
.login-logo-center{display:flex;justify-content:center;margin-bottom:14px}
.login-card-pro .logo-big{width:84px;height:84px;border-radius:26px;font-size:40px;margin:0;background:linear-gradient(135deg,#38bdf8,#2563eb);box-shadow:0 14px 32px rgba(37,99,235,.28)}
.login-title{text-align:center;margin:0;font-size:34px;letter-spacing:.5px;line-height:1.05}
.login-subtitle{text-align:center;margin:8px 0 22px;color:#b8c7dd;font-weight:700;font-size:14px;letter-spacing:.2px}
.login-card-pro label{margin-top:0;color:#dbeafe}
.login-card-pro .input{height:48px;border-radius:14px;background:#0a1424}
.login-card-pro .input::placeholder{color:#64748b}
.login-btn{width:100%;margin-top:20px;height:48px;border-radius:15px;text-transform:uppercase;letter-spacing:.3px}
.login-error{border-color:#ef4444!important;color:#fecaca!important;margin:0 0 16px!important;text-align:center;box-shadow:none;background:rgba(239,68,68,.08)}
@media(max-width:480px){.login-wrap{padding:14px}.login-card-pro{padding:26px 22px;width:100%}.login-title{font-size:31px}.login-card-pro .logo-big{width:76px;height:76px;font-size:36px}}


/* ORBIS - servicios diarios / producción */
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.eyebrow{display:inline-block;margin-bottom:8px;color:#93c5fd;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}
.notice-box{margin:14px 0 22px;padding:13px 14px;border:1px solid rgba(56,189,248,.28);border-radius:14px;background:rgba(14,165,233,.09);color:#dbeafe}
.label-help{font-size:11px;color:#93c5fd;margin-left:4px;font-weight:800}
.badge-info{background:rgba(56,189,248,.12);color:#7dd3fc;border-color:rgba(56,189,248,.35)}
.flight-summary .grid-4{margin-top:14px}
.service-quick .btn{min-height:46px}
@media(max-width:1050px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.grid-4{grid-template-columns:1fr}.flight-form .card-head .actions{width:100%}}

.water-box{margin:14px 0;padding:14px;border:1px solid rgba(56,189,248,.22);border-radius:16px;background:rgba(56,189,248,.06)}
.water-box h3{margin:0 0 6px;font-size:16px}
.water-box p{margin:0 0 12px}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:850px){.grid-4{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.grid-4{grid-template-columns:1fr}}

/* ORBIS 2.0 - fotos, duración y PDF corporativo */
.thumbs{display:flex;gap:6px;flex-wrap:wrap}.thumbs img{width:54px;height:42px;object-fit:cover;border-radius:8px;border:1px solid rgba(255,255,255,.16)}
.report-pro{padding:0;overflow:hidden}.report-cover{position:relative;min-height:390px;background:#0b1d3a;page-break-after:always}.report-cover img{width:100%;height:390px;object-fit:cover;display:block}.cover-overlay{position:absolute;right:42px;top:52px;color:white;text-align:center;background:rgba(0,39,103,.72);padding:24px 32px;border-radius:0 0 0 28px}.cover-overlay h1{font-size:34px;margin:8px 0;color:white}.cover-kicker{font-size:12px;font-weight:900;letter-spacing:.16em;color:#cfe8ff}.report-title-block{padding:26px 28px 10px}.report-title-block h2{margin-bottom:18px}.report-sign-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.report-sign-grid>div{border:1px solid #d6dbe5;border-radius:12px;padding:12px;background:#f8fafc}.report-pro .report-section,.report-data-grid{padding-left:28px;padding-right:28px}.report-data-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 16px}.report-table-wrap{overflow:visible}.report-table{width:100%;min-width:0;background:white;color:#111827;border:1px solid #d1d5db;font-size:12px}.report-table th{background:#0b2f66;color:white;border:1px solid #d1d5db;padding:7px}.report-table td{border:1px solid #d1d5db;padding:7px;vertical-align:top}.photo-section{page-break-inside:auto}.photo-service-block{break-inside:avoid;margin:12px 0 16px;padding:12px;border:1px solid #d1d5db;border-radius:12px;background:#f8fafc}.report-photo-grid{display:flex;gap:10px;flex-wrap:wrap}.report-photo-grid img{width:150px;height:112px;object-fit:cover;border-radius:8px;border:1px solid #cbd5e1}.report-signatures{display:grid;grid-template-columns:1fr 1fr;gap:36px;padding:45px 28px 18px;text-align:center}.sign-line{height:1px;background:#111827;margin:0 auto 8px;width:80%}.report-footer-note{text-align:center;color:#64748b;font-size:12px;padding:0 28px 26px!important}.report-pro p{color:#111827}
@media print{.report-cover{min-height:270px}.report-cover img{height:270px}.cover-overlay{right:24px;top:30px;padding:18px 24px}.report-photo-grid img{width:130px;height:96px}.report-table{font-size:10.5px}.report-sign-grid,.report-data-grid{grid-template-columns:repeat(2,1fr)}.report-title-block,.report-pro .report-section,.report-data-grid{padding-left:12mm;padding-right:12mm}.report-signatures{padding-left:12mm;padding-right:12mm}}
@media(max-width:650px){.report-sign-grid,.report-data-grid,.report-signatures{grid-template-columns:1fr}.report-cover,.report-cover img{height:auto;min-height:0}.cover-overlay{position:static;border-radius:0;background:#0b2f66}.report-photo-grid img{width:46%;height:110px}}

/* ORBIS 2.1 - edición, filtros y resumen operativo */
.filters-bar{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end;margin:10px 0 16px}
.filter-actions{display:flex;gap:8px;align-items:center}.filter-actions .btn{white-space:nowrap}
.ops-summary .stat b{font-size:22px}.action-col{flex-direction:column;gap:7px;min-width:98px}.action-col .btn{width:100%}
.duration-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;border:1px solid rgba(148,163,184,.25);color:#cbd5e1;background:rgba(148,163,184,.09);white-space:nowrap}.duration-ok{background:rgba(34,197,94,.13);color:#86efac;border-color:rgba(34,197,94,.35)}.duration-warn{background:rgba(245,158,11,.13);color:#fde68a;border-color:rgba(245,158,11,.35)}.duration-danger{background:rgba(239,68,68,.13);color:#fecaca;border-color:rgba(239,68,68,.35)}.duration-empty{opacity:.55}.service-quick .btn[data-service*="Marshalling"]{background:rgba(56,189,248,.10);border-color:rgba(56,189,248,.25)}
@media(max-width:900px){.filters-bar{grid-template-columns:1fr 1fr}.filter-actions{grid-column:1/-1}.filter-actions .btn{flex:1}}
@media(max-width:520px){.filters-bar{grid-template-columns:1fr}.filter-actions{flex-direction:column}.filter-actions .btn{width:100%}}


/* ORBIS 2.2 - jornada operacional por día */
.jornada-card{border-color:rgba(34,197,94,.22);background:linear-gradient(135deg,rgba(15,23,42,.92),rgba(8,47,73,.52))}
.jornada-card .stat{background:linear-gradient(135deg,rgba(34,197,94,.14),rgba(56,189,248,.07));border-color:rgba(34,197,94,.22)}
.jornada-note{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
.jornada-note b{color:var(--text)}
@media(max-width:650px){.jornada-note{align-items:flex-start;flex-direction:column}}


/* ORBIS 2.5 - firmas digitales y dashboard corregido */
.firma-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.firma-box{border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:14px;background:rgba(11,20,36,.72)}
.firma-box h3{margin:0 0 6px}
.firma-pad{width:100%;height:170px;background:#fff;border:1px solid #334155;border-radius:14px;touch-action:none;display:block;margin:12px 0}
.firma-preview{width:100%;max-width:280px;height:90px;object-fit:contain;background:white;border-radius:10px;border:1px solid rgba(255,255,255,.12);display:block;margin:8px 0}
.report-sign-img{width:230px;height:92px;object-fit:contain;display:block;margin:0 auto 8px;background:white}
.dashboard-last-service{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
@media(max-width:760px){.firma-grid{grid-template-columns:1fr}.firma-pad{height:150px}.report-sign-img{width:190px;height:78px}}
@media print{.report-sign-img{width:55mm;height:22mm}.firma-card{display:none!important}}


/* ORBIS 3.1 - Reporte ejecutivo y PDF limpio */
::selection{background:#cfe3ff;color:#000}
.report ::selection{background:#cfe3ff;color:#000}
.report table tr:hover td,.report .report-table tr:hover td{background:#fff!important;color:#111827!important}
.report .report-table tbody tr:hover td{background:#fff!important;color:#111827!important}
.executive-summary{break-inside:avoid}
.executive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}
.executive-grid>div{border:1px solid #d6dbe5;border-radius:12px;background:#f8fafc;padding:11px 12px;min-height:62px}
.executive-grid span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#475569;font-weight:800;margin-bottom:4px}
.executive-grid b{display:block;font-size:16px;color:#0f172a}
.closure-box{border:1px solid #d6dbe5;border-radius:12px;background:#f8fafc;padding:14px 16px!important;margin-left:28px;margin-right:28px;break-inside:avoid}
.evidence-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.photo-section .photo-service-block{margin:0;padding:10px;min-height:auto;background:#f8fafc}
.photo-section .photo-service-block p{font-size:13px;line-height:1.35;margin-bottom:8px}
.photo-section .report-photo-grid{gap:8px}
.photo-section .report-photo-grid img{width:118px;height:88px}
.report-footer-note{margin-top:0!important}
@media print{
  ::selection{background:#cfe3ff;color:#000}
  .report table tr:hover td,.report .report-table tr:hover td{background:#fff!important;color:#111827!important}
  .executive-grid{grid-template-columns:repeat(3,1fr)}
  .closure-box{margin-left:12mm;margin-right:12mm;padding:10px 12px!important}
  .evidence-gallery{grid-template-columns:repeat(2,1fr);gap:8px}
  .photo-section .report-photo-grid img{width:32mm;height:24mm}
  .photo-section .photo-service-block{padding:8px;break-inside:avoid}
}
@media(max-width:650px){.executive-grid,.evidence-gallery{grid-template-columns:1fr}.closure-box{margin-left:0;margin-right:0}}

/* ORBIS 3.2 - Reporte PDF compacto y sin sombreado por hover */
.report-pro .report-table tr:hover td,
.report-pro table tr:hover td,
.report-pro tr:hover td{
  background:#fff !important;
  color:#111827 !important;
}
.report-pro .report-cover{
  min-height:220px !important;
  page-break-after:auto !important;
  break-after:auto !important;
  margin-bottom:0 !important;
}
.report-pro .report-cover img{
  height:220px !important;
  object-fit:cover !important;
}
.report-pro .cover-overlay{
  right:28px !important;
  top:34px !important;
  padding:18px 26px !important;
  background:rgba(255,255,255,.88) !important;
  color:#0f172a !important;
  border-radius:0 0 0 24px !important;
}
.report-pro .cover-overlay h1{color:#0f172a !important;font-size:32px !important;}
.report-pro .cover-kicker{color:#334155 !important;}
.report-pro .report-title-block{padding-top:18px !important;}
.report-pro .report-section{margin-top:13px !important;}
.report-pro .report-table{font-size:11px !important;}
.report-pro .report-table th,
.report-pro .report-table td{padding:5px 6px !important;}
.report-pro .photo-section{break-before:auto !important;page-break-before:auto !important;}
.report-pro .photo-service-block{
  display:inline-block;
  width:49%;
  vertical-align:top;
  min-height:122px;
  margin:6px .5% 8px 0 !important;
  padding:9px !important;
  break-inside:avoid;
  page-break-inside:avoid;
}
.report-pro .report-photo-grid img{width:118px !important;height:88px !important;}
.report-pro .report-signatures{padding-top:32px !important;}
@page{size:A4;margin:8mm;}
@media print{
  html,body{background:#fff !important;}
  body{print-color-adjust:exact;-webkit-print-color-adjust:exact;}
  .report-pro{font-size:11.5px !important;line-height:1.33 !important;}
  .report-pro .report-cover{min-height:135px !important;page-break-after:auto !important;break-after:auto !important;}
  .report-pro .report-cover img{height:135px !important;}
  .report-pro .cover-overlay{top:16px !important;right:16px !important;padding:11px 18px !important;border-radius:0 0 0 18px !important;}
  .report-pro .cover-overlay h1{font-size:24px !important;margin:4px 0 !important;}
  .report-pro .cover-kicker{font-size:9px !important;}
  .report-pro .report-title-block{padding-top:10px !important;padding-bottom:4px !important;}
  .report-pro .report-title-block h2{font-size:16px !important;margin-bottom:9px !important;}
  .report-pro .report-sign-grid>div{padding:7px !important;}
  .report-pro .report-section{margin-top:9px !important;}
  .report-pro p{margin:3px 0 !important;}
  .report-pro ol{margin-top:3px !important;margin-bottom:4px !important;}
  .report-pro .report-table{font-size:9.2px !important;}
  .report-pro .report-table th,
  .report-pro .report-table td{padding:4px 5px !important;}
  .report-pro .photo-service-block{width:49% !important;min-height:96px !important;margin:4px .5% 6px 0 !important;padding:7px !important;}
  .report-pro .report-photo-grid img{width:92px !important;height:68px !important;}
  .report-pro .report-signatures{padding-top:24px !important;padding-bottom:8px !important;}
  .report-pro .report-footer-note{padding-bottom:8px !important;}
}

/* ORBIS 3.3 - Evidencias agrupadas por fecha */
.report-pro .evidence-date-block{
  margin:10px 0 14px;
  break-inside:avoid;
  page-break-inside:avoid;
}
.report-pro .evidence-date-title{
  display:inline-block;
  background:#0b2f66;
  color:#fff;
  font-weight:900;
  font-size:12px;
  letter-spacing:.03em;
  padding:6px 10px;
  border-radius:9px 9px 0 0;
  margin-bottom:0;
}
.report-pro .evidence-gallery-by-date{
  border-top:3px solid #0b2f66;
  padding-top:8px;
}
.report-pro .evidence-gallery-by-date .photo-service-block p{
  min-height:34px;
}
@media print{
  .report-pro .evidence-date-block{margin:7px 0 10px !important;}
  .report-pro .evidence-date-title{font-size:10px !important;padding:4px 8px !important;}
  .report-pro .evidence-gallery-by-date{padding-top:6px !important;}
}


/* ORBIS 3.4 - Header/footer corporativo y evidencias 3 columnas */
.print-report-header,
.print-report-footer{
  display:none;
}

.report-pro .cover-station{
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:.08em;
  font-size:15px;
  color:#0f172a !important;
}

.report-pro .evidence-gallery-by-date{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:9px !important;
  align-items:start;
}

.report-pro .evidence-gallery-by-date .photo-service-block{
  display:block !important;
  width:auto !important;
  margin:0 !important;
  min-height:116px;
}

.report-pro .evidence-gallery-by-date .photo-service-block p{
  font-size:12px;
  line-height:1.25;
  margin:0 0 6px !important;
  min-height:34px;
}

.report-pro .evidence-date-title{
  border-radius:8px !important;
}

.closure-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:8px 0 10px;
}
.closure-kpis>div{
  border:1px solid #d6dbe5;
  background:#fff;
  border-radius:10px;
  padding:8px;
}
.closure-kpis span{
  display:block;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#64748b;
}
.closure-kpis b{
  color:#0f172a;
  font-size:12px;
}

@media print{
  @page{
    size:A4;
    margin:12mm 8mm 12mm 8mm;
  }

  .print-report-header{
    display:flex !important;
    position:fixed;
    top:-8mm;
    left:0;
    right:0;
    height:9mm;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:0 2mm 2mm;
    border-bottom:1px solid #d6dbe5;
    background:#fff;
    color:#0f172a;
    font-size:8.5px;
    z-index:999;
  }
  .print-report-header b{
    font-size:10px;
    margin-right:6px;
    color:#0b2f66;
  }
  .print-report-header span{
    color:#334155;
    font-weight:700;
  }

  .print-report-footer{
    display:flex !important;
    position:fixed;
    bottom:-8mm;
    left:0;
    right:0;
    height:8mm;
    align-items:center;
    justify-content:center;
    padding-top:2mm;
    border-top:1px solid #d6dbe5;
    background:#fff;
    color:#64748b;
    font-size:8.5px;
    z-index:999;
  }
  .print-report-footer::after{
    content:" · Página " counter(page);
    color:#64748b;
  }

  .report-pro .cover-station{
    font-size:11px !important;
    letter-spacing:.06em !important;
  }

  .report-pro .evidence-gallery-by-date{
    grid-template-columns:repeat(3,1fr) !important;
    gap:5px !important;
  }
  .report-pro .evidence-gallery-by-date .photo-service-block{
    width:auto !important;
    min-height:82px !important;
    padding:6px !important;
    break-inside:avoid;
    page-break-inside:avoid;
  }
  .report-pro .evidence-gallery-by-date .photo-service-block p{
    font-size:8.7px !important;
    line-height:1.18 !important;
    min-height:24px !important;
  }
  .report-pro .evidence-gallery-by-date .report-photo-grid img{
    width:24mm !important;
    height:18mm !important;
  }
  .closure-kpis{
    grid-template-columns:repeat(4,1fr) !important;
    gap:5px !important;
  }
  .closure-kpis>div{
    padding:5px !important;
  }
  .closure-kpis span{
    font-size:7.5px !important;
  }
  .closure-kpis b{
    font-size:8.5px !important;
  }
}

@media(max-width:650px){
  .report-pro .evidence-gallery-by-date{grid-template-columns:1fr !important;}
  .closure-kpis{grid-template-columns:1fr 1fr;}
}

/* ORBIS 3.5 - reporte corporativo final: fuente, header/footer y conformidad */
.report-pro{
  font-family:"Aptos","Segoe UI",Roboto,Arial,sans-serif !important;
  letter-spacing:.005em;
}
.report-pro h1,.report-pro h2,.report-pro h3,.report-pro b,.report-pro th,
.executive-grid span,.closure-kpis span,.cover-kicker{
  font-family:"Aptos Display","Segoe UI",Roboto,Arial,sans-serif !important;
}
.report-pro .cover-kicker{
  color:#0b2f66 !important;
  font-weight:900 !important;
  letter-spacing:.13em !important;
}
.report-pro .cover-station{
  color:#0f172a !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
}
.report-pro .report-title-block h2{
  color:#0f172a !important;
  letter-spacing:.02em;
}
.executive-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.executive-grid>div{
  min-height:58px !important;
}
.report-pro .evidence-date-title{
  background:#0b2f66 !important;
  border-radius:999px !important;
  padding:6px 12px !important;
  margin-bottom:7px !important;
}
.report-pro .evidence-gallery-by-date{
  border-top:3px solid #0b2f66 !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
.report-pro .evidence-gallery-by-date .photo-service-block{
  border-radius:12px !important;
  box-shadow:0 1px 0 rgba(15,23,42,.04);
}
.closure-with-signatures{
  break-inside:avoid;
  page-break-inside:avoid;
}
.conformidad-box{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid #d6dbe5;
}
.conformidad-box>p:first-child{
  margin-top:0 !important;
  color:#0b2f66 !important;
  letter-spacing:.04em;
}
.conformidad-text{
  color:#334155 !important;
}
.report-signatures-inline{
  padding:22px 0 6px !important;
  gap:42px !important;
}
.report-signatures-inline .sign-line{
  width:88% !important;
  background:#0f172a !important;
}
.report-footer-note{
  color:#475569 !important;
  font-weight:700;
}

@media print{
  @page{size:A4;margin:10mm 8mm 10mm 8mm;}
  .report-pro{font-family:"Aptos","Segoe UI",Arial,sans-serif !important;}
  .print-report-header{
    display:flex !important;
    position:fixed;
    top:-6.5mm;
    left:0;right:0;
    height:7mm;
    align-items:center;
    justify-content:space-between;
    padding:0 1mm 1.5mm;
    border-bottom:1px solid #d6dbe5;
    background:#fff;
    color:#0f172a;
    font-size:7.8px;
    z-index:999;
  }
  .print-report-header b{
    color:#0b2f66 !important;
    font-size:8.5px !important;
    margin-right:5px;
  }
  .print-report-header span{font-weight:700;color:#334155;}
  .print-report-footer{
    display:flex !important;
    position:fixed;
    bottom:-6.5mm;
    left:0;right:0;
    height:6.5mm;
    align-items:center;
    justify-content:center;
    padding-top:1.5mm;
    border-top:1px solid #d6dbe5;
    background:#fff;
    color:#64748b;
    font-size:7.6px;
    z-index:999;
  }
  .print-report-footer::after{content:"" !important;}
  .executive-grid{grid-template-columns:repeat(4,1fr) !important;gap:5px !important;}
  .executive-grid>div{min-height:42px !important;padding:6px 7px !important;}
  .executive-grid span{font-size:7.5px !important;}
  .executive-grid b{font-size:9.5px !important;}
  .report-pro .report-cover{height:128px !important;min-height:128px !important;}
  .report-pro .report-cover img{height:128px !important;}
  .report-pro .cover-overlay{top:13px !important;right:13px !important;padding:10px 16px !important;}
  .report-pro .cover-overlay h1{font-size:22px !important;}
  .report-pro .cover-station{font-size:9.5px !important;}
  .report-pro .evidence-gallery-by-date{grid-template-columns:repeat(3,1fr) !important;gap:5px !important;}
  .report-pro .evidence-gallery-by-date .photo-service-block{min-height:78px !important;padding:6px !important;}
  .report-pro .evidence-gallery-by-date .photo-service-block p{font-size:8.4px !important;min-height:22px !important;}
  .report-pro .evidence-gallery-by-date .report-photo-grid img{width:23mm !important;height:17mm !important;}
  .closure-with-signatures{padding:8px 10px !important;}
  .conformidad-box{margin-top:7px !important;padding-top:6px !important;}
  .conformidad-text{font-size:8.8px !important;}
  .report-signatures-inline{padding:15px 0 2px !important;gap:32px !important;}
  .report-signatures-inline b{font-size:9px !important;}
  .report-signatures-inline small{font-size:7.2px !important;}
  .report-sign-img{width:42mm !important;height:16mm !important;}
  .report-footer-note{font-size:8px !important;padding-bottom:4px !important;}
}

@media(max-width:650px){
  .executive-grid{grid-template-columns:1fr 1fr !important;}
  .report-signatures-inline{grid-template-columns:1fr !important;gap:18px !important;}
}

/* ORBIS 3.6 - ajustes finales de reporte corporativo */
.report-pro .cover-overlay{
  background:rgba(255,255,255,.96) !important;
  min-width:300px;
}
.report-pro .cover-overlay h1{
  margin-bottom:2px !important;
}
.report-pro .cover-station{
  margin:2px 0 0 !important;
  color:#0f172a !important;
  letter-spacing:.08em !important;
}
.report-pro .cover-station-sub{
  margin:2px 0 0 !important;
  color:#0b2f66 !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
  font-size:13px;
  text-transform:uppercase;
}
.jornada-operacional-block,
.jornada-operacional-block .report-table-wrap,
.jornada-operacional-block .report-table{
  break-inside:avoid !important;
  page-break-inside:avoid !important;
}
.report-pro .evidence-gallery-by-date .photo-service-block p{
  min-height:auto !important;
  font-size:11px !important;
  line-height:1.2 !important;
}
.report-pro .evidence-gallery-by-date .photo-service-block{
  min-height:104px !important;
}
.report-pro .closure-box p{
  line-height:1.35;
}
.report-pro .conformidad-box>p:first-child{
  color:#0b2f66 !important;
  font-weight:900 !important;
}
.report-pro .report-signatures-inline{
  padding-top:18px !important;
}
.report-pro .report-footer-note{
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:11px;
}
@media print{
  @page{size:A4;margin:10mm 8mm 10mm 8mm;}
  .jornada-operacional-block{
    break-before:auto;
    page-break-inside:avoid !important;
    break-inside:avoid !important;
  }
  .jornada-operacional-block .report-table tr,
  .jornada-operacional-block .report-table tbody,
  .jornada-operacional-block .report-table thead{
    page-break-inside:avoid !important;
    break-inside:avoid !important;
  }
  .report-pro .cover-overlay{min-width:260px !important;}
  .report-pro .cover-station-sub{font-size:8.8px !important;}
  .report-pro .evidence-gallery-by-date .photo-service-block p{
    font-size:8px !important;
    min-height:17px !important;
  }
  .report-pro .evidence-gallery-by-date .photo-service-block{
    min-height:72px !important;
  }
  .report-pro .closure-box p{font-size:8.8px !important;}
  .report-pro .report-footer-note{font-size:7.6px !important;}
}


/* ORBIS 4.0 - fecha visible en evidencias y grilla estable 3 columnas */
.report-pro .photo-section{
  break-before: page;
  page-break-before: always;
  margin-top: 0 !important;
}
.report-pro .photo-section > p{
  margin: 0 0 6px !important;
  padding-bottom: 5px;
  border-bottom: 2px solid #0b2f66;
  color: #0b2f66 !important;
  font-weight: 900;
  letter-spacing: .04em;
}
.report-pro .evidence-date-block{
  margin: 8px 0 14px !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}
.report-pro .evidence-date-title{
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 0 !important;
  background: #0b2f66 !important;
  color: #fff !important;
  padding: 6px 10px !important;
  margin: 0 !important;
  font-weight: 900 !important;
  letter-spacing: .04em;
  border-top: 3px solid #08285a;
  page-break-after: avoid !important;
  break-after: avoid !important;
}
.report-pro .evidence-date-title span,
.report-pro .evidence-date-title small{
  color:#fff !important;
  font-weight:900 !important;
  text-transform:uppercase;
}
.report-pro .evidence-date-title small{
  font-size:10px;
  opacity:.92;
}
.report-pro .evidence-gallery-by-date{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  padding: 7px !important;
  border: 1px solid #d6dbe5 !important;
  border-top: 0 !important;
  border-radius: 0 0 12px 12px !important;
  background: #f8fafc !important;
  align-items: stretch !important;
}
.report-pro .evidence-gallery-by-date .photo-service-block{
  width:auto !important;
  min-height: 88px !important;
  margin:0 !important;
  padding:6px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  border:1px solid #cbd5e1 !important;
  border-radius:10px !important;
  background:#fff !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}
.report-pro .evidence-gallery-by-date .photo-service-block p{
  min-height: auto !important;
  margin:0 0 4px !important;
  font-size:9.4px !important;
  line-height:1.15 !important;
  color:#111827 !important;
}
.report-pro .evidence-gallery-by-date .report-photo-grid{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:4px !important;
}
.report-pro .evidence-gallery-by-date .report-photo-grid img{
  width:31mm !important;
  height:21mm !important;
  object-fit:cover !important;
  border-radius:7px !important;
}
.report-pro .conformidad-box{
  margin-top:10px !important;
  padding-top:10px !important;
}
.report-pro .report-signatures-inline{
  padding:24px 0 12px !important;
  margin-top:10px !important;
}
.report-pro .report-signatures-inline .sign-line{
  margin-bottom:12px !important;
}
@media print{
  .report-pro .photo-section{
    break-before: page !important;
    page-break-before: always !important;
  }
  .report-pro .photo-section > p{
    font-size:10px !important;
    margin-bottom:5px !important;
  }
  .report-pro .evidence-date-block{
    margin:6px 0 9px !important;
  }
  .report-pro .evidence-date-title{
    padding:4px 7px !important;
    font-size:9px !important;
  }
  .report-pro .evidence-date-title small{font-size:7.5px !important;}
  .report-pro .evidence-gallery-by-date{
    grid-template-columns: repeat(3, 1fr) !important;
    gap:5px !important;
    padding:5px !important;
  }
  .report-pro .evidence-gallery-by-date .photo-service-block{
    min-height:62px !important;
    padding:4px !important;
  }
  .report-pro .evidence-gallery-by-date .photo-service-block p{
    font-size:7.5px !important;
    line-height:1.12 !important;
    margin-bottom:3px !important;
  }
  .report-pro .evidence-gallery-by-date .report-photo-grid img{
    width:24mm !important;
    height:16mm !important;
  }
  .report-pro .conformidad-box{
    margin-top:9px !important;
    padding-top:8px !important;
  }
  .report-pro .report-signatures-inline{
    padding:22px 0 10px !important;
    margin-top:10px !important;
  }
}


/* ORBIS 4.1 - corrección de orden, paginación y evidencias compactas */
.report-pro .photo-section{
  break-before:auto !important;
  page-break-before:auto !important;
  margin-top:8px !important;
}
.report-pro .evidence-main-title{
  margin:0 0 7px !important;
  padding:0 0 5px !important;
  border-bottom:2px solid #0b2f66 !important;
  color:#0b2f66 !important;
  font-size:13px !important;
  font-weight:900 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
}
.report-pro .evidence-date-block{
  margin:7px 0 10px !important;
  break-inside:avoid !important;
  page-break-inside:avoid !important;
}
.report-pro .evidence-date-title{
  display:block !important;
  width:100% !important;
  background:#0b2f66 !important;
  color:#fff !important;
  padding:6px 10px !important;
  margin:0 !important;
  border-radius:10px 10px 0 0 !important;
  border-top:0 !important;
  font-size:12px !important;
  line-height:1.1 !important;
}
.report-pro .evidence-date-title span{
  color:#fff !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.04em !important;
}
.report-pro .evidence-date-title small{display:none !important;}
.report-pro .evidence-gallery-by-date{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:6px !important;
  padding:6px !important;
  border:1px solid #d6dbe5 !important;
  border-top:0 !important;
  border-radius:0 0 12px 12px !important;
  background:#f8fafc !important;
}
.report-pro .evidence-gallery-by-date .photo-service-block{
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  width:auto !important;
  min-height:86px !important;
  margin:0 !important;
  padding:6px !important;
  border:1px solid #cbd5e1 !important;
  border-radius:10px !important;
  background:#fff !important;
  break-inside:avoid !important;
  page-break-inside:avoid !important;
}
.report-pro .evidence-gallery-by-date .photo-service-block p{
  margin:0 0 4px !important;
  font-size:9px !important;
  line-height:1.12 !important;
  color:#111827 !important;
}
.report-pro .evidence-gallery-by-date .report-photo-grid{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:4px !important;
}
.report-pro .evidence-gallery-by-date .report-photo-grid img{
  width:27mm !important;
  height:19mm !important;
  object-fit:cover !important;
  border-radius:7px !important;
}
.report-pro .report-signatures-inline{
  padding:30px 0 16px !important;
  margin-top:12px !important;
}
.report-pro .report-signatures-inline .sign-line{
  margin-bottom:14px !important;
}

@media print{
  @page{size:A4;margin:8mm 7mm 8mm 7mm;}
  html,body{background:#fff !important;}
  body{print-color-adjust:exact;-webkit-print-color-adjust:exact;}
  .container{width:100% !important;padding:0 !important;}
  .report-pro{font-size:9px !important;line-height:1.18 !important;}
  .report-pro .report-cover{height:112px !important;min-height:112px !important;margin-bottom:4px !important;}
  .report-pro .report-cover img{height:112px !important;}
  .report-pro .cover-overlay{top:12px !important;right:12px !important;padding:8px 14px !important;min-width:230px !important;}
  .report-pro .cover-kicker{font-size:7px !important;}
  .report-pro .cover-overlay h1{font-size:19px !important;margin:2px 0 !important;}
  .report-pro .cover-station,.report-pro .cover-station-sub{font-size:8px !important;margin:1px 0 !important;}
  .report-pro .report-title-block{padding:6px 8mm 3px !important;}
  .report-pro .report-title-block h2{font-size:13px !important;margin:0 0 6px !important;}
  .report-sign-grid{grid-template-columns:repeat(3,1fr) !important;gap:5px !important;}
  .report-sign-grid>div{padding:5px 7px !important;border-radius:8px !important;font-size:8.2px !important;}
  .report-pro .report-section,.report-data-grid{padding-left:8mm !important;padding-right:8mm !important;}
  .report-pro .report-section{margin-top:5px !important;}
  .report-pro p{margin:2px 0 !important;}
  .executive-grid{grid-template-columns:repeat(4,1fr) !important;gap:4px !important;margin-top:3px !important;}
  .executive-grid>div{min-height:30px !important;padding:4px 6px !important;border-radius:8px !important;}
  .executive-grid span{font-size:6.6px !important;margin-bottom:1px !important;}
  .executive-grid b{font-size:8.3px !important;}
  .report-data-grid{grid-template-columns:repeat(2,1fr) !important;gap:0 10px !important;font-size:8.3px !important;}
  .report-pro ol{margin:2px 0 2px 12px !important;padding-left:8px !important;}
  .report-table-wrap{overflow:visible !important;}
  .report-table{font-size:7.7px !important;line-height:1.12 !important;}
  .report-table th,.report-table td{padding:3px 4px !important;}
  .report-table tr{break-inside:avoid !important;page-break-inside:avoid !important;}
  .photo-section{break-before:auto !important;page-break-before:auto !important;}
  .report-pro .evidence-main-title{font-size:9px !important;margin-top:4px !important;margin-bottom:4px !important;}
  .report-pro .evidence-date-block{margin:4px 0 7px !important;break-inside:avoid !important;page-break-inside:avoid !important;}
  .report-pro .evidence-date-title{font-size:8.5px !important;padding:4px 6px !important;}
  .report-pro .evidence-date-title small{display:none !important;}
  .report-pro .evidence-gallery-by-date{grid-template-columns:repeat(3,1fr) !important;gap:4px !important;padding:4px !important;}
  .report-pro .evidence-gallery-by-date .photo-service-block{min-height:60px !important;padding:4px !important;border-radius:7px !important;}
  .report-pro .evidence-gallery-by-date .photo-service-block p{font-size:6.9px !important;margin-bottom:2px !important;}
  .report-pro .evidence-gallery-by-date .report-photo-grid img{width:22mm !important;height:15mm !important;}
  .closure-box{margin-left:8mm !important;margin-right:8mm !important;padding:7px 9px !important;}
  .closure-kpis{grid-template-columns:repeat(4,1fr) !important;gap:4px !important;margin:4px 0 6px !important;}
  .closure-kpis>div{padding:4px !important;border-radius:7px !important;}
  .closure-kpis span{font-size:6.5px !important;}
  .closure-kpis b{font-size:7.5px !important;}
  .conformidad-box{margin-top:7px !important;padding-top:7px !important;}
  .conformidad-text{font-size:7.8px !important;}
  .report-signatures-inline{padding:24px 0 12px !important;margin-top:10px !important;}
  .report-signatures-inline .sign-line{margin-bottom:12px !important;}
  .report-signatures-inline b{font-size:8px !important;}
  .report-footer-note{font-size:7.5px !important;padding:4px 0 !important;}
}


/* ORBIS 4.2 - Modo claro/oscuro + Silla Escalamóvil */
.theme-toggle{white-space:nowrap;min-width:98px}
html[data-theme="light"], body[data-theme="light"]{
  --bg:#eef5ff;
  --panel:#ffffff;
  --panel2:#f7fbff;
  --card:#ffffff;
  --line:#cbd9ea;
  --text:#102033;
  --muted:#526579;
  --brand:#2563eb;
  --shadow:0 12px 30px rgba(15,23,42,.10);
}
body[data-theme="light"]{
  background:linear-gradient(135deg,#f8fbff 0,#eef5ff 42%,#e8f1ff 100%) !important;
  color:var(--text) !important;
}
body[data-theme="light"] .topbar{
  background:rgba(255,255,255,.92) !important;
  border-bottom:1px solid rgba(15,23,42,.10) !important;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
body[data-theme="light"] .card,
body[data-theme="light"] .login-card,
body[data-theme="light"] .login-card-pro,
body[data-theme="light"] .firma-box{
  background:rgba(255,255,255,.92) !important;
  border-color:rgba(15,23,42,.10) !important;
  color:var(--text) !important;
}
body[data-theme="light"] .stat{
  background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(56,189,248,.06)) !important;
  border-color:rgba(37,99,235,.18) !important;
}
body[data-theme="light"] .input,
body[data-theme="light"] select,
body[data-theme="light"] textarea{
  background:#f8fbff !important;
  color:#0f172a !important;
  border-color:#cbd9ea !important;
}
body[data-theme="light"] .btn-ghost,
body[data-theme="light"] .check-pill{
  background:#f8fbff !important;
  border-color:#cbd9ea !important;
  color:#102033 !important;
}
body[data-theme="light"] table{background:#fff !important;color:#0f172a !important;}
body[data-theme="light"] th{background:#eaf2ff !important;color:#0b2f66 !important;border-bottom:1px solid #cbd9ea !important;}
body[data-theme="light"] td{border-bottom:1px solid #dbe5f2 !important;}
body[data-theme="light"] tr:hover td{background:#f3f8ff !important;}
body[data-theme="light"] .badge{background:#eef6ff;color:#0b2f66;border-color:#c6dbf7;}
body[data-theme="light"] .badge-ok{background:#eafaf0;color:#15803d;border-color:#bbf7d0;}
body[data-theme="light"] .badge-warn{background:#fff7ed;color:#b45309;border-color:#fed7aa;}
body[data-theme="light"] .muted{color:#526579 !important;}
body[data-theme="light"] label{color:#203047 !important;}
body[data-theme="light"] .water-box,
body[data-theme="light"] .jornada-card{
  background:linear-gradient(135deg,#ffffff,#f1f8ff) !important;
  border-color:#cbd9ea !important;
}
body[data-theme="light"] .duration-badge{background:#eef6ff;color:#0b2f66;border-color:#c6dbf7;}
body[data-theme="light"] .duration-ok{background:#eafaf0;color:#15803d;border-color:#bbf7d0;}
body[data-theme="light"] .duration-warn{background:#fff7ed;color:#b45309;border-color:#fed7aa;}
body[data-theme="light"] .duration-danger{background:#fee2e2;color:#b91c1c;border-color:#fecaca;}
.service-quick .btn[data-service*="Silla"]{
  background:rgba(56,189,248,.10);
  border-color:rgba(56,189,248,.28);
}
body[data-theme="light"] .service-quick .btn[data-service*="Silla"]{
  background:#eaf6ff !important;
  border-color:#b9dcff !important;
}
@media(max-width:900px){.theme-toggle{min-width:auto}}
@media print{.theme-toggle{display:none!important}}
