*{box-sizing:border-box}body{margin:0;background:#f4f6f8;font-family:Arial,sans-serif;color:#1d2733}header{background:#132238;color:white;padding:14px 22px;display:flex;gap:25px;align-items:center;position:sticky;top:0;z-index:10}header nav{display:flex;gap:14px;flex:1}header a{color:white;text-decoration:none}main{max-width:1150px;margin:25px auto;padding:0 18px}.card,.verify,.login{background:white;border-radius:12px;padding:22px;box-shadow:0 2px 10px #00000010}.login{max-width:420px;margin:90px auto}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.wide{grid-column:1/-1}label{font-size:13px;font-weight:bold}input,select,textarea{width:100%;padding:11px;border:1px solid #ccd4dd;border-radius:7px;margin-top:6px}textarea{min-height:80px}button{background:#147a4b;color:white;border:0;border-radius:8px;padding:11px 16px;font-weight:bold;cursor:pointer;margin-top:12px}.danger{background:#9b2525}.notice{background:#e8f2ff;border-left:4px solid #276cb8;padding:12px;margin:12px 0 18px}.table{overflow:auto;background:white;padding:12px;border-radius:10px}table{width:100%;border-collapse:collapse}td,th{padding:10px;border-bottom:1px solid #e5e7eb;text-align:left}.ok{display:inline-block;background:#dcf5e8;color:#17633e;padding:9px 12px;border-radius:20px;font-weight:bold}.bad{display:inline-block;background:#ffe6e6;color:#9d2424;padding:9px 12px;border-radius:20px;font-weight:bold}.alert{background:#ffe8cc;padding:10px;border-radius:8px;margin-bottom:10px}

.print-actions{max-width:850px;margin:0 auto 12px}.official-sheet{background:#fff;width:210mm;min-height:297mm;margin:0 auto;padding:10mm 11mm;box-shadow:0 1px 12px #0002;color:#000;font-size:10.5px}.official-title{text-align:center;font-weight:700;font-size:13px;line-height:1.2;margin-bottom:8px}.fuec-table{width:100%;border-collapse:collapse;table-layout:fixed}.fuec-table th,.fuec-table td{border:1px solid #222;padding:4px 5px;vertical-align:middle;word-wrap:break-word}.fuec-table th{font-weight:700;background:#f5f5f5}.fuec-table .label{width:20%}.fuec-table .number{font-weight:700;font-size:13px;letter-spacing:.3px}.small-center{text-align:center;font-size:8.5px}.section-title{text-align:center;border:1px solid #222;border-bottom:0;font-weight:700;padding:4px;margin-top:7px;background:#eee}.center td,.center th{text-align:center}.drivers th:first-child{width:11%}.drivers th:nth-child(2){width:34%}.bottom-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:10px;margin-top:8px}.company-box,.qr-box{border:1px solid #222;padding:8px}.qr-box{display:flex;align-items:center;gap:8px;text-align:center;justify-content:center}.qr-box img{width:105px;height:105px}.status-line{margin-top:8px;border-top:1px solid #999;padding-top:5px}.verify{max-width:650px;margin:50px auto}

@media(max-width:900px){.grid{grid-template-columns:1fr}.official-sheet{width:100%;min-height:0;padding:12px;font-size:9px}.bottom-grid{grid-template-columns:1fr}.fuec-table th,.fuec-table td{padding:3px}.qr-box img{width:90px;height:90px}header{flex-wrap:wrap}header nav{flex-wrap:wrap}}
@media print{@page{size:A4 portrait;margin:0}header,.no-print{display:none!important}body{background:#fff;margin:0}main{max-width:none;margin:0;padding:0}.official-sheet{box-shadow:none;width:210mm;min-height:297mm;margin:0;padding:8mm 9mm;font-size:9.5px}.official-title{font-size:12px}.fuec-table th,.fuec-table td{padding:3px 4px}.qr-box img{width:95px;height:95px}}

.badge{display:inline-block;padding:5px 9px;border-radius:14px;font-weight:700;font-size:11px}.badge.active{background:#dcf5e8;color:#17633e}.badge.inactive{background:#eceff3;color:#5c6470}
.actions{white-space:nowrap}.btnlink{display:inline-block;background:#1f6feb;color:#fff;text-decoration:none;padding:8px 11px;border-radius:7px;font-weight:700;font-size:12px}.warn{background:#a65a00}.secondary{background:#485563}
.drivers th:first-child{width:13%;word-break:normal;white-space:normal}.drivers th:nth-child(2){width:33%}
.alert{border-left:4px solid #c73535;background:#ffe8e8;color:#7d1e1e;font-weight:600}

.doc{display:inline-block;padding:3px 6px;border-radius:10px;font-weight:700}
.doc.active{background:#dcf5e8;color:#17633e}
.doc.warning{background:#fff2cc;color:#7d5a00}
.doc.expired{background:#ffe1e1;color:#941f1f}
.doc.missing{background:#eceff3;color:#555}

.dashboard-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}
.dashboard-head h1{margin:0 0 4px}.dashboard-head p{margin:0;color:#667085}
.big-action{background:#147a4b;color:#fff;text-decoration:none;padding:12px 16px;border-radius:9px;font-weight:700;white-space:nowrap}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}
.metric{background:#fff;border-radius:12px;padding:18px;box-shadow:0 2px 10px #0000000c;border:1px solid #e9edf2}
.metric span{display:block;color:#667085;font-size:13px}.metric strong{display:block;font-size:30px;margin-top:7px}
.alert-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 18px}
.summary-box{background:#fff;border-radius:11px;padding:14px 17px;display:flex;align-items:center;gap:12px;border-left:5px solid}
.summary-box b{font-size:24px}.summary-box span{font-weight:700}
.summary-box.expired{border-color:#c73535}.summary-box.warning{border-color:#d29b18}.summary-box.missing{border-color:#7b8794}
.panel{background:#fff;border-radius:12px;padding:18px;margin:16px 0;box-shadow:0 2px 10px #0000000c}
.panel-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.panel-title h2{margin:0;font-size:19px}.panel-title a{font-size:13px}
.alerts-list{display:flex;flex-direction:column;gap:9px}.dash-alert{display:flex;align-items:center;gap:12px;padding:12px;border-radius:9px;border:1px solid}
.dash-alert.expired{background:#fff2f2;border-color:#f0b9b9}.dash-alert.warning{background:#fff9e8;border-color:#edd897}.dash-alert.missing{background:#f4f6f8;border-color:#d8dde3}
.alert-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;background:#fff}
.alert-main{display:flex;flex-direction:column;gap:3px;flex:1}.alert-main span{font-size:13px;color:#5c6672}.dash-alert a{font-size:12px;font-weight:700}
.all-good{background:#ecf8f0;color:#17633e;padding:14px;border-radius:9px;font-weight:700}
.state{display:inline-block;padding:4px 8px;border-radius:12px;font-size:11px;font-weight:800}.state.vigente{background:#dcf5e8;color:#17633e}.state.vencido{background:#ffe1e1;color:#941f1f}.state.anulado{background:#eceff3;color:#59616b}
@media(max-width:900px){.cards{grid-template-columns:1fr 1fr}.alert-summary{grid-template-columns:1fr}.dashboard-head{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.cards{grid-template-columns:1fr}}

.btn-mini{display:inline-block;padding:7px 10px;border-radius:7px;background:#2f6fed;color:white;text-decoration:none;font-size:12px;font-weight:700}
button.danger{background:#a83232}button.secondary{background:#667085}

.backup-actions{display:flex;align-items:center;justify-content:space-between;gap:20px}.backup-actions h2{margin-top:0}.backup-info{margin-top:16px}
@media(max-width:700px){.backup-actions{align-items:flex-start;flex-direction:column}}

.restore-box{margin-top:16px}.warning-box{padding:12px;margin:12px 0;background:#fff4d6;border-left:4px solid #d89b00;border-radius:6px}

/* V13 - Imagen corporativa y auditoria */
.brand-system{display:flex;align-items:center;gap:10px;min-width:190px}
.brand-system img{width:54px;height:38px;object-fit:contain;background:white;border-radius:5px;padding:2px}
.fuec-brand-head{display:grid;grid-template-columns:155px 1fr 155px;align-items:center;gap:10px;margin-bottom:8px}
.fuec-brand-head .official-title{margin:0}
.fuec-logo{display:flex;align-items:center;justify-content:center;height:68px}
.fuec-logo img{max-width:100%;max-height:66px;object-fit:contain}
.fuec-logo.ministry img{max-height:55px}
.btn-backup{background:#000000!important;color:#ffffff!important}
.audit-search{display:flex;align-items:flex-end;gap:10px}
.audit-search input{flex:1}.audit-search button,.audit-search a{margin-top:6px}
.audit-table{margin-top:14px}.audit-table td:first-child{white-space:nowrap;font-size:12px}
@media(max-width:900px){.brand-system b{display:none}.brand-system{min-width:auto}.fuec-brand-head{grid-template-columns:110px 1fr 110px}}
@media(max-width:560px){.fuec-brand-head{grid-template-columns:1fr}.fuec-logo{height:48px}}
@media print{.fuec-brand-head{grid-template-columns:135px 1fr 135px;gap:6px;margin-bottom:5px}.fuec-logo{height:52px}.fuec-logo img{max-height:50px}.fuec-logo.ministry img{max-height:44px}}


/* V13.1 — FUEC A4 de página completa */
.official-sheet{
  width:210mm;
  min-height:297mm;
  padding:6mm 6mm 5mm;
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
}
.fuec-brand-head{
  min-height:34mm;
  grid-template-columns:42mm 1fr 42mm;
  border:1px solid #222;
  margin-bottom:4mm;
  gap:0;
}
.fuec-brand-head .official-title{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:4mm 3mm;
  border-left:1px solid #222;
  border-right:1px solid #222;
  font-size:13px;
  line-height:1.25;
}
.fuec-logo{height:33mm;padding:2mm;box-sizing:border-box}
.fuec-logo img{max-height:29mm;max-width:38mm}
.fuec-logo.ministry img{max-height:27mm;max-width:38mm}
.fuec-table th,.fuec-table td{padding:4.5px 5px}
.section-title{padding:5px;margin-top:8px}
.bottom-grid{margin-top:9px;min-height:31mm}
.company-box,.qr-box{min-height:31mm}
.qr-box img{width:27mm;height:27mm}
.fuec-footer-note{
  margin-top:auto;
  border-top:1px solid #777;
  padding-top:2.5mm;
  text-align:center;
  font-size:8.5px;
  line-height:1.25;
}

@media print{
  html,body{width:210mm;height:297mm}
  @page{size:A4 portrait;margin:0}
  body{margin:0!important;padding:0!important}
  main{margin:0!important;padding:0!important;width:210mm!important;max-width:none!important}
  .official-sheet{
    width:210mm!important;
    height:297mm!important;
    min-height:297mm!important;
    margin:0!important;
    padding:5.5mm 6mm 4.5mm!important;
    box-shadow:none!important;
    font-size:10px!important;
    overflow:hidden;
  }
  .fuec-brand-head{
    min-height:34mm!important;
    grid-template-columns:42mm 1fr 42mm!important;
    margin-bottom:3mm!important;
  }
  .fuec-brand-head .official-title{font-size:12px!important;padding:3mm 2mm!important}
  .fuec-logo{height:33mm!important}
  .fuec-logo img{max-height:29mm!important;max-width:38mm!important}
  .fuec-logo.ministry img{max-height:27mm!important}
  .fuec-table th,.fuec-table td{padding:4px 4px!important}
  .section-title{padding:4px!important;margin-top:6px!important}
  .bottom-grid{margin-top:7px!important;min-height:29mm!important}
  .company-box,.qr-box{min-height:29mm!important}
  .qr-box img{width:25mm!important;height:25mm!important}
  .fuec-footer-note{font-size:8px!important;padding-top:2mm!important}
}


/* V13.2 — Impresión A4 con márgenes físicos seguros */
@media print{
  @page{size:A4 portrait;margin:0}
  html,body{width:210mm;height:297mm;margin:0!important;padding:0!important;background:#fff!important}
  main{width:210mm!important;max-width:none!important;margin:0!important;padding:0!important}
  .official-sheet{
    width:210mm!important;height:297mm!important;min-height:297mm!important;
    box-sizing:border-box!important;
    padding:11mm 7mm 8mm 7mm!important;
    margin:0!important;box-shadow:none!important;overflow:hidden!important;
    font-size:9.4px!important;
  }
  .fuec-brand-head{
    min-height:30mm!important;height:30mm!important;
    grid-template-columns:39mm 1fr 39mm!important;
    margin-bottom:2.5mm!important;
  }
  .fuec-brand-head .official-title{
    font-size:11px!important;line-height:1.15!important;padding:2mm!important;
  }
  .fuec-logo{height:29mm!important;padding:1.5mm!important}
  .fuec-logo img{max-height:26mm!important;max-width:35mm!important}
  .fuec-logo.ministry img{max-height:24mm!important;max-width:35mm!important}
  .fuec-table th,.fuec-table td{padding:3px 4px!important;line-height:1.08!important}
  .section-title{padding:3px!important;margin-top:4px!important}
  .bottom-grid{margin-top:5px!important;min-height:25mm!important;grid-template-columns:1.4fr .8fr!important}
  .company-box,.qr-box{min-height:25mm!important;padding:5px!important}
  .qr-box img{width:22mm!important;height:22mm!important}
  .fuec-footer-note{
    margin-top:auto!important;padding-top:1.5mm!important;
    font-size:7.5px!important;line-height:1.1!important;
  }
}


/* =========================================================
   V13.3 — A4 AMPLIADA + ZONA SUPERIOR SEGURA
   Objetivo: empezar más abajo SIN encoger el FUEC.
   ========================================================= */
@media print {
  @page { size: A4 portrait; margin: 0; }

  html, body {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  main {
    width: 210mm !important;
    height: 297mm !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .official-sheet {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 15mm 7mm 7mm 7mm !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    font-size: 10.5px !important;
  }

  .fuec-brand-head {
    height: 34mm !important;
    min-height: 34mm !important;
    grid-template-columns: 42mm 1fr 42mm !important;
    margin: 0 0 3mm 0 !important;
  }

  .fuec-brand-head .official-title {
    font-size: 12.2px !important;
    line-height: 1.18 !important;
    padding: 2.5mm !important;
  }

  .fuec-logo {
    height: 33mm !important;
    padding: 1.5mm !important;
  }

  .fuec-logo img {
    max-height: 29mm !important;
    max-width: 38mm !important;
  }

  .fuec-logo.ministry img {
    max-height: 27mm !important;
    max-width: 38mm !important;
  }

  .fuec-table {
    font-size: 10.2px !important;
  }

  .fuec-table th,
  .fuec-table td {
    padding: 4.5px 5px !important;
    line-height: 1.15 !important;
  }

  .section-title {
    padding: 4.5px !important;
    margin-top: 6px !important;
    font-size: 10.5px !important;
  }

  .bottom-grid {
    margin-top: 7px !important;
    min-height: 34mm !important;
    grid-template-columns: 1.35fr .85fr !important;
  }

  .company-box,
  .qr-box {
    min-height: 34mm !important;
    padding: 7px !important;
    font-size: 10px !important;
  }

  .qr-box {
    gap: 10px !important;
  }

  .qr-box img {
    width: 28mm !important;
    height: 28mm !important;
  }

  .fuec-footer-note {
    margin-top: auto !important;
    padding-top: 2mm !important;
    padding-bottom: 1mm !important;
    font-size: 8.2px !important;
    line-height: 1.15 !important;
  }
}

.pdf-primary{background:#000!important;font-size:13px;padding:11px 16px;margin-right:6px}.print-actions .secondary{margin-top:0}
.proposal-form label{display:flex;flex-direction:column;gap:6px;font-weight:700;margin:10px 0}.proposal-form input,.proposal-form select,.proposal-form textarea{padding:10px;border:1px solid #cfd3d8;border-radius:6px;font:inherit;background:#fff}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.service-card{border:1px solid #d9dde2;border-radius:10px;padding:16px;margin:12px 0;background:#fafafa}.proposal-actions{display:flex;gap:10px;align-items:center;margin:18px 0}.danger{background:#8b1e1e;color:#fff;border:0;border-radius:6px;padding:8px 12px}@media(max-width:760px){.form-grid{grid-template-columns:1fr}}
/* V17 Propuestas inteligentes */
.proposal-section{background:#fff;border:1px solid #e0e3e7;border-radius:12px;padding:18px;margin:16px 0}.proposal-section h2{margin:0 0 14px}.section-row,.service-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.smart-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}.smart-fields label{display:flex;flex-direction:column;gap:6px;font-weight:700}.smart-fields input{padding:10px;border:1px solid #cfd3d8;border-radius:6px;font:inherit}.proposal-total{margin-top:16px;padding:16px;border-radius:10px;background:#f2f7f3;display:flex;justify-content:space-between;align-items:center;font-size:20px}.proposal-total strong{font-size:26px}.item-subtotal{text-align:right;font-size:16px;margin-top:10px}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:10px 0}.check-grid label{flex-direction:row;align-items:flex-start;font-weight:600}.check-grid input{margin-top:3px}.money-display{font-weight:700}.sticky-actions{position:sticky;bottom:0;background:rgba(255,255,255,.96);padding:12px;border-top:1px solid #ddd;z-index:5}@media(max-width:760px){.smart-fields,.check-grid{grid-template-columns:1fr}.section-row{align-items:flex-start;flex-direction:column}}
/* V19 Propuestas comerciales */
.proposal-form small{font-weight:400;color:#667085}.template-select{background:#fffdf4!important}.service-card-head>div{display:flex;gap:8px;align-items:center}.service-card-head .secondary{padding:8px 10px}

/* V23 — Acciones uniformes de Propuestas Comerciales */
.action-group{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.action-group form{display:inline-flex;margin:0}
.action-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 12px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#344054!important;text-decoration:none!important;font-size:13px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 1px 2px rgba(16,24,40,.05);transition:background .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.action-btn:hover{background:#f9fafb;border-color:#98a2b3;box-shadow:0 2px 5px rgba(16,24,40,.08);transform:translateY(-1px)}
.action-btn:active{transform:translateY(0)}
.action-btn.edit{border-color:#b42318;color:#b42318!important;background:#fff7f6}
.action-btn.edit:hover{background:#fee4e2;border-color:#b42318}
.action-btn.pdf{background:#b42318;color:#fff!important;border-color:#b42318}
.action-btn.pdf:hover{background:#912018;border-color:#912018}
.action-btn.mail{background:#f9fafb}
.action-btn.back{background:#f9fafb}
.table .action-group{min-width:210px}
@media(max-width:760px){.action-group{align-items:stretch}.action-btn{flex:1 1 auto}.table .action-group{min-width:0}}

/* V26 — Acción visible Cotización → FUEC */
.action-btn.fuec{background:#067647;color:#fff!important;border-color:#067647}
.action-btn.fuec:hover{background:#05603a;border-color:#05603a}

/* V27 — Flujo de aprobación antes de crear FUEC */
.action-btn.approve{background:#175cd3;color:#fff!important;border-color:#175cd3}
.action-btn.approve:hover{background:#1849a9;border-color:#1849a9}
.state-aprobada{background:#ecfdf3!important;color:#027a48!important;border-color:#abefc6!important}
.approved-note{border-color:#abefc6!important;background:#ecfdf3!important;color:#05603a!important}

/* V29 — Renovación visual corporativa */
.corporate-header{padding:11px 20px;gap:18px;background:#101d2d;border-bottom:3px solid #b42318;box-shadow:0 4px 14px #10182824}
.brand-system{min-width:205px}.brand-system img{width:48px;height:38px}.brand-system>div{display:flex;flex-direction:column;gap:2px}.brand-system b{font-size:13px;letter-spacing:.35px}.brand-system small{font-size:10px;color:#cbd5e1}
.main-nav{display:flex!important;gap:6px!important;align-items:center;flex:1;flex-wrap:wrap}.nav-button,.nav-more>span{display:inline-flex;align-items:center;min-height:37px;padding:9px 11px;border:1px solid #ffffff24;border-radius:8px;background:#ffffff0a;color:#fff!important;font-size:12px;font-weight:700;white-space:nowrap;transition:.15s}.nav-button:hover,.nav-more>span:hover{background:#ffffff18;border-color:#ffffff55}.nav-button.active{background:#fff;color:#101d2d!important;border-color:#fff;box-shadow:0 2px 8px #0003}
.nav-more{position:relative}.nav-more>span{cursor:default}.nav-more-menu{display:none;position:absolute;right:0;top:39px;min-width:185px;background:#fff;padding:7px;border-radius:9px;box-shadow:0 12px 30px #10182835;border:1px solid #e4e7ec}.nav-more:hover .nav-more-menu{display:flex;flex-direction:column}.nav-more-menu a{color:#344054!important;padding:9px 10px;border-radius:6px;font-size:12px}.nav-more-menu a:hover{background:#f2f4f7}
.user-chip{display:flex;align-items:center;gap:7px;padding-left:10px;border-left:1px solid #ffffff2b;white-space:nowrap}.user-chip span{font-size:12px;font-weight:700}.user-chip small{font-size:10px;color:#cbd5e1;text-transform:capitalize}.user-chip a{padding:7px 9px;border:1px solid #ffffff30;border-radius:7px;font-size:11px}
.hero-dashboard{background:linear-gradient(120deg,#101d2d,#243b53);color:#fff;border-radius:16px;padding:28px 30px;margin-bottom:18px;display:flex;justify-content:space-between;align-items:center;gap:24px;box-shadow:0 8px 24px #10182818;border-bottom:4px solid #b42318}.hero-dashboard h1{font-size:30px;margin:5px 0 7px}.hero-dashboard p{margin:0;max-width:690px;color:#dce5ef;line-height:1.5}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#b42318}.hero-dashboard .eyebrow{color:#fda29b}.hero-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.hero-btn{display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;border-radius:9px;border:1px solid #ffffff4a;color:#fff;text-decoration:none;font-size:12px;font-weight:800;background:#ffffff0c}.hero-btn.primary{background:#b42318;border-color:#b42318}.hero-btn:hover{transform:translateY(-1px);box-shadow:0 5px 12px #0002}
.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0 25px}.module-card{background:#fff;border:1px solid #e4e7ec;border-radius:12px;padding:16px;text-decoration:none;color:#1d2939;display:flex;align-items:center;gap:12px;box-shadow:0 2px 7px #1018280a;transition:.15s}.module-card:hover{border-color:#b42318;box-shadow:0 6px 16px #10182812;transform:translateY(-2px)}.module-icon{width:39px;height:39px;border-radius:9px;background:#f2f4f7;display:flex;align-items:center;justify-content:center;font-size:20px}.module-card div{display:flex;flex-direction:column;gap:4px;flex:1}.module-card b{font-size:14px}.module-card small{font-size:11px;color:#667085}.module-card .arrow{font-size:24px;color:#98a2b3}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:10px 0}.section-heading h2{margin:4px 0 0;font-size:20px}.corporate-summary .summary-box{box-shadow:0 2px 7px #1018280a;border-top:1px solid #eaecf0;border-right:1px solid #eaecf0;border-bottom:1px solid #eaecf0}
.primary-action{background:#b42318!important;color:#fff!important;border-color:#b42318!important;padding:10px 14px!important}.primary-action:hover{background:#912018!important}.cancel-action{background:#fff!important;color:#475467!important;border-color:#d0d5dd!important;padding:10px 14px!important}.cancel-action:hover{background:#f2f4f7!important;border-color:#98a2b3!important}
@media(max-width:1050px){.corporate-header{align-items:flex-start;flex-wrap:wrap}.main-nav{order:3;width:100%}.user-chip{margin-left:auto}.module-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.hero-dashboard{align-items:flex-start;flex-direction:column;padding:22px}.hero-actions{justify-content:flex-start}.module-grid{grid-template-columns:1fr}.user-chip small{display:none}.nav-button,.nav-more>span{flex:1 1 auto;justify-content:center}}

/* V30 — acceso corporativo independiente */
body:has(.login-v30){margin:0;background:#0b0d0f;overflow:hidden}
body:has(.login-v30) main{padding:0!important;margin:0!important;max-width:none!important;width:100vw;height:100vh}
body:has(.login-v30) .alert{position:fixed;z-index:50;top:18px;left:50%;transform:translateX(-50%);max-width:520px;background:#fff;color:#8b1e1e;border:1px solid #e5b5b5;box-shadow:0 8px 30px rgba(0,0,0,.28)}
.login-v30{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background-image:url('/static/img/login_omega_v30.png');background-size:cover;background-position:center;background-repeat:no-repeat}
.login-v30-card{width:min(390px,calc(100vw - 36px));margin-top:95px;padding:20px 26px 24px;border-radius:18px;background:rgba(10,18,25,.90);border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 55px rgba(0,0,0,.46);backdrop-filter:blur(7px);color:#fff}
.login-v30-brand{text-align:center;margin-bottom:14px}.login-v30-title{display:block;font-size:29px;font-weight:800;line-height:1.05}.login-v30-subtitle{display:block;margin-top:5px;font-size:16px;color:#d7dce0}.login-v30-subtitle:after{content:"";display:block;width:58px;height:3px;margin:11px auto 0;background:#e31b23;border-radius:99px}
.login-v30-form{display:grid;gap:12px}.login-v30-field{display:grid;gap:6px;font-size:12px;font-weight:700;color:#d9dde1}.login-v30-field input{box-sizing:border-box;width:100%;height:46px;padding:0 14px;border:1px solid rgba(255,255,255,.23);border-radius:8px;background:rgba(9,17,23,.72);color:#fff;outline:none;font-size:15px}.login-v30-field input:focus{border-color:#e31b23;box-shadow:0 0 0 3px rgba(227,27,35,.18)}.password-wrap{position:relative}.password-wrap input{padding-right:48px}.password-toggle{position:absolute;right:5px;top:5px;width:38px;height:36px;border:0;background:transparent;color:#fff;font-size:18px;cursor:pointer}.login-v30-submit{height:48px;margin-top:5px;border:0;border-radius:8px;background:#df1520;color:#fff;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 7px 20px rgba(180,0,10,.28)}.login-v30-submit:hover{filter:brightness(1.08)}
@media(max-width:800px){body:has(.login-v30){overflow:auto}.login-v30{position:min-height;min-height:100vh;background-position:center top}.login-v30-card{margin-top:120px;background:rgba(10,18,25,.94)}}

/* V31 — Inspecciones y preoperacionales */
.disabled-card{opacity:.62;cursor:default}.muted{color:#667085}.preop-form h2{margin-top:26px;padding-bottom:8px;border-bottom:1px solid #eaecf0}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}.form-grid label,.preop-form>label{display:flex;flex-direction:column;gap:6px;font-weight:700}.form-grid input,.form-grid select,.preop-form textarea{padding:10px;border:1px solid #d0d5dd;border-radius:8px;font:inherit}.checklist{display:grid;gap:9px}.check-row{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(260px,1fr) minmax(220px,1fr);gap:12px;align-items:center;padding:11px 12px;border:1px solid #eaecf0;border-radius:9px;background:#fff}.check-title{font-weight:700}.check-options{display:flex;gap:12px;flex-wrap:wrap}.check-options label{font-size:13px;font-weight:600}.check-obs{padding:8px;border:1px solid #d0d5dd;border-radius:7px}.declaration{margin-top:18px;display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;padding:14px;border-radius:9px;background:#f9fafb}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}.inspection-state{font-weight:800;font-size:12px;padding:5px 8px;border-radius:999px}.inspection-state.bueno{background:#ecfdf3;color:#027a48}.inspection-state.malo{background:#fef3f2;color:#b42318}.inspection-state.na{background:#f2f4f7;color:#475467}@media(max-width:900px){.check-row{grid-template-columns:1fr}.check-options{padding:4px 0}}

/* V32 — filtros y navegación operacional */
.filter-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0 18px}.filter-bar input,.filter-bar select{min-height:40px;padding:8px 11px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;min-width:220px}.filter-bar input{flex:1 1 320px}.filter-head{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.filter-head .filter-bar{margin:0}.transfer-summary{padding:12px 14px;border-left:4px solid #b42318;background:#fff7f6;border-radius:8px}.main-nav{gap:6px}.nav-button{white-space:nowrap}

/* V37 — Catálogo de equipos */
.equipment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:16px}.equipment-card{display:grid;grid-template-columns:120px 1fr;gap:14px;padding:14px;border:1px solid #e4e7ec;border-radius:12px;background:#fff}.equipment-card img,.equipment-no-photo{width:120px;height:100px;object-fit:cover;border-radius:9px;border:1px solid #e4e7ec}.equipment-no-photo{display:flex;align-items:center;justify-content:center;text-align:center;background:#f2f4f7;color:#667085;font-size:12px}.equipment-card h3{margin:0 0 5px}.equipment-card p{margin:4px 0}
