:root{
  --navy:#072e69;--navy-2:#0d458f;--red:#d81818;--red-2:#b20e16;--ink:#172033;--muted:#657083;
  --bg:#f4f6f9;--card:#fff;--line:#dfe5ec;--turq:#d9f5f5;--purple:#eee2ff;--soft-red:#ffe5e7;--green:#dff5e7;
  --shadow:0 16px 38px rgba(8,32,72,.09);--radius:18px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.45;position:relative;min-height:100vh}

/* ===== Fondo global STUNAM para interfaces ===== */
@media screen{
  html{
    min-height:100%;
    background:#eef3f8;
  }

  body:not(.login-body):not(.login-body-v2):not(.login-body-v3){
    min-height:100vh;
    background-color:#eef3f8 !important;
    background-position:center center !important;
    background-size:cover !important;
    background-repeat:no-repeat !important;
    background-attachment:fixed !important;
  }

  body:not(.sicah-dynamic-bg):not(.login-body):not(.login-body-v2):not(.login-body-v3)::before,
  body:not(.sicah-dynamic-bg):not(.login-body):not(.login-body-v2):not(.login-body-v3)::after{
    content:none !important;
    display:none !important;
  }

  .app-shell{
    position:relative;
    z-index:1;
    background:transparent !important;
  }

  .container{
    background:transparent !important;
  }

  .topbar{background:rgba(255,255,255,.94)}
  .footer{background:rgba(255,255,255,.92)}
  .card,.period-card,.period-grid .period-card,.menu-card,.table-shell,.user-chip,.event-card,.info-ref-card{
    background-color:rgba(255,255,255,.94);
  }
}

@media screen and (max-width:768px){
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3){
    background-position:center top !important;
    background-size:cover !important;
  }
}

@media print{
  body{
    background:#fff !important;
    background-image:none !important;
  }
}

a{color:var(--navy);text-decoration:none}a:hover{text-decoration:none}.hidden{display:none!important}
button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}
.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.topbar-inner{max-width:1500px;margin:auto;display:flex;align-items:center;gap:18px;padding:10px 20px}.brand{display:flex;align-items:center;gap:12px;min-width:260px}.brand img{width:52px;height:52px;object-fit:contain}.brand-text strong{display:block;color:var(--navy);font-size:15px;line-height:1.15}.brand-text span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.topnav{display:flex;gap:6px;flex:1;overflow-x:auto;scrollbar-width:none}.topnav::-webkit-scrollbar{display:none}.nav-link{white-space:nowrap;padding:10px 12px;border-radius:12px;color:#3d4759;font-weight:700;font-size:13px}.nav-link:hover,.nav-link.active{background:#edf3fb;color:var(--navy)}.nav-link.danger{color:var(--red)}
.user-chip{display:flex;align-items:center;gap:9px;padding:8px 10px;background:#f4f7fb;border:1px solid var(--line);border-radius:10px;max-width:300px}.user-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:900}.user-meta{min-width:0}.user-meta strong,.user-meta span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-meta strong{font-size:12px}.user-meta span{font-size:11px;color:var(--muted)}
.container{width:min(1450px,calc(100% - 32px));margin:22px auto 40px;flex:1}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}.page-head h1{margin:0;color:var(--navy);font-size:clamp(24px,3vw,36px);letter-spacing:-.035em}.page-head p{margin:5px 0 0;color:var(--muted)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.card+.card{margin-top:18px}.card h2,.card h3{color:var(--navy);margin-top:0}.card h2{font-size:20px}.card h3{font-size:16px}.subtle{color:var(--muted);font-size:13px}.small{font-size:12px}.strong{font-weight:800}.muted{color:var(--muted)}
.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.span-2{grid-column:span 2}.span-full{grid-column:1/-1}
.menu-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:14px}.menu-card{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:145px;padding:18px;border-radius:18px;border:1px solid rgba(7,46,105,.13);background:linear-gradient(145deg,#fff,#f5f8fc);transition:.2s transform,.2s box-shadow}.menu-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(7,46,105,.12)}.menu-card .icon{font-size:28px}.menu-card strong{font-size:16px;color:var(--navy)}.menu-card span{font-size:12px;color:var(--muted)}.menu-card::after{content:"";position:absolute;width:72px;height:72px;border-radius:50%;right:-28px;top:-28px;background:rgba(216,24,24,.09)}
.hero{position:relative;min-height:260px;border-radius:26px;overflow:hidden;background-size:cover;background-position:center;display:flex;align-items:flex-end;padding:24px;margin-bottom:20px}.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,25,58,.89),rgba(4,25,58,.35) 65%,rgba(4,25,58,.08))}.hero-content{position:relative;color:#fff;max-width:720px}.hero-content h1{font-size:clamp(28px,5vw,48px);line-height:1.02;margin:0 0 8px}.hero-content p{margin:0;max-width:620px;color:#e7effa}.hero-logo{position:absolute;right:30px;bottom:20px;width:140px;opacity:.95;filter:drop-shadow(0 10px 20px rgba(0,0,0,.2))}
.events-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.event-card{border-left:4px solid var(--red);padding:14px 15px;border-radius:12px;background:#fff;border-top:1px solid var(--line);border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.event-date{font-size:11px;font-weight:900;color:var(--red);text-transform:uppercase}.event-card strong{display:block;margin:3px 0 4px;color:var(--navy)}
.btn{border:0;border-radius:12px;padding:10px 15px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.15s transform,.15s opacity;background:#eef2f7;color:var(--navy)}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--navy);color:#fff}.btn-red{background:var(--red);color:#fff}.btn-success{background:#167744;color:#fff}.btn-warning{background:#a76000;color:#fff}.btn-ghost{background:transparent;border:1px solid var(--line)}.btn-sm{padding:7px 10px;font-size:12px;border-radius:9px}.btn-block{width:100%}.actions{display:flex;gap:8px;flex-wrap:wrap}.home-link{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#edf3fb;color:var(--navy);font-size:18px;font-weight:900}
label{display:block;font-size:12px;font-weight:850;color:#394457;margin-bottom:6px;text-transform:uppercase;letter-spacing:.025em}.field{min-width:0}.input,select,textarea{width:100%;border:1px solid #cfd7e2;border-radius:11px;padding:10px 12px;background:#fff;color:#162032;outline:none;transition:border-color .15s,box-shadow .15s}.input:focus,select:focus,textarea:focus{border-color:#5d89c4;box-shadow:0 0 0 3px rgba(15,75,155,.1)}textarea{min-height:110px;resize:vertical}.form-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px}.col-2{grid-column:span 2}.col-3{grid-column:span 3}.col-4{grid-column:span 4}.col-5{grid-column:span 5}.col-6{grid-column:span 6}.col-7{grid-column:span 7}.col-8{grid-column:span 8}.col-9{grid-column:span 9}.col-10{grid-column:span 10}.col-12{grid-column:span 12}.help{font-size:11px;color:var(--muted);margin-top:5px}.required::after{content:" *";color:var(--red)}
.alert{border-radius:14px;padding:13px 15px;margin-bottom:14px;border:1px solid transparent;font-weight:650;font-size:13px}.alert-success{background:#e9f8ef;color:#17663d;border-color:#bde5cb}.alert-error{background:#ffeaec;color:#8b1721;border-color:#f4c2c7}.alert-warning{background:#fff6df;color:#795300;border-color:#efd899}.alert-info{background:#eaf3ff;color:#174f8a;border-color:#c9ddf6}
.badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900;letter-spacing:.02em;background:#eef2f6;color:#435066}.badge.regular{background:#dbf4e4;color:#17673c}.badge.irregular{background:#ffe0e3;color:#9b1b25}.badge.pending{background:#fff1cf;color:#8b5a00}.badge.blue{background:#e2edfb;color:#154c8c}.badge.dark{background:#dfe4eb;color:#303b4b}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric{border:1px solid var(--line);border-radius:15px;padding:14px;min-height:90px}.metric .label{font-size:11px;text-transform:uppercase;font-weight:900;color:#536074}.metric .value{font-size:25px;font-weight:950;color:#172033;margin-top:5px}.metric.turq{background:var(--turq)}.metric.purple{background:var(--purple)}.metric.red{background:var(--soft-red)}.metric.green{background:var(--green)}
.table-shell{position:relative;overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.table-top-scroll{overflow-x:auto;overflow-y:hidden;height:14px;margin-bottom:3px}.table-top-scroll>div{height:1px}.table{width:100%;border-collapse:separate;border-spacing:0;min-width:850px;font-size:12.5px}.table th{position:sticky;top:0;z-index:2;background:#f0f4f9;color:#30415a;text-align:left;padding:10px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:10px;border-bottom:1px solid #edf0f4;vertical-align:top}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fafcff}.table .num{text-align:right;white-space:nowrap}.table .center{text-align:center}.nowrap{white-space:nowrap}
.tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.tab-link{padding:9px 13px;border-radius:11px;border:1px solid var(--line);background:#fff;color:#526070;font-weight:800;font-size:12px}.tab-link.active{background:var(--navy);border-color:var(--navy);color:#fff}.period-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.period-card{padding:18px;border-radius:16px;background:#fff;border:1px solid var(--line);display:block}.period-card strong{display:block;color:var(--navy)}.period-card span{font-size:12px;color:var(--muted)}.period-card:hover{border-color:#9ab7db;box-shadow:var(--shadow)}
.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:#fff}.login-visual{position:relative;background:url('../img/fondo-inicio.png') center/cover}.login-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(145deg,rgba(7,46,105,.72),rgba(185,18,27,.2))}.login-copy{position:absolute;z-index:1;left:8%;right:8%;bottom:8%;color:#fff}.login-copy h1{font-size:clamp(38px,5vw,68px);line-height:.95;margin:0 0 12px;letter-spacing:-.05em}.login-copy p{max-width:600px;font-size:16px;color:#e8f0fa}.login-panel{display:grid;place-items:center;padding:30px}.login-box{width:min(470px,100%)}.login-logo{width:170px;display:block;margin:0 auto 18px}.login-box h2{text-align:center;color:var(--navy);font-size:27px;margin:0}.login-box .tagline{text-align:center;color:var(--muted);margin:5px 0 24px}.login-form .field{margin-bottom:14px}.unidos{text-align:center;color:var(--red);font-weight:950;letter-spacing:.12em;margin-top:18px}
.modal-backdrop{position:fixed;inset:0;background:rgba(10,21,39,.55);z-index:100;display:none;align-items:center;justify-content:center;padding:20px}.modal-backdrop.open{display:flex}.modal{width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 25px 80px #0004;padding:22px}.modal-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:14px}.modal-head h3{margin:0;color:var(--navy)}.modal-close{border:0;background:#eef2f5;border-radius:50%;width:34px;height:34px;font-size:18px}
.footer{border-top:1px solid var(--line);background:#fff;padding:16px 20px;color:#5e6879;font-size:11px;text-align:center}.footer strong{color:var(--navy)}
.quick-filter{display:flex;gap:9px;align-items:end;flex-wrap:wrap}.quick-filter .field{min-width:150px;flex:1}.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.kpi{padding:16px;border-radius:15px;background:linear-gradient(145deg,#0b3776,#0a2b5b);color:#fff}.kpi .k-label{font-size:11px;opacity:.78;text-transform:uppercase;font-weight:800}.kpi .k-value{font-size:27px;font-weight:950;margin-top:4px}.kpi.red{background:linear-gradient(145deg,#d91d25,#a60f17)}
.empty{padding:32px;text-align:center;color:var(--muted)}.qr-box{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;background:#f5f8fc;border:1px dashed #aab9cb;border-radius:15px;padding:16px}.qr-placeholder{width:100px;height:100px;border-radius:10px;background:repeating-linear-gradient(45deg,#082f69,#082f69 8px,#fff 8px,#fff 16px);opacity:.16}.notice-list{margin:0;padding-left:18px}.notice-list li{margin:5px 0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-title h2{margin:0}.divider{height:1px;background:var(--line);margin:18px 0}
.print-sheet{background:#fff;color:#111;width:8.5in;min-height:11in;margin:20px auto;padding:.45in;box-shadow:0 2px 20px #0002}.print-header{text-align:center}.print-header h1{font-size:17px;margin:4px 0}.print-meta{font-size:11px;display:grid;grid-template-columns:1fr 1fr;gap:3px 20px;margin:10px 0}.signature-row{display:grid;grid-template-columns:1fr 120px 1fr;gap:18px;align-items:end;min-height:120px;margin:18px 0}.signature-line{border-top:1px solid #111;text-align:center;padding-top:4px;font-size:10px}.signature-logo{width:90px;margin:auto}.stamp-box{border:1px solid #111;min-height:125px;display:flex;align-items:flex-end;justify-content:center;padding:8px;font-size:10px}.approval-box{border:1px solid #111;min-height:120px;padding:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:end}.print-note{font-size:8.5px;font-weight:700}.receipt-ticket{border:1px solid #111;padding:12px;margin:0 0 10px;min-height:2.7in;page-break-inside:avoid}.receipt-ticket h3{text-align:center;margin:0 0 8px;font-size:12px}.receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px;font-size:10.5px}.receipt-grid .wide{grid-column:1/-1}.print-actions{position:fixed;right:18px;bottom:18px;z-index:30;display:flex;gap:8px}
@media(max-width:1100px){.menu-grid{grid-template-columns:repeat(3,1fr)}.summary-grid{grid-template-columns:repeat(2,1fr)}.grid-4,.grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}.user-chip{max-width:220px}.brand{min-width:auto}.brand-text{display:none}}
@media(max-width:780px){.topbar-inner{padding:8px 10px;gap:8px}.brand img{width:44px;height:44px}.topnav{order:3;flex-basis:100%;width:100%}.topbar-inner{flex-wrap:wrap}.user-chip{margin-left:auto;max-width:65%;padding:6px}.user-dot{width:30px;height:30px}.container{width:min(100% - 18px,1450px);margin-top:12px}.page-head{align-items:flex-start}.menu-grid{grid-template-columns:repeat(2,1fr);gap:10px}.menu-card{min-height:125px;padding:14px}.hero{min-height:220px;padding:18px}.hero-logo{width:95px;right:14px;bottom:14px;opacity:.78}.period-grid,.grid-2,.grid-3,.grid-4,.grid-5,.summary-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.form-row{grid-template-columns:1fr}.form-row>[class^="col-"]{grid-column:1}.card{padding:15px;border-radius:15px}.login-page{grid-template-columns:1fr}.login-visual{display:none}.login-panel{min-height:100vh;padding:20px}.login-logo{width:150px}.qr-box{grid-template-columns:1fr}.print-sheet{width:100%;min-height:auto;margin:0;padding:18px;box-shadow:none}.signature-row{grid-template-columns:1fr 80px 1fr}.approval-box{grid-template-columns:1fr}.print-actions{right:10px;bottom:10px}.page-head h1{font-size:27px}.grid.mobile-2{grid-template-columns:repeat(2,1fr)}}
@media(max-width:430px){.menu-grid{grid-template-columns:1fr 1fr}.menu-card strong{font-size:14px}.user-meta strong{font-size:10px}.user-meta span{font-size:9px}.user-dot{display:none}.topnav{gap:3px}.nav-link{padding:8px 9px;font-size:11px}.actions .btn{flex:1}.metric .value{font-size:21px}.receipt-grid{grid-template-columns:1fr}.receipt-grid .wide{grid-column:auto}}
@media print{body{background:#fff}.topbar,.footer,.print-actions,.no-print,.modal-backdrop{display:none!important}.container{width:100%;margin:0}.print-sheet{box-shadow:none;margin:0;width:auto;min-height:0;padding:.35in}.table th{position:static}.page-break{page-break-before:always}@page{size:Letter portrait;margin:.3in}}
.col-1{grid-column:span 1}

/* ===== Login SICAH 2026 · diseño de referencia ===== */
body.login-body{background:#fff;overflow-x:hidden}
.login-page.login-page-ref{min-height:100svh;display:grid;grid-template-columns:minmax(0,1.42fr) minmax(520px,1fr);background:#fff;overflow:hidden}
.login-page-ref .login-visual{position:relative;display:block;min-height:100svh;background:url('../img/fondo-inicio.png') 54% center/cover no-repeat;overflow:hidden}
.login-page-ref .login-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(1,28,69,.40) 0%,rgba(4,47,106,.18) 45%,rgba(4,47,106,.02) 78%);z-index:1}
.login-visual-shape{position:absolute;z-index:2;pointer-events:none}
.login-shape-one{left:-13%;top:-8%;width:56%;height:118%;background:linear-gradient(135deg,rgba(4,42,97,.96),rgba(5,59,133,.70));clip-path:polygon(0 0,82% 0,48% 18%,76% 38%,44% 60%,78% 100%,0 100%);opacity:.72}
.login-shape-two{left:-4%;top:0;width:49%;height:100%;border:46px solid rgba(8,57,126,.34);border-left-width:72px;clip-path:polygon(0 0,100% 0,55% 24%,100% 50%,55% 76%,100% 100%,0 100%,45% 76%,0 50%,45% 24%);opacity:.56}
.login-shape-red{left:-1.5%;top:24%;width:21%;height:26%;background:linear-gradient(135deg,rgba(224,20,42,.94),rgba(195,17,32,.62));clip-path:polygon(0 35%,73% 0,100% 14%,22% 100%);opacity:.78}
.login-page-ref .login-copy{position:absolute;z-index:4;left:6.5%;right:8%;bottom:7.5%;color:#fff;text-shadow:0 3px 18px rgba(0,22,60,.2)}
.login-page-ref .login-copy h1{font-size:clamp(64px,6.4vw,112px);line-height:.92;margin:0;font-weight:950;letter-spacing:-.045em;color:#fff}
.login-red-line{display:block;width:124px;height:8px;background:#e61c2c;border-radius:99px;margin:25px 0 18px;box-shadow:0 0 18px rgba(230,28,44,.25)}
.login-page-ref .login-copy p{max-width:760px;margin:0;color:#fff;font-size:clamp(22px,2vw,35px);font-weight:430;line-height:1.22;letter-spacing:-.02em}

.login-page-ref .login-panel{position:relative;display:grid;place-items:center;min-height:100svh;padding:5.5vh 5.2vw;background:linear-gradient(145deg,#ffffff 0%,#f8fbff 58%,#f4f8fd 100%);overflow:hidden}
.login-page-ref .login-panel::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 0 68%,rgba(225,232,242,.32) 68% 76%,transparent 76%),linear-gradient(315deg,transparent 0 82%,rgba(214,224,238,.25) 82% 88%,transparent 88%);pointer-events:none}
.login-panel-deco{position:absolute;pointer-events:none;z-index:1;transform:rotate(-43deg);border-radius:3px}
.deco-top{right:-95px;top:-28px;width:235px;height:48px;background:#0d4eab;box-shadow:-39px 44px 0 rgba(8,49,112,.12)}
.deco-bottom{right:-58px;bottom:34px;width:210px;height:28px;background:#e61c3d;box-shadow:33px 35px 0 #0d4eab}
.login-page-ref .login-box{position:relative;z-index:3;width:min(650px,100%);background:rgba(255,255,255,.93);border:1px solid rgba(209,220,234,.74);border-radius:36px;padding:46px 42px 38px;box-shadow:0 26px 75px rgba(15,49,94,.13);backdrop-filter:blur(7px)}
.login-page-ref .login-logo{width:min(235px,48%);max-height:185px;object-fit:contain;display:block;margin:0 auto 13px}
.login-title-line{display:block;width:72px;height:4px;border-radius:999px;background:#e51d2b;margin:0 auto 15px}
.login-page-ref .login-box h2{text-align:center;color:#0d3979;font-size:clamp(25px,2.15vw,39px);font-weight:900;letter-spacing:-.035em;line-height:1.05;margin:0}
.login-page-ref .login-box .tagline{text-align:center;color:#6d7891;font-size:clamp(16px,1.15vw,22px);margin:12px 0 31px;font-weight:450}
.login-page-ref .login-form .field{margin-bottom:18px}
.login-page-ref .login-form label{color:#0a397c;font-size:14px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;margin:0 0 8px 2px}
.login-input-wrap{position:relative;display:flex;align-items:center}
.login-input-icon{position:absolute;left:19px;z-index:2;width:26px;height:26px;color:#4f7dbb;display:grid;place-items:center;pointer-events:none}
.login-input-icon svg,.password-toggle svg{width:100%;height:100%;display:block}
.login-page-ref .login-input{height:64px;border:1.5px solid #b8ccea;border-radius:14px;background:#f7fbff;padding:0 56px 0 64px;color:#17233a;font-size:18px;box-shadow:inset 0 1px 3px rgba(20,52,94,.03);transition:.18s ease}
.login-page-ref .login-input:focus{border-color:#2d68b9;background:#fff;box-shadow:0 0 0 4px rgba(33,101,190,.10),0 8px 22px rgba(17,62,122,.06)}
.password-toggle{position:absolute;right:16px;width:32px;height:32px;padding:5px;border:0;background:transparent;color:#6681a6;border-radius:8px;display:grid;place-items:center;z-index:3}
.password-toggle:hover{background:#eaf2fd;color:#0a4c9d}
.password-toggle .eye-slash{display:block}.password-toggle.showing .eye-slash{display:none}
.login-page-ref .login-submit{position:relative;height:66px;border-radius:14px;margin-top:4px;background:linear-gradient(90deg,#0a3e88 0%,#075cd9 100%);box-shadow:0 12px 27px rgba(3,75,166,.22);font-size:22px;font-weight:900;letter-spacing:.015em}
.login-page-ref .login-submit:hover{transform:translateY(-1px);box-shadow:0 15px 32px rgba(3,75,166,.28)}
.login-page-ref .login-submit .login-arrow{position:absolute;right:20px;font-size:31px;font-weight:300;line-height:1}
.login-page-ref .unidos{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:31px;color:#d91928;letter-spacing:.17em;font-size:18px;font-weight:950}
.login-page-ref .unidos span{height:1px;background:#b9c5d4;flex:1;max-width:105px}
.login-page-ref .unidos strong{white-space:nowrap}
.login-page-ref .login-copyright{text-align:center;color:#4e6281;font-size:13px;line-height:1.45;max-width:520px;margin:23px auto 0}
.login-page-ref .alert{margin:0 0 18px}

@media(max-width:1250px){
  .login-page.login-page-ref{grid-template-columns:minmax(0,1.22fr) minmax(470px,.9fr)}
  .login-page-ref .login-box{padding:38px 32px 32px;border-radius:30px}
  .login-page-ref .login-panel{padding:4vh 3.5vw}
  .login-page-ref .login-copy h1{font-size:clamp(60px,7vw,94px)}
  .login-page-ref .login-copy p{font-size:clamp(20px,2.3vw,29px)}
}
@media(max-width:900px){
  .login-page.login-page-ref{display:block;min-height:100svh;background:linear-gradient(145deg,#f9fbff,#eef4fb)}
  .login-page-ref .login-visual{display:block;min-height:310px;height:38svh;background-position:58% 48%}
  .login-page-ref .login-copy{left:28px;right:24px;bottom:28px}
  .login-page-ref .login-copy h1{font-size:clamp(50px,14vw,78px)}
  .login-page-ref .login-copy p{font-size:clamp(18px,4.7vw,25px);max-width:650px}
  .login-red-line{width:88px;height:6px;margin:16px 0 12px}
  .login-shape-one{width:68%;opacity:.68}.login-shape-two{width:70%}.login-shape-red{width:27%;top:18%}
  .login-page-ref .login-panel{min-height:auto;padding:24px 18px 34px;overflow:visible}
  .login-page-ref .login-box{width:min(650px,100%);margin-top:-18px;border-radius:28px;padding:32px 28px 30px}
  .login-page-ref .login-logo{width:min(190px,46%)}
  .login-page-ref .login-box h2{font-size:clamp(25px,6vw,34px)}
  .deco-top{display:none}.deco-bottom{right:-105px;bottom:22px}
}
@media(max-width:560px){
  .login-page-ref .login-visual{min-height:255px;height:31svh}
  .login-page-ref .login-copy{left:21px;bottom:22px}
  .login-page-ref .login-copy h1{font-size:48px}
  .login-page-ref .login-copy p{font-size:17px;max-width:360px}
  .login-red-line{width:68px;height:5px;margin:12px 0 9px}
  .login-page-ref .login-panel{padding:14px 12px 25px}
  .login-page-ref .login-box{margin-top:-12px;border-radius:23px;padding:26px 18px 24px}
  .login-page-ref .login-logo{width:145px;margin-bottom:9px}
  .login-title-line{width:56px;height:3px;margin-bottom:12px}
  .login-page-ref .login-box h2{font-size:25px}
  .login-page-ref .login-box .tagline{font-size:15px;margin:8px 0 22px}
  .login-page-ref .login-form label{font-size:11px;letter-spacing:.05em}
  .login-page-ref .login-input{height:58px;font-size:16px;padding-left:56px}
  .login-input-icon{left:17px;width:23px;height:23px}
  .login-page-ref .login-submit{height:58px;font-size:19px}
  .login-page-ref .unidos{gap:10px;margin-top:24px;font-size:13px;letter-spacing:.12em}
  .login-page-ref .unidos span{max-width:54px}
  .login-page-ref .login-copyright{font-size:11px;margin-top:17px;padding:0 4px}
}


/* ===== LOGIN SICAH V2 · fiel a la referencia ===== */
body.login-body-v2{margin:0;background:#eef3f8;color:#172033;overflow-x:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.sicah-login-v2{min-height:100svh;display:grid;grid-template-columns:58.75% 41.25%;background:#eef3f8;overflow:hidden}
.sicah-login-v2 *{box-sizing:border-box}
.sicah-login-v2__visual{position:relative;min-height:100svh;overflow:hidden;background:url('../img/fondo-inicio.png') 51% center/cover no-repeat}
.sicah-login-v2__visual::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,38,88,.54) 0%,rgba(7,38,88,.34) 24%,rgba(7,38,88,.13) 43%,rgba(7,38,88,.025) 63%,rgba(7,38,88,0) 100%);z-index:1;pointer-events:none}
.sicah-login-v2__shape{position:absolute;z-index:2;pointer-events:none}
.sicah-login-v2__shape--deep{left:-20%;top:-10%;width:58%;height:122%;background:linear-gradient(180deg,rgba(5,47,111,.96),rgba(4,42,101,.72));clip-path:polygon(0 0,100% 0,62% 20%,91% 36%,55% 53%,90% 72%,58% 88%,100% 100%,0 100%,34% 79%,0 55%,31% 31%);opacity:.72}
.sicah-login-v2__shape--mid{left:-4%;top:-6%;width:43%;height:113%;background:linear-gradient(180deg,rgba(10,56,123,.64),rgba(6,43,101,.20));clip-path:polygon(0 0,90% 0,56% 18%,89% 34%,52% 53%,82% 69%,53% 86%,90% 100%,0 100%,29% 76%,0 52%,28% 27%);opacity:.70}
.sicah-login-v2__shape--soft{left:-1%;top:0;width:36%;height:100%;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(7,53,119,.09));clip-path:polygon(0 0,76% 0,46% 18%,76% 35%,45% 52%,73% 69%,44% 86%,78% 100%,0 100%,24% 78%,0 53%,24% 27%);opacity:.76}
.sicah-login-v2__accent-red{position:absolute;left:0;top:26.8%;width:18.7%;height:26%;z-index:3;pointer-events:none;background:linear-gradient(135deg,rgba(232,27,48,.96),rgba(205,18,37,.65));clip-path:polygon(0 38%,74% 0,100% 13%,20% 100%);opacity:.78}
.sicah-login-v2__brand{position:absolute;z-index:4;left:6.4%;right:6%;bottom:9.0%;color:#fff;text-shadow:0 3px 16px rgba(0,25,67,.18)}
.sicah-login-v2__brand h1{margin:0;color:#fff;font-size:clamp(66px,6vw,104px);font-weight:950;line-height:.9;letter-spacing:-.055em}
.sicah-login-v2__redline{display:block;width:121px;height:7px;border-radius:999px;background:#ed1e2d;margin:22px 0 16px;box-shadow:0 0 16px rgba(237,30,45,.28)}
.sicah-login-v2__brand p{margin:0;max-width:760px;color:#fff;font-size:clamp(20px,1.6vw,28px);font-weight:430;line-height:1.18;letter-spacing:-.02em}
.sicah-login-v2__panel{position:relative;min-height:100svh;display:grid;place-items:center;padding:5.0vh 2.7vw;background:linear-gradient(145deg,#fbfdff 0%,#f4f8fd 60%,#edf3f9 100%);overflow:hidden}
.sicah-login-v2__panel::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 0 68%,rgba(215,224,236,.34) 68% 77%,transparent 77%),linear-gradient(315deg,transparent 0 83%,rgba(216,225,238,.24) 83% 90%,transparent 90%);pointer-events:none}
.sicah-login-v2__panel-shape{position:absolute;right:-85px;pointer-events:none;z-index:1;transform:rotate(-43deg);border-radius:4px}
.sicah-login-v2__panel-shape--blue{top:-26px;width:235px;height:47px;background:#0b51b3;box-shadow:-38px 43px 0 rgba(8,49,112,.10)}
.sicah-login-v2__panel-shape--red{bottom:37px;width:210px;height:26px;background:#ea1f3c;box-shadow:34px 34px 0 #0b51b3}
.sicah-login-v2__card{position:relative;z-index:3;width:min(590px,100%);background:rgba(255,255,255,.94);border:1px solid rgba(203,214,228,.88);border-radius:34px;padding:40px 32px 34px;box-shadow:0 24px 64px rgba(17,46,92,.11);backdrop-filter:blur(6px)}
.sicah-login-v2__logo{display:block;width:185px;max-width:48%;height:auto;object-fit:contain;margin:0 auto 10px}
.sicah-login-v2__titleline{display:block;width:70px;height:4px;border-radius:999px;background:#e71d2c;margin:0 auto 15px}
.sicah-login-v2__card h2{margin:0 auto;text-align:center;color:#0b3d83;font-size:clamp(25px,1.85vw,32px);font-weight:900;line-height:1.06;letter-spacing:-.04em;white-space:nowrap;max-width:100%;}
.sicah-login-v2__tagline{margin:12px 0 29px;text-align:center;color:#6e7891;font-size:clamp(16px,1.03vw,20px);font-weight:430}
.sicah-login-v2__field{margin-bottom:17px}
.sicah-login-v2__field label{display:block;margin:0 0 8px 2px;color:#0a397c;font-size:14px;font-weight:900;letter-spacing:.055em;text-transform:uppercase}
.sicah-login-v2__inputwrap{position:relative;display:flex;align-items:center}
.sicah-login-v2__icon{position:absolute;left:18px;z-index:2;width:25px;height:25px;display:grid;place-items:center;color:#4c79b6;pointer-events:none}
.sicah-login-v2__icon svg,.sicah-login-v2__toggle svg{display:block;width:100%;height:100%}
.sicah-login-v2__input{width:100%;height:62px;border:1.5px solid #b8cbea;border-radius:14px;background:#f4f8fe;padding:0 56px 0 61px;color:#17233a;font-size:18px;outline:none;box-shadow:inset 0 1px 3px rgba(20,52,94,.03);transition:.18s ease}
.sicah-login-v2__input:focus{border-color:#2d68b9;background:#fff;box-shadow:0 0 0 4px rgba(33,101,190,.10),0 8px 22px rgba(17,62,122,.05)}
.sicah-login-v2__toggle{position:absolute;right:16px;width:31px;height:31px;padding:5px;border:0;background:transparent;color:#6681a6;border-radius:8px;display:grid;place-items:center;z-index:3;cursor:pointer}
.sicah-login-v2__toggle:hover{background:#eaf2fd;color:#0a4c9d}.sicah-login-v2__toggle .slash{display:block}.sicah-login-v2__toggle.is-open .slash{display:none}
.sicah-login-v2__submit{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:64px;border:0;border-radius:14px;margin-top:4px;background:linear-gradient(90deg,#0a3f88 0%,#075cd8 100%);box-shadow:0 12px 27px rgba(3,75,166,.22);color:#fff;font-size:22px;font-weight:900;letter-spacing:.015em;cursor:pointer;transition:.16s ease}
.sicah-login-v2__submit:hover{transform:translateY(-1px);box-shadow:0 15px 32px rgba(3,75,166,.28)}
.sicah-login-v2__arrow{position:absolute;right:20px;font-size:31px;font-weight:300;line-height:1}
.sicah-login-v2__unidos{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:30px;color:#d91928;letter-spacing:.16em;font-size:18px;font-weight:950}
.sicah-login-v2__unidos span{height:1px;background:#b8c5d4;flex:1;max-width:105px}.sicah-login-v2__unidos strong{white-space:nowrap}
.sicah-login-v2__copyright{text-align:center;color:#526482;font-size:13px;line-height:1.45;max-width:500px;margin:22px auto 0}
.sicah-login-v2__card .alert{margin:0 0 16px}
@media(min-width:901px){.sicah-login-v2__card h2{white-space:nowrap}}
@media(max-width:1250px){.sicah-login-v2{grid-template-columns:57% 43%}.sicah-login-v2__card{width:min(565px,100%);padding:34px 28px 30px}.sicah-login-v2__panel{padding:4vh 2.2vw}.sicah-login-v2__card h2{font-size:clamp(24px,2vw,29px)}.sicah-login-v2__brand h1{font-size:clamp(60px,6.4vw,92px)}.sicah-login-v2__brand p{font-size:clamp(18px,1.9vw,26px)}}
@media(max-width:900px){.sicah-login-v2{display:block;min-height:100svh;background:linear-gradient(145deg,#f9fbff,#eef4fb)}.sicah-login-v2__visual{min-height:310px;height:38svh;background-position:58% 48%}.sicah-login-v2__brand{left:28px;right:24px;bottom:28px}.sicah-login-v2__brand h1{font-size:clamp(50px,14vw,78px)}.sicah-login-v2__brand p{font-size:clamp(18px,4.7vw,25px);max-width:650px}.sicah-login-v2__redline{width:88px;height:6px;margin:16px 0 12px}.sicah-login-v2__shape--deep{width:68%;opacity:.67}.sicah-login-v2__shape--mid{width:61%}.sicah-login-v2__shape--soft{width:53%}.sicah-login-v2__accent-red{width:27%;top:18%}.sicah-login-v2__panel{min-height:auto;padding:24px 18px 34px;overflow:visible}.sicah-login-v2__card{width:min(650px,100%);margin-top:-18px;border-radius:28px;padding:32px 28px 30px}.sicah-login-v2__logo{width:min(190px,46%)}.sicah-login-v2__card h2{font-size:clamp(25px,6vw,34px);white-space:normal}.sicah-login-v2__panel-shape--blue{display:none}.sicah-login-v2__panel-shape--red{right:-105px;bottom:22px}}
@media(max-width:560px){.sicah-login-v2__visual{min-height:255px;height:31svh}.sicah-login-v2__brand{left:21px;bottom:22px}.sicah-login-v2__brand h1{font-size:48px}.sicah-login-v2__brand p{font-size:17px;max-width:360px}.sicah-login-v2__redline{width:68px;height:5px;margin:12px 0 9px}.sicah-login-v2__panel{padding:14px 12px 25px}.sicah-login-v2__card{margin-top:-12px;border-radius:23px;padding:26px 18px 24px}.sicah-login-v2__logo{width:145px;margin-bottom:9px}.sicah-login-v2__titleline{width:56px;height:3px;margin-bottom:12px}.sicah-login-v2__card h2{font-size:25px}.sicah-login-v2__tagline{font-size:15px;margin:8px 0 22px}.sicah-login-v2__field label{font-size:11px;letter-spacing:.05em}.sicah-login-v2__input{height:58px;font-size:16px;padding-left:56px}.sicah-login-v2__icon{left:17px;width:23px;height:23px}.sicah-login-v2__submit{height:58px;font-size:19px}.sicah-login-v2__unidos{gap:10px;margin-top:24px;font-size:13px;letter-spacing:.12em}.sicah-login-v2__unidos span{max-width:54px}.sicah-login-v2__copyright{font-size:11px;margin-top:17px;padding:0 4px}}


/* ===== LOGIN SICAH V3 - ESTABLE Y AUTOCONTENIDO ===== */
html,body.login-body-v3{margin:0!important;padding:0!important;width:100%;min-height:100%;background:#eef3f8!important;overflow-x:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
body.login-body-v3 .sicah-login-v3{min-height:100svh;display:grid!important;grid-template-columns:58.5% 41.5%;background:#eef3f8;overflow:hidden}
body.login-body-v3 .sicah-login-v3 *{box-sizing:border-box}
body.login-body-v3 .sicah-login-v3__visual{position:relative;min-height:100svh;overflow:hidden;background-position:center center!important;background-size:cover!important;background-repeat:no-repeat!important}
body.login-body-v3 .sicah-login-v3__visual:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,35,83,.62) 0%,rgba(3,35,83,.40) 24%,rgba(3,35,83,.16) 46%,rgba(3,35,83,0) 76%);z-index:1}
body.login-body-v3 .sicah-login-v3__shape{position:absolute;z-index:2;pointer-events:none}
body.login-body-v3 .sicah-login-v3__shape.deep{left:-18%;top:-8%;width:54%;height:118%;background:linear-gradient(180deg,rgba(4,47,112,.94),rgba(4,42,102,.62));clip-path:polygon(0 0,100% 0,62% 20%,91% 36%,55% 53%,90% 72%,58% 88%,100% 100%,0 100%,34% 79%,0 55%,31% 31%);opacity:.72}
body.login-body-v3 .sicah-login-v3__shape.mid{left:-3%;top:-5%;width:40%;height:110%;background:linear-gradient(180deg,rgba(12,62,133,.50),rgba(7,47,106,.16));clip-path:polygon(0 0,90% 0,56% 18%,89% 34%,52% 53%,82% 69%,53% 86%,90% 100%,0 100%,29% 76%,0 52%,28% 27%);opacity:.72}
body.login-body-v3 .sicah-login-v3__shape.soft{left:0;top:0;width:34%;height:100%;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(7,53,119,.08));clip-path:polygon(0 0,76% 0,46% 18%,76% 35%,45% 52%,73% 69%,44% 86%,78% 100%,0 100%,24% 78%,0 53%,24% 27%);opacity:.75}
body.login-body-v3 .sicah-login-v3__accent{position:absolute;left:0;top:26%;width:18%;height:25%;z-index:3;background:linear-gradient(135deg,rgba(236,27,48,.95),rgba(205,18,37,.62));clip-path:polygon(0 38%,74% 0,100% 13%,20% 100%);opacity:.78}
body.login-body-v3 .sicah-login-v3__brand{position:absolute;z-index:4;left:6.3%;right:7%;bottom:7.2%;color:#fff;text-shadow:0 3px 16px rgba(0,25,67,.18)}
body.login-body-v3 .sicah-login-v3__brand h1{margin:0;color:#fff;font-size:clamp(72px,6.1vw,108px);font-weight:950;line-height:.9;letter-spacing:-.055em}
body.login-body-v3 .sicah-login-v3__redline{display:block;width:118px;height:7px;border-radius:999px;background:linear-gradient(90deg,#18c8c8 0 34%,#f129a8 34% 69%,#ff8c21 69% 100%);margin:20px 0 16px;box-shadow:0 2px 8px rgba(12,24,56,.14)}
body.login-body-v3 .sicah-login-v3__brand p{margin:0;max-width:760px;color:#fff;font-size:clamp(20px,1.55vw,28px);font-weight:430;line-height:1.18;letter-spacing:-.02em}
body.login-body-v3 .sicah-login-v3__panel{position:relative;min-height:100svh;display:grid!important;place-items:center;padding:4.8vh 3vw;background:linear-gradient(145deg,#fbfdff 0%,#f5f8fc 60%,#edf3f9 100%);overflow:hidden}
body.login-body-v3 .sicah-login-v3__panel:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 0 68%,rgba(215,224,236,.32) 68% 77%,transparent 77%),linear-gradient(315deg,transparent 0 83%,rgba(216,225,238,.22) 83% 90%,transparent 90%)}
body.login-body-v3 .sicah-login-v3__bluebar,body.login-body-v3 .sicah-login-v3__redbar{position:absolute;right:-82px;z-index:1;transform:rotate(-43deg);border-radius:4px}
body.login-body-v3 .sicah-login-v3__bluebar{top:-24px;width:230px;height:46px;background:#0b51b3;box-shadow:-38px 43px 0 rgba(8,49,112,.10)}
body.login-body-v3 .sicah-login-v3__redbar{bottom:36px;width:208px;height:25px;background:#ea1f3c;box-shadow:34px 34px 0 #0b51b3}
body.login-body-v3 .sicah-login-v3__card{position:relative;z-index:3;width:min(600px,100%);background:rgba(255,255,255,.96);border:1px solid rgba(203,214,228,.90);border-radius:34px;padding:38px 34px 32px;box-shadow:0 24px 64px rgba(17,46,92,.10)}
body.login-body-v3 .sicah-login-v3__logo{display:block;width:180px!important;max-width:46%!important;height:auto!important;object-fit:contain;margin:0 auto 10px!important}
body.login-body-v3 .sicah-login-v3__titleline{display:block;width:66px;height:4px;border-radius:999px;background:#e71d2c;margin:0 auto 15px}
body.login-body-v3 .sicah-login-v3__card h2{margin:0 auto;text-align:center;color:#0b3d83;font-size:clamp(26px,1.75vw,31px);font-weight:900;line-height:1.06;letter-spacing:-.035em;max-width:100%;white-space:nowrap}
body.login-body-v3 .sicah-login-v3__tagline{margin:12px 0 28px;text-align:center;color:#6e7891;font-size:clamp(16px,1vw,19px);font-weight:430}
body.login-body-v3 .sicah-login-v3__field{margin-bottom:16px}
body.login-body-v3 .sicah-login-v3__field label{display:block;margin:0 0 8px 2px;color:#0a397c;font-size:14px;font-weight:900;letter-spacing:.055em;text-transform:uppercase}
body.login-body-v3 .sicah-login-v3__inputwrap{position:relative;display:flex;align-items:center}
body.login-body-v3 .sicah-login-v3__icon{position:absolute;left:18px;z-index:2;width:24px;height:24px;display:grid;place-items:center;color:#4c79b6;pointer-events:none}
body.login-body-v3 .sicah-login-v3__icon svg,body.login-body-v3 .sicah-login-v3__toggle svg{display:block;width:100%;height:100%}
body.login-body-v3 .sicah-login-v3__input{width:100%;height:61px;border:1.5px solid #b8cbea;border-radius:14px;background:#f4f8fe;padding:0 56px 0 60px;color:#17233a;font-size:18px;outline:none;box-shadow:inset 0 1px 3px rgba(20,52,94,.03)}
body.login-body-v3 .sicah-login-v3__input:focus{border-color:#2d68b9;background:#fff;box-shadow:0 0 0 4px rgba(33,101,190,.10)}
body.login-body-v3 .sicah-login-v3__toggle{position:absolute;right:16px;width:31px;height:31px;padding:5px;border:0;background:transparent;color:#6681a6;border-radius:8px;display:grid;place-items:center;z-index:3;cursor:pointer}
body.login-body-v3 .sicah-login-v3__toggle .slash{display:block} body.login-body-v3 .sicah-login-v3__toggle.is-open .slash{display:none}
body.login-body-v3 .sicah-login-v3__submit{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:63px;border:0;border-radius:14px;margin-top:4px;background:linear-gradient(90deg,#0a3f88 0%,#075cd8 100%);box-shadow:0 12px 27px rgba(3,75,166,.22);color:#fff;font-size:22px;font-weight:900;letter-spacing:.015em;cursor:pointer}
body.login-body-v3 .sicah-login-v3__arrow{position:absolute;right:20px;font-size:31px;font-weight:300;line-height:1}
body.login-body-v3 .sicah-login-v3__unidos{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:29px;color:#d91928;letter-spacing:.16em;font-size:18px;font-weight:950}
body.login-body-v3 .sicah-login-v3__unidos span{height:1px;background:#b8c5d4;flex:1;max-width:104px} body.login-body-v3 .sicah-login-v3__unidos strong{white-space:nowrap}
body.login-body-v3 .sicah-login-v3__copyright{text-align:center;color:#526482;font-size:13px;line-height:1.45;max-width:500px;margin:21px auto 0}
body.login-body-v3 .sicah-login-v3__card .alert{margin:0 0 16px}
@media(max-width:1250px){body.login-body-v3 .sicah-login-v3{grid-template-columns:57% 43%}body.login-body-v3 .sicah-login-v3__card{width:min(565px,100%);padding:34px 28px 30px}body.login-body-v3 .sicah-login-v3__card h2{font-size:clamp(23px,1.9vw,28px)}body.login-body-v3 .sicah-login-v3__brand h1{font-size:clamp(60px,6.3vw,92px)}body.login-body-v3 .sicah-login-v3__brand p{font-size:clamp(18px,1.9vw,26px)}}
@media(max-width:900px){body.login-body-v3 .sicah-login-v3{display:block!important}body.login-body-v3 .sicah-login-v3__visual{min-height:310px;height:38svh;background-position:58% 48%!important}body.login-body-v3 .sicah-login-v3__brand{left:28px;right:24px;bottom:28px}body.login-body-v3 .sicah-login-v3__brand h1{font-size:clamp(50px,14vw,78px)}body.login-body-v3 .sicah-login-v3__brand p{font-size:clamp(18px,4.7vw,25px)}body.login-body-v3 .sicah-login-v3__redline{width:88px;height:6px;margin:16px 0 12px}body.login-body-v3 .sicah-login-v3__panel{min-height:auto;padding:24px 18px 34px;overflow:visible}body.login-body-v3 .sicah-login-v3__card{width:min(650px,100%);margin-top:-18px;border-radius:28px;padding:32px 28px 30px}body.login-body-v3 .sicah-login-v3__logo{width:190px!important}body.login-body-v3 .sicah-login-v3__card h2{font-size:clamp(25px,6vw,34px);white-space:normal}body.login-body-v3 .sicah-login-v3__bluebar{display:none}body.login-body-v3 .sicah-login-v3__redbar{right:-105px;bottom:22px}}
@media(max-width:560px){body.login-body-v3 .sicah-login-v3__visual{min-height:255px;height:31svh}body.login-body-v3 .sicah-login-v3__brand{left:21px;bottom:22px}body.login-body-v3 .sicah-login-v3__brand h1{font-size:48px}body.login-body-v3 .sicah-login-v3__brand p{font-size:17px}body.login-body-v3 .sicah-login-v3__panel{padding:14px 12px 25px}body.login-body-v3 .sicah-login-v3__card{margin-top:-12px;border-radius:23px;padding:26px 18px 24px}body.login-body-v3 .sicah-login-v3__logo{width:145px!important}body.login-body-v3 .sicah-login-v3__card h2{font-size:25px}body.login-body-v3 .sicah-login-v3__tagline{font-size:15px;margin:8px 0 22px}body.login-body-v3 .sicah-login-v3__field label{font-size:11px}body.login-body-v3 .sicah-login-v3__input{height:58px;font-size:16px;padding-left:56px}body.login-body-v3 .sicah-login-v3__submit{height:58px;font-size:19px}body.login-body-v3 .sicah-login-v3__unidos{gap:10px;margin-top:24px;font-size:13px;letter-spacing:.12em}body.login-body-v3 .sicah-login-v3__unidos span{max-width:54px}body.login-body-v3 .sicah-login-v3__copyright{font-size:11px;margin-top:17px}}

/* ===== Información · diseño de referencia 2026 ===== */
.info-ref-page{
  position:relative;
  z-index:1;
  isolation:isolate;
  display:grid;
  gap:20px;
  margin:-22px -16px -40px;
  padding:22px 16px 28px;
  min-height:calc(100vh - 120px);
  background:
    linear-gradient(135deg,transparent 0 10%,rgba(24,116,255,.08) 10% 18%,transparent 18% 73%,rgba(255,42,76,.06) 73% 79%,transparent 79%),
    linear-gradient(45deg,transparent 0 13%,rgba(36,122,245,.05) 13% 20%,transparent 20% 80%,rgba(16,104,229,.06) 80% 87%,transparent 87%),
    linear-gradient(180deg,#f7fbff 0%,#eef6ff 100%);
}
.info-ref-page::before,
.info-ref-page::after{content:"";position:absolute;z-index:-1;pointer-events:none;transform:rotate(45deg)}
.info-ref-page::before{width:180px;height:40px;left:-72px;top:18px;background:#1173ee;box-shadow:52px 52px 0 rgba(17,115,238,.16)}
.info-ref-page::after{width:185px;height:42px;right:-80px;bottom:78px;background:#ff3453;box-shadow:-50px -50px 0 rgba(19,106,225,.12)}

.info-ref-card{
  width:min(1370px,100%);
  margin:0 auto;
  background:rgba(255,255,255,.95);
  border:1px solid #e2e9f2;
  border-radius:20px;
  box-shadow:0 14px 36px rgba(22,76,145,.08);
  padding:18px 20px 20px;
}
.info-ref-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.info-ref-heading-left{display:flex;align-items:center;gap:14px;min-width:0}
.info-ref-heading h1,.info-ref-heading h2{margin:0;color:#0a2f8f;font-size:clamp(23px,2vw,31px);font-weight:950;line-height:1.1;letter-spacing:-.03em}
.info-ref-heading-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#eef4ff,#dfeaff);color:#0967ee;box-shadow:0 6px 16px rgba(24,93,197,.10);flex:none}
.info-ref-heading-icon.green{background:linear-gradient(145deg,#e8fff3,#d5fae8);color:#08a854}
.info-ref-heading-icon svg{width:25px;height:25px}
.info-ref-status{display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border-radius:999px;background:#dff8e9;color:#08783f;font-size:12px;font-weight:950;white-space:nowrap}
.info-ref-status.pending{background:#fff1d7;color:#9a6500}.info-ref-status .check{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#0aa35d;color:white;font-size:13px}.info-ref-status.pending .check{background:#e3a416}

.info-ref-summary{
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr 1.15fr;
  border:1px solid #dce8f6;
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(180deg,#f8fbff,#f2f7fd);
  margin-bottom:14px;
}
.info-ref-summary-item{display:flex;align-items:center;gap:13px;padding:13px 20px;min-width:0;position:relative}
.info-ref-summary-item:not(:last-child)::after{content:"";position:absolute;right:0;top:16px;bottom:16px;width:1px;background:#cfdded}
.info-ref-summary-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#fff;color:#1574ee;box-shadow:0 4px 12px rgba(35,103,190,.10);flex:none}
.info-ref-summary-icon svg{width:24px;height:24px}
.info-ref-summary-item span:not(.info-ref-summary-icon){display:block;color:#687895;font-size:12px;margin-bottom:2px}
.info-ref-summary-item strong{display:block;color:#071d67;font-size:14px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.info-ref-form{margin-top:4px}
.info-ref-form-grid{display:grid;grid-template-columns:1.55fr .88fr .96fr .95fr 1.03fr;gap:14px;align-items:end}
.info-ref-form label{color:#082d72;font-size:12px;font-weight:900;letter-spacing:.015em;margin-bottom:7px}
.info-ref-form .input,.info-ref-form select{height:42px;border-radius:10px;border:1px solid #bfd0e8;background:#fff;box-shadow:0 2px 6px rgba(38,83,143,.03)}
.info-ref-save{margin-top:14px;min-width:220px;height:42px;border-radius:10px;background:linear-gradient(90deg,#0a6ff1,#0a57d5);box-shadow:0 7px 18px rgba(16,93,210,.20)}
.info-ref-save .save-icon{font-size:18px}

.info-ref-whatsapp{padding-bottom:14px}
.info-ref-whatsapp-box{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:10px 12px 10px 14px;border:1px dashed #8edbc3;border-radius:13px;background:linear-gradient(90deg,#f4fffa,#f8fffd)}
.info-ref-whatsapp-copy{display:flex;align-items:center;gap:18px;min-width:0}
.info-ref-whatsapp-icon{width:54px;height:54px;border-radius:14px;background:#e1fbef;color:#08a854;display:grid;place-items:center;flex:none}
.info-ref-whatsapp-icon svg{width:34px;height:34px}
.info-ref-whatsapp-copy p{margin:0 0 10px;color:#21396d;font-size:14px;line-height:1.5}
.info-ref-whatsapp-copy p strong{font-weight:800;color:#123675}
.info-ref-whatsapp-btn{background:linear-gradient(90deg,#0ba452,#008f45);color:#fff;min-width:170px;height:40px;border-radius:10px;box-shadow:0 7px 15px rgba(7,151,75,.18)}
.info-ref-whatsapp-btn svg{width:20px;height:20px}
.info-ref-qr-wrap{width:116px;height:116px;background:#fff;border-radius:12px;padding:8px;display:grid;place-items:center;box-shadow:0 4px 14px rgba(42,92,143,.09)}
.info-ref-qr-wrap img{width:100px;height:100px;object-fit:contain;display:block}

.info-ref-delegates{padding-bottom:12px}
.info-ref-register{height:40px;border-radius:10px;background:linear-gradient(90deg,#0b6ff2,#0a57d7);box-shadow:0 6px 16px rgba(11,89,212,.16)}
.info-ref-register span{font-size:20px;line-height:1}
.info-ref-table-shell{border-radius:12px;border-color:#cddbeb}
.info-ref-table{min-width:960px}
.info-ref-table th{background:linear-gradient(180deg,#eaf4ff,#e2eefc);color:#0b2d6a;font-weight:900;padding:9px 14px}
.info-ref-table td{padding:9px 14px;color:#18366b;background:#fff}
.info-ref-row-actions{flex-wrap:nowrap;justify-content:center}
.info-ref-edit{background:#fff;color:#066bf2;border:1px solid #8cb9f5;border-radius:9px;padding:6px 13px}
.info-ref-delete{background:linear-gradient(90deg,#fa2839,#e70d24);color:#fff;border-radius:9px;padding:6px 13px;box-shadow:0 5px 12px rgba(225,20,45,.18)}
.info-ref-modal{border-radius:18px}
.info-ref-modal .required::after{color:#e9192b}

@media(max-width:1150px){
  .info-ref-summary{grid-template-columns:repeat(2,1fr)}
  .info-ref-summary-item:nth-child(2)::after{display:none}
  .info-ref-summary-item:nth-child(-n+2){border-bottom:1px solid #cfdded}
  .info-ref-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .info-col-name{grid-column:1/-1}
}
@media(max-width:720px){
  .info-ref-page{margin:-12px -9px -40px;padding:12px 9px 22px;gap:12px}
  .info-ref-card{padding:14px;border-radius:16px}
  .info-ref-heading{align-items:flex-start}
  .info-ref-heading h1,.info-ref-heading h2{font-size:21px}
  .info-ref-heading-icon{width:38px;height:38px}
  .info-ref-status{padding:7px 10px;font-size:10px}
  .info-ref-summary{grid-template-columns:1fr}
  .info-ref-summary-item{border-bottom:1px solid #cfdded!important}
  .info-ref-summary-item:last-child{border-bottom:0!important}
  .info-ref-summary-item::after{display:none!important}
  .info-ref-form-grid{grid-template-columns:1fr}
  .info-col-name{grid-column:auto}
  .info-ref-save{width:100%;min-width:0}
  .info-ref-whatsapp-box{grid-template-columns:1fr}
  .info-ref-whatsapp-copy{align-items:flex-start}
  .info-ref-qr-wrap{margin:auto}
  .info-ref-heading .info-ref-register{font-size:0;width:40px;padding:0;flex:none}
  .info-ref-heading .info-ref-register span{font-size:22px}
}

/* ===== Cabecera principal · referencia visual 2026 ===== */
.topbar.topbar-ref{background:linear-gradient(180deg,rgba(255,255,255,.68),rgba(255,255,255,.78));border-bottom:1px solid rgba(220,229,240,.92);box-shadow:0 3px 14px rgba(23,64,116,.05);backdrop-filter:blur(10px) saturate(1.02);-webkit-backdrop-filter:blur(10px) saturate(1.02)}
.topbar-ref .topbar-inner{width:min(1510px,calc(100% - 30px));max-width:none;min-height:72px;margin:0 auto;padding:8px 10px;gap:22px;display:flex;align-items:center;flex-wrap:nowrap}
.topbar-ref .brand-ref{min-width:330px;display:flex;align-items:center;gap:12px;flex:none}
.topbar-ref .brand-ref img{width:64px;height:52px;object-fit:contain;display:block}
.topbar-ref .brand-text{display:block;min-width:0}
.topbar-ref .brand-text strong{display:block;font-size:16px;line-height:1.1;color:#082d72;font-weight:900;white-space:nowrap}
.topbar-ref .brand-text span{display:block;font-size:12px;color:#607596;margin-top:4px;font-weight:500}
.topbar-ref .topnav-ref{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.topbar-ref .topnav-ref::-webkit-scrollbar{display:none}
.topbar-ref .nav-link-ref{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 12px;border-radius:11px;color:#0a2d68;font-size:12.5px;font-weight:800;white-space:nowrap;transition:background .16s,color .16s,box-shadow .16s}
.topbar-ref .nav-link-ref:hover{background:#f0f5fb;color:#075ed7}
.topbar-ref .nav-link-ref.active{background:linear-gradient(180deg,#eaf3ff,#e3efff);color:#075fd8;box-shadow:inset 0 0 0 1px rgba(74,137,231,.08)}
.topbar-ref .nav-svg{width:18px;height:18px;display:grid;place-items:center;flex:none;color:currentColor}
.topbar-ref .nav-svg svg{width:18px;height:18px;display:block}
.topbar-ref .user-chip-ref{display:flex;align-items:center;gap:11px;min-width:275px;max-width:330px;height:50px;padding:6px 14px 6px 8px;margin-left:0;border-radius:14px;background:linear-gradient(180deg,rgba(248,251,255,.78),rgba(242,247,253,.74));border:1px solid rgba(213,225,239,.92);box-shadow:none;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);flex:none}
.topbar-ref .user-chip-ref .user-dot{width:38px;height:38px;border-radius:50%;background:linear-gradient(145deg,#0b3d8b,#082c6f);color:#fff;font-size:15px;font-weight:900;display:grid;place-items:center;flex:none}
.topbar-ref .user-chip-ref .user-meta{min-width:0;line-height:1.15}
.topbar-ref .user-chip-ref .user-meta strong{display:block;color:#0b347c;font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase}
.topbar-ref .user-chip-ref .user-meta span{display:block;color:#7383a0;font-size:10px;margin-top:4px;font-weight:600;text-transform:uppercase}

/* WhatsApp con apariencia de marca original */
.info-ref-heading-icon.green{background:linear-gradient(145deg,#e8fff1,#d9fae8);color:initial}
.info-ref-heading-icon.green .wa-logo-svg{width:30px;height:30px;display:block}
.info-ref-whatsapp-icon{background:#e7fbef!important;color:initial!important}
.info-ref-whatsapp-icon .wa-logo-svg{width:36px!important;height:36px!important;display:block}
.info-ref-whatsapp-btn{display:inline-flex;align-items:center;gap:8px}
.info-ref-whatsapp-btn svg{width:20px!important;height:20px!important;display:block}

@media(max-width:1280px){
  .topbar-ref .topbar-inner{width:min(100% - 20px,1540px);gap:12px}
  .topbar-ref .brand-ref{min-width:320px}
  .topbar-ref .brand-ref img{width:62px;height:54px}
  .topbar-ref .brand-text strong{font-size:15px}
  .topbar-ref .nav-link-ref{padding:0 12px;font-size:12px;gap:6px}
  .topbar-ref .user-chip-ref{min-width:240px;max-width:260px}
}
@media(max-width:980px){
  .topbar-ref .topbar-inner{flex-wrap:wrap;padding:8px 8px;min-height:auto}
  .topbar-ref .brand-ref{min-width:auto;flex:1}
  .topbar-ref .user-chip-ref{min-width:0;max-width:46%;margin-left:auto}
  .topbar-ref .topnav-ref{order:3;flex-basis:100%;justify-content:flex-start;padding:2px 0 1px}
  .topbar-ref .nav-link-ref{min-height:40px}
}
@media(max-width:560px){
  .topbar-ref .brand-ref img{width:44px;height:40px}
  .topbar-ref .brand-text strong{font-size:12px;max-width:180px;overflow:hidden;text-overflow:ellipsis}
  .topbar-ref .brand-text span{font-size:10px}
  .topbar-ref .user-chip-ref{height:42px;max-width:48%;padding:4px 8px 4px 5px}
  .topbar-ref .user-chip-ref .user-dot{width:32px;height:32px;font-size:12px}
  .topbar-ref .user-chip-ref .user-meta strong{font-size:10px}
  .topbar-ref .user-chip-ref .user-meta span{font-size:9px}
  .topbar-ref .nav-link-ref{padding:0 8px;font-size:10.5px}
  .topbar-ref .nav-svg,.topbar-ref .nav-svg svg{width:16px;height:16px}
}

/* ===== Responsive móvil reforzado · SICAH Información ===== */
html,body{max-width:100%;overflow-x:hidden}
@media(max-width:820px){
  .container{width:100%!important;max-width:100%!important;margin:10px 0 28px!important;padding:0 10px!important}
  .footer{padding:14px 12px!important;font-size:10px!important;line-height:1.35!important;
    font-size:13px!important;text-align:center!important;overflow-wrap:anywhere}

  .topbar.topbar-ref{position:sticky;top:0;z-index:80;width:100%}
  .topbar-ref .topbar-inner{width:100%!important;max-width:100%!important;margin:0!important;padding:8px 10px 6px!important;gap:8px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important}
  .topbar-ref .brand-ref{min-width:0!important;width:auto!important;gap:8px!important;overflow:hidden}
  .topbar-ref .brand-ref img{width:44px!important;height:40px!important;flex:0 0 auto}
  .topbar-ref .brand-text{min-width:0!important;overflow:hidden}
  .topbar-ref .brand-text strong{font-size:11px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .topbar-ref .brand-text span{font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .topbar-ref .user-chip-ref{min-width:0!important;max-width:46vw!important;width:auto!important;height:42px!important;padding:4px 7px 4px 5px!important;gap:7px!important;margin:0!important;justify-self:end!important;overflow:hidden}
  .topbar-ref .user-chip-ref .user-dot{width:31px!important;height:31px!important;font-size:11px!important;flex:0 0 auto}
  .topbar-ref .user-chip-ref .user-meta{min-width:0!important;overflow:hidden}
  .topbar-ref .user-chip-ref .user-meta strong{font-size:9px!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .topbar-ref .user-chip-ref .user-meta span{font-size:8px!important;margin-top:2px!important}
  .topbar-ref .topnav-ref{grid-column:1/-1!important;order:initial!important;width:100%!important;max-width:100%!important;display:flex!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;gap:4px!important;padding:4px 0 2px!important;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:none}
  .topbar-ref .topnav-ref::-webkit-scrollbar{display:none}
  .topbar-ref .nav-link-ref{flex:0 0 auto!important;min-height:36px!important;padding:0 8px!important;font-size:10px!important;gap:5px!important;border-radius:9px!important;scroll-snap-align:start}
  .topbar-ref .nav-svg,.topbar-ref .nav-svg svg{width:15px!important;height:15px!important}

  .info-ref-page{width:100%!important;max-width:100%!important;margin:0!important;padding:8px 0 18px!important;gap:12px!important;overflow:hidden!important}
  .info-ref-page::before,.info-ref-page::after{opacity:.42}
  .info-ref-card{width:100%!important;max-width:100%!important;margin:0!important;padding:14px 12px!important;border-radius:15px!important;overflow:hidden!important}
  .info-ref-heading{gap:8px!important;margin-bottom:12px!important;align-items:center!important;flex-wrap:wrap!important}
  .info-ref-heading-left{gap:9px!important;min-width:0!important;flex:1 1 210px!important}
  .info-ref-heading h1,.info-ref-heading h2{font-size:19px!important;line-height:1.15!important;overflow-wrap:anywhere}
  .info-ref-heading-icon{width:36px!important;height:36px!important;border-radius:10px!important;flex:0 0 auto}
  .info-ref-heading-icon svg{width:22px!important;height:22px!important}
  .info-ref-status{font-size:9px!important;padding:6px 9px!important;margin-left:auto!important}

  .info-ref-summary{grid-template-columns:1fr!important;margin-bottom:12px!important;border-radius:12px!important}
  .info-ref-summary-item{padding:10px 12px!important;gap:10px!important;border-bottom:1px solid #dce7f2!important;min-width:0!important}
  .info-ref-summary-item:last-child{border-bottom:0!important}
  .info-ref-summary-item::after{display:none!important}
  .info-ref-summary-icon{width:34px!important;height:34px!important;border-radius:9px!important}
  .info-ref-summary-icon svg{width:21px!important;height:21px!important}
  .info-ref-summary-item span:not(.info-ref-summary-icon){font-size:10px!important}
  .info-ref-summary-item strong{font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere!important}

  .info-ref-form-grid{grid-template-columns:1fr!important;gap:10px!important}
  .info-ref-form-grid>[class*="info-col-"]{grid-column:auto!important;min-width:0!important}
  .info-ref-form label{font-size:10px!important;margin-bottom:5px!important}
  .info-ref-form .input,.info-ref-form select{width:100%!important;max-width:100%!important;height:44px!important;font-size:14px!important}
  .info-ref-save{width:100%!important;min-width:0!important;height:44px!important;margin-top:12px!important}

  .info-ref-whatsapp-box{grid-template-columns:1fr!important;gap:12px!important;padding:12px!important}
  .info-ref-whatsapp-copy{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:start!important;gap:10px!important;min-width:0!important}
  .info-ref-whatsapp-icon{width:44px!important;height:44px!important;border-radius:12px!important}
  .info-ref-whatsapp-icon .wa-logo-svg{width:30px!important;height:30px!important}
  .info-ref-whatsapp-copy>div{min-width:0!important}
  .info-ref-whatsapp-copy p{font-size:12px!important;line-height:1.45!important;margin:0 0 10px!important;overflow-wrap:anywhere!important}
  .info-ref-whatsapp-btn{width:100%!important;min-width:0!important;height:42px!important;justify-content:center!important;font-size:13px!important}
  .info-ref-qr-wrap{width:132px!important;height:132px!important;margin:0 auto!important;padding:8px!important}
  .info-ref-qr-wrap img{width:116px!important;height:116px!important}

  .info-ref-delegates .info-ref-heading{align-items:center!important}
  .info-ref-register{width:auto!important;max-width:46%!important;height:38px!important;padding:0 10px!important;font-size:11px!important;white-space:nowrap!important}
  .info-ref-register span{font-size:18px!important}
  .info-ref-table-shell{overflow:visible!important;border:0!important;background:transparent!important}
  .info-ref-table{display:block!important;width:100%!important;min-width:0!important;border-collapse:separate!important}
  .info-ref-table thead{display:none!important}
  .info-ref-table tbody{display:grid!important;gap:10px!important;width:100%!important}
  .info-ref-table tr{display:block!important;width:100%!important;background:#fff!important;border:1px solid #d7e3f0!important;border-radius:12px!important;overflow:hidden!important;box-shadow:0 4px 12px rgba(24,76,140,.05)!important}
  .info-ref-table td{display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;align-items:start!important;gap:8px!important;width:100%!important;padding:8px 10px!important;border-bottom:1px solid #edf2f8!important;font-size:11px!important;overflow-wrap:anywhere!important;white-space:normal!important}
  .info-ref-table td:last-child{border-bottom:0!important}
  .info-ref-table td:nth-child(1)::before{content:"Nombre"}.info-ref-table td:nth-child(2)::before{content:"Género"}.info-ref-table td:nth-child(3)::before{content:"Cargo"}.info-ref-table td:nth-child(4)::before{content:"Teléfono"}.info-ref-table td:nth-child(5)::before{content:"Correo"}.info-ref-table td:nth-child(6)::before{content:"Acciones"}
  .info-ref-table td::before{font-weight:900;color:#0a347b;font-size:10px;text-transform:uppercase}
  .info-ref-table td[colspan]{display:block!important;text-align:center!important;padding:16px 10px!important}
  .info-ref-table td[colspan]::before{display:none!important}
  .info-ref-row-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:100%!important;justify-content:stretch!important}
  .info-ref-edit,.info-ref-delete{width:100%!important;justify-content:center!important;padding:7px 8px!important;font-size:11px!important}

  .modal-backdrop{padding:10px!important}
  .modal{width:100%!important;max-width:100%!important;max-height:92svh!important;overflow:auto!important;border-radius:16px!important;padding:14px!important}
  .info-ref-modal .grid-2{grid-template-columns:1fr!important}
  .info-ref-modal .span-2{grid-column:auto!important}
}

@media(max-width:430px){
  .container{padding:0 7px!important}
  .topbar-ref .topbar-inner{padding:7px 7px 5px!important;gap:6px!important}
  .topbar-ref .brand-ref img{width:38px!important;height:35px!important}
  .topbar-ref .brand-text strong{font-size:10px!important}
  .topbar-ref .brand-text span{font-size:8px!important}
  .topbar-ref .user-chip-ref{max-width:45vw!important;height:38px!important;padding:3px 5px!important;gap:5px!important}
  .topbar-ref .user-chip-ref .user-dot{width:28px!important;height:28px!important;font-size:10px!important}
  .topbar-ref .user-chip-ref .user-meta strong{font-size:8px!important}
  .topbar-ref .user-chip-ref .user-meta span{font-size:7px!important}
  .topbar-ref .nav-link-ref{min-height:34px!important;padding:0 7px!important;font-size:9px!important}
  .info-ref-card{padding:12px 10px!important}
  .info-ref-heading h1,.info-ref-heading h2{font-size:17px!important}
  .info-ref-heading-icon{width:34px!important;height:34px!important}
  .info-ref-status{font-size:8px!important;padding:5px 7px!important}
  .info-ref-table td{grid-template-columns:92px minmax(0,1fr)!important;font-size:10.5px!important;padding:8px!important}
  .info-ref-row-actions{grid-template-columns:1fr!important}
  .info-ref-register{max-width:none!important;padding:0 8px!important;font-size:10px!important}
  .info-ref-whatsapp-copy{grid-template-columns:38px minmax(0,1fr)!important}
  .info-ref-whatsapp-icon{width:38px!important;height:38px!important}
  .info-ref-whatsapp-icon .wa-logo-svg{width:27px!important;height:27px!important}
}


/* ===== Inicio SICAH · referencia visual 2026 ===== */
.home-ref{width:100vw;margin:-22px 0 0 calc(50% - 50vw);background:linear-gradient(180deg,#eef6ff 0%,#f7fbff 100%);position:relative;overflow:hidden;padding-bottom:26px}
.home-ref::after{content:"";position:absolute;right:-120px;bottom:120px;width:310px;height:52px;background:#ff2f4d;transform:rotate(-43deg);box-shadow:-62px -58px 0 rgba(17,106,231,.12);pointer-events:none}
.home-ref-hero{position:relative;min-height:445px;background-size:cover;background-position:center 44%;overflow:hidden;border-radius:0;margin:0;padding:0}
.home-ref-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,37,88,.88) 0%,rgba(3,50,111,.66) 36%,rgba(3,55,118,.22) 61%,rgba(3,55,118,.02) 80%);z-index:1}
.home-ref-hero::after{content:"";position:absolute;inset:auto 0 0;height:120px;background:linear-gradient(180deg,transparent,rgba(4,39,86,.08));z-index:1}
.home-ref-hero-shape{position:absolute;z-index:2;pointer-events:none}
.home-ref-shape-a{left:-70px;top:-20px;width:250px;height:520px;background:linear-gradient(180deg,rgba(4,49,113,.92),rgba(5,56,130,.58));clip-path:polygon(0 0,100% 0,56% 24%,100% 48%,55% 71%,100% 100%,0 100%,35% 76%,0 52%,34% 25%)}
.home-ref-shape-b{left:0;top:0;width:155px;height:100%;background:rgba(11,72,158,.36);clip-path:polygon(0 0,100% 0,53% 22%,90% 43%,48% 65%,86% 100%,0 100%,29% 75%,0 50%,27% 25%)}
.home-ref-shape-red{left:34%;top:-90px;width:38px;height:560px;background:linear-gradient(180deg,#ec1d38,#d71830);transform:rotate(-34deg);opacity:.92;box-shadow:0 0 24px rgba(227,25,49,.18)}
.home-ref-hero-inner{position:relative;z-index:3;width:min(1500px,calc(100% - 80px));height:100%;min-height:445px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:40px;padding:45px 22px 96px}
.home-ref-copy{color:#fff;max-width:760px;text-shadow:0 3px 18px rgba(0,30,70,.18)}
.home-ref-copy h1{margin:0 0 12px;font-size:clamp(68px,7vw,108px);line-height:.88;letter-spacing:-.055em;font-weight:950;color:#fff}
.home-ref-copy h2{margin:0 0 14px;font-size:clamp(24px,2.2vw,36px);line-height:1.15;font-weight:850;color:#fff;letter-spacing:-.025em}
.home-ref-copy p{margin:0;color:#f1f6ff;font-size:clamp(18px,1.6vw,27px);line-height:1.25;font-weight:430}
.home-ref-logo-card{width:230px;height:205px;border-radius:24px;background:rgba(255,255,255,.94);display:grid;place-items:center;padding:22px;box-shadow:0 18px 50px rgba(4,35,78,.18);backdrop-filter:blur(8px);flex:none}
.home-ref-logo-card img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(8,44,95,.07))}
.home-ref-menu-wrap{position:relative;z-index:5;width:min(1500px,calc(100% - 72px));margin:-116px auto 0;background:rgba(255,255,255,.96);border:1px solid #dce6f1;border-radius:28px;padding:20px;box-shadow:0 20px 45px rgba(13,66,129,.12);backdrop-filter:blur(12px)}
.home-ref-menu{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.home-ref-module{position:relative;min-height:222px;border:1px solid #d5e2ef;border-radius:18px;background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);padding:22px 22px 20px;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;isolation:isolate}
.home-ref-module:hover{transform:translateY(-5px);box-shadow:0 16px 32px rgba(16,70,138,.13);border-color:#b9cfea}
.home-ref-module-glow{position:absolute;right:-35px;top:-45px;width:120px;height:120px;border-radius:50%;opacity:.10;z-index:-1;transition:transform .28s ease,opacity .28s ease}
.home-ref-module:hover .home-ref-module-glow{transform:scale(1.15);opacity:.16}
.home-ref-module-icon{width:82px;height:82px;border-radius:20px;display:grid;place-items:center;color:#fff;margin-bottom:18px;box-shadow:0 12px 24px rgba(10,74,166,.15);transition:transform .22s ease,box-shadow .22s ease}
.home-ref-module:hover .home-ref-module-icon{transform:translateY(-2px) scale(1.035);box-shadow:0 15px 30px rgba(10,74,166,.20)}
.home-ref-module-icon svg{width:46px;height:46px;display:block}
.home-ref-module-copy{display:block;min-width:0}
.home-ref-module-copy strong{display:block;color:#092b70;font-size:22px;font-weight:950;line-height:1.08;letter-spacing:-.025em;margin-bottom:8px}
.home-ref-module-copy span{display:block;color:#687893;font-size:16px;line-height:1.35;font-weight:500}
.home-ref-module.tone-blue .home-ref-module-icon{background:linear-gradient(145deg,#2380ff,#005be3)}.home-ref-module.tone-blue .home-ref-module-glow{background:#1d78ef}
.home-ref-module.tone-red .home-ref-module-icon{background:linear-gradient(145deg,#ff244d,#e90932)}.home-ref-module.tone-red .home-ref-module-glow{background:#ff3657}
.home-ref-module.tone-green .home-ref-module-icon{background:linear-gradient(145deg,#12c56c,#009c48)}.home-ref-module.tone-green .home-ref-module-glow{background:#27c87a}
.home-ref-module.tone-purple .home-ref-module-icon{background:linear-gradient(145deg,#a52cff,#6f00df)}.home-ref-module.tone-purple .home-ref-module-glow{background:#9a38f0}
.home-ref-module.tone-orange .home-ref-module-icon{background:linear-gradient(145deg,#ff9720,#ff6d00)}.home-ref-module.tone-orange .home-ref-module-glow{background:#ff993c}
.home-ref-module.tone-cyan .home-ref-module-icon{background:linear-gradient(145deg,#2ab6ed,#087bc0)}.home-ref-module.tone-cyan .home-ref-module-glow{background:#2eb8ea}
.home-ref-module.tone-indigo .home-ref-module-icon{background:linear-gradient(145deg,#5669ff,#2437d7)}.home-ref-module.tone-indigo .home-ref-module-glow{background:#5365ef}
.home-ref-module.tone-teal .home-ref-module-icon{background:linear-gradient(145deg,#1cc4b4,#078b80)}.home-ref-module.tone-teal .home-ref-module-glow{background:#1ab8a8}
.home-ref-module.tone-violet .home-ref-module-icon{background:linear-gradient(145deg,#b64cff,#7a19dc)}.home-ref-module.tone-violet .home-ref-module-glow{background:#a548e8}
.home-ref-module.tone-slate .home-ref-module-icon{background:linear-gradient(145deg,#54729b,#2f4e78)}.home-ref-module.tone-slate .home-ref-module-glow{background:#6482a8}
.home-ref-module.tone-emerald .home-ref-module-icon{background:linear-gradient(145deg,#12c890,#008c66)}.home-ref-module.tone-emerald .home-ref-module-glow{background:#15b989}
.home-ref-module.tone-rose .home-ref-module-icon{background:linear-gradient(145deg,#ff5a82,#d82455)}.home-ref-module.tone-rose .home-ref-module-glow{background:#f85d80}
.home-ref-events{position:relative;z-index:4;width:min(1500px,calc(100% - 72px));margin:18px auto 0;background:rgba(255,255,255,.97);border:1px solid #d9e4f0;border-radius:23px;padding:20px 26px 24px;box-shadow:0 14px 34px rgba(18,69,132,.09)}
.home-ref-events-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:15px;border-bottom:1px solid #e2e8f0}
.home-ref-events-title{display:flex;align-items:center;gap:16px;min-width:0}
.home-ref-calendar-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:#092b70;background:#eef4ff;flex:none}
.home-ref-calendar-icon svg{width:24px;height:24px}
.home-ref-events-title h2{margin:0;color:#092b70;font-size:25px;font-weight:950;letter-spacing:-.025em}
.home-ref-seeall{display:inline-flex;align-items:center;gap:14px;padding:10px 18px;border:1px solid #c9d7e8;border-radius:999px;color:#0a2d6a;background:#fff;font-weight:850;font-size:14px;transition:.18s ease;white-space:nowrap}
.home-ref-seeall span{font-size:26px;line-height:.7;color:#0b55c7}.home-ref-seeall:hover{background:#f3f8ff;border-color:#a9c4e7;transform:translateY(-1px)}
.home-ref-empty{min-height:92px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#72819d;padding:18px 12px 4px}
.home-ref-empty-icon{width:38px;height:38px;color:#7386a5;display:grid;place-items:center}.home-ref-empty-icon svg{width:36px;height:36px}
.home-ref-empty p{margin:0;font-size:15px}
.home-ref-event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;padding-top:16px}
.home-ref-event-card{border:1px solid #dbe6f0;border-radius:14px;padding:14px 16px;background:linear-gradient(145deg,#fff,#f8fbff);transition:.18s ease}.home-ref-event-card:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(22,77,142,.08)}
.home-ref-event-date{display:block;color:#e31a33;font-size:11px;font-weight:900;text-transform:uppercase;margin-bottom:5px}.home-ref-event-card strong{display:block;color:#0a2d6a;font-size:15px;margin-bottom:4px}.home-ref-event-card p{margin:0;color:#687893;font-size:12px;line-height:1.45}

@media(max-width:1280px){
  .home-ref-menu{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-ref-module{min-height:205px}
  .home-ref-module-copy strong{font-size:20px}
  .home-ref-module-copy span{font-size:14px}
  .home-ref-logo-card{width:205px;height:185px}
}
@media(max-width:900px){
  .home-ref{margin-top:-10px}
  .home-ref-hero{min-height:420px;background-position:58% center}
  .home-ref-hero-inner{width:100%;min-height:420px;padding:42px 24px 115px;align-items:flex-end}
  .home-ref-copy{max-width:680px}
  .home-ref-copy h1{font-size:clamp(58px,12vw,86px)}
  .home-ref-copy h2{font-size:clamp(22px,4.8vw,30px)}
  .home-ref-copy p{font-size:clamp(16px,3.8vw,22px)}
  .home-ref-logo-card{display:none}
  .home-ref-shape-red{left:54%;opacity:.72}
  .home-ref-menu-wrap{width:calc(100% - 24px);margin:-88px auto 0;padding:14px;border-radius:22px}
  .home-ref-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .home-ref-module{min-height:180px;padding:17px}
  .home-ref-module-icon{width:66px;height:66px;border-radius:16px;margin-bottom:14px}
  .home-ref-module-icon svg{width:38px;height:38px}
  .home-ref-module-copy strong{font-size:18px}
  .home-ref-module-copy span{font-size:13px}
  .home-ref-events{width:calc(100% - 24px);padding:16px 18px 20px;border-radius:20px}
  .home-ref-events-title h2{font-size:20px}
}
@media(max-width:560px){
  .home-ref-hero{min-height:365px;background-position:61% center}
  .home-ref-hero-inner{min-height:365px;padding:30px 18px 98px}
  .home-ref-copy h1{font-size:54px;margin-bottom:10px}
  .home-ref-copy h2{font-size:20px;max-width:350px}
  .home-ref-copy p{font-size:15px;max-width:320px}.home-ref-desktop-br{display:none}
  .home-ref-shape-a{width:180px;opacity:.72}.home-ref-shape-b{width:110px}.home-ref-shape-red{left:58%;width:24px}
  .home-ref-menu-wrap{width:calc(100% - 16px);padding:10px;border-radius:18px;margin-top:-70px}
  .home-ref-menu{grid-template-columns:1fr;gap:9px}
  .home-ref-module{min-height:0;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;column-gap:14px;padding:14px;border-radius:15px}
  .home-ref-module-icon{width:58px;height:58px;border-radius:14px;margin:0;grid-row:1}
  .home-ref-module-icon svg{width:32px;height:32px}
  .home-ref-module-copy{grid-column:2;grid-row:1}.home-ref-module-copy strong{font-size:17px;margin-bottom:4px}.home-ref-module-copy span{font-size:12px;line-height:1.3}
  .home-ref-module-glow{width:90px;height:90px;right:-24px;top:-35px}
  .home-ref-events{width:calc(100% - 16px);padding:14px;border-radius:18px}
  .home-ref-events-head{align-items:flex-start}.home-ref-events-title{gap:10px}.home-ref-calendar-icon{width:34px;height:34px}.home-ref-calendar-icon svg{width:21px;height:21px}.home-ref-events-title h2{font-size:17px;line-height:1.15}
  .home-ref-seeall{padding:8px 11px;font-size:11px;gap:7px}.home-ref-seeall span{font-size:20px}
  .home-ref-empty{min-height:80px}.home-ref-empty p{font-size:12px;text-align:center}
}

@media(prefers-reduced-motion:reduce){.home-ref-module,.home-ref-module-icon,.home-ref-module-glow,.home-ref-seeall,.home-ref-event-card{transition:none!important}}


/* ===== BARRA SUPERIOR FINAL · REFERENCIA + RESPONSIVE ===== */
.topbar.topbar-ref{
  position:sticky!important;top:0!important;z-index:90!important;
  width:100%!important;background:#fff!important;
  border-bottom:1px solid #dce6f2!important;
  box-shadow:0 2px 9px rgba(18,54,104,.045)!important;
}
.topbar-ref .topbar-inner{
  width:min(1600px,calc(100% - 34px))!important;
  max-width:none!important;margin:0 auto!important;
  min-height:86px!important;padding:9px 0!important;
  display:grid!important;
  grid-template-columns:minmax(330px,390px) minmax(0,1fr) minmax(260px,310px)!important;
  align-items:center!important;column-gap:18px!important;
  flex-wrap:initial!important;
}
.topbar-ref .brand-ref{
  min-width:0!important;width:auto!important;display:flex!important;
  align-items:center!important;gap:13px!important;overflow:hidden!important;
}
.topbar-ref .brand-ref img{
  width:70px!important;height:60px!important;object-fit:contain!important;flex:0 0 auto!important;
}
.topbar-ref .brand-text{min-width:0!important;display:block!important;overflow:hidden!important}
.topbar-ref .brand-text strong{
  display:block!important;color:#12387e!important;font-size:16px!important;font-weight:900!important;
  line-height:1.08!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.topbar-ref .brand-text span{
  display:block!important;color:#6a7c98!important;font-size:11.5px!important;font-weight:500!important;
  margin-top:5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.topbar-ref .topnav-ref{
  min-width:0!important;width:100%!important;display:flex!important;align-items:center!important;
  justify-content:center!important;gap:4px!important;padding:0!important;overflow-x:auto!important;
  overflow-y:hidden!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;
}
.topbar-ref .topnav-ref::-webkit-scrollbar{display:none!important}
.topbar-ref .nav-link-ref{
  flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:46px!important;padding:0 14px!important;gap:7px!important;border-radius:13px!important;
  color:#17376f!important;font-size:12.5px!important;font-weight:850!important;
    font-size:13px!important;white-space:nowrap!important;
  text-decoration:none!important;line-height:1!important;
}
.topbar-ref .nav-link-ref:hover{background:#f1f6fd!important;color:#0b61d8!important}
.topbar-ref .nav-link-ref.active{
  background:linear-gradient(180deg,#edf5ff 0%,#e5f0ff 100%)!important;
  color:#0b61d8!important;box-shadow:inset 0 0 0 1px rgba(93,145,222,.15)!important;
}
.topbar-ref .nav-svg,.topbar-ref .nav-svg svg{width:18px!important;height:18px!important;flex:0 0 auto!important}
.topbar-ref .user-chip-ref{
  min-width:0!important;width:100%!important;max-width:310px!important;height:56px!important;
  justify-self:end!important;display:flex!important;align-items:center!important;gap:11px!important;
  padding:7px 13px 7px 9px!important;border-radius:16px!important;
  background:linear-gradient(180deg,#f8fbff,#f2f7fc)!important;border:1px solid #d4dfec!important;
  overflow:hidden!important;text-decoration:none!important;
}
.topbar-ref .user-chip-ref .user-dot{
  width:40px!important;height:40px!important;min-width:40px!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;background:linear-gradient(145deg,#0e438f,#0a2e70)!important;
  color:#fff!important;font-size:15px!important;font-weight:900!important;
}
.topbar-ref .user-chip-ref .user-meta{min-width:0!important;overflow:hidden!important}
.topbar-ref .user-chip-ref .user-meta strong{
  display:block!important;color:#17376f!important;font-size:11.5px!important;font-weight:900!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-transform:uppercase!important;
}
.topbar-ref .user-chip-ref .user-meta span{
  display:block!important;color:#8291a9!important;font-size:9.5px!important;margin-top:4px!important;
  font-weight:700!important;text-transform:uppercase!important;
}

/* Portátiles / tablet horizontal: conserva una sola fila mientras haya espacio */
@media (max-width:1360px) and (min-width:981px){
  .topbar-ref .topbar-inner{
    width:calc(100% - 20px)!important;
    grid-template-columns:minmax(270px,330px) minmax(0,1fr) minmax(220px,260px)!important;
    column-gap:10px!important;
  }
  .topbar-ref .brand-ref img{width:58px!important;height:50px!important}
  .topbar-ref .brand-text strong{font-size:14px!important}
  .topbar-ref .brand-text span{font-size:10px!important}
  .topbar-ref .nav-link-ref{padding:0 10px!important;font-size:11.2px!important;gap:5px!important}
  .topbar-ref .nav-svg,.topbar-ref .nav-svg svg{width:16px!important;height:16px!important}
  .topbar-ref .user-chip-ref{height:50px!important;max-width:260px!important}
  .topbar-ref .user-chip-ref .user-dot{width:35px!important;height:35px!important;min-width:35px!important;font-size:13px!important}
  .topbar-ref .user-chip-ref .user-meta strong{font-size:10px!important}
  .topbar-ref .user-chip-ref .user-meta span{font-size:8.5px!important}
}

/* Móvil y tablet vertical: 2 niveles, sin desbordar contenido */
@media (max-width:980px){
  .topbar-ref .topbar-inner{
    width:100%!important;max-width:100%!important;margin:0!important;
    min-height:auto!important;padding:8px 10px 7px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(145px,46vw)!important;
    grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:6px!important;
  }
  .topbar-ref .brand-ref{grid-column:1!important;grid-row:1!important;gap:8px!important;min-width:0!important}
  .topbar-ref .brand-ref img{width:44px!important;height:40px!important}
  .topbar-ref .brand-text strong{font-size:11.5px!important;max-width:100%!important}
  .topbar-ref .brand-text span{font-size:8.5px!important;margin-top:2px!important}
  .topbar-ref .user-chip-ref{
    grid-column:2!important;grid-row:1!important;max-width:100%!important;width:100%!important;height:42px!important;
    padding:4px 7px 4px 5px!important;gap:7px!important;border-radius:13px!important;
  }
  .topbar-ref .user-chip-ref .user-dot{width:31px!important;height:31px!important;min-width:31px!important;font-size:11px!important}
  .topbar-ref .user-chip-ref .user-meta strong{font-size:9px!important}
  .topbar-ref .user-chip-ref .user-meta span{font-size:7.5px!important;margin-top:2px!important}
  .topbar-ref .topnav-ref{
    grid-column:1/-1!important;grid-row:2!important;width:100%!important;max-width:100%!important;
    justify-content:flex-start!important;gap:4px!important;padding:2px 0 1px!important;
    overflow-x:auto!important;scroll-snap-type:x proximity!important;
  }
  .topbar-ref .nav-link-ref{
    min-height:37px!important;padding:0 9px!important;font-size:10px!important;gap:5px!important;
    border-radius:10px!important;scroll-snap-align:start!important;
  }
  .topbar-ref .nav-svg,.topbar-ref .nav-svg svg{width:15px!important;height:15px!important}
}

@media (max-width:520px){
  .topbar-ref .topbar-inner{padding:6px 7px 5px!important;grid-template-columns:minmax(0,1fr) minmax(128px,45vw)!important;gap:5px!important}
  .topbar-ref .brand-ref img{width:38px!important;height:34px!important}
  .topbar-ref .brand-text strong{font-size:10px!important}
  .topbar-ref .brand-text span{font-size:7.5px!important}
  .topbar-ref .user-chip-ref{height:38px!important;padding:3px 5px!important;gap:5px!important}
  .topbar-ref .user-chip-ref .user-dot{width:28px!important;height:28px!important;min-width:28px!important;font-size:10px!important}
  .topbar-ref .user-chip-ref .user-meta strong{font-size:8px!important}
  .topbar-ref .user-chip-ref .user-meta span{font-size:7px!important}
  .topbar-ref .nav-link-ref{min-height:34px!important;padding:0 8px!important;font-size:9px!important}
  .topbar-ref .nav-svg,.topbar-ref .nav-svg svg{width:14px!important;height:14px!important}
}


/* === Cuenta fija: expediente/nombre + cerrar sesión visible === */
.user-account-static{position:relative;flex:none;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:3px}
.user-account-static .user-chip-ref{margin:0;cursor:default;user-select:text}
.topbar-ref .user-chip-ref .user-dot.user-dot-exp{font-size:10px;letter-spacing:-.02em;white-space:nowrap;padding:0 3px;line-height:1;text-align:center}
.topbar-ref .user-chip-ref .user-meta strong{max-width:220px}
.user-logout-form{margin:0!important;padding:0!important;display:flex;justify-content:flex-end}
.user-logout-inline{border:0;background:transparent;color:#d51e2f;font:inherit;font-size:11px;font-weight:900;line-height:1.2;padding:2px 7px 0;display:inline-flex;align-items:center;gap:5px;cursor:pointer;border-radius:6px;text-transform:none}
.user-logout-inline:hover{color:#a90f1d;text-decoration:underline;background:rgba(213,30,47,.05)}
.user-logout-inline:focus-visible{outline:2px solid rgba(213,30,47,.28);outline-offset:2px}
.user-logout-inline span:first-child{font-size:13px;line-height:1}
@media(max-width:980px){
  .user-account-static{justify-self:end;max-width:48vw;gap:2px}
  .topbar-ref .user-chip-ref{max-width:48vw!important}
  .topbar-ref .user-chip-ref .user-meta strong{max-width:30vw!important}
  .user-logout-inline{font-size:10px;padding-right:4px}
}
@media(max-width:560px){
  .topbar-ref .user-chip-ref .user-dot.user-dot-exp{font-size:8px!important;padding:0 2px}
  .topbar-ref .user-chip-ref .user-meta strong{max-width:27vw!important}
  .user-logout-inline{font-size:9px;padding:1px 3px 0;gap:3px}
  .user-logout-inline span:first-child{font-size:11px}
}


/* ===== Captura de Informe · selector de periodos según referencia ===== */
.capture-period-page{position:relative;isolation:isolate;min-height:calc(100vh - 165px);padding:16px 0 44px}
.capture-period-page::before,.capture-period-page::after{content:"";position:fixed;z-index:-1;pointer-events:none;opacity:.75}
.capture-period-page::before{left:-145px;top:125px;width:420px;height:520px;background:linear-gradient(135deg,rgba(9,99,225,.90),rgba(9,99,225,.10));clip-path:polygon(0 0,100% 0,55% 34%,100% 67%,62% 100%,0 100%,38% 66%)}
.capture-period-page::after{right:-130px;bottom:30px;width:380px;height:420px;background:linear-gradient(135deg,rgba(235,36,67,.06),rgba(235,36,67,.95));clip-path:polygon(74% 0,100% 0,100% 100%,35% 100%,70% 66%,38% 35%)}
.capture-period-page>.page-head{width:min(1380px,100%);margin:0 auto 24px;padding:0 22px;align-items:center}
.capture-period-page>.page-head h1{font-size:clamp(34px,3.2vw,50px);font-weight:950;color:#082d79;line-height:1;letter-spacing:-.045em}
.capture-period-page>.page-head p{font-size:20px;color:#617493;margin-top:12px}
.capture-period-page>.page-head .home-link{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:rgba(239,246,255,.92);border:1px solid #d8e6f8;color:#0c61d7;box-shadow:0 8px 22px rgba(24,83,153,.08);font-size:25px}
.capture-year-card{width:min(1380px,calc(100% - 28px));margin:0 auto;background:rgba(255,255,255,.95);border:1px solid #d8e3f0;border-radius:24px;padding:23px 25px 27px;box-shadow:0 14px 36px rgba(31,73,126,.08)}
.capture-year-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.capture-year-title{display:flex;align-items:center;gap:14px;color:#092f79}
.capture-year-title h2{margin:0;font-size:25px;font-weight:950;letter-spacing:-.025em}
.capture-year-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#eef5ff,#e5efff);color:#0f63db;box-shadow:inset 0 0 0 1px rgba(80,137,222,.06)}
.capture-year-icon svg{width:30px;height:30px;display:block}
.capture-year-select select{height:52px;min-width:105px;border:1.5px solid #c9d8ed;border-radius:14px;background:#fff;color:#17346f;font-size:17px;font-weight:700;padding:0 38px 0 16px;outline:none;box-shadow:0 2px 8px rgba(17,53,104,.03)}
.capture-period-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.capture-period-card{position:relative;min-height:112px;border-radius:15px;border:1px solid #cbd9eb;display:flex;align-items:center;gap:16px;padding:18px 20px;text-decoration:none;overflow:hidden;box-shadow:0 5px 16px rgba(25,68,124,.04);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.capture-period-card:not(.is-disabled):hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(26,74,137,.12)}
.capture-period-card.is-available{background:linear-gradient(135deg,#f4fff7,#e9f9ef);border-color:#9dd9b2}
.capture-period-card.is-closed{background:linear-gradient(135deg,#f7f8fa,#eceff3);border-color:#ccd2da}
.capture-period-card.is-future{background:linear-gradient(135deg,#fffaf1,#fff0da);border-color:#efc887}
.capture-period-card.is-disabled{cursor:not-allowed;opacity:.96}
.capture-period-icon{width:54px;height:54px;border-radius:13px;display:grid;place-items:center;flex:0 0 auto;color:#fff;box-shadow:0 8px 16px rgba(26,69,127,.14)}
.capture-period-icon svg{width:31px;height:31px;display:block}
.capture-period-card.is-available .capture-period-icon{background:linear-gradient(145deg,#16b95b,#079641)}
.capture-period-card.is-closed .capture-period-icon{background:linear-gradient(145deg,#9aa5b3,#737f8f)}
.capture-period-card.is-future .capture-period-icon{background:linear-gradient(145deg,#ff9f26,#ef7d00)}
.capture-period-copy{display:flex;flex-direction:column;min-width:0;position:relative;z-index:2}
.capture-period-copy strong{font-size:16px;line-height:1.15;color:#0b2f72;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.capture-period-status{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin-top:7px;font-size:11px;font-weight:950;letter-spacing:.035em}
.capture-period-card.is-available .capture-period-status{color:#087c38}
.capture-period-card.is-closed .capture-period-status{color:#657181}
.capture-period-card.is-future .capture-period-status{color:#bc6300}
.capture-period-copy small{margin-top:4px;color:#6f7e94;font-size:10.5px;line-height:1.25}
.capture-period-corner{position:absolute;right:-26px;top:-31px;width:86px;height:86px;border-radius:50%;opacity:.5}
.capture-period-card.is-available .capture-period-corner{background:#c9f1d7}
.capture-period-card.is-closed .capture-period-corner{background:#dce1e7}
.capture-period-card.is-future .capture-period-corner{background:#ffe1b8}
.capture-missing-card{width:min(1380px,calc(100% - 28px));margin:20px auto 0;background:linear-gradient(135deg,#fff9f9,#fff1f2);border:1px solid #f2b8bd;border-radius:20px;padding:20px 22px;box-shadow:0 10px 26px rgba(155,31,45,.07)}
.capture-missing-head{display:flex;align-items:center;gap:13px;margin-bottom:14px}
.capture-missing-alert{width:38px;height:38px;border-radius:11px;background:#e7283d;color:#fff;display:grid;place-items:center;font-weight:950;font-size:22px;box-shadow:0 7px 16px rgba(201,34,52,.18)}
.capture-missing-head h3{margin:0;color:#a51627;font-size:20px;font-weight:950}
.capture-missing-head p{margin:3px 0 0;color:#875b64;font-size:12px}
.capture-missing-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.capture-missing-item{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid #f2c6cb;border-radius:13px;padding:11px 13px}
.capture-missing-calendar{width:38px;height:38px;border-radius:10px;background:#fee5e7;color:#d91d34;display:grid;place-items:center;flex:none}
.capture-missing-calendar svg{width:22px;height:22px;display:block}
.capture-missing-item strong{display:block;color:#8e1424;font-size:13px;font-weight:950}
.capture-missing-item span:not(.capture-missing-calendar){display:block;margin-top:3px;color:#d22438;font-size:10px;font-weight:900;letter-spacing:.04em}
.capture-missing-message{margin-top:13px;padding:12px 14px;border-radius:12px;background:#e9243b;color:#fff;font-size:13px;line-height:1.45}
.capture-missing-message strong{font-weight:950}

@media(max-width:1100px){
  .capture-period-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .capture-period-page>.page-head h1{font-size:38px}
}
@media(max-width:720px){
  .capture-period-page{padding-top:8px}
  .capture-period-page>.page-head{padding:0 10px;margin-bottom:16px;align-items:flex-start}
  .capture-period-page>.page-head h1{font-size:29px}
  .capture-period-page>.page-head p{font-size:15px;margin-top:7px}
  .capture-period-page>.page-head .home-link{width:41px;height:41px;border-radius:12px;font-size:21px}
  .capture-year-card,.capture-missing-card{width:calc(100% - 16px);border-radius:17px;padding:15px 13px}
  .capture-year-head{align-items:center;margin-bottom:14px}
  .capture-year-title{gap:9px}
  .capture-year-title h2{font-size:20px}
  .capture-year-icon{width:42px;height:42px;border-radius:11px}
  .capture-year-icon svg{width:25px;height:25px}
  .capture-year-select select{height:43px;min-width:88px;font-size:14px;border-radius:11px;padding-left:12px}
  .capture-period-grid{grid-template-columns:1fr;gap:10px}
  .capture-period-card{min-height:94px;padding:14px 15px;border-radius:13px;gap:13px}
  .capture-period-icon{width:48px;height:48px;border-radius:12px}
  .capture-period-icon svg{width:28px;height:28px}
  .capture-period-copy strong{font-size:14px;white-space:normal}
  .capture-period-status{font-size:10.5px;margin-top:5px}
  .capture-period-copy small{font-size:10px}
  .capture-missing-list{grid-template-columns:1fr}
  .capture-missing-head{align-items:flex-start}
  .capture-missing-head h3{font-size:17px}
  .capture-missing-message{font-size:12px}
}
@media(max-width:420px){
  .capture-year-head{gap:8px}
  .capture-year-title h2{font-size:18px}
  .capture-year-select select{min-width:80px}
  .capture-period-card{padding:12px}
  .capture-period-icon{width:43px;height:43px}
  .capture-period-copy strong{font-size:13px}
}


/* ===== Captura de informe · diseño de referencia ===== */
.capture-report-ref{display:grid;gap:18px}
.capture-action-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.capture-action{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 14px;border-radius:16px;border:1px solid #d8e2ee;background:#fff;color:var(--navy);font-weight:900;font-size:13px;box-shadow:0 10px 22px rgba(13,49,97,.05);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.capture-action:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(13,49,97,.09);text-decoration:none}
.capture-action:disabled,.capture-action[aria-disabled="true"]{opacity:.56;cursor:not-allowed;transform:none;box-shadow:none}
.capture-action-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none;color:#fff}
.capture-action-icon svg{width:20px;height:20px;display:block}
.capture-action.tone-green .capture-action-icon{background:linear-gradient(145deg,#12a74f,#0d8740)}
.capture-action.tone-red .capture-action-icon{background:linear-gradient(145deg,#fa334a,#dc1028)}
.capture-action.tone-blue .capture-action-icon{background:linear-gradient(145deg,#1d69ff,#0f49d5)}
.capture-action.tone-purple .capture-action-icon{background:linear-gradient(145deg,#a52dff,#7f19dc)}
.capture-action.tone-orange .capture-action-icon{background:linear-gradient(145deg,#ffad34,#ef7f11)}
.capture-panel{background:#fff;border:1px solid #d9e4ef;border-radius:20px;box-shadow:0 16px 34px rgba(10,44,94,.06);padding:18px 20px}
.capture-panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.capture-panel-title{display:flex;align-items:center;gap:12px;min-width:0}
.capture-panel-title h2{margin:0;color:#0a3180;font-size:20px;line-height:1.1;letter-spacing:-.02em}
.capture-panel-badge{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#edf4ff,#d7e7ff);color:#205ecf;display:grid;place-items:center;flex:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.95)}
.capture-panel-badge svg{width:22px;height:22px;display:block}
.capture-head-btn{border:1px solid #c8daf0;background:#f5faff;color:#1754b1;border-radius:12px;padding:10px 16px;font-weight:850;box-shadow:0 6px 18px rgba(16,73,150,.05)}
.capture-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.capture-metric{display:flex;align-items:center;gap:14px;border-radius:16px;padding:12px 14px;border:1px solid rgba(10,43,92,.06);min-height:92px}
.capture-metric-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;flex:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.capture-metric-icon svg{width:24px;height:24px;display:block}
.capture-metric-copy{min-width:0}
.capture-metric-copy small{display:block;color:#4d5d74;font-size:11px;font-weight:900;line-height:1.18;text-transform:uppercase}
.capture-metric-copy strong{display:block;color:#0b2272;font-size:20px;line-height:1.05;letter-spacing:-.02em;margin-top:6px}
.capture-metric.tone-sky{background:#edf5ff}.capture-metric.tone-sky .capture-metric-icon{background:#dff0ff;color:#1567d8}
.capture-metric.tone-lilac{background:#f5ecff}.capture-metric.tone-lilac .capture-metric-icon{background:#ebdbff;color:#8e31f7}
.capture-metric.tone-mint{background:#edf9f2}.capture-metric.tone-mint .capture-metric-icon{background:#d7f2e1;color:#1faa5b}
.capture-metric.tone-pink{background:#fff0f4}.capture-metric.tone-pink .capture-metric-icon{background:#ffdbe5;color:#eb2550}
.capture-metric.tone-cyan{background:#ebfbff}.capture-metric.tone-cyan .capture-metric-icon{background:#d3f3fa;color:#168bb7}
.capture-metric.tone-sand{background:#fbf3df}.capture-metric.tone-sand .capture-metric-icon{background:#f7e8b9;color:#b58316}
.capture-metric.tone-green-soft{background:#edf9ef}.capture-metric.tone-green-soft .capture-metric-icon{background:#d8f0da;color:#198c3f}
.capture-search{position:relative;display:block;max-width:320px;width:100%}
.capture-search .input{padding-left:44px;border-radius:13px;background:#fbfdff}
.capture-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#6a7ea0;display:grid;place-items:center;pointer-events:none}
.capture-search-icon svg{width:18px;height:18px;display:block}
.capture-table-shell{border-radius:14px;border-color:#d5e0ec;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.capture-table{min-width:900px}
.capture-table th{background:#edf4fb;color:#183e7b;font-weight:850}
.capture-row-actions .btn{min-width:96px}
.capture-helper{margin:-2px 0 12px;color:#6a7689;font-size:13px}
.capture-main-btn{margin-top:12px;border:0;border-radius:12px;padding:12px 18px;background:linear-gradient(90deg,#0a3886,#0e53cb);color:#fff;font-weight:900;display:inline-flex;align-items:center;gap:10px;box-shadow:0 12px 22px rgba(11,67,157,.18)}
.capture-main-btn:hover{text-decoration:none;transform:translateY(-1px)}
.capture-main-btn.upload{background:linear-gradient(90deg,#0a3886,#0e53cb)}
.capture-main-btn-icon{width:18px;height:18px;display:grid;place-items:center}
.capture-main-btn-icon svg{width:18px;height:18px;display:block}
.capture-status-pill{display:inline-flex;align-items:center;padding:8px 14px;border-radius:999px;font-size:12px;font-weight:900;letter-spacing:.02em}
.capture-status-pill.is-ok{background:#dbf4e4;color:#17673c}
.capture-status-pill.is-pending{background:#fff1cf;color:#8b5a00}
.capture-upload-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:start}
.capture-upload-copy p{margin-top:0}
.capture-step-list{margin:10px 0 14px;padding:0;list-style:none;display:grid;gap:8px}
.capture-step-list li{position:relative;padding-left:34px;color:#22334f}
.capture-step-list li::before{content:counter(item);counter-increment:item;position:absolute;left:0;top:-1px;width:22px;height:22px;border-radius:50%;background:#1d67dd;color:#fff;font-size:12px;font-weight:900;display:grid;place-items:center}
.capture-step-list{counter-reset:item}
.capture-upload-formbox .field label{text-transform:uppercase;font-size:12px;font-weight:850}
.capture-warning-note{margin-top:16px;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #edc769;background:#fff5dc;border-radius:12px;color:#815400;font-weight:700}
.capture-warning-icon{font-size:18px;line-height:1}

@media(max-width:1180px){
  .capture-action-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .capture-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
  .capture-action-row{grid-template-columns:1fr 1fr}
  .capture-action{min-height:54px;padding:10px 12px;font-size:12px}
  .capture-panel{padding:15px}
  .capture-panel-title h2{font-size:18px}
  .capture-summary-grid{grid-template-columns:1fr}
  .capture-upload-grid{grid-template-columns:1fr;gap:16px}
  .capture-head-btn{width:100%}
}
@media(max-width:520px){
  .capture-action-row{grid-template-columns:1fr}
  .capture-search{max-width:100%}
  .capture-panel-head{align-items:flex-start}
  .capture-warning-note{align-items:flex-start}
  .capture-row-actions{flex-direction:column}
  .capture-row-actions .btn{width:100%}
}


/* ===== Fondo texturizado para Captura de Informe ===== */
.capture-report-ref{position:relative;isolation:isolate}
.capture-report-ref::before{
  content:"";
  position:fixed;
  top:74px;
  left:0;
  right:0;
  bottom:0;
  z-index:-2;
  pointer-events:none;
  background:
    /* acentos laterales superiores */
    linear-gradient(135deg,#4c96ff 0 62px, transparent 62px) left -22px top -2px/245px 245px no-repeat,
    linear-gradient(135deg,rgba(38,105,214,.17) 0 106px, transparent 106px) left 66px top 66px/360px 360px no-repeat,
    linear-gradient(135deg,rgba(38,105,214,.11) 0 120px, transparent 120px) left -34px bottom 130px/380px 380px no-repeat,
    linear-gradient(315deg,#ff4c6b 0 54px, transparent 54px) right -10px top 0/210px 210px no-repeat,
    linear-gradient(315deg,#ff3356 0 84px, transparent 84px) right -24px bottom 76px/320px 320px no-repeat,
    linear-gradient(315deg,rgba(24,86,195,.92) 0 22px, transparent 22px) right 56px bottom 40px/118px 118px no-repeat,
    /* geometría tenue del fondo */
    linear-gradient(135deg,rgba(69,121,205,.06) 0 160px, transparent 160px) 6% 8%/470px 470px no-repeat,
    linear-gradient(135deg,rgba(69,121,205,.05) 0 145px, transparent 145px) 40% 2%/420px 420px no-repeat,
    linear-gradient(315deg,rgba(245,74,104,.045) 0 118px, transparent 118px) 92% 32%/340px 340px no-repeat,
    linear-gradient(180deg,#f3f8fe 0%,#eef4fc 50%,#eef5fc 100%);
}
.capture-report-ref::after{
  content:"";
  position:fixed;
  top:74px;
  left:0;
  right:0;
  bottom:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(135deg,transparent calc(100% - 3px), rgba(255,255,255,.70) calc(100% - 3px)) 3% 10%/170px 170px no-repeat,
    linear-gradient(135deg,transparent calc(100% - 3px), rgba(255,255,255,.45) calc(100% - 3px)) 36% 3%/240px 240px no-repeat,
    linear-gradient(135deg,transparent calc(100% - 3px), rgba(255,255,255,.48) calc(100% - 3px)) 84% 58%/180px 180px no-repeat,
    linear-gradient(315deg,transparent calc(100% - 3px), rgba(255,255,255,.38) calc(100% - 3px)) 60% 72%/190px 190px no-repeat,
    linear-gradient(315deg,transparent calc(100% - 3px), rgba(255,255,255,.50) calc(100% - 3px)) 16% 88%/220px 220px no-repeat;
  opacity:1;
}
@media(max-width:780px){
  .capture-report-ref::before,
  .capture-report-ref::after{top:66px}
  .capture-report-ref::before{
    background:
      linear-gradient(135deg,#4c96ff 0 44px, transparent 44px) left -18px top 0/180px 180px no-repeat,
      linear-gradient(135deg,rgba(38,105,214,.12) 0 68px, transparent 68px) left 26px top 88px/220px 220px no-repeat,
      linear-gradient(315deg,#ff4b69 0 38px, transparent 38px) right -10px top 0/145px 145px no-repeat,
      linear-gradient(315deg,#ff3356 0 56px, transparent 56px) right -16px bottom 74px/220px 220px no-repeat,
      linear-gradient(315deg,rgba(24,86,195,.9) 0 16px, transparent 16px) right 34px bottom 36px/86px 86px no-repeat,
      linear-gradient(180deg,#f3f8fe 0%,#eef4fc 50%,#eef5fc 100%);
  }
  .capture-report-ref::after{
    background:
      linear-gradient(135deg,transparent calc(100% - 3px), rgba(255,255,255,.66) calc(100% - 3px)) 6% 12%/120px 120px no-repeat,
      linear-gradient(315deg,transparent calc(100% - 3px), rgba(255,255,255,.44) calc(100% - 3px)) 68% 76%/130px 130px no-repeat;
  }
}

/* ===== Ajustes Captura: periodo, barra fija y resumen dinámico ===== */
:root{--sicah-topbar-h:86px}
.capture-report-ref>.page-head{align-items:center;margin-bottom:14px;padding:6px 4px 2px}
.capture-report-ref>.page-head h1{font-size:clamp(38px,3.55vw,56px);font-weight:950;line-height:.98;letter-spacing:-.05em;color:#082d79}
.capture-report-ref>.page-head p{font-size:15px;font-weight:600;color:#617493;margin-top:10px}

.capture-report-ref .capture-action-row{
  position:sticky;
  top:var(--sicah-topbar-h,86px);
  z-index:44;
  margin:-2px -6px 2px;
  padding:10px 6px 12px;
  background:linear-gradient(180deg,rgba(243,248,254,.98) 0%,rgba(243,248,254,.94) 74%,rgba(243,248,254,0) 100%);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.capture-report-ref .capture-action-row::after{content:"";position:absolute;left:7px;right:7px;bottom:7px;height:1px;background:linear-gradient(90deg,transparent,#d6e2f0 8%,#d6e2f0 92%,transparent);pointer-events:none}

.capture-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(92px,auto));align-items:stretch}
.capture-metric.pos-prev{grid-column:1;grid-row:1}
.capture-metric.pos-next{grid-column:1;grid-row:2}
.capture-metric.pos-income{grid-column:2;grid-row:1}
.capture-metric.pos-resistance{grid-column:2;grid-row:2}
.capture-metric.pos-total{grid-column:3;grid-row:1}
.capture-metric.pos-expenses{grid-column:3;grid-row:2}
.capture-metric.pos-available{grid-column:4;grid-row:1 / span 2;min-height:196px;align-items:center}
.capture-metric.pos-available .capture-metric-icon{width:56px;height:56px}
.capture-metric.pos-available .capture-metric-copy strong{font-size:28px}

/* Sin movimiento de dinero: estado neutro gris. El color se activa al existir valor. */
.capture-metric.is-empty{background:linear-gradient(145deg,#f1f3f6,#e7ebf0)!important;border-color:#d9dfe7!important}
.capture-metric.is-empty .capture-metric-icon{background:#dde3ea!important;color:#7d8998!important}
.capture-metric.is-empty .capture-metric-copy small{color:#707b8a!important}
.capture-metric.is-empty .capture-metric-copy strong{color:#596474!important}

@media(max-width:1180px){
  .capture-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  .capture-metric.pos-prev,.capture-metric.pos-next,.capture-metric.pos-income,.capture-metric.pos-resistance,.capture-metric.pos-total,.capture-metric.pos-expenses,.capture-metric.pos-available{grid-column:auto;grid-row:auto;min-height:92px}
  .capture-metric.pos-available{grid-column:1/-1}
}
@media(max-width:780px){
  .capture-report-ref>.page-head h1{font-size:34px}
  .capture-report-ref>.page-head p{font-size:13px}
  .capture-report-ref .capture-action-row{top:var(--sicah-topbar-h,124px);margin-left:-2px;margin-right:-2px;padding:8px 2px 10px}
  .capture-summary-grid{grid-template-columns:1fr}
  .capture-metric.pos-available{grid-column:auto}
}
@media(max-width:520px){
  .capture-report-ref>.page-head h1{font-size:30px}
  .capture-report-ref .capture-action-row{max-height:238px;overflow-y:auto;overscroll-behavior:contain}
}

/* ===== Captura: segunda barra fija bajo las pestañas, sin flotar sobre el contenido ===== */
.capture-action-dock{
  position:sticky;
  top:var(--sicah-topbar-h,86px);
  z-index:79;
  width:100%;
  margin:0 0 12px;
  padding:9px 0 10px;
  background:#f3f8fe;
  border-bottom:1px solid #d9e5f2;
  box-shadow:0 8px 18px rgba(7,46,105,.07);
}
.capture-report-ref .capture-action-row{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  width:100%!important;
  z-index:auto!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.capture-report-ref .capture-action-row::after{display:none!important}
.capture-report-ref #comprobantes,
.capture-report-ref #subir{
  scroll-margin-top:calc(var(--sicah-topbar-h,86px) + 84px);
}

@media(max-width:780px){
  .capture-action-dock{
    top:var(--sicah-topbar-h,124px);
    padding:7px 0 9px;
    margin-bottom:10px;
  }
  .capture-report-ref .capture-action-row{
    display:flex!important;
    align-items:center;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
  }
  .capture-report-ref .capture-action-row::-webkit-scrollbar{display:none}
  .capture-report-ref .capture-action-row .capture-action{
    flex:0 0 168px;
    min-height:48px;
    padding:8px 10px;
    font-size:11px;
  }
  .capture-report-ref .capture-action-row .capture-action-icon{
    width:31px;height:31px;border-radius:10px
  }
  .capture-report-ref .capture-action-row .capture-action-icon svg{width:18px;height:18px}
  .capture-report-ref #comprobantes,
  .capture-report-ref #subir{
    scroll-margin-top:calc(var(--sicah-topbar-h,124px) + 70px);
  }
}


/* ===== Captura: barra de acciones fija real bajo navegación ===== */
.capture-action-dock{
  position:relative!important;
  top:auto!important;
  z-index:1!important;
  width:100%!important;
  margin:0 0 12px!important;
  padding:9px 0 10px!important;
  background:#f3f8fe!important;
  border-bottom:1px solid #d9e5f2!important;
  box-shadow:none!important;
}
.capture-action-dock.is-fixed{
  position:fixed!important;
  top:var(--sicah-topbar-h,86px)!important;
  left:var(--capture-dock-left,0px)!important;
  width:var(--capture-dock-width,100%)!important;
  z-index:82!important;
  margin:0!important;
  padding:8px 0 9px!important;
  background:rgba(243,248,254,.985)!important;
  border:1px solid #d7e3f0!important;
  border-top:0!important;
  border-radius:0 0 16px 16px!important;
  box-shadow:0 10px 24px rgba(7,46,105,.12)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.capture-action-spacer{display:none;height:0}
.capture-action-spacer.is-active{display:block;height:var(--capture-dock-h,68px)}
.capture-action-dock.is-fixed .capture-action-row{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.capture-action-dock.is-fixed + .capture-action-spacer{display:block;height:var(--capture-dock-h,68px)}

@media(max-width:780px){
  .capture-action-dock.is-fixed{
    top:var(--sicah-topbar-h,124px)!important;
    border-radius:0 0 12px 12px!important;
    padding:6px 0 7px!important;
  }
}

/* ===== Captura de Informe · acciones laterales fijas ===== */
/* En escritorio las acciones viven en el margen izquierdo y permanecen visibles.
   En tablet/móvil se transforman en una barra inferior desplazable para no reducir
   el área útil de captura ni tapar formularios/tablas. */
.capture-report-ref .capture-action-dock,
.capture-report-ref .capture-action-dock.is-fixed{
  position:fixed!important;
  top:calc(var(--sicah-topbar-h,86px) + 22px)!important;
  left:16px!important;
  right:auto!important;
  bottom:auto!important;
  width:178px!important;
  max-height:calc(100vh - var(--sicah-topbar-h,86px) - 44px)!important;
  margin:0!important;
  padding:10px!important;
  z-index:46!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  border:1px solid rgba(190,208,230,.92)!important;
  border-radius:18px!important;
  background:rgba(247,250,254,.94)!important;
  box-shadow:0 14px 30px rgba(7,46,105,.10)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  scrollbar-width:thin;
}
.capture-report-ref .capture-action-row,
.capture-report-ref .capture-action-dock.is-fixed .capture-action-row{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:9px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.capture-report-ref .capture-action-row .capture-action{
  width:100%!important;
  min-height:58px!important;
  padding:9px 10px!important;
  gap:10px!important;
  justify-content:flex-start!important;
  border-radius:13px!important;
  font-size:11.5px!important;
  line-height:1.15!important;
  text-align:left!important;
  white-space:normal!important;
}
.capture-report-ref .capture-action-row .capture-action-icon{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:10px!important;
}
.capture-report-ref .capture-action-row .capture-action-icon svg{width:19px!important;height:19px!important}
.capture-report-ref .capture-action-spacer{display:none!important;height:0!important}

/* Si el monitor no deja suficiente margen exterior, reservamos sólo el espacio necesario
   dentro del contenido. En monitores amplios el contenido conserva su ancho original. */
@media (min-width:1280px) and (max-width:1840px){
  .capture-report-ref{margin-left:max(0px,calc(921px - 50vw));}
}

/* Tablet y teléfono: la columna lateral se convierte en barra inferior fija.
   Así todos los botones siguen disponibles sin estrechar el formulario. */
@media(max-width:1279px){
  .capture-report-ref{margin-left:0!important;padding-bottom:86px!important}
  .capture-report-ref .capture-action-dock,
  .capture-report-ref .capture-action-dock.is-fixed{
    top:auto!important;
    left:10px!important;
    right:10px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-height:none!important;
    padding:7px!important;
    overflow:hidden!important;
    border-radius:16px!important;
    background:rgba(255,255,255,.97)!important;
    border:1px solid #d4e1ef!important;
    box-shadow:0 12px 32px rgba(7,46,105,.18)!important;
    z-index:86!important;
  }
  .capture-report-ref .capture-action-row,
  .capture-report-ref .capture-action-dock.is-fixed .capture-action-row{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:7px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .capture-report-ref .capture-action-row::-webkit-scrollbar{display:none}
  .capture-report-ref .capture-action-row .capture-action{
    flex:0 0 166px!important;
    width:166px!important;
    min-height:50px!important;
    padding:8px 9px!important;
    font-size:10.5px!important;
    white-space:nowrap!important;
    scroll-snap-align:start;
  }
  .capture-report-ref .capture-action-row .capture-action-icon{
    width:31px!important;height:31px!important;min-width:31px!important
  }
  .capture-report-ref #comprobantes,
  .capture-report-ref #subir{scroll-margin-top:calc(var(--sicah-topbar-h,86px) + 14px)}
}

@media(max-width:520px){
  .capture-report-ref{padding-bottom:80px!important}
  .capture-report-ref .capture-action-dock,
  .capture-report-ref .capture-action-dock.is-fixed{left:7px!important;right:7px!important;bottom:max(7px,env(safe-area-inset-bottom))!important;padding:6px!important}
  .capture-report-ref .capture-action-row .capture-action{flex-basis:145px!important;width:145px!important;min-height:46px!important;font-size:10px!important}
  .capture-report-ref .capture-action-row .capture-action-icon{width:29px!important;height:29px!important;min-width:29px!important}
}


/* ===== Distribución vertical amplia de acciones laterales ===== */
/* Escritorio: las cinco acciones ocupan y se reparten en toda la franja lateral. */
@media (min-width:1280px){
  .capture-report-ref .capture-action-dock,
  .capture-report-ref .capture-action-dock.is-fixed{
    height:calc(100vh - var(--sicah-topbar-h,86px) - 44px)!important;
    max-height:none!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:stretch!important;
    overflow:hidden!important;
    padding:12px 10px!important;
  }

  .capture-report-ref .capture-action-row,
  .capture-report-ref .capture-action-dock.is-fixed .capture-action-row{
    flex:1 1 auto!important;
    min-height:0!important;
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:space-evenly!important;
    align-items:stretch!important;
    gap:0!important;
    overflow:hidden!important;
  }

  .capture-report-ref .capture-action-row .capture-action{
    flex:0 0 auto!important;
    min-height:60px!important;
    margin:0!important;
  }
}

/* En tablet y móvil vuelve a ser barra inferior compacta. */
@media (max-width:1279px){
  .capture-report-ref .capture-action-dock,
  .capture-report-ref .capture-action-dock.is-fixed{
    height:auto!important;
  }
  .capture-report-ref .capture-action-row,
  .capture-report-ref .capture-action-dock.is-fixed .capture-action-row{
    height:auto!important;
    min-height:0!important;
    justify-content:flex-start!important;
  }
}

/* ===== Captura: color de movimientos y edición de saldo dentro de la tarjeta ===== */
.capture-table tbody tr.capture-entry-income > td{
  background:rgba(18,167,79,.13)!important;
}
.capture-table tbody tr.capture-entry-income:hover > td{
  background:rgba(18,167,79,.19)!important;
}
.capture-table tbody tr.capture-entry-expense > td{
  background:rgba(238,37,80,.10)!important;
}
.capture-table tbody tr.capture-entry-expense:hover > td{
  background:rgba(238,37,80,.16)!important;
}
.capture-table tbody tr.capture-entry-income > td:first-child{
  box-shadow:inset 4px 0 0 #12a74f;
}
.capture-table tbody tr.capture-entry-expense > td:first-child{
  box-shadow:inset 4px 0 0 #eb2550;
}
.capture-metric.pos-prev .capture-metric-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.capture-metric-edit{
  margin-top:8px;
  padding:6px 9px;
  border:1px solid #bcd2ed;
  border-radius:9px;
  background:rgba(255,255,255,.74);
  color:#1557b7;
  font-size:10px;
  line-height:1.1;
  font-weight:900;
  white-space:nowrap;
  box-shadow:0 3px 10px rgba(16,73,150,.05);
}
.capture-metric-edit:hover{
  background:#fff;
  border-color:#8cb2e1;
}
.capture-metric.is-empty .capture-metric-edit{
  color:#1557b7!important;
  background:rgba(255,255,255,.88)!important;
  border-color:#bcd2ed!important;
}
@media(max-width:520px){
  .capture-metric-edit{white-space:normal;text-align:left}
}

/* ===== Ajustes de Captura: saldo anterior + regreso a periodos ===== */
.capture-metric.pos-prev,.capture-metric.pos-resistance{position:relative;padding-bottom:46px!important}
.capture-metric.pos-prev .capture-metric-copy{min-width:0;padding-right:0}
.capture-metric.pos-prev .capture-metric-copy strong{padding-right:0}
.capture-metric-edit{
  position:absolute!important;
  right:10px!important;
  bottom:9px!important;
  margin:0!important;
  padding:6px 9px!important;
  max-width:calc(100% - 20px);
  border-radius:8px!important;
  font-size:9.5px!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  z-index:2;
}
.capture-page-head{align-items:center!important}
.capture-page-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.capture-back-periods{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border:1px solid #c9d9ed;
  border-radius:12px;
  background:#fff;
  color:#1457b5;
  font-size:12px;
  font-weight:900;
  box-shadow:0 8px 20px rgba(21,82,166,.06);
  white-space:nowrap;
}
.capture-back-periods:hover{background:#eff6ff;border-color:#9cbce3;color:#0b4a9d}
.capture-page-head p span{font-weight:800;color:#375984}
@media(max-width:780px){
  .capture-page-head{align-items:flex-start!important;gap:12px!important}
  .capture-page-head-actions{width:100%;justify-content:flex-start}
  .capture-back-periods{flex:1 1 auto;min-width:0}
  .capture-page-head .home-link{flex:0 0 auto}
}
@media(max-width:520px){
  .capture-metric.pos-prev,.capture-metric.pos-resistance{padding-bottom:44px!important}
  .capture-metric-edit{font-size:9px!important;right:8px!important;bottom:8px!important}
}

/* El botón del Fondo de resistencia utiliza la misma posición y dimensiones
   que el botón del saldo anterior. Se permite ajustar el texto en móviles. */
.capture-metric.pos-resistance .capture-metric-edit{
  white-space:normal!important;
  text-align:center!important;
}

/* ===== Egreso: Persona / Recurso ===== */
.expense-subject-block{margin-top:2px}
.expense-subject-options{display:flex;gap:12px;flex-wrap:wrap}
.expense-subject-choice{display:flex;align-items:center;gap:9px;min-width:150px;padding:11px 14px;border:1px solid #cfd9e6;border-radius:12px;background:#f8fbff;color:#17366f;font-weight:850;text-transform:none;cursor:pointer;transition:.16s ease}
.expense-subject-choice:hover{border-color:#93b6e8;background:#f1f7ff}
.expense-subject-choice input{width:18px;height:18px;accent-color:#0e62d8;flex:none}
.expense-subject-choice:has(input:checked){border-color:#6ea0e7;background:#eaf3ff;box-shadow:0 0 0 3px rgba(29,103,221,.08)}
.expense-cgo-option{color:#b7182a!important;background:#ffe8ec!important;font-weight:900!important}
.receipt-person-name{min-height:18px;text-align:center;font-size:10.5px;font-weight:900;text-transform:uppercase;margin-bottom:3px;color:#111}
@media(max-width:560px){
  .expense-subject-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .expense-subject-choice{min-width:0;padding:10px 11px}
}


/* ===== Ajuste lateral: ocupar toda la franja izquierda sin hueco superior ===== */
@media (min-width:1280px){
  .capture-report-ref .capture-action-dock,
  .capture-report-ref .capture-action-dock.is-fixed{
    top:calc(var(--sicah-topbar-h,86px) + 4px)!important;
    bottom:12px!important;
    height:auto!important;
    max-height:none!important;
    padding:10px!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }

  .capture-report-ref .capture-action-row,
  .capture-report-ref .capture-action-dock.is-fixed .capture-action-row{
    flex:1 1 auto!important;
    height:100%!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:space-between!important;
    align-items:stretch!important;
    gap:12px!important;
    overflow:hidden!important;
  }

  .capture-report-ref .capture-action-row .capture-action{
    flex:0 0 auto!important;
    min-height:64px!important;
    margin:0!important;
  }
}

/* ===== Tabla de ingresos y egresos: registros más grandes y legibles ===== */
.capture-table-shell{overflow-x:auto!important}
.capture-table{min-width:1040px!important;font-size:14px!important;line-height:1.35!important}
.capture-table th{
  padding:13px 14px!important;
  font-size:13px!important;
  font-weight:900!important;
  vertical-align:middle!important;
}
.capture-table td{
  padding:14px!important;
  font-size:14px!important;
  vertical-align:middle!important;
}
.capture-table tbody tr{min-height:56px!important}
.capture-table tbody tr > td{height:56px!important}
.capture-table td:nth-child(1){white-space:nowrap;min-width:112px}
.capture-table td:nth-child(2){min-width:210px}
.capture-table td:nth-child(3){min-width:280px;white-space:normal;word-break:break-word}
.capture-table td:nth-child(4),
.capture-table td:nth-child(5){min-width:110px;font-weight:800}
.capture-table td:nth-child(6){min-width:100px}
.capture-table td:nth-child(7){min-width:210px}
.capture-row-actions{gap:10px!important;flex-wrap:nowrap!important}
.capture-row-actions .btn{min-width:96px!important;padding:9px 12px!important;font-size:12px!important}

@media(max-width:1279px){
  .capture-table{min-width:900px!important;font-size:13px!important}
  .capture-table th{padding:11px 12px!important;font-size:12px!important}
  .capture-table td{padding:12px!important;font-size:13px!important;height:auto!important}
}

@media(max-width:600px){
  .capture-table{min-width:820px!important}
  .capture-table th{font-size:11px!important}
  .capture-table td{font-size:12px!important;padding:10px!important}
}


/* ===== Menú lateral: ocupar y distribuir TODO el espacio vertical ===== */
@media (min-width:1280px){
  .capture-report-ref .capture-action-dock,
  .capture-report-ref .capture-action-dock.is-fixed{
    top:calc(var(--sicah-topbar-h,86px) + 4px)!important;
    bottom:12px!important;
    height:auto!important;
    max-height:none!important;
    padding:10px!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
  }

  .capture-report-ref .capture-action-row,
  .capture-report-ref .capture-action-dock.is-fixed .capture-action-row{
    flex:1 1 auto!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:repeat(5,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    overflow:hidden!important;
  }

  .capture-report-ref .capture-action-row .capture-action{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:12px 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:11px!important;
    border-radius:14px!important;
  }

  .capture-report-ref .capture-action-row .capture-action-icon{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:9px!important;
  }

  .capture-report-ref .capture-action-row .capture-action > span:last-child{
    font-size:11.5px!important;
    line-height:1.16!important;
    font-weight:900!important;
  }
}


/* === CAH-02 recibos exactos 3 por hoja === */
.receipt-sheet{background:transparent;box-shadow:none;padding:.04in .03in;min-height:auto;width:8.5in;margin:0 auto;display:flex;flex-direction:column;gap:.11in;page-break-after:always}
.receipt-sheet:last-child{page-break-after:auto}
.receipt-ticket.exact-design{position:relative;flex:1;margin:0;min-height:3.2in;border:0;padding:0;background:transparent;page-break-inside:avoid}
.receipt-card{position:relative;height:100%;border:1.5px solid #c7d4e9;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);overflow:hidden;box-shadow:0 10px 24px rgba(18,39,92,.12);padding:18px 18px 14px}
.receipt-corner{position:absolute;pointer-events:none;opacity:.98}
.receipt-corner-tl{left:0;top:0;width:188px;height:54px;background:linear-gradient(135deg,#082f73 0 22%,#314e80 22% 43%,transparent 43%),linear-gradient(90deg,#0b346c 0%,#a8b9d6 85%,transparent 100%);clip-path:polygon(0 0,100% 0,83% 100%,0 100%)}
.receipt-corner-tr{top:0;right:0;width:260px;height:86px;background:linear-gradient(90deg,#ff2d38 0%,#e51d23 100%);clip-path:polygon(12% 0,100% 0,100% 100%,36% 100%,25% 74%,0 74%)}
.receipt-corner-tr::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(125deg,transparent 0 18px,rgba(255,255,255,.08) 18px 36px)}
.receipt-corner-bl{left:0;bottom:0;width:170px;height:58px;background:linear-gradient(135deg,#e7262a 0 18%,#f0f4fb 18% 26%,#173f82 26% 100%);clip-path:polygon(0 0,22% 0,35% 30%,74% 30%,100% 100%,0 100%)}
.receipt-corner-br{right:0;bottom:0;width:250px;height:54px;background:linear-gradient(135deg,#e62c2f 0 32%,#fff 32% 39%,#e62c2f 39% 65%,#173f82 65% 100%);clip-path:polygon(0 100%,9% 58%,56% 58%,69% 34%,100% 34%,100% 100%)}
.receipt-head{position:relative;display:grid;grid-template-columns:160px 1px 1fr 165px;gap:18px;align-items:center;padding:16px 12px 18px;border-bottom:1.5px solid #d4def0}
.receipt-brand{display:flex;align-items:center;justify-content:center}.receipt-brand img{width:145px;max-height:90px;object-fit:contain}
.receipt-head-divider{width:1px;height:100%;background:#1f3f74;opacity:.7}
.receipt-title-wrap{text-align:center;color:#0b2c6b}.receipt-title-wrap h2{margin:0;font-size:37px;line-height:1;font-weight:900;letter-spacing:.2px}.receipt-subtitle{margin-top:6px;font-size:25px;line-height:1.04;letter-spacing:7px}.receipt-title-line{height:2px;background:#ef4848;width:78%;margin:14px auto 12px;border-radius:2px}.receipt-period{font-weight:900;font-size:25px;letter-spacing:1px}
.receipt-receipt-box{align-self:stretch;border-radius:0 0 0 22px;background:linear-gradient(135deg,#df1c21 0%,#ee2b31 58%,#cb1017 100%);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;padding:12px 14px 10px;margin-right:-18px;margin-top:-18px;margin-bottom:-18px;min-height:152px}
.receipt-receipt-box::after{content:'';position:absolute;right:0;bottom:0;width:28px;height:28px;border-right:2px solid rgba(255,255,255,.92);border-bottom:2px solid rgba(255,255,255,.92);transform:skew(-36deg)}
.receipt-receipt-box span{font-size:17px;font-weight:600;margin-bottom:4px}.receipt-receipt-box strong{font-size:54px;line-height:1;font-weight:900;letter-spacing:1px}
.receipt-body{display:grid;grid-template-columns:1.02fr 1px 1.08fr;gap:20px;align-items:stretch;padding:14px 2px 10px}.receipt-body-divider{background:#264c87;opacity:.75}
.receipt-left-col{display:flex;flex-direction:column;gap:10px}.receipt-info-row{display:grid;grid-template-columns:74px 1fr;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid #d7dfeb}.receipt-info-row:last-child{border-bottom:0}
.receipt-info-icon{width:74px;height:74px;border-radius:18px;background:#eef3fb;color:#0e3276;display:flex;align-items:center;justify-content:center}.receipt-info-icon svg{width:40px;height:40px;display:block}
.receipt-info-copy span{display:block;font-size:18px;color:#1a3976;line-height:1.1;margin-bottom:4px}.receipt-info-copy strong{display:block;font-size:24px;line-height:1.08;color:#09286a;font-weight:900;text-transform:uppercase}
.receipt-right-col{display:flex;flex-direction:column;gap:12px}.receipt-amount-box{display:grid;grid-template-columns:108px 1fr;gap:18px;align-items:center;background:linear-gradient(180deg,#f0f4fb 0%,#edf2fa 100%);border-radius:22px;padding:18px 20px 18px 18px}.receipt-amount-icon{width:108px;height:108px;border-radius:28px;background:linear-gradient(180deg,#3468c4 0%,#173e95 100%);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 18px rgba(28,73,160,.22)}.receipt-amount-icon svg{width:58px;height:58px;display:block}
.receipt-amount-copy span{display:block;font-size:20px;color:#17356f;line-height:1.1;margin-bottom:6px}.receipt-amount-copy strong{display:block;font-size:66px;line-height:1;color:#07286a;font-weight:900}
.receipt-legend-box{display:flex;align-items:center;border-radius:20px;overflow:hidden;border:1px solid #cbd6e8;min-height:88px}.receipt-legend-box.tone-soft-blue{background:linear-gradient(180deg,#f3f7fd 0%,#eef4fb 100%)}.receipt-legend-box.tone-soft-blue::before{content:'';width:26px;align-self:stretch;background:linear-gradient(180deg,#1f62d6 0%,#153f95 100%)}
.receipt-legend-box.tone-soft-red{background:linear-gradient(180deg,#fff0f0 0%,#ffe8e8 100%)}.receipt-legend-box.tone-soft-red::before{content:'';width:26px;align-self:stretch;background:linear-gradient(180deg,#ff625a 0%,#ff3932 100%)}
.receipt-legend-box > span{display:none}.receipt-legend-box strong{display:block}.receipt-legend-box:not(.concept){padding:0 18px 0 18px;display:block}.receipt-legend-box:not(.concept) strong,.receipt-legend-box:not(.concept) span{padding-left:22px}.receipt-legend-box:not(.concept) span{display:block;padding-top:13px;font-size:18px;color:#183770}.receipt-legend-box:not(.concept) strong{padding-bottom:13px;font-size:23px;line-height:1.12;color:#0a2a6c;font-weight:900}
.receipt-legend-box.concept{display:grid;grid-template-columns:98px 1fr}.receipt-legend-icon{display:flex;align-items:center;justify-content:center;color:#ff3b32}.receipt-legend-icon svg{width:48px;height:48px;display:block}.receipt-legend-copy{padding:12px 18px 12px 0}.receipt-legend-copy span{display:block;font-size:18px;color:#cc231c;line-height:1.1;margin-bottom:5px}.receipt-legend-copy strong{display:block;font-size:23px;line-height:1.08;color:#0a2a6c;font-weight:900;text-transform:uppercase}
.receipt-signatures{display:grid;grid-template-columns:1fr 160px 1fr;gap:24px;align-items:end;padding:10px 16px 10px}.receipt-center-logo{display:flex;align-items:center;justify-content:center}.receipt-center-logo img{width:150px;max-height:98px;object-fit:contain}
.receipt-signature{text-align:center;color:#0a255d}.receipt-signature-name{min-height:26px;font-size:13px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;margin-bottom:8px}.receipt-signature-line{height:1px;background:#1f325e;margin-bottom:8px}.receipt-signature-title{font-size:18px;line-height:1.08;font-weight:500}.receipt-signature-note{font-size:16px;line-height:1.1;margin-top:6px}.receipt-signature-note strong{font-weight:700}
@media screen and (max-width:1100px){.receipt-head{grid-template-columns:1fr;gap:12px;padding-top:40px}.receipt-head-divider{display:none}.receipt-receipt-box{margin:0;border-radius:18px;min-height:110px}.receipt-title-wrap h2{font-size:28px}.receipt-subtitle{font-size:20px;letter-spacing:4px}.receipt-period{font-size:20px}.receipt-body{grid-template-columns:1fr;gap:14px}.receipt-body-divider{display:none}.receipt-amount-copy strong{font-size:52px}.receipt-signatures{grid-template-columns:1fr;gap:12px}.receipt-center-logo img{width:118px}}
@media screen and (max-width:780px){.receipt-sheet{width:100%;padding:0}.receipt-card{padding:14px}.receipt-corner-tl,.receipt-corner-tr,.receipt-corner-bl,.receipt-corner-br{transform:scale(.8);transform-origin:top left}.receipt-brand img{width:120px}.receipt-title-wrap h2{font-size:24px}.receipt-subtitle{font-size:17px;letter-spacing:3px}.receipt-period{font-size:18px}.receipt-info-row{grid-template-columns:58px 1fr;gap:10px}.receipt-info-icon{width:58px;height:58px;border-radius:14px}.receipt-info-icon svg{width:32px;height:32px}.receipt-info-copy span{font-size:15px}.receipt-info-copy strong{font-size:19px}.receipt-amount-box{grid-template-columns:72px 1fr;padding:12px 14px}.receipt-amount-icon{width:72px;height:72px;border-radius:22px}.receipt-amount-icon svg{width:40px;height:40px}.receipt-amount-copy span{font-size:16px}.receipt-amount-copy strong{font-size:42px}.receipt-legend-box{min-height:72px}.receipt-legend-box:not(.concept) span{font-size:15px;padding-top:10px}.receipt-legend-box:not(.concept) strong{font-size:18px;padding-bottom:10px}.receipt-legend-box.concept{grid-template-columns:72px 1fr}.receipt-legend-icon svg{width:38px;height:38px}.receipt-legend-copy span{font-size:15px}.receipt-legend-copy strong{font-size:18px}.receipt-signature-title{font-size:16px}.receipt-signature-note{font-size:14px}}
@media print{.receipt-sheet{width:auto;padding:0;min-height:10.6in;gap:.08in}.receipt-ticket.exact-design{min-height:3.42in;flex:1}.receipt-card{box-shadow:none;border-radius:14px;padding:14px 14px 10px}.receipt-head{grid-template-columns:140px 1px 1fr 145px;gap:14px;padding:12px 8px 14px}.receipt-brand img{width:130px}.receipt-title-wrap h2{font-size:32px}.receipt-subtitle{font-size:21px;letter-spacing:5px}.receipt-title-line{margin:10px auto 9px}.receipt-period{font-size:21px}.receipt-receipt-box{min-height:128px}.receipt-receipt-box span{font-size:15px}.receipt-receipt-box strong{font-size:46px}.receipt-body{padding:12px 0 8px;gap:16px}.receipt-info-row{grid-template-columns:58px 1fr;gap:10px;padding:8px 0}.receipt-info-icon{width:58px;height:58px;border-radius:16px}.receipt-info-icon svg{width:32px;height:32px}.receipt-info-copy span{font-size:15px;margin-bottom:2px}.receipt-info-copy strong{font-size:20px}.receipt-amount-box{grid-template-columns:84px 1fr;padding:14px 16px 14px 14px}.receipt-amount-icon{width:84px;height:84px;border-radius:24px}.receipt-amount-icon svg{width:48px;height:48px}.receipt-amount-copy span{font-size:18px}.receipt-amount-copy strong{font-size:52px}.receipt-legend-box{min-height:72px}.receipt-legend-box:not(.concept) span{font-size:15px;padding-top:10px;padding-left:18px}.receipt-legend-box:not(.concept) strong{font-size:18px;padding-bottom:10px;padding-left:18px}.receipt-legend-box.concept{grid-template-columns:74px 1fr}.receipt-legend-icon svg{width:40px;height:40px}.receipt-legend-copy{padding:10px 14px 10px 0}.receipt-legend-copy span{font-size:15px;margin-bottom:3px}.receipt-legend-copy strong{font-size:18px}.receipt-signatures{grid-template-columns:1fr 130px 1fr;gap:18px;padding:8px 10px 8px}.receipt-center-logo img{width:118px}.receipt-signature-name{font-size:11px;min-height:20px;margin-bottom:6px}.receipt-signature-title{font-size:15px}.receipt-signature-note{font-size:13px;margin-top:4px}.receipt-corner-tl{width:150px;height:42px}.receipt-corner-tr{width:220px;height:70px}.receipt-corner-bl{width:140px;height:46px}.receipt-corner-br{width:210px;height:44px}}



/* ===== CAH-02: tamaño FIJO por comprobante, 1/2/3 siempre iguales en carta ===== */
/* El comprobante nunca crece si se genera solo uno o dos. */
.receipt-sheet{
  width:8.12in!important;
  min-height:10.55in!important;
  height:10.55in!important;
  margin:10px auto!important;
  padding:0!important;
  display:block!important;
  background:transparent!important;
  box-shadow:none!important;
}
.receipt-sheet .receipt-ticket.exact-design{
  display:block!important;
  width:100%!important;
  height:3.38in!important;
  min-height:3.38in!important;
  max-height:3.38in!important;
  margin:0 0 .115in 0!important;
  padding:0!important;
  flex:none!important;
  overflow:hidden!important;
  page-break-inside:avoid!important;
  break-inside:avoid!important;
}
.receipt-sheet .receipt-ticket.exact-design:nth-of-type(3n){margin-bottom:0!important}
.receipt-sheet .receipt-card{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  border-radius:13px!important;
  padding:8px 9px 6px!important;
  overflow:hidden!important;
  box-shadow:0 5px 16px rgba(16,43,91,.12)!important;
}
.receipt-sheet .receipt-head{
  height:78px!important;
  min-height:78px!important;
  display:grid!important;
  grid-template-columns:118px 1px minmax(0,1fr) 128px!important;
  gap:10px!important;
  padding:8px 5px 8px!important;
  align-items:center!important;
}
.receipt-sheet .receipt-brand img{width:105px!important;max-height:66px!important}
.receipt-sheet .receipt-head-divider{height:60px!important}
.receipt-sheet .receipt-title-wrap h2{font-size:22px!important;line-height:.94!important;letter-spacing:.1px!important;white-space:nowrap!important}
.receipt-sheet .receipt-subtitle{margin-top:3px!important;font-size:14px!important;line-height:1!important;letter-spacing:5px!important;white-space:nowrap!important}
.receipt-sheet .receipt-title-line{height:1.5px!important;width:79%!important;margin:6px auto 5px!important}
.receipt-sheet .receipt-period{font-size:15px!important;line-height:1!important;letter-spacing:.6px!important;white-space:nowrap!important}
.receipt-sheet .receipt-receipt-box{
  min-height:88px!important;
  height:88px!important;
  margin:-8px -9px -8px 0!important;
  border-radius:0 0 0 16px!important;
  padding:6px 8px!important;
}
.receipt-sheet .receipt-receipt-box span{font-size:10px!important;margin-bottom:2px!important}
.receipt-sheet .receipt-receipt-box strong{font-size:33px!important;line-height:.95!important}
.receipt-sheet .receipt-body{
  height:156px!important;
  display:grid!important;
  grid-template-columns:1.02fr 1px 1.08fr!important;
  gap:10px!important;
  padding:7px 2px 5px!important;
  align-items:stretch!important;
}
.receipt-sheet .receipt-left-col{gap:0!important;height:100%!important;justify-content:space-between!important}
.receipt-sheet .receipt-info-row{
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:7px!important;
  min-height:36px!important;
  height:36px!important;
  padding:3px 0!important;
}
.receipt-sheet .receipt-info-icon{width:38px!important;height:38px!important;border-radius:10px!important}
.receipt-sheet .receipt-info-icon svg{width:22px!important;height:22px!important}
.receipt-sheet .receipt-info-copy span{font-size:8.8px!important;line-height:1!important;margin-bottom:2px!important}
.receipt-sheet .receipt-info-copy strong{font-size:11.4px!important;line-height:1.03!important;white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.receipt-sheet .receipt-right-col{gap:6px!important;height:100%!important}
.receipt-sheet .receipt-amount-box{
  height:58px!important;
  min-height:58px!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  gap:8px!important;
  border-radius:13px!important;
  padding:6px 8px!important;
}
.receipt-sheet .receipt-amount-icon{width:48px!important;height:48px!important;border-radius:13px!important}
.receipt-sheet .receipt-amount-icon svg{width:28px!important;height:28px!important}
.receipt-sheet .receipt-amount-copy span{font-size:10px!important;margin-bottom:1px!important}
.receipt-sheet .receipt-amount-copy strong{font-size:30px!important;line-height:.95!important;white-space:nowrap!important}
.receipt-sheet .receipt-legend-box{min-height:0!important;border-radius:11px!important}
.receipt-sheet .receipt-legend-box.tone-soft-blue{height:40px!important}
.receipt-sheet .receipt-legend-box.tone-soft-blue::before{width:12px!important}
.receipt-sheet .receipt-legend-box:not(.concept){padding:0 7px!important}
.receipt-sheet .receipt-legend-box:not(.concept) span{font-size:8.7px!important;padding:5px 0 0 9px!important;line-height:1!important}
.receipt-sheet .receipt-legend-box:not(.concept) strong{font-size:11.5px!important;line-height:1.02!important;padding:2px 0 5px 9px!important;display:block!important;white-space:normal!important;overflow:hidden!important}
.receipt-sheet .receipt-legend-box.concept{
  height:50px!important;
  min-height:50px!important;
  grid-template-columns:46px minmax(0,1fr)!important;
}
.receipt-sheet .receipt-legend-box.tone-soft-red::before{width:12px!important}
.receipt-sheet .receipt-legend-icon svg{width:25px!important;height:25px!important}
.receipt-sheet .receipt-legend-copy{padding:5px 7px 5px 0!important;min-width:0!important}
.receipt-sheet .receipt-legend-copy span{font-size:8.7px!important;line-height:1!important;margin-bottom:2px!important}
.receipt-sheet .receipt-legend-copy strong{
  font-size:11.2px!important;
  line-height:1.02!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.receipt-sheet .receipt-signatures{
  height:69px!important;
  min-height:69px!important;
  display:grid!important;
  grid-template-columns:1fr 92px 1fr!important;
  gap:12px!important;
  padding:4px 8px 4px!important;
  align-items:end!important;
}
.receipt-sheet .receipt-center-logo img{width:78px!important;max-height:54px!important}
.receipt-sheet .receipt-signature-name{min-height:10px!important;font-size:7.5px!important;line-height:1!important;margin-bottom:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.receipt-sheet .receipt-signature-line{margin-bottom:3px!important}
.receipt-sheet .receipt-signature-title{font-size:8.8px!important;line-height:1!important;white-space:nowrap!important}
.receipt-sheet .receipt-signature-note{font-size:7.8px!important;line-height:1.05!important;margin-top:3px!important;white-space:nowrap!important}
.receipt-sheet .receipt-corner-tl{width:116px!important;height:29px!important}
.receipt-sheet .receipt-corner-tr{width:158px!important;height:53px!important}
.receipt-sheet .receipt-corner-bl{width:108px!important;height:31px!important}
.receipt-sheet .receipt-corner-br{width:152px!important;height:30px!important}

/* Vista en pantalla: conserva las mismas proporciones impresas y no cambia por cantidad. */
@media screen{
  body:has(.receipt-sheet){background:#f2f5fa!important}
  .receipt-sheet{transform-origin:top center}
}

@media print{
  @page{size:Letter portrait;margin:.17in!important}
  html,body{width:100%!important;margin:0!important;padding:0!important;background:#fff!important}
  .receipt-sheet{
    width:8.16in!important;
    height:10.62in!important;
    min-height:10.62in!important;
    margin:0 auto!important;
    padding:0!important;
    page-break-after:always!important;
    break-after:page!important;
  }
  .receipt-sheet:last-child{page-break-after:auto!important;break-after:auto!important}
  .receipt-sheet .receipt-ticket.exact-design{
    width:100%!important;
    height:3.40in!important;
    min-height:3.40in!important;
    max-height:3.40in!important;
    margin:0 0 .12in 0!important;
  }
  .receipt-sheet .receipt-ticket.exact-design:nth-of-type(3n){margin-bottom:0!important}
  .receipt-sheet .receipt-card{box-shadow:none!important}
}

/* En pantallas pequeñas solo se escala visualmente; al imprimir mantiene tamaño carta fijo. */
@media screen and (max-width:900px){
  .receipt-sheet{width:min(8.12in,calc(100vw - 18px))!important;height:auto!important;min-height:0!important;margin:8px auto 18px!important}
  .receipt-sheet .receipt-ticket.exact-design{height:auto!important;min-height:310px!important;max-height:none!important;aspect-ratio:2.42/1!important;margin-bottom:10px!important}
  .receipt-sheet .receipt-card{min-height:310px!important}
}


/* ===== CAH-02: impresión legible, simétrica y uniformemente distribuida ===== */
.receipt-print-stamp{display:none}

/* Vista previa: conserva el tamaño físico y mejora lectura */
@media screen and (min-width:901px){
  body:has(.receipt-sheet){background:#eef2f7!important}
  .receipt-sheet{
    width:8.08in!important;
    height:10.62in!important;
    min-height:10.62in!important;
    padding:.08in 0!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:space-evenly!important;
    gap:0!important;
  }
  .receipt-sheet .receipt-ticket.exact-design{
    width:100%!important;
    height:3.28in!important;
    min-height:3.28in!important;
    max-height:3.28in!important;
    margin:0!important;
  }
}

@media print{
  @page{size:Letter portrait;margin:.14in!important}
  html,body{width:100%!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body:has(.receipt-sheet) .container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .receipt-sheet{
    width:8.10in!important;
    height:10.66in!important;
    min-height:10.66in!important;
    max-height:10.66in!important;
    margin:0 auto!important;
    padding:.05in 0 .15in!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:space-evenly!important;
    align-items:stretch!important;
    gap:0!important;
    page-break-after:always!important;
    break-after:page!important;
    overflow:visible!important;
  }
  .receipt-sheet:last-child{page-break-after:auto!important;break-after:auto!important}
  .receipt-sheet .receipt-ticket.exact-design{
    width:100%!important;
    height:3.27in!important;
    min-height:3.27in!important;
    max-height:3.27in!important;
    margin:0!important;
    padding:0!important;
    flex:0 0 3.27in!important;
    page-break-inside:avoid!important;
    break-inside:avoid!important;
    overflow:hidden!important;
  }
  .receipt-sheet .receipt-card{
    width:100%!important;
    height:100%!important;
    padding:7px 10px 6px!important;
    border-radius:12px!important;
    border:1.2px solid #bdcce2!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }

  /* Encabezado más legible */
  .receipt-sheet .receipt-head{
    height:76px!important;
    min-height:76px!important;
    grid-template-columns:112px 1px minmax(0,1fr) 126px!important;
    gap:10px!important;
    padding:7px 5px 8px!important;
  }
  .receipt-sheet .receipt-brand img{width:102px!important;max-height:66px!important}
  .receipt-sheet .receipt-head-divider{height:58px!important}
  .receipt-sheet .receipt-title-wrap h2{font-size:23px!important;line-height:.98!important;letter-spacing:.15px!important;white-space:nowrap!important}
  .receipt-sheet .receipt-subtitle{font-size:14px!important;letter-spacing:4.8px!important;margin-top:3px!important;line-height:1!important;white-space:nowrap!important}
  .receipt-sheet .receipt-title-line{width:78%!important;height:1.5px!important;margin:5px auto 5px!important}
  .receipt-sheet .receipt-period{font-size:15px!important;line-height:1!important;letter-spacing:.6px!important;white-space:nowrap!important}
  .receipt-sheet .receipt-receipt-box{height:86px!important;min-height:86px!important;margin:-7px -10px -8px 0!important;padding:6px 8px!important;border-radius:0 0 0 15px!important}
  .receipt-sheet .receipt-receipt-box span{font-size:10.5px!important;margin-bottom:2px!important}
  .receipt-sheet .receipt-receipt-box strong{font-size:34px!important;line-height:.95!important}

  /* Zona de datos: fuentes mayores */
  .receipt-sheet .receipt-body{
    height:151px!important;
    grid-template-columns:1.02fr 1px 1.08fr!important;
    gap:10px!important;
    padding:6px 2px 4px!important;
  }
  .receipt-sheet .receipt-left-col{height:100%!important;gap:0!important;justify-content:space-between!important}
  .receipt-sheet .receipt-info-row{grid-template-columns:40px minmax(0,1fr)!important;gap:7px!important;height:35px!important;min-height:35px!important;padding:2px 0!important}
  .receipt-sheet .receipt-info-icon{width:36px!important;height:36px!important;border-radius:9px!important}
  .receipt-sheet .receipt-info-icon svg{width:21px!important;height:21px!important}
  .receipt-sheet .receipt-info-copy span{font-size:9.3px!important;line-height:1.05!important;margin-bottom:2px!important;color:#17366f!important}
  .receipt-sheet .receipt-info-copy strong{font-size:12.1px!important;line-height:1.05!important;font-weight:900!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}

  .receipt-sheet .receipt-right-col{height:100%!important;gap:5px!important}
  .receipt-sheet .receipt-amount-box{height:57px!important;min-height:57px!important;grid-template-columns:48px minmax(0,1fr)!important;gap:8px!important;padding:5px 8px!important;border-radius:12px!important}
  .receipt-sheet .receipt-amount-icon{width:46px!important;height:46px!important;border-radius:12px!important}
  .receipt-sheet .receipt-amount-icon svg{width:27px!important;height:27px!important}
  .receipt-sheet .receipt-amount-copy span{font-size:10.5px!important;margin-bottom:1px!important}
  .receipt-sheet .receipt-amount-copy strong{font-size:31px!important;line-height:.95!important;white-space:nowrap!important}
  .receipt-sheet .receipt-legend-box{border-radius:10px!important}
  .receipt-sheet .receipt-legend-box.tone-soft-blue{height:39px!important;min-height:39px!important}
  .receipt-sheet .receipt-legend-box.tone-soft-blue::before,.receipt-sheet .receipt-legend-box.tone-soft-red::before{width:11px!important}
  .receipt-sheet .receipt-legend-box:not(.concept){padding:0 7px!important}
  .receipt-sheet .receipt-legend-box:not(.concept) span{font-size:9.4px!important;line-height:1!important;padding:4px 0 0 8px!important}
  .receipt-sheet .receipt-legend-box:not(.concept) strong{font-size:12.2px!important;line-height:1.02!important;padding:2px 0 4px 8px!important;white-space:normal!important;overflow:hidden!important}
  .receipt-sheet .receipt-legend-box.concept{height:49px!important;min-height:49px!important;grid-template-columns:43px minmax(0,1fr)!important}
  .receipt-sheet .receipt-legend-icon svg{width:24px!important;height:24px!important}
  .receipt-sheet .receipt-legend-copy{padding:4px 7px 4px 0!important;min-width:0!important}
  .receipt-sheet .receipt-legend-copy span{font-size:9.3px!important;line-height:1!important;margin-bottom:2px!important}
  .receipt-sheet .receipt-legend-copy strong{font-size:12px!important;line-height:1.02!important;-webkit-line-clamp:2!important}

  /* Firmas: legibles, sin perder proporción */
  .receipt-sheet .receipt-signatures{height:66px!important;min-height:66px!important;grid-template-columns:1fr 88px 1fr!important;gap:11px!important;padding:3px 8px 3px!important}
  .receipt-sheet .receipt-center-logo img{width:74px!important;max-height:51px!important}
  .receipt-sheet .receipt-signature-name{min-height:10px!important;font-size:8.2px!important;line-height:1!important;margin-bottom:2px!important}
  .receipt-sheet .receipt-signature-title{font-size:9.4px!important;line-height:1!important}
  .receipt-sheet .receipt-signature-note{font-size:8.4px!important;line-height:1.05!important;margin-top:3px!important}
  .receipt-sheet .receipt-corner-tl{width:115px!important;height:28px!important}
  .receipt-sheet .receipt-corner-tr{width:155px!important;height:51px!important}
  .receipt-sheet .receipt-corner-bl{width:106px!important;height:29px!important}
  .receipt-sheet .receipt-corner-br{width:148px!important;height:29px!important}

  /* Fecha/hora de impresión: esquina inferior derecha de cada hoja */
  .receipt-print-stamp{
    display:block!important;
    position:fixed!important;
    right:.18in!important;
    bottom:.03in!important;
    z-index:9999!important;
    color:#52627a!important;
    font-size:7.5pt!important;
    font-weight:600!important;
    line-height:1!important;
    background:rgba(255,255,255,.86)!important;
    padding:2px 4px!important;
    border-radius:3px!important;
  }
}


/* ===== CAH-02 v3: título único por hoja + 3 comprobantes con diseño de referencia ===== */
.receipt-sheet-v3{
  width:8.12in!important;
  height:10.48in!important;
  min-height:10.48in!important;
  margin:10px auto!important;
  padding:.10in .08in .08in!important;
  display:grid!important;
  grid-template-rows:.50in 1fr .20in!important;
  gap:.06in!important;
  background:#fff!important;
  box-shadow:0 4px 18px rgba(0,0,0,.14)!important;
  page-break-after:always!important;
  break-after:page!important;
}
.receipt-sheet-v3:last-of-type{page-break-after:auto!important;break-after:auto!important}
.receipt-page-title{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#0a2b68;text-align:center;min-height:0!important}
.receipt-page-title h1{margin:0!important;font-size:20px!important;line-height:1!important;letter-spacing:.8px!important;font-weight:950!important;text-transform:uppercase!important;white-space:nowrap!important}
.receipt-page-rule{width:72%;height:2px;background:linear-gradient(90deg,#163b78 0 35%,#e52930 35% 65%,#163b78 65% 100%);margin-top:7px;border-radius:2px}
.receipt-page-items{display:grid!important;grid-template-rows:repeat(3,3.20in)!important;gap:.08in!important;min-height:0!important;align-content:start!important}
.receipt-page-footer{display:flex;justify-content:flex-end;align-items:flex-end;color:#435675;font-size:8px;font-weight:600;padding:0 4px 1px}

.receipt-ref-v3{display:block!important;width:100%!important;height:3.20in!important;min-height:3.20in!important;max-height:3.20in!important;margin:0!important;padding:0!important;overflow:hidden!important;page-break-inside:avoid!important;break-inside:avoid!important}
.receipt-ref-v3 .receipt-card{width:100%!important;height:100%!important;padding:7px 9px 6px!important;border-radius:13px!important;border:1px solid #cad6e8!important;box-shadow:0 3px 10px rgba(19,49,99,.10)!important;overflow:hidden!important}
.receipt-ref-v3 .receipt-head-v3{height:.52in!important;min-height:.52in!important;display:grid!important;grid-template-columns:1.00in 1px minmax(0,1fr) 1.08in!important;gap:8px!important;align-items:center!important;padding:2px 4px 5px!important;border-bottom:1px solid #d5deeb!important}
.receipt-ref-v3 .receipt-brand img{width:.82in!important;max-height:.46in!important;object-fit:contain!important}
.receipt-ref-v3 .receipt-head-divider{height:.40in!important;background:#17396e!important}
.receipt-ref-v3 .receipt-period-wrap{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important}
.receipt-ref-v3 .receipt-period{font-size:14px!important;line-height:1!important;font-weight:950!important;letter-spacing:.6px!important;color:#0b2e70!important;text-align:center!important;white-space:nowrap!important}
.receipt-ref-v3 .receipt-receipt-box{height:.61in!important;min-height:.61in!important;margin:-7px -9px -5px 0!important;border-radius:0 0 0 15px!important;padding:4px 6px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
.receipt-ref-v3 .receipt-receipt-box span{font-size:9px!important;margin:0 0 1px!important}.receipt-ref-v3 .receipt-receipt-box strong{font-size:29px!important;line-height:.92!important}

.receipt-ref-v3 .receipt-body{height:1.90in!important;display:grid!important;grid-template-columns:1.02fr 1px 1.08fr!important;gap:10px!important;padding:6px 1px 5px!important;align-items:stretch!important}
.receipt-ref-v3 .receipt-left-col{display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:0!important;min-width:0!important}
.receipt-ref-v3 .receipt-info-row{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;min-height:34px!important;height:auto!important;padding:2px 0!important;border-bottom:1px solid #d7dfeb!important}
.receipt-ref-v3 .receipt-info-row:last-child{border-bottom:0!important}
.receipt-ref-v3 .receipt-info-icon{width:34px!important;height:34px!important;border-radius:9px!important}.receipt-ref-v3 .receipt-info-icon svg{width:20px!important;height:20px!important}
.receipt-ref-v3 .receipt-info-copy span{font-size:8px!important;line-height:1.05!important;margin-bottom:2px!important;color:#234176!important}
.receipt-ref-v3 .receipt-info-copy strong{font-size:10.5px!important;line-height:1.08!important;color:#092967!important;font-weight:900!important;white-space:normal!important;overflow:visible!important;display:block!important}
.receipt-ref-v3 .receipt-body-divider{background:#244982!important;opacity:.72!important}
.receipt-ref-v3 .receipt-right-col{display:grid!important;grid-template-rows:.61in .48in .67in!important;gap:5px!important;min-width:0!important}
.receipt-ref-v3 .receipt-amount-box{height:.61in!important;min-height:0!important;display:grid!important;grid-template-columns:.56in minmax(0,1fr)!important;gap:8px!important;align-items:center!important;border-radius:12px!important;padding:5px 8px!important;background:linear-gradient(180deg,#f0f4fb,#eaf1fa)!important}
.receipt-ref-v3 .receipt-amount-icon{width:.50in!important;height:.50in!important;border-radius:14px!important}.receipt-ref-v3 .receipt-amount-icon svg{width:27px!important;height:27px!important}
.receipt-ref-v3 .receipt-amount-copy span{font-size:9px!important;line-height:1!important;margin-bottom:1px!important}.receipt-ref-v3 .receipt-amount-copy strong{font-size:28px!important;line-height:.95!important;white-space:nowrap!important}
.receipt-ref-v3 .receipt-legend-box{min-height:0!important;height:auto!important;border-radius:10px!important;overflow:hidden!important}
.receipt-ref-v3 .receipt-legend-box.tone-soft-blue{height:.48in!important}.receipt-ref-v3 .receipt-legend-box.tone-soft-blue::before{width:11px!important}
.receipt-ref-v3 .receipt-legend-box:not(.concept){padding:0 6px!important;display:block!important}
.receipt-ref-v3 .receipt-legend-box:not(.concept) span{display:block!important;font-size:8px!important;line-height:1!important;padding:4px 0 0 8px!important}.receipt-ref-v3 .receipt-legend-box:not(.concept) strong{font-size:10.3px!important;line-height:1.03!important;padding:2px 0 4px 8px!important;white-space:normal!important;overflow:visible!important}
.receipt-ref-v3 .receipt-legend-box.concept{height:.67in!important;display:grid!important;grid-template-columns:.50in minmax(0,1fr)!important}.receipt-ref-v3 .receipt-legend-box.tone-soft-red::before{width:11px!important}.receipt-ref-v3 .receipt-legend-icon svg{width:24px!important;height:24px!important}.receipt-ref-v3 .receipt-legend-copy{padding:4px 6px 4px 0!important;min-width:0!important}.receipt-ref-v3 .receipt-legend-copy span{font-size:8px!important;line-height:1!important;margin-bottom:2px!important}.receipt-ref-v3 .receipt-legend-copy strong{font-size:10.4px!important;line-height:1.05!important;white-space:normal!important;overflow:visible!important;display:block!important}

.receipt-ref-v3 .receipt-signatures{height:.64in!important;display:grid!important;grid-template-columns:1fr .86in 1fr!important;gap:12px!important;align-items:end!important;padding:2px 8px 1px!important}
.receipt-ref-v3 .receipt-center-logo img{width:.77in!important;max-height:.52in!important;object-fit:contain!important}.receipt-ref-v3 .receipt-signature-name{min-height:11px!important;font-size:7.6px!important;line-height:1!important;margin-bottom:3px!important}.receipt-ref-v3 .receipt-signature-line{margin-bottom:3px!important}.receipt-ref-v3 .receipt-signature-title{font-size:8.5px!important;line-height:1!important}.receipt-ref-v3 .receipt-signature-note{font-size:7.5px!important;line-height:1.05!important;margin-top:3px!important}

/* motivos decorativos proporcionales al diseño de referencia */
.receipt-ref-v3 .receipt-corner-tl{width:118px!important;height:31px!important}.receipt-ref-v3 .receipt-corner-tr{width:152px!important;height:45px!important}.receipt-ref-v3 .receipt-corner-bl{width:104px!important;height:31px!important}.receipt-ref-v3 .receipt-corner-br{width:150px!important;height:30px!important}

@media screen and (max-width:900px){
  .receipt-sheet-v3{width:min(100%,8.12in)!important;height:auto!important;min-height:0!important;grid-template-rows:auto auto auto!important;padding:10px!important}
  .receipt-page-title h1{white-space:normal!important;font-size:18px!important}
  .receipt-page-items{grid-template-rows:none!important;display:flex!important;flex-direction:column!important;gap:12px!important}
  .receipt-ref-v3{height:auto!important;min-height:310px!important;max-height:none!important}
  .receipt-ref-v3 .receipt-head-v3{grid-template-columns:72px 1px minmax(0,1fr) 92px!important}
  .receipt-ref-v3 .receipt-body{height:auto!important;grid-template-columns:1fr!important}.receipt-ref-v3 .receipt-body-divider{display:none!important}.receipt-ref-v3 .receipt-right-col{grid-template-rows:auto!important}.receipt-ref-v3 .receipt-signatures{height:auto!important;grid-template-columns:1fr 70px 1fr!important}
}

@media print{
  @page{size:Letter portrait;margin:.16in!important}
  html,body{background:#fff!important;width:8.5in!important;min-height:11in!important;margin:0!important;padding:0!important}
  .container{width:100%!important;margin:0!important;padding:0!important}
  .receipt-sheet-v3{width:8.18in!important;height:10.68in!important;min-height:10.68in!important;margin:0 auto!important;padding:.08in .05in .05in!important;box-shadow:none!important;grid-template-rows:.46in 1fr .17in!important;gap:.04in!important}
  .receipt-page-title h1{font-size:19px!important}.receipt-page-rule{margin-top:5px!important;height:1.5px!important}
  .receipt-page-items{grid-template-rows:repeat(3,3.28in)!important;gap:.06in!important}
  .receipt-ref-v3{height:3.28in!important;min-height:3.28in!important;max-height:3.28in!important}
  .receipt-ref-v3 .receipt-card{box-shadow:none!important}
  .receipt-page-footer{font-size:7px!important}
}


/* ===== CAH-02 V4: completo, legible, menos saturado y 3 por Carta ===== */
.receipt-sheet-v4{box-sizing:border-box!important}
.receipt-sheet-v4 .receipt-page-title{
  height:.40in!important;min-height:.40in!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:0 .12in!important;overflow:visible!important;
}
.receipt-sheet-v4 .receipt-page-title h1{
  margin:0!important;color:#082b6b!important;font-size:18px!important;line-height:1.05!important;
  font-weight:950!important;letter-spacing:.5px!important;text-align:center!important;white-space:normal!important;
}
.receipt-sheet-v4 .receipt-page-rule{display:none!important}
.receipt-sheet-v4 .receipt-page-items{
  display:grid!important;grid-template-rows:repeat(3,3.17in)!important;gap:.10in!important;
  align-content:start!important;min-height:0!important;
}
.receipt-sheet-v4 .receipt-page-footer{
  height:.16in!important;display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;
  padding:0 .05in!important;font-size:7.8px!important;color:#3c506f!important;font-weight:600!important;
}
.receipt-ref-v4{height:3.17in!important;min-height:3.17in!important;max-height:3.17in!important;margin:0!important;padding:0!important;overflow:hidden!important}
.receipt-ref-v4 .receipt-card{
  box-sizing:border-box!important;width:100%!important;height:100%!important;padding:6px 9px 5px!important;
  border:1.2px solid #c7d4e5!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;
}
.receipt-ref-v4 .receipt-head-v4{
  height:.54in!important;min-height:.54in!important;display:grid!important;
  grid-template-columns:.88in 1px minmax(0,1fr) 1.02in!important;gap:8px!important;
  align-items:center!important;padding:2px 3px 5px!important;border-bottom:1px solid #d7e0ed!important;
}
.receipt-ref-v4 .receipt-brand img{width:.75in!important;max-height:.44in!important;object-fit:contain!important}
.receipt-ref-v4 .receipt-head-divider{height:.39in!important;background:#17396e!important;opacity:.72!important}
.receipt-ref-v4 .receipt-period-wrap{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important}
.receipt-ref-v4 .receipt-period{font-size:13.5px!important;line-height:1!important;font-weight:950!important;letter-spacing:.5px!important;color:#0b2e70!important;white-space:nowrap!important}
.receipt-ref-v4 .receipt-receipt-box{height:.60in!important;min-height:.60in!important;margin:-6px -9px -5px 0!important;padding:4px 6px!important;border-radius:0 0 0 14px!important}
.receipt-ref-v4 .receipt-receipt-box span{font-size:8.7px!important;margin:0 0 2px!important}.receipt-ref-v4 .receipt-receipt-box strong{font-size:27px!important;line-height:.94!important}
.receipt-ref-v4 .receipt-body{
  height:1.91in!important;display:grid!important;grid-template-columns:1.05fr 1px 1.05fr!important;gap:10px!important;
  padding:6px 1px 4px!important;align-items:stretch!important;
}
.receipt-ref-v4 .receipt-body-divider{background:#244982!important;opacity:.62!important}
.receipt-ref-v4 .receipt-left-col{display:grid!important;grid-template-rows:repeat(4,1fr)!important;gap:0!important;min-width:0!important}
.receipt-ref-v4 .receipt-info-row{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;padding:2px 0!important;border-bottom:1px solid #dbe2ec!important;min-height:0!important;height:auto!important}
.receipt-ref-v4 .receipt-info-row:last-child{border-bottom:0!important}
.receipt-ref-v4 .receipt-info-icon{width:31px!important;height:31px!important;border-radius:9px!important}.receipt-ref-v4 .receipt-info-icon svg{width:18px!important;height:18px!important}
.receipt-ref-v4 .receipt-info-copy span{font-size:8.5px!important;line-height:1.05!important;margin:0 0 1px!important;color:#31507e!important}
.receipt-ref-v4 .receipt-info-copy strong{font-size:10.8px!important;line-height:1.08!important;color:#092967!important;font-weight:900!important;white-space:normal!important;overflow:visible!important;display:block!important}
.receipt-ref-v4 .receipt-right-col{display:grid!important;grid-template-rows:.59in .47in .72in!important;gap:5px!important;min-width:0!important}
.receipt-ref-v4 .receipt-amount-box{height:.59in!important;display:grid!important;grid-template-columns:.50in minmax(0,1fr)!important;gap:8px!important;align-items:center!important;padding:5px 8px!important;border-radius:12px!important;background:linear-gradient(180deg,#f2f5fa,#edf3fa)!important}
.receipt-ref-v4 .receipt-amount-icon{width:.46in!important;height:.46in!important;border-radius:12px!important}.receipt-ref-v4 .receipt-amount-icon svg{width:25px!important;height:25px!important}
.receipt-ref-v4 .receipt-amount-copy span{font-size:9px!important;margin-bottom:1px!important}.receipt-ref-v4 .receipt-amount-copy strong{font-size:26px!important;line-height:.95!important;white-space:nowrap!important}
.receipt-ref-v4 .receipt-legend-box.tone-soft-blue{height:.47in!important;min-height:.47in!important;border-radius:10px!important;display:block!important;padding:0 7px!important;background:#f2f6fb!important}
.receipt-ref-v4 .receipt-legend-box.tone-soft-blue::before{width:9px!important}.receipt-ref-v4 .receipt-legend-box.tone-soft-blue span{display:block!important;font-size:8.4px!important;padding:4px 0 0 7px!important;line-height:1!important}.receipt-ref-v4 .receipt-legend-box.tone-soft-blue strong{display:block!important;font-size:10.8px!important;line-height:1.04!important;padding:2px 0 4px 7px!important;white-space:normal!important;overflow:visible!important}
.receipt-ref-v4 .receipt-concept-box{height:.72in!important;display:grid!important;grid-template-columns:.48in minmax(0,1fr)!important;align-items:center!important;border:1px solid #f2c3c6!important;border-radius:11px!important;background:#fff1f1!important;overflow:hidden!important;position:relative!important}
.receipt-ref-v4 .receipt-concept-box::before{content:'';position:absolute;left:0;top:0;bottom:0;width:9px;background:linear-gradient(180deg,#ff655f,#ff4039)}
.receipt-ref-v4 .receipt-concept-icon{display:flex!important;align-items:center!important;justify-content:center!important;color:#ef332d!important}.receipt-ref-v4 .receipt-concept-icon svg{width:24px!important;height:24px!important}
.receipt-ref-v4 .receipt-concept-copy{min-width:0!important;padding:5px 7px 5px 0!important}.receipt-ref-v4 .receipt-concept-copy span{display:block!important;color:#c42e29!important;font-size:8.3px!important;line-height:1!important;margin-bottom:2px!important}.receipt-ref-v4 .receipt-concept-main{display:block!important;color:#092967!important;font-size:10.9px!important;line-height:1.04!important;font-weight:950!important;white-space:normal!important;overflow-wrap:anywhere!important}.receipt-ref-v4 .receipt-concept-detail{display:block!important;color:#435675!important;font-style:normal!important;font-size:8.6px!important;line-height:1.05!important;margin-top:2px!important;white-space:normal!important;overflow-wrap:anywhere!important}
.receipt-ref-v4 .receipt-signatures{height:.60in!important;display:grid!important;grid-template-columns:1fr .76in 1fr!important;gap:10px!important;align-items:end!important;padding:2px 7px 1px!important}
.receipt-ref-v4 .receipt-center-logo img{width:.67in!important;max-height:.48in!important;object-fit:contain!important}
.receipt-ref-v4 .receipt-signature{min-width:0!important;text-align:center!important}.receipt-ref-v4 .receipt-signature-line{height:1px!important;background:#1c3564!important;margin:0 0 3px!important}.receipt-ref-v4 .receipt-signature-title{font-size:8.4px!important;line-height:1.02!important;color:#0a255d!important;font-weight:850!important;white-space:normal!important;overflow-wrap:anywhere!important}.receipt-ref-v4 .receipt-signature-note{font-size:7.5px!important;line-height:1.05!important;margin-top:2px!important;color:#0a255d!important;white-space:normal!important}
.receipt-ref-v4 .receipt-corner-tl{width:105px!important;height:27px!important}.receipt-ref-v4 .receipt-corner-tr{width:145px!important;height:42px!important}.receipt-ref-v4 .receipt-corner-bl{width:94px!important;height:27px!important}.receipt-ref-v4 .receipt-corner-br{width:138px!important;height:27px!important}

@media screen{
  body:has(.receipt-sheet-v4){background:#eef2f7!important}
  .receipt-sheet-v4{width:8.08in!important;height:10.62in!important;min-height:10.62in!important;margin:8px auto 20px!important;padding:.03in 0!important;display:grid!important;grid-template-rows:.40in 1fr .16in!important;gap:.05in!important;background:#fff!important}
}
@media print{
  @page{size:Letter portrait;margin:.18in!important}
  html,body{margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body:has(.receipt-sheet-v4) .container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .receipt-sheet-v4{width:8.14in!important;height:10.64in!important;min-height:10.64in!important;max-height:10.64in!important;margin:0 auto!important;padding:0!important;display:grid!important;grid-template-rows:.40in 1fr .16in!important;gap:.05in!important;background:#fff!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important}
  .receipt-sheet-v4:last-child{page-break-after:auto!important;break-after:auto!important}
  .receipt-sheet-v4 .receipt-page-items{grid-template-rows:repeat(3,3.17in)!important;gap:.10in!important}
  .receipt-ref-v4{height:3.17in!important;min-height:3.17in!important;max-height:3.17in!important}
  .receipt-ref-v4 .receipt-card{box-shadow:none!important}
}
@media screen and (max-width:900px){
  .receipt-sheet-v4{width:min(8.08in,calc(100vw - 18px))!important;height:auto!important;min-height:0!important;display:block!important;padding:8px!important}
  .receipt-sheet-v4 .receipt-page-title{height:auto!important;min-height:0!important;padding:8px!important}.receipt-sheet-v4 .receipt-page-title h1{font-size:16px!important}
  .receipt-sheet-v4 .receipt-page-items{display:flex!important;flex-direction:column!important;gap:10px!important}.receipt-ref-v4{height:auto!important;min-height:310px!important;max-height:none!important}.receipt-ref-v4 .receipt-body{height:auto!important;grid-template-columns:1fr!important}.receipt-ref-v4 .receipt-body-divider{display:none!important}.receipt-ref-v4 .receipt-right-col{grid-template-rows:auto!important}.receipt-ref-v4 .receipt-signatures{height:auto!important;grid-template-columns:1fr 70px 1fr!important}.receipt-sheet-v4 .receipt-page-footer{height:auto!important;padding:8px 4px 0!important}
}


/* ===== CAH-02 V5: impresión estable, completa y legible ===== */
.cah02-page{box-sizing:border-box;background:#fff;color:#092760;width:8.12in;min-height:10.62in;margin:8px auto 20px;padding:.10in .10in .08in;display:grid;grid-template-rows:.38in 1fr .18in;gap:.06in;box-shadow:0 2px 18px rgba(0,0,0,.16)}
.cah02-page-head{display:flex;align-items:center;white-space:nowrap;font-size:18px;line-height:1;font-weight:950;color:#061f58;letter-spacing:.1px;border-bottom:1px solid #d7e0ed;padding:0 .02in}
.cah02-stack{display:grid;grid-template-rows:repeat(3,1fr);gap:.08in;min-height:0}
.cah02-ticket{position:relative;overflow:hidden;box-sizing:border-box;border:1px solid #cbd7e8;border-radius:13px;background:#fff;display:grid;grid-template-rows:.58in 1fr .58in;min-height:0;padding:.07in .10in .04in}
.cah02-accent{position:absolute;pointer-events:none;z-index:0}.cah02-accent.tl{left:0;top:0;width:1.10in;height:.24in;background:linear-gradient(135deg,#082f73 0 32%,#5679ad 32% 58%,#e8eef7 58% 75%,transparent 75%);clip-path:polygon(0 0,100% 0,77% 100%,0 100%)}.cah02-accent.tr{right:0;top:0;width:1.35in;height:.50in;background:linear-gradient(135deg,#ff323c,#d81720);clip-path:polygon(22% 0,100% 0,100% 100%,0 100%)}.cah02-accent.bl{left:0;bottom:0;width:1.10in;height:.25in;background:linear-gradient(135deg,#df1e26 0 20%,#fff 20% 30%,#123d7d 30% 100%);clip-path:polygon(0 0,35% 0,100% 100%,0 100%)}.cah02-accent.br{right:0;bottom:0;width:1.45in;height:.25in;background:linear-gradient(135deg,#e6232b 0 35%,#fff 35% 43%,#e6232b 43% 64%,#113c7e 64%);clip-path:polygon(0 100%,15% 20%,70% 20%,82% 0,100% 0,100% 100%)}
.cah02-top{position:relative;z-index:1;display:grid;grid-template-columns:.92in 1fr 1.12in;gap:.08in;align-items:center;border-bottom:1px solid #d9e2ee;padding:0 .02in .05in}.cah02-logo{height:.48in;display:flex;align-items:center;justify-content:center;border-right:1px solid #35507c}.cah02-logo img{max-width:.76in;max-height:.45in;object-fit:contain}.cah02-period{text-align:center;font-size:14px;line-height:1;font-weight:950;letter-spacing:.4px;color:#062c70;white-space:nowrap}.cah02-no{align-self:stretch;margin:-.07in -.10in -.05in 0;background:linear-gradient(135deg,#ee2e36,#d7161f);color:#fff;border-radius:0 0 0 14px;display:flex;flex-direction:column;align-items:center;justify-content:center}.cah02-no span{font-size:9px;font-weight:700}.cah02-no strong{font-size:27px;line-height:1;font-weight:950}
.cah02-main{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1.08fr;gap:.12in;min-height:0;padding:.05in .02in}.cah02-left{border-right:1px solid #23477f;padding-right:.10in;display:grid;grid-template-rows:repeat(4,1fr);min-height:0}.cah02-row{display:flex;flex-direction:column;justify-content:center;border-bottom:1px solid #dce3ed;padding:.015in .04in;min-height:0}.cah02-row:last-child{border-bottom:0}.cah02-row b{font-size:8px;line-height:1.05;font-weight:600;color:#294b7a;margin-bottom:2px}.cah02-row strong{font-size:10.6px;line-height:1.06;color:#06255f;font-weight:900;overflow-wrap:anywhere}
.cah02-right{display:grid;grid-template-rows:.56in .43in 1fr;gap:.045in;min-height:0}.cah02-amount{border-radius:11px;background:#eef3f9;display:flex;align-items:center;justify-content:space-between;padding:.04in .12in}.cah02-amount span{font-size:10px;color:#284a7b}.cah02-amount strong{font-size:27px;line-height:1;color:#06275f;font-weight:950}.cah02-words{border:1px solid #c9d7e9;border-left:10px solid #1760ce;border-radius:10px;background:#f6f9fd;padding:.035in .09in;display:flex;flex-direction:column;justify-content:center}.cah02-words span{font-size:8px;color:#27466f}.cah02-words strong{font-size:10.5px;line-height:1.05;color:#07245b;font-weight:900}.cah02-concept{border:1px solid #efc4c7;border-left:10px solid #ff4c48;border-radius:10px;background:#fff1f1;padding:.035in .09in;display:flex;flex-direction:column;justify-content:center;min-height:0;overflow:hidden}.cah02-concept span{font-size:8px;line-height:1;color:#c82e29;margin-bottom:2px}.cah02-concept strong{font-size:10.8px;line-height:1.04;color:#06255f;font-weight:950;overflow-wrap:anywhere}.cah02-concept em{font-size:8.8px;line-height:1.05;color:#425675;font-style:normal;margin-top:2px;overflow-wrap:anywhere}
.cah02-sign{position:relative;z-index:1;display:grid;grid-template-columns:1fr .78in 1fr;gap:.10in;align-items:end;padding:.02in .06in 0}.cah02-signbox{text-align:center;min-width:0}.cah02-signline{border-top:1px solid #183564;height:4px}.cah02-signbox strong{display:block;font-size:8.5px;line-height:1.05;color:#06245b;font-weight:850;white-space:normal;overflow-wrap:anywhere}.cah02-signbox span{display:block;font-size:7.2px;line-height:1.05;color:#173563;margin-top:2px}.cah02-signlogo{display:flex;align-items:end;justify-content:center}.cah02-signlogo img{max-width:.70in;max-height:.48in;object-fit:contain}
.cah02-page-foot{display:flex;justify-content:flex-end;align-items:end;font-size:7.5px;line-height:1;color:#40516a;padding-right:.02in}
@media screen and (max-width:900px){.cah02-page{width:min(8.12in,calc(100vw - 18px));min-height:0;height:auto;display:block;padding:8px}.cah02-page-head{font-size:16px;padding:8px 4px}.cah02-stack{display:flex;flex-direction:column;gap:10px}.cah02-ticket{min-height:330px;height:auto}.cah02-main{grid-template-columns:1fr}.cah02-left{border-right:0;border-bottom:1px solid #23477f;padding-right:0}.cah02-right{grid-template-rows:auto}.cah02-sign{grid-template-columns:1fr 70px 1fr}.cah02-page-foot{padding:8px 4px}}
@media print{
  @page{size:Letter portrait;margin:.18in}
  html,body{margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  body:has(.cah02-page) .container{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .cah02-page{width:8.14in!important;height:10.64in!important;min-height:10.64in!important;max-height:10.64in!important;margin:0 auto!important;padding:.08in .08in .06in!important;display:grid!important;grid-template-rows:.38in 1fr .16in!important;gap:.05in!important;box-shadow:none!important;overflow:hidden!important;page-break-after:always!important;break-after:page!important}
  .cah02-page:last-child{page-break-after:auto!important;break-after:auto!important}
  .cah02-stack{display:grid!important;grid-template-rows:repeat(3,3.18in)!important;gap:.08in!important;align-content:start!important}
  .cah02-ticket{height:3.18in!important;min-height:3.18in!important;max-height:3.18in!important;break-inside:avoid!important;page-break-inside:avoid!important}
}

/* === CAH-02 ajuste final: más separación y logo sin recuadro blanco === */
.cah02-stack{
  gap:18px!important;
}
.cah02-logo{
  background:transparent!important;
  overflow:visible!important;
}
.cah02-logo img{
  background:transparent!important;
  mix-blend-mode:multiply!important;
  box-shadow:none!important;
  border:0!important;
}

@media print{
  .cah02-page{
    grid-template-rows:.38in 1fr .16in!important;
  }
  .cah02-stack{
    grid-template-rows:repeat(3,3.14in)!important;
    gap:.20in!important;
    align-content:start!important;
  }
  .cah02-ticket{
    height:3.14in!important;
    min-height:3.14in!important;
    max-height:3.14in!important;
  }
  .cah02-logo img{
    mix-blend-mode:multiply!important;
    background:transparent!important;
  }
}

@media screen and (max-width:900px){
  .cah02-stack{gap:14px!important}
}


/* ===== Ajuste: línea divisoria visual entre comprobantes CAH-02 ===== */
.receipt-page-items{
  gap:.13in!important;
}
.receipt-page-items > .receipt-ref-v3{
  position:relative;
}
.receipt-page-items > .receipt-ref-v3 + .receipt-ref-v3::before{
  content:"";
  position:absolute;
  left:.16in;
  right:.16in;
  top:-.07in;
  border-top:2px dashed #b8c7dd;
  opacity:.95;
}
@media print{
  .receipt-page-items{
    gap:.13in!important;
  }
  .receipt-page-items > .receipt-ref-v3 + .receipt-ref-v3::before{
    border-top:1.6px dashed #b7c6dc!important;
  }
}


/* ===== CAH-02 V6: más separación real + logotipo PNG transparente ===== */
.cah02-stack{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
}
.cah02-ticket{
  flex:0 0 3.08in!important;
  height:3.08in!important;
  min-height:3.08in!important;
  max-height:3.08in!important;
}
.cah02-separator{
  flex:0 0 .20in!important;
  height:.20in!important;
  min-height:.20in!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 .18in!important;
  background:transparent!important;
}
.cah02-separator span{
  display:block!important;
  width:100%!important;
  border-top:1.5px dashed #aebed5!important;
  opacity:.95!important;
}
.cah02-logo,.cah02-signlogo{
  background:transparent!important;
}
.cah02-logo img,.cah02-signlogo img{
  background:transparent!important;
  mix-blend-mode:normal!important;
  box-shadow:none!important;
  border:0!important;
}

@media screen and (max-width:900px){
  .cah02-ticket{
    flex:auto!important;
    height:auto!important;
    min-height:330px!important;
    max-height:none!important;
  }
  .cah02-separator{
    height:24px!important;
    min-height:24px!important;
    flex-basis:24px!important;
    padding:0 18px!important;
  }
}

@media print{
  .cah02-page{
    width:8.14in!important;
    height:10.64in!important;
    min-height:10.64in!important;
    max-height:10.64in!important;
    grid-template-rows:.38in 1fr .16in!important;
    gap:.05in!important;
    overflow:hidden!important;
  }
  .cah02-stack{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    justify-content:flex-start!important;
    min-height:0!important;
  }
  .cah02-ticket{
    flex:0 0 3.08in!important;
    height:3.08in!important;
    min-height:3.08in!important;
    max-height:3.08in!important;
  }
  .cah02-separator{
    flex:0 0 .20in!important;
    height:.20in!important;
    min-height:.20in!important;
    padding:0 .20in!important;
  }
  .cah02-separator span{
    border-top:1.35px dashed #a8b8cf!important;
  }
  .cah02-logo img,.cah02-signlogo img{
    mix-blend-mode:normal!important;
    background:transparent!important;
  }
}


/* ===== Envío definitivo del informe: bloqueo y vista previa PDF ===== */
.capture-action.is-disabled{opacity:.45!important;filter:grayscale(.55);cursor:not-allowed!important;pointer-events:none!important;box-shadow:none!important}
.capture-final-lock-alert{border-left:5px solid #0d62c9!important;background:#edf5ff!important;color:#173f75!important}
.capture-locked-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;background:#e7ecf3;color:#65758a;font-size:10px;font-weight:900;white-space:nowrap}
.capture-upload-final-notice{display:flex;flex-direction:column;gap:5px;margin:0 0 16px;padding:14px 16px;border-radius:14px;border:1px solid #f1cf72;background:#fff7df;color:#765200}
.capture-upload-final-notice strong{font-size:14px;color:#8b5b00}.capture-upload-final-notice span{font-size:12.5px;line-height:1.45}
.capture-upload-final-notice.is-locked{border-color:#b7d7f7;background:#eef7ff;color:#31577f}.capture-upload-final-notice.is-locked strong{color:#0b4f98}
.capture-confirm-upload{display:flex;align-items:flex-start;gap:10px;margin:12px 0 4px;padding:12px 13px;border:1px solid #cdd9e8;border-radius:12px;background:#f7faff;text-transform:none;letter-spacing:0;color:#23354e;font-size:12px;line-height:1.4;cursor:pointer}
.capture-confirm-upload input{width:18px;height:18px;margin-top:1px;accent-color:#0d5fcc;flex:none}.capture-confirm-upload strong{display:block;color:#0a3e83;margin-bottom:2px}
.capture-pdf-preview-link{display:block;margin-top:12px;text-decoration:none!important}.capture-pdf-preview{position:relative;height:320px;border:1px solid #cbd8e8;border-radius:14px;overflow:hidden;background:#eef3f9;box-shadow:0 8px 22px rgba(15,52,101,.08)}
.capture-pdf-preview iframe{width:100%;height:100%;border:0;pointer-events:none;background:#fff}.capture-pdf-overlay{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;padding:10px 12px;background:linear-gradient(180deg,transparent,rgba(5,31,72,.86));color:#fff}
.capture-pdf-overlay strong{font-size:12px;align-self:end}.capture-pdf-overlay small{grid-column:2;font-size:10px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.capture-pdf-icon{grid-row:1/3;width:38px;height:38px;border-radius:9px;background:#e52b36;display:grid;place-items:center;font-weight:950;font-size:11px}
.capture-upload-file-actions{margin-top:12px!important}.capture-upload-file-actions .btn{min-width:120px}
@media(max-width:780px){.capture-pdf-preview{height:230px}.capture-upload-file-actions{display:grid!important;grid-template-columns:1fr!important}.capture-upload-file-actions .btn{width:100%}.capture-upload-final-notice{padding:12px}}

/* ===== Captura de Informe · estabilidad y compatibilidad móvil 2026-09-28 ===== */
@media (max-width: 1024px){
  html,body{max-width:100%;overflow-x:hidden}
  .container{width:100%!important;max-width:100%!important;margin:10px auto 28px!important;padding-left:12px!important;padding-right:12px!important}
  .capture-report-ref{width:100%!important;max-width:100%!important;margin-left:0!important;gap:12px!important;padding-bottom:92px!important;overflow:visible!important}
  .capture-report-ref>.page-head,.capture-page-head{width:100%!important;max-width:100%!important;align-items:flex-start!important;gap:10px!important;flex-wrap:wrap!important;padding-left:0!important;padding-right:0!important}
  .capture-report-ref>.page-head>div:first-child,.capture-page-head>div:first-child{min-width:0!important;max-width:100%!important}
  .capture-report-ref>.page-head h1,.capture-page-head h1{font-size:clamp(28px,7vw,40px)!important;line-height:1!important;overflow-wrap:anywhere!important;word-break:normal!important}
  .capture-report-ref>.page-head p,.capture-page-head p{font-size:13px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .capture-page-head-actions{width:100%!important;display:flex!important;gap:8px!important;justify-content:flex-start!important;flex-wrap:wrap!important}
  .capture-back-periods{min-height:40px!important;flex:1 1 180px!important;white-space:normal!important;text-align:center!important}

  .capture-panel{width:100%!important;max-width:100%!important;padding:14px!important;border-radius:16px!important;overflow:hidden!important}
  .capture-panel-head{width:100%!important;gap:10px!important;align-items:flex-start!important}
  .capture-panel-title{min-width:0!important;max-width:100%!important}
  .capture-panel-title h2{font-size:18px!important;line-height:1.15!important;overflow-wrap:anywhere!important}
  .capture-search{width:100%!important;max-width:100%!important}

  .capture-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:10px!important}
  .capture-metric{min-width:0!important;min-height:92px!important;padding:11px!important;gap:10px!important}
  .capture-metric-icon{width:42px!important;height:42px!important;min-width:42px!important;border-radius:12px!important}
  .capture-metric-copy{min-width:0!important;max-width:100%!important}
  .capture-metric-copy small{font-size:10px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .capture-metric-copy strong{font-size:19px!important;line-height:1.05!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .capture-metric.pos-prev,.capture-metric.pos-resistance{padding-bottom:44px!important}

  .capture-table-shell{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;scrollbar-width:thin!important}
  .capture-table{min-width:820px!important;width:max-content!important;max-width:none!important;font-size:12.5px!important}
  .capture-table th{position:static!important;padding:10px!important;font-size:11.5px!important;white-space:nowrap!important}
  .capture-table td{padding:10px!important;font-size:12.5px!important;height:auto!important;min-height:48px!important}
  .capture-table td:nth-child(1){min-width:105px!important}
  .capture-table td:nth-child(2){min-width:185px!important}
  .capture-table td:nth-child(3){min-width:230px!important}
  .capture-table td:nth-child(4),.capture-table td:nth-child(5){min-width:105px!important}
  .capture-table td:nth-child(6){min-width:90px!important}
  .capture-table td:nth-child(7){min-width:180px!important}
  .capture-row-actions{display:flex!important;gap:7px!important;flex-wrap:nowrap!important}
  .capture-row-actions .btn{min-width:82px!important;padding:8px 10px!important;font-size:11px!important}
  .table-top-scroll{display:none!important}

  .capture-upload-grid{grid-template-columns:1fr!important;gap:14px!important}
  .capture-upload-copy,.capture-upload-formbox{min-width:0!important;max-width:100%!important}
  .capture-upload-final-notice{padding:12px!important;border-radius:12px!important}
  .capture-upload-final-notice strong{font-size:13px!important}.capture-upload-final-notice span{font-size:12px!important}
  .capture-pdf-preview{height:240px!important;max-width:100%!important}
  .capture-upload-file-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .capture-upload-file-actions .btn,.capture-main-btn{width:100%!important;justify-content:center!important}
  input[type="file"]{max-width:100%!important;width:100%!important}

  .modal-backdrop{padding:8px!important;align-items:flex-end!important}
  .modal{width:100%!important;max-width:100%!important;max-height:92svh!important;border-radius:18px 18px 0 0!important;padding:14px!important;overflow-y:auto!important;overscroll-behavior:contain!important}
  .modal .grid,.modal .grid-2,.modal .form-row{grid-template-columns:1fr!important}
  .modal [class^="col-"],.modal [class*=" col-"]{grid-column:1!important}
  .modal .span-2{grid-column:auto!important}
  .modal .input,.modal select,.modal textarea{font-size:16px!important;max-width:100%!important}
  .expense-subject-options{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .expense-subject-choice{min-width:0!important;width:100%!important;padding:10px!important}
}

@media (max-width: 640px){
  .container{padding-left:8px!important;padding-right:8px!important}
  .capture-report-ref{padding-bottom:84px!important}
  .capture-report-ref>.page-head h1,.capture-page-head h1{font-size:29px!important}
  .capture-report-ref>.page-head p,.capture-page-head p{font-size:12px!important}
  .capture-panel{padding:12px 10px!important;border-radius:14px!important}
  .capture-panel-badge{width:34px!important;height:34px!important;min-width:34px!important}
  .capture-panel-badge svg{width:19px!important;height:19px!important}
  .capture-panel-title h2{font-size:16.5px!important}

  .capture-summary-grid{grid-template-columns:1fr!important;gap:8px!important}
  .capture-metric{min-height:80px!important;padding:10px!important}
  .capture-metric.pos-available{min-height:94px!important}
  .capture-metric-copy strong{font-size:20px!important}
  .capture-metric-edit{font-size:9px!important;max-width:calc(100% - 16px)!important;white-space:normal!important;text-align:center!important}

  .capture-table{min-width:760px!important;font-size:12px!important}
  .capture-table th{font-size:10.5px!important;padding:9px!important}
  .capture-table td{font-size:12px!important;padding:9px!important}
  .capture-search .input{height:42px!important;font-size:16px!important}

  .capture-report-ref .capture-action-dock,.capture-report-ref .capture-action-dock.is-fixed{left:6px!important;right:6px!important;bottom:max(6px,env(safe-area-inset-bottom))!important;padding:5px!important;border-radius:14px!important}
  .capture-report-ref .capture-action-row,.capture-report-ref .capture-action-dock.is-fixed .capture-action-row{gap:6px!important}
  .capture-report-ref .capture-action-row .capture-action{flex:0 0 138px!important;width:138px!important;min-height:46px!important;padding:7px 8px!important;font-size:9.7px!important;gap:7px!important}
  .capture-report-ref .capture-action-row .capture-action-icon{width:29px!important;height:29px!important;min-width:29px!important}
  .capture-report-ref .capture-action-row .capture-action > span:last-child{font-size:9.7px!important;line-height:1.1!important}

  .expense-subject-options{grid-template-columns:1fr!important}
  .capture-warning-note{font-size:11.5px!important;padding:10px!important}
  .capture-step-list li{font-size:12px!important}
}

@media (max-width: 390px){
  .container{padding-left:6px!important;padding-right:6px!important}
  .capture-report-ref>.page-head h1,.capture-page-head h1{font-size:26px!important}
  .capture-panel{padding:10px 8px!important}
  .capture-metric{gap:8px!important}.capture-metric-icon{width:38px!important;height:38px!important;min-width:38px!important}
  .capture-metric-copy small{font-size:9.5px!important}.capture-metric-copy strong{font-size:18px!important}
  .capture-report-ref .capture-action-row .capture-action{flex-basis:130px!important;width:130px!important}
}

/* ===== Captura móvil · tablas táctiles con encabezado fijo ===== */
@media (max-width:1024px){
  .capture-report-ref .capture-table-shell{
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    max-height:58vh!important;
    overflow-x:auto!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    touch-action:pan-x pan-y pinch-zoom!important;
    scrollbar-width:thin!important;
    scroll-behavior:smooth!important;
    border-radius:12px!important;
    background:#fff!important;
  }

  .capture-report-ref .capture-table{
    width:max-content!important;
    min-width:820px!important;
    max-width:none!important;
    border-collapse:separate!important;
    border-spacing:0!important;
  }

  .capture-report-ref .capture-table thead th{
    position:sticky!important;
    top:0!important;
    z-index:12!important;
    background:#eaf2fb!important;
    box-shadow:0 1px 0 #cbd8e7,0 4px 10px rgba(11,48,102,.08)!important;
    white-space:nowrap!important;
  }

  .capture-report-ref .capture-table tbody td{
    background-clip:padding-box!important;
  }

  .capture-report-ref .capture-table-shell::-webkit-scrollbar{
    height:8px!important;
    width:8px!important;
  }
  .capture-report-ref .capture-table-shell::-webkit-scrollbar-thumb{
    background:#9eb2cc!important;
    border-radius:999px!important;
  }
  .capture-report-ref .capture-table-shell::-webkit-scrollbar-track{
    background:#edf3f9!important;
    border-radius:999px!important;
  }

  /* Evita que el scroll horizontal de la tabla mueva toda la página. */
  .capture-report-ref [data-dual-scroll],
  .capture-report-ref form:has(.capture-table-shell){
    min-width:0!important;
    max-width:100%!important;
  }

  .capture-report-ref .table-top-scroll{
    display:none!important;
  }
}

@media (max-width:640px){
  .capture-report-ref .capture-table-shell{
    max-height:54vh!important;
  }
  .capture-report-ref .capture-table{
    min-width:760px!important;
  }
  .capture-report-ref .capture-table thead th{
    font-size:11px!important;
    padding:10px 9px!important;
  }
  .capture-report-ref .capture-table tbody td{
    font-size:12px!important;
    padding:10px 9px!important;
  }
}

/* ===== Administración de periodos ===== */
.admin-period-control,.admin-special-periods{overflow:hidden}
.admin-period-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.admin-period-head h2{margin:0 0 5px;color:var(--navy)}
.admin-global-period-form{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(260px,1.25fr) auto;gap:14px;align-items:end}
.admin-period-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.admin-period-note{margin-top:14px;padding:12px 14px;border-radius:12px;background:#eef5ff;border:1px solid #cfe0f5;color:#34506f;font-size:12px;line-height:1.45}
.admin-special-top{display:grid;grid-template-columns:minmax(280px,1.5fr) minmax(160px,.5fr);gap:14px;margin-bottom:14px}
.admin-period-checks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
.admin-period-check{display:flex!important;align-items:center;gap:10px;padding:12px 13px;border:1px solid #d7e1ed;border-radius:13px;background:#f9fbfe;cursor:pointer;text-transform:none!important;letter-spacing:0!important;margin:0!important;color:#1f3552!important}
.admin-period-check:hover{border-color:#9ebbe0;background:#f3f8ff}
.admin-period-check input{width:18px;height:18px;accent-color:#0d5dc4;flex:none}
.admin-period-check span{display:block;min-width:0}.admin-period-check strong,.admin-period-check small{display:block}.admin-period-check strong{font-size:12px;color:#0b3777}.admin-period-check small{font-size:11px;color:#6b7890;margin-top:2px}
.admin-current-exceptions{margin-top:18px;padding-top:16px;border-top:1px solid #e4e9ef}.admin-current-exceptions h3{margin:0 0 10px;color:var(--navy);font-size:15px}
.admin-period-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
@media(max-width:1000px){.admin-global-period-form{grid-template-columns:1fr 1fr}.admin-global-period-form .admin-period-actions{grid-column:1/-1}.admin-period-checks{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.admin-period-head{flex-direction:column;align-items:stretch}.admin-global-period-form,.admin-special-top{grid-template-columns:1fr}.admin-global-period-form .admin-period-actions{grid-column:auto}.admin-period-actions .btn{width:100%}.admin-period-checks{grid-template-columns:1fr}.admin-period-card-title{align-items:flex-start;flex-direction:column}}

/* ===== ADMIN · navegación lateral vertical ===== */
.admin-topbar .topbar-inner{
  grid-template-columns:minmax(330px,430px) minmax(260px,310px)!important;
  justify-content:space-between!important;
}
.admin-topbar .user-account-static{justify-self:end!important}
.admin-workspace{
  width:min(1760px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  align-items:start;
  min-height:calc(100vh - 145px);
}
.admin-sidebar{
  position:sticky;
  top:86px;
  z-index:40;
  align-self:start;
  height:calc(100vh - 86px);
  padding:18px 12px 20px 16px;
  background:rgba(255,255,255,.96);
  border-right:1px solid #dce6f2;
  box-shadow:5px 0 18px rgba(18,54,104,.035);
  overflow-y:auto;
  scrollbar-width:thin;
}
.admin-sidebar-nav{display:flex;flex-direction:column;gap:5px}
.admin-side-link{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:44px;
  padding:9px 12px;
  border-radius:12px;
  color:#17376f;
  font-size:12.5px;
  font-weight:850;
  text-decoration:none;
  line-height:1.15;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.admin-side-link .nav-svg,.admin-side-link .nav-svg svg{
  width:18px;height:18px;display:grid;place-items:center;flex:0 0 auto;
}
.admin-side-link:hover{background:#f1f6fd;color:#0b61d8;transform:translateX(2px)}
.admin-side-link.active{
  background:linear-gradient(180deg,#edf5ff 0%,#e4f0ff 100%);
  color:#0b61d8;
  box-shadow:inset 3px 0 0 #0b61d8,inset 0 0 0 1px rgba(93,145,222,.13);
}
.admin-content{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0 28px 34px!important;
  min-width:0;
}

@media(max-width:980px){
  .admin-topbar .topbar-inner{
    grid-template-columns:minmax(0,1fr) minmax(145px,46vw)!important;
  }
  .admin-workspace{display:block;width:100%;min-height:0}
  .admin-sidebar{
    position:sticky;
    top:55px;
    z-index:75;
    width:100%;
    height:auto;
    padding:7px 10px;
    border-right:0;
    border-bottom:1px solid #dce6f2;
    box-shadow:0 4px 12px rgba(18,54,104,.045);
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .admin-sidebar::-webkit-scrollbar{display:none}
  .admin-sidebar-nav{flex-direction:row;gap:4px;width:max-content}
  .admin-side-link{flex:0 0 auto;min-height:38px;padding:8px 10px;font-size:10px;gap:6px;border-radius:9px}
  .admin-side-link .nav-svg,.admin-side-link .nav-svg svg{width:15px;height:15px}
  .admin-side-link:hover{transform:none}
  .admin-side-link.active{box-shadow:inset 0 -3px 0 #0b61d8,inset 0 0 0 1px rgba(93,145,222,.13)}
  .admin-content{padding:0 10px 26px!important}
}

/* ===== Histórico · filtros automáticos, estatus y documentos ===== */
.badge.no-report{background:#e6ebf2;color:#334155;border:1px solid #c8d1de}
.historic-status-badge{min-width:92px;justify-content:center;text-align:center}
.historic-admin-table{min-width:1280px}
.historic-results-card{transition:opacity .16s ease,filter .16s ease}
.historic-results-card.is-loading{opacity:.58;filter:saturate(.72);pointer-events:none}
@media(max-width:780px){.historic-status-badge{min-width:82px}.historic-admin-table{min-width:1180px}}

/* ===== ADMIN · menú lateral clasificado por categorías ===== */
.admin-sidebar-nav{gap:0}
.admin-side-home{margin-bottom:9px}
.admin-side-group{padding:8px 0 5px;border-top:1px solid rgba(190,205,225,.72)}
.admin-side-group:first-of-type{border-top:0;padding-top:3px}
.admin-side-group-title{
  padding:3px 12px 7px;
  color:#526985;
  font-size:9.5px;
  font-weight:950;
  letter-spacing:.075em;
  line-height:1.2;
  text-transform:uppercase;
}
.admin-side-group-links{display:flex;flex-direction:column;gap:3px}
.admin-sidebar .admin-side-link{min-height:40px;padding:8px 12px}
.admin-sidebar .admin-side-link span:last-child{min-width:0}

@media(max-width:980px){
  .admin-sidebar-nav{display:flex;align-items:stretch;gap:7px;width:max-content}
  .admin-side-home{margin:0;align-self:flex-end}
  .admin-side-group{display:flex;align-items:flex-end;gap:5px;padding:0 0 0 7px;border-top:0;border-left:1px solid #dce6f2}
  .admin-side-group:first-of-type{padding-top:0;border-left:1px solid #dce6f2}
  .admin-side-group-title{align-self:center;padding:0 4px;color:#657994;font-size:8px;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap}
  .admin-side-group-links{flex-direction:row;gap:4px}
}


/* ===== EVENTOS · color configurable con relleno translúcido ===== */
.event-colorized{
  background:linear-gradient(145deg,var(--event-bg),rgba(255,255,255,.90))!important;
  border-color:var(--event-border)!important;
  border-left:4px solid var(--event-color)!important;
}
.event-colorized .event-date,.home-ref-event-card.event-colorized .home-ref-event-date{color:#0a2d6a!important}
.event-colorized:hover{background:linear-gradient(145deg,var(--event-bg-strong),rgba(255,255,255,.93))!important}
.event-color-field{min-width:0}
.event-color-control{height:43px;display:flex;align-items:center;gap:10px;padding:5px 11px;border:1px solid #cfd7e2;border-radius:11px;background:#fff;color:#405069;font-size:12px;font-weight:800}
.event-color-input{width:48px;height:31px;padding:0;border:0;background:transparent;cursor:pointer;flex:0 0 auto}
.event-color-input::-webkit-color-swatch-wrapper{padding:0}
.event-color-input::-webkit-color-swatch{border:1px solid #c9d4e2;border-radius:8px}
.event-color-input::-moz-color-swatch{border:1px solid #c9d4e2;border-radius:8px}
@media(max-width:780px){.event-color-control{width:100%}}

/* ===== ESTATUS CAH · estadísticos e impresión ===== */
 .status-stats-card{overflow:hidden}
.status-stats-head{align-items:flex-start}
.status-stats-filter{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.status-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.status-stat{position:relative;display:grid;grid-template-rows:auto 1fr auto;align-items:center;min-height:126px;padding:15px 18px 14px;border:1px solid #d5e1ef;border-radius:18px;background:rgba(255,255,255,.96);overflow:hidden;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;text-decoration:none!important}
.status-stat::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:currentColor;opacity:.92}
.status-stat::after{content:"";position:absolute;width:112px;height:112px;border-radius:50%;right:-38px;top:-42px;opacity:.10;background:currentColor}
.status-stat:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(7,46,105,.12)}
.status-stat.active{box-shadow:inset 0 0 0 2px currentColor,0 12px 28px rgba(7,46,105,.10)}
.status-stat-label{position:relative;z-index:1;font-size:13px;font-weight:950;text-transform:uppercase;letter-spacing:.035em;color:currentColor}
.status-stat-number{position:relative;z-index:1;display:block;align-self:center;font-size:36px;line-height:1;font-weight:950;letter-spacing:-.04em;color:#0a2f68;margin:10px 0 7px}
.status-stat-unit{position:relative;z-index:1;display:inline-flex;width:max-content;align-items:center;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid rgba(120,145,178,.18);font-size:11px;font-weight:850;color:#52627a;text-transform:uppercase;letter-spacing:.035em}
.status-stat.pdf{color:#0c68d8;background:linear-gradient(145deg,rgba(219,236,255,.98),rgba(249,252,255,.98))}
.status-stat.nopdf{color:#c06d00;background:linear-gradient(145deg,rgba(255,237,202,.98),rgba(255,252,246,.98))}
.status-stat.no-records{color:#596a7d;background:linear-gradient(145deg,rgba(229,235,243,.98),rgba(251,252,254,.98))}
.status-stat.reviewed{color:#10834e;background:linear-gradient(145deg,rgba(215,246,229,.98),rgba(249,255,252,.98))}
@media(max-width:980px){.status-stats-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.status-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.status-stats-head{flex-direction:column;align-items:stretch}.status-stats-head .actions .btn{flex:1}}
@media(max-width:620px){.status-stats-filter,.status-stat-grid{grid-template-columns:1fr}.status-stats-head .actions{display:grid;grid-template-columns:1fr}.status-stats-head .actions .btn{width:100%}}

/* ===== ESTATUS CAH · columnas de documentos en revisadas ===== */
.status-reviewed-table{min-width:1320px}
.status-reviewed-table th:nth-last-child(-n+4),
.status-reviewed-table td:nth-last-child(-n+4){text-align:center;vertical-align:middle;white-space:nowrap}
.status-reviewed-table .status-cell-actions{justify-content:center;flex-wrap:nowrap}
@media(max-width:780px){
  .status-reviewed-table{min-width:1180px}
}

/* ===== USUARIO CAH · cabecera simplificada + inicio compacto sobre fondo global ===== */
body.role-cah .topbar-ref .topbar-inner{
  width:min(1600px,calc(100% - 30px));
  max-width:none;
  display:grid;
  grid-template-columns:minmax(300px,390px) minmax(360px,1fr) minmax(260px,330px);
  align-items:center;
  gap:22px;
}
body.role-cah .cah-top-title{
  position:relative;
  min-width:0;
  text-align:center;
  color:#082f70;
  line-height:1.08;
  padding:5px 18px 10px;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}
body.role-cah .cah-top-title::before{display:none!important}
body.role-cah .cah-top-title::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:1px;
  width:76px;
  height:2px;
  transform:translateX(-50%);
  border-radius:999px;
  background:linear-gradient(90deg,#0a4eae 0%,#0a4eae 48%,#d91f32 52%,#d91f32 100%);
  opacity:.9;
}
body.role-cah .cah-top-title strong{
  display:block;
  font-size:20px;
  font-weight:950;
  letter-spacing:-.025em;
  white-space:normal;
  color:#083577;
  text-shadow:none;
}
body.role-cah .cah-top-title span{
  display:block;
  margin-top:5px;
  padding:0;
  background:transparent;
  color:#315c91;
  font-size:11px;
  font-weight:900;
  letter-spacing:.19em;
  box-shadow:none;
}
body.role-cah .user-account-static{justify-self:end}

/* En Inicio CAH la fotografía institucional es el fondo de toda la página. */
body.role-cah.page-inicio .home-ref{
  width:100vw;
  min-height:calc(100vh - 72px);
  margin:-22px 0 0 calc(50% - 50vw);
  padding:16px 0 28px;
  background:transparent!important;
  overflow:visible;
}
body.role-cah.page-inicio .home-ref::after{display:none!important}

/* Se elimina el banner grande para subir las opciones y evitar duplicar SICAH. */
body.role-cah.page-inicio .home-ref-hero{display:none!important}
body.role-cah.page-inicio .home-ref-menu-wrap{
  width:min(1500px,calc(100% - 48px));
  margin:0 auto!important;
  padding:18px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(213,226,239,.92);
  box-shadow:0 16px 38px rgba(13,66,129,.11);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
body.role-cah.page-inicio .home-ref-events{
  width:min(1500px,calc(100% - 48px));
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

@media(max-width:1100px){
  body.role-cah .topbar-ref .topbar-inner{
    grid-template-columns:minmax(240px,1fr) minmax(260px,1.2fr) minmax(210px,.8fr);
    gap:12px;
  }
  body.role-cah .cah-top-title{padding:5px 12px 9px}
  body.role-cah .cah-top-title strong{font-size:17px}
  body.role-cah .cah-top-title span{font-size:10px}
}

@media(max-width:780px){
  body.role-cah .topbar-ref .topbar-inner{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
    padding:8px 10px 7px!important;
  }
  body.role-cah .cah-top-title{
    grid-column:1/-1;
    grid-row:2;
    padding:5px 8px 9px;
  }
  body.role-cah .cah-top-title::after{width:58px;height:2px}
  body.role-cah .cah-top-title strong{font-size:14px}
  body.role-cah .cah-top-title span{font-size:9px;margin-top:4px;padding:0}
  body.role-cah.page-inicio .home-ref{
    margin-top:-12px;
    padding-top:10px;
  }
  body.role-cah.page-inicio .home-ref-menu-wrap,
  body.role-cah.page-inicio .home-ref-events{
    width:calc(100% - 18px);
  }
}

/* ===== USUARIO CAH · menú compacto + pendientes de Bitácora ===== */
body.role-cah.page-inicio .cah-home-dashboard{
  display:grid;
  grid-template-columns:minmax(0,1.72fr) minmax(320px,.88fr);
  gap:18px;
  align-items:stretch;
}
body.role-cah.page-inicio .cah-home-menu{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-content:start;
}
body.role-cah.page-inicio .cah-home-menu .home-ref-module{
  min-height:96px;
  padding:14px 15px;
  border-radius:15px;
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  align-items:center;
  gap:13px;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
body.role-cah.page-inicio .cah-home-menu .home-ref-module:hover{
  transform:translateY(-2px);
  box-shadow:0 11px 24px rgba(16,70,138,.12);
}
body.role-cah.page-inicio .cah-home-menu .home-ref-module-icon{
  width:56px;
  height:56px;
  margin:0;
  border-radius:15px;
  grid-column:1;
  grid-row:1;
}
body.role-cah.page-inicio .cah-home-menu .home-ref-module-icon svg{
  width:31px;
  height:31px;
}
body.role-cah.page-inicio .cah-home-menu .home-ref-module-copy{
  grid-column:2;
  grid-row:1;
  align-self:center;
}
body.role-cah.page-inicio .cah-home-menu .home-ref-module-copy strong{
  font-size:16px;
  line-height:1.08;
  margin-bottom:5px;
}
body.role-cah.page-inicio .cah-home-menu .home-ref-module-copy span{
  font-size:11.5px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body.role-cah.page-inicio .cah-home-menu .home-ref-module-glow{
  width:82px;
  height:82px;
  right:-24px;
  top:-28px;
}
body.role-cah.page-inicio .cah-home-pending{
  min-width:0;
  min-height:100%;
  max-height:444px;
  display:flex;
  flex-direction:column;
  padding:16px;
  border:1px solid #d5e2ef;
  border-radius:18px;
  background:linear-gradient(155deg,rgba(250,252,255,.98),rgba(243,248,254,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
body.role-cah.page-inicio .cah-home-pending-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  border-bottom:1px solid #dfe7f0;
}
body.role-cah.page-inicio .cah-home-pending-head span{
  display:block;
  margin-bottom:2px;
  color:#6b7d98;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}
body.role-cah.page-inicio .cah-home-pending-head h2{
  margin:0;
  color:#092f70;
  font-size:18px;
  font-weight:950;
  line-height:1.1;
  letter-spacing:-.02em;
}
body.role-cah.page-inicio .cah-home-pending-head b{
  min-width:38px;
  height:38px;
  padding:0 9px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff1d6;
  color:#9a6400;
  border:1px solid #f0d59e;
  font-size:16px;
  font-weight:950;
}
body.role-cah.page-inicio .cah-home-pending-list{
  flex:1;
  min-height:0;
  overflow:auto;
  padding:8px 3px 5px 0;
  scrollbar-width:thin;
}
body.role-cah.page-inicio .cah-home-pending-item{
  padding:10px 11px 10px 12px;
  border-bottom:1px solid #e3eaf2;
  border-left:3px solid #e6a11b;
  background:rgba(255,255,255,.58);
}
body.role-cah.page-inicio .cah-home-pending-item:first-child{border-radius:10px 10px 0 0}
body.role-cah.page-inicio .cah-home-pending-item:last-child{border-bottom:0;border-radius:0 0 10px 10px}
body.role-cah.page-inicio .cah-home-pending-datetime{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:8px;
  color:#5c6d87;
  font-size:11px;
  font-weight:900;
}
body.role-cah.page-inicio .cah-home-pending-datetime .cah-home-pending-date::after{
  content:"·";
  margin-left:7px;
  color:#9aa8ba;
}
body.role-cah.page-inicio .cah-home-pending-field{
  margin-top:6px;
}
body.role-cah.page-inicio .cah-home-pending-label{
  display:block;
  margin-bottom:2px;
  color:#8492a6;
  font-size:8.5px;
  font-weight:950;
  letter-spacing:.08em;
}
body.role-cah.page-inicio .cah-home-pending-item strong{
  display:block;
  color:#123875;
  font-size:11.5px;
  font-weight:900;
  line-height:1.25;
  text-transform:uppercase;
}
body.role-cah.page-inicio .cah-home-pending-item p{
  margin:0;
  color:#4f6079;
  font-size:11px;
  line-height:1.28;
  font-weight:600;
}
body.role-cah.page-inicio .cah-home-pending-empty{
  display:grid;
  place-items:center;
  min-height:150px;
  color:#718198;
  text-align:center;
  font-size:12px;
}
body.role-cah.page-inicio .cah-home-pending-link{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:10px;
  min-height:38px;
  border-radius:11px;
  background:#0a377a;
  color:#fff;
  font-size:12px;
  font-weight:900;
}
body.role-cah.page-inicio .cah-home-pending-link:hover{background:#0b4ca6}

@media(max-width:1100px){
  body.role-cah.page-inicio .cah-home-dashboard{grid-template-columns:minmax(0,1.45fr) minmax(290px,.85fr);gap:12px}
  body.role-cah.page-inicio .cah-home-menu{grid-template-columns:1fr}
  body.role-cah.page-inicio .cah-home-pending{max-height:790px}
}
@media(max-width:780px){
  body.role-cah.page-inicio .cah-home-dashboard{grid-template-columns:1fr}
  body.role-cah.page-inicio .cah-home-menu{grid-template-columns:1fr 1fr}
  body.role-cah.page-inicio .cah-home-pending{max-height:390px}
}
@media(max-width:560px){
  body.role-cah.page-inicio .cah-home-menu{grid-template-columns:1fr}
  body.role-cah.page-inicio .cah-home-menu .home-ref-module{min-height:78px;grid-template-columns:48px minmax(0,1fr);padding:10px 12px}
  body.role-cah.page-inicio .cah-home-menu .home-ref-module-icon{width:48px;height:48px;border-radius:13px}
  body.role-cah.page-inicio .cah-home-menu .home-ref-module-icon svg{width:27px;height:27px}
  body.role-cah.page-inicio .cah-home-menu .home-ref-module-copy strong{font-size:14px}
  body.role-cah.page-inicio .cah-home-menu .home-ref-module-copy span{font-size:10.5px}
}

/* ===== USUARIO CAH · pendientes de Bitácora en tabla legible ===== */
body.role-cah.page-inicio .cah-home-pending-list{
  padding:8px 0 5px;
}
body.role-cah.page-inicio .cah-home-pending-table-wrap{
  width:100%;
  overflow:auto;
  padding:4px 5px 8px;
  border:1px solid #d7e3f0;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(248,251,255,.96),rgba(242,247,253,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  scrollbar-width:thin;
}
body.role-cah.page-inicio .cah-home-pending-table{
  width:100%;
  min-width:590px;
  border-collapse:separate;
  border-spacing:0 8px;
  table-layout:fixed;
  color:#33445d;
  font-size:11px;
}
body.role-cah.page-inicio .cah-home-pending-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  padding:7px 10px 5px;
  background:transparent;
  color:#173d78;
  border:0;
  text-align:left;
  font-size:9px;
  font-weight:950;
  letter-spacing:.045em;
  text-transform:uppercase;
  white-space:nowrap;
}
body.role-cah.page-inicio .cah-home-pending-table tbody td{
  padding:11px 10px;
  background:#f8fbff;
  border-top:1px solid #dbe7f3;
  border-bottom:1px solid #dbe7f3;
  vertical-align:middle;
  line-height:1.28;
  box-shadow:0 3px 10px rgba(19,66,123,.035);
}
body.role-cah.page-inicio .cah-home-pending-table tbody td:first-child{
  border-left:4px solid #f0ad24;
  border-radius:11px 0 0 11px;
}
body.role-cah.page-inicio .cah-home-pending-table tbody td:last-child{
  border-right:1px solid #dbe7f3;
  border-radius:0 11px 11px 0;
}
body.role-cah.page-inicio .cah-home-pending-table tbody tr:nth-child(even) td{
  background:#f3f8fe;
}
body.role-cah.page-inicio .cah-home-pending-table tbody tr:hover td{
  background:#eaf4ff;
  border-color:#c8dcf0;
}
body.role-cah.page-inicio .cah-home-pending-table th:nth-child(1),
body.role-cah.page-inicio .cah-home-pending-table td:nth-child(1){width:98px}
body.role-cah.page-inicio .cah-home-pending-table th:nth-child(2),
body.role-cah.page-inicio .cah-home-pending-table td:nth-child(2){width:72px}
body.role-cah.page-inicio .cah-home-pending-table th:nth-child(3),
body.role-cah.page-inicio .cah-home-pending-table td:nth-child(3){width:255px}
body.role-cah.page-inicio .cah-home-pending-table th:nth-child(4),
body.role-cah.page-inicio .cah-home-pending-table td:nth-child(4){width:165px}
body.role-cah.page-inicio .cah-pending-date-cell,
body.role-cah.page-inicio .cah-pending-time-cell{
  color:#44566f;
  font-weight:850;
  white-space:nowrap;
}
body.role-cah.page-inicio .cah-pending-dep-cell{
  color:#123875;
  font-weight:900;
  text-transform:uppercase;
  overflow-wrap:break-word;
}
body.role-cah.page-inicio .cah-pending-subject-cell{
  color:#334c6e;
  font-weight:800;
  overflow-wrap:break-word;
}
@media(max-width:780px){
  body.role-cah.page-inicio .cah-home-pending-table{min-width:620px}
  body.role-cah.page-inicio .cah-home-pending-table-wrap{padding:3px 4px 7px}
}

/* ===== CAH · restauración panel Bitácora como tarjeta lateral ===== */
body.role-cah.page-inicio .cah-home-dashboard{
  display:grid!important;
  grid-template-columns:minmax(0,1.7fr) minmax(330px,.82fr)!important;
  gap:18px!important;
  align-items:stretch!important;
}
body.role-cah.page-inicio .cah-home-menu{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  align-content:start!important;
}
body.role-cah.page-inicio .cah-home-pending{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:100%!important;
  max-height:444px!important;
  padding:16px!important;
  border:1px solid #d5e2ef!important;
  border-radius:18px!important;
  background:linear-gradient(155deg,rgba(250,252,255,.98),rgba(243,248,254,.96))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
}
body.role-cah.page-inicio .cah-home-pending-list{
  flex:1!important;
  min-height:0!important;
  overflow:auto!important;
  padding:8px 3px 5px 0!important;
  scrollbar-width:thin;
}
body.role-cah.page-inicio .cah-home-pending-item{
  display:block!important;
  margin:0 0 8px!important;
  padding:10px 11px 10px 12px!important;
  border:1px solid #e1e9f2!important;
  border-left:3px solid #e6a11b!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:0 3px 10px rgba(19,66,123,.035)!important;
}
body.role-cah.page-inicio .cah-home-pending-item:last-child{margin-bottom:0!important}
body.role-cah.page-inicio .cah-home-pending-datetime{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 5px!important;
  color:#5c6d87!important;
  font-size:10px!important;
  font-weight:900!important;
}
body.role-cah.page-inicio .cah-home-pending-datetime .cah-home-pending-date::after{content:none!important}
body.role-cah.page-inicio .cah-home-pending-item strong{
  display:block!important;
  margin:0 0 3px!important;
  color:#123875!important;
  font-size:11.5px!important;
  font-weight:950!important;
  line-height:1.25!important;
  text-transform:uppercase!important;
}
body.role-cah.page-inicio .cah-home-pending-item p{
  margin:0!important;
  color:#4f6079!important;
  font-size:10.5px!important;
  line-height:1.28!important;
  font-weight:650!important;
  text-transform:uppercase!important;
}
body.role-cah.page-inicio .cah-home-pending-link{
  flex:0 0 auto!important;
  width:100%!important;
  margin-top:10px!important;
}
@media(max-width:1100px){
  body.role-cah.page-inicio .cah-home-dashboard{grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr)!important}
  body.role-cah.page-inicio .cah-home-menu{grid-template-columns:1fr!important}
}
@media(max-width:780px){
  body.role-cah.page-inicio .cah-home-dashboard{grid-template-columns:1fr!important}
  body.role-cah.page-inicio .cah-home-menu{grid-template-columns:1fr 1fr!important}
  body.role-cah.page-inicio .cah-home-pending{max-height:390px!important}
}
@media(max-width:560px){
  body.role-cah.page-inicio .cah-home-menu{grid-template-columns:1fr!important}
}

/* ===== CAH · Bitácora pendiente: fecha/hora apiladas, días restantes y filas alternadas ===== */
body.role-cah.page-inicio .cah-home-pending-item{
  position:relative!important;
  overflow:hidden!important;
  padding:12px 12px 11px 13px!important;
  border-width:1px 1px 1px 4px!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
body.role-cah.page-inicio .cah-home-pending-item:nth-child(odd){
  background:linear-gradient(135deg,rgba(235,246,255,.98),rgba(247,251,255,.98))!important;
  border-color:#c9def2!important;
  border-left-color:#2b7fd3!important;
}
body.role-cah.page-inicio .cah-home-pending-item:nth-child(even){
  background:linear-gradient(135deg,rgba(255,247,228,.98),rgba(255,252,243,.98))!important;
  border-color:#f0ddb0!important;
  border-left-color:#e5a11c!important;
}
body.role-cah.page-inicio .cah-home-pending-item:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 8px 20px rgba(14,61,118,.09)!important;
}
body.role-cah.page-inicio .cah-home-pending-item-top{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:10px 12px!important;
  margin:0 0 8px!important;
}
body.role-cah.page-inicio .cah-home-pending-datetime{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:3px!important;
  margin:0!important;
  min-width:0!important;
}
body.role-cah.page-inicio .cah-home-pending-date,
body.role-cah.page-inicio .cah-home-pending-time{
  display:block!important;
  width:100%!important;
}
body.role-cah.page-inicio .cah-home-pending-date{
  color:#304a6f!important;
  font-size:10.5px!important;
  line-height:1.15!important;
  font-weight:950!important;
}
body.role-cah.page-inicio .cah-home-pending-time{
  color:#6b7c94!important;
  font-size:9.5px!important;
  line-height:1.15!important;
  font-weight:800!important;
}
body.role-cah.page-inicio .cah-home-pending-days{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:start!important;
  justify-self:end!important;
  flex:0 0 auto!important;
  min-width:72px!important;
  max-width:120px!important;
  min-height:46px!important;
  padding:6px 8px!important;
  border-radius:12px!important;
  border:1px solid transparent!important;
  font-size:9px!important;
  line-height:1.18!important;
  font-weight:950!important;
  text-align:center!important;
  white-space:normal!important;
}
body.role-cah.page-inicio .cah-home-pending-days.is-future{
  background:#e8f7ee!important;
  border-color:#c6e9d3!important;
  color:#147044!important;
}
body.role-cah.page-inicio .cah-home-pending-days.is-today{
  background:#e8f1ff!important;
  border-color:#c7daf5!important;
  color:#0a4e9e!important;
}
body.role-cah.page-inicio .cah-home-pending-days.is-past{
  background:#fff0f1!important;
  border-color:#f0c9cd!important;
  color:#a5232c!important;
}
body.role-cah.page-inicio .cah-home-pending-days.is-none{
  background:#eef2f6!important;
  border-color:#dbe2e9!important;
  color:#65748a!important;
}
body.role-cah.page-inicio .cah-home-pending-item strong{
  margin-bottom:4px!important;
  font-size:11px!important;
}
body.role-cah.page-inicio .cah-home-pending-item p{
  font-size:10px!important;
  line-height:1.3!important;
}

/* ===== CAH · Agenda: jerarquía visual de dependencia, asunto y hora ===== */
body.role-cah.page-inicio .cah-home-pending-time{
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:850!important;
  color:#5d6f89!important;
}
body.role-cah.page-inicio .cah-home-pending-item strong{
  font-weight:600!important;
  color:#29476f!important;
}
body.role-cah.page-inicio .cah-home-pending-item p{
  font-weight:950!important;
  color:#123875!important;
  font-size:10.5px!important;
}

/* ===== CONTACTO CAH · directorio, llamadas, WhatsApp y mapa ===== */
.contact-directory{display:grid;gap:20px;margin-top:18px}
.contact-section{background:rgba(255,255,255,.94);border:1px solid rgba(203,217,235,.95);border-radius:22px;padding:20px;box-shadow:0 14px 34px rgba(8,46,102,.08);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.contact-section-head{margin-bottom:15px;padding-bottom:11px;border-bottom:1px solid #e2eaf4}
.contact-section-kicker,.contact-location-head span{display:block;color:#6a7b95;font-size:10px;font-weight:950;letter-spacing:.14em;text-transform:uppercase;margin-bottom:3px}
.contact-section-head h2,.contact-location-head h2{margin:0;color:#082f70;font-size:clamp(18px,2vw,24px);letter-spacing:-.025em}
.contact-section-description{max-width:1050px;margin:12px auto 0;padding:10px 16px;color:#264b78;font-size:clamp(15px,1.15vw,17px);font-weight:750;line-height:1.55;text-align:center;background:rgba(239,246,255,.82);border:1px solid rgba(168,196,231,.72);border-radius:12px}
.contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.contact-grid.is-single{grid-template-columns:minmax(280px,420px);justify-content:center}
.contact-person-card{position:relative;min-height:390px;padding:24px 18px 18px;border-radius:18px;border:1px solid #d8e3f0;background:linear-gradient(155deg,rgba(255,255,255,.99),rgba(244,249,255,.96));box-shadow:0 8px 22px rgba(12,54,106,.06);text-align:center;display:flex;flex-direction:column;align-items:center}
.contact-photo-wrap{width:190px;height:190px;min-width:190px;min-height:190px;max-width:190px;max-height:190px;aspect-ratio:1/1;border-radius:50%;padding:6px;background:linear-gradient(145deg,#0a4d9f,#e31b2e);box-shadow:0 10px 25px rgba(13,57,117,.18);margin:0 auto 18px;display:grid;place-items:center;overflow:hidden;flex:0 0 190px}
.contact-photo-wrap img,.contact-photo-fallback{display:grid;place-items:center;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:100%!important;max-height:100%!important;aspect-ratio:1/1!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important;background:#fff;border:4px solid #fff;box-sizing:border-box}
.contact-photo-fallback{color:#0a3d83;font-size:34px;font-weight:950;letter-spacing:-.05em}
.contact-person-card h3{margin:0;color:#092f6e;font-size:17px;line-height:1.15;text-transform:uppercase}
.contact-role{margin-top:6px;color:#516988;font-size:12px;line-height:1.25;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.contact-numbers{display:grid;gap:3px;min-height:38px;margin-top:8px;color:#687891;font-size:11px}
.contact-actions{margin-top:auto;padding-top:14px;display:flex;gap:9px;justify-content:center;flex-wrap:wrap}
.contact-action{min-width:104px;height:42px;padding:0 12px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:900;border:1px solid transparent;transition:.16s ease}
.contact-action svg{width:20px;height:20px;display:block}
.contact-action.whatsapp{background:#eaf9f0;color:#087c44;border-color:#c6ead5}
.contact-action.phone{background:#edf4ff;color:#0a55ac;border-color:#cadcf4}
.contact-action:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(13,60,119,.10)}
.contact-empty{grid-column:1/-1;padding:24px;text-align:center;border:1px dashed #ccd9e8;border-radius:14px;color:#6f7f95;background:#f8fbff}
.contact-location{margin-top:20px!important;background:rgba(255,255,255,.95)}
.contact-location-head{margin-bottom:14px}
.contact-map{position:relative;width:100%;aspect-ratio:16/6;min-height:320px;overflow:hidden;border-radius:17px;border:1px solid #ccd9e9;background:#eef4fb}
.contact-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.contact-map-empty{min-height:180px;display:grid;place-items:center;text-align:center;color:#6c7a90;border:1px dashed #c7d5e5;border-radius:16px;background:#f7faff;padding:25px}
.contact-admin-card{margin-bottom:18px}
.contact-toggle-row{display:flex;gap:16px;flex-wrap:wrap;padding:10px 0}
.contact-toggle-row label{display:inline-flex;align-items:center;gap:7px;margin:0;text-transform:none;font-size:12px;color:#294467}
.contact-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.contact-admin-person{border:1px solid #dce5f0;border-radius:16px;padding:15px;background:#f9fbfe}
.contact-admin-person-head{display:flex;align-items:center;gap:12px;margin-bottom:13px;padding-bottom:11px;border-bottom:1px solid #e2e9f2}
.contact-admin-person-head img,.contact-admin-avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;background:#e8f1ff;color:#0b4d9e;display:grid;place-items:center;font-weight:950;border:2px solid #fff;box-shadow:0 4px 12px rgba(15,61,119,.12);flex:none}
.contact-admin-person-head strong,.contact-admin-person-head span,.contact-admin-person-head em{display:block}.contact-admin-person-head strong{color:#082f70;font-size:13px}.contact-admin-person-head em{color:#35577f;font-size:10.5px;font-style:normal;font-weight:800;margin-top:2px}.contact-admin-person-head span{color:#748198;font-size:10px;margin-top:3px}

@media(max-width:1000px){.contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contact-admin-grid{grid-template-columns:1fr}.contact-map{aspect-ratio:16/8}}
@media(max-width:650px){.contact-grid,.contact-grid.is-single{grid-template-columns:1fr}.contact-person-card{min-height:345px}.contact-photo-wrap{width:155px;height:155px;min-width:155px;min-height:155px;max-width:155px;max-height:155px;flex-basis:155px}.contact-map{aspect-ratio:auto;min-height:300px}.contact-section{padding:15px;border-radius:17px}.contact-action{flex:1}}

/* ===== DEPENDENCIA · inicio compacto 2026-09-30 ===== */
body.role-dependencia.page-inicio .home-ref-menu{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
}
body.role-dependencia.page-inicio .home-ref-module{
  min-height:174px;
  padding:16px 16px 15px;
  border-radius:16px;
}
body.role-dependencia.page-inicio .home-ref-module-icon{
  width:62px;
  height:62px;
  border-radius:17px;
  margin-bottom:13px;
}
body.role-dependencia.page-inicio .home-ref-module-icon svg{
  width:35px;
  height:35px;
}
body.role-dependencia.page-inicio .home-ref-module-copy strong{
  font-size:18px;
  margin-bottom:6px;
}
body.role-dependencia.page-inicio .home-ref-module-copy span{
  font-size:13px;
  line-height:1.32;
}
body.role-dependencia.page-inicio .home-ref-module-glow{
  width:98px;
  height:98px;
  right:-30px;
  top:-38px;
}
@media(max-width:1380px){
  body.role-dependencia.page-inicio .home-ref-menu{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:780px){
  body.role-dependencia.page-inicio .home-ref-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.role-dependencia.page-inicio .home-ref-module{min-height:152px;padding:14px}
  body.role-dependencia.page-inicio .home-ref-module-icon{width:54px;height:54px;border-radius:14px;margin-bottom:10px}
  body.role-dependencia.page-inicio .home-ref-module-icon svg{width:30px;height:30px}
  body.role-dependencia.page-inicio .home-ref-module-copy strong{font-size:16px}
  body.role-dependencia.page-inicio .home-ref-module-copy span{font-size:12px}
}
@media(max-width:520px){
  body.role-dependencia.page-inicio .home-ref-menu{grid-template-columns:1fr}
  body.role-dependencia.page-inicio .home-ref-module{
    min-height:0;
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    align-items:center;
    gap:12px;
    padding:12px 13px;
  }
  body.role-dependencia.page-inicio .home-ref-module-icon{width:52px;height:52px;margin:0}
  body.role-dependencia.page-inicio .home-ref-module-copy{grid-column:2;grid-row:1}
}

/* =========================================================
   FORMATOS · tarjetas con miniatura completa y alineada
   ========================================================= */
.formats-grid{
  align-items:stretch;
  grid-auto-rows:1fr;
}
.formats-grid .format-card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:455px;
  padding:18px;
  overflow:hidden;
}
.format-card-title{
  margin:0 0 12px!important;
  min-height:42px;
  display:flex;
  align-items:flex-start;
  color:var(--navy)!important;
  font-size:18px!important;
  line-height:1.18;
  font-weight:900;
}
.format-thumb-link{
  width:min(100%,235px);
  height:220px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #d6e0ec;
  border-radius:16px;
  background:#f7f9fc;
  text-decoration:none;
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.format-thumb-link:hover,
.format-thumb-link:focus-visible{
  border-color:#8db4e5;
  box-shadow:0 8px 22px rgba(6,49,112,.10);
  transform:translateY(-1px);
  outline:none;
}
.format-thumb-disabled{
  cursor:default;
}
.format-thumb-disabled:hover{
  transform:none;
  box-shadow:none;
  border-color:#d6e0ec;
}
.format-thumb-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  background:#fff;
}
.format-thumb-placeholder{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  font-size:58px;
  color:#9aa7b7;
}
.format-description{
  flex:1 1 auto;
  margin-top:14px;
  min-height:90px;
  padding:14px 15px;
  border:1px solid #dce4ee;
  border-radius:15px;
  background:#fbfcfe;
  color:#596a82;
  font-size:14px;
  line-height:1.55;
  overflow-wrap:anywhere;
}
.format-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.format-actions form{margin:0}

@media(max-width:1100px) and (min-width:781px){
  .formats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:780px){
  .formats-grid .format-card{min-height:0}
  .format-card-title{min-height:0}
  .format-thumb-link{width:min(100%,235px);height:min(58vw,280px);margin-inline:auto}
  .format-description{min-height:0}
}


/* =========================================================
   FORMATOS · miniaturas al 50% y tarjetas alineadas · 2026-10-01
   ========================================================= */
.formats-grid{
  align-items:stretch!important;
  grid-auto-rows:1fr!important;
}
.formats-grid .format-card,
.formats-grid .format-card + .format-card{
  margin-top:0!important;
  align-self:stretch!important;
  height:100%!important;
  min-height:410px!important;
  padding:16px!important;
}
.formats-grid .format-card-title{
  min-height:30px!important;
  margin:0 0 10px!important;
  display:flex!important;
  align-items:center!important;
  font-size:16px!important;
  line-height:1.15!important;
}
.formats-grid .format-thumb-link{
  width:190px!important;
  height:250px!important;
  max-width:190px!important;
  min-width:190px!important;
  margin:0 auto!important;
  align-self:center!important;
  flex:0 0 250px!important;
}
.formats-grid .format-thumb-img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
}
.formats-grid .format-description{
  margin-top:12px!important;
  min-height:84px!important;
  padding:12px 13px!important;
  font-size:13px!important;
  line-height:1.45!important;
}
@media(max-width:780px){
  .formats-grid .format-card,
  .formats-grid .format-card + .format-card{
    min-height:0!important;
  }
  .formats-grid .format-thumb-link{
    width:170px!important;
    height:224px!important;
    min-width:170px!important;
    max-width:170px!important;
    flex-basis:224px!important;
  }
}

/* =========================================================
   FORMATOS · miniatura estilo referencia con contorno · 2026-10-01
   ========================================================= */
.formats-grid{
  align-items:stretch!important;
  grid-auto-rows:1fr!important;
}
.formats-grid .format-card,
.formats-grid .format-card + .format-card{
  margin-top:0!important;
  align-self:stretch!important;
  height:100%!important;
  min-height:500px!important;
  padding:18px!important;
}
.formats-grid .format-card-title{
  min-height:48px!important;
  margin:0 0 12px!important;
  display:flex!important;
  align-items:flex-start!important;
  font-size:16px!important;
  line-height:1.15!important;
  font-weight:900!important;
}
.formats-grid .format-thumb-link{
  width:226px!important;
  height:246px!important;
  min-width:226px!important;
  max-width:226px!important;
  flex:0 0 246px!important;
  margin:0 auto!important;
  padding:18px!important;
  box-sizing:border-box!important;
  border:1px solid #d6deea!important;
  border-radius:15px!important;
  background:#fbfcfe!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.formats-grid .format-thumb-link:hover,
.formats-grid .format-thumb-link:focus-visible{
  border-color:#a9bdd8!important;
  box-shadow:0 6px 16px rgba(6,49,112,.08)!important;
  transform:translateY(-1px)!important;
}
.formats-grid .format-thumb-img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#fff!important;
  border-radius:0!important;
}
.formats-grid .format-description{
  margin-top:18px!important;
  min-height:158px!important;
  padding:17px 14px!important;
  border:1px solid #d6deea!important;
  border-radius:15px!important;
  background:#fbfcfe!important;
  color:#596a82!important;
  font-size:14px!important;
  line-height:1.55!important;
  box-sizing:border-box!important;
}

@media(max-width:780px){
  .formats-grid .format-card,
  .formats-grid .format-card + .format-card{
    min-height:0!important;
  }
  .formats-grid .format-card-title{
    min-height:0!important;
  }
  .formats-grid .format-thumb-link{
    width:min(226px,82vw)!important;
    height:min(246px,89vw)!important;
    min-width:0!important;
    max-width:226px!important;
    flex-basis:auto!important;
    padding:16px!important;
  }
  .formats-grid .format-description{
    min-height:0!important;
  }
}


/* =========================================================
   FORMATOS · miniatura limpia sin recuadro de fondo · 2026-10-01
   ========================================================= */
.formats-grid .format-card,
.formats-grid .format-card + .format-card{
  align-self:stretch!important;
  height:100%!important;
}
.formats-grid .format-thumb-link{
  width:255px!important;
  height:285px!important;
  min-width:255px!important;
  max-width:255px!important;
  flex:0 0 285px!important;
  margin:0 auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.formats-grid .format-thumb-link:hover,
.formats-grid .format-thumb-link:focus-visible{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:translateY(-2px)!important;
  outline:none!important;
}
.formats-grid .format-thumb-img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
@media(max-width:780px){
  .formats-grid .format-thumb-link{
    width:min(255px,78vw)!important;
    height:min(285px,88vw)!important;
    min-width:0!important;
    max-width:255px!important;
    flex-basis:auto!important;
    padding:0!important;
  }
}


/* =========================================================
   FORMATOS · tarjeta blanca compacta al ancho de miniatura · 2026-10-01
   ========================================================= */
.formats-grid{
  grid-template-columns:repeat(auto-fit, minmax(280px, 290px))!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:20px!important;
}
.formats-grid .format-card,
.formats-grid .format-card + .format-card{
  width:290px!important;
  max-width:290px!important;
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  margin:0!important;
  padding:15px!important;
  box-sizing:border-box!important;
  align-self:stretch!important;
}
.formats-grid .format-card-title{
  width:100%!important;
  min-height:36px!important;
  margin:0 0 12px!important;
  font-size:16px!important;
  line-height:1.15!important;
}
.formats-grid .format-thumb-link{
  width:255px!important;
  height:285px!important;
  min-width:255px!important;
  max-width:255px!important;
  flex:0 0 285px!important;
  margin:0 auto!important;
}
.formats-grid .format-description{
  width:255px!important;
  max-width:255px!important;
  min-height:118px!important;
  margin:16px auto 0!important;
  padding:14px 14px!important;
  box-sizing:border-box!important;
}
.formats-grid .format-actions{
  width:255px!important;
  margin:10px auto 0!important;
}

@media(max-width:780px){
  .formats-grid{
    grid-template-columns:1fr!important;
    justify-items:center!important;
  }
  .formats-grid .format-card,
  .formats-grid .format-card + .format-card{
    width:min(290px,92vw)!important;
    max-width:290px!important;
  }
  .formats-grid .format-thumb-link{
    width:min(255px,82vw)!important;
    height:min(285px,91vw)!important;
    min-width:0!important;
    max-width:255px!important;
    flex-basis:auto!important;
  }
  .formats-grid .format-description,
  .formats-grid .format-actions{
    width:min(255px,82vw)!important;
    max-width:255px!important;
  }
}


/* =========================================================
   FORMATOS · sonido + descripción destacada · 2026-10-02
   ========================================================= */
.formats-grid .format-description{
  font-weight:700!important;
}


/* =========================================================
   REGLAMENTO · interfaz visual de consulta · 2026-10-03
   ========================================================= */
.reglamento-showcase{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);
  gap:28px;
  align-items:stretch;
  overflow:hidden;
  min-height:330px;
  margin-top:4px;
  padding:34px 38px;
  border:1px solid rgba(7,46,105,.12);
  border-radius:26px;
  background:
    radial-gradient(circle at 88% 18%,rgba(29,112,240,.12),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.98),rgba(246,250,255,.96));
  box-shadow:0 18px 48px rgba(7,46,105,.10);
}
.reglamento-showcase:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:7px;
  background:linear-gradient(180deg,#0a4fa7 0%,#0d74df 48%,#ef233c 100%);
}
.reglamento-showcase-main{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:6px 4px 6px 10px;
}
.reglamento-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}
.reglamento-logo-ring{
  display:grid;
  place-items:center;
  width:86px;
  height:86px;
  border:1px solid rgba(7,46,105,.13);
  border-radius:24px;
  background:#fff;
  box-shadow:0 10px 28px rgba(7,46,105,.10);
}
.reglamento-logo-ring img{
  display:block;
  width:70px;
  height:70px;
  object-fit:contain;
}
.reglamento-brand>span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 12px;
  border:1px solid #cfe1f8;
  border-radius:999px;
  background:#edf5ff;
  color:#0a4fa7;
  font-size:12px;
  font-weight:900;
  letter-spacing:.09em;
}
.reglamento-showcase h2{
  max-width:720px;
  margin:0;
  color:#072e69;
  font-size:clamp(27px,2.4vw,40px);
  line-height:1.08;
  letter-spacing:-.025em;
}
.reglamento-intro{
  max-width:650px;
  margin:13px 0 25px;
  color:#60718b;
  font-size:16px;
  line-height:1.55;
  font-weight:600;
}
.reglamento-open-btn{
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 38px;
  gap:13px;
  align-items:center;
  width:min(100%,430px);
  min-height:76px;
  padding:10px 13px;
  border:1px solid rgba(6,53,120,.18);
  border-radius:19px;
  background:linear-gradient(135deg,#063778 0%,#0a4fa7 55%,#1267c8 100%);
  color:#fff!important;
  text-decoration:none!important;
  box-shadow:0 14px 28px rgba(6,55,120,.22);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.reglamento-open-btn:hover,
.reglamento-open-btn:focus-visible{
  transform:translateY(-3px);
  box-shadow:0 19px 34px rgba(6,55,120,.30);
  filter:saturate(1.06);
  outline:none;
}
.reglamento-open-icon{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:15px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.20);
}
.reglamento-open-icon svg{
  width:29px;
  height:29px;
  fill:none;
  stroke:#fff;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.reglamento-open-icon svg path:first-child{
  fill:none;
}
.reglamento-open-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:3px;
}
.reglamento-open-copy strong{
  color:#fff;
  font-size:17px;
  line-height:1.15;
}
.reglamento-open-copy small{
  color:rgba(255,255,255,.78);
  font-size:12px;
  font-weight:700;
}
.reglamento-open-arrow{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:12px;
  background:rgba(255,255,255,.11);
}
.reglamento-open-arrow svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:#fff;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.reglamento-showcase-art{
  position:relative;
  display:grid;
  place-items:center;
  min-height:260px;
}
.reglamento-book-orbit{
  position:absolute;
  width:270px;
  height:270px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,rgba(255,255,255,.95) 0 39%,transparent 40%),
    conic-gradient(from 220deg,#dbeaff,#eef5ff,#d5e8ff,#ffe4e7,#dbeaff);
  opacity:.9;
}
.reglamento-book{
  position:relative;
  z-index:2;
  display:grid;
  place-items:center;
  width:178px;
  height:178px;
  border-radius:42px;
  background:linear-gradient(145deg,#0a4fa7,#082f70);
  box-shadow:0 24px 45px rgba(7,46,105,.24);
  transform:rotate(-2deg);
}
.reglamento-book svg{
  width:105px;
  height:105px;
  fill:none;
  stroke:#fff;
  stroke-width:4.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.reglamento-book-mark{
  position:absolute;
  top:0;
  right:31px;
  width:19px;
  height:54px;
  background:#ef233c;
  clip-path:polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);
}
.reglamento-art-label{
  position:absolute;
  z-index:3;
  right:5px;
  bottom:10px;
  color:rgba(7,46,105,.55);
  font-size:11px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:.12em;
  text-align:right;
}
@media(max-width:900px){
  .reglamento-showcase{
    grid-template-columns:1fr;
    min-height:0;
    padding:28px 24px 30px;
  }
  .reglamento-showcase-main{
    align-items:center;
    text-align:center;
    padding-left:4px;
  }
  .reglamento-brand{
    flex-direction:column;
    gap:10px;
  }
  .reglamento-intro{
    margin-bottom:20px;
  }
  .reglamento-showcase-art{
    min-height:210px;
    margin-top:-2px;
  }
  .reglamento-book-orbit{
    width:220px;
    height:220px;
  }
  .reglamento-book{
    width:145px;
    height:145px;
    border-radius:34px;
  }
  .reglamento-book svg{
    width:84px;
    height:84px;
  }
  .reglamento-art-label{
    right:0;
    bottom:0;
  }
}
@media(max-width:560px){
  .reglamento-showcase{
    padding:22px 16px 24px;
    border-radius:20px;
  }
  .reglamento-logo-ring{
    width:76px;
    height:76px;
    border-radius:20px;
  }
  .reglamento-logo-ring img{
    width:62px;
    height:62px;
  }
  .reglamento-open-btn{
    grid-template-columns:48px minmax(0,1fr) 32px;
    min-height:70px;
    padding:9px 10px;
    border-radius:17px;
    text-align:left;
  }
  .reglamento-open-icon{
    width:48px;
    height:48px;
  }
  .reglamento-open-copy strong{
    font-size:16px;
  }
  .reglamento-showcase-art{
    min-height:185px;
  }
  .reglamento-book-orbit{
    width:190px;
    height:190px;
  }
  .reglamento-book{
    width:126px;
    height:126px;
    border-radius:29px;
  }
  .reglamento-art-label{
    display:none;
  }
}


/* =========================================================
   GENERADOR DE OFICIOS · búsqueda en vivo · 2026-10-03
   ========================================================= */
.office-live-search-card{
  min-height:330px;
}
.office-live-search-card .field{
  margin-top:16px;
}
.office-live-results{
  min-height:190px;
  margin-top:16px;
  padding:14px;
  border:1px solid #d8e3f1;
  border-radius:16px;
  background:linear-gradient(180deg,#fbfdff 0%,#f7faff 100%);
}
.office-live-placeholder{
  min-height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:20px;
  color:#71809a;
  text-align:center;
  font-weight:700;
}
.office-live-not-found{
  color:#8b4a4a;
}
.office-live-loader{
  width:17px;
  height:17px;
  border:2px solid #c9d8ec;
  border-top-color:#0b438e;
  border-radius:50%;
  animation:officeLiveSpin .75s linear infinite;
}
@keyframes officeLiveSpin{to{transform:rotate(360deg)}}
.office-live-record{
  padding:17px;
  border:1px solid #cfdded;
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 22px rgba(7,46,105,.06);
}
.office-live-record+.office-live-record{
  margin-top:10px;
}
.office-live-record-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding-bottom:12px;
  border-bottom:1px solid #e3eaf3;
}
.office-live-kicker{
  display:block;
  margin-bottom:3px;
  color:#71809a;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}
.office-live-number{
  color:#072e69;
  font-size:19px;
}
.office-live-record-grid{
  display:grid;
  grid-template-columns:1.35fr .8fr 1fr;
  gap:10px;
  margin-top:13px;
}
.office-live-record-grid>div{
  min-width:0;
  padding:10px 11px;
  border-radius:10px;
  background:#f6f9fd;
}
.office-live-record-grid span{
  display:block;
  margin-bottom:4px;
  color:#6f7f98;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.office-live-record-grid strong{
  display:block;
  color:#15233b;
  font-size:12px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.office-live-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}
@media(max-width:720px){
  .office-live-search-card{min-height:0}
  .office-live-results{min-height:160px}
  .office-live-record-grid{grid-template-columns:1fr}
  .office-live-placeholder{min-height:130px}
}

/* =========================================================
   ADMIN · MENÚ LATERAL RESPONSIVO POR ANCHO Y ALTO
   2026-10-06
   Objetivo:
   - Evitar que las opciones inferiores queden cortadas.
   - Compactar automáticamente el menú en pantallas bajas.
   - Convertirlo en navegación horizontal desplazable en tablet/móvil.
   - Mantener siempre accesibles TODAS las opciones.
   ========================================================= */

/* Escritorio: el menú usa la altura REAL del viewport y nunca invade el contenido. */
@media (min-width:1121px){
  .admin-workspace{
    grid-template-columns:clamp(202px,18vw,230px) minmax(0,1fr)!important;
    min-width:0!important;
  }
  .admin-sidebar{
    top:var(--sicah-topbar-h,86px)!important;
    height:calc(100vh - var(--sicah-topbar-h,86px))!important;
    height:calc(100dvh - var(--sicah-topbar-h,86px))!important;
    max-height:calc(100vh - var(--sicah-topbar-h,86px))!important;
    max-height:calc(100dvh - var(--sicah-topbar-h,86px))!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .admin-content{
    min-width:0!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
}

/* Alturas habituales de laptop: compacta lo suficiente para mostrar el menú completo. */
@media (min-width:1121px) and (max-height:900px){
  .admin-sidebar{
    padding:9px 8px 10px 10px!important;
  }
  .admin-sidebar-nav{gap:0!important}
  .admin-side-home{margin-bottom:4px!important}
  .admin-side-group{
    padding:4px 0 2px!important;
  }
  .admin-side-group-title{
    padding:2px 8px 4px!important;
    font-size:8.3px!important;
    line-height:1.05!important;
    letter-spacing:.055em!important;
  }
  .admin-sidebar .admin-side-link{
    min-height:31px!important;
    padding:4px 8px!important;
    gap:7px!important;
    border-radius:9px!important;
    font-size:11px!important;
    line-height:1.05!important;
  }
  .admin-sidebar .admin-side-link .nav-svg,
  .admin-sidebar .admin-side-link .nav-svg svg{
    width:15px!important;
    height:15px!important;
  }
}

/* Pantallas con poca altura: conserva todas las opciones visibles sin cortar el final. */
@media (min-width:1121px) and (max-height:760px){
  .admin-sidebar{
    padding:6px 7px 7px 8px!important;
  }
  .admin-side-home{margin-bottom:2px!important}
  .admin-side-group{
    padding:2px 0 1px!important;
  }
  .admin-side-group-title{
    padding:1px 7px 2px!important;
    font-size:7.6px!important;
    line-height:1!important;
  }
  .admin-sidebar .admin-side-link{
    min-height:27px!important;
    padding:3px 7px!important;
    gap:6px!important;
    font-size:10.2px!important;
    border-radius:8px!important;
  }
  .admin-sidebar .admin-side-link .nav-svg,
  .admin-sidebar .admin-side-link .nav-svg svg{
    width:14px!important;
    height:14px!important;
  }
}

/* Alturas muy reducidas: último nivel de compactación + scroll vertical de respaldo. */
@media (min-width:1121px) and (max-height:650px){
  .admin-side-group-title{
    padding:1px 6px!important;
    font-size:7px!important;
  }
  .admin-sidebar .admin-side-link{
    min-height:24px!important;
    padding:2px 6px!important;
    gap:5px!important;
    font-size:9.5px!important;
  }
  .admin-sidebar .admin-side-link .nav-svg,
  .admin-sidebar .admin-side-link .nav-svg svg{
    width:13px!important;
    height:13px!important;
  }
}

/* Tablet y ventanas angostas: el menú deja de ocupar una columna completa.
   Se convierte en una barra horizontal táctil y desplazable, sin ocultar opciones. */
@media (max-width:1120px){
  .admin-workspace{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
  }
  .admin-sidebar{
    position:sticky!important;
    top:var(--sicah-topbar-h,55px)!important;
    z-index:75!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    padding:7px 8px!important;
    border-right:0!important;
    border-bottom:1px solid #dce6f2!important;
    box-shadow:0 4px 12px rgba(18,54,104,.045)!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:thin!important;
    scrollbar-gutter:auto!important;
  }
  .admin-sidebar-nav{
    display:flex!important;
    flex-direction:row!important;
    align-items:stretch!important;
    gap:7px!important;
    width:max-content!important;
    min-width:100%!important;
  }
  .admin-side-home{
    margin:0!important;
    align-self:flex-end!important;
  }
  .admin-side-group{
    display:flex!important;
    align-items:flex-end!important;
    gap:5px!important;
    padding:0 0 0 7px!important;
    border-top:0!important;
    border-left:1px solid #dce6f2!important;
  }
  .admin-side-group:first-of-type{
    padding-top:0!important;
    border-left:1px solid #dce6f2!important;
  }
  .admin-side-group-title{
    align-self:center!important;
    padding:0 4px!important;
    color:#657994!important;
    font-size:8px!important;
    writing-mode:vertical-rl!important;
    transform:rotate(180deg)!important;
    white-space:nowrap!important;
  }
  .admin-side-group-links{
    display:flex!important;
    flex-direction:row!important;
    gap:4px!important;
  }
  .admin-sidebar .admin-side-link{
    flex:0 0 auto!important;
    min-height:38px!important;
    padding:8px 10px!important;
    font-size:10px!important;
    gap:6px!important;
    border-radius:9px!important;
    white-space:nowrap!important;
  }
  .admin-sidebar .admin-side-link .nav-svg,
  .admin-sidebar .admin-side-link .nav-svg svg{
    width:15px!important;
    height:15px!important;
  }
  .admin-side-link:hover{transform:none!important}
  .admin-side-link.active{
    box-shadow:inset 0 -3px 0 #0b61d8,inset 0 0 0 1px rgba(93,145,222,.13)!important;
  }
  .admin-content{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:0 10px 26px!important;
    overflow-x:hidden!important;
  }
}

/* Teléfono: mayor área táctil, texto legible y desplazamiento suave. */
@media (max-width:640px){
  .admin-sidebar{
    padding:6px 7px!important;
  }
  .admin-sidebar-nav{gap:5px!important}
  .admin-side-group{gap:4px!important;padding-left:5px!important}
  .admin-side-group-title{font-size:7px!important;padding:0 2px!important}
  .admin-sidebar .admin-side-link{
    min-height:36px!important;
    padding:7px 9px!important;
    font-size:9.5px!important;
  }
  .admin-content{padding:0 8px 22px!important}
}



/* =========================================================
   SICAH · ADMIN RESPONSIVE V2 · 2026-10-07
   Corrección específica:
   - menú lateral completo en laptops/pantallas de poca altura;
   - nada queda debajo del borde inferior;
   - contenido ADMIN nunca se mete detrás del menú;
   - Inicio ADMIN respeta el ancho disponible.
   ========================================================= */

body.admin-layout-body{
  overflow-x:hidden!important;
}

body.admin-layout-body .admin-workspace{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}

body.admin-layout-body .admin-content{
  min-width:0!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}

/* Escritorio medio: dar más espacio real al contenido. */
@media (min-width:1121px) and (max-width:1400px){
  body.admin-layout-body .admin-workspace{
    grid-template-columns:205px minmax(0,1fr)!important;
  }
}

/* Escritorio: navegación siempre contenida dentro de la altura útil. */
@media (min-width:1121px){
  body.admin-layout-body .admin-sidebar{
    box-sizing:border-box!important;
    top:var(--sicah-topbar-h,86px)!important;
    height:calc(100dvh - var(--sicah-topbar-h,86px))!important;
    max-height:calc(100dvh - var(--sicah-topbar-h,86px))!important;
    min-height:0!important;
    padding-bottom:6px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin!important;
  }

  body.admin-layout-body .admin-sidebar-nav{
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
  }

  body.admin-layout-body .admin-side-link,
  body.admin-layout-body .admin-side-link > span:last-child{
    min-width:0!important;
  }
}

/* La altura de la captura mostrada por el usuario (≈824px)
   entra aquí: compactación fuerte pero aún legible. */
@media (min-width:1121px) and (max-height:900px){
  body.admin-layout-body .admin-sidebar{
    padding:5px 6px 6px 8px!important;
  }

  body.admin-layout-body .admin-side-home{
    margin-bottom:2px!important;
  }

  body.admin-layout-body .admin-side-group{
    padding:1px 0!important;
  }

  body.admin-layout-body .admin-side-group-title{
    padding:1px 7px 2px!important;
    font-size:7.3px!important;
    line-height:1!important;
    letter-spacing:.045em!important;
  }

  body.admin-layout-body .admin-side-group-links{
    gap:1px!important;
  }

  body.admin-layout-body .admin-sidebar .admin-side-link{
    min-height:26px!important;
    height:26px!important;
    padding:2px 7px!important;
    gap:6px!important;
    border-radius:7px!important;
    font-size:9.8px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }

  body.admin-layout-body .admin-sidebar .admin-side-link > span:last-child{
    display:block!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  body.admin-layout-body .admin-sidebar .admin-side-link .nav-svg,
  body.admin-layout-body .admin-sidebar .admin-side-link .nav-svg svg{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
  }
}

/* Pantallas todavía más bajas. */
@media (min-width:1121px) and (max-height:760px){
  body.admin-layout-body .admin-sidebar{
    padding:3px 5px 4px 7px!important;
  }

  body.admin-layout-body .admin-side-group-title{
    padding:1px 6px!important;
    font-size:6.6px!important;
  }

  body.admin-layout-body .admin-sidebar .admin-side-link{
    min-height:23px!important;
    height:23px!important;
    padding:1px 6px!important;
    gap:5px!important;
    font-size:9px!important;
  }

  body.admin-layout-body .admin-sidebar .admin-side-link .nav-svg,
  body.admin-layout-body .admin-sidebar .admin-side-link .nav-svg svg{
    width:12px!important;
    height:12px!important;
    min-width:12px!important;
  }
}

/* En el Inicio ADMIN el componente original usa 100vw.
   Esto impedía que el dashboard respetara la columna lateral.
   Se corrige también desde CSS como respaldo. */
body.admin-layout-body.page-inicio .home-ref.admin-home-compact{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  left:auto!important;
  right:auto!important;
  overflow:visible!important;
}

body.admin-layout-body.page-inicio .home-ref.admin-home-compact .home-ref-menu-wrap{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  min-width:0!important;
}

body.admin-layout-body.page-inicio .admin-home-groups,
body.admin-layout-body.page-inicio .admin-home-group,
body.admin-layout-body.page-inicio .admin-home-grid{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}

/* Ajuste automático según el ancho REAL del panel, no del monitor. */
body.admin-layout-body.page-inicio .admin-home-grid{
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
}

/* Laptop / ventana intermedia. */
@media (min-width:1121px) and (max-width:1400px){
  body.admin-layout-body.page-inicio .admin-home-grid{
    grid-template-columns:repeat(auto-fit,minmax(205px,1fr))!important;
  }

  body.admin-layout-body.page-inicio .home-ref.admin-home-compact .home-ref-module{
    min-width:0!important;
  }
}

/* Tablet: deja de existir la columna lateral fija y las tarjetas siguen encajando. */
@media (max-width:1120px){
  body.admin-layout-body.page-inicio .home-ref.admin-home-compact{
    width:100%!important;
    margin:0!important;
  }

  body.admin-layout-body.page-inicio .admin-home-grid{
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;
  }
}

@media (max-width:650px){
  body.admin-layout-body.page-inicio .admin-home-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media (max-width:420px){
  body.admin-layout-body.page-inicio .admin-home-grid{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   SICAH · FONDO DINÁMICO CONFIGURABLE · FIX 2026-10-07
   La imagen la define views.php según la configuración guardada.
   No volver a fijar aquí una URL de imagen.
   ========================================================= */
html body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3){
  background-position:center center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}

@media (max-width:780px){
  html body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3){
    background-position:center top!important;
    background-attachment:scroll!important;
  }
}


/* =========================================================
   SICAH · SUBTÍTULOS DE PÁGINA EN BLANCO · 2026-10-07
   Mejora de legibilidad sobre fondos fotográficos.
   Solo afecta al texto situado debajo del título principal
   de cada página. No modifica textos dentro de tarjetas.
   ========================================================= */
@media screen {
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .page-head p,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .page-head p *,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-period-page > .page-head p,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-report-ref > .page-head p,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-page-head p,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-page-head p * {
    color:#ffffff !important;
    text-shadow:0 2px 6px rgba(0,0,0,.62) !important;
  }
}


/* =========================================================
   SICAH · IDENTIDAD VISUAL MODERNA 2026
   Estilo institucional contemporáneo, limpio y accesible.
   No altera la lógica ni las vistas de impresión.
   ========================================================= */
@media screen {
  :root{
    --navy:#082f70;
    --navy-2:#0a63ca;
    --red:#e11f36;
    --red-2:#bd1528;
    --ink:#17233a;
    --muted:#66758e;
    --bg:#edf4fb;
    --card:rgba(255,255,255,.90);
    --line:rgba(91,122,164,.22);
    --shadow:0 18px 50px rgba(13,48,94,.10);
    --radius:20px;
  }

  body:not(.login-body):not(.login-body-v2):not(.login-body-v3){
    color:#17243a;
    letter-spacing:-.005em;
  }

  /* Barra superior: cristal institucional */
  .topbar.topbar-ref,
  .topbar{
    background:rgba(255,255,255,.86)!important;
    border-bottom:1px solid rgba(156,181,211,.28)!important;
    box-shadow:0 8px 30px rgba(16,55,104,.075)!important;
    backdrop-filter:blur(18px) saturate(1.18)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.18)!important;
  }
  .topbar-ref .brand-text strong{font-weight:900;letter-spacing:-.02em}
  .topbar-ref .nav-link-ref,
  .nav-link{
    transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease!important;
  }
  .topbar-ref .nav-link-ref:hover,
  .nav-link:hover{
    transform:translateY(-1px);
    background:rgba(232,242,255,.92)!important;
    color:#075dcc!important;
  }
  .topbar-ref .nav-link-ref.active,
  .nav-link.active{
    background:linear-gradient(135deg,#e7f1ff,#f5f9ff)!important;
    color:#075dcc!important;
    box-shadow:inset 0 0 0 1px rgba(65,126,214,.13),0 6px 16px rgba(30,86,157,.06)!important;
  }
  .topbar-ref .user-chip-ref,
  .user-chip{
    background:rgba(247,250,255,.84)!important;
    border-color:rgba(167,191,220,.34)!important;
    box-shadow:0 7px 20px rgba(24,62,110,.05)!important;
  }

  /* Encabezado de página: una banda clara, reconocible e intuitiva */
  .page-head{
    align-items:center!important;
    padding:15px 17px!important;
    margin-bottom:18px!important;
    border:1px solid rgba(255,255,255,.20)!important;
    border-radius:20px!important;
    background:linear-gradient(110deg,rgba(7,43,96,.90),rgba(8,83,170,.76) 62%,rgba(18,105,205,.58))!important;
    box-shadow:0 16px 36px rgba(7,45,97,.16)!important;
    backdrop-filter:blur(13px) saturate(1.12)!important;
    -webkit-backdrop-filter:blur(13px) saturate(1.12)!important;
    overflow:hidden;
  }
  .page-head h1{
    color:#fff!important;
    font-weight:900!important;
    letter-spacing:-.035em!important;
    text-shadow:0 3px 14px rgba(0,26,69,.18)!important;
  }
  .page-head p,
  .page-head p *{
    color:rgba(255,255,255,.94)!important;
    text-shadow:0 2px 8px rgba(0,23,60,.28)!important;
    font-weight:500!important;
  }
  .page-head .home-link,
  .home-link{
    color:#fff!important;
    background:rgba(255,255,255,.14)!important;
    border:1px solid rgba(255,255,255,.24)!important;
    box-shadow:0 8px 18px rgba(0,27,66,.10)!important;
    backdrop-filter:blur(8px)!important;
  }
  .page-head .home-link:hover{background:rgba(255,255,255,.22)!important;transform:translateY(-1px)}

  /* Superficies: menos blancas, más ligeras y con profundidad contenida */
  .card,
  .table-shell,
  .period-card,
  .menu-card,
  .event-card,
  .info-ref-card,
  .metric,
  .qr-box,
  .modal{
    border-color:rgba(102,134,177,.20)!important;
    box-shadow:0 16px 42px rgba(19,55,101,.085)!important;
  }
  .card,
  .period-card,
  .event-card,
  .info-ref-card,
  .modal{
    background:rgba(255,255,255,.90)!important;
    backdrop-filter:blur(16px) saturate(1.06)!important;
    -webkit-backdrop-filter:blur(16px) saturate(1.06)!important;
  }
  .card{border-radius:20px!important}
  .card h2,.card h3,.section-title h2{letter-spacing:-.018em}
  .subtle,.muted,.help{color:#66758e!important}

  /* Botones: jerarquía más clara */
  .btn{
    min-height:41px;
    border-radius:12px!important;
    padding:9px 15px!important;
    font-weight:850!important;
    letter-spacing:-.01em;
    transition:transform .17s ease,box-shadow .17s ease,filter .17s ease,background .17s ease!important;
  }
  .btn:hover{transform:translateY(-2px)!important}
  .btn:active{transform:translateY(0)!important}
  .btn-primary{
    background:linear-gradient(135deg,#08397f,#0b61c8)!important;
    box-shadow:0 9px 20px rgba(7,73,159,.18)!important;
  }
  .btn-primary:hover{filter:brightness(1.045)}
  .btn-red{background:linear-gradient(135deg,#e2243b,#c9152b)!important;box-shadow:0 8px 18px rgba(201,21,43,.14)!important}
  .btn-success{background:linear-gradient(135deg,#14824d,#19a465)!important}
  .btn-warning{background:linear-gradient(135deg,#a96300,#d2840b)!important}
  .btn-ghost{background:rgba(255,255,255,.68)!important;border-color:rgba(102,135,178,.26)!important}
  .btn-sm{min-height:34px!important;padding:6px 10px!important}

  /* Formularios: limpios, táctiles y fáciles de escanear */
  label{color:#31425c!important;font-weight:850!important;letter-spacing:.035em!important}
  .input,select,textarea{
    min-height:44px;
    border-color:rgba(119,149,188,.34)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.88)!important;
    box-shadow:inset 0 1px 2px rgba(18,51,92,.025)!important;
    transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
  }
  .input:hover,select:hover,textarea:hover{border-color:rgba(72,118,180,.48)!important}
  .input:focus,select:focus,textarea:focus{
    border-color:#2b73cf!important;
    background:#fff!important;
    box-shadow:0 0 0 4px rgba(34,110,205,.10)!important;
  }

  /* Tablas: lectura más cómoda */
  .table-shell{
    border-radius:17px!important;
    background:rgba(255,255,255,.91)!important;
    overflow:auto;
  }
  .table th{
    background:linear-gradient(180deg,#eef5fd,#e8f0fa)!important;
    color:#223d65!important;
    font-weight:900!important;
    border-bottom-color:rgba(101,135,179,.22)!important;
  }
  .table td{border-bottom-color:rgba(110,138,172,.13)!important}
  .table tbody tr:nth-child(even) td{background:rgba(246,249,253,.54)}
  .table tbody tr:hover td{background:rgba(230,241,255,.72)!important}

  /* Badges / estados */
  .badge{border:1px solid rgba(100,125,160,.10);padding:5px 9px!important}
  .badge.regular{background:#ddf6e7!important;color:#14653a!important}
  .badge.irregular{background:#ffe2e5!important;color:#991b27!important}
  .badge.pending{background:#fff2d4!important;color:#825600!important}
  .badge.blue{background:#e3effe!important;color:#124d92!important}

  /* Módulos del inicio: sensación de producto, no de plantilla */
  .home-ref-menu-wrap{
    background:rgba(255,255,255,.90)!important;
    border-color:rgba(136,166,201,.25)!important;
    box-shadow:0 26px 65px rgba(8,48,100,.14)!important;
    backdrop-filter:blur(18px) saturate(1.08)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.08)!important;
  }
  .home-ref-module{
    border-color:rgba(116,149,191,.22)!important;
    background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,249,255,.91))!important;
    box-shadow:0 10px 28px rgba(17,63,119,.055)!important;
  }
  .home-ref-module:hover{
    transform:translateY(-5px) scale(1.008)!important;
    border-color:rgba(73,126,194,.34)!important;
    box-shadow:0 18px 40px rgba(13,68,137,.13)!important;
  }
  .home-ref-module-icon{border-radius:18px!important}

  /* Menú lateral del administrador */
  body.admin-layout-body .admin-sidebar{
    background:rgba(255,255,255,.88)!important;
    border-right:1px solid rgba(126,157,195,.20)!important;
    box-shadow:8px 0 30px rgba(14,52,98,.045)!important;
    backdrop-filter:blur(18px) saturate(1.08)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.08)!important;
  }
  body.admin-layout-body .admin-side-link{
    border-radius:10px!important;
    transition:background .16s ease,color .16s ease,transform .16s ease!important;
  }
  body.admin-layout-body .admin-side-link:hover{
    background:#eef5ff!important;
    color:#075dc8!important;
    transform:translateX(2px);
  }
  body.admin-layout-body .admin-side-link.active{
    background:linear-gradient(135deg,#e4f0ff,#f3f8ff)!important;
    color:#075dca!important;
    box-shadow:inset 3px 0 0 #0b68db!important;
  }
  body.admin-layout-body .admin-side-group-title{color:#61728d!important;letter-spacing:.075em!important}

  /* Tarjetas de formatos */
  .format-card{
    border-color:rgba(102,137,181,.22)!important;
    background:rgba(255,255,255,.92)!important;
    box-shadow:0 16px 38px rgba(18,58,108,.085)!important;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
  }
  .format-card:hover{
    transform:translateY(-4px);
    border-color:rgba(70,120,187,.35)!important;
    box-shadow:0 22px 48px rgba(16,66,132,.14)!important;
  }
  .format-thumb-link{border-radius:14px!important;overflow:hidden}
  .format-description{background:rgba(248,250,253,.82)!important}

  /* Indicadores y resúmenes */
  .metric,.kpi{border-radius:17px!important}
  .kpi{background:linear-gradient(135deg,#082f70,#0a5dbd)!important;box-shadow:0 15px 32px rgba(8,60,130,.13)}
  .kpi.red{background:linear-gradient(135deg,#d71931,#b51025)!important}

  /* Ventanas modales */
  .modal-backdrop{background:rgba(7,20,42,.50)!important;backdrop-filter:blur(5px)!important}
  .modal{border:1px solid rgba(255,255,255,.78)!important;border-radius:22px!important}
  .modal-close{transition:transform .16s ease,background .16s ease}
  .modal-close:hover{transform:rotate(6deg);background:#e7eef8!important}

  /* Pie de página */
  .footer{
    background:rgba(255,255,255,.86)!important;
    border-top-color:rgba(130,159,194,.22)!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
  }

  /* Scrollbar discreto */
  *{scrollbar-color:#afc1d8 transparent;scrollbar-width:thin}
  *::-webkit-scrollbar{width:9px;height:9px}
  *::-webkit-scrollbar-track{background:transparent}
  *::-webkit-scrollbar-thumb{background:#b4c5d9;border-radius:999px;border:2px solid transparent;background-clip:padding-box}
  *::-webkit-scrollbar-thumb:hover{background:#8fa9c7;background-clip:padding-box}
}

@media screen and (max-width:780px){
  .page-head{padding:13px 14px!important;border-radius:16px!important}
  .page-head h1{font-size:27px!important}
  .card{border-radius:17px!important}
  .btn{min-height:42px}
  .topbar.topbar-ref{backdrop-filter:blur(14px) saturate(1.1)!important;-webkit-backdrop-filter:blur(14px) saturate(1.1)!important}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* =========================================================
   SICAH · IONOS-INSPIRED VISUAL SYSTEM · 2026-10-07
   Visual-only layer. No business logic, permissions, routes,
   database flow, forms or application structure are changed.
   Uses SICAH/STUNAM identity; no IONOS logos, copy or images.
   ========================================================= */
:root{
  --ionos-navy:#001b44;
  --ionos-blue:#003d8f;
  --ionos-blue-2:#0b5bd3;
  --ionos-blue-soft:#eaf2ff;
  --ionos-sky:#f4f8ff;
  --ionos-bg:#f7f8fa;
  --ionos-card:#ffffff;
  --ionos-line:#d7dde7;
  --ionos-line-strong:#aab4c3;
  --ionos-text:#001b44;
  --ionos-body:#27364b;
  --ionos-muted:#657287;
  --ionos-success:#0b7d4f;
  --ionos-warning:#9b6500;
  --ionos-danger:#c91d36;
  --ionos-radius:10px;
  --ionos-shadow:0 4px 18px rgba(0,27,68,.07);
}

@media screen{
  html,body{font-family:"Overpass","Segoe UI",Arial,Helvetica,sans-serif!important;}
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3){color:var(--ionos-body)!important;background-color:var(--ionos-bg)!important;letter-spacing:0!important;}

  .topbar,.topbar.topbar-ref{background:#fff!important;border-bottom:1px solid var(--ionos-line)!important;box-shadow:0 1px 0 rgba(0,27,68,.025)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
  .topbar-inner{max-width:1440px!important;padding:10px 22px!important;gap:18px!important}
  .brand{gap:11px!important}.brand img{width:48px!important;height:48px!important}
  .brand-text strong{color:var(--ionos-navy)!important;font-size:15px!important;font-weight:800!important;letter-spacing:-.01em!important}
  .brand-text span{color:var(--ionos-muted)!important;font-size:11px!important}
  .topnav{gap:2px!important}
  .nav-link,.topbar-ref .nav-link-ref{color:var(--ionos-navy)!important;background:transparent!important;border:0!important;border-radius:6px!important;padding:10px 11px!important;font-weight:700!important;box-shadow:none!important;transform:none!important}
  .nav-link:hover,.topbar-ref .nav-link-ref:hover{background:#f3f6fa!important;color:var(--ionos-blue)!important;transform:none!important}
  .nav-link.active,.topbar-ref .nav-link-ref.active{background:var(--ionos-blue-soft)!important;color:var(--ionos-blue)!important;box-shadow:none!important}
  .nav-svg{color:currentColor!important}
  .user-chip,.topbar-ref .user-chip-ref{background:#fff!important;border:1px solid var(--ionos-line)!important;border-radius:8px!important;box-shadow:none!important}
  .user-dot{background:var(--ionos-blue)!important}.user-meta strong{color:var(--ionos-navy)!important}.user-meta span{color:var(--ionos-muted)!important}.user-logout-inline{color:var(--ionos-danger)!important}

  .container{width:min(1380px,calc(100% - 40px))!important;margin:30px auto 52px!important}
  .page-head{align-items:center!important;padding:6px 0 22px!important;margin-bottom:10px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:visible!important}
  .page-head h1{color:var(--ionos-navy)!important;font-size:clamp(30px,3.2vw,46px)!important;line-height:1.03!important;font-weight:800!important;letter-spacing:-.035em!important;text-shadow:none!important}
  .page-head p,.page-head p *{color:var(--ionos-muted)!important;font-size:15px!important;font-weight:400!important;text-shadow:none!important;margin-top:8px!important}
  .page-head .home-link,.home-link{width:42px!important;height:42px!important;background:#fff!important;color:var(--ionos-blue)!important;border:1px solid var(--ionos-line)!important;border-radius:8px!important;box-shadow:none!important;backdrop-filter:none!important}
  .page-head .home-link:hover{background:var(--ionos-blue-soft)!important;transform:none!important}

  .card,.period-card,.event-card,.info-ref-card,.modal,.menu-card,.metric,.qr-box{background:var(--ionos-card)!important;border:1px solid var(--ionos-line)!important;border-radius:var(--ionos-radius)!important;box-shadow:var(--ionos-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .card{padding:24px!important}.card h2,.card h3,.section-title h2,.section-title h3{color:var(--ionos-navy)!important;letter-spacing:-.02em!important}.card h2{font-size:21px!important;font-weight:800!important}.card h3{font-size:16px!important;font-weight:800!important}.subtle,.muted,.help{color:var(--ionos-muted)!important}.divider{border-color:var(--ionos-line)!important}

  .btn{min-height:42px!important;border-radius:5px!important;padding:9px 16px!important;font-weight:750!important;letter-spacing:0!important;box-shadow:none!important;transition:background .14s ease,color .14s ease,border-color .14s ease!important;transform:none!important}
  .btn:hover,.btn:active{transform:none!important}.btn-primary{background:var(--ionos-blue)!important;color:#fff!important;border:1px solid var(--ionos-blue)!important}.btn-primary:hover{background:#002f72!important;border-color:#002f72!important;filter:none!important}
  .btn-ghost{background:#fff!important;color:var(--ionos-blue)!important;border:1px solid var(--ionos-blue)!important}.btn-ghost:hover{background:var(--ionos-blue-soft)!important}.btn-red{background:var(--ionos-danger)!important;border:1px solid var(--ionos-danger)!important;color:#fff!important;box-shadow:none!important}.btn-success{background:var(--ionos-success)!important;border:1px solid var(--ionos-success)!important;color:#fff!important}.btn-warning{background:#fff!important;color:var(--ionos-warning)!important;border:1px solid #d5a33d!important}.btn-sm{min-height:34px!important;border-radius:4px!important;padding:6px 10px!important}

  label{color:var(--ionos-navy)!important;font-weight:750!important;letter-spacing:.02em!important}
  .input,select,textarea{min-height:46px!important;border:1px solid #9aa6b5!important;border-radius:5px!important;background:#fff!important;color:var(--ionos-body)!important;box-shadow:none!important}
  .input:hover,select:hover,textarea:hover{border-color:#6d7b90!important}.input:focus,select:focus,textarea:focus{border-color:var(--ionos-blue-2)!important;box-shadow:0 0 0 2px rgba(11,91,211,.16)!important;background:#fff!important}textarea{min-height:120px!important}

  .alert{border-radius:5px!important;box-shadow:none!important;font-weight:600!important;border-width:1px!important;border-left-width:4px!important}.alert-success{background:#eef8f4!important;color:#075f3b!important;border-color:#58a989!important}.alert-error{background:#fff2f4!important;color:#8d1830!important;border-color:#d96a7e!important}.alert-warning{background:#fff8e8!important;color:#7a5200!important;border-color:#d8a94b!important}.alert-info{background:#eef5ff!important;color:#003d8f!important;border-color:#6a9ee2!important}

  .table-shell{border:1px solid var(--ionos-line)!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}.table th{background:#f2f4f7!important;color:var(--ionos-navy)!important;font-weight:800!important;border-bottom:1px solid var(--ionos-line)!important}.table td{border-bottom:1px solid #edf0f4!important;color:#29384c!important}.table tbody tr:nth-child(even) td{background:#fbfcfd!important}.table tbody tr:hover td{background:#f2f7ff!important}

  .badge{border-radius:4px!important;border:1px solid transparent!important;font-weight:800!important;box-shadow:none!important}.badge.regular{background:#e8f7f0!important;color:#096642!important;border-color:#b7e4d1!important}.badge.irregular{background:#fff0f2!important;color:#a31831!important;border-color:#f3c2cb!important}.badge.pending{background:#fff7df!important;color:#805a00!important;border-color:#efd78e!important}.badge.blue{background:#edf4ff!important;color:#003d8f!important;border-color:#c9dcfa!important}.badge.dark{background:#f0f2f5!important;color:#40506a!important;border-color:#d9dee6!important}

  .metric,.kpi{border-radius:8px!important;border:1px solid var(--ionos-line)!important;box-shadow:none!important}.metric .label{color:var(--ionos-muted)!important}.metric .value{color:var(--ionos-navy)!important}.metric.turq,.metric.purple,.metric.red,.metric.green{background:#fff!important}.kpi,.kpi.red{background:var(--ionos-navy)!important;color:#fff!important;box-shadow:none!important}

  .home-ref-menu-wrap{background:#fff!important;border:1px solid var(--ionos-line)!important;border-radius:12px!important;box-shadow:var(--ionos-shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .home-ref-module{background:#fff!important;border:1px solid var(--ionos-line)!important;border-radius:8px!important;box-shadow:none!important;transform:none!important;transition:border-color .15s ease,background .15s ease!important}
  .home-ref-module:hover{background:#f8fbff!important;border-color:#89acd9!important;box-shadow:none!important;transform:none!important}.home-ref-module-glow{display:none!important}.home-ref-module-icon{background:var(--ionos-blue)!important;color:#fff!important;border-radius:6px!important;box-shadow:none!important}.home-ref-module-copy strong{color:var(--ionos-navy)!important;font-weight:800!important}.home-ref-module-copy span{color:var(--ionos-muted)!important}.admin-home-group-head{color:var(--ionos-muted)!important;font-weight:800!important}.admin-home-group-head:after{background:var(--ionos-line)!important}

  .home-ref-hero{border-radius:12px!important;box-shadow:none!important;border:1px solid var(--ionos-line)!important}.home-ref-hero:before{background:linear-gradient(90deg,rgba(0,27,68,.88),rgba(0,61,143,.58) 62%,rgba(0,61,143,.10))!important}.home-ref-copy h1,.home-ref-copy h2{color:#fff!important}.home-ref-logo-card{border-radius:8px!important;box-shadow:none!important}

  .format-card{background:#fff!important;border:1px solid var(--ionos-line)!important;border-radius:8px!important;box-shadow:none!important;transform:none!important}.format-card:hover{border-color:#8eaed7!important;box-shadow:none!important;transform:none!important}.format-card-title{color:var(--ionos-navy)!important}.format-thumb-link{border-radius:5px!important;background:#f7f8fa!important}.format-description{background:#f7f8fa!important;color:#4f5e73!important;border-radius:5px!important}

  body.admin-layout-body .admin-sidebar{background:#fff!important;border-right:1px solid var(--ionos-line)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.admin-side-group-title{color:#7a8798!important;font-weight:800!important;letter-spacing:.06em!important}.admin-side-link{color:var(--ionos-navy)!important;border-radius:5px!important;box-shadow:none!important;transform:none!important}.admin-side-link:hover{background:#f3f6fa!important;color:var(--ionos-blue)!important;transform:none!important}.admin-side-link.active{background:var(--ionos-blue-soft)!important;color:var(--ionos-blue)!important;box-shadow:inset 3px 0 0 var(--ionos-blue)!important}

  .modal-backdrop{background:rgba(0,27,68,.50)!important;backdrop-filter:none!important}.modal{border-radius:8px!important;border:1px solid var(--ionos-line)!important;box-shadow:0 18px 55px rgba(0,27,68,.18)!important}.modal-close{border-radius:4px!important}
  .footer{background:#fff!important;border-top:1px solid var(--ionos-line)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;color:var(--ionos-muted)!important}

  body.login-body-v3{background:#f7f8fa!important;color:var(--ionos-body)!important}body.login-body-v3 .sicah-login-v3{background:#f7f8fa!important}
  body.login-body-v3 .sicah-login-v3__visual:before{background:linear-gradient(90deg,rgba(0,27,68,.78),rgba(0,61,143,.34) 55%,rgba(0,61,143,.08))!important}
  body.login-body-v3 .sicah-login-v3__shape,body.login-body-v3 .sicah-login-v3__accent,body.login-body-v3 .sicah-login-v3__bluebar,body.login-body-v3 .sicah-login-v3__redbar{display:none!important}
  body.login-body-v3 .sicah-login-v3__brand{left:7%!important;bottom:8%!important;text-shadow:none!important}body.login-body-v3 .sicah-login-v3__brand h1{font-weight:800!important;letter-spacing:-.04em!important}body.login-body-v3 .sicah-login-v3__redline{height:4px!important;width:82px!important;background:#fff!important;margin:16px 0 14px!important}body.login-body-v3 .sicah-login-v3__brand p{font-weight:400!important;line-height:1.3!important}
  body.login-body-v3 .sicah-login-v3__panel{background:#f7f8fa!important;padding:5vh 4vw!important}body.login-body-v3 .sicah-login-v3__panel:before{display:none!important}
  body.login-body-v3 .sicah-login-v3__card{width:min(560px,100%)!important;background:#fff!important;border:1px solid var(--ionos-line)!important;border-radius:10px!important;box-shadow:0 8px 30px rgba(0,27,68,.08)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:36px 34px 30px!important}
  body.login-body-v3 .sicah-login-v3__logo{width:170px!important}body.login-body-v3 .sicah-login-v3__titleline{display:none!important}body.login-body-v3 .sicah-login-v3__card h2{color:var(--ionos-navy)!important;font-size:30px!important;font-weight:800!important;letter-spacing:-.03em!important}body.login-body-v3 .sicah-login-v3__tagline{color:var(--ionos-muted)!important;margin:10px 0 28px!important}
  body.login-body-v3 .sicah-login-v3__field label{color:var(--ionos-navy)!important;font-size:12px!important;letter-spacing:.02em!important}body.login-body-v3 .sicah-login-v3__input{height:58px!important;border:1px solid #9aa6b5!important;border-radius:5px!important;background:#fff!important;color:var(--ionos-body)!important;box-shadow:none!important}body.login-body-v3 .sicah-login-v3__input:focus{border-color:var(--ionos-blue-2)!important;box-shadow:0 0 0 2px rgba(11,91,211,.16)!important}body.login-body-v3 .sicah-login-v3__icon,body.login-body-v3 .sicah-login-v3__toggle{color:var(--ionos-blue)!important}
  body.login-body-v3 .sicah-login-v3__submit{height:58px!important;border-radius:5px!important;background:var(--ionos-blue)!important;box-shadow:none!important;font-size:18px!important;font-weight:800!important}body.login-body-v3 .sicah-login-v3__submit:hover{background:#002f72!important}body.login-body-v3 .sicah-login-v3__unidos{color:var(--ionos-navy)!important;font-size:14px!important;letter-spacing:.12em!important}body.login-body-v3 .sicah-login-v3__unidos span{background:var(--ionos-line)!important}body.login-body-v3 .sicah-login-v3__copyright{color:var(--ionos-muted)!important}

  a:focus-visible,button:focus-visible,.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(11,91,211,.28)!important;outline-offset:2px!important}
}

@media screen and (max-width:900px){.container{width:min(100% - 24px,1380px)!important;margin-top:20px!important}.page-head{padding-bottom:16px!important}.page-head h1{font-size:32px!important}.card{padding:18px!important}body.login-body-v3 .sicah-login-v3__card{border-radius:8px!important;margin-top:-10px!important}}
@media screen and (max-width:560px){.container{width:calc(100% - 16px)!important}.page-head h1{font-size:28px!important}.page-head p{font-size:13px!important}.card{padding:15px!important;border-radius:8px!important}.btn{width:auto!important}body.login-body-v3 .sicah-login-v3__card{padding:26px 18px 24px!important}body.login-body-v3 .sicah-login-v3__card h2{font-size:25px!important}}
@media print{.page-head{background:transparent!important;border:0!important;box-shadow:none!important}}


/* =========================================================
   SICAH · MONDAY-INSPIRED EXPERIENCE SYSTEM · 2026-10-07
   Capa exclusivamente visual.
   Inspirada en la claridad, color, jerarquía y UX de monday.com.
   No copia logotipos, textos, ilustraciones ni recursos de monday.com.
   ========================================================= */
:root{
  --md-ink:#323338;
  --md-ink-2:#4b4c51;
  --md-muted:#676879;
  --md-muted-2:#9699a6;
  --md-bg:#f6f7fb;
  --md-surface:#ffffff;
  --md-surface-soft:#f8f9fc;
  --md-line:#e6e9ef;
  --md-line-strong:#d0d4df;
  --md-purple:#6161ff;
  --md-purple-dark:#4c4cec;
  --md-purple-soft:#eeeeff;
  --md-blue:#579bfc;
  --md-blue-soft:#eaf3ff;
  --md-green:#00c875;
  --md-green-soft:#e6f8f0;
  --md-yellow:#fdab3d;
  --md-yellow-soft:#fff5e5;
  --md-red:#e2445c;
  --md-red-soft:#fdecef;
  --md-pink:#ff5ac4;
  --md-violet:#a25ddc;
  --md-cyan:#66ccff;
  --md-radius-xs:8px;
  --md-radius-sm:10px;
  --md-radius:14px;
  --md-radius-lg:20px;
  --md-shadow-sm:0 2px 10px rgba(50,51,56,.05);
  --md-shadow:0 8px 26px rgba(50,51,56,.08);
  --md-shadow-lg:0 18px 46px rgba(50,51,56,.12);
}

@media screen{
  html,body{
    font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;
  }

  body:not(.login-body):not(.login-body-v2):not(.login-body-v3){
    color:var(--md-ink)!important;
    background-color:var(--md-bg)!important;
    letter-spacing:0!important;
  }

  /* Cabecera superior */
  .topbar,.topbar.topbar-ref{
    background:rgba(255,255,255,.96)!important;
    border-bottom:1px solid var(--md-line)!important;
    box-shadow:0 2px 16px rgba(50,51,56,.045)!important;
    backdrop-filter:blur(16px) saturate(1.15)!important;
    -webkit-backdrop-filter:blur(16px) saturate(1.15)!important;
  }
  .topbar-inner{
    max-width:1480px!important;
    padding:10px 22px!important;
    gap:18px!important;
  }
  .brand{gap:12px!important}
  .brand img{
    width:50px!important;
    height:50px!important;
    object-fit:contain!important;
  }
  .brand-text strong{
    color:var(--md-ink)!important;
    font-size:15px!important;
    font-weight:800!important;
    letter-spacing:-.015em!important;
  }
  .brand-text span{
    color:var(--md-muted)!important;
    font-size:11px!important;
    font-weight:600!important;
  }

  .topnav{gap:4px!important}
  .nav-link,.topbar-ref .nav-link-ref{
    min-height:40px!important;
    padding:9px 12px!important;
    border:0!important;
    border-radius:9px!important;
    background:transparent!important;
    color:var(--md-ink)!important;
    font-weight:650!important;
    box-shadow:none!important;
    transform:none!important;
    transition:background .15s ease,color .15s ease,transform .15s ease!important;
  }
  .nav-link:hover,.topbar-ref .nav-link-ref:hover{
    background:#f0f1f5!important;
    color:var(--md-ink)!important;
    transform:translateY(-1px)!important;
  }
  .nav-link.active,.topbar-ref .nav-link-ref.active{
    background:var(--md-purple-soft)!important;
    color:var(--md-purple-dark)!important;
    box-shadow:inset 0 0 0 1px rgba(97,97,255,.10)!important;
  }
  .nav-svg{color:currentColor!important}

  .user-chip,.topbar-ref .user-chip-ref{
    background:#fff!important;
    border:1px solid var(--md-line)!important;
    border-radius:12px!important;
    box-shadow:var(--md-shadow-sm)!important;
  }
  .user-dot{
    background:linear-gradient(135deg,var(--md-purple),var(--md-blue))!important;
    color:#fff!important;
    box-shadow:none!important;
  }
  .user-meta strong{color:var(--md-ink)!important}
  .user-meta span{color:var(--md-muted)!important}
  .user-logout-inline{color:var(--md-red)!important}

  /* Espacio principal */
  .container{
    width:min(1440px,calc(100% - 42px))!important;
    margin:28px auto 54px!important;
  }

  /* Encabezados de página: bloque limpio tipo producto SaaS */
  .page-head,
  .capture-page-head{
    position:relative!important;
    overflow:hidden!important;
    padding:20px 22px 20px 26px!important;
    margin-bottom:18px!important;
    border:1px solid rgba(230,233,239,.92)!important;
    border-radius:var(--md-radius-lg)!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:var(--md-shadow)!important;
    backdrop-filter:blur(14px) saturate(1.08)!important;
    -webkit-backdrop-filter:blur(14px) saturate(1.08)!important;
  }
  .page-head:before,
  .capture-page-head:before{
    content:"";
    position:absolute;
    left:0;
    top:16px;
    bottom:16px;
    width:5px;
    border-radius:0 999px 999px 0;
    background:linear-gradient(180deg,var(--md-purple) 0 25%,var(--md-blue) 25% 50%,var(--md-green) 50% 75%,var(--md-yellow) 75% 100%);
  }
  .page-head h1,
  .capture-page-head h1{
    margin:0!important;
    color:var(--md-ink)!important;
    font-size:clamp(30px,2.55vw,42px)!important;
    font-weight:800!important;
    line-height:1.03!important;
    letter-spacing:-.045em!important;
  }
  .page-head p,
  .page-head p *,
  .capture-page-head p,
  .capture-page-head p *{
    color:var(--md-muted)!important;
    text-shadow:none!important;
    font-size:14px!important;
    line-height:1.45!important;
    font-weight:500!important;
  }

  /* Tarjetas */
  .card,
  .event-card,
  .capture-panel,
  .info-ref-card,
  .historic-results-card,
  .office-live-search-card,
  .contact-section,
  .reglamento-showcase{
    border:1px solid var(--md-line)!important;
    border-radius:var(--md-radius-lg)!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:var(--md-shadow-sm)!important;
  }
  .card{
    padding:22px!important;
    transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
  }
  .card:hover{
    border-color:#d8dce7!important;
    box-shadow:var(--md-shadow)!important;
  }
  .card h2,.card h3,
  .section-title h2,.section-title h3{
    color:var(--md-ink)!important;
    font-weight:800!important;
    letter-spacing:-.025em!important;
  }
  .subtle,.muted,.help{
    color:var(--md-muted)!important;
  }
  .divider{border-color:var(--md-line)!important}

  /* Botones */
  .btn{
    min-height:40px!important;
    border-radius:10px!important;
    padding:9px 15px!important;
    font-weight:700!important;
    letter-spacing:-.01em!important;
    box-shadow:none!important;
    transition:transform .14s ease,box-shadow .14s ease,background .14s ease,border-color .14s ease,color .14s ease!important;
  }
  .btn:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 5px 14px rgba(50,51,56,.10)!important;
  }
  .btn:active{transform:translateY(0)!important}
  .btn-primary{
    border-color:var(--md-purple)!important;
    background:var(--md-purple)!important;
    color:#fff!important;
  }
  .btn-primary:hover{
    background:var(--md-purple-dark)!important;
    border-color:var(--md-purple-dark)!important;
  }
  .btn-ghost{
    background:#fff!important;
    color:var(--md-ink)!important;
    border-color:var(--md-line-strong)!important;
  }
  .btn-ghost:hover{
    background:#f6f7fb!important;
    border-color:#bfc4d0!important;
  }
  .btn-success{
    background:var(--md-green)!important;
    border-color:var(--md-green)!important;
    color:#fff!important;
  }
  .btn-warning{
    background:var(--md-yellow)!important;
    border-color:var(--md-yellow)!important;
    color:#5c3b00!important;
  }
  .btn-red{
    background:var(--md-red)!important;
    border-color:var(--md-red)!important;
    color:#fff!important;
  }
  .btn-sm{
    min-height:34px!important;
    border-radius:8px!important;
    padding:6px 10px!important;
  }

  /* Formularios */
  label{
    color:var(--md-ink)!important;
    font-size:12px!important;
    font-weight:700!important;
    letter-spacing:.015em!important;
  }
  .input,select,textarea{
    min-height:36px!important;
    border:1px solid #cfd3dc!important;
    border-radius:9px!important;
    background:#fff!important;
    color:var(--md-ink)!important;
    box-shadow:none!important;
    transition:border-color .14s ease,box-shadow .14s ease,background .14s ease!important;
  }
  .input:hover,select:hover,textarea:hover{
    border-color:#aeb4c2!important;
  }
  .input:focus,select:focus,textarea:focus{
    border-color:var(--md-purple)!important;
    box-shadow:0 0 0 3px rgba(97,97,255,.14)!important;
    background:#fff!important;
  }
  textarea{min-height:118px!important}

  /* Tabs y filtros */
  .tabs{
    gap:6px!important;
    padding:5px!important;
    border:1px solid var(--md-line)!important;
    border-radius:12px!important;
    background:#f4f5f8!important;
  }
  .tabs .btn,.tabs a{
    border-radius:8px!important;
  }
  .quick-filter,
  .status-stats-filter{
    gap:10px!important;
  }

  /* Tablas */
  .table-shell,
  .capture-table-shell,
  .info-ref-table-shell{
    border:1px solid var(--md-line)!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:auto!important;
  }
  .table th,
  .capture-table th,
  .info-ref-table th{
    background:#f5f6f8!important;
    color:var(--md-ink)!important;
    font-weight:750!important;
    border-bottom:1px solid var(--md-line)!important;
  }
  .table td,
  .capture-table td,
  .info-ref-table td{
    color:var(--md-ink-2)!important;
    border-bottom:1px solid #edf0f4!important;
  }
  .table tbody tr:nth-child(even) td,
  .capture-table tbody tr:nth-child(even) td{
    background:#fbfbfd!important;
  }
  .table tbody tr:hover td,
  .capture-table tbody tr:hover td{
    background:#f4f3ff!important;
  }

  /* Badges tipo monday */
  .badge,
  .capture-status-pill,
  .historic-status-badge{
    border-radius:999px!important;
    padding:5px 10px!important;
    border:1px solid transparent!important;
    font-weight:750!important;
    box-shadow:none!important;
  }
  .badge.regular,.historic-status-badge.regular{
    background:var(--md-green-soft)!important;
    color:#08724a!important;
    border-color:#b9ead7!important;
  }
  .badge.irregular,.historic-status-badge.irregular{
    background:var(--md-red-soft)!important;
    color:#a82f43!important;
    border-color:#f4c4cd!important;
  }
  .badge.pending,.historic-status-badge.pending{
    background:var(--md-yellow-soft)!important;
    color:#885700!important;
    border-color:#f3d79e!important;
  }
  .badge.blue{
    background:var(--md-blue-soft)!important;
    color:#2466b5!important;
    border-color:#cfe3ff!important;
  }
  .badge.dark{
    background:#f0f1f4!important;
    color:#555761!important;
    border-color:#dbdde4!important;
  }

  /* Avisos */
  .alert{
    border-radius:12px!important;
    border-width:1px!important;
    border-left-width:5px!important;
    box-shadow:none!important;
    font-weight:600!important;
  }
  .alert-success{background:var(--md-green-soft)!important;color:#08724a!important;border-color:var(--md-green)!important}
  .alert-error{background:var(--md-red-soft)!important;color:#a82f43!important;border-color:var(--md-red)!important}
  .alert-warning{background:var(--md-yellow-soft)!important;color:#7b5200!important;border-color:var(--md-yellow)!important}
  .alert-info{background:var(--md-blue-soft)!important;color:#275f9f!important;border-color:var(--md-blue)!important}

  /* Inicio: tarjetas coloridas, claras y con jerarquía visual */
  .home-ref-menu-wrap{
    border:1px solid var(--md-line)!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:var(--md-shadow-lg)!important;
    backdrop-filter:blur(18px) saturate(1.08)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.08)!important;
  }
  .home-ref-module{
    position:relative!important;
    border:1px solid var(--md-line)!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:hidden!important;
    transform:none!important;
    transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease!important;
  }
  .home-ref-module:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    right:0;
    height:5px;
    background:var(--module-accent,var(--md-purple));
  }
  .home-ref-module:hover{
    transform:translateY(-4px)!important;
    border-color:#d7d9e2!important;
    box-shadow:var(--md-shadow)!important;
  }
  .home-ref-module-glow{
    opacity:.10!important;
    display:block!important;
  }
  .home-ref-module-icon{
    border-radius:14px!important;
    box-shadow:none!important;
  }
  .home-ref-module-copy strong{
    color:var(--md-ink)!important;
    font-weight:800!important;
    letter-spacing:-.025em!important;
  }
  .home-ref-module-copy span{color:var(--md-muted)!important}

  .home-ref-module.tone-blue{--module-accent:var(--md-blue)}
  .home-ref-module.tone-red{--module-accent:var(--md-red)}
  .home-ref-module.tone-green{--module-accent:var(--md-green)}
  .home-ref-module.tone-purple{--module-accent:var(--md-violet)}
  .home-ref-module.tone-orange{--module-accent:var(--md-yellow)}
  .home-ref-module.tone-cyan{--module-accent:var(--md-cyan)}
  .home-ref-module.tone-indigo{--module-accent:var(--md-purple)}
  .home-ref-module.tone-teal{--module-accent:#00a9a5}
  .home-ref-module.tone-violet{--module-accent:var(--md-violet)}
  .home-ref-module.tone-slate{--module-accent:#7a7e93}
  .home-ref-module.tone-emerald{--module-accent:var(--md-green)}
  .home-ref-module.tone-rose{--module-accent:var(--md-pink)}

  .home-ref-module.tone-blue .home-ref-module-icon{background:var(--md-blue)!important}
  .home-ref-module.tone-red .home-ref-module-icon{background:var(--md-red)!important}
  .home-ref-module.tone-green .home-ref-module-icon{background:var(--md-green)!important}
  .home-ref-module.tone-purple .home-ref-module-icon{background:var(--md-violet)!important}
  .home-ref-module.tone-orange .home-ref-module-icon{background:var(--md-yellow)!important;color:#5d4000!important}
  .home-ref-module.tone-cyan .home-ref-module-icon{background:var(--md-cyan)!important;color:#164d67!important}
  .home-ref-module.tone-indigo .home-ref-module-icon{background:var(--md-purple)!important}
  .home-ref-module.tone-teal .home-ref-module-icon{background:#00a9a5!important}
  .home-ref-module.tone-violet .home-ref-module-icon{background:var(--md-violet)!important}
  .home-ref-module.tone-slate .home-ref-module-icon{background:#7a7e93!important}
  .home-ref-module.tone-emerald .home-ref-module-icon{background:var(--md-green)!important}
  .home-ref-module.tone-rose .home-ref-module-icon{background:var(--md-pink)!important}

  .admin-home-group-head{
    color:var(--md-muted)!important;
    font-weight:800!important;
  }
  .admin-home-group-head:after{background:var(--md-line)!important}

  /* Hero: conserva la imagen institucional, con tratamiento más monday-like */
  .home-ref-hero{
    overflow:hidden!important;
    border:1px solid rgba(255,255,255,.42)!important;
    border-radius:24px!important;
    box-shadow:var(--md-shadow-lg)!important;
  }
  .home-ref-hero:before{
    background:
      radial-gradient(circle at 82% 18%,rgba(255,90,196,.24),transparent 25%),
      radial-gradient(circle at 72% 72%,rgba(87,155,252,.22),transparent 28%),
      linear-gradient(90deg,rgba(50,51,56,.92) 0%,rgba(71,59,153,.76) 47%,rgba(97,97,255,.24) 78%,rgba(97,97,255,.06) 100%)!important;
  }
  .home-ref-copy h1,
  .home-ref-copy h2{color:#fff!important}
  .home-ref-copy p{color:rgba(255,255,255,.88)!important}
  .home-ref-logo-card{
    border-radius:18px!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 14px 36px rgba(0,0,0,.15)!important;
  }

  /* Captura y periodos */
  .capture-period-card,
  .capture-year-card,
  .capture-action,
  .capture-metric,
  .capture-missing-card{
    border:1px solid var(--md-line)!important;
    border-radius:16px!important;
    box-shadow:none!important;
    background:#fff!important;
  }
  .capture-period-card:hover,
  .capture-year-card:hover,
  .capture-action:hover{
    border-color:#d4d7e1!important;
    box-shadow:var(--md-shadow)!important;
  }
  .capture-action-icon,
  .capture-period-icon,
  .capture-year-icon{
    border-radius:12px!important;
    box-shadow:none!important;
  }
  .capture-panel{
    padding:20px!important;
  }
  .capture-panel-head{
    border-bottom:1px solid var(--md-line)!important;
    padding-bottom:12px!important;
  }
  .capture-panel-title,
  .capture-period-copy strong,
  .capture-year-title{color:var(--md-ink)!important}
  .capture-period-copy span,
  .capture-helper{color:var(--md-muted)!important}

  /* Métricas */
  .metric,.kpi,.status-stat{
    border:1px solid var(--md-line)!important;
    border-radius:16px!important;
    box-shadow:none!important;
  }
  .metric,.status-stat{
    background:#fff!important;
  }
  .metric .label,.status-stat-label{color:var(--md-muted)!important}
  .metric .value,.status-stat-number{color:var(--md-ink)!important}
  .kpi{
    background:linear-gradient(135deg,#5555f6,#7777ff)!important;
    color:#fff!important;
  }
  .kpi.red{background:linear-gradient(135deg,#df3d56,#ed5a70)!important}

  /* Administrador: menú lateral claro y muy legible */
  body.admin-layout-body .admin-sidebar{
    background:rgba(255,255,255,.96)!important;
    border-right:1px solid var(--md-line)!important;
    box-shadow:4px 0 20px rgba(50,51,56,.04)!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
  }
  body.admin-layout-body .admin-side-group-title{
    color:#9699a6!important;
    font-weight:800!important;
    letter-spacing:.07em!important;
  }
  body.admin-layout-body .admin-side-link{
    color:var(--md-ink)!important;
    border-radius:9px!important;
    box-shadow:none!important;
    transform:none!important;
  }
  body.admin-layout-body .admin-side-link:hover{
    background:#f2f3f6!important;
    color:var(--md-ink)!important;
    transform:translateX(2px)!important;
  }
  body.admin-layout-body .admin-side-link.active{
    background:var(--md-purple-soft)!important;
    color:var(--md-purple-dark)!important;
    box-shadow:inset 4px 0 0 var(--md-purple)!important;
  }
  body.admin-layout-body .admin-side-link.active .nav-svg{
    color:var(--md-purple)!important;
  }

  /* Formatos */
  .format-card{
    border:1px solid var(--md-line)!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  .format-card:hover{
    border-color:#d3d6df!important;
    box-shadow:var(--md-shadow)!important;
    transform:translateY(-3px)!important;
  }
  .format-card-title{color:var(--md-ink)!important}
  .format-thumb-link{
    border-radius:12px!important;
    background:#f6f7fb!important;
  }
  .format-description{
    border-radius:10px!important;
    background:#f7f8fb!important;
    color:var(--md-muted)!important;
  }

  /* Contacto */
  .contact-person-card,
  .contact-admin-card,
  .contact-location{
    border:1px solid var(--md-line)!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .contact-person-card:hover{
    box-shadow:var(--md-shadow)!important;
    transform:translateY(-2px)!important;
  }
  .contact-role{color:var(--md-muted)!important}
  .contact-action{
    border-radius:10px!important;
  }

  /* Reglamento */
  .reglamento-showcase{
    overflow:hidden!important;
  }
  .reglamento-open-btn{
    border-radius:12px!important;
    background:var(--md-purple)!important;
    box-shadow:none!important;
  }
  .reglamento-open-btn:hover{
    background:var(--md-purple-dark)!important;
    transform:translateY(-2px)!important;
  }

  /* Histórico / Oficios */
  .office-live-results,
  .office-live-record{
    border-color:var(--md-line)!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .office-live-record:hover{
    box-shadow:var(--md-shadow-sm)!important;
  }
  .office-live-number{color:var(--md-ink)!important}
  .office-live-kicker{color:var(--md-purple)!important}

  /* Modales */
  .modal-backdrop{
    background:rgba(32,33,36,.52)!important;
    backdrop-filter:blur(4px)!important;
  }
  .modal{
    border:1px solid var(--md-line)!important;
    border-radius:20px!important;
    background:#fff!important;
    box-shadow:0 24px 70px rgba(32,33,36,.22)!important;
  }
  .modal-head{
    border-bottom-color:var(--md-line)!important;
  }
  .modal-close{
    border-radius:10px!important;
    background:#f3f4f7!important;
  }
  .modal-close:hover{
    background:#e8e9ef!important;
  }

  /* Login */
  body.login-body-v3{
    background:#f6f7fb!important;
    color:var(--md-ink)!important;
  }
  body.login-body-v3 .sicah-login-v3{
    background:#f6f7fb!important;
  }
  body.login-body-v3 .sicah-login-v3__visual:before{
    background:
      radial-gradient(circle at 22% 18%,rgba(255,90,196,.24),transparent 24%),
      radial-gradient(circle at 82% 74%,rgba(87,155,252,.28),transparent 30%),
      linear-gradient(90deg,rgba(45,46,73,.88),rgba(74,61,153,.60) 54%,rgba(97,97,255,.16))!important;
  }
  body.login-body-v3 .sicah-login-v3__shape.deep{
    display:block!important;
    background:linear-gradient(180deg,rgba(97,97,255,.20),rgba(162,93,220,.10))!important;
    opacity:.55!important;
  }
  body.login-body-v3 .sicah-login-v3__shape.mid{
    display:block!important;
    background:linear-gradient(180deg,rgba(255,90,196,.18),rgba(87,155,252,.08))!important;
    opacity:.48!important;
  }
  body.login-body-v3 .sicah-login-v3__shape.soft{
    display:block!important;
    background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02))!important;
  }
  body.login-body-v3 .sicah-login-v3__accent{
    display:block!important;
    background:linear-gradient(135deg,var(--md-red),var(--md-pink))!important;
    opacity:.72!important;
  }
  body.login-body-v3 .sicah-login-v3__brand{
    text-shadow:none!important;
  }
  body.login-body-v3 .sicah-login-v3__brand h1{
    font-weight:850!important;
    letter-spacing:-.055em!important;
  }
  body.login-body-v3 .sicah-login-v3__redline{
    width:96px!important;
    height:6px!important;
    background:linear-gradient(90deg,var(--md-red) 0 25%,var(--md-yellow) 25% 50%,var(--md-green) 50% 75%,var(--md-blue) 75% 100%)!important;
    border-radius:999px!important;
  }
  body.login-body-v3 .sicah-login-v3__panel{
    background:
      radial-gradient(circle at 12% 12%,rgba(97,97,255,.09),transparent 28%),
      radial-gradient(circle at 92% 88%,rgba(255,90,196,.07),transparent 28%),
      #f6f7fb!important;
  }
  body.login-body-v3 .sicah-login-v3__panel:before{
    display:none!important;
  }
  body.login-body-v3 .sicah-login-v3__bluebar,
  body.login-body-v3 .sicah-login-v3__redbar{
    display:none!important;
  }
  body.login-body-v3 .sicah-login-v3__card{
    width:min(570px,100%)!important;
    padding:38px 35px 32px!important;
    border:1px solid var(--md-line)!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 24px 60px rgba(50,51,56,.12)!important;
  }
  body.login-body-v3 .sicah-login-v3__logo{
    width:175px!important;
  }
  body.login-body-v3 .sicah-login-v3__titleline{
    width:70px!important;
    height:5px!important;
    border-radius:999px!important;
    background:linear-gradient(90deg,var(--md-purple),var(--md-blue))!important;
  }
  body.login-body-v3 .sicah-login-v3__card h2{
    color:var(--md-ink)!important;
    font-size:30px!important;
    font-weight:800!important;
    letter-spacing:-.035em!important;
  }
  body.login-body-v3 .sicah-login-v3__tagline{
    color:var(--md-muted)!important;
  }
  body.login-body-v3 .sicah-login-v3__field label{
    color:var(--md-ink)!important;
    font-size:12px!important;
    font-weight:700!important;
  }
  body.login-body-v3 .sicah-login-v3__input{
    height:58px!important;
    border:1px solid #cfd3dc!important;
    border-radius:10px!important;
    background:#fff!important;
    color:var(--md-ink)!important;
    box-shadow:none!important;
  }
  body.login-body-v3 .sicah-login-v3__input:focus{
    border-color:var(--md-purple)!important;
    box-shadow:0 0 0 3px rgba(97,97,255,.14)!important;
  }
  body.login-body-v3 .sicah-login-v3__icon,
  body.login-body-v3 .sicah-login-v3__toggle{
    color:var(--md-purple)!important;
  }
  body.login-body-v3 .sicah-login-v3__submit{
    height:58px!important;
    border-radius:12px!important;
    background:linear-gradient(90deg,var(--md-purple),#7575ff)!important;
    box-shadow:0 10px 24px rgba(97,97,255,.22)!important;
    font-size:18px!important;
    font-weight:800!important;
  }
  body.login-body-v3 .sicah-login-v3__submit:hover{
    background:linear-gradient(90deg,var(--md-purple-dark),#6868f5)!important;
  }
  body.login-body-v3 .sicah-login-v3__unidos{
    color:var(--md-ink)!important;
    font-size:14px!important;
  }
  body.login-body-v3 .sicah-login-v3__unidos span{
    background:var(--md-line)!important;
  }
  body.login-body-v3 .sicah-login-v3__copyright{
    color:var(--md-muted)!important;
  }

  /* Accesibilidad / foco */
  a:focus-visible,button:focus-visible,.btn:focus-visible,
  input:focus-visible,select:focus-visible,textarea:focus-visible{
    outline:3px solid rgba(97,97,255,.24)!important;
    outline-offset:2px!important;
  }

  /* Footer */
  .footer{
    background:rgba(255,255,255,.94)!important;
    border-top:1px solid var(--md-line)!important;
    color:var(--md-muted)!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
  }

  /* Scrollbar */
  *{scrollbar-color:#c6c8d0 transparent;scrollbar-width:thin}
  *::-webkit-scrollbar{width:9px;height:9px}
  *::-webkit-scrollbar-track{background:transparent}
  *::-webkit-scrollbar-thumb{
    background:#c6c8d0;
    border-radius:999px;
    border:2px solid transparent;
    background-clip:padding-box;
  }
  *::-webkit-scrollbar-thumb:hover{
    background:#aeb0bb;
    background-clip:padding-box;
  }
}

@media screen and (max-width:1120px){
  .container{
    width:min(100% - 24px,1440px)!important;
    margin-top:20px!important;
  }
  .page-head,.capture-page-head{
    border-radius:18px!important;
    padding:17px 18px 17px 22px!important;
  }
  .page-head h1,.capture-page-head h1{
    font-size:32px!important;
  }
  .card{
    padding:18px!important;
  }
}

@media screen and (max-width:650px){
  .container{
    width:calc(100% - 16px)!important;
  }
  .page-head,.capture-page-head{
    padding:15px 14px 15px 18px!important;
    border-radius:16px!important;
  }
  .page-head h1,.capture-page-head h1{
    font-size:27px!important;
  }
  .page-head p,.capture-page-head p{
    font-size:13px!important;
  }
  .card{
    padding:15px!important;
    border-radius:16px!important;
  }
  .btn{
    min-height:42px!important;
  }
  body.login-body-v3 .sicah-login-v3__card{
    border-radius:20px!important;
    padding:26px 18px 24px!important;
  }
  body.login-body-v3 .sicah-login-v3__card h2{
    font-size:25px!important;
  }
}

@media print{
  .page-head,.capture-page-head{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    padding-left:0!important;
  }
  .page-head:before,.capture-page-head:before{
    display:none!important;
  }
}



/* =========================================================
   SICAH · AJUSTES VISUALES SOLICITADOS · 2026-10-07
   ========================================================= */
@media screen{
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    content:""!important;
    display:block!important;
    position:fixed!important;
    inset:0!important;
    z-index:0!important;
    pointer-events:none!important;
    background-image:linear-gradient(rgba(244,247,251,.34),rgba(244,247,251,.40)),var(--sicah-interface-bg)!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-size:cover!important;
    filter:blur(7px)!important;
    transform:scale(1.035)!important;
    opacity:1!important;
  }
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::after{
    content:""!important;
    display:block!important;
    position:fixed!important;
    inset:0!important;
    z-index:0!important;
    pointer-events:none!important;
    background:radial-gradient(circle at 12% 20%,rgba(24,177,193,.12),transparent 20%),radial-gradient(circle at 85% 18%,rgba(225,27,145,.10),transparent 18%),radial-gradient(circle at 80% 85%,rgba(255,125,32,.10),transparent 20%)!important;
    opacity:.52!important;
  }
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3) .app-shell{position:relative!important;z-index:1!important}

  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .page-head p,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .page-head p *,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-period-page > .page-head p,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-period-page > .page-head p *,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-report-ref > .page-head p,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-report-ref > .page-head p *,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-page-head p,
  body:not(.login-body):not(.login-body-v2):not(.login-body-v3) .capture-page-head p *{
    color:#5b677d!important;
    text-shadow:none!important;
    font-weight:600!important;
  }

  .page-head:before,
  .capture-page-head:before,
  .capture-period-page > .page-head:before,
  .capture-report-ref > .page-head:before{
    width:6px!important;
    top:15px!important;
    bottom:15px!important;
    border-radius:0 999px 999px 0!important;
    background:linear-gradient(180deg,#17c6c9 0 34%,#f02aa8 34% 67%,#ff8a22 67% 100%)!important;
  }

  .home-ref-copy h2{margin-bottom:0!important}

  .card,
  .home-ref-menu-wrap,
  .page-head,
  .capture-page-head,
  body.admin-layout-body .admin-sidebar{
    backdrop-filter:blur(14px) saturate(1.06)!important;
    -webkit-backdrop-filter:blur(14px) saturate(1.06)!important;
  }
}

@media screen and (max-width:780px){
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    background-position:center top!important;
    filter:blur(6px)!important;
  }
}


/* =========================================================
   SICAH · LOGOTIPO INTERACTIVO TIPO MONEDA · 2026-10-07
   ========================================================= */
@media screen{
  .home-ref-hero .home-ref-hero-inner{
    perspective:1400px!important;
    transform-style:preserve-3d!important;
  }
  .home-ref-hero .home-ref-logo-card{
    position:relative!important;
    width:196px!important;
    height:196px!important;
    padding:0!important;
    border-radius:50%!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    cursor:pointer!important;
    user-select:none!important;
    transform-style:preserve-3d!important;
    transform-origin:center center!important;
    will-change:transform,filter!important;
    transition:transform .24s ease, filter .24s ease!important;
    outline:none!important;
    overflow:hidden!important;
    display:grid!important;
    place-items:center!important;
    clip-path:circle(50% at 50% 50%)!important;
  }
  .home-ref-hero .home-ref-logo-card::before,
  .home-ref-hero .home-ref-logo-card::after{
    content:none!important;
    display:none!important;
  }
  .home-ref-hero .home-ref-logo-card:hover{
    transform:translateY(-2px) scale(1.03)!important;
    filter:drop-shadow(0 14px 24px rgba(6,25,66,.25))!important;
  }
  .home-ref-hero .home-ref-logo-card:focus-visible{
    box-shadow:0 0 0 4px rgba(23,198,201,.22)!important;
  }
  .home-ref-hero .home-ref-logo-card img{
    position:relative!important;
    z-index:1!important;
    width:92%!important;
    height:92%!important;
    object-fit:contain!important;
    border-radius:50%!important;
    backface-visibility:hidden!important;
    -webkit-backface-visibility:hidden!important;
    pointer-events:none!important;
    filter:drop-shadow(0 10px 16px rgba(8,44,95,.14))!important;
    transform-origin:center center!important;
  }
  .home-ref-hero .home-ref-logo-card.is-flipping{
    animation:sicahCoinFlip 1050ms cubic-bezier(.2,.7,.18,1)!important;
  }
  .home-ref-hero .home-ref-logo-card.is-flipping img{
    animation:sicahCoinFace 1050ms cubic-bezier(.2,.7,.18,1)!important;
  }
  @keyframes sicahCoinFlip{
    0%{transform:rotateY(0deg) translateY(0) scale(1)}
    14%{transform:rotateY(180deg) translateY(-3px) scale(1.05)}
    40%{transform:rotateY(480deg) translateY(-6px) scale(1.08)}
    68%{transform:rotateY(840deg) translateY(-2px) scale(1.04)}
    100%{transform:rotateY(1080deg) translateY(0) scale(1)}
  }
  @keyframes sicahCoinFace{
    0%{filter:drop-shadow(0 10px 16px rgba(8,44,95,.14)) brightness(1)}
    40%{filter:drop-shadow(0 18px 28px rgba(8,44,95,.22)) brightness(1.14)}
    100%{filter:drop-shadow(0 10px 16px rgba(8,44,95,.14)) brightness(1)}
  }
}

/* =========================================================
   SICAH · AJUSTE DE COLORES EN BARRA DE INICIO · 2026-10-07
   ========================================================= */
@media screen{
  body.login-body-v3 .sicah-login-v3__redline{
    background:linear-gradient(90deg,#18c8c8 0 34%,#f129a8 34% 69%,#ff8c21 69% 100%)!important;
    box-shadow:0 2px 8px rgba(12,24,56,.14)!important;
  }
}


/* =========================================================
   SICAH · FONDO DE INTERFACES MÁS VISIBLE · 2026-10-07
   ========================================================= */
@media screen{
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    background-image:linear-gradient(rgba(244,247,251,.34),rgba(244,247,251,.40)),var(--sicah-interface-bg)!important;
    filter:blur(4px)!important;
  }
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::after{
    opacity:.52!important;
  }
}
@media screen and (max-width:780px){
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    filter:blur(3px)!important;
  }
}


/* =========================================================
   SICAH · DEPENDENCIA · AJUSTES VISUALES EN CAPTURA · 2026-10-07
   ========================================================= */
@media screen{
  /* Egresos: siempre con fondo rojo suave; hover un poco más intenso. */
  body.role-dependencia .capture-report-ref .capture-table tbody tr.capture-entry-expense > td{
    background:#fff0f3!important;
  }
  body.role-dependencia .capture-report-ref .capture-table tbody tr.capture-entry-expense:hover > td{
    background:#ffe1e7!important;
  }
  body.role-dependencia .capture-report-ref .capture-table tbody tr.capture-entry-expense > td:first-child{
    box-shadow:inset 4px 0 0 #eb2550!important;
  }

  /* CAH-01: turquesa de la referencia (#05A8B7). */
  body.role-dependencia .capture-report-ref .capture-panel-cah01 .capture-panel-head{
    margin:-2px -2px 14px!important;
    padding:13px 14px!important;
    border:1px solid rgba(5,168,183,.32)!important;
    border-radius:14px!important;
    background:#e2f7f8!important;
    box-shadow:inset 5px 0 0 #05A8B7!important;
  }
  body.role-dependencia .capture-report-ref .capture-panel-cah01 .capture-panel-title h2{
    color:#057b86!important;
  }
  body.role-dependencia .capture-report-ref .capture-panel-cah01 .capture-panel-badge{
    background:rgba(5,168,183,.16)!important;
    color:#05A8B7!important;
  }

  /* CAH-02: magenta de la referencia (#E7006E). */
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-panel-head{
    margin:-2px -2px 14px!important;
    padding:13px 14px!important;
    border:1px solid rgba(231,0,110,.28)!important;
    border-radius:14px!important;
    background:#ffe5f1!important;
    box-shadow:inset 5px 0 0 #E7006E!important;
  }
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-panel-title h2{
    color:#b50058!important;
  }
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-panel-badge{
    background:rgba(231,0,110,.13)!important;
    color:#E7006E!important;
  }

  /* Resumen financiero: Saldo disponible siempre verde claro, incluso en cero. */
  body.role-dependencia .capture-report-ref .capture-metric.pos-available,
  body.role-dependencia .capture-report-ref .capture-metric.pos-available.is-empty{
    background:#e9f8ed!important;
    border-color:#bfe4c8!important;
  }
  body.role-dependencia .capture-report-ref .capture-metric.pos-available .capture-metric-icon,
  body.role-dependencia .capture-report-ref .capture-metric.pos-available.is-empty .capture-metric-icon{
    background:#d2efda!important;
    color:#187d3b!important;
  }
  body.role-dependencia .capture-report-ref .capture-metric.pos-available .capture-metric-copy small,
  body.role-dependencia .capture-report-ref .capture-metric.pos-available.is-empty .capture-metric-copy small{
    color:#3d7450!important;
  }
  body.role-dependencia .capture-report-ref .capture-metric.pos-available .capture-metric-copy strong,
  body.role-dependencia .capture-report-ref .capture-metric.pos-available.is-empty .capture-metric-copy strong{
    color:#176636!important;
  }

  /* Icono de Inicio: más grande y visible en Captura. */
  body.role-dependencia .capture-report-ref .capture-page-head .home-link{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    border-radius:14px!important;
    font-size:28px!important;
    font-weight:950!important;
    line-height:1!important;
    color:#145ec5!important;
    background:#f6faff!important;
    border:1px solid #bfd3ee!important;
    box-shadow:0 6px 16px rgba(20,94,197,.10)!important;
  }
  body.role-dependencia .capture-report-ref .capture-page-head .home-link:hover{
    background:#eaf3ff!important;
    border-color:#9dbce3!important;
  }
}

@media screen and (max-width:650px){
  body.role-dependencia .capture-report-ref .capture-page-head .home-link{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    font-size:25px!important;
  }
}


/* =========================================================
   SICAH · COLOR DE SELECCIÓN Y RELLENO PERSONALIZADO · 2026-10-07
   ========================================================= */
@media screen{
  :root{
    --sicah-accent-selected-rgb:208,60,229;
    --sicah-accent-selected:rgb(208,60,229);
    --sicah-accent-selected-soft:rgba(208,60,229,.14);
    --sicah-accent-selected-line:rgba(208,60,229,.22);
    --sicah-accent-selected-dark:rgb(184,43,205);
  }

  .nav-link.active,
  .topbar-ref .nav-link-ref.active{
    background:var(--sicah-accent-selected-soft)!important;
    color:var(--sicah-accent-selected)!important;
    box-shadow:inset 0 0 0 1px var(--sicah-accent-selected-line)!important;
  }

  .btn-primary,
  button.btn-primary,
  input[type="submit"].btn-primary{
    background:var(--sicah-accent-selected)!important;
    border-color:var(--sicah-accent-selected)!important;
    color:#fff!important;
    box-shadow:none!important;
  }

  .btn-primary:hover,
  button.btn-primary:hover,
  input[type="submit"].btn-primary:hover,
  .btn-primary:focus-visible,
  button.btn-primary:focus-visible,
  input[type="submit"].btn-primary:focus-visible{
    background:var(--sicah-accent-selected-dark)!important;
    border-color:var(--sicah-accent-selected-dark)!important;
    color:#fff!important;
    box-shadow:0 6px 16px rgba(var(--sicah-accent-selected-rgb),.22)!important;
  }
}


/* =========================================================
   SICAH · DEPENDENCIA · AZUL EN CAH-01/02 + TURQUESA UI · 2026-10-07
   ========================================================= */
@media screen{
  /* CAH-01 y CAH-02: misma identidad azul. */
  body.role-dependencia .capture-report-ref .capture-panel-cah01 .capture-panel-head,
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-panel-head{
    margin:-2px -2px 14px!important;
    padding:13px 14px!important;
    border:1px solid rgba(87,155,252,.34)!important;
    border-radius:14px!important;
    background:#eaf3ff!important;
    box-shadow:inset 5px 0 0 #579bfc!important;
  }
  body.role-dependencia .capture-report-ref .capture-panel-cah01 .capture-panel-title h2,
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-panel-title h2{
    color:#185fb5!important;
  }
  body.role-dependencia .capture-report-ref .capture-panel-cah01 .capture-panel-badge,
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-panel-badge{
    background:rgba(87,155,252,.16)!important;
    color:#3978c8!important;
  }

  /* Selección y relleno principal: azul turquesa. */
  body.role-dependencia{
    --sicah-dep-turquoise-rgb:5,168,183;
    --sicah-dep-turquoise:#05a8b7;
    --sicah-dep-turquoise-soft:rgba(5,168,183,.14);
    --sicah-dep-turquoise-line:rgba(5,168,183,.24);
    --sicah-dep-turquoise-dark:#048d9a;
  }
  body.role-dependencia .nav-link.active,
  body.role-dependencia .topbar-ref .nav-link-ref.active{
    background:var(--sicah-dep-turquoise-soft)!important;
    color:var(--sicah-dep-turquoise)!important;
    box-shadow:inset 0 0 0 1px var(--sicah-dep-turquoise-line)!important;
  }
  body.role-dependencia .btn-primary,
  body.role-dependencia button.btn-primary,
  body.role-dependencia input[type="submit"].btn-primary{
    background:var(--sicah-dep-turquoise)!important;
    border-color:var(--sicah-dep-turquoise)!important;
    color:#fff!important;
    box-shadow:none!important;
  }
  body.role-dependencia .btn-primary:hover,
  body.role-dependencia button.btn-primary:hover,
  body.role-dependencia input[type="submit"].btn-primary:hover,
  body.role-dependencia .btn-primary:focus-visible,
  body.role-dependencia button.btn-primary:focus-visible,
  body.role-dependencia input[type="submit"].btn-primary:focus-visible{
    background:var(--sicah-dep-turquoise-dark)!important;
    border-color:var(--sicah-dep-turquoise-dark)!important;
    color:#fff!important;
    box-shadow:0 6px 16px rgba(var(--sicah-dep-turquoise-rgb),.22)!important;
  }
}


/* =========================================================
   SICAH · FONDO DE INTERFACES MÁS CLARO Y DESENFOCADO · 2026-10-07
   ========================================================= */
@media screen{
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    background-image:linear-gradient(rgba(248,250,253,.20),rgba(248,250,253,.26)),var(--sicah-interface-bg)!important;
    background-size:cover!important;
    background-position:center center!important;
    filter:blur(10px)!important;
    transform:scale(1.04)!important;
    opacity:1!important;
  }
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::after{
    opacity:.20!important;
  }
}

@media screen and (max-width:780px){
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    filter:blur(8px)!important;
    background-position:center top!important;
  }
}


/* =========================================================
   SICAH · BOTONES GLOBALES ESTILO AZUL · 2026-10-07
   Unifica todos los botones de acción con el estilo azul
   de "Generar / Imprimir PDF". Los destructivos permanecen rojos.
   ========================================================= */
@media screen{
  :root{
    --sicah-btn-blue:#1555c0;
    --sicah-btn-blue-dark:#0f449f;
    --sicah-btn-blue-light:#1d66d8;
    --sicah-btn-blue-shadow:rgba(15,68,159,.22);
  }

  .btn:not(.btn-red),
  a.btn:not(.btn-red),
  button.btn:not(.btn-red),
  input[type="submit"].btn:not(.btn-red),
  input[type="button"].btn:not(.btn-red){
    background:linear-gradient(135deg,var(--sicah-btn-blue-dark),var(--sicah-btn-blue-light))!important;
    border:1px solid rgba(11,66,157,.95)!important;
    color:#fff!important;
    border-radius:12px!important;
    font-weight:800!important;
    box-shadow:0 7px 16px var(--sicah-btn-blue-shadow)!important;
    text-shadow:none!important;
    transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,background .16s ease!important;
  }

  .btn:not(.btn-red):hover,
  a.btn:not(.btn-red):hover,
  button.btn:not(.btn-red):hover,
  input[type="submit"].btn:not(.btn-red):hover,
  input[type="button"].btn:not(.btn-red):hover,
  .btn:not(.btn-red):focus-visible{
    background:linear-gradient(135deg,#0d3f96,#145ccf)!important;
    border-color:#0d3f96!important;
    color:#fff!important;
    transform:translateY(-1px)!important;
    box-shadow:0 10px 20px rgba(15,68,159,.28)!important;
    filter:none!important;
  }

  .btn:not(.btn-red):active,
  button.btn:not(.btn-red):active,
  a.btn:not(.btn-red):active{
    transform:translateY(0)!important;
    box-shadow:0 4px 10px rgba(15,68,159,.20)!important;
  }

  /* Los botones pequeños conservan su tamaño, pero usan el mismo acabado. */
  .btn-sm:not(.btn-red){
    border-radius:9px!important;
  }

  /* Acciones destructivas conservan la señal visual roja. */
  .btn-red{
    background:linear-gradient(135deg,#df2b42,#c7162c)!important;
    border:1px solid #c7162c!important;
    color:#fff!important;
    border-radius:12px!important;
    box-shadow:0 7px 16px rgba(199,22,44,.18)!important;
  }
}


/* =========================================================
   SICAH · INICIO SIN PICOS NI FIGURA ROJA · 2026-10-07
   Mantiene únicamente un difuminado morado sobre la imagen.
   ========================================================= */
@media screen{
  body.role-dependencia.page-inicio .home-ref-hero:before{
    background:
      radial-gradient(circle at 18% 24%,rgba(149,104,230,.14) 0%,rgba(149,104,230,.09) 24%,rgba(149,104,230,0) 48%),
      linear-gradient(90deg,rgba(55,39,104,.26) 0%,rgba(62,44,119,.18) 30%,rgba(82,59,150,.09) 58%,rgba(82,59,150,0) 82%)!important;
  }
  body.role-dependencia.page-inicio .home-ref-hero-shape{
    display:none!important;
  }
}


/* =========================================================
   SICAH · CAH · BOTONES PRINCIPALES EN AZUL MARINO · 2026-10-07
   ========================================================= */
@media screen{
  body.role-cah{
    --sicah-cah-btn-navy-1:#0c3f96;
    --sicah-cah-btn-navy-2:#165fd0;
    --sicah-cah-btn-navy-border:#0b3f96;
    --sicah-cah-btn-navy-shadow:rgba(12,63,150,.24);
  }

  body.role-cah .btn-primary,
  body.role-cah button.btn-primary,
  body.role-cah input[type="submit"].btn-primary,
  body.role-cah input[type="button"].btn-primary,
  body.role-cah .actions .btn-primary,
  body.role-cah form .btn-primary{
    background:linear-gradient(135deg,var(--sicah-cah-btn-navy-1),var(--sicah-cah-btn-navy-2))!important;
    border:1px solid var(--sicah-cah-btn-navy-border)!important;
    color:#fff!important;
    box-shadow:0 7px 16px var(--sicah-cah-btn-navy-shadow)!important;
    text-shadow:none!important;
  }

  body.role-cah .btn-primary:hover,
  body.role-cah button.btn-primary:hover,
  body.role-cah input[type="submit"].btn-primary:hover,
  body.role-cah input[type="button"].btn-primary:hover,
  body.role-cah .btn-primary:focus-visible,
  body.role-cah button.btn-primary:focus-visible,
  body.role-cah input[type="submit"].btn-primary:focus-visible,
  body.role-cah input[type="button"].btn-primary:focus-visible{
    background:linear-gradient(135deg,#093981,#1153bd)!important;
    border-color:#093981!important;
    color:#fff!important;
    box-shadow:0 10px 20px rgba(12,63,150,.28)!important;
  }
}


/* =========================================================
   SICAH · CAH · TODOS LOS BOTONES ROSA A AZUL MARINO · 2026-10-08
   ========================================================= */
@media screen{
  body.role-cah{
    --cah-action-navy-1:#0b357d;
    --cah-action-navy-2:#155fc7;
    --cah-action-navy-hover-1:#082d6c;
    --cah-action-navy-hover-2:#104fae;
    --cah-action-shadow:rgba(8,45,108,.24);
  }

  /* Acciones primarias de Estadísticas, Bitácora, Histórico, Estatus y Oficios. */
  body.role-cah .btn-primary,
  body.role-cah a.btn-primary,
  body.role-cah button.btn-primary,
  body.role-cah input[type="submit"].btn-primary,
  body.role-cah input[type="button"].btn-primary,
  body.role-cah form .btn.btn-primary,
  body.role-cah .actions .btn.btn-primary,
  body.role-cah .quick-filter .btn.btn-primary{
    background:linear-gradient(135deg,var(--cah-action-navy-1) 0%,var(--cah-action-navy-2) 100%)!important;
    border:1px solid #0a347a!important;
    color:#fff!important;
    border-radius:12px!important;
    box-shadow:0 7px 16px var(--cah-action-shadow)!important;
    text-shadow:none!important;
    filter:none!important;
  }

  body.role-cah .btn-primary:hover,
  body.role-cah a.btn-primary:hover,
  body.role-cah button.btn-primary:hover,
  body.role-cah input[type="submit"].btn-primary:hover,
  body.role-cah input[type="button"].btn-primary:hover,
  body.role-cah .btn-primary:focus-visible{
    background:linear-gradient(135deg,var(--cah-action-navy-hover-1) 0%,var(--cah-action-navy-hover-2) 100%)!important;
    border-color:#082d6c!important;
    color:#fff!important;
    box-shadow:0 10px 20px rgba(8,45,108,.30)!important;
    transform:translateY(-1px)!important;
  }

  body.role-cah .btn-primary:active,
  body.role-cah a.btn-primary:active,
  body.role-cah button.btn-primary:active{
    transform:translateY(0)!important;
    box-shadow:0 4px 10px rgba(8,45,108,.22)!important;
  }
}


/* =========================================================
   SICAH · CAH · BOTONES ROSA CONVERTIDOS A AZUL REFERENCIA · 2026-10-08
   ========================================================= */
@media screen{
  body.role-cah{
    --sicah-cah-btn-blue:#082f70;
    --sicah-cah-btn-blue-light:#0b3f94;
    --sicah-cah-btn-blue-dark:#062653;
    --sicah-cah-btn-blue-border:#082f70;
    --sicah-cah-btn-blue-shadow:rgba(8,47,112,.24);
  }

  body.role-cah .btn-primary,
  body.role-cah button.btn-primary,
  body.role-cah input[type="submit"].btn-primary,
  body.role-cah input[type="button"].btn-primary,
  body.role-cah .actions .btn-primary,
  body.role-cah form .btn-primary,
  body.role-cah .status-toolbar .btn-primary,
  body.role-cah .stats-toolbar .btn-primary,
  body.role-cah .reports-toolbar .btn-primary,
  body.role-cah .office-generator .btn-primary,
  body.role-cah .bitacora-page .btn-primary,
  body.role-cah .historico-page .btn-primary,
  body.role-cah .estatus-page .btn-primary{
    background:linear-gradient(135deg,var(--sicah-cah-btn-blue-light) 0%,var(--sicah-cah-btn-blue) 100%)!important;
    border:1px solid var(--sicah-cah-btn-blue-border)!important;
    color:#fff!important;
    box-shadow:0 7px 16px var(--sicah-cah-btn-blue-shadow)!important;
    text-shadow:none!important;
  }

  body.role-cah .btn-primary:hover,
  body.role-cah button.btn-primary:hover,
  body.role-cah input[type="submit"].btn-primary:hover,
  body.role-cah input[type="button"].btn-primary:hover,
  body.role-cah .btn-primary:focus-visible,
  body.role-cah button.btn-primary:focus-visible,
  body.role-cah input[type="submit"].btn-primary:focus-visible,
  body.role-cah input[type="button"].btn-primary:focus-visible{
    background:linear-gradient(135deg,var(--sicah-cah-btn-blue) 0%,var(--sicah-cah-btn-blue-dark) 100%)!important;
    border-color:var(--sicah-cah-btn-blue-dark)!important;
    color:#fff!important;
    box-shadow:0 10px 20px rgba(8,47,112,.30)!important;
  }
}


/* =========================================================
   SICAH · CAH · GENERADOR DE OFICIO · BOTONES #082F70
   ========================================================= */
@media screen{
  body.role-cah:has(.office-live-search-card) .btn-primary,
  body.role-cah:has(.office-live-search-card) a.btn-primary,
  body.role-cah:has(.office-live-search-card) button.btn-primary,
  body.role-cah:has(.office-live-search-card) input[type="submit"].btn-primary{
    background:#082f70!important;
    border-color:#082f70!important;
    color:#fff!important;
    box-shadow:0 7px 16px rgba(8,47,112,.24)!important;
    filter:none!important;
  }

  body.role-cah:has(.office-live-search-card) .btn-primary:hover,
  body.role-cah:has(.office-live-search-card) a.btn-primary:hover,
  body.role-cah:has(.office-live-search-card) button.btn-primary:hover,
  body.role-cah:has(.office-live-search-card) input[type="submit"].btn-primary:hover,
  body.role-cah:has(.office-live-search-card) .btn-primary:focus-visible{
    background:#062653!important;
    border-color:#062653!important;
    color:#fff!important;
    box-shadow:0 10px 20px rgba(8,47,112,.30)!important;
  }
}


/* =========================================================
   SICAH · GENERADOR DE OFICIO · AZUL EXACTO #082F70
   ========================================================= */
@media screen{
  /* Guardar oficio */
  form:has(input[name="office_series_save"]) .btn-primary,

  /* Descargar DOCX dentro del Generador de Oficio */
  a.btn-primary[href*="page=oficios"][href*="custom_docx_id"],
  a.btn-primary[href*="download=office_docx"]{
    background:#082f70!important;
    background-color:#082f70!important;
    background-image:none!important;
    border:1px solid #082f70!important;
    color:#fff!important;
    box-shadow:none!important;
    filter:none!important;
  }

  form:has(input[name="office_series_save"]) .btn-primary:hover,
  form:has(input[name="office_series_save"]) .btn-primary:focus-visible,
  a.btn-primary[href*="page=oficios"][href*="custom_docx_id"]:hover,
  a.btn-primary[href*="page=oficios"][href*="custom_docx_id"]:focus-visible,
  a.btn-primary[href*="download=office_docx"]:hover,
  a.btn-primary[href*="download=office_docx"]:focus-visible{
    background:#062653!important;
    background-color:#062653!important;
    background-image:none!important;
    border-color:#062653!important;
    color:#fff!important;
    box-shadow:0 6px 14px rgba(8,47,112,.22)!important;
  }
}


/* =========================================================
   SICAH · CAH · MENÚ SUPERIOR RESPONSIVO COMPLETO · 2026-10-09
   Todas las pestañas permanecen visibles en monitores y portátiles.
   ========================================================= */
@media screen and (min-width:981px){
  body.role-cah .topbar-ref .topbar-inner{
    width:min(1780px,calc(100% - 18px))!important;
    max-width:none!important;
    min-height:78px!important;
    padding:7px 0!important;
    display:grid!important;
    grid-template-columns:minmax(245px,300px) minmax(0,1fr) minmax(205px,245px)!important;
    column-gap:10px!important;
    align-items:center!important;
  }

  body.role-cah .topbar-ref .brand-ref{
    min-width:0!important;
    width:100%!important;
    gap:9px!important;
    overflow:hidden!important;
  }

  body.role-cah .topbar-ref .brand-ref img{
    width:56px!important;
    height:50px!important;
    flex:0 0 auto!important;
  }

  body.role-cah .topbar-ref .brand-text strong{
    font-size:13.5px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.role-cah .topbar-ref .brand-text span{
    font-size:9.5px!important;
    margin-top:3px!important;
  }

  /* El menú puede usar dos filas cuando sea necesario, sin scroll ni pestañas ocultas. */
  body.role-cah .topbar-ref .topnav-ref{
    min-width:0!important;
    width:100%!important;
    max-width:none!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    align-content:center!important;
    justify-content:center!important;
    gap:4px!important;
    padding:2px 0!important;
    overflow:visible!important;
    scrollbar-width:none!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    flex:0 0 auto!important;
    min-height:34px!important;
    height:34px!important;
    padding:0 7px!important;
    gap:4px!important;
    border-radius:9px!important;
    font-size:10.3px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:15px!important;
    height:15px!important;
  }

  body.role-cah .topbar-ref .user-account-static{
    min-width:0!important;
    width:100%!important;
    justify-self:end!important;
  }

  body.role-cah .topbar-ref .user-chip-ref{
    min-width:0!important;
    width:100%!important;
    max-width:245px!important;
    height:48px!important;
    padding:5px 9px 5px 6px!important;
    gap:7px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-dot{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    font-size:12px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-meta strong{
    max-width:175px!important;
    font-size:9.5px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-meta span{
    font-size:8px!important;
  }

  body.role-cah .user-logout-inline{
    font-size:9.5px!important;
  }
}

/* En pantallas realmente amplias se aumenta ligeramente la legibilidad. */
@media screen and (min-width:1600px){
  body.role-cah .topbar-ref .topbar-inner{
    grid-template-columns:minmax(260px,315px) minmax(0,1fr) minmax(220px,255px)!important;
    column-gap:12px!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    min-height:36px!important;
    height:36px!important;
    padding:0 8px!important;
    font-size:10.8px!important;
    gap:5px!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:16px!important;
    height:16px!important;
  }
}

/* En portátil conserva todas las opciones, permitiendo dos filas compactas. */
@media screen and (min-width:981px) and (max-width:1250px){
  body.role-cah .topbar-ref .topbar-inner{
    grid-template-columns:minmax(215px,255px) minmax(0,1fr) minmax(185px,215px)!important;
    column-gap:7px!important;
  }

  body.role-cah .topbar-ref .brand-ref img{
    width:48px!important;
    height:43px!important;
  }

  body.role-cah .topbar-ref .brand-text strong{
    font-size:11.5px!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    min-height:32px!important;
    height:32px!important;
    padding:0 6px!important;
    font-size:9.4px!important;
    gap:3px!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:14px!important;
    height:14px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref{
    max-width:215px!important;
  }
}


/* =========================================================
   SICAH · CAH · MENÚ EN DOS NIVELES PARA PANTALLAS GRANDES · 2026-10-09
   Fila 1: identidad institucional + usuario.
   Fila 2: todas las pestañas visibles en una sola línea.
   ========================================================= */
@media screen and (min-width:1280px){
  body.role-cah .topbar-ref{
    overflow:visible!important;
  }

  body.role-cah .topbar-ref .topbar-inner{
    width:100%!important;
    max-width:none!important;
    min-height:124px!important;
    padding:8px 14px 7px!important;
    display:grid!important;
    grid-template-columns:minmax(270px,1fr) minmax(230px,300px)!important;
    grid-template-rows:58px 48px!important;
    grid-template-areas:
      "brand user"
      "nav nav"!important;
    column-gap:18px!important;
    row-gap:4px!important;
    align-items:center!important;
  }

  body.role-cah .topbar-ref .brand-ref{
    grid-area:brand!important;
    justify-self:start!important;
    align-self:center!important;
    width:auto!important;
    min-width:0!important;
    max-width:430px!important;
  }

  body.role-cah .topbar-ref .brand-ref img{
    width:54px!important;
    height:50px!important;
    flex:0 0 auto!important;
  }

  body.role-cah .topbar-ref .brand-text strong{
    font-size:13px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }

  body.role-cah .topbar-ref .brand-text span{
    font-size:9.5px!important;
    margin-top:3px!important;
  }

  body.role-cah .topbar-ref .user-account-static{
    grid-area:user!important;
    justify-self:end!important;
    align-self:center!important;
    width:min(100%,300px)!important;
    min-width:0!important;
  }

  body.role-cah .topbar-ref .user-chip-ref{
    width:100%!important;
    max-width:300px!important;
    height:48px!important;
    min-height:48px!important;
    padding:5px 10px 5px 6px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-dot{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    font-size:12px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-meta strong{
    max-width:205px!important;
    font-size:9.5px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-meta span{
    font-size:8px!important;
  }

  body.role-cah .topbar-ref .topnav-ref{
    grid-area:nav!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    padding:4px 0 3px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
  }

  body.role-cah .topbar-ref .topnav-ref::-webkit-scrollbar{
    display:none!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    flex:0 0 auto!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 12px!important;
    gap:6px!important;
    border-radius:10px!important;
    font-size:11px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:16px!important;
    height:16px!important;
  }

  body.role-cah .user-logout-inline{
    font-size:9.5px!important;
  }
}

/* En monitores muy amplios se distribuyen las pestañas por todo el ancho. */
@media screen and (min-width:1600px){
  body.role-cah .topbar-ref .topbar-inner{
    padding-left:18px!important;
    padding-right:18px!important;
  }

  body.role-cah .topbar-ref .topnav-ref{
    justify-content:space-between!important;
    gap:6px!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    padding:0 11px!important;
    font-size:10.8px!important;
  }
}

/* =========================================================
   SICAH · CAH · GRUPOS DE WHATSAPP · 2026-10-09
   ========================================================= */
@media screen{
  body.role-cah .whatsapp-groups-search-card{
    padding:22px!important;
  }
  body.role-cah .whatsapp-groups-search-form{
    width:100%;
  }
  body.role-cah .whatsapp-groups-search-form>label{
    font-size:12px!important;
    font-weight:900!important;
    color:#25334b!important;
    margin-bottom:8px!important;
  }
  body.role-cah .whatsapp-groups-search-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
  }
  body.role-cah .whatsapp-groups-search-input{
    position:relative;
    min-width:0;
  }
  body.role-cah .whatsapp-groups-search-input>span{
    position:absolute;
    left:16px;
    top:50%;
    width:23px;
    height:23px;
    transform:translateY(-50%);
    display:grid;
    place-items:center;
    color:#50617c;
    pointer-events:none;
    z-index:2;
  }
  body.role-cah .whatsapp-groups-search-input svg{
    width:22px;
    height:22px;
  }
  body.role-cah .whatsapp-groups-search-input .input{
    height:54px!important;
    padding-left:50px!important;
    border-radius:13px!important;
    font-size:15px!important;
    background:rgba(255,255,255,.96)!important;
  }
  body.role-cah .whatsapp-groups-search-row>.btn{
    min-width:118px!important;
    height:54px!important;
    border-radius:12px!important;
  }
  body.role-cah .whatsapp-groups-search-help{
    margin:8px 0 0;
    color:#6b778c;
    font-size:11.5px;
    line-height:1.45;
  }
  body.role-cah .whatsapp-groups-empty{
    min-height:280px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:7px;
  }
  body.role-cah .whatsapp-groups-empty-icon{
    width:68px;
    height:68px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:rgba(5,168,183,.10);
    color:#07949f;
    margin-bottom:4px;
  }
  body.role-cah .whatsapp-groups-empty-icon svg{
    width:42px;
    height:42px;
  }
  body.role-cah .whatsapp-groups-empty h2{
    margin:0!important;
    color:#252a35!important;
    font-size:20px!important;
  }
  body.role-cah .whatsapp-groups-empty p{
    margin:0!important;
    color:#667085!important;
    font-size:13px!important;
  }
  body.role-cah .whatsapp-groups-result-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:4px 2px 12px;
    color:#3f4b61;
    font-size:13px;
  }
  body.role-cah .whatsapp-groups-result-head strong{
    color:#082f70;
  }
  body.role-cah .whatsapp-groups-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }
  body.role-cah .whatsapp-group-card{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    min-width:0;
    padding:22px!important;
  }
  body.role-cah .whatsapp-group-head{
    min-height:96px;
    text-align:center;
  }
  body.role-cah .whatsapp-group-head>div{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:9px;
  }
  body.role-cah .whatsapp-group-code{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:52px;
    height:30px;
    padding:0 10px;
    border-radius:999px;
    background:#082f70;
    color:#fff;
    font-size:12px;
    font-weight:900;
  }
  body.role-cah .whatsapp-group-category{
    display:inline-flex;
    align-items:center;
    height:30px;
    padding:0 10px;
    border-radius:999px;
    background:#e9f6f7;
    color:#067985;
    border:1px solid #c7eaed;
    font-size:10px;
    font-weight:900;
    letter-spacing:.03em;
  }
  body.role-cah .whatsapp-group-head h2{
    margin:0!important;
    color:#2d3038!important;
    font-size:17px!important;
    line-height:1.22!important;
    letter-spacing:-.015em!important;
  }
  body.role-cah .whatsapp-group-qr{
    width:min(310px,82%);
    aspect-ratio:1/1;
    margin:8px auto 16px;
    padding:12px;
    border-radius:20px;
    background:#fff;
    border:1px solid #dfe5ec;
    box-shadow:0 10px 30px rgba(8,47,112,.10);
  }
  body.role-cah .whatsapp-group-qr img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    image-rendering:auto;
  }
  body.role-cah .whatsapp-group-link{
    min-width:0;
    padding:12px 13px;
    margin-bottom:12px;
    border-radius:12px;
    background:#f7f9fc;
    border:1px solid #e4e9f0;
  }
  body.role-cah .whatsapp-group-link span{
    display:block;
    margin-bottom:5px;
    color:#69778d;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  body.role-cah .whatsapp-group-link code{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#123c78;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:11px;
  }
  body.role-cah .whatsapp-group-copy{
    width:100%!important;
    min-height:36px!important;
    margin-top:auto;
    background:#082f70!important;
    background-image:none!important;
    border-color:#082f70!important;
  }
  body.role-cah .whatsapp-group-copy:hover,
  body.role-cah .whatsapp-group-copy:focus-visible{
    background:#062653!important;
    background-image:none!important;
    border-color:#062653!important;
  }
}

@media screen and (max-width:900px){
  body.role-cah .whatsapp-groups-grid{
    grid-template-columns:1fr;
  }
  body.role-cah .whatsapp-group-qr{
    width:min(330px,88%);
  }
}

@media screen and (max-width:620px){

  body.role-dependencia .capture-mobile-pdf-help{
    width:100%!important;
  }
  body.role-cah .whatsapp-groups-search-row{
    grid-template-columns:1fr;
  }
  body.role-cah .whatsapp-groups-search-row>.btn{
    width:100%!important;
  }
  body.role-cah .whatsapp-group-card{
    padding:16px!important;
  }
  body.role-cah .whatsapp-group-qr{
    width:min(290px,94%);
    padding:9px;
  }
}


/* =========================================================
   SICAH · CAH · GRUPOS DE WHATSAPP · CORRECCIÓN DE LAYOUT · 2026-10-09
   ========================================================= */
@media screen{
  body.role-cah .whatsapp-groups-page{
    width:100%!important;
    min-width:0!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-card{
    display:block!important;
    width:100%!important;
    min-height:0!important;
    padding:20px 22px!important;
    overflow:visible!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-form{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-form>label{
    display:block!important;
    margin:0 0 9px!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:900!important;
    color:#26334b!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 122px!important;
    gap:10px!important;
    align-items:stretch!important;
    width:100%!important;
    min-width:0!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-input{
    position:relative!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    height:54px!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-input>span{
    position:absolute!important;
    left:16px!important;
    top:50%!important;
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    min-height:22px!important;
    max-width:22px!important;
    max-height:22px!important;
    transform:translateY(-50%)!important;
    display:grid!important;
    place-items:center!important;
    color:#52627b!important;
    overflow:hidden!important;
    pointer-events:none!important;
    z-index:2!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-input>span svg,
  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-input svg{
    display:block!important;
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    min-height:22px!important;
    max-width:22px!important;
    max-height:22px!important;
    flex:none!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-input .input{
    display:block!important;
    width:100%!important;
    height:54px!important;
    min-height:54px!important;
    margin:0!important;
    padding:0 16px 0 50px!important;
    border:1px solid #cfd8e6!important;
    border-radius:13px!important;
    background:#fff!important;
    color:#172033!important;
    font-size:15px!important;
    line-height:54px!important;
    box-sizing:border-box!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-input .input:focus{
    border-color:#7ea2d8!important;
    box-shadow:0 0 0 3px rgba(8,47,112,.09)!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-row>.btn{
    display:inline-flex!important;
    width:122px!important;
    min-width:122px!important;
    height:54px!important;
    min-height:54px!important;
    margin:0!important;
    padding:0 16px!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:12px!important;
    background:#082f70!important;
    background-image:none!important;
    border-color:#082f70!important;
    color:#fff!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-help{
    display:block!important;
    margin:8px 0 0!important;
    color:#68768d!important;
    font-size:11.5px!important;
    line-height:1.45!important;
  }

  /* Estado inicial compacto: evita el SVG gigante y el espacio vacío exagerado. */
  body.role-cah .whatsapp-groups-page .whatsapp-groups-empty{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:230px!important;
    max-height:none!important;
    padding:32px 22px!important;
    margin-top:16px!important;
    text-align:center!important;
    overflow:hidden!important;
    gap:7px!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-empty-icon{
    display:grid!important;
    place-items:center!important;
    width:68px!important;
    height:68px!important;
    min-width:68px!important;
    min-height:68px!important;
    max-width:68px!important;
    max-height:68px!important;
    margin:0 0 7px!important;
    padding:0!important;
    border-radius:18px!important;
    background:rgba(5,168,183,.10)!important;
    color:#07949f!important;
    overflow:hidden!important;
    flex:0 0 68px!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-empty-icon svg{
    display:block!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    max-width:42px!important;
    max-height:42px!important;
    flex:none!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-empty h2{
    display:block!important;
    margin:0!important;
    color:#252a35!important;
    font-size:20px!important;
    line-height:1.2!important;
    font-weight:800!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-empty p{
    display:block!important;
    max-width:650px!important;
    margin:0!important;
    color:#667085!important;
    font-size:13px!important;
    line-height:1.5!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-result-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:18px 2px 12px!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-groups-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
    width:100%!important;
    min-width:0!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-group-card{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    padding:22px!important;
    overflow:hidden!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-group-head{
    min-height:88px!important;
    text-align:center!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-group-qr{
    display:block!important;
    width:min(340px,90%)!important;
    height:auto!important;
    aspect-ratio:1/1!important;
    margin:8px auto 16px!important;
    padding:12px!important;
    box-sizing:border-box!important;
    border:1px solid #dfe5ec!important;
    border-radius:20px!important;
    background:#fff!important;
    overflow:hidden!important;
    box-shadow:0 10px 30px rgba(8,47,112,.10)!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-group-qr img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    margin:0!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-group-link{
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }

  body.role-cah .whatsapp-groups-page .whatsapp-group-copy{
    width:100%!important;
    min-height:36px!important;
    background:#082f70!important;
    background-image:none!important;
    border-color:#082f70!important;
  }
}

@media screen and (max-width:900px){
  body.role-cah .whatsapp-groups-page .whatsapp-groups-grid{
    grid-template-columns:1fr!important;
  }
  body.role-cah .whatsapp-groups-page .whatsapp-group-qr{
    width:min(360px,92%)!important;
  }
}

@media screen and (max-width:620px){
  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-card{
    padding:16px!important;
  }
  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-row{
    grid-template-columns:1fr!important;
  }
  body.role-cah .whatsapp-groups-page .whatsapp-groups-search-row>.btn{
    width:100%!important;
    min-width:0!important;
  }
  body.role-cah .whatsapp-groups-page .whatsapp-groups-empty{
    min-height:190px!important;
    padding:24px 16px!important;
  }
  body.role-cah .whatsapp-groups-page .whatsapp-group-card{
    padding:16px!important;
  }
  body.role-cah .whatsapp-groups-page .whatsapp-group-qr{
    width:min(310px,96%)!important;
    padding:9px!important;
  }
}

/* =========================================================
   SICAH · CAH · GRUPOS DE WHATSAPP · BÚSQUEDA EN VIVO · 2026-10-09
   ========================================================= */
@media screen{
  body.role-cah .whatsapp-groups-live .whatsapp-groups-search-row{
    display:block!important;
  }
  body.role-cah .whatsapp-groups-live .whatsapp-groups-search-row>.btn{
    display:none!important;
  }
  body.role-cah .whatsapp-groups-live .whatsapp-groups-search-help{
    display:none!important;
  }
  body.role-cah .whatsapp-groups-live .whatsapp-groups-search-input{
    width:100%!important;
    max-width:none!important;
  }
  body.role-cah .whatsapp-groups-live .whatsapp-group-link{
    display:none!important;
  }
  body.role-cah .whatsapp-groups-live .whatsapp-group-card.is-administrativa .whatsapp-group-head h2{
    color:#082f70!important;
  }
  body.role-cah .whatsapp-groups-live .whatsapp-group-card.is-academica .whatsapp-group-head h2{
    color:#7b3fc6!important;
  }
  body.role-cah .whatsapp-groups-live .whatsapp-group-copy{
    width:100%!important;
    margin-top:14px!important;
  }
  body.role-cah .whatsapp-groups-live .whatsapp-groups-empty p{
    display:none!important;
  }
}


/* =========================================================
   SICAH · CAH · GRUPOS WHATSAPP · BÚSQUEDA EN VIVO EXACTA · 2026-10-09
   ========================================================= */
@media screen{
  body.role-cah .whatsapp-groups-live [hidden]{
    display:none!important;
  }
  body.role-cah .whatsapp-groups-live .whatsapp-groups-grid:empty{
    display:none!important;
  }
}


/* =========================================================
   SICAH · CAH · GRUPOS WHATSAPP · COLORES DE TÍTULO/CATEGORÍA · 2026-10-09
   ========================================================= */
@media screen{
  /* Todos los nombres de dependencia se muestran en azul institucional. */
  body.role-cah .whatsapp-groups-live .whatsapp-group-card.is-administrativa .whatsapp-group-head h2,
  body.role-cah .whatsapp-groups-live .whatsapp-group-card.is-academica .whatsapp-group-head h2{
    color:#082f70!important;
  }

  /* Administrativa conserva identidad azul/turquesa. */
  body.role-cah .whatsapp-groups-live .whatsapp-group-card.is-administrativa .whatsapp-group-category{
    background:#e9f6f7!important;
    color:#067985!important;
    border-color:#c7eaed!important;
  }

  /* Académica se diferencia únicamente mediante la etiqueta violeta. */
  body.role-cah .whatsapp-groups-live .whatsapp-group-card.is-academica .whatsapp-group-category{
    background:#f2eaff!important;
    color:#7b3fc6!important;
    border-color:#d9c5f5!important;
  }
}


/* =========================================================
   SICAH · GRUPOS WHATSAPP · BOTONES IGUALES · 2026-10-09
   ========================================================= */
@media screen{
  body.role-cah .whatsapp-groups-live .whatsapp-group-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    width:100%!important;
    align-items:stretch!important;
  }

  body.role-cah .whatsapp-groups-live .whatsapp-group-actions .whatsapp-group-open,
  body.role-cah .whatsapp-groups-live .whatsapp-group-actions .whatsapp-group-copy{
    width:100%!important;
    min-width:0!important;
    height:58px!important;
    min-height:58px!important;
    margin:0!important;
    padding:0 18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    background:#082f70!important;
    background-color:#082f70!important;
    background-image:none!important;
    border:1px solid #082f70!important;
    border-radius:12px!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:800!important;
    line-height:1!important;
    text-align:center!important;
    text-decoration:none!important;
    box-shadow:0 7px 16px rgba(8,47,112,.18)!important;
  }

  body.role-cah .whatsapp-groups-live .whatsapp-group-actions .whatsapp-group-open:hover,
  body.role-cah .whatsapp-groups-live .whatsapp-group-actions .whatsapp-group-copy:hover,
  body.role-cah .whatsapp-groups-live .whatsapp-group-actions .whatsapp-group-open:focus-visible,
  body.role-cah .whatsapp-groups-live .whatsapp-group-actions .whatsapp-group-copy:focus-visible{
    background:#062653!important;
    background-color:#062653!important;
    border-color:#062653!important;
    color:#fff!important;
    box-shadow:0 9px 18px rgba(8,47,112,.24)!important;
  }
}

@media screen and (max-width:620px){
  body.role-cah .whatsapp-groups-live .whatsapp-group-actions{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   SICAH · DEPENDENCIA · AYUDA PARA GENERAR PDF DESDE CELULAR
   ========================================================= */
@media screen{
  body.role-dependencia .capture-mobile-pdf-help{
    margin:11px 0 10px!important;
    padding:10px 12px!important;
    width:min(100%,620px)!important;
    border:1px solid #cbd9ea!important;
    border-radius:14px!important;
    background:rgba(245,249,254,.92)!important;
  }
  body.role-dependencia .capture-mobile-pdf-help p{
    margin:0!important;
    color:#243955!important;
    line-height:1.45!important;
  }
  body.role-dependencia .capture-mobile-pdf-links{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    margin:8px 0 6px!important;
  }
  body.role-dependencia .capture-mobile-app-link{
    min-height:36px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    padding:7px 11px!important;
    border-radius:11px!important;
    border:1px solid #d2dbe8!important;
    background:#fff!important;
    color:#082f70!important;
    font-weight:850!important;
    text-decoration:none!important;
    box-shadow:0 4px 12px rgba(15,47,93,.08)!important;
    transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease!important;
  }
  body.role-dependencia .capture-mobile-app-link:hover,
  body.role-dependencia .capture-mobile-app-link:focus-visible{
    transform:translateY(-1px)!important;
    box-shadow:0 7px 16px rgba(15,47,93,.13)!important;
    border-color:#9db9dd!important;
  }
  body.role-dependencia .capture-mobile-app-icon{
    width:18px!important;
    height:18px!important;
    display:inline-grid!important;
    place-items:center!important;
    flex:0 0 18px!important;
  }
  body.role-dependencia .capture-mobile-app-icon svg{
    width:18px!important;
    height:18px!important;
    display:block!important;
  }
  body.role-dependencia .capture-mobile-app-link.android{color:#138a58!important}
  body.role-dependencia .capture-mobile-app-link.apple{color:#111827!important}
  body.role-dependencia .capture-mobile-app-link.youtube{color:#d71920!important}
  body.role-dependencia .capture-mobile-pdf-video-text{
    font-size:12px!important;
    color:#65758a!important;
  }
}
@media screen and (max-width:620px){
  body.role-dependencia .capture-mobile-pdf-links{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  body.role-dependencia .capture-mobile-app-link{
    width:100%!important;
  }
}

/* =========================================================
   SICAH · DEPENDENCIA · AYUDA PDF MÓVIL COMPACTA · 2026-10-13
   ========================================================= */
@media screen{
  body.role-dependencia .capture-mobile-pdf-help{
    width:min(100%,620px)!important;
    margin:10px 0 9px!important;
    padding:9px 11px!important;
    border-radius:12px!important;
  }
  body.role-dependencia .capture-mobile-pdf-help p{
    font-size:12.5px!important;
    line-height:1.34!important;
  }
  body.role-dependencia .capture-mobile-pdf-links{
    gap:7px!important;
    margin:7px 0 5px!important;
  }
  body.role-dependencia .capture-mobile-app-link{
    min-height:34px!important;
    padding:6px 10px!important;
    gap:6px!important;
    border-radius:9px!important;
    font-size:12.5px!important;
  }
  body.role-dependencia .capture-mobile-app-icon,
  body.role-dependencia .capture-mobile-app-icon svg{
    width:17px!important;
    height:17px!important;
  }
  body.role-dependencia .capture-mobile-app-icon{flex-basis:17px!important}
  body.role-dependencia .capture-mobile-pdf-video-text{font-size:10.5px!important}
}
@media screen and (max-width:620px){
  body.role-dependencia .capture-mobile-pdf-help{width:100%!important}
}


/* =========================================================
   SICAH · DEPENDENCIA · CAH-02 · DISTRIBUCIÓN DE COLUMNAS · 2026-10-13
   No. Recibo y Fecha compactos; Concepto y Descripción amplios.
   ========================================================= */
@media screen{
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table{
    width:100%!important;
    min-width:900px!important;
    table-layout:fixed!important;
  }

  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table th,
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table td{
    box-sizing:border-box!important;
  }

  /* Selección */
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table th:nth-child(1),
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table td:nth-child(1){
    width:5%!important;
    min-width:48px!important;
    max-width:58px!important;
    text-align:center!important;
  }

  /* No. Recibo */
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table th:nth-child(2),
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table td:nth-child(2){
    width:8%!important;
    min-width:78px!important;
    max-width:96px!important;
    white-space:nowrap!important;
  }

  /* Fecha */
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table th:nth-child(3),
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table td:nth-child(3){
    width:11%!important;
    min-width:100px!important;
    max-width:120px!important;
    white-space:nowrap!important;
  }

  /* Concepto */
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table th:nth-child(4),
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table td:nth-child(4){
    width:31%!important;
    min-width:245px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  /* Descripción */
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table th:nth-child(5),
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table td:nth-child(5){
    width:31%!important;
    min-width:245px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  /* Cantidad */
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table th:nth-child(6),
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table td:nth-child(6){
    width:14%!important;
    min-width:120px!important;
    white-space:nowrap!important;
  }
}

@media screen and (max-width:1024px){
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table{
    width:900px!important;
    min-width:900px!important;
  }
}


/* =========================================================
   SICAH · DEPENDENCIA · CAH-02 · CANTIDAD CENTRADA Y DESTACADA · 2026-10-13
   ========================================================= */
@media screen{
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table th:nth-child(6){
    text-align:center!important;
  }
  body.role-dependencia .capture-report-ref .capture-panel-cah02 .capture-table td:nth-child(6){
    text-align:center!important;
    font-weight:800!important;
    font-size:15px!important;
    line-height:1.2!important;
    font-variant-numeric:tabular-nums!important;
  }
}


/* =========================================================
   SICAH · DEPENDENCIA · SUBIR INFORME · HOTFIX ICONOS Y ALINEACIÓN · 2026-10-13
   Mantiene el bloque compacto y evita que SVG globales se expandan.
   ========================================================= */
@media screen{
  body.role-dependencia .capture-upload-copy .capture-mobile-pdf-help{
    display:block!important;
    width:min(100%,600px)!important;
    max-width:600px!important;
    margin:10px 0 9px!important;
    padding:9px 11px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body.role-dependencia .capture-upload-copy .capture-mobile-pdf-links{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:7px!important;
    margin:7px 0 5px!important;
  }
  body.role-dependencia .capture-upload-copy .capture-mobile-app-link{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:0!important;
    min-height:34px!important;
    padding:6px 10px!important;
    gap:6px!important;
    box-sizing:border-box!important;
    white-space:nowrap!important;
  }
  body.role-dependencia .capture-upload-copy .capture-mobile-app-icon{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:17px!important;
    min-width:17px!important;
    max-width:17px!important;
    height:17px!important;
    min-height:17px!important;
    max-height:17px!important;
    flex:0 0 17px!important;
    overflow:hidden!important;
    line-height:0!important;
  }
  body.role-dependencia .capture-upload-copy .capture-mobile-app-icon svg,
  body.role-dependencia .capture-upload-copy .capture-mobile-app-link svg{
    display:block!important;
    width:17px!important;
    min-width:17px!important;
    max-width:17px!important;
    height:17px!important;
    min-height:17px!important;
    max-height:17px!important;
    flex:0 0 17px!important;
  }
  body.role-dependencia .capture-upload-copy .capture-ilovepdf-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    width:auto!important;
    min-height:32px!important;
    padding:6px 10px!important;
    vertical-align:middle!important;
  }
  body.role-dependencia .capture-upload-copy .capture-ilovepdf-btn svg{
    width:15px!important;
    min-width:15px!important;
    max-width:15px!important;
    height:15px!important;
    min-height:15px!important;
    max-height:15px!important;
    display:block!important;
  }
  body.role-dependencia .capture-upload-copy .capture-pdf-helper{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:7px!important;
    margin-top:9px!important;
  }
}
@media screen and (max-width:620px){
  body.role-dependencia .capture-upload-copy .capture-mobile-pdf-help{max-width:100%!important;width:100%!important}
  body.role-dependencia .capture-upload-copy .capture-mobile-pdf-links{display:grid!important;grid-template-columns:1fr!important}
  body.role-dependencia .capture-upload-copy .capture-mobile-app-link{width:100%!important}
}


/* =========================================================
   SICAH · DEPENDENCIA · CAPTURA · TÍTULO MÓVIL SIN OBSTRUCCIÓN · 2026-10-13
   Mantiene visible la barra de colores sin tapar el nombre del periodo.
   ========================================================= */
@media screen and (max-width:780px){
  body.role-dependencia .capture-report-ref > .capture-page-head{
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    padding:16px 14px 16px 28px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }

  body.role-dependencia .capture-report-ref > .capture-page-head:before{
    left:0!important;
    top:14px!important;
    bottom:14px!important;
    width:6px!important;
    z-index:0!important;
    pointer-events:none!important;
  }

  body.role-dependencia .capture-report-ref > .capture-page-head > div:first-child{
    position:relative!important;
    z-index:1!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    padding-left:0!important;
  }

  body.role-dependencia .capture-report-ref > .capture-page-head h1{
    position:relative!important;
    z-index:1!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    font-size:clamp(24px,7vw,29px)!important;
    line-height:1.08!important;
    letter-spacing:-.035em!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }

  body.role-dependencia .capture-report-ref > .capture-page-head p{
    position:relative!important;
    z-index:1!important;
    width:100%!important;
    max-width:100%!important;
    margin-top:9px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  body.role-dependencia .capture-report-ref > .capture-page-head .capture-page-head-actions{
    position:relative!important;
    z-index:1!important;
    width:100%!important;
  }
}

@media screen and (max-width:420px){
  body.role-dependencia .capture-report-ref > .capture-page-head{
    padding-left:26px!important;
    padding-right:12px!important;
  }
  body.role-dependencia .capture-report-ref > .capture-page-head h1{
    font-size:25px!important;
    line-height:1.08!important;
  }
}

/* =========================================================
   SICAH · DEPENDENCIA · REGLAMENTO · PRESENTACIÓN DESTACADA
   ========================================================= */
.reglamento-showcase{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(300px,360px);
  gap:24px;
  align-items:stretch;
  width:min(1180px,100%);
  margin:18px auto 0;
}
.reglamento-showcase-copy{
  position:relative;
  min-width:0;
  padding:30px 30px 28px;
  border:1px solid #d7e2f0;
  border-radius:26px;
  background:
    radial-gradient(circle at top right, rgba(23,184,200,.13) 0, rgba(23,184,200,0) 33%),
    linear-gradient(135deg,#ffffff 0%,#f5f9ff 100%);
  box-shadow:0 18px 36px rgba(7,46,105,.07);
  overflow:hidden;
}
.reglamento-showcase-copy::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:7px;
  border-radius:26px 0 0 26px;
  background:linear-gradient(180deg,#29c7dd 0%,#ff26a8 50%,#ff8f1f 100%);
}
.reglamento-showcase-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 16px;
  margin:0 0 16px;
  border:1px solid rgba(8,47,112,.10);
  border-radius:999px;
  background:#eef6ff;
  color:#0a3c8d;
  font-size:13px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.reglamento-showcase-tag::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:#17b8c8;
  box-shadow:0 0 0 5px rgba(23,184,200,.12);
}
.reglamento-showcase-title{
  margin:0 0 12px;
  color:#082f70;
  font-size:clamp(28px,4vw,42px);
  line-height:1.05;
  font-weight:950;
  letter-spacing:-.02em;
}
.reglamento-showcase-lead{
  max-width:760px;
  margin:0 0 12px;
  color:#243d62;
  font-size:clamp(18px,2vw,22px);
  line-height:1.45;
  font-weight:850;
}
.reglamento-showcase-text{
  max-width:780px;
  margin:0;
  color:#5b6f8e;
  font-size:16px;
  line-height:1.72;
  font-weight:600;
}
.reglamento-modern-features{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:22px;
}
.reglamento-modern-features span{
  display:flex;
  align-items:center;
  min-height:56px;
  padding:0 16px;
  box-sizing:border-box;
  border:1px solid rgba(8,47,112,.11);
  border-radius:16px;
  background:rgba(255,255,255,.90);
  color:#082f70;
  font-size:15px;
  line-height:1.35;
  font-weight:900;
  box-shadow:0 8px 18px rgba(8,47,112,.05);
}
.reglamento-modern-features span:before{
  content:"";
  width:10px;
  height:10px;
  flex:0 0 10px;
  margin-right:10px;
  border-radius:50%;
  background:#17b8c8;
  box-shadow:0 0 0 6px rgba(23,184,200,.10);
}
.reglamento-thumbnail-section{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  min-width:0;
  padding:20px 18px 18px;
  border:1px solid #d6deea;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 28px rgba(7,46,105,.07);
}
.reglamento-thumbnail-title{
  margin:0 0 6px;
  color:#30343b;
  font-size:24px;
  line-height:1.08;
  font-weight:950;
  text-align:left;
}
.reglamento-thumbnail-subtitle{
  margin:0 0 14px;
  color:#61738e;
  font-size:13px;
  line-height:1.45;
  font-weight:700;
}
.reglamento-thumbnail-link{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:470px;
  margin:0 auto;
  padding:14px;
  overflow:hidden;
  border:1px solid #d7e2f1;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%);
  text-decoration:none;
  outline:none;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
}
.reglamento-thumbnail-link:not(.is-disabled){cursor:pointer;}
.reglamento-thumbnail-image{
  display:block;
  width:100%;
  height:auto;
  max-height:500px;
  object-fit:contain;
  object-position:center center;
  border:0;
  background:transparent;
}
@media (hover:hover) and (pointer:fine){
  .reglamento-thumbnail-link:not(.is-disabled):hover{
    transform:translateY(-3px);
    border-color:#9fb6d8;
    box-shadow:0 16px 26px rgba(8,47,112,.10);
    filter:saturate(1.02);
  }
  .reglamento-showcase:has(.reglamento-thumbnail-link:not(.is-disabled):hover) .reglamento-thumbnail-section{
    box-shadow:0 16px 34px rgba(8,47,112,.10);
  }
}
.reglamento-thumbnail-link:not(.is-disabled):focus-visible{
  box-shadow:0 0 0 4px rgba(8,47,112,.15);
}
.reglamento-thumbnail-link.is-disabled{
  opacity:.72;
  cursor:not-allowed;
}
@media(max-width:1024px){
  .reglamento-showcase{
    grid-template-columns:1fr;
  }
  .reglamento-showcase-copy{
    padding:26px 24px 24px;
  }
  .reglamento-thumbnail-section{
    max-width:360px;
    width:100%;
    margin:0 auto;
  }
}
@media(max-width:780px){
  .reglamento-showcase{
    width:min(100%, 92vw);
    gap:18px;
    margin-top:16px;
  }
  .reglamento-showcase-copy{
    padding:24px 18px 20px;
    border-radius:22px;
  }
  .reglamento-showcase-title{
    font-size:32px;
  }
  .reglamento-showcase-lead{
    font-size:18px;
  }
  .reglamento-showcase-text{
    font-size:14px;
    line-height:1.62;
  }
  .reglamento-modern-features{
    grid-template-columns:1fr;
  }
  .reglamento-modern-features span{
    min-height:48px;
    font-size:14px;
  }
  .reglamento-thumbnail-title{
    font-size:21px;
  }
  .reglamento-thumbnail-link{
    min-height:390px;
  }
}
@media(max-width:420px){
  .reglamento-showcase-copy{
    padding:22px 16px 18px;
  }
  .reglamento-showcase-title{
    font-size:28px;
  }
  .reglamento-showcase-lead{
    font-size:17px;
  }
  .reglamento-showcase-tag{
    min-height:34px;
    padding:0 14px;
    font-size:11px;
  }
  .reglamento-thumbnail-section{
    padding:18px 14px 14px;
  }
  .reglamento-thumbnail-link{
    min-height:330px;
    padding:10px;
  }
}


/* =========================================================
   SICAH · DEPENDENCIA · REGLAMENTO · SIN LÍNEA DE COLORES
   ========================================================= */
.reglamento-showcase::before,
.reglamento-showcase-copy::before{
  content:none!important;
  display:none!important;
}


/* =========================================================
   SICAH · DEPENDENCIA · REGLAMENTO · TIPOGRAFÍA DESTACADA
   2026-10-13
   ========================================================= */
.reglamento-showcase-copy::before{display:none!important;content:none!important;}
.reglamento-showcase-copy{
  padding:34px 34px 30px!important;
  background:
    radial-gradient(circle at 88% 12%,rgba(23,184,200,.16),transparent 30%),
    radial-gradient(circle at 10% 90%,rgba(38,108,211,.08),transparent 34%),
    linear-gradient(145deg,#ffffff 0%,#f6faff 100%)!important;
  border-color:rgba(8,47,112,.14)!important;
}
.reglamento-showcase-tag{
  box-shadow:0 8px 18px rgba(8,47,112,.08)!important;
  letter-spacing:.07em!important;
}
.reglamento-showcase-title{
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
  margin:0 0 16px!important;
  font-size:clamp(34px,4.2vw,48px)!important;
  line-height:.98!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
  text-shadow:0 2px 0 rgba(255,255,255,.9),0 8px 18px rgba(8,47,112,.08)!important;
}
.reglamento-showcase-title span{
  color:#082f70!important;
}
.reglamento-showcase-title strong{
  display:inline-block!important;
  width:max-content!important;
  max-width:100%!important;
  padding-bottom:7px!important;
  color:#0a56b6!important;
  font:inherit!important;
  position:relative!important;
}
.reglamento-showcase-title strong::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  bottom:0!important;
  width:min(190px,70%)!important;
  height:5px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#17b8c8 0%,#1d67d2 100%)!important;
  box-shadow:0 5px 12px rgba(23,184,200,.16)!important;
}
.reglamento-showcase-lead{
  max-width:780px!important;
  margin:0 0 16px!important;
  padding:14px 17px!important;
  border:1px solid rgba(8,47,112,.09)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.74)!important;
  color:#213d66!important;
  font-size:clamp(18px,2vw,22px)!important;
  line-height:1.45!important;
  font-weight:750!important;
  box-shadow:0 8px 18px rgba(8,47,112,.045)!important;
}
.reglamento-showcase-lead strong{
  color:#0a56b6!important;
  font-weight:950!important;
}
.reglamento-showcase-text{
  max-width:800px!important;
  color:#526986!important;
  font-size:16px!important;
  line-height:1.72!important;
  font-weight:650!important;
}
.reglamento-showcase-text strong{
  color:#082f70!important;
  font-weight:900!important;
}
.reglamento-modern-features{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:13px!important;
  margin-top:24px!important;
}
.reglamento-modern-features .reglamento-feature{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:12px!important;
  row-gap:3px!important;
  align-items:center!important;
  min-height:80px!important;
  padding:13px 15px!important;
  border:1px solid rgba(8,47,112,.11)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.92)!important;
  color:#082f70!important;
  box-shadow:0 10px 22px rgba(8,47,112,.055)!important;
}
.reglamento-modern-features .reglamento-feature::before{display:none!important;content:none!important;}
.reglamento-feature-icon{
  grid-row:1 / span 2!important;
  display:grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,#eaf9fb,#eaf2ff)!important;
  border:1px solid rgba(23,184,200,.22)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8)!important;
  position:relative!important;
}
.reglamento-feature-icon::before,
.reglamento-feature-icon::after{
  content:""!important;
  position:absolute!important;
  box-sizing:border-box!important;
}
.reglamento-feature-icon.search::before{
  width:16px!important;height:16px!important;border:3px solid #0a56b6!important;border-radius:50%!important;left:12px!important;top:10px!important;
}
.reglamento-feature-icon.search::after{
  width:12px!important;height:3px!important;background:#0a56b6!important;border-radius:3px!important;transform:rotate(45deg)!important;left:26px!important;top:28px!important;
}
.reglamento-feature-icon.nav::before{
  width:22px!important;height:16px!important;border-top:3px solid #0a56b6!important;border-bottom:3px solid #0a56b6!important;left:13px!important;top:15px!important;
}
.reglamento-feature-icon.nav::after{
  width:8px!important;height:8px!important;border-top:3px solid #0a56b6!important;border-right:3px solid #0a56b6!important;transform:rotate(45deg)!important;right:10px!important;top:12px!important;
}
.reglamento-feature-icon.voice::before{
  width:10px!important;height:16px!important;background:#0a56b6!important;border-radius:3px!important;left:12px!important;top:16px!important;clip-path:polygon(0 35%,35% 35%,100% 0,100% 100%,35% 65%,0 65%)!important;
}
.reglamento-feature-icon.voice::after{
  width:15px!important;height:22px!important;border:3px solid #17b8c8!important;border-left:0!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-radius:0 50% 50% 0!important;right:8px!important;top:13px!important;
}
.reglamento-feature-icon.easy::before{
  width:24px!important;height:24px!important;border-radius:50%!important;background:#0a56b6!important;left:12px!important;top:12px!important;
}
.reglamento-feature-icon.easy::after{
  width:11px!important;height:6px!important;border-left:3px solid #fff!important;border-bottom:3px solid #fff!important;transform:rotate(-45deg)!important;left:18px!important;top:20px!important;
}
.reglamento-feature b{
  grid-column:2!important;
  display:block!important;
  color:#082f70!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:950!important;
}
.reglamento-feature small{
  grid-column:2!important;
  display:block!important;
  color:#657893!important;
  font-size:11.5px!important;
  line-height:1.35!important;
  font-weight:650!important;
}
.reglamento-thumbnail-title{
  margin-bottom:14px!important;
  color:#082f70!important;
  font-size:25px!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}
.reglamento-thumbnail-subtitle{display:none!important;}
@media(max-width:780px){
  .reglamento-showcase-copy{padding:26px 20px 22px!important;}
  .reglamento-showcase-title{font-size:clamp(30px,9vw,38px)!important;}
  .reglamento-modern-features{grid-template-columns:1fr!important;}
  .reglamento-modern-features .reglamento-feature{min-height:74px!important;}
}


/* =========================================================
   SICAH · DEPENDENCIA · REGLAMENTO · CONTENEDOR A TODO EL ANCHO
   2026-10-13
   ========================================================= */
.reglamento-showcase{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
.reglamento-thumbnail-subtitle{
  display:none!important;
}
@media(max-width:780px){
  .reglamento-showcase{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }
}


/* =========================================================
   SICAH · DEPENDENCIA · REGLAMENTO · DISEÑO SEGÚN REFERENCIA
   2026-10-13
   ========================================================= */
.reglamento-showcase{
  grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;
  gap:22px!important;
  align-items:stretch!important;
}
.reglamento-showcase-copy{
  position:relative!important;
  padding:30px 28px 28px!important;
  border:1px solid #d7e4f2!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 94% 6%,rgba(23,184,200,.16),transparent 34%),
    linear-gradient(145deg,#ffffff 0%,#f7fbff 60%,#f3f8ff 100%)!important;
  box-shadow:0 14px 30px rgba(7,46,105,.07)!important;
  overflow:hidden!important;
}
.reglamento-showcase-copy::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:0!important;
  bottom:0!important;
  left:0!important;
  width:5px!important;
  border-radius:24px 0 0 24px!important;
  background:linear-gradient(180deg,#26c5da 0%,#26c5da 28%,#ff2ca6 58%,#ff8e1a 100%)!important;
}
.reglamento-showcase-tag{
  min-height:34px!important;
  padding:0 14px!important;
  margin:0 0 16px!important;
  border:1px solid rgba(8,47,112,.10)!important;
  border-radius:999px!important;
  background:#eff7ff!important;
  color:#0a458f!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.035em!important;
  box-shadow:none!important;
}
.reglamento-showcase-tag::before{
  width:9px!important;
  height:9px!important;
  background:#22bed1!important;
  box-shadow:0 0 0 5px rgba(34,190,209,.11)!important;
}
.reglamento-showcase-title{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  max-width:460px!important;
  margin:0 0 12px!important;
  color:#082f70!important;
  font-size:clamp(34px,3.5vw,46px)!important;
  line-height:.96!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
  text-shadow:none!important;
}
.reglamento-showcase-title span,
.reglamento-showcase-title strong{
  display:block!important;
  width:auto!important;
  max-width:none!important;
  padding:0!important;
  color:#082f70!important;
  font:inherit!important;
  position:static!important;
}
.reglamento-showcase-title strong::after{display:none!important;content:none!important;}
.reglamento-showcase-lead{
  max-width:650px!important;
  margin:0 0 14px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#173a70!important;
  font-size:clamp(18px,1.6vw,22px)!important;
  line-height:1.48!important;
  font-weight:900!important;
}
.reglamento-showcase-text{
  max-width:720px!important;
  margin:0!important;
  color:#60728e!important;
  font-size:15px!important;
  line-height:1.62!important;
  font-weight:650!important;
}
.reglamento-modern-features{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:11px!important;
  max-width:620px!important;
  margin-top:22px!important;
}
.reglamento-modern-features .reglamento-feature{
  display:flex!important;
  align-items:center!important;
  min-height:50px!important;
  padding:10px 14px!important;
  border:1px solid rgba(8,47,112,.10)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 6px 16px rgba(8,47,112,.045)!important;
  color:#082f70!important;
}
.reglamento-modern-features .reglamento-feature::before{
  content:""!important;
  display:block!important;
  width:10px!important;
  height:10px!important;
  flex:0 0 10px!important;
  margin-right:10px!important;
  border-radius:50%!important;
  background:#20becf!important;
  box-shadow:0 0 0 5px rgba(32,190,207,.10)!important;
}
.reglamento-modern-features .reglamento-feature b{
  display:block!important;
  color:#082f70!important;
  font-size:15px!important;
  line-height:1.25!important;
  font-weight:950!important;
}
.reglamento-feature-icon,
.reglamento-modern-features .reglamento-feature small{
  display:none!important;
}
.reglamento-thumbnail-section{
  align-self:stretch!important;
}
@media(max-width:1024px){
  .reglamento-showcase{
    grid-template-columns:1fr!important;
  }
  .reglamento-showcase-copy{
    width:100%!important;
  }
  .reglamento-modern-features{
    max-width:none!important;
  }
  .reglamento-thumbnail-section{
    max-width:360px!important;
    margin:0 auto!important;
  }
}
@media(max-width:560px){
  .reglamento-showcase-copy{
    padding:22px 18px 20px!important;
    border-radius:20px!important;
  }
  .reglamento-showcase-copy::before{
    width:4px!important;
    border-radius:20px 0 0 20px!important;
  }
  .reglamento-showcase-title{
    max-width:280px!important;
    font-size:34px!important;
    line-height:.97!important;
  }
  .reglamento-showcase-lead{
    font-size:18px!important;
  }
  .reglamento-showcase-text{
    font-size:14px!important;
    line-height:1.58!important;
  }
  .reglamento-modern-features .reglamento-feature{
    min-height:48px!important;
    border-radius:14px!important;
  }
}


/* =========================================================
   SICAH · DEPENDENCIA · FACEBOOK EN BANNER DE INICIO
   ========================================================= */
@media screen{
  body.role-dependencia.page-inicio .home-ref-hero-inner{
    position:relative!important;
  }
  body.role-dependencia.page-inicio .home-facebook-link{
    position:absolute;
    z-index:6;
    right:clamp(28px,4.2vw,68px);
    bottom:128px;
    display:grid;
    place-items:center;
    width:58px;
    height:58px;
    border:0;
    border-radius:50%;
    background:transparent;
    text-decoration:none;
    outline:none;
    cursor:pointer;
    filter:drop-shadow(0 8px 14px rgba(7,46,105,.16));
    transition:transform .18s ease,filter .18s ease;
  }
  body.role-dependencia.page-inicio .home-facebook-icon{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:50%;
  }
  body.role-dependencia.page-inicio .home-facebook-link:hover{
    transform:translateY(-2px) scale(1.06);
    filter:drop-shadow(0 10px 18px rgba(24,119,242,.25));
  }
  body.role-dependencia.page-inicio .home-facebook-link:active{
    transform:translateY(0) scale(.96);
  }
  body.role-dependencia.page-inicio .home-facebook-link:focus-visible{
    box-shadow:0 0 0 4px rgba(24,119,242,.20);
  }
}
@media screen and (max-width:1050px){
  body.role-dependencia.page-inicio .home-facebook-link{
    right:28px;
    bottom:116px;
    width:52px;
    height:52px;
  }
}
@media screen and (max-width:780px){
  body.role-dependencia.page-inicio .home-facebook-link{
    right:20px;
    bottom:94px;
    width:46px;
    height:46px;
  }
}
@media screen and (max-width:520px){
  body.role-dependencia.page-inicio .home-facebook-link{
    right:16px;
    bottom:78px;
    width:40px;
    height:40px;
  }
}

/* =========================================================
   SICAH · FONDO DE INTERFACES ULTRADEFINIDO · 2026-10-13
   Elimina desenfoque y ampliación artificial para conservar
   la máxima nitidez de la imagen cargada por el administrador.
   ========================================================= */
@media screen{
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    background-image:linear-gradient(rgba(248,250,253,.08),rgba(248,250,253,.12)),var(--sicah-interface-bg)!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    background-size:cover!important;
    filter:none!important;
    -webkit-filter:none!important;
    transform:none!important;
    opacity:1!important;
    will-change:auto!important;
  }
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::after{
    opacity:.08!important;
  }
}
@media screen and (max-width:780px){
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    background-position:center top!important;
    filter:none!important;
    -webkit-filter:none!important;
    transform:none!important;
  }
}


/* =========================================================
   SICAH · FONDO GENERAL: IMAGEN ORIGINAL SIN DESENFOQUE
   ========================================================= */
@media screen{
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    inset:0!important;
    background-image:var(--sicah-interface-bg)!important;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
    filter:none!important;
    -webkit-filter:none!important;
    transform:none!important;
    opacity:1!important;
  }
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::after{
    content:none!important;
    display:none!important;
    background:none!important;
    opacity:0!important;
  }
}
@media screen and (max-width:780px){
  body.sicah-dynamic-bg:not(.login-body):not(.login-body-v2):not(.login-body-v3)::before{
    background-position:center top!important;
    filter:none!important;
    -webkit-filter:none!important;
    transform:none!important;
  }
}

/* =========================================================
   SICAH · USUARIO CAH · CINTA SUPERIOR EN UNA SOLA FILA
   Referencia visual: usuario Dependencia · 2026-10-13
   ========================================================= */
@media screen and (min-width:981px){
  body.role-cah .topbar-ref{
    min-height:0!important;
    overflow:visible!important;
  }

  body.role-cah .topbar-ref .topbar-inner{
    width:min(1780px,calc(100% - 28px))!important;
    max-width:none!important;
    min-height:82px!important;
    padding:8px 0!important;

    display:grid!important;
    grid-template-columns:minmax(290px,350px) minmax(0,1fr) minmax(235px,285px)!important;
    grid-template-rows:1fr!important;
    grid-template-areas:"brand nav user"!important;

    align-items:center!important;
    column-gap:14px!important;
    row-gap:0!important;
  }

  body.role-cah .topbar-ref .brand-ref{
    grid-area:brand!important;
    align-self:center!important;
    justify-self:start!important;
    width:100%!important;
    min-width:0!important;
    max-width:350px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    overflow:hidden!important;
  }

  body.role-cah .topbar-ref .brand-ref img{
    width:58px!important;
    height:50px!important;
    object-fit:contain!important;
    flex:0 0 auto!important;
  }

  body.role-cah .topbar-ref .brand-text{
    min-width:0!important;
    overflow:hidden!important;
  }

  body.role-cah .topbar-ref .brand-text strong{
    display:block!important;
    max-width:100%!important;
    color:#082f70!important;
    font-size:14px!important;
    line-height:1.08!important;
    font-weight:900!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.role-cah .topbar-ref .brand-text span{
    display:block!important;
    margin-top:4px!important;
    color:#637896!important;
    font-size:10px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  body.role-cah .topbar-ref .topnav-ref{
    grid-area:nav!important;
    align-self:center!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;

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

    gap:2px!important;
    padding:2px 0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
    scroll-snap-type:none!important;
  }

  body.role-cah .topbar-ref .topnav-ref::-webkit-scrollbar{
    display:none!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    flex:0 0 auto!important;
    min-height:40px!important;
    height:40px!important;
    padding:0 9px!important;
    gap:5px!important;
    border-radius:11px!important;
    color:#30343b!important;
    background:transparent!important;
    box-shadow:none!important;

    font-size:10.7px!important;
    line-height:1!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }

  body.role-cah .topbar-ref .nav-link-ref:hover{
    background:#f0f7fa!important;
    color:#00a7b8!important;
  }

  body.role-cah .topbar-ref .nav-link-ref.active{
    background:linear-gradient(180deg,#e4f9fb 0%,#def5f7 100%)!important;
    color:#00a7b8!important;
    box-shadow:inset 0 0 0 1px rgba(0,167,184,.25)!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:15px!important;
    height:15px!important;
    flex:0 0 auto!important;
  }

  body.role-cah .topbar-ref .user-account-static{
    grid-area:user!important;
    align-self:center!important;
    justify-self:end!important;
    width:100%!important;
    max-width:285px!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:2px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref{
    width:100%!important;
    max-width:285px!important;
    min-width:0!important;
    height:52px!important;
    min-height:52px!important;
    padding:6px 10px 6px 7px!important;
    gap:8px!important;
    border-radius:15px!important;
    background:linear-gradient(180deg,#fbfdff,#f6f9fd)!important;
    border:1px solid #d8e2ee!important;
    box-shadow:0 2px 8px rgba(20,56,104,.04)!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-dot{
    width:37px!important;
    height:37px!important;
    min-width:37px!important;
    font-size:12px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-meta strong{
    max-width:205px!important;
    font-size:9.8px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-meta span{
    font-size:8px!important;
    margin-top:3px!important;
  }

  body.role-cah .user-logout-inline{
    font-size:9px!important;
    padding:1px 4px 0!important;
  }
}

/* En monitores amplios damos un poco más de aire, sin crear segunda fila. */
@media screen and (min-width:1600px){
  body.role-cah .topbar-ref .topbar-inner{
    width:min(1800px,calc(100% - 34px))!important;
    grid-template-columns:minmax(310px,370px) minmax(0,1fr) minmax(245px,300px)!important;
    column-gap:18px!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    padding:0 10px!important;
    font-size:11.2px!important;
    gap:5px!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:16px!important;
    height:16px!important;
  }
}

/* Portátiles: se conserva una sola fila y el menú puede desplazarse horizontalmente. */
@media screen and (min-width:981px) and (max-width:1279px){
  body.role-cah .topbar-ref .topbar-inner{
    width:calc(100% - 16px)!important;
    grid-template-columns:minmax(215px,255px) minmax(0,1fr) minmax(185px,220px)!important;
    column-gap:7px!important;
    min-height:76px!important;
  }

  body.role-cah .topbar-ref .brand-ref img{
    width:48px!important;
    height:42px!important;
  }

  body.role-cah .topbar-ref .brand-text strong{
    font-size:11.5px!important;
  }

  body.role-cah .topbar-ref .brand-text span{
    font-size:8.5px!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    min-height:36px!important;
    height:36px!important;
    padding:0 7px!important;
    font-size:9.6px!important;
    gap:4px!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:14px!important;
    height:14px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref{
    max-width:220px!important;
    height:47px!important;
    min-height:47px!important;
  }
}



/* =========================================================
   SICAH · USUARIO CAH · MENÚ COMPLETO VISIBLE EN ESCRITORIO
   Ajuste 2026-10-13
   ========================================================= */
@media screen and (min-width:1280px){
  body.role-cah .topbar-ref .topbar-inner{
    width:calc(100% - 18px)!important;
    max-width:none!important;
    grid-template-columns:minmax(190px,220px) minmax(0,1fr) minmax(190px,220px)!important;
    column-gap:8px!important;
  }

  body.role-cah .topbar-ref .brand-ref{
    max-width:220px!important;
    gap:7px!important;
  }

  body.role-cah .topbar-ref .brand-ref img{
    width:44px!important;
    height:40px!important;
  }

  body.role-cah .topbar-ref .brand-text strong{
    font-size:10.6px!important;
  }

  body.role-cah .topbar-ref .brand-text span{
    font-size:8px!important;
    margin-top:2px!important;
  }

  body.role-cah .topbar-ref .topnav-ref{
    justify-content:space-between!important;
    gap:0!important;
    overflow-x:visible!important;
    padding:1px 0!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    flex:0 1 auto!important;
    min-width:0!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 3px!important;
    gap:3px!important;
    border-radius:9px!important;
    font-size:8.2px!important;
    letter-spacing:-.01em!important;
  }

  body.role-cah .topbar-ref .nav-link-ref > span:last-child{
    white-space:nowrap!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:12px!important;
    height:12px!important;
    min-width:12px!important;
  }

  body.role-cah .topbar-ref .user-account-static{
    max-width:220px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref{
    max-width:220px!important;
    height:46px!important;
    min-height:46px!important;
    padding:4px 7px 4px 5px!important;
    gap:6px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-dot{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    font-size:10px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-meta strong{
    max-width:165px!important;
    font-size:8.4px!important;
  }

  body.role-cah .topbar-ref .user-chip-ref .user-meta span{
    font-size:7px!important;
    margin-top:2px!important;
  }

  body.role-cah .user-logout-inline{
    font-size:8px!important;
  }
}

/* En monitores más anchos recupera un poco de tamaño sin ocultar opciones */
@media screen and (min-width:1600px){
  body.role-cah .topbar-ref .topbar-inner{
    grid-template-columns:minmax(235px,260px) minmax(0,1fr) minmax(220px,245px)!important;
    column-gap:10px!important;
  }

  body.role-cah .topbar-ref .brand-ref{
    max-width:260px!important;
  }

  body.role-cah .topbar-ref .brand-ref img{
    width:48px!important;
    height:43px!important;
  }

  body.role-cah .topbar-ref .brand-text strong{
    font-size:11.6px!important;
  }

  body.role-cah .topbar-ref .brand-text span{
    font-size:8.6px!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    padding:0 4px!important;
    gap:3px!important;
    font-size:9px!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
  }

  body.role-cah .topbar-ref .user-account-static,
  body.role-cah .topbar-ref .user-chip-ref{
    max-width:245px!important;
  }
}

@media screen and (min-width:1850px){
  body.role-cah .topbar-ref .topbar-inner{
    grid-template-columns:minmax(250px,280px) minmax(0,1fr) minmax(230px,255px)!important;
    column-gap:12px!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    padding:0 5px!important;
    font-size:9.5px!important;
    gap:4px!important;
  }

  body.role-cah .topbar-ref .nav-svg,
  body.role-cah .topbar-ref .nav-svg svg{
    width:14px!important;
    height:14px!important;
    min-width:14px!important;
  }
}

/* =========================================================
   SICAH · USUARIO CAH · MENÚ SUPERIOR COMPACTO
   Menos espacio entre títulos · 2026-10-13
   ========================================================= */
@media screen and (min-width:1280px){
  body.role-cah .topbar-ref .topnav-ref{
    justify-content:center!important;
    gap:7px!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    flex:0 0 auto!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
}

@media screen and (min-width:1600px){
  body.role-cah .topbar-ref .topnav-ref{
    gap:9px!important;
  }

  body.role-cah .topbar-ref .nav-link-ref{
    padding-left:7px!important;
    padding-right:7px!important;
  }
}

@media screen and (min-width:1850px){
  body.role-cah .topbar-ref .topnav-ref{
    gap:10px!important;
  }
}

/* =========================================================
   SICAH · USUARIO CAH · TEXTO DE MENÚ MÁS GRANDE
   ========================================================= */
@media screen and (min-width:1280px){
  body.role-cah .topbar-ref .nav-link-ref{
    font-size:10.2px!important;
    font-weight:850!important;
  }
}

@media screen and (min-width:1600px){
  body.role-cah .topbar-ref .nav-link-ref{
    font-size:10.8px!important;
  }
}

@media screen and (min-width:1850px){
  body.role-cah .topbar-ref .nav-link-ref{
    font-size:11.2px!important;
  }
}

/* =========================================================
   SICAH · CAH · INICIO MÓVIL · ORDEN DEFINITIVO
   1. AGENDA DE LA CAH
   2. MENÚ DE OPCIONES
   3. EVENTOS Y ACTIVIDADES
   ========================================================= */
@media screen and (max-width:780px){
  body.role-cah.page-inicio .home-ref{
    display:flex!important;
    flex-direction:column!important;
  }

  body.role-cah.page-inicio .home-ref-menu-wrap{
    order:1!important;
    margin-top:0!important;
    margin-bottom:14px!important;
  }

  body.role-cah.page-inicio .cah-home-dashboard{
    display:flex!important;
    flex-direction:column!important;
    gap:14px!important;
  }

  body.role-cah.page-inicio .cah-home-pending{
    order:1!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }

  body.role-cah.page-inicio .cah-home-menu{
    order:2!important;
    width:100%!important;
    margin:0!important;
  }

  body.role-cah.page-inicio .home-ref-events{
    order:2!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }
}

/* =========================================================
   SICAH · CAH · MENÚ MÓVIL · PESTAÑA ILUMINADA TURQUESA
   ========================================================= */
@media screen and (max-width:780px){
  body.role-cah .topbar-ref .nav-link-ref{
    border:1px solid transparent!important;
    border-radius:10px!important;
    transition:
      background .16s ease,
      color .16s ease,
      border-color .16s ease,
      box-shadow .16s ease,
      transform .12s ease!important;
  }

  body.role-cah .topbar-ref .nav-link-ref:hover,
  body.role-cah .topbar-ref .nav-link-ref:focus-visible,
  body.role-cah .topbar-ref .nav-link-ref:active{
    background:linear-gradient(180deg,#e5f9fb 0%,#dcf5f7 100%)!important;
    color:#00a6b5!important;
    border-color:rgba(0,166,181,.28)!important;
    box-shadow:
      inset 0 0 0 1px rgba(0,166,181,.08),
      0 4px 12px rgba(0,166,181,.10)!important;
  }

  body.role-cah .topbar-ref .nav-link-ref.active{
    background:linear-gradient(180deg,#e5f9fb 0%,#dcf5f7 100%)!important;
    color:#00a6b5!important;
    border-color:rgba(0,166,181,.30)!important;
    box-shadow:
      inset 0 0 0 1px rgba(0,166,181,.08),
      0 4px 12px rgba(0,166,181,.10)!important;
  }

  body.role-cah .topbar-ref .nav-link-ref.active .nav-svg,
  body.role-cah .topbar-ref .nav-link-ref.active .nav-svg svg,
  body.role-cah .topbar-ref .nav-link-ref:hover .nav-svg,
  body.role-cah .topbar-ref .nav-link-ref:hover .nav-svg svg{
    color:#00a6b5!important;
    fill:currentColor!important;
  }

  body.role-cah .topbar-ref .nav-link-ref:active{
    transform:translateY(1px)!important;
  }
}



/* =========================================================
   SICAH · CAH · GENERADOR DE OFICIO · SELECTOR DE TIPO
   ========================================================= */
.office-type-selector{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:6px 0 3px;
}
.office-type-option{
  position:relative;
  display:block;
  cursor:pointer;
}
.office-type-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.office-type-option span{
  display:flex;
  min-height:42px;
  flex-direction:column;
  justify-content:center;
  gap:0;
  padding:6px 11px;
  box-sizing:border-box;
  border:1px solid #d7e2ef;
  border-radius:14px;
  background:#fff;
  color:#253b5b;
  transition:.16s ease;
}
.office-type-option strong{font-size:13px;color:#082f70}
.office-type-option small{font-size:11px;line-height:1.35;color:#687b96}
.office-type-option input:checked + span{
  border-color:#13b3c2;
  background:linear-gradient(180deg,#eafafb,#e2f7f8);
  box-shadow:0 0 0 2px rgba(19,179,194,.10),0 8px 18px rgba(7,46,105,.06);
}
.office-type-option:hover span{transform:translateY(-1px);border-color:#a7c8d5}
[data-office-submit]:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.15)}
@media(max-width:720px){
  .office-type-selector{grid-template-columns:1fr}
  .office-type-option span{min-height:40px;padding:6px 10px}
  .office-template-map{grid-template-columns:1fr}
}

/* =========================================================
   SICAH · CAH-01 · COLORES DE MOVIMIENTOS EN CAPTURA/HISTÓRICO
   ========================================================= */
.table tbody tr.movement-row-income > td{
  background:#e5f6eb!important;
}
.table tbody tr.movement-row-expense > td{
  background:#fff0f3!important;
}
.table tbody tr.movement-row-income > td:first-child{
  box-shadow:inset 4px 0 0 #12a74f!important;
}
.table tbody tr.movement-row-expense > td:first-child{
  box-shadow:inset 4px 0 0 #eb2550!important;
}



/* ===== Total de afiliados por periodo ===== */
.capture-affiliate-form{
  min-width:250px;
  max-width:290px;
  padding:8px 10px;
  border:1px solid #c9d9ed;
  border-radius:12px;
  background:#f8fbff;
  box-shadow:0 8px 20px rgba(21,82,166,.06);
}
.capture-affiliate-form>label{
  display:block;
  margin:0 0 5px;
  color:#173d77;
  font-size:10px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.capture-affiliate-control{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px;
  align-items:center;
}
.capture-affiliate-input{
  min-height:34px!important;
  height:34px!important;
  padding:5px 9px!important;
  font-size:13px!important;
  font-weight:850!important;
}
.capture-affiliate-save{
  min-height:34px!important;
  height:34px!important;
  padding:6px 10px!important;
  font-size:10px!important;
  border-radius:9px!important;
}
.capture-affiliate-locked{
  min-width:185px;
  min-height:50px;
  padding:7px 12px;
  border:1px solid #b9d6c3;
  border-radius:12px;
  background:#effaf3;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto auto;
  column-gap:10px;
  align-items:center;
}
.capture-affiliate-locked span{
  color:#315d46;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
}
.capture-affiliate-locked strong{
  grid-row:1 / 3;
  grid-column:2;
  color:#08713d;
  font-size:22px;
  line-height:1;
  font-weight:950;
}
.capture-affiliate-locked small{
  color:#607b69;
  font-size:9px;
  font-weight:750;
}
@media(max-width:780px){
  .capture-affiliate-form,.capture-affiliate-locked{
    width:100%;
    max-width:none;
    min-width:0;
  }
}


/* ===== Año actual de trabajo: indicador fijo, sin lista desplegable ===== */
.capture-current-year{
  min-width:118px;
  min-height:52px;
  padding:7px 16px;
  border:1.5px solid #c9d8ed;
  border-radius:14px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 8px rgba(17,53,104,.03);
}
.capture-current-year span{
  color:#64748b;
  font-size:9px;
  line-height:1;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:4px;
}
.capture-current-year strong{
  color:#17346f;
  font-size:17px;
  line-height:1;
  font-weight:900;
}
@media(max-width:780px){
  .capture-current-year{
    min-width:94px;
    min-height:43px;
    padding:6px 11px;
    border-radius:11px;
  }
  .capture-current-year span{font-size:8px}
  .capture-current-year strong{font-size:14px}
}

/* ===== Paleta UX viva - módulos usuario Dependencia =====
   Colores más atractivos y definidos, sin perder orden visual ni legibilidad. */
.dependency-palette .home-ref-module{
  --module-accent:#4f86f7;
  --module-tint:#f8fbff;
  --module-glow-soft:#dbe8ff;
  --module-shadow:rgba(42,73,130,.14);
  background:linear-gradient(145deg,#ffffff 0%,var(--module-tint) 100%)!important;
  border-color:#d7e0eb!important;
  box-shadow:0 6px 18px rgba(18,42,78,.05)!important;
}
.dependency-palette .home-ref-module:before{
  height:5px!important;
  background:var(--module-accent)!important;
}
.dependency-palette .home-ref-module .home-ref-module-icon{
  background:var(--module-accent)!important;
  color:#fff!important;
  box-shadow:0 11px 24px var(--module-shadow)!important;
}
.dependency-palette .home-ref-module .home-ref-module-glow{
  background:var(--module-glow-soft)!important;
  opacity:.62!important;
}
.dependency-palette .home-ref-module:hover{
  transform:translateY(-2px)!important;
  border-color:var(--module-accent)!important;
  box-shadow:0 14px 34px var(--module-shadow)!important;
}

/* 1. Captura de Informe — rojo coral vivo */
.dependency-palette .home-ref-module.tone-red{
  --module-accent:#f0445e;
  --module-tint:#fff6f8;
  --module-glow-soft:#ffd9e0;
  --module-shadow:rgba(240,68,94,.24);
}

/* 2. Estatus — verde esmeralda vivo */
.dependency-palette .home-ref-module.tone-green{
  --module-accent:#12b76a;
  --module-tint:#f4fcf8;
  --module-glow-soft:#d4f4e5;
  --module-shadow:rgba(18,183,106,.23);
}

/* 3. Reglamento — morado vibrante */
.dependency-palette .home-ref-module.tone-purple{
  --module-accent:#8a5cf6;
  --module-tint:#faf7ff;
  --module-glow-soft:#e9ddff;
  --module-shadow:rgba(138,92,246,.23);
}

/* 4. Contacto — naranja cálido e intenso */
.dependency-palette .home-ref-module.tone-orange{
  --module-accent:#f59e0b;
  --module-tint:#fff9f0;
  --module-glow-soft:#ffe8b8;
  --module-shadow:rgba(245,158,11,.24);
}
.dependency-palette .home-ref-module.tone-orange .home-ref-module-icon{
  color:#5a3500!important;
}

/* 5. Formatos — azul vivo */
.dependency-palette .home-ref-module.tone-blue{
  --module-accent:#3b82f6;
  --module-tint:#f5f9ff;
  --module-glow-soft:#d7e7ff;
  --module-shadow:rgba(59,130,246,.24);
}

/* 6. Información — plata más brillante y metálica */
.dependency-palette .home-ref-module.tone-amber-red{
  --module-accent:#8f9baa;
  --module-tint:#f7f9fb;
  --module-glow-soft:#dfe5eb;
  --module-shadow:rgba(116,130,147,.22);
}
.dependency-palette .home-ref-module.tone-amber-red .home-ref-module-icon{
  background:linear-gradient(145deg,#dce2e8 0%,#b9c3cd 42%,#8f9ba8 72%,#6f7b88 100%)!important;
  color:#1f2a35!important;
  border:1px solid rgba(255,255,255,.78)!important;
}
.dependency-palette .home-ref-module.tone-amber-red .home-ref-module-glow{
  background:linear-gradient(145deg,#eef2f5 0%,#cfd7df 60%,#aeb9c4 100%)!important;
}

/* Texto neutro y limpio para conservar jerarquía UX */
.dependency-palette .home-ref-module-copy strong{
  color:#2d323b!important;
}
.dependency-palette .home-ref-module-copy span{
  color:#667085!important;
}


/* ===== UX visual unificado para tarjetas de Inicio: Dependencia, CAH y Administrador ===== */
.home-ref-module{
  --module-tint:#f8fbff;
  --module-shadow:rgba(32,66,118,.14);
  --module-glow-soft:#e6eef9;
  background:linear-gradient(145deg,#ffffff 0%,var(--module-tint) 100%)!important;
  border-color:#d8e1ec!important;
  box-shadow:0 6px 18px rgba(18,42,78,.05)!important;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease!important;
}
.home-ref-module:before{
  background:var(--module-accent,var(--md-blue))!important;
}
.home-ref-module .home-ref-module-icon{
  box-shadow:0 11px 24px var(--module-shadow)!important;
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease!important;
}
.home-ref-module .home-ref-module-glow{
  background:var(--module-glow-soft)!important;
  opacity:.60!important;
  transition:transform .28s ease,opacity .28s ease!important;
}
.home-ref-module:hover{
  transform:translateY(-3px)!important;
  border-color:var(--module-accent,var(--md-blue))!important;
  box-shadow:0 15px 34px var(--module-shadow)!important;
}
.home-ref-module:hover .home-ref-module-icon{
  transform:translateY(-1px) scale(1.035)!important;
  filter:saturate(1.08)!important;
}
.home-ref-module:hover .home-ref-module-glow{
  transform:scale(1.08)!important;
  opacity:.76!important;
}
.home-ref-module:active{
  transform:translateY(-1px) scale(.995)!important;
}

/* Tonos UX compartidos entre todos los roles */
.home-ref-module.tone-blue{
  --module-tint:#f5f9ff;
  --module-shadow:rgba(59,130,246,.23);
  --module-glow-soft:#d8e8ff;
}
.home-ref-module.tone-red{
  --module-tint:#fff6f8;
  --module-shadow:rgba(240,68,94,.23);
  --module-glow-soft:#ffdbe1;
}
.home-ref-module.tone-green,
.home-ref-module.tone-emerald{
  --module-tint:#f4fcf8;
  --module-shadow:rgba(18,183,106,.22);
  --module-glow-soft:#d6f4e5;
}
.home-ref-module.tone-purple,
.home-ref-module.tone-violet{
  --module-tint:#faf7ff;
  --module-shadow:rgba(138,92,246,.22);
  --module-glow-soft:#e9ddff;
}
.home-ref-module.tone-orange{
  --module-tint:#fff9f0;
  --module-shadow:rgba(245,158,11,.23);
  --module-glow-soft:#ffe9bb;
}
.home-ref-module.tone-cyan,
.home-ref-module.tone-sky{
  --module-tint:#f3fbfe;
  --module-shadow:rgba(14,165,233,.21);
  --module-glow-soft:#d8f2fb;
}
.home-ref-module.tone-indigo{
  --module-tint:#f7f7ff;
  --module-shadow:rgba(99,102,241,.22);
  --module-glow-soft:#e2e3ff;
}
.home-ref-module.tone-teal{
  --module-tint:#f3fbfa;
  --module-shadow:rgba(13,148,136,.22);
  --module-glow-soft:#d6f1ee;
}
.home-ref-module.tone-rose{
  --module-tint:#fff6f9;
  --module-shadow:rgba(225,72,121,.22);
  --module-glow-soft:#f9dce6;
}
.home-ref-module.tone-slate{
  --module-tint:#f7f8fa;
  --module-shadow:rgba(100,116,139,.20);
  --module-glow-soft:#e3e7ec;
}
.home-ref-module.tone-amber-red{
  --module-tint:#f7f9fb;
  --module-shadow:rgba(116,130,147,.22);
  --module-glow-soft:#dfe5eb;
}

/* Texto neutro para conservar jerarquía y legibilidad */
.home-ref-module-copy strong{
  color:#2d323b!important;
}
.home-ref-module-copy span{
  color:#667085!important;
}

/* En pantallas táctiles se evita una elevación exagerada */
@media (hover:none){
  .home-ref-module:hover{
    transform:none!important;
  }
  .home-ref-module:hover .home-ref-module-icon{
    transform:none!important;
  }
}


/* ===== Selector de Año de trabajo - Captura Dependencia ===== */
.capture-work-year-form{
  min-width:124px;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:7px 10px 8px;
  border:1.5px solid #c9d8ed;border-radius:14px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 4px 12px rgba(21,61,120,.06);
}
.capture-work-year-form label{margin:0;color:#64748b;font-size:9px;line-height:1;font-weight:900;text-align:center;letter-spacing:.055em}
.capture-work-year-select{min-width:96px;height:28px;padding:0 28px 0 10px;border:0;border-radius:8px;background-color:transparent;color:#123a78;font-size:16px;line-height:1;font-weight:950;text-align:center;cursor:pointer;outline:none}
.capture-work-year-select:hover{background-color:#eef5ff}
.capture-work-year-select:focus-visible{box-shadow:0 0 0 3px rgba(53,126,240,.18)}
@media(max-width:780px){.capture-work-year-form{min-width:108px;padding:6px 8px 7px;border-radius:11px}.capture-work-year-select{min-width:88px;height:26px;font-size:14px}}


/* ===== CGO: separación automática 25% al Fondo de Resistencia ===== */
.expense-cgo-allocation-help{
  margin-top:7px!important;
  padding:8px 10px!important;
  border:1px solid #b9d8c8!important;
  border-radius:9px!important;
  background:#f2fbf6!important;
  color:#14633d!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:750!important;
}


/* ===== Bloqueo obligatorio hasta guardar Total de afiliados ===== */
.capture-affiliate-required-alert{
  margin:14px 0 0;
  border:1px solid #f2c86b;
  background:linear-gradient(135deg,#fff9e9 0%,#fff4d5 100%);
  color:#75500a;
  box-shadow:0 6px 18px rgba(148,104,18,.08);
}
.capture-period-workspace.is-affiliate-locked{
  position:relative;
}
.capture-period-workspace.is-affiliate-locked .capture-action,
.capture-period-workspace.is-affiliate-locked button,
.capture-period-workspace.is-affiliate-locked input,
.capture-period-workspace.is-affiliate-locked select,
.capture-period-workspace.is-affiliate-locked textarea,
.capture-period-workspace.is-affiliate-locked a.btn,
.capture-period-workspace.is-affiliate-locked .capture-metric-edit{
  cursor:not-allowed!important;
}
.capture-period-workspace.is-affiliate-locked .capture-action{
  opacity:.48!important;
  filter:saturate(.45)!important;
  box-shadow:none!important;
  transform:none!important;
}
.capture-period-workspace.is-affiliate-locked .capture-metric-edit,
.capture-period-workspace.is-affiliate-locked .capture-row-actions,
.capture-period-workspace.is-affiliate-locked [data-receipt-form] button,
.capture-period-workspace.is-affiliate-locked .capture-upload-form{
  opacity:.48!important;
}


/* ===== Historial de modificaciones CAH-01 ===== */
.cah01-history-panel{margin-top:18px}
.cah01-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.cah01-history-head h2{margin:0;color:#0a3978;font-size:19px;font-weight:900}
.cah01-history-head p{margin:5px 0 0;color:#65758a;font-size:12px;line-height:1.45}
.cah01-history-count{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 11px;border-radius:999px;background:#edf4ff;color:#1558aa;font-size:11px;font-weight:900;border:1px solid #d7e7fb}
.cah01-history-empty{padding:18px;border:1px dashed #cad8e8;border-radius:14px;background:#f8fbff;color:#667085;text-align:center;font-size:12px}
.cah01-history-list{display:grid;gap:11px}
.cah01-history-item{border:1px solid #dbe4ee;border-radius:15px;background:linear-gradient(145deg,#fff,#f9fbfe);padding:13px 14px;box-shadow:0 4px 14px rgba(16,46,87,.04)}
.cah01-history-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #e7edf4}
.cah01-history-item-top>div:first-child{display:flex;flex-direction:column;gap:3px}
.cah01-history-item-top strong{color:#123d78;font-size:12px;font-weight:900}
.cah01-history-item-top span{color:#6a788b;font-size:11px}
.cah01-history-user{text-align:right;display:flex;flex-direction:column;gap:2px}
.cah01-history-user b{color:#303846;font-size:11px}
.cah01-history-user small{color:#8792a2;font-size:9px;font-weight:800;letter-spacing:.04em}
.cah01-history-changes{display:grid;gap:8px}
.cah01-history-change{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:12px;align-items:center;padding:8px 9px;border-radius:10px;background:#f6f8fb}
.cah01-history-field{color:#36445a;font-size:11px;font-weight:900}
.cah01-history-values{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:6px;align-items:center}
.cah01-history-before,.cah01-history-after{display:flex;flex-direction:column;gap:2px;min-width:0;padding:6px 8px;border-radius:8px;font-size:11px;line-height:1.25;overflow-wrap:anywhere}
.cah01-history-before{background:#fff1f2;color:#973143;border:1px solid #ffd9de}
.cah01-history-after{background:#edf9f3;color:#17623e;border:1px solid #d5f0e1}
.cah01-history-before small,.cah01-history-after small{font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.045em;opacity:.75}
.cah01-history-arrow{text-align:center;color:#7a8798;font-weight:900}
.cah01-history-reason{margin-top:9px;padding:8px 10px;border-radius:9px;background:#fff9eb;color:#6d5316;font-size:10.5px;line-height:1.35;border:1px solid #f6e5b8}
@media(max-width:760px){
  .cah01-history-head{flex-direction:column;gap:8px}
  .cah01-history-change{grid-template-columns:1fr;gap:6px}
  .cah01-history-values{grid-template-columns:1fr}
  .cah01-history-arrow{transform:rotate(90deg);height:18px;line-height:18px}
  .cah01-history-item-top{flex-direction:column}
  .cah01-history-user{text-align:left}
}

/* ===== Historial CAH-01 por registro ===== */
.cah01-history-btn{
  border:1px solid #b8c9e3!important;
  background:linear-gradient(180deg,#f7fbff,#eaf2ff)!important;
  color:#0b4fa8!important;
  box-shadow:0 4px 12px rgba(11,79,168,.10)!important;
  white-space:nowrap;
}
.cah01-history-btn:hover:not(:disabled){
  border-color:#4f8fe9!important;
  background:#e7f1ff!important;
  transform:translateY(-1px);
}
.cah01-history-btn span{
  display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:4px;
  border-radius:999px;background:#0b5fc7;color:#fff;font-size:10px;font-weight:900;
}
.cah01-history-btn.is-disabled,.cah01-history-btn:disabled{
  background:#f1f3f6!important;color:#9aa4b2!important;border-color:#d8dde5!important;
  box-shadow:none!important;cursor:not-allowed!important;opacity:.82;
}
.cah01-entry-history-modal{max-width:920px!important;width:min(920px,calc(100vw - 28px))!important;max-height:min(84vh,840px);overflow:hidden;display:flex;flex-direction:column}
.cah01-entry-history-modal .modal-head{flex:0 0 auto}
.cah01-entry-history-modal .modal-head h3{margin:0;color:#083878}
.cah01-entry-history-modal .modal-head p{margin:4px 0 0;color:#6b778c;font-size:12px;font-weight:750}
.cah01-entry-history-summary{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 12px;margin:0 0 10px;border-radius:12px;background:#f1f6fd;border:1px solid #d7e3f3;color:#31445f;font-size:12px}
.cah01-entry-history-summary strong{color:#0a4a9f;font-size:13px}
.cah01-entry-history-list{overflow:auto;padding-right:4px;display:grid;gap:10px}
.cah01-entry-history-item{border:1px solid #dbe4ef;border-radius:14px;background:#fff;padding:12px;box-shadow:0 5px 15px rgba(21,50,89,.05)}
.cah01-entry-history-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding-bottom:9px;margin-bottom:9px;border-bottom:1px solid #e7edf5}
.cah01-entry-history-top>div:first-child{display:grid;gap:3px}
.cah01-entry-history-top strong{color:#073878;font-size:12px}
.cah01-entry-history-top span{font-size:11px;color:#758197}
.cah01-entry-history-who{text-align:right;display:grid;gap:2px}
.cah01-entry-history-who b{font-size:11px;color:#2c3748}
.cah01-entry-history-who small{font-size:9px;color:#7c8799;font-weight:900}
.cah01-entry-history-change{display:grid;grid-template-columns:minmax(120px,180px) minmax(0,1fr);gap:12px;align-items:center;padding:8px 0;border-bottom:1px dashed #e8edf4}
.cah01-entry-history-change:last-of-type{border-bottom:0}
.cah01-entry-history-label{font-size:11px;font-weight:900;color:#34465f}
.cah01-entry-history-values{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:8px;align-items:center}
.cah01-entry-history-values>div{padding:8px 10px;border-radius:10px;display:grid;gap:2px;min-height:48px}
.cah01-entry-history-values small{font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}
.cah01-entry-history-values b{font-size:11px;overflow-wrap:anywhere}
.cah01-entry-history-values .before{background:#fff0f2;border:1px solid #ffd1d7;color:#a93b4c}
.cah01-entry-history-values .after{background:#edf9f2;border:1px solid #c8eed8;color:#187447}
.cah01-entry-history-values .arrow{text-align:center;color:#7d8da5;font-weight:900}
.cah01-entry-history-reason{margin-top:9px;padding:8px 10px;border-radius:9px;background:#fff8e9;border:1px solid #f5dca5;color:#6f5415;font-size:11px}
.cah-review-movements{margin-top:18px;padding-top:3px}
.cah-review-movements .section-title{margin-bottom:10px}

/* ===== Administrador · Historial de modificaciones ===== */
.admin-change-history-filter .quick-filter{grid-template-columns:repeat(3,minmax(170px,1fr)) auto;align-items:end}
.admin-change-history-filter-actions{align-self:end;justify-content:flex-end;padding-bottom:1px}
.admin-change-history-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.admin-change-kpi{position:relative;overflow:hidden;min-height:116px;padding:16px 17px;border-radius:16px;background:#fff;border:1px solid #dbe4ef;box-shadow:0 8px 24px rgba(20,49,87,.06)}
.admin-change-kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--kpi,#4389e8)}
.admin-change-kpi:after{content:"";position:absolute;right:-22px;top:-30px;width:90px;height:90px;border-radius:50%;background:var(--kpi,#4389e8);opacity:.10}
.admin-change-kpi.tone-blue{--kpi:#377ee8}.admin-change-kpi.tone-purple{--kpi:#8a5cf6}.admin-change-kpi.tone-green{--kpi:#12a96a}.admin-change-kpi.tone-orange{--kpi:#ef9a29}
.admin-change-kpi span{display:block;color:#66758d;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.045em}
.admin-change-kpi strong{display:block;margin-top:7px;color:#173967;font-size:28px;line-height:1;font-weight:950}
.admin-change-kpi strong.is-date{font-size:18px;line-height:1.15;margin-top:10px}
.admin-change-kpi small{display:block;margin-top:8px;color:#8792a3;font-size:10px;font-weight:700}
.admin-change-highlight-grid{margin-bottom:14px}
.admin-change-highlight{position:relative;overflow:hidden;border-left:5px solid var(--accent)!important}
.admin-change-highlight.most{--accent:#2b7ee8}.admin-change-highlight.least{--accent:#9aa5b3}
.admin-change-highlight .eyebrow{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef5ff;color:#2968ad;font-size:9px;font-weight:950;letter-spacing:.05em}
.admin-change-highlight strong{display:block;margin:12px 0 5px;color:#0c3e81;font-size:25px}
.admin-change-highlight h3{margin:0;color:#29364a;font-size:15px}.admin-change-highlight p{margin:5px 0 0;color:#6b778c;font-size:12px}
.admin-change-bars{display:grid;gap:10px;margin-top:14px}
.admin-change-bar-row{display:grid;grid-template-columns:28px minmax(190px,290px) minmax(180px,1fr) 44px;gap:10px;align-items:center}
.admin-change-bar-rank{width:26px;height:26px;border-radius:8px;background:#edf4fd;color:#0c4a98;display:grid;place-items:center;font-size:10px;font-weight:950}
.admin-change-bar-label{min-width:0;display:grid;gap:2px}.admin-change-bar-label strong{font-size:11px;color:#263852;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-change-bar-label span{font-size:9px;color:#7b879a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.admin-change-bar-track{height:15px;border-radius:999px;background:#edf1f6;overflow:hidden}.admin-change-bar-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2f75df,#6c8ff1);min-width:0}
.admin-change-bar-value{text-align:right;color:#173967;font-size:13px;font-weight:950}
.admin-change-individual{margin-top:14px}.admin-change-total-pill{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#eaf3ff;color:#0d52a7;font-size:11px;font-weight:950}
.admin-change-action-bars{display:grid;gap:10px;margin-top:12px}.admin-change-action-row{display:grid;grid-template-columns:minmax(220px,300px) minmax(160px,1fr) 45px;gap:10px;align-items:center}.admin-change-action-row>span{font-size:10px;font-weight:900;color:#394b65}.admin-change-action-row>div{height:13px;background:#edf1f6;border-radius:999px;overflow:hidden}.admin-change-action-row i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#7860dc,#4588ed)}.admin-change-action-row b{text-align:right;color:#173967;font-size:12px}
.admin-change-ranking-shell{max-height:580px;overflow:auto}.admin-change-count{display:inline-grid;place-items:center;min-width:34px;height:26px;border-radius:999px;background:#edf4ff;color:#0b55ac;font-weight:950}

@media(max-width:900px){
  .cah01-entry-history-change{grid-template-columns:1fr;gap:5px}
  .cah01-entry-history-values{grid-template-columns:1fr 18px 1fr}
  .admin-change-history-filter .quick-filter{grid-template-columns:1fr 1fr}
  .admin-change-history-filter-actions{grid-column:1/-1;justify-content:flex-start}
  .admin-change-history-kpis{grid-template-columns:1fr 1fr}
  .admin-change-bar-row{grid-template-columns:26px minmax(150px,220px) minmax(120px,1fr) 38px}
  .admin-change-action-row{grid-template-columns:minmax(150px,220px) minmax(120px,1fr) 36px}
}
@media(max-width:620px){
  .cah01-entry-history-modal{width:calc(100vw - 16px)!important;max-height:90vh}
  .cah01-entry-history-top{display:grid}.cah01-entry-history-who{text-align:left}
  .cah01-entry-history-values{grid-template-columns:1fr}.cah01-entry-history-values .arrow{transform:rotate(90deg)}
  .admin-change-history-filter .quick-filter{grid-template-columns:1fr}
  .admin-change-history-filter-actions{grid-column:auto}
  .admin-change-history-kpis{grid-template-columns:1fr}
  .admin-change-bar-row{grid-template-columns:24px minmax(0,1fr) 36px}.admin-change-bar-track{grid-column:2/4}.admin-change-bar-label strong,.admin-change-bar-label span{white-space:normal}
  .admin-change-action-row{grid-template-columns:1fr 36px}.admin-change-action-row>div{grid-column:1/3}
}


/* ===== CAH-01 · Acciones compactas (16/10/2026) =====
   Únicamente afecta los botones Modificar, Eliminar e Historial
   de la tabla de movimientos del CAH-01. */
.capture-report-ref .capture-panel-cah01 .capture-row-actions{
  gap:5px!important;
  flex-wrap:nowrap!important;
  align-items:center;
}
.capture-report-ref .capture-panel-cah01 .capture-row-actions .btn{
  min-width:0!important;
  width:auto!important;
  min-height:29px!important;
  height:29px!important;
  padding:5px 8px!important;
  font-size:10.5px!important;
  line-height:1.1!important;
  border-radius:7px!important;
  gap:3px!important;
  flex:0 0 auto!important;
  white-space:nowrap;
}
.capture-report-ref .capture-panel-cah01 .capture-row-actions .cah01-history-btn span{
  min-width:16px;
  height:16px;
  padding:0 4px;
  margin-left:2px;
  font-size:9px;
}


/* ===== CAH-01 · Estado del botón Historial (16/10/2026) =====
   La regla global de botones azules debe respetar el estado sin cambios.
   Historial se muestra sin contador y mantiene las medidas compactas. */
@media screen{
  button.btn.cah01-history-btn:not(:disabled){
    background:linear-gradient(135deg,#0f449f,#1d66d8)!important;
    border-color:#0b429d!important;
    color:#fff!important;
    box-shadow:0 5px 12px rgba(15,68,159,.18)!important;
    cursor:pointer!important;
  }
  button.btn.cah01-history-btn:not(:disabled):hover{
    background:linear-gradient(135deg,#0d3f96,#145ccf)!important;
    border-color:#0d3f96!important;
    box-shadow:0 7px 15px rgba(15,68,159,.24)!important;
  }
  button.btn.cah01-history-btn.is-disabled:disabled,
  button.btn.cah01-history-btn.is-disabled:disabled:hover{
    background:#e5e9ee!important;
    border-color:#cbd3dd!important;
    color:#687487!important;
    box-shadow:none!important;
    text-shadow:none!important;
    opacity:1!important;
    cursor:not-allowed!important;
    transform:none!important;
    filter:none!important;
  }
}


/* ===== CAH · Estatus: filtros de Año / Dependencia arriba de las pestañas (16/10/2026) =====
   Fila superior compacta con los 2 selectores; debajo, los 4 botones originales.
   Solo afecta a la barra de Estatus CAH y se adapta a pantallas pequeñas. */
@media screen{
  .status-cah-tabs{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    flex-wrap:nowrap;
    gap:11px!important;
    padding:12px 14px!important;
  }
  .status-cah-main-filters{
    display:grid;
    grid-template-columns:minmax(120px,165px) minmax(210px,430px);
    gap:12px;
    align-items:end;
    width:100%;
    margin:0!important;
    min-width:0;
  }
  .status-cah-filter-field{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
    width:100%;
  }
  .status-cah-filter-field label{
    margin:0!important;
    font-size:10px!important;
    font-weight:850!important;
    line-height:1.2;
    text-transform:uppercase;
    color:#45536c!important;
  }
  .status-cah-filter-field select{
    display:block;
    margin:0;
    width:100%;
    height:36px;
    min-height:36px!important;
    padding:6px 32px 6px 10px;
    border-radius:9px!important;
    font-size:12px;
    background-color:#fff!important;
    max-width:100%;
  }
  .status-cah-tab-buttons{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    width:100%;
    min-width:0;
  }
}
@media screen and (max-width:520px){
  .status-cah-tabs{padding:10px!important;gap:10px!important}
  .status-cah-main-filters{
    grid-template-columns:minmax(86px,1fr) minmax(0,2.2fr);
    gap:8px;
  }
  .status-cah-tab-buttons .tab-link{
    flex:1 1 calc(50% - 6px);
    text-align:center;
  }
}


/* ===== Estatus CAH · filtros claros + indicadores por dictamen (16/10/2026) =====
   Estilos aislados para los usuarios CAH y Administrador; sin cambios globales. */
@media screen {
  .status-cah-filter-panel {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);
    gap:20px;
    padding:19px 21px;
    margin:0 0 16px;
    background:#f7f9fc;
    border:1px solid #dbe4ef;
    border-radius:17px;
    box-shadow:0 7px 22px rgba(14,44,87,.045);
    align-items:stretch;
  }
  .status-cah-filter-controls,
  .status-cah-summary {min-width:0}
  .status-cah-filter-controls {
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:2px 20px 2px 0;
    border-right:1px solid #dde5ef;
  }
  .status-cah-panel-heading,
  .status-cah-summary-header {display:flex;gap:5px;flex-direction:column;align-items:flex-start}
  .status-cah-panel-heading strong,
  .status-cah-summary-header strong {
    font-size:14px;font-weight:900;color:#193c71;line-height:1.3;
  }
  .status-cah-panel-heading span,
  .status-cah-summary-header span {font-size:11px;color:#64748b;line-height:1.35}
  .status-cah-main-filters {
    display:grid;
    grid-template-columns:minmax(100px,.32fr) minmax(0,1fr);
    width:100%;gap:12px;
    align-items:end;margin:0!important;
  }
  .status-cah-filter-field {display:flex;flex-direction:column;gap:6px;min-width:0}
  .status-cah-filter-field label,
  .status-cah-section-label {
    margin:0!important;font-size:11px!important;font-weight:850!important;
    color:#45566e!important;text-transform:none;letter-spacing:.01em;line-height:1.2;
  }
  .status-cah-filter-field select {
    width:100%;max-width:100%;height:40px;min-height:40px!important;
    margin:0!important;padding:7px 32px 7px 11px;
    background-color:#fff!important;border:1px solid #cfd9e6!important;
    border-radius:10px!important;font-size:12px!important;color:#273b59;
  }
  .status-cah-category-area {display:flex;flex-direction:column;gap:9px;min-width:0}
  .status-cah-tab-buttons {
    display:flex;flex-wrap:wrap;gap:9px;align-items:center;min-width:0;
  }
  .status-cah-tab-buttons .tab-link {
    display:inline-flex;justify-content:center;align-items:center;
    min-height:36px;padding:8px 12px!important;
    border-radius:9px!important;white-space:nowrap;
    font-size:11px!important;line-height:1.15;transition:background .15s,border-color .15s;
  }
  .status-cah-tab-buttons .tab-link:focus-visible,
  .status-cah-filter-field select:focus-visible {
    outline:2px solid #2872d2;outline-offset:2px;
  }
  .status-cah-summary {display:flex;flex-direction:column;gap:12px;justify-content:space-between}
  .status-cah-summary-header {gap:5px}
  .status-cah-summary-grid {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  }
  .status-cah-summary-item {
    display:flex;align-items:center;justify-content:space-between;gap:8px;
    border-radius:12px;border:1px solid #dae3ec;padding:12px 13px;
    background:#fff;min-width:0;min-height:61px;
  }
  .status-cah-summary-name {font-size:11px;font-weight:850;line-height:1.2}
  .status-cah-summary-value {font-size:26px;font-weight:950;letter-spacing:-.025em;line-height:1;font-variant-numeric:tabular-nums}
  .status-cah-summary-item.is-regular {background:#e9f7ef;border-color:#bde6cc;color:#157545}
  .status-cah-summary-item.is-pending {background:#fff5dc;border-color:#f3dfae;color:#976109}
  .status-cah-summary-item.is-irregular {background:#ffedf0;border-color:#f3c8d0;color:#b72846}
  .status-cah-summary-item.is-no-report {background:#edf1f6;border-color:#d5dce6;color:#42556c}
}
@media screen and (max-width:1070px) {
  .status-cah-filter-panel {grid-template-columns:1fr;gap:17px;padding:17px}
  .status-cah-filter-controls {border-right:0;border-bottom:1px solid #dde5ef;padding:0 0 16px;gap:14px}
  .status-cah-main-filters {grid-template-columns:minmax(96px,.32fr) minmax(0,1fr)}
  .status-cah-summary {gap:12px}
  .status-cah-summary-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media screen and (max-width:650px) {
  .status-cah-filter-panel {padding:14px;gap:14px}
  .status-cah-main-filters {grid-template-columns:minmax(80px,.36fr) minmax(0,1fr);gap:9px}
  .status-cah-filter-field select {font-size:12px!important}
  .status-cah-summary-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .status-cah-tab-buttons {gap:8px}
  .status-cah-tab-buttons .tab-link {flex:1 1 calc(50% - 4px);padding:9px 6px!important}
}
@media screen and (max-width:355px) {
  .status-cah-main-filters {grid-template-columns:1fr}
  .status-cah-summary-item {padding:9px}
  .status-cah-summary-name {font-size:10px}
}


/* ===== Histórico CAH · 4 indicadores dinámicos junto a los filtros (16/10/2026) ===== */
@media screen {
  .historic-cah-filter-panel {
    display:grid;
    grid-template-columns:minmax(0,1.12fr) minmax(330px,.88fr);
    align-items:stretch;
    gap:20px;
    padding:19px 21px;
    margin:0 0 16px;
    border:1px solid #dbe4ef;
    border-radius:17px;
    background:#f7f9fc;
    box-shadow:0 7px 22px rgba(14,44,87,.045);
  }
  .historic-cah-filter-controls {
    display:flex;flex-direction:column;gap:15px;
    min-width:0;
    padding-right:20px;
    border-right:1px solid #dde5ef;
  }
  .historic-cah-filter-form.quick-filter {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px!important;
    margin:0;
    align-items:end;
  }
  .historic-cah-filter-form .field {min-width:0;margin:0}
  .historic-cah-filter-form label {
    display:block;margin:0 0 6px!important;
    font-size:11px!important;font-weight:850!important;
    line-height:1.2;color:#45566e!important;
  }
  .historic-cah-filter-form select,
  .historic-cah-filter-form input {
    display:block;width:100%;max-width:100%;min-height:40px!important;
    height:40px;margin:0!important;
    padding:7px 12px;
    background:#fff!important;
    border:1px solid #cfd9e6!important;
    border-radius:10px!important;
    color:#273b59;font-size:12px!important;
  }
  .historic-cah-summary {min-width:0}
}
@media screen and (max-width:1100px) {
  .historic-cah-filter-panel {grid-template-columns:1fr;gap:16px;padding:17px}
  .historic-cah-filter-controls {border-right:0;border-bottom:1px solid #dde5ef;padding:0 0 17px}
  .historic-cah-summary .status-cah-summary-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media screen and (max-width:680px) {
  .historic-cah-filter-panel {padding:14px}
  .historic-cah-filter-form.quick-filter {gap:11px!important}
  .historic-cah-summary .status-cah-summary-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:400px) {
  .historic-cah-filter-form.quick-filter {grid-template-columns:1fr}
}


/* Agenda CAH · observaciones y motivo de actividad no cubierta (2026-10-16) */
body.role-cah.page-inicio .cah-home-pending-right{
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;
  justify-self:end!important;gap:6px!important;min-width:0;
}
body.role-cah.page-inicio .cah-home-pending-right .cah-home-pending-days{
  justify-self:auto!important;align-self:flex-end!important;
}
body.role-cah.page-inicio .cah-home-observations-btn{
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #bed6f5;border-radius:8px;background:#eaf3ff;
  color:#13539a;font-size:10px;font-weight:800;line-height:1.2;
  cursor:pointer;padding:6px 9px;transition:background .15s,box-shadow .15s;
}
body.role-cah.page-inicio .cah-home-observations-btn:hover,
body.role-cah.page-inicio .cah-home-observations-btn:focus-visible{
  background:#d8eaff;box-shadow:0 2px 8px rgba(27,82,160,.12);
}
.cah-activity-observations-modal{max-width:640px}
.cah-activity-modal-subject{margin:0 0 14px;color:#355477;font-size:13px;font-weight:800}
.cah-activity-modal-body{
  padding:16px;border:1px solid #dbe5f3;border-radius:12px;
  background:#f6f9fd;color:#263c5a;line-height:1.65;font-size:14px;
  overflow-wrap:anywhere;white-space:normal;max-height:55vh;overflow-y:auto;
}
.cah-activity-modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:18px}
.cah-activity-row-actions{flex-wrap:nowrap;gap:8px}
.cah-activity-row-actions .btn{white-space:nowrap}
.cah-activity-add-submit{display:flex;justify-content:flex-end;margin-top:2px}
@media(max-width:600px){
  .cah-activity-row-actions{flex-wrap:wrap}
  .cah-activity-add-submit .btn{width:100%}
  body.role-cah.page-inicio .cah-home-observations-btn{font-size:10px}
}


/* CAH · Inicio / Agenda: nombre de dependencia y expediente en columna legible.
   Ajuste puntual: no modifica Agenda ni modales de Observaciones. */
body.role-cah.page-inicio .cah-home-pending-content{
  display:grid!important;
  grid-template-columns:minmax(0,1.7fr) minmax(90px,1fr)!important;
  align-items:center!important;
  column-gap:12px!important;
  width:100%;
}
body.role-cah.page-inicio .cah-home-pending-primary{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  overflow-wrap:anywhere;
}
body.role-cah.page-inicio .cah-home-pending-primary .cah-home-pending-datetime{
  margin:0 0 8px!important;
}
body.role-cah.page-inicio .cah-home-pending-dependency{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  width:100%;
  min-width:0;
  margin-bottom:4px;
}
body.role-cah.page-inicio .cah-home-pending-expediente{
  display:inline-block;
  max-width:100%;
  padding:3px 7px;
  border-radius:6px;
  background:rgba(16,86,162,.075);
  color:#234f83;
  font-size:9px;
  line-height:1.2;
  font-weight:650;
  overflow-wrap:anywhere;
}
body.role-cah.page-inicio .cah-home-pending-expediente b{
  font-weight:950;
}
body.role-cah.page-inicio .cah-home-pending-dependency strong{
  margin:0!important;
  display:block;
  width:min(100%, 285px);
  max-width:min(100%, 285px);
  overflow-wrap:anywhere;
  word-break:break-word;
  font-weight:600!important;
}
body.role-cah.page-inicio .cah-home-pending-primary > p{
  max-width:100%;
  overflow-wrap:anywhere;
}
body.role-cah.page-inicio .cah-home-pending-content .cah-home-pending-right{
  align-self:center!important;
  justify-self:end!important;
  width:100%;
  min-width:0;
}
@media(max-width:400px){
  body.role-cah.page-inicio .cah-home-pending-content{
    grid-template-columns:minmax(0,1.5fr) minmax(85px,1fr)!important;
    column-gap:8px!important;
  }
  body.role-cah.page-inicio .cah-home-pending-expediente{font-size:8.5px}
}

/* CAH · pantalla concentrada de revisión y dictamen (2026-10-17) */
.cah-review-simple{max-width:1160px;margin:0 auto!important;padding:23px 25px!important}
.cah-review-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;padding-bottom:16px;border-bottom:1px solid #dce5f1}
.cah-review-heading h2{grid-column:1;margin:0;color:#0b3476;font-size:21px}
.cah-review-heading .cah-review-period{grid-column:2;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:10px 22px;border:1px solid #bcd7f9;border-radius:12px;background:linear-gradient(180deg,#eff7ff 0%,#e6f1ff 100%);box-shadow:0 3px 10px rgba(15,78,168,.07)}
.cah-review-heading .cah-review-period span{color:#526e95;font-size:10px;font-weight:800;letter-spacing:.075em;text-transform:uppercase}
.cah-review-heading .cah-review-period strong{color:#0b4fae;font-size:18px;line-height:1.2;font-weight:900;overflow-wrap:anywhere}
.cah-review-identity{display:grid;grid-template-columns:minmax(120px,.28fr) minmax(0,1fr);gap:10px;margin:16px 0}
.cah-review-identity>div{background:#f6f9ff;border:1px solid #d9e5f3;border-radius:11px;padding:12px 15px;min-width:0}
.cah-review-identity span{display:block;text-transform:uppercase;font-size:10px;font-weight:900;color:#64758e;margin-bottom:5px}
.cah-review-identity strong{display:block;overflow-wrap:anywhere;color:#102f63;font-size:14px}
.cah-review-summary{margin-top:22px;border:1px solid #cfe0f2;border-radius:16px;overflow:hidden;background:linear-gradient(180deg,#f9fbff 0%,#ffffff 100%);box-shadow:0 10px 24px rgba(16,53,108,.06)}
.cah-review-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid #dfe9f5;background:linear-gradient(180deg,#eef5ff 0%,#f8fbff 100%)}
.cah-review-summary-head h3{margin:0;color:#123d78;font-size:17px;line-height:1.2;font-weight:900}
.cah-review-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}
.cah-review-summary-card{border:1px solid #d8e4f1;border-radius:12px;background:linear-gradient(180deg,#ffffff 0%,#f5f9fe 100%);padding:13px 14px;text-align:center;min-width:0;box-shadow:0 4px 10px rgba(17,56,111,.04)}
.cah-review-summary-card span{display:block;font-weight:900;font-size:10px;line-height:1.45;color:#375784;text-transform:uppercase;letter-spacing:.03em}
.cah-review-summary-card strong{display:block;margin-top:6px;color:#0d2f68;font-weight:900;font-size:19px;font-variant-numeric:tabular-nums}
.cah-review-summary-card.available{grid-column:1/-1;background:linear-gradient(180deg,#edf8f1 0%,#e3f4ea 100%);border-color:#b9ddc8}
.cah-review-summary-card.available span{color:#246648}
.cah-review-summary-card.available strong{color:#116338;font-size:22px}
.cah-review-document-actions{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 20px}
.cah-review-document-actions .btn{min-width:145px;justify-content:center}
.cah-review-form-block{padding-top:18px;border-top:1px solid #dce5f1}
.cah-review-form-block h3{margin:0 0 15px;color:#0a3475;font-size:18px}
.cah-review-form-grid,.cah-review-conditional-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.cah-review-conditional-fields{margin-top:14px}
.cah-review-office-form .field label{font-size:11px;font-weight:900;letter-spacing:.02em;text-transform:uppercase}
.cah-review-office-form input,.cah-review-office-form select{min-height:44px}
.cah-review-edit-warning{margin:15px 0;padding:11px 14px;border:1px solid #e9c789;border-radius:9px;background:#fff6e4;color:#7c5417;font-size:12px;font-weight:700}
.cah-review-submit-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}
.cah-review-submit-row .btn-primary{min-height:44px}
.cah-dictamen-notification{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;flex-wrap:wrap;border-left:5px solid #1766b7!important}
.cah-dictamen-notification p{margin:4px 0 10px;font-size:13px}
@media(max-width:710px){.cah-review-simple{padding:16px!important}.cah-review-heading{grid-template-columns:1fr;justify-items:center;gap:12px}.cah-review-heading h2{grid-column:1;justify-self:start}.cah-review-heading .cah-review-period{grid-column:1;padding:10px 14px;max-width:100%;width:min(100%,340px)}.cah-review-heading .cah-review-period strong{font-size:17px}.cah-review-summary-head{padding:14px 14px 13px}.cah-review-summary-head h3{font-size:15px}.cah-review-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.cah-review-identity,.cah-review-form-grid,.cah-review-conditional-two{grid-template-columns:1fr}.cah-review-summary-card.available{grid-column:1/-1}.cah-review-document-actions .btn{flex:1 1 125px;min-width:0}}
