/* Poppins (OFL), archivos propios; ver C:\JLC\conocimiento\fuentes */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format('woff2'); }
:root {
  --navy: #0A2540; --navy-2: #0E3A68; --teal: #0072C1; --teal-d: #005A99; --teal-l: #E6F1FB;
  --blue: #0072C1; --blue-l: #E6F1FB; --amber: #C27A00; --amber-l: #FFF1D6; --red: #B3261E; --red-l: #FDECEA; --green: #1E7F4F; --green-l: #E3F4EA;
  --ink: #14233a; --ink-2: #5F6E7D; --ink-3: #7a8aa0; --line: #E3E9F1; --bg: #F2F5FA; --card: #fff;
  --r: 14px; --sh: 0 1px 2px rgba(10, 37, 64, .06), 0 8px 24px rgba(10, 37, 64, .06);
  --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.5; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .6em; } a { color: var(--teal-d); }
.muted { color: var(--ink-3); } .small { font-size: .85rem; } .center { text-align: center; }
.lead { color: var(--ink-2); margin: 6px 0 20px; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 10px 28px; background: var(--navy); color: #fff; }
.top.jlc { background: #1b1f3a; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #38A9F5, #0072C1); font-weight: 800; font-size: .82rem; letter-spacing: .04em; color: #FFFFFF; }
.brand-t { font-weight: 700; font-size: 1.1rem; line-height: 1.1; } .brand-t small { display: block; font-weight: 400; font-size: .72rem; opacity: .7; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { color: #c9d6e6; text-decoration: none; padding: 8px 14px; border-radius: 9px; font-weight: 500; }
.top nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; } .top nav a.on { background: rgba(255, 255, 255, .13); color: #fff; }
.top nav i { font-style: normal; background: var(--teal); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: .75rem; margin-left: 4px; }
.who { display: flex; align-items: center; gap: 12px; }
/* 27-nov-2026: en ventanas de menos de 1280 px la barra del equipo se salía de la pantalla; queda el círculo con la inicial (el menú es el mismo). */
@media (max-width: 1280px) { .top.jlc { gap: 14px; padding-left: 16px; padding-right: 16px; } .top.jlc .who-t { display: none; } .top.jlc .who { margin-left: auto; } }
@media (max-width: 1060px) { .top.jlc { flex-wrap: wrap; } .top.jlc nav { order: 3; flex-basis: 100%; overflow-x: auto; } }
/* Celulares de 320 px: la tabla de la ayuda se desliza por dentro; las referencias legales y la etiqueta de estado bajan de renglón. */
@media (max-width: 360px) { .card > .tbl { display: block; overflow-x: auto; } .guide-law span { white-space: normal !important; overflow-wrap: anywhere; } .det-h, .srv-row { flex-wrap: wrap; } }
.demo { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border: 1px solid rgba(255, 255, 255, .35); padding: 3px 9px; border-radius: 99px; color: #ffd98a; }
.menu { position: relative; } .menu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; } .menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 700; }
.who-t { font-size: .88rem; font-weight: 600; line-height: 1.15; } .who-t small { display: block; font-weight: 400; opacity: .7; font-size: .74rem; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-p { position: absolute; right: 0; top: 46px; background: #fff; border-radius: 12px; box-shadow: var(--sh), 0 0 0 1px var(--line); padding: 6px; min-width: 210px; }
.menu-p a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; } .menu-p a:hover { background: var(--bg); }
main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 60px; } main.wide { max-width: 1280px; }
footer { text-align: center; color: var(--ink-3); font-size: .8rem; padding: 0 24px 30px; }

/* Piezas */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 26px; margin-bottom: 18px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: .15s; white-space: nowrap; }
.btn.primary { background: var(--teal); color: #fff; } .btn.primary:hover { background: var(--teal-d); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); } .btn.ghost:hover { border-color: var(--ink-3); }
.btn.lg { padding: 13px 26px; font-size: 1.02rem; } .btn.sm { padding: 6px 12px; font-size: .86rem; } .btn.block { width: 100%; } .btn:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .seg-o:focus-within, .tile:focus-visible { outline: 3px solid rgba(0, 114, 193, .35); outline-offset: 1px; }
.badge { font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.st-new { background: var(--blue-l); color: var(--blue); } .st-rev { background: var(--amber-l); color: #9a6200; } .st-dev { background: var(--red-l); color: var(--red); } .st-ok { background: var(--green-l); color: var(--green); }
.pill { display: inline-block; background: var(--navy); color: #fff; font-size: .8rem; padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: 11px; margin: 10px 0; font-size: .93rem; border: 1px solid; }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.co-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; margin-top: 1px; }
.callout.ok { background: var(--green-l); border-color: #bfe6d1; } .callout.ok .co-ic { background: var(--green); }
.callout.info { background: var(--blue-l); border-color: #CFE3F7; } .callout.info .co-ic { background: var(--blue); font-style: italic; font-family: Georgia, serif; }
.callout.warn { background: var(--amber-l); border-color: #f3dca8; } .callout.warn .co-ic { background: var(--amber); }
.callout.err { background: var(--red-l); border-color: #f3c4c4; } .callout.err .co-ic { background: var(--red); }
.empty { text-align: center; color: var(--ink-2); padding: 26px 10px; } .empty > div { font-size: 2.2rem; } .empty.sm { padding: 10px; text-align: left; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 11px; box-shadow: var(--sh); animation: up .25s; max-width: 90vw; } .toast.err { background: var(--red); } .toast.out { opacity: 0; transition: .4s; }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }

/* Ingreso al portal */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-a { background: linear-gradient(160deg, #07192E 0%, #0A2540 55%, #0E3A68 100%); color: #fff; padding: 9vh 7vw; display: flex; flex-direction: column; justify-content: center; }
.login-a h1 { font-size: 2.5rem; margin: 34px 0 14px; } .login-a p { font-size: 1.1rem; opacity: .85; max-width: 30em; }
.login-a ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; } .login-a li { padding-left: 34px; position: relative; opacity: .9; } .login-a li b { display: block; }
.login-a li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #38A9F5; color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.brand.big .logo { width: 52px; height: 52px; font-size: 1rem; } .brand.big .brand-t { font-size: 1.6rem; }
.login-b { display: grid; place-items: center; padding: 30px; } .login-b .card { width: min(420px, 100%); display: grid; gap: 14px; }

/* Inicio */
.hero { margin: 6px 0 22px; } .hello { color: var(--ink-2); margin: 0 0 4px; font-size: 1.05rem; } .hero h1 { font-size: 2rem; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.action { background: #fff; border-radius: 18px; padding: 24px; text-decoration: none; color: var(--ink); box-shadow: var(--sh); border: 2px solid transparent; transition: .18s; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.action::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.action:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 14px 34px rgba(10, 37, 64, .13); }
.action.teal { --c: var(--teal); --cl: var(--teal-l); } .action.blue { --c: var(--blue); --cl: var(--blue-l); } .action.amber { --c: var(--amber); --cl: var(--amber-l); }
.action-i { width: 54px; height: 54px; border-radius: 15px; background: var(--cl); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.action p { color: var(--ink-2); margin: 6px 0 18px; flex: 1; }
.action-f { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; } .action-f em { font-style: normal; color: var(--ink-3); } .action-f b { color: var(--c); } .action-f .draft { background: var(--cl); padding: 3px 10px; border-radius: 99px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.tip { background: linear-gradient(135deg, #fff, var(--teal-l)); } .tip h3, aside h3 { margin-bottom: 8px; }
table.mini { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 4px 0 10px; } .mini td { padding: 6px 0; border-bottom: 1px solid var(--line); } .mini td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.rlist { display: grid; } .ritem { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: 10px; }
.ritem:last-child { border: 0; } .ritem:hover { background: var(--bg); }
.r-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; } .r-ic.teal { background: var(--teal-l); } .r-ic.blue { background: var(--blue-l); } .r-ic.amber { background: var(--amber-l); }
.r-m { flex: 1; min-width: 0; } .r-m b, .r-m small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .r-m small, .r-d small { color: var(--ink-3); }
.r-d { text-align: right; font-size: .84rem; color: var(--ink-2); } .r-d small { display: block; font-size: .74rem; }
.r-al { color: var(--red); font-weight: 700; font-size: .85rem; background: var(--red-l); padding: 2px 9px; border-radius: 99px; }

/* Asistente */
.wz-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; } .wz-head h1 { flex: 1; }
.back { color: var(--ink-2); text-decoration: none; font-weight: 500; } .back:hover { color: var(--ink); }
.autosave { font-size: .8rem; color: var(--green); }
.stepper { list-style: none; display: flex; padding: 0; margin: 0 0 20px; gap: 6px; overflow-x: auto; }
.stepper li { flex: 1; min-width: max-content; } .stepper button { width: 100%; display: flex; align-items: center; gap: 9px; background: none; border: 0; border-top: 4px solid var(--line); padding: 10px 6px 4px; font: inherit; color: var(--ink-3); cursor: pointer; text-align: left; }
.stepper button:disabled { cursor: default; } .stepper b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink-2); display: grid; place-items: center; font-size: .78rem; }
.stepper .cur button { border-color: var(--teal); color: var(--ink); font-weight: 600; } .stepper .cur b { background: var(--teal); color: #fff; }
.stepper .done button { border-color: #9DC8EC; color: var(--ink-2); } .stepper .done b { background: var(--teal-l); color: var(--teal-d); }
.wz-body { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.step-kicker { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--teal-d); font-weight: 700; margin-bottom: 6px; }
.wz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.guide { position: sticky; top: 76px; } .guide-card { padding: 20px; background: #fbfdff; border: 1px solid #dbe7f5; box-shadow: none; font-size: .9rem; }
.guide-t { font-weight: 700; margin-bottom: 8px; } .guide-card ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 7px; color: var(--ink-2); }
.guide-law { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px; } .guide-law b { width: 100%; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.guide-law span, .law { font-size: .74rem; background: #eef2f8; color: var(--ink-2); padding: 2px 8px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.help-card { padding: 18px; font-size: .9rem; box-shadow: none; border: 1px solid var(--line); }

/* Campos */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; } .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.field { min-width: 0; } .field.full { grid-column: 1 / -1; }
.f-label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .93rem; } .f-label em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: .8rem; margin-left: 4px; } .f-label .law { margin-left: 6px; vertical-align: 1px; }
.f-help { color: var(--ink-2); font-size: .85rem; margin: -2px 0 7px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); padding: 10px 12px; border: 1.5px solid #cfd8e3; border-radius: 10px; background: #fff; transition: border .15s; }
input:hover, select:hover, textarea:hover { border-color: #a9b7c8; } input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px rgba(0, 114, 193, .16); }
textarea { resize: vertical; min-height: 60px; } input[type=checkbox], input[type=radio] { width: auto; }
.affix { display: flex; align-items: stretch; } .affix span { display: grid; place-items: center; padding: 0 12px; background: #eef2f8; border: 1.5px solid #cfd8e3; color: var(--ink-2); font-size: .9rem; }
.affix span:first-child { border-right: 0; border-radius: 10px 0 0 10px; } .affix input { border-radius: 0 10px 10px 0; } .affix.r input { border-radius: 10px 0 0 10px; } .affix.r span { border-left: 0; border-radius: 0 10px 10px 0; }
.f-msg { font-size: .85rem; margin-top: 6px; padding: 7px 10px; border-radius: 8px; } .f-msg.err { color: var(--red); background: var(--red-l); } .f-msg.warn { color: #7a4d00; background: var(--amber-l); } .f-msg.ok { color: var(--green); padding-left: 0; } .f-msg.ok::before { content: "✓ "; font-weight: 700; } .f-msg.info { color: #24468f; background: var(--blue-l); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; } .seg-o { position: relative; flex: 1; min-width: 110px; border: 1.5px solid #cfd8e3; border-radius: 10px; padding: 9px 14px; cursor: pointer; background: #fff; text-align: center; transition: .15s; }
.seg-o input { position: absolute; opacity: 0; } .seg-o:hover { border-color: var(--teal); } .seg-o.on { border-color: var(--teal); background: var(--teal-l); box-shadow: inset 0 0 0 1px var(--teal); }
.seg-t { font-weight: 600; } .seg-t i { font-style: normal; margin-right: 6px; } .seg.yn { max-width: 340px; } .seg.yn .seg-o { min-width: 80px; }
.seg.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .seg.cards .seg-o { text-align: left; padding: 13px 15px; } .seg.cards small { display: block; color: var(--ink-2); font-size: .83rem; margin-top: 3px; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chip { border: 1.5px solid #cfd8e3; border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: .9rem; background: #fff; position: relative; user-select: none; }
.chip input { position: absolute; opacity: 0; } .chip.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; } .chip:has(input:focus-visible) { outline: 3px solid rgba(0, 114, 193, .35); }
.sug { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; color: var(--ink-3); } .sug span { width: 100%; }
.sug-b { font: inherit; font-size: .82rem; border: 1px dashed #b8c5d6; background: #fff; color: var(--ink-2); border-radius: 8px; padding: 4px 9px; cursor: pointer; text-align: left; } .sug-b:hover { border-color: var(--teal); color: var(--teal-d); } .sug-b.used { opacity: .4; text-decoration: line-through; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1.5px solid var(--line); padding: 14px 16px; border-radius: 12px; margin-top: 18px; cursor: pointer; font-size: .92rem; text-align: left; } .consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }

/* Beneficiarios, documentos y líneas */
.sub-h { margin: 30px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); } .sub-h p { color: var(--ink-2); margin-top: 4px; }
.ben { display: grid; grid-template-columns: 30px 1fr 30px; gap: 12px; align-items: start; background: var(--bg); border-radius: 12px; padding: 14px; margin-bottom: 10px; } .ben .grid { gap: 12px; }
.ben-n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem; margin-top: 26px; }
.x, .icon { border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 1rem; padding: 6px; border-radius: 8px; } .x:hover, .icon:hover { background: #e6ebf2; color: var(--ink); } .ben .x { margin-top: 22px; }
.docs-g { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin: 18px 0 8px; }
.doc { display: flex; align-items: center; gap: 14px; border: 1.5px dashed #c4cfdd; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; } .doc.ok { border: 1.5px solid #9DC8EC; background: #F4FAFF; } .doc.later { background: var(--amber-l); border-color: #ecd297; }
.doc-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #eef2f8; display: grid; place-items: center; font-weight: 700; color: var(--ink-2); } .doc.ok .doc-ic { background: var(--teal); color: #fff; }
.doc-t { flex: 1; min-width: 0; } .doc-t small { display: block; color: var(--ink-2); font-size: .83rem; } .fn { color: var(--teal-d) !important; font-weight: 500; }
.doc-a { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; } .later-l { font-size: .8rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tiles { display: grid; gap: 16px; } .tile-h { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; } .tile-g { display: flex; flex-wrap: wrap; gap: 8px; } .tile-g .tile-h { width: 100%; margin: 0; }
.tile { font: inherit; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 14px; cursor: pointer; transition: .15s; color: var(--ink); } .tile:hover { border-color: var(--teal); background: var(--teal-l); transform: translateY(-1px); }
.links-row { margin-top: 18px; font-size: .88rem; color: var(--ink-2); } .per-tag { margin-top: 16px; background: var(--teal-l); display: inline-block; padding: 7px 14px; border-radius: 10px; font-size: .93rem; }
.lines { display: grid; gap: 8px; margin: 14px 0; } .line { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.line-ic { font-size: 1.3rem; } .line-m { flex: 1; min-width: 0; } .line-m > b { margin-right: 8px; } .line-m > span { color: var(--ink-2); } .line-m small { display: block; font-size: .83rem; margin-top: 3px; }
.line-e { font-weight: 700; color: var(--navy); } .line-e small { display: inline; font-weight: 400; color: var(--ink-3); } .cmt { color: var(--ink-2); font-style: italic; } .lw { color: #8a5800; } .line-a { display: flex; }
.estim { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; } .estim span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; } .estim b { display: block; font-size: 1.7rem; margin: 2px 0 6px; } .estim b small { font-size: .9rem; font-weight: 400; } .estim p { margin: 0; font-size: .85rem; opacity: .8; }

/* Resumen */
.alerts { margin: 4px 0 18px; } .alerts h4 { margin-bottom: 6px; }
.sum { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; } .sum h4 { background: var(--bg); padding: 10px 16px; font-size: .9rem; }
.sum dl { margin: 0; } .sum dl > div { display: grid; grid-template-columns: 38% 1fr; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: .92rem; } .sum dt { color: var(--ink-2); } .sum dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.hist { list-style: none; margin: 0; padding: 10px 16px; display: grid; gap: 10px; font-size: .9rem; } .hist p { margin: 2px 0 0; color: var(--ink-2); }
.det-h { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; } .det-h > div { flex: 1; } .det-h p { margin: 2px 0 0; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .86rem; color: var(--ink-2); padding: 12px 0; border-top: 1px solid var(--line); margin-bottom: 14px; }
.sent { text-align: center; max-width: 660px; margin: 20px auto; padding: 40px; } .check { width: 78px; height: 78px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 2.4rem; display: grid; place-items: center; margin: 0 auto 18px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 0 12px var(--teal-l); }
@keyframes pop { from { transform: scale(0); } } .ref { display: inline-block; background: var(--bg); padding: 7px 16px; border-radius: 99px; margin-bottom: 16px; font-size: .92rem; }
.next { text-align: left; background: var(--bg); border-radius: 14px; padding: 18px 22px; margin: 18px 0; } .next ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 7px; color: var(--ink-2); } .sent-a { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Ventana emergente */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 37, 64, .55); z-index: 50; display: grid; place-items: center; padding: 18px; backdrop-filter: blur(3px); animation: fade .15s; } @keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(520px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); } .modal.wide { width: min(720px, 100%); }
.m-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); } .m-body { padding: 20px 22px; overflow: auto; display: grid; gap: 16px; } .m-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.nov-info { display: flex; gap: 14px; background: var(--bg); border-radius: 12px; padding: 14px; font-size: .9rem; } .nov-ic { font-size: 1.7rem; } .nov-info p { margin: 3px 0 8px; color: var(--ink-2); } .nov-info details { margin-top: 8px; color: var(--ink-2); font-size: .84rem; } .nov-info summary { cursor: pointer; color: var(--teal-d); font-weight: 600; }
.attach { display: flex; align-items: center; gap: 12px; font-size: .88rem; }

/* Ayuda y bandeja */
.faq { border-bottom: 1px solid var(--line); } .faq summary { cursor: pointer; padding: 14px 4px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; } .faq summary::after { content: "+"; color: var(--teal-d); font-size: 1.2rem; } .faq[open] summary::after { content: "–"; } .faq > div { padding: 0 4px 16px; color: var(--ink-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; } .tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px; border-bottom: 2px solid var(--line); } .tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl small { display: block; color: var(--ink-3); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; } .kpi { background: #fff; border-radius: 14px; padding: 16px 20px; box-shadow: var(--sh); border-left: 5px solid var(--c); } .kpi b { display: block; font-size: 1.9rem; line-height: 1.1; } .kpi span { color: var(--ink-2); font-size: .88rem; }
.kpi.teal { --c: var(--teal); } .kpi.blue { --c: var(--blue); } .kpi.amber { --c: var(--amber); } .kpi.red { --c: var(--red); }
.filters { display: grid; grid-template-columns: 1fr 200px 200px; gap: 10px; margin-bottom: 10px; } .stack { display: grid; gap: 8px; margin-top: 12px; }

@media (max-width: 900px) {
  .wz-body, .cols, .login { grid-template-columns: minmax(0, 1fr); } .guide { position: static; } .actions { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; }
  .login-a { padding: 36px 26px; } .login-a h1 { font-size: 1.9rem; } .login-a ul { display: none; }
  .top { padding: 10px 14px; gap: 10px; flex-wrap: wrap; } .top nav { order: 3; flex-basis: 100%; overflow-x: auto; } .who-t, .brand-t small { display: none; } .who { margin-left: auto; }
  main { padding: 18px 14px 50px; } .card { padding: 18px; } .hero h1 { font-size: 1.5rem; }
  .grid, .grid.g3, .grid.g4, .filters { grid-template-columns: 1fr; } .stepper span { display: none; } .stepper .cur span { display: inline; }
  .sum dl > div { grid-template-columns: 1fr; gap: 2px; } .doc { flex-wrap: wrap; } .doc-a { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .ritem { flex-wrap: wrap; } .r-d { text-align: left; } .ben { grid-template-columns: 1fr 30px; } .ben-n { display: none; } .wz-nav { flex-wrap: wrap; } .wz-nav .btn { flex: 1 1 130px; }
}
@media print {
  .top, footer, .no-print, #toasts { display: none !important; } body { background: #fff; } main { padding: 0; max-width: none; } .card { box-shadow: none; padding: 0; } .cols { display: block; }
}

#per { margin-top: 14px; }

/* Selector de idioma */
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; overflow: hidden; flex: none; }
.lang button { font: inherit; font-size: .76rem; font-weight: 700; letter-spacing: .04em; background: none; border: 0; color: #c9d6e6; padding: 5px 11px; cursor: pointer; }
.lang button.on { background: #fff; color: var(--navy); }
.login .lang { border-color: var(--line); } .login .lang button { color: var(--ink-2); } .login .lang button.on { background: var(--navy); color: #fff; }

/* Lista desplegable con búsqueda */
.combo { position: relative; } .combo input { padding-right: 42px; }
.combo-b { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 36px; border: 0; background: none; color: var(--ink-2); font-size: 1rem; cursor: pointer; border-radius: 8px; } .combo-b:hover { background: var(--bg); color: var(--ink); }
.combo-l { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 5px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(10, 37, 64, .18); max-height: 250px; overflow: auto; }
.combo-l li { padding: 8px 11px; border-radius: 8px; cursor: pointer; font-size: .95rem; } .combo-l li:hover { background: var(--bg); } .combo-l li.act { background: var(--teal-l); color: var(--teal-d); font-weight: 600; }
.combo-l li.none { color: var(--ink-3); cursor: default; font-size: .86rem; } .combo-l li.none:hover { background: none; }

.doc-t em.opt { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: .8rem; margin-left: 4px; }

/* Aviso de envío, reinicio de borrador y lista de colaboradores */
.send-note { margin: 14px 0 0; text-align: right; color: var(--ink-2); font-size: .9rem; }
.action-w { display: flex; flex-direction: column; } .action-w .action { flex: 1; }
.restart { font: inherit; font-size: .84rem; background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 9px 6px 0; text-align: left; } .restart:hover { color: var(--red); text-decoration: underline; }
.wz-head .btn { flex: none; } .tscroll { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.tbl.emp td { vertical-align: middle; } .tbl .acts { white-space: nowrap; text-align: right; } .tbl .acts .btn { margin-right: 4px; }
.kpis.k3 { grid-template-columns: repeat(3, 1fr); margin: 0; } .filters.f2 { grid-template-columns: 1fr 220px; }
.pasos { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 9px; color: var(--ink-2); } .hist.flat { padding: 0; }
@media (max-width: 900px) { .send-note { text-align: left; } .filters.f2, .kpis.k3 { grid-template-columns: 1fr; } }

/* Servicio conectado: ingreso con código, empresas y administración */
input.codigo { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
.menu-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 12px 2px; }
.menu-e { max-height: 240px; overflow: auto; } .menu-e button { display: block; width: 100%; text-align: left; font: inherit; background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.menu-e button:hover { background: var(--bg); } .menu-e button.on { font-weight: 700; color: var(--teal-d); } .menu-p hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
label.busy { opacity: .6; pointer-events: none; }

.tscroll.alto { max-height: 68vh; } tr.rech td { background: var(--red-l); }

.avatar.dark { background: var(--navy); color: #fff; flex: none; }

/* Documentos: obligatorios y contingencias */
.doc-t em.req { font-style: normal; font-weight: 600; color: var(--red); font-size: .8rem; margin-left: 4px; }
.riesgo { margin-top: 10px; padding: 11px 13px; background: #fff; border: 1px solid #ecd297; border-left: 4px solid var(--amber); border-radius: 10px; font-size: .86rem; color: var(--ink); }
.acepta { display: flex; gap: 9px; align-items: flex-start; margin-top: 9px; cursor: pointer; font-weight: 600; } .acepta input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--amber); }
.nota { margin-top: 8px; padding: 9px 12px; background: var(--bg); border-left: 3px solid var(--line); border-radius: 6px; font-size: .84rem; color: var(--ink-2); font-style: italic; }
.f-help details { margin-top: 7px; } .f-help summary { cursor: pointer; color: var(--teal-d); font-weight: 600; } .f-help details ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 6px; }
/* Interruptor (servicios por cliente) */
.sw { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; } .sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw i { position: absolute; inset: 0; background: #c5cfdc; border-radius: 99px; transition: .2s; cursor: pointer; } .sw i::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sw input:checked + i { background: var(--teal); } .sw input:checked + i::before { transform: translateX(20px); } .sw input:focus-visible + i { outline: 3px solid rgba(0, 114, 193,.35); outline-offset: 2px; } .sw input:disabled + i { opacity: .5; cursor: wait; }
.srv-row { display: flex; align-items: center; gap: 16px; padding: 14px 6px; border-bottom: 1px solid var(--line); } .srv-row:last-child { border: 0; } .srv-row .r-m small { white-space: normal; }

.staffbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 28px; background: #fff8e6; border-bottom: 1px solid #f0dca8; font-size: .9rem; } .staffbar select { width: auto; padding: 5px 10px; } .staffbar a { margin-left: auto; font-weight: 600; }

.benreq { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 5px; }

.pill-box { display: inline-flex; flex-direction: column; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 600; } .pill-box small { font-weight: 400; color: var(--ink-3); }

.srv-per { width: auto; padding: 6px 10px; font-size: .88rem; }

.staff-combo { display: inline-block; min-width: 260px; } .staff-combo .combo-l { max-height: 320px; }

.logo-img { display: block; height: 44px; width: auto; flex: none; } .brand.big .logo-img { height: 72px; } .brand { gap: 12px; }
@media (max-width: 720px) { .logo-img { height: 36px; } }

.line-m small.rec { color: var(--teal-d); font-weight: 600; display: block; margin-top: 3px; }
.rep-box { background: var(--bg); border-radius: 12px; padding: 14px; }

.ritem-w { border-bottom: 1px solid var(--line); } .ritem-w:last-child { border-bottom: 0; } .ritem-w .ritem { border-bottom: 0; }
.perms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 0 0 14px 56px; } .perms.in { padding: 0; } .perms-t { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.perm { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; } .perm.on { background: var(--bg); border-color: var(--teal-d); color: var(--ink); font-weight: 600; } .perm input { accent-color: var(--teal-d); }

button.kpi { text-align: left; border: 0; font: inherit; cursor: pointer; width: 100%; transition: transform .12s, box-shadow .12s; } button.kpi:hover { transform: translateY(-2px); } button.kpi.on { outline: 2px solid var(--c); outline-offset: -2px; }

.ritem.late { background: var(--red-l); box-shadow: inset 4px 0 0 var(--red); } .ritem.late:hover { background: #fde4e1; } .late-chip { background: var(--red); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; } .late-n { font-style: normal; color: var(--red); font-weight: 700; }
.bus-oculto { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.combo.bus > input { cursor: pointer; text-overflow: ellipsis; } .combo-l li.grp { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); cursor: default; padding: 8px 11px 3px; font-weight: 700; } .combo-l li.grp:hover { background: none; }

/* Mi nómina (17-nov-2026) */
.actions.a4 { grid-template-columns: repeat(4, 1fr); } .actions.a4 .action { padding: 20px; }
@media (max-width: 1100px) { .actions.a4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .actions.a4 { grid-template-columns: 1fr; } }
.tbl .num, .tbl th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mn-click tbody tr { cursor: pointer; } .mn-click tbody tr:hover td { background: var(--bg); } .mn-click tbody tr:focus-visible { outline: 2px solid var(--teal); }
.mn-meta { margin: -10px 0 16px; } .mn-meta code { font-size: .8rem; }
.mn-k3 { margin-bottom: 18px; } .kpi em { font-style: normal; font-size: .78rem; }
.mn-cols { grid-template-columns: minmax(0, 1fr) 300px; }
.mn-reps { display: grid; gap: 8px; } .mn-reps .btn { text-align: left; justify-content: flex-start; white-space: normal; }
.btn.block { width: 100%; }
.mn-var { color: var(--amber); font-weight: 600; }
.mn-hist { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; } .mn-hist li { margin-bottom: 8px; }
.mn-h4 { margin: 8px 0 4px; font-size: .95rem; color: var(--navy); }
tr.mn-tot td { font-weight: 700; background: var(--bg); }
.mn-dec { border: 2px solid var(--teal); }
.mn-sel { grid-template-columns: 2fr 1.3fr auto; align-items: end; }
.mn-go { margin-top: 16px; gap: 14px; align-items: center; }
.mn-bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 14px; } .mn-bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .4s; }
@media (max-width: 900px) { .mn-cols, .mn-sel { grid-template-columns: 1fr; } }
.mn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mn-kpis .kpi b { font-size: 1.45rem; white-space: nowrap; } .modal .mn-kpis .kpi b { font-size: 1.2rem; } .modal .mn-kpis .kpi { padding: 12px 14px; }
#mn_err { color: var(--red); font-weight: 600; }
@media (max-width: 640px) { .mn-kpis, .kpis.k3.mn-kpis { grid-template-columns: 1fr; } .mn-kpis .kpi b { font-size: 1.3rem; } .mn-head { flex-wrap: wrap; } .mn-head h1 { flex-basis: 100%; order: 2; font-size: 1.35rem; } .mn-head .back { order: 1; } .mn-head .badge { order: 3; } }
.mn-menu-t { font-size: 1.15rem; margin: 6px 0 12px; color: var(--navy); }
.mn-menu { display: flex; align-items: center; gap: 24px; text-decoration: none; color: var(--ink); border: 2px solid transparent; border-top: 5px solid var(--blue); transition: .18s; }
.mn-menu:hover { border-color: var(--blue); transform: translateY(-2px); } .mn-menu > div { flex: 1; } .mn-menu p { color: var(--ink-2); margin: 6px 0 0; }
.mn-menu-f { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; } .mn-menu-f b { color: var(--blue); }
@media (max-width: 640px) { .mn-menu { flex-direction: column; align-items: flex-start; } .mn-menu-f { align-items: flex-start; } }

/* Barra de opciones del bloque (equipo JLC) */
.subnav { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.subnav a { color: var(--ink-2); text-decoration: none; padding: 12px 2px 10px; font-weight: 500; font-size: .93rem; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--navy); } .subnav a.on { color: var(--navy); border-bottom-color: var(--teal); font-weight: 600; }
.subnav i { font-style: normal; background: var(--teal); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: .72rem; margin-left: 4px; }

/* Carga de novedades desde Excel */
.xl-box { display: flex; gap: 14px; margin: 6px 0 18px; padding: 14px 16px; border: 1px dashed var(--blue); border-radius: var(--r); background: var(--blue-l); }
.xl-box .xl-ic { font-size: 1.6rem; line-height: 1; } .xl-box p { margin: 4px 0 10px; font-size: .88rem; color: var(--ink-2); }
.xl-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.xl-tabla { max-height: 52vh; overflow: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; }
.xl-tabla .tbl th { position: sticky; top: 0; background: var(--card); } .xl-tabla td:first-child { color: var(--ink-3); width: 42px; }
.xl-mal td { background: var(--red-l); } .xl-e { color: var(--red); font-size: .82rem; margin-top: 2px; } .xl-w { color: var(--amber); font-size: .82rem; margin-top: 2px; }
@media (max-width: 640px) { .xl-box { flex-direction: column; } }

/* «Reportes financieros» (19-nov-2026) */
.fin-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin:0 0 18px}
.fin-app{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #DDE3EA;border-radius:12px;background:#fff;text-decoration:none;color:inherit}
.fin-app:hover{border-color:#A21CAF;box-shadow:0 2px 10px rgba(16,24,40,.08)}
.fin-app-i{font-size:26px;width:44px;height:44px;border-radius:10px;background:#F7E8FA;display:flex;align-items:center;justify-content:center;flex:none}
.fin-app small{display:block;color:#5F6E7D;font-size:12.5px;margin-top:2px}.fin-app em{margin-left:auto;font-style:normal;color:#A21CAF;font-weight:600;white-space:nowrap}
.fin-meta{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin:0 0 14px;font-size:13.5px}
.fin-prel{color:#B91C1C;font-weight:600}.fin-sello{border:1px solid #B91C1C;color:#B91C1C;border-radius:6px;padding:2px 8px;font-size:12px;font-weight:600}
.fin-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.fin-kpi{border:1px solid #E5E9EF;border-radius:10px;padding:12px}.fin-kpi small{color:#5F6E7D;font-weight:600}.fin-kpi b{display:block;font-size:24px;margin:4px 0}.fin-kpi p{margin:0;font-size:12px;color:#5F6E7D}
.fin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin:16px 0}
.fin-rep{text-align:left;border:1px solid #DDE3EA;background:#fff;border-radius:10px;padding:12px;cursor:pointer;font:inherit;color:inherit;display:flex;flex-direction:column;gap:4px}
.fin-rep:hover,.fin-rep.on{border-color:#A21CAF;background:#FCF5FD}.fin-rep-i{font-size:20px}.fin-rep small{color:#5F6E7D;font-size:12px}
.fin-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px 14px;margin:10px 0}
.fin-f{display:flex;flex-direction:column;gap:4px;font-size:13px}.fin-f span{font-weight:600}.fin-f input,.fin-f select{padding:8px 10px;border:1px solid #CBD3DD;border-radius:8px;font:inherit;max-width:100%}
.fin-nc{margin-top:14px;padding:12px 14px;border:1px solid #F2C4C4;border-left:5px solid #C0392B;background:#FFF6F5;border-radius:10px;font-size:13.5px}.fin-nc p{margin:0 0 8px}.fin-nc table{width:100%;margin:6px 0 10px}.fin-nc td,.fin-nc th{padding:3px 8px}.fin-nm{margin:10px 0 0;padding:8px 10px;background:#EEF5FB;border-radius:8px;font-size:13px}
.fin-ay{font-weight:400;font-size:12px;line-height:1.35;color:#5B6776}.fin-chkw{display:flex;flex-direction:column;gap:3px;max-width:520px}
.fin-chk{display:flex;gap:8px;align-items:center;font-size:13.5px}.fin-chk.big{margin:12px 0;font-size:15px}
.fin-acts{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}.fin-ok{color:#15803D;font-weight:600;font-size:13px}
.fin-us td,.fin-us th{padding:6px 8px;text-align:left}
@media (max-width:600px){.fin-app em{display:none}.fin-kpi b{font-size:20px}}

/* ---- Menú en cascada del equipo y vista de cliente (20-nov-2026) ---- */
.top nav .mi { position: relative; display: inline-block; } .top nav .mi.der { margin-left: auto; }
.top nav .mi > a.mi-b { display: inline-block; cursor: pointer; user-select: none; } .top nav .mi.der > a.mi-b { background: #1d6fb8; border: 1px solid rgba(255,255,255,.55); color: #fff; font-weight: 700; }
.top nav .mi.der > a.mi-b:hover, .top nav .mi.der > a.mi-b.on { background: #2a82d0; } .top nav .mi .car { opacity: .7; font-size: .7rem; }
.col { display: none; position: fixed; z-index: 60; min-width: 240px; max-width: 340px; max-height: calc(100vh - 90px); overflow-y: auto; background: #fff; color: var(--ink, #14233a); border: 1px solid var(--line, #DDE3EA); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.3); padding: 5px; }
.mi.abierto > .col, .it.ab > .col { display: block; }
.col .it { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 11px; border-radius: 8px; font-size: .9rem; color: var(--ink, #14233a); text-decoration: none; cursor: pointer; position: static; }
.col .it:hover, .col .it.ab, .col .it.on { background: #E6F1FB; } .col .it.on { font-weight: 700; } .col .it .fl { color: #5F6E7D; font-size: .7rem; }
.col .it i { font-style: normal; background: var(--teal); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: .72rem; margin-left: 4px; }
.col .it.cab-b, .col .it.cab-g, .col .it.cab-n { cursor: default; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 6px 11px; }
.col .it.cab-b, .col .it.cab-g { background: #E6F1FB; color: #0072C1; } .col .it.cab-n { background: #FDE3D2; color: #C2540A; }
.col .it.mirar { border-left: 4px solid #0072C1; } .col .it.actuar { border-left: 4px solid #C2540A; }
.vista { min-height: 100vh; border: 4px solid transparent; } .vista-mirar { border-color: #0072C1; } .vista-actuar { border-color: #C2540A; }
.vista-mirar > header.top { background: #0b5fa5; } .vista-actuar > header.top { background: #C2540A; }
.vistabar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 28px; font-size: .92rem; color: #fff; }
.vistabar.v-mirar { background: #0072C1; } .vistabar.v-actuar { background: #C2540A; } .vistabar a { margin-left: auto; color: #fff; font-weight: 700; text-decoration: underline; }
@media (max-width: 700px) { .vistabar { padding: 8px 14px; } }
.top nav a, .top nav .mi > a.mi-b { white-space: nowrap; }
.top nav { flex-wrap: nowrap; }
.vista { overflow-x: clip; }

/* ---- «Actuar como cliente»: ventana con buscador (20-nov-2026) ---- */
.vistabar .vb-cambiar { margin-left: auto; background: #fff; color: #8A3C05; border: 0; border-radius: 8px; padding: 5px 12px; font: inherit; font-weight: 700; cursor: pointer; } .vistabar .vb-cambiar:hover { background: #FDE3D2; } .vistabar .vb-cambiar + a { margin-left: 0; }
.modal-bg.cc-bg { align-items: start; padding-top: 9vh; }
.modal-bg.cc-bg .modal { width: min(560px, 100%); border-radius: 18px; overflow: hidden; }
.cc { display: flex; flex-direction: column; min-height: 0; max-height: 82vh; }
.cc-cab { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: #fff; } .cc-m .cc-cab { background: linear-gradient(135deg, #0A5DA6, #0072C1); } .cc-a .cc-cab { background: linear-gradient(135deg, #B24A06, #D9650F); }
.cc-cab-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.2); font-size: 1.4rem; flex: none; }
.cc-cab h2 { margin: 0; font-size: 1.12rem; } .cc-cab p { margin: 3px 0 0; font-size: .84rem; opacity: .92; }
.cc-x { margin-left: auto; align-self: flex-start; background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: .95rem; flex: none; } .cc-x:hover { background: rgba(255,255,255,.32); }
.cc-cuerpo { padding: 16px 18px 12px; display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.cc-busca { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line, #DDE3EA); border-radius: 12px; padding: 0 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cc-m .cc-busca:focus-within { border-color: #0072C1; box-shadow: 0 0 0 4px rgba(0,114,193,.15); } .cc-a .cc-busca:focus-within { border-color: #D9650F; box-shadow: 0 0 0 4px rgba(217,101,15,.16); }
.cc-lupa { color: #5F6E7D; display: grid; } .cc-busca input { flex: 1; border: 0; outline: 0; padding: 14px 0; font: inherit; font-size: 1rem; background: transparent; min-width: 0; } .cc-busca input::-webkit-search-cancel-button { cursor: pointer; }
.cc-n { font-size: .78rem; color: #5F6E7D; white-space: nowrap; }
.cc-lista { overflow-y: auto; max-height: 46vh; margin: 0 -6px; padding: 0 6px; display: flex; flex-direction: column; gap: 2px; }
.cc-sec { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5F6E7D; margin: 8px 2px 4px; }
.cc-rec { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.cc-chip { border: 1px solid var(--line, #DDE3EA); background: #F4F7FA; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .84rem; cursor: pointer; color: var(--ink, #14233a); } .cc-m .cc-chip:hover { background: #E6F1FB; border-color: #0072C1; } .cc-a .cc-chip:hover { background: #FDE3D2; border-color: #D9650F; }
.cc-emp { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; font: inherit; cursor: pointer; color: var(--ink, #14233a); width: 100%; }
.cc-m .cc-emp.on { background: #E6F1FB; } .cc-a .cc-emp.on { background: #FDE3D2; }
.cc-ini { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-weight: 700; flex: none; color: #fff; } .cc-m .cc-ini { background: #0072C1; } .cc-a .cc-ini { background: #D9650F; }
.cc-nom { flex: 1; font-size: .95rem; } .cc-nom mark { background: #FFE9A8; color: inherit; border-radius: 3px; padding: 0 1px; font-weight: 700; }
.cc-go { color: #9AA7B5; font-size: 1.2rem; } .cc-emp.on .cc-go { color: var(--ink, #14233a); }
.cc-vacio { display: grid; gap: 4px; text-align: center; padding: 28px 10px; color: #5F6E7D; } .cc-vacio b { color: var(--ink, #14233a); }
.cc-pie { margin: 2px 0 0; font-size: .75rem; color: #7B8794; } .cc-pie kbd { background: #EEF2F6; border: 1px solid #D5DCE4; border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; font: inherit; font-size: .72rem; }
.cc-elegida { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #F4F7FA; } .cc-elegida b { flex: 1; }
.cc-cambiar { border: 0; background: transparent; color: #0072C1; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; } .cc-cambiar:hover { text-decoration: underline; }
.cc-dests { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow-y: auto; max-height: 50vh; padding-bottom: 6px; }
.cc-a .cc-dests { grid-template-columns: 1fr; }
.cc-dest { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border: 1px solid var(--line, #DDE3EA); border-radius: 12px; text-decoration: none; color: var(--ink, #14233a); background: #fff; transition: transform .1s, box-shadow .1s, border-color .1s; }
.cc-dest b { display: block; font-size: .92rem; } .cc-dest small { display: block; color: #5F6E7D; font-size: .78rem; margin-top: 2px; font-weight: 400; } .cc-di { font-size: 1.3rem; }
.cc-m .cc-dest:hover, .cc-m .cc-dest:focus-visible { border-color: #0072C1; background: #F1F8FE; outline: 0; box-shadow: 0 4px 14px rgba(0,114,193,.18); transform: translateY(-1px); }
.cc-a .cc-dest:hover, .cc-a .cc-dest:focus-visible { border-color: #D9650F; background: #FFF6EE; outline: 0; box-shadow: 0 4px 14px rgba(217,101,15,.2); transform: translateY(-1px); }
@media (max-width: 600px) { .modal-bg.cc-bg { padding: 0; align-items: stretch; } .modal-bg.cc-bg .modal { width: 100%; max-height: 100%; border-radius: 0; } .cc { max-height: 100vh; height: 100%; } .cc-lista { max-height: none; flex: 1; } .cc-dests { grid-template-columns: 1fr; max-height: none; } }
.cc.cc-pagina { max-height: none; padding: 18px 20px 8px; } .cc-pagina .cc-cuerpo { padding: 0; } .cc-pagina .cc-lista { max-height: 52vh; }
.cc-barra { margin-bottom: 14px; border: 1px solid var(--line, #DDE3EA); background: #fff; } .cc-barra .cc-ini { background: #0A2540; }


.fin-app-off { background: #F4F6F8; border-style: dashed; cursor: default; opacity: .85; } .fin-app-off:hover { border-color: #DDE3EA; box-shadow: none; } .fin-app-off em { color: #7B8794; } .fin-app-nom .fin-app-i { background: #E6F1FB; } .fin-app-nom em { color: #0072C1; }

/* Perfiles de usuario: tres tarjetas iguales, texto centrado y sin cortes */
.seg.perfiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none; margin-bottom: 12px; }
.seg.perfiles .seg-o { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 14px 12px; min-height: 76px; }
.seg.perfiles .seg-t { line-height: 1.25; overflow-wrap: anywhere; }
.seg.perfiles small { color: var(--ink-2); font-size: .8rem; line-height: 1.25; }
.perms.in { gap: 10px; padding-top: 2px; }
.perms.in .perm { padding: 8px 14px; font-size: .88rem; }
@media (max-width: 560px) { .seg.perfiles { grid-template-columns: 1fr; } .seg.perfiles .seg-o { min-height: 0; } }
/* Entrada con aplicaciones (20-nov-2026): aviso «N por aprobar» dentro de la tarjeta Nómina; visible también en celular. */
.fin-app .app-pend { display: inline-block; margin-top: 6px; }
.fin-app > span:nth-child(2) { min-width: 0; }

.fin-off{opacity:.45}.fin-off input{background:#F1F3F6;cursor:not-allowed}

/* Pedir corrección y reingreso (26-nov-2026) */
.corr-est { display: block; margin-top: 2px; line-height: 1.35; } .corr-est.pend { color: #9a6200; } .corr-est.ok { color: var(--green); }
.corr-list { list-style: none; margin: 0; padding: 0; } .corr-list li { padding: 10px 0; border-top: 1px solid var(--line, #e3e8ef); } .corr-list li:first-child { border-top: 0; } .corr-list p { margin: 4px 0 8px; }
.corr-panel .acts { display: flex; gap: 8px; flex-wrap: wrap; }
td.acts { white-space: normal; } td.acts .btn { margin: 2px 4px 2px 0; }

/* Acceso a Reportes financieros (26-nov-2026) */
.fin-us{width:100%}.fin-us td{vertical-align:top;white-space:normal}.fin-per{width:36%;overflow-wrap:anywhere}.fin-est small{display:block;margin-top:3px}.fin-est small.badge{display:inline-block}.fin-us td.fin-bts{width:36%;text-align:right;white-space:normal;font-weight:400}.fin-bts small{display:block}.fin-bts .btn{margin:2px 0}.fin-nom{max-width:180px;padding:4px 6px;font-size:13px}.fin-pend{display:flex;flex-wrap:wrap;gap:6px}.modal .m-body table.mini td,.modal .m-body table.mini th{padding:6px 8px 6px 0;text-align:left;white-space:normal;font-weight:400;overflow-wrap:anywhere}.fin-prev{max-height:420px;overflow:auto;padding:8px;border:1px solid #DDE3EA;border-radius:8px;background:#fff}.tabla-w{overflow-x:auto}.st-off{background:#EEF1F4;color:#4B5563}
/* Nómina de WO en dos pantallas (27-nov-2026): encabezado fijo de la empresa y pestañas Nómina / Liquidaciones */
.mn-empcab { border: 2px solid var(--navy); }
.mn-empcab .wz-head { align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.mn-empcab h1 { font-size: 1.7rem; overflow-wrap: anywhere; }
.mn-tabs { display: flex; gap: 10px; margin: 0 0 16px; }
.mn-tabs .mn-tab { flex: 1; justify-content: center; text-align: center; min-height: 46px; font-size: 1.02rem; text-decoration: none; }
.mn-tabs .mn-tab small { font-weight: 400; opacity: .9; }
tr.mn-sel-fila td { background: var(--bg); font-weight: 600; }
#mn_q, #mn_cq { width: 100%; }
@media (max-width: 600px) { .mn-tabs { flex-direction: column; } .mn-empcab h1 { font-size: 1.35rem; } }
.mn-row .btn { white-space: normal; max-width: 100%; text-align: left; }
/* Reapertura de retiros (27-nov-2026): seguimiento en verde (reabierto, procesado) o ámbar (solicitada, no aprobada, cancelada). */
.hist li.ev-ok b { color: #0B6B3A; } .hist li.ev-warn b { color: #8A5A00; }
.reap-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
/* 30-nov-2026: nóminas históricas · solo consulta (insignia gris y franja) */
.st-hist{background:#EEF1F4;color:#4B5563}.mn-histfranja{background:#F3F5F8;border:1px solid #DDE3EA;border-left:4px solid #8A97A8;border-radius:8px;padding:10px 14px;margin:0 0 14px;font-size:.92rem;line-height:1.45;overflow-wrap:anywhere}.mn-histfranja .badge{margin-right:6px}
/* 30-nov-2026 (parte C): a 375 px los botones de reportes en Excel partían la columna (el texto no se cortaba) y ensanchaban toda la pantalla de la nómina */
.mn-reps .btn{white-space:normal;text-align:left}
.mn-cols>*{min-width:0}
/* 1-dic-2026 · «👥 Usuarios de clientes» (public/js/accesos.js) */
.acc-pend{display:flex;flex-wrap:wrap;gap:6px}.acc-pend .btn{white-space:normal;text-align:left}
.acc-q{width:100%;max-width:460px;margin:0 0 10px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;font:inherit}
.acc-tbl td{vertical-align:top}.acc-fila{cursor:pointer}.acc-fila:hover td{background:var(--bg)}.acc-blo td{opacity:.7}
.acc-tbl td:last-child{text-align:right;white-space:nowrap}
.acc-panel h3{margin:18px 0 6px}.acc-hist{margin-top:14px}.acc-hist ul{padding-left:18px;margin:6px 0}.acc-hist li{margin:6px 0;font-size:13px}
@media (max-width:640px){.acc-tbl thead{display:none}.acc-tbl tr{display:block;border-bottom:1px solid var(--line);padding:6px 0}.acc-tbl td{display:block;border:0;padding:3px 4px}.acc-tbl td:last-child{text-align:left}}

/* Usuarios de clientes · tarjetas por persona (plano §17) */
.acc-bar{margin:0 0 6px}.acc-chips{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 14px}.acc-chips .chip{border:1px solid var(--line);background:var(--card);border-radius:99px;padding:5px 12px;font:inherit;font-size:13px;cursor:pointer;color:inherit}.acc-chips .chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.acc-card{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:12px;background:var(--card);cursor:pointer}.acc-card:hover{box-shadow:var(--sh)}.acc-card.acc-blo{opacity:.75}
.acc-ph{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}.acc-av{width:38px;height:38px;border-radius:50%;background:var(--blue-l);color:var(--blue);display:grid;place-items:center;font-weight:700;flex:none}.acc-sp{margin-left:auto}
.pill-aviso{font-size:12px;padding:2px 8px;border-radius:99px;background:var(--amber-l);color:var(--amber)}
.acc-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.acc-tile{border:1px solid var(--line);border-top:4px solid var(--ink-3);border-radius:10px;padding:10px 12px}.acc-tile.nom{border-top-color:var(--blue)}.acc-tile.rep{border-top-color:#7A3FB4}.acc-tile.sin{opacity:.65}
.acc-tile h4{margin:0 0 6px;display:flex;align-items:center;gap:6px;font-size:14px;flex-wrap:wrap}.acc-tile .st{margin-left:auto;font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;background:#EEF1F5;color:#7B8798}.acc-tile .st.ok{background:var(--green-l);color:var(--green)}.acc-tile .st.rev{background:var(--amber-l);color:var(--amber)}.acc-tile .st.no,.acc-tile .st.off{background:#EEF1F5;color:#7B8798}
.acc-tile ul{list-style:none;padding:0;margin:0;font-size:13px}.acc-tile li{padding:1px 0}.acc-tile li.on{color:var(--green);font-weight:600}.acc-tile li.on::before{content:"✓ "}.acc-tile li.off{color:var(--ink-3)}.acc-tile li.off::before{content:"— "}.acc-tile li.gris{color:var(--ink-3);font-weight:400}
.acc-tile .by{font-size:12px;color:var(--ink-2);margin-top:6px}.acc-tile .by.ok{color:var(--green)}.acc-leyenda{margin-top:4px}
.acc-card.hide,.acc-tile.hide{display:none}
