/* Administración 4.5 — búsqueda global y expediente académico.
   Sólo visible tras autenticación; no altera estilos de otros portales. */
body.cesba-admin-v4 .v45-global-trigger{display:none}
body.cesba-admin-v4.admin-authenticated .v45-global-trigger{
 display:flex;align-items:center;justify-content:center;gap:10px;min-width:155px;
 min-height:37px;padding:7px 12px;border:1px solid #34516e;border-radius:11px;
 background:#10263b;color:#bad4ed;cursor:pointer;font:700 .71rem Inter,Arial,sans-serif
}
.v45-global-trigger svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.v45-global-trigger:hover{background:#173c5c;color:#fff;border-color:#61acd9}
.v45-global-trigger kbd{margin-left:auto;color:#8aabc9;border:1px solid #37516b;border-radius:5px;padding:2px 5px;font:.63rem Consolas,monospace}
.v45-search-overlay[hidden]{display:none!important}
.v45-search-overlay{position:fixed;inset:0;z-index:190;display:grid;align-items:start;justify-items:center;
 padding: min(14vh,110px) 14px 25px;overflow-y:auto}
.v45-search-backdrop{position:fixed;inset:0;background:rgba(3,12,24,.80);backdrop-filter:blur(5px)}
.v45-search-dialog{position:relative;width:min(710px,100%);max-height:min(78vh,680px);
 display:flex;flex-direction:column;border:1px solid #466c8b;border-radius:18px;overflow:hidden;
 background:#0c2035;box-shadow:0 35px 90px rgba(0,0,0,.55)}
.v45-search-head{display:flex;justify-content:space-between;align-items:center;padding:17px 20px 8px;gap:15px}
.v45-search-head span{color:#8cc6ed;font-weight:850;font-size:.66rem;letter-spacing:.14em}
.v45-search-close{padding:6px 11px;border:1px solid #3f607c;border-radius:8px;background:#16334e;color:#d1eaff;cursor:pointer}
.v45-search-input-wrap{padding:8px 17px 15px;border-bottom:1px solid rgba(147,187,225,.18)}
.v45-search-input-wrap input{width:100%;min-height:48px;padding:12px 15px;border:1px solid #456885;border-radius:12px;
 background:#071a2b;color:#ecf7ff;font:600 .95rem Inter,Arial,sans-serif;outline:none}
.v45-search-input-wrap input:focus{border-color:#6fc1ed;box-shadow:0 0 0 3px rgba(92,184,235,.13)}
.v45-search-results{padding:9px;overflow-y:auto;min-height:100px}
.v45-search-option{width:100%;display:flex;align-items:center;gap:14px;text-align:left;
 background:transparent;color:#e5effa;border:1px solid transparent;border-radius:11px;
 padding:11px;cursor:pointer;min-width:0}
.v45-search-option:hover,.v45-search-option.is-selected{border-color:#3c668b;background:#1a3c5a}
.v45-result-type{font-size:.62rem;color:#9ecef2;background:#163149;border:1px solid #305370;
 border-radius:8px;min-width:60px;padding:7px 8px;text-align:center;font-weight:800}
.v45-result-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.v45-result-copy strong{font-size:.79rem;color:#f2f8ff;overflow-wrap:anywhere}
.v45-result-copy small{font-size:.63rem;color:#a2bed5;overflow-wrap:anywhere}
.v45-search-status{border-top:1px solid rgba(137,176,206,.15);padding:12px 18px;font-size:.66rem;color:#97b2c9;min-height:39px}
body.v45-search-open{overflow:hidden}
.v45-profile-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.v45-profile-head-actions button{padding:9px 12px;border-radius:9px;border:1px solid #3e6584;background:#153750;
 color:#e6f5ff;cursor:pointer;font-size:.68rem;font-weight:750}
.v45-profile-head-actions button:hover{background:#205273}
.v45-profile-head-actions button:disabled{opacity:.42;cursor:default}
.v45-profile-expanded{margin-top:21px;padding:19px;border:1px solid #395776;border-radius:15px;background:#0c2238}
.v45-section-kicker{display:block;font-weight:800;font-size:.62rem;color:#86c9f5;letter-spacing:.12em;margin-bottom:8px}
.v45-profile-expanded h3,.v45-profile-exams h3{font-size:1.04rem;color:#f2f9ff;line-height:1.35;margin:0 0 15px}
.v45-profile-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.v45-profile-metrics article{padding:13px;border:1px solid #2b4b68;border-radius:11px;background:#112b43;min-width:0}
.v45-profile-metrics small{font-size:.65rem;color:#a6c1d7;display:block;line-height:1.45}
.v45-profile-metrics strong{display:block;margin-top:6px;font-size:1.25rem;color:#f2faff}
.v45-profile-note{border:1px solid rgba(126,171,210,.16);border-radius:11px;padding:12px 14px;background:#10283f}
.v45-profile-note strong{font-size:.73rem;color:#d8ebf7}
.v45-profile-note p{font-size:.68rem;color:#a9bfd3;line-height:1.6;margin:5px 0 0}
.v45-profile-exams{margin-top:22px}
.v45-profile-exam-rows{display:grid;gap:9px}
.v45-exam-card{min-width:0;padding:17px;border:1px solid #304d6b;border-radius:13px;background:#0e253b}
.v45-exam-card>strong{display:block;color:#eef9ff;font-size:.82rem}
.v45-exam-card>small{display:block;color:#95b6cd;margin-top:5px;font-size:.64rem}
.v45-exam-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}
.v45-exam-stats span{padding:11px;border-radius:9px;border:1px solid rgba(145,181,215,.18);background:#102c44;min-width:0;overflow-wrap:anywhere}
.v45-exam-stats small{font-size:.61rem;color:#9cbad5;display:block}
.v45-exam-stats strong{font-size:.82rem;color:#e8f6ff;display:block;margin-top:6px}
.v45-exam-muted{font-size:.66rem;color:#a5bbd0;line-height:1.6;margin:11px 0 0}
@media(max-width:980px){body.cesba-admin-v4.admin-authenticated .v45-global-trigger{min-width:43px}
.v45-global-trigger span{display:none}}
@media(max-width:750px){.v45-profile-metrics,.v45-exam-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.v45-profile-head-actions button{font-size:.64rem}.v45-global-trigger kbd{display:none}}
@media(max-width:480px){.v45-profile-metrics,.v45-exam-stats{grid-template-columns:1fr 1fr}
.v45-profile-expanded{padding:12px}.v45-search-option{gap:8px;padding:9px}
.v45-result-type{min-width:52px;font-size:.56rem}}
@media print{
  @page{size:A4 portrait;margin:14mm}
  body.v45-print-profile{background:#fff!important;color:#151b24!important}
  body.v45-print-profile *{box-shadow:none!important;text-shadow:none!important}
  body.v45-print-profile :is(.v4-sidebar,.hero,.topbar,.v45-search-overlay,.login-card,#dashboard,
   .academic-modal-backdrop,.academic-sheet-head button){display:none!important}
  body.v45-print-profile .shell,body.v45-print-profile main{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
  body.v45-print-profile #studentAcademicModal{display:block!important;position:static!important;inset:auto!important;
   background:#fff!important;height:auto!important;overflow:visible!important}
  body.v45-print-profile .academic-sheet{display:block!important;position:static!important;height:auto!important;max-height:none!important;
   width:100%!important;max-width:none!important;overflow:visible!important;border:0!important;padding:0!important;background:#fff!important}
  body.v45-print-profile #studentAcademicBody{height:auto!important;overflow:visible!important;color:#111!important}
  body.v45-print-profile .academic-sheet-head{background:#fff!important;color:#111!important;border:0!important}
  body.v45-print-profile :is(.v45-profile-expanded,.v45-profile-note,.v45-exam-card,.v45-profile-metrics article,
     .v45-exam-stats span,.academic-course,.academic-profile-top,.academic-stats article){background:#fff!important;
     color:#111!important;border-color:#aaa!important;break-inside:avoid}
  body.v45-print-profile :is(.v45-profile-expanded *, .v45-profile-exams *, .academic-body *, .academic-sheet-head *){color:#111!important}
  body.v45-print-profile details.academic-course>div{display:block!important}
}