:root{--navy:#111e33;--navy2:#192840;--ink:#14233a;--muted:#64738a;--blue:#2f62d5;--blue2:#e9f0ff;--paper:#f6f8fc;--line:#e3e8f0;--white:#fff;--green:#17815d;--greenbg:#e8f7ef;--amber:#9b6712;--amberbg:#fff5df;--red:#bd4051;--redbg:#ffecf0;--shadow:0 18px 50px rgba(20,35,58,.075);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}html,body{min-height:100%;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:var(--blue);text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #99baf9;outline-offset:2px}
.loading-shell{height:100vh;display:grid;place-content:center;text-align:center;gap:20px;color:var(--muted)}.loader{width:36px;height:36px;border:4px solid #dce6f7;border-top-color:var(--blue);border-radius:50%;animation:spin .9s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(340px,1fr) minmax(440px,1fr)}.auth-art{background:linear-gradient(145deg,#101e34 0%,#1c3252 55%,#22437e 100%);color:#fff;padding:clamp(36px,5vw,86px);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.auth-art:before,.auth-art:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%;width:700px;height:700px;right:-300px;top:160px}.auth-art:after{width:460px;height:460px;right:-180px;top:280px}.brand{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:750;letter-spacing:-.02em}.brand-mark{display:grid;place-content:center;background:linear-gradient(130deg,#4385ff,#2546a9);color:white;font-weight:800;width:36px;height:36px;border-radius:11px;box-shadow:0 6px 20px rgba(41,97,223,.3)}.auth-copy{max-width:540px;position:relative;z-index:1}.kicker{font-size:12px;text-transform:uppercase;letter-spacing:.17em;font-weight:750;color:#8fbaef}.auth-copy h1{font-size:clamp(36px,4vw,61px);line-height:1.07;letter-spacing:-.05em;margin:18px 0 22px}.auth-copy p{font-size:18px;line-height:1.7;color:#c2d2ea}.auth-footer{color:#9aafcb;font-size:12px;position:relative}.auth-side{padding:40px;display:grid;place-items:center;background:#fff}.auth-box{width:min(100%,440px)}.auth-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.13em;font-weight:800;color:var(--blue)}.auth-box h2{font-size:30px;letter-spacing:-.045em;margin:12px 0}.auth-box>p,.hint{color:var(--muted);line-height:1.6;font-size:14px}.auth-box form{margin-top:28px;display:grid;gap:18px}.form-field{display:flex;flex-direction:column;gap:8px}.form-field label,.field-title{font-size:13px;font-weight:700;color:#31425a}.field{border:1px solid #d9e1ed;border-radius:11px;padding:12px 14px;background:#fff;width:100%;color:var(--ink);transition:border-color .16s,box-shadow .16s;min-height:46px}.field:focus{border-color:#7eabff;outline:none;box-shadow:0 0 0 4px rgba(40,108,221,.1)}textarea.field{min-height:108px;resize:vertical}.field::placeholder{color:#9faabb}.button{border:0;border-radius:11px;background:var(--blue);color:#fff;font-weight:700;padding:12px 17px;min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .13s,background .13s;white-space:nowrap}.button:hover{background:#204fb9;transform:translateY(-1px)}.button-secondary{color:#2e4e81;background:#eaf1fe}.button-secondary:hover{background:#d9e7fb}.button-ghost{color:#3f587b;background:transparent;border:1px solid #dae2ee}.button-ghost:hover{background:#f5f7fc}.button-danger{background:var(--redbg);color:var(--red)}.button-danger:hover{background:#fbdce4}.button-sm{min-height:33px;padding:8px 11px;font-size:12px;border-radius:8px}.button-block{width:100%}.qr{width:190px;height:190px;display:block;margin:18px auto;border:1px solid var(--line);border-radius:12px;padding:7px}.secret{font-family:ui-monospace,monospace;font-size:13px;letter-spacing:.04em;background:#eff3f9;border-radius:8px;padding:12px;word-break:break-all;text-align:center}.mono{font-family:ui-monospace,SFMono-Regular,monospace}.small{font-size:12px;color:var(--muted)}
.shell{display:flex;min-height:100vh}.sidebar{width:245px;flex-shrink:0;min-height:100vh;background:var(--navy);color:#d4e1f5;display:flex;flex-direction:column;padding:26px 15px;position:sticky;top:0;height:100vh}.sidebar .brand{color:#fff;padding:5px 12px 34px}.side-kicker{font-size:10px;color:#7f96b6;letter-spacing:.18em;text-transform:uppercase;font-weight:800;margin:20px 14px 10px}.nav-links{display:grid;gap:4px}.nav-link{width:100%;display:flex;align-items:center;gap:12px;border:0;border-radius:10px;color:#aec0db;padding:12px 14px;background:transparent;font-size:13px;font-weight:600;text-align:left}.nav-link:hover{background:#22344e;color:white}.nav-link.active{background:#28436b;color:#fff}.nav-icon{width:22px;display:inline-block;font-size:16px;text-align:center;color:#93b9fa}.side-spacer{flex:1}.side-foot{border-top:1px solid #293c59;padding:18px 11px 0;font-size:11px;line-height:1.6;color:#859dbc}.main{flex:1;min-width:0}.topbar{height:82px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);padding:0 clamp(20px,3vw,50px);display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar .page-path{font-size:12px;color:#8794a8}.topbar .page-path b{color:var(--ink)}.top-actions{display:flex;align-items:center;gap:13px}.identity{text-align:right}.identity strong{font-size:13px;display:block}.identity span{font-size:11px;color:var(--muted)}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-content:center;background:#e3edff;color:#2d60c3;font-weight:800;font-size:13px}.content{padding:38px clamp(20px,3vw,50px) 65px;max-width:1560px;margin:auto}.content-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:26px;flex-wrap:wrap}.section-kicker{color:var(--blue);font-weight:800;text-transform:uppercase;letter-spacing:.11em;font-size:11px;margin-bottom:8px}.content h1{margin:0;font-size:clamp(27px,3vw,36px);letter-spacing:-.04em}.content .subtitle{color:var(--muted);font-size:14px;margin:9px 0 0;line-height:1.5}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:24px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:var(--shadow);min-height:134px;position:relative;overflow:hidden}.stat:before{content:"";width:55px;height:55px;border-radius:50%;background:#f1f5fd;position:absolute;right:-12px;top:-15px}.stat label{color:var(--muted);font-size:12px;font-weight:650}.stat .value{font-size:35px;font-weight:800;margin-top:13px;letter-spacing:-.06em}.stat .desc{font-size:11px;color:#9ca8b9;margin-top:4px}.stat.blue .value{color:var(--blue)}.stat.amber .value{color:#b57a1a}.stat.green .value{color:var(--green)}.stat.red .value{color:var(--red)}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.panel-pad{padding:24px}.panel-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.panel-head h2{font-size:16px;letter-spacing:-.02em;margin:0}.panel-head small{color:var(--muted)}.grid-two{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left}.data-table th{font-size:11px;text-transform:uppercase;letter-spacing:.075em;color:#8c99ad;background:#fbfcfe;font-weight:750;white-space:nowrap}.data-table td{font-size:13px;color:#41516a;vertical-align:middle}.data-table th,.data-table td{padding:15px 20px;border-bottom:1px solid #edf0f5}.data-table tr:last-child td{border-bottom:0}.data-table tr:hover td{background:#fafcff}.primary-cell{color:#20344f;font-weight:750}.clickable{cursor:pointer}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:100px;font-size:11px;font-weight:750;padding:6px 10px;background:#eff2f8;color:#64738a;text-transform:capitalize}.badge:before{content:"";display:inline-block;width:6px;height:6px;background:currentColor;border-radius:50%}.badge.aprobado{background:var(--greenbg);color:var(--green)}.badge.pendiente{background:var(--amberbg);color:var(--amber)}.badge.rechazado{background:var(--redbg);color:var(--red)}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.toolbar .field{width:auto;min-width:175px}.empty{display:grid;place-content:center;text-align:center;padding:60px 24px;color:var(--muted)}.empty .glyph{font-size:34px;color:#b0bfd4;margin-bottom:12px}.empty strong{color:var(--ink)}.progress-line{margin:14px 0 21px}.progress-meta{display:flex;justify-content:space-between;font-size:12px;margin-bottom:7px}.progress-meter{height:7px;border-radius:20px;background:#eef2f8;overflow:hidden}.progress-meter>div{height:100%;background:var(--blue);border-radius:20px}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.muted{color:var(--muted)}.stack{display:grid;gap:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.full{grid-column:1/-1}.field-note{font-size:11px;color:#7f8fa7}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.check-option{border:1px solid var(--line);border-radius:9px;padding:10px;font-size:12px;display:flex;gap:8px;align-items:center}.upload-drop{border:2px dashed #c9d9f2;border-radius:14px;background:#f8fbff;padding:28px;text-align:center}.upload-drop input{max-width:100%}.upload-drop .glyph{color:var(--blue);font-size:27px;margin-bottom:8px}.alert{padding:13px 15px;border-radius:11px;border:1px solid #dbe6fc;background:#f2f7ff;color:#34577f;font-size:12px;line-height:1.6}.notice{padding:10px 15px;border-left:3px solid #f3aa35;background:#fff7e6;color:#7b5a26;font-size:12px}.modal-backdrop{position:fixed;inset:0;background:rgba(12,25,45,.58);z-index:20;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(3px)}.modal{background:#fff;max-width:1000px;width:100%;max-height:94vh;overflow:auto;border-radius:19px;box-shadow:0 30px 100px rgba(1,13,33,.3)}.modal-head{display:flex;align-items:start;justify-content:space-between;padding:25px 28px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:21px;letter-spacing:-.035em;margin:3px 0 0}.modal-content{padding:25px 28px}.modal-footer{border-top:1px solid var(--line);padding:18px 28px;display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}.preview{width:100%;height:min(54vh,550px);border:1px solid #e4e8ef;border-radius:12px;background:#fff}.comment{padding:15px;border:1px solid #ecf0f6;border-radius:12px;margin-bottom:10px;background:#fcfdff}.comment strong{font-size:12px}.comment time{font-size:11px;color:#8a97a9;display:block;margin-top:2px}.comment p{margin:10px 0 0;white-space:pre-wrap;font-size:13px;line-height:1.6}.divider{height:1px;background:var(--line);margin:25px 0}.toast{position:fixed;bottom:22px;right:22px;background:var(--navy);padding:14px 20px;border-radius:11px;color:white;font-weight:600;box-shadow:0 10px 30px #10203c55;z-index:100;opacity:0;transform:translateY(15px);transition:opacity .15s,transform .15s;pointer-events:none;max-width:min(380px,90vw);font-size:13px}.toast.visible{opacity:1;transform:translateY(0)}.toast.error{background:#a62d40}.brand-lite{color:var(--ink)}.client-shell{display:block}.client-top{padding:22px 5vw;height:80px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.client-main{max-width:1100px;margin:auto;padding:48px 25px}.counter-pill{color:#6986b0;font-size:12px;font-weight:750}.align-right{text-align:right}
@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}.auth-layout{grid-template-columns:1fr 1fr}.auth-art{padding:40px}}
@media(max-width:800px){.auth-layout{grid-template-columns:1fr}.auth-art{display:none}.auth-side{min-height:100vh;padding:27px}.sidebar{width:74px;padding:22px 9px}.sidebar .brand span,.side-kicker,.side-foot,.nav-link .nav-label{display:none}.sidebar .brand{padding:8px 7px 26px}.nav-link{justify-content:center;padding:13px 0}.nav-icon{font-size:19px}.topbar{height:72px}.content{padding-top:25px}.data-table th,.data-table td{padding:12px 10px}.form-grid{grid-template-columns:1fr}.full{grid-column:1}}
@media(max-width:540px){.sidebar{width:58px;padding:18px 5px}.sidebar .brand{padding:5px 6px 25px}.sidebar .brand-mark{width:32px;height:32px}.topbar{padding:0 16px}.topbar .page-path{display:none}.identity{display:none}.content{padding:22px 14px 40px}.cards{gap:10px}.stat{padding:16px;min-height:116px}.stat .value{font-size:28px}.panel-head{padding:18px}.panel-pad{padding:18px}.modal-content,.modal-head{padding:19px}.modal-footer{padding:15px}.check-grid{grid-template-columns:1fr}.toolbar .field{min-width:0;flex:1}.content h1{font-size:27px}}

/* Responsive report cards replace a horizontally clipped desktop table on mobile. */
@media(max-width:540px){
  .toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
  .toolbar #searchReports{grid-column:1/-1;min-width:0;width:100%}
  .toolbar #filterStatus,.toolbar #filterGroup{width:100%;min-width:0}
  .reports-wrap{overflow:visible}
  .reports-table,.reports-table tbody,.reports-table tr,.reports-table td{display:block;width:100%}
  .reports-table thead{display:none}
  .reports-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:17px 15px;border-bottom:1px solid var(--line)}
  .reports-table tr:last-child{border-bottom:0}
  .reports-table td{padding:0;border:0;min-width:0;overflow-wrap:anywhere}
  .reports-table td:nth-child(1){grid-area:1/1/3/2}
  .reports-table td:nth-child(2){grid-area:3/1/4/2;font-size:12px}
  .reports-table td:nth-child(3){grid-area:1/2/3/3;align-self:start}
  .reports-table td:nth-child(4){grid-area:4/1/5/2;font-size:12px}
  .reports-table td:nth-child(5){grid-area:5/1/6/2;font-size:11px}
  .reports-table td:nth-child(6){grid-area:5/2/6/3;align-self:end}
  .reports-table .primary-cell{display:block;font-size:14px;line-height:1.4}
  .reports-table .badge{white-space:nowrap}
}
