:root{
  --ui-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;
  --ui-bg:#f5f5f7;
  --ui-surface:rgba(255,255,255,.92);
  --ui-surface-solid:#fff;
  --ui-surface-muted:#f5f5f7;
  --ui-text:#1d1d1f;
  --ui-text-secondary:#6e6e73;
  --ui-text-tertiary:#86868b;
  --ui-separator:rgba(60,60,67,.14);
  --ui-separator-strong:rgba(60,60,67,.22);
  --ui-accent:#0071e3;
  --ui-accent-hover:#0077ed;
  --ui-danger:#d70015;
  --ui-success:#248a3d;
  --ui-warning:#b25000;
  --ui-radius-sm:12px;
  --ui-radius:16px;
  --ui-radius-lg:20px;
  --ui-shadow-sm:0 1px 2px rgba(0,0,0,.03),0 8px 24px rgba(0,0,0,.04);
  --ui-shadow:0 2px 8px rgba(0,0,0,.04),0 18px 50px rgba(0,0,0,.07);
  --ui-blur:saturate(180%) blur(22px);
  --sidebar-w:248px;
  --topbar-h:72px;
}
html[data-theme="dark"]{
  color-scheme:dark;
  --ui-bg:#031023;
  --ui-surface:rgba(10,31,57,.9);
  --ui-surface-solid:#0d2542;
  --ui-surface-muted:#102b4c;
  --ui-text:#f5f7fb;
  --ui-text-secondary:#b2bfd0;
  --ui-text-tertiary:#8999ae;
  --ui-separator:rgba(190,211,235,.14);
  --ui-separator-strong:rgba(190,211,235,.24);
  --ui-accent:#69aefc;
  --ui-accent-hover:#85bdff;
  --ui-danger:#ff6961;
  --ui-success:#5ac878;
  --ui-warning:#e9bc62;
  --ui-shadow-sm:0 1px 2px rgba(0,0,0,.2),0 12px 30px rgba(0,0,0,.16);
  --ui-shadow:0 2px 8px rgba(0,0,0,.22),0 22px 60px rgba(0,0,0,.25);
}

html{scroll-behavior:smooth}
body{
  color:var(--ui-text);
  background:
    radial-gradient(circle at 85% -10%,rgba(0,113,227,.06),transparent 28rem),
    var(--ui-bg);
  font-family:var(--ui-font);
  font-size:15px;
  font-weight:400;
  letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{color:#fff;background:rgba(0,113,227,.82)}
a{color:var(--ui-accent);text-underline-offset:3px}
a:hover{color:var(--ui-accent-hover)}
.ui-icon{display:block;flex:0 0 auto}
.skip-link{border-radius:0 0 var(--ui-radius-sm) 0;background:var(--ui-surface-solid);box-shadow:var(--ui-shadow)}

/* Application chrome */
.topbar{
  height:var(--topbar-h);
  padding-inline:clamp(16px,2.2vw,32px);
  border-bottom:1px solid rgba(255,255,255,.12);
  background:linear-gradient(112deg,#071b59 0%,#063b83 64%,#075d99 100%);
  box-shadow:0 1px 12px rgba(3,24,65,.18);
  backdrop-filter:var(--ui-blur);
  -webkit-backdrop-filter:var(--ui-blur);
}
.topbar-brand{display:flex;align-items:center;gap:18px;color:#fff;font-size:14px;font-weight:600}
.topbar-brand__logo{
  display:flex;align-items:center;line-height:0;
  color:inherit;text-decoration:none;border-radius:8px;
}
.topbar-brand__logo:hover,
.topbar-brand__logo:focus,
.topbar-brand__logo:focus-visible{color:inherit;text-decoration:none;outline:none}
.topbar-brand__logo:focus-visible{box-shadow:0 0 0 2px rgba(255,255,255,.55)}
.topbar-brand img{width:136px;filter:brightness(0) invert(1)}
.topbar-brand__title{
  padding-left:18px;border-left:1px solid rgba(255,255,255,.28);
  color:#fff;cursor:default;user-select:none;
}
.topbar-brand__title:hover{color:#fff}
.topbar-user{gap:10px}
.topbar-user__name strong{color:#fff;font-size:12px;font-weight:600}
.topbar-user__name small{color:rgba(231,241,255,.76);font-size:11px}
.topbar-profile{
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 7px 4px 4px;
  border:0;
  border-radius:14px;
  color:#fff;
  background:transparent;
  transition:background-color .2s ease,transform .2s ease;
}
.topbar-profile:hover,.topbar-profile[aria-expanded="true"]{background:rgba(255,255,255,.1)}
.topbar-profile:active{transform:scale(.98)}
.topbar-profile__chevron{display:grid;place-items:center;color:rgba(231,241,255,.76);transition:transform .2s ease}
.topbar-profile[aria-expanded="true"] .topbar-profile__chevron{transform:rotate(180deg)}
.user-menu{
  width:270px;
  margin-top:10px!important;
  padding:8px;
  border:1px solid var(--ui-separator);
  border-radius:16px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--ui-shadow);
  backdrop-filter:var(--ui-blur);
  -webkit-backdrop-filter:var(--ui-blur);
}
.user-menu__header{padding:10px 12px 12px}
.user-menu__header strong,.user-menu__header small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-menu__header strong{font-size:13px;font-weight:650}
.user-menu__header small{margin-top:3px;color:var(--ui-text-secondary);font-size:11px}
.user-menu .dropdown-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 11px;
  border:0;
  border-radius:10px;
  color:var(--ui-text);
  background:transparent;
  font-size:13px;
  transition:background-color .18s ease,color .18s ease;
}
.user-menu .dropdown-item:hover,.user-menu .dropdown-item:focus{color:var(--ui-text);background:rgba(60,60,67,.08)}
.user-menu .dropdown-divider{margin:6px 4px;border-color:var(--ui-separator)}
.user-menu form{margin:0}
.user-menu .user-menu__logout{color:var(--ui-danger)}
.user-menu .user-menu__logout:hover,.user-menu .user-menu__logout:focus{color:var(--ui-danger);background:rgba(215,0,21,.07)}
.notification-dropdown{position:relative}
.topbar-notification{
  position:relative;
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  padding:0;
  border:2px solid rgba(255,255,255,.28);
  border-radius:50%;
  color:#fff;
  background:rgba(255,255,255,.06);
  transition:background-color .2s ease,color .2s ease,transform .2s ease;
}
.topbar-notification:hover,.topbar-notification:focus-visible,.topbar-notification[aria-expanded="true"]{
  color:#fff;
  background:rgba(255,255,255,.1);
}
.topbar-notification:focus-visible{outline:2px solid #fff;outline-offset:2px}
.topbar-notification:active{transform:scale(.94)}
.notification-badge{
  position:absolute;
  top:-5px;
  right:-4px;
  min-width:22px;
  height:22px;
  padding:0 5px;
  border:2px solid #075293;
  border-radius:12px;
  color:#fff;
  background:#e11928;
  font-size:11px;
  font-weight:700;
  line-height:18px;
  text-align:center;
}
.notification-menu{
  width:min(600px,92vw);
  margin-top:10px!important;
  padding:0;
  overflow:hidden;
  border:1px solid var(--ui-separator);
  border-radius:20px;
  color:var(--ui-text);
  background:var(--ui-surface-solid);
  box-shadow:0 24px 70px rgba(4,31,70,.22),0 3px 14px rgba(0,0,0,.08);
}
.notification-menu__header{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  min-height:86px;
  padding:17px 20px;
  border-bottom:1px solid var(--ui-separator);
}
.notification-menu__icon{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:13px;
  color:var(--ui-accent);
  background:rgba(0,113,227,.09);
}
.notification-menu__heading{display:flex;min-width:0;flex-direction:column}
.notification-menu__heading strong{font-size:17px;font-weight:750}
.notification-menu__heading small{
  overflow:hidden;
  margin-top:3px;
  color:var(--ui-text-secondary);
  font-size:13px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.notification-menu__read-all{
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 0;
  border:0;
  color:var(--ui-accent);
  background:transparent;
  font-size:13px;
  font-weight:600;
}
.notification-menu__read-all:hover:not(:disabled){color:var(--ui-accent-hover)}
.notification-menu__read-all:disabled{cursor:not-allowed;opacity:.45}
.notification-menu__read-all:focus-visible,
.notification-tab:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.notification-menu__toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 20px 10px;
}
.notification-tabs{display:flex;align-items:center;gap:6px}
.notification-tab{
  padding:9px 14px;
  border:0;
  border-radius:11px;
  color:var(--ui-text-secondary);
  background:transparent;
  font-size:13px;
  font-weight:650;
}
.notification-tab.active{color:var(--ui-accent);background:rgba(0,113,227,.09)}
.notification-sort{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--ui-text-secondary);
  font-size:12px;
  font-weight:600;
}
.notification-menu__status{
  margin:0;
  padding:34px 20px;
  color:var(--ui-text-secondary);
  text-align:center;
}
.notification-list{
  max-height:min(470px,60vh);
  padding:8px 20px 18px;
  overflow-y:auto;
}
.notification-item{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:start;
  gap:15px;
  margin-bottom:10px;
  padding:17px 38px 17px 17px;
  border:1px solid var(--ui-separator);
  border-radius:14px;
  color:var(--ui-text);
  background:linear-gradient(112deg,rgba(0,113,227,.035),rgba(0,113,227,.015));
  text-decoration:none;
  transition:border-color .18s ease,background-color .18s ease,transform .18s ease;
}
.notification-item:last-child{margin-bottom:0}
.notification-item:hover,.notification-item:focus{
  border-color:rgba(0,113,227,.25);
  color:var(--ui-text);
  background:var(--ui-surface-muted);
  transform:translateY(-1px);
}
.notification-item:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.notification-item--read{opacity:.74;background:transparent}
.notification-item__icon{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:50%;
  color:#dc6500;
  background:#fff0e3;
}
.notification-item__content{display:flex;min-width:0;flex-direction:column;gap:5px}
.notification-item__heading{font-size:15px;font-weight:750;letter-spacing:.01em}
.notification-item__person{
  overflow:hidden;
  color:var(--ui-text-secondary);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.notification-item__message{color:#d45c00;font-size:13px;font-weight:700}
.notification-item time{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--ui-text-tertiary);
  font-size:11px;
}
.notification-item time svg{width:15px;height:15px}
.notification-item__status{
  padding:6px 11px;
  border:1px solid rgba(212,92,0,.12);
  border-radius:999px;
  color:#c65400;
  background:#fff0e3;
  font-size:11px;
  font-weight:650;
}
.notification-item__unread{
  position:absolute;
  top:50%;
  right:14px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--ui-accent);
  transform:translateY(-50%);
}
html[data-theme="dark"] .notification-item__icon,
html[data-theme="dark"] .notification-item__status{background:rgba(212,92,0,.18)}
@media (max-width:575.98px){
  .notification-menu{
    position:fixed!important;
    top:calc(var(--topbar-h) + 6px)!important;
    right:4vw!important;
    left:4vw!important;
    width:92vw;
    max-height:calc(100dvh - var(--topbar-h) - 14px);
    margin:0!important;
    transform:none!important;
  }
  .notification-menu__header{
    grid-template-columns:auto minmax(0,1fr);
    min-height:auto;
    padding:14px;
  }
  .notification-menu__read-all{grid-column:1/-1;justify-self:end;padding:2px 0}
  .notification-menu__toolbar{padding:10px 14px 7px}
  .notification-tab{padding:8px 9px}
  .notification-sort{font-size:0}
  .notification-list{max-height:48dvh;padding:7px 12px 14px}
  .notification-item{grid-template-columns:auto minmax(0,1fr);gap:11px;padding:14px 28px 14px 12px}
  .notification-item__icon{width:44px;height:44px}
  .notification-item__status{grid-column:2;justify-self:start}
  .notification-item time{align-items:flex-start}
}
.topbar-logout,.icon-button{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:0;
  border:0;
  border-radius:50%;
  color:rgba(231,241,255,.82);
  background:transparent;
  transition:background-color .2s ease,color .2s ease,transform .2s ease;
}
.topbar-logout:hover,.icon-button:hover{color:#fff;background:rgba(255,255,255,.1)}
.topbar-logout:active,.icon-button:active{transform:scale(.94)}
.user-avatar{
  width:38px;
  height:38px;
  color:#fff;
  background:linear-gradient(145deg,#409cff,#0064d8);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);
  font-size:13px;
  font-weight:650;
}
.sidebar{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:0;
  color:var(--ui-text);
  background:
    linear-gradient(
      180deg,
      #071b59 0%,
      #063b83 42%,
      rgba(18,76,145,.82) 52%,
      #d6e0ed 79%,
      #f5f5f7 100%
    );
  backdrop-filter:var(--ui-blur);
  -webkit-backdrop-filter:var(--ui-blur);
}
.sidebar::before{
  position:absolute;
  z-index:0;
  top:56%;
  left:14%;
  width:72%;
  height:28%;
  background:url("../img/LogoMS.png") center/contain no-repeat;
  content:"";
  opacity:.18;
  filter:brightness(1.7) saturate(.7);
  pointer-events:none;
}
.sidebar>*{position:relative;z-index:1}
html[data-theme="dark"] .sidebar::before{display:none}
.sidebar-brand{border-bottom:1px solid var(--ui-separator);color:var(--ui-text)}
.sidebar-nav{gap:5px;padding:18px 12px}
.sidebar-nav .nav-link{
  gap:12px;
  min-height:44px;
  padding:10px 14px;
  border-radius:var(--ui-radius-sm);
  color:var(--ui-text-secondary);
  font-size:14px;
  font-weight:500;
  transition:background-color .2s ease,color .2s ease,transform .2s ease;
}
.sidebar-nav .nav-link .ui-icon{width:19px;height:19px}
.sidebar-nav .nav-link:hover,.sidebar-nav .nav-link:focus{color:var(--ui-text);background:rgba(60,60,67,.07);transform:translateX(2px)}
.sidebar-nav .nav-link.active{color:var(--ui-accent);background:rgba(0,113,227,.1);box-shadow:inset 0 0 0 1px rgba(0,113,227,.05)}
.sidebar-theme{margin-top:auto;padding:12px;border-top:1px solid var(--ui-separator)}
.sidebar-theme-toggle{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:44px;
  padding:10px 14px;
  border:0;
  border-radius:var(--ui-radius-sm);
  color:var(--ui-text-secondary);
  background:transparent;
  font-size:14px;
  font-weight:500;
  text-align:left;
  transition:background-color .2s ease,color .2s ease,transform .2s ease;
}
.sidebar-theme-toggle:hover,.sidebar-theme-toggle:focus-visible{color:var(--ui-text);background:rgba(60,60,67,.07)}
.sidebar-theme-toggle:active{transform:scale(.98)}
html:not([data-theme="dark"]) .sidebar-nav .nav-link,
html:not([data-theme="dark"]) .sidebar-theme-toggle{color:rgba(239,246,255,.84)}
html:not([data-theme="dark"]) .sidebar-nav .nav-link:hover,
html:not([data-theme="dark"]) .sidebar-nav .nav-link:focus,
html:not([data-theme="dark"]) .sidebar-theme-toggle:hover,
html:not([data-theme="dark"]) .sidebar-theme-toggle:focus-visible{
  color:#fff;
  background:rgba(255,255,255,.12);
}
html:not([data-theme="dark"]) .sidebar-nav .nav-link.active{
  color:#fff;
  background:rgba(255,255,255,.17);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
}
html:not([data-theme="dark"]) .sidebar-theme{border-top-color:rgba(255,255,255,.17)}
.theme-icon{display:grid;place-items:center}
.theme-icon--sun{display:none}
html[data-theme="dark"] .theme-icon--moon{display:none}
html[data-theme="dark"] .theme-icon--sun{display:grid}
.app-main{padding-top:var(--topbar-h)}
.content-area{width:100%;max-width:1440px;padding:clamp(24px,3.5vw,52px)}

/* Typography and page rhythm */
h1,h2,h3,h4,h5,h6{color:var(--ui-text);font-family:var(--ui-font);letter-spacing:-.025em}
h1{font-size:clamp(30px,3vw,42px);font-weight:700;line-height:1.08}
h2{font-size:20px;font-weight:650}
.page-header{align-items:flex-end;gap:24px;margin-bottom:32px}
.page-header>div:first-child{max-width:720px}
.page-eyebrow{
  margin-bottom:7px;
  color:var(--ui-text-tertiary);
  font-size:11px;
  font-weight:650;
  letter-spacing:.08em;
}
.text-secondary,.form-text{color:var(--ui-text-secondary)!important}
.page-header .text-secondary{margin-top:8px;font-size:15px}

/* Surfaces */
.card{
  border:1px solid rgba(255,255,255,.7);
  border-radius:var(--ui-radius-lg);
  background:var(--ui-surface);
  box-shadow:var(--ui-shadow-sm);
  overflow:clip;
  backdrop-filter:saturate(130%) blur(12px);
  -webkit-backdrop-filter:saturate(130%) blur(12px);
  transition:box-shadow .25s ease,transform .25s ease,border-color .25s ease;
}
/* El calendario flotante no debe quedar recortado por overflow del card. */
.card:has(.date-field),
.interview-search,
.questionnaire-general{
  overflow:visible;
}
.card:has(.date-calendar:not([hidden])),
.questionnaire-general:has(.date-calendar:not([hidden])),
.date-field:has(.date-calendar:not([hidden])){
  position:relative;
  z-index:40;
}
.date-field:has(.date-calendar:not([hidden])){
  z-index:50;
}
.card-header{
  padding:20px 24px;
  border-bottom:1px solid var(--ui-separator);
  border-radius:var(--ui-radius-lg) var(--ui-radius-lg) 0 0!important;
  background:transparent;
}
.card-header h2{font-size:17px;font-weight:650}
.card-body{padding:24px}
.empty-state{padding:56px 24px;color:var(--ui-text-secondary)}
.empty-state h2{margin-top:12px;font-size:20px}
.empty-icon{
  width:58px;
  height:58px;
  color:var(--ui-text-secondary);
  background:var(--ui-surface-muted);
  font-size:24px;
}

/* Controls */
.btn{
  min-height:44px;
  padding:10px 18px;
  border-radius:var(--ui-radius-sm);
  font-size:14px;
  font-weight:600;
  letter-spacing:-.01em;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:scale(.98)}
.btn:focus-visible,.form-control:focus-visible,.form-select:focus-visible,.form-check-input:focus-visible,.page-link:focus-visible{
  outline:3px solid rgba(0,113,227,.24);
  outline-offset:2px;
  box-shadow:none!important;
}
.btn-primary{
  --bs-btn-bg:var(--ui-accent);
  --bs-btn-border-color:var(--ui-accent);
  --bs-btn-hover-bg:var(--ui-accent-hover);
  --bs-btn-hover-border-color:var(--ui-accent-hover);
  --bs-btn-active-bg:#0068d1;
  --bs-btn-active-border-color:#0068d1;
  box-shadow:0 6px 16px rgba(0,113,227,.16);
}
.btn-outline-primary{--bs-btn-color:var(--ui-accent);--bs-btn-border-color:rgba(0,113,227,.3);--bs-btn-hover-bg:rgba(0,113,227,.08);--bs-btn-hover-color:var(--ui-accent);--bs-btn-hover-border-color:rgba(0,113,227,.45)}
.btn-outline-secondary,.btn-light{--bs-btn-color:var(--ui-text);--bs-btn-bg:rgba(118,118,128,.08);--bs-btn-border-color:transparent;--bs-btn-hover-bg:rgba(118,118,128,.14);--bs-btn-hover-border-color:transparent;--bs-btn-hover-color:var(--ui-text)}
.btn-outline-danger{--bs-btn-color:var(--ui-danger);--bs-btn-border-color:rgba(215,0,21,.25);--bs-btn-hover-bg:rgba(215,0,21,.08);--bs-btn-hover-color:var(--ui-danger);--bs-btn-hover-border-color:rgba(215,0,21,.35)}
.btn-sm{min-height:34px;padding:7px 12px;border-radius:10px;font-size:12px}
.form-label{
  margin-bottom:7px;
  color:var(--ui-text-secondary);
  font-size:12px;
  font-weight:600;
}
.form-control,.form-select{
  min-height:48px;
  padding:11px 14px;
  border:1px solid transparent;
  border-radius:var(--ui-radius-sm);
  color:var(--ui-text);
  background-color:var(--ui-surface-muted);
  font-size:15px;
  transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.form-control:hover,.form-select:hover{background-color:#f0f0f2}
.form-control:focus,.form-select:focus{
  border-color:rgba(0,113,227,.45);
  background-color:var(--ui-surface-solid);
  box-shadow:0 0 0 4px rgba(0,113,227,.1);
}
.form-control::placeholder{color:#a1a1a6}
.date-picker-control{cursor:text}
.date-field{
  position:relative;
  display:flex;
  align-items:center;
}
.date-field .form-control,
.date-field .questionnaire-general__input{
  width:100%;
  padding-right:46px;
}
.date-field__trigger{
  position:absolute;
  top:50%;
  right:8px;
  z-index:2;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:0;
  border-radius:9px;
  color:#0873e6;
  background:#e8f1ff;
  transform:translateY(-50%);
  cursor:pointer;
  transition:background-color .18s ease;
}
.date-field__trigger:hover{background:#d7e8ff}
.date-field__trigger:focus-visible{
  outline:3px solid rgba(0,113,227,.24);
  outline-offset:2px;
}
.date-calendar{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  z-index:1200;
  width:min(320px,calc(100vw - 32px));
  padding:14px 14px 10px;
  border:1px solid rgba(60,60,67,.1);
  border-radius:18px;
  background:#fff;
  box-shadow:0 18px 40px rgba(15,35,70,.16),0 2px 8px rgba(15,35,70,.06);
}
.date-calendar__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.date-calendar__month-btn{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 6px;
  border:0;
  border-radius:8px;
  color:#1d1d1f;
  background:transparent;
  font-size:15px;
  font-weight:650;
  letter-spacing:-.02em;
  text-transform:capitalize;
  cursor:pointer;
}
.date-calendar__month-btn:hover{background:rgba(60,60,67,.06)}
.date-calendar__month-btn .ui-icon{color:#8e8e93}
.date-calendar__nav{display:flex;flex-direction:column;align-items:center;gap:0}
.date-calendar__nav-btn{
  display:grid;
  place-items:center;
  width:28px;
  height:22px;
  border:0;
  border-radius:8px;
  color:#6e6e73;
  background:transparent;
  cursor:pointer;
}
.date-calendar__nav-btn:hover{background:rgba(60,60,67,.06);color:#1d1d1f}
.date-calendar__month-btn:disabled{
  opacity:1;
  cursor:default;
}
.date-calendar__month-btn:disabled:hover{background:transparent}
.date-calendar__hint{
  margin:0 0 10px;
  color:#8e8e93;
  font-size:12px;
  font-weight:600;
}
.date-calendar__weekdays,
.date-calendar__grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:2px;
}
.date-calendar__grid--months,
.date-calendar__grid--years{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px 4px;
  min-height:196px;
  align-content:start;
  padding:4px 0 8px;
}
.date-calendar__weekdays{
  margin-bottom:6px;
  color:#8e8e93;
  font-size:11px;
  font-weight:600;
  text-align:center;
}
.date-calendar__day,
.date-calendar__chip{
  display:grid;
  place-items:center;
  width:100%;
  border:0;
  color:#1d1d1f;
  background:transparent;
  cursor:pointer;
}
.date-calendar__day{
  aspect-ratio:1;
  border-radius:999px;
  font-size:13px;
  font-weight:550;
}
.date-calendar__chip{
  min-height:44px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
}
.date-calendar__day:hover,
.date-calendar__chip:hover{background:rgba(0,113,227,.08)}
.date-calendar__day.is-outside,
.date-calendar__chip.is-outside{color:#c7c7cc}
.date-calendar__day.is-disabled,
.date-calendar__chip.is-disabled{
  color:#d1d1d6;
  cursor:not-allowed;
}
.date-calendar__day.is-disabled:hover,
.date-calendar__chip.is-disabled:hover{background:transparent}
.date-calendar__day.is-selected,
.date-calendar__chip.is-selected{
  color:#fff;
  background:#0071e3;
  font-weight:700;
}
.date-calendar__day.is-selected:hover,
.date-calendar__chip.is-selected:hover{background:#0066cc}
.date-calendar__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(60,60,67,.1);
}
.date-calendar__footer:not(:has([data-date-clear])){justify-content:flex-end}
.date-calendar__action{
  padding:6px 8px;
  border:0;
  border-radius:8px;
  background:transparent;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
}
.date-calendar__action--clear{color:#ff3b30}
.date-calendar__action--today{color:#0071e3}
.date-calendar__action:hover{background:rgba(60,60,67,.05)}
html[data-theme="dark"] .date-field__trigger{
  color:#8fc3ff;
  background:rgba(105,174,252,.2);
}
html[data-theme="dark"] .date-field__trigger:hover{background:rgba(105,174,252,.3)}
html[data-theme="dark"] .date-calendar{
  border-color:rgba(151,188,231,.14);
  background:#102b4b;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}
html[data-theme="dark"] .date-calendar__month-btn,
html[data-theme="dark"] .date-calendar__day,
html[data-theme="dark"] .date-calendar__chip{color:#f5f7fb}
html[data-theme="dark"] .date-calendar__month-btn .ui-icon,
html[data-theme="dark"] .date-calendar__nav-btn,
html[data-theme="dark"] .date-calendar__weekdays,
html[data-theme="dark"] .date-calendar__hint,
html[data-theme="dark"] .date-calendar__day.is-outside,
html[data-theme="dark"] .date-calendar__chip.is-outside{color:#8fa0b5}
html[data-theme="dark"] .date-calendar__day.is-disabled,
html[data-theme="dark"] .date-calendar__chip.is-disabled{color:#4d6078}
html[data-theme="dark"] .date-calendar__month-btn:hover,
html[data-theme="dark"] .date-calendar__nav-btn:hover,
html[data-theme="dark"] .date-calendar__day:hover,
html[data-theme="dark"] .date-calendar__chip:hover,
html[data-theme="dark"] .date-calendar__action:hover{background:rgba(255,255,255,.06)}
html[data-theme="dark"] .date-calendar__footer{border-top-color:rgba(151,188,231,.14)}
@media (max-width:575.98px){
  .date-calendar{left:auto;right:0}
}
.form-control.is-invalid,.form-select.is-invalid{border-color:rgba(215,0,21,.5);background-color:rgba(215,0,21,.035)}
.invalid-feedback,.text-danger{color:var(--ui-danger)!important;font-size:12px}
.form-check-input{border-color:var(--ui-separator-strong)}
.form-check-input:checked{border-color:var(--ui-accent);background-color:var(--ui-accent)}
.form-switch .form-check-input{width:44px;height:25px}

/* Data presentation */
.filter-card{background:rgba(255,255,255,.68)}
.filter-card .card-body{padding:20px}
.interview-search .card-body{padding:28px 30px}
.interview-search__heading{margin-bottom:26px}
.interview-search__heading h2{margin-bottom:6px;color:#0b3a7a;font-size:22px;font-weight:780;letter-spacing:-.02em}
.interview-search__heading p{margin:0;color:var(--ui-text-secondary);font-size:13px;line-height:1.45}
.interview-search__group{min-width:0;margin:0;padding:0;border:0}
.interview-search__group+.interview-search__group,
.interview-search__group+.interview-search__split{
  margin-top:26px;
  padding-top:26px;
  border-top:1px solid var(--ui-separator);
}
.interview-search__split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  align-items:start;
}
.interview-search__split>.interview-search__group+.interview-search__group{
  margin-top:0;
  padding-top:0;
  border-top:0;
}
.interview-search__legend{
  display:flex;
  align-items:flex-start;
  gap:12px;
  float:none;
  width:100%;
  margin:0 0 18px;
  padding:0;
}
.interview-search__legend-icon{
  display:grid;
  flex:0 0 40px;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  color:#0b5ed7;
  background:rgba(11,94,215,.1);
}
.interview-search__legend strong{
  display:block;
  color:#0b5ed7;
  font-size:15px;
  font-weight:750;
}
.interview-search__legend small{
  display:block;
  margin-top:2px;
  color:var(--ui-text-secondary);
  font-size:12px;
  line-height:1.35;
}
.interview-search__actions{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  margin-top:26px;
  padding-top:22px;
  border-top:1px solid var(--ui-separator);
}
.interview-search__actions .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:150px;
}
.interview-search__actions .btn .ui-icon{flex:0 0 auto}
.monthly-summary{
  border-color:rgba(0,113,227,.2);
  background:linear-gradient(135deg,rgba(0,113,227,.12),var(--ui-surface) 62%);
}
.monthly-summary__label{
  color:var(--ui-accent);
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.monthly-summary__total{display:flex;align-items:baseline;gap:8px;color:var(--ui-text-secondary)}
.monthly-summary__total strong{color:var(--ui-accent);font-size:clamp(34px,5vw,52px);line-height:1}
.monthly-summary__total span{font-size:14px;font-weight:600}
.monthly-history{display:grid;gap:14px}
.monthly-history__header{align-items:center;margin-bottom:0}
.monthly-history__header h1{font-size:clamp(25px,2.5vw,34px)}
.monthly-history__header .text-secondary{margin-top:4px;font-size:13px}
.monthly-history__filters .card-body{padding:14px 16px}
.monthly-history__filters .form-label{margin-bottom:5px}
.monthly-history__filters .form-select,
.monthly-history__filters .btn{min-height:40px;padding-block:8px}
.monthly-history__filters.card,
.card:has(.multi-filter){
  overflow:visible;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.monthly-history__filters .card-body,
.monthly-history__filters .row,
.monthly-history__filters .col-12,
.monthly-history__filters [class*="col-"]{overflow:visible}
.multi-filter{position:relative;z-index:1}
.multi-filter.is-open{z-index:30}
.multi-filter__trigger{
  display:block;
  width:100%;
  min-height:42px;
  overflow:hidden;
  padding:9px 36px 9px 12px;
  border:1px solid #8eb8ea;
  border-radius:10px;
  color:#1d1d1f;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m1.5 1.5 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E") right 12px center/12px no-repeat;
  font-size:14px;
  font-weight:500;
  line-height:1.3;
  text-align:left;
  text-overflow:ellipsis;
  white-space:nowrap;
  appearance:none;
}
.multi-filter.is-open .multi-filter__trigger{border-color:#1a73e8}
.multi-filter__list{
  position:absolute;
  z-index:40;
  top:calc(100% + 6px);
  right:0;
  left:0;
  min-width:100%;
  overflow:hidden;
  border:1px solid #e6edf5;
  border-radius:12px;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,40,80,.12);
}
.multi-filter__options{
  max-height:min(280px,42vh);
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#1a73e8 #e8f1fc;
}
.multi-filter__options::-webkit-scrollbar{width:8px}
.multi-filter__options::-webkit-scrollbar-track{
  background:#e8f1fc;
  border-radius:999px;
}
.multi-filter__options::-webkit-scrollbar-thumb{
  background:#1a73e8;
  border-radius:999px;
}
.multi-filter__options::-webkit-scrollbar-thumb:hover{background:#1557b0}
.multi-filter__options::-webkit-scrollbar-button{display:none;height:0}
.multi-filter__option{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:40px;
  padding:8px 14px;
  border-bottom:1px solid #eef1f5;
  color:#1d1d1f;
  background:#fff;
  font-size:14px;
  font-weight:400;
  cursor:pointer;
}
.multi-filter__option:last-child{border-bottom:0}
.multi-filter__option--all{font-weight:500}
.multi-filter__option:hover{background:#f7faff}
.multi-filter__option:has(input:checked):not(.multi-filter__option--all),
.multi-filter__option--all:has(input:checked){background:#f0f7ff}
.multi-filter__option input{
  appearance:none;
  -webkit-appearance:none;
  display:grid;
  flex:0 0 18px;
  place-content:center;
  width:18px;
  height:18px;
  margin:0;
  border:1.5px solid #c5ced6;
  border-radius:4px;
  background:#fff;
}
.multi-filter__option input:checked{
  border-color:#1a73e8;
  background:#1a73e8;
}
.multi-filter__option input:checked::after{
  width:10px;
  height:6px;
  border:solid #fff;
  border-width:0 0 2px 2px;
  transform:rotate(-45deg) translate(1px,-1px);
  content:"";
}
.multi-filter__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 14px 12px;
  border-top:1px solid #eef1f5;
  background:#fff;
}
.multi-filter__clear{
  border:0;
  padding:0;
  color:#1a73e8;
  background:transparent;
  font-size:13px;
  font-weight:500;
}
.multi-filter__clear:hover{text-decoration:underline}
.multi-filter__count{
  padding:4px 10px;
  border:1px solid #e1e6ec;
  border-radius:999px;
  color:#5f6b76;
  background:#f3f5f7;
  font-size:11px;
  font-weight:500;
  white-space:nowrap;
}
.multi-filter.is-invalid .multi-filter__trigger{border-color:#dc3545}
html[data-theme="dark"] .multi-filter__trigger{
  border-color:rgba(163,203,246,.35);
  color:#e8eef7;
  background-color:#10233d;
}
html[data-theme="dark"] .multi-filter__list{background:#10233d;border-color:rgba(163,203,246,.24)}
html[data-theme="dark"] .multi-filter__option{border-bottom-color:rgba(163,203,246,.1);color:#e8eef7;background:transparent}
html[data-theme="dark"] .multi-filter__option:hover,
html[data-theme="dark"] .multi-filter__option:has(input:checked){background:rgba(65,139,229,.2)}
html[data-theme="dark"] .multi-filter__footer{border-top-color:rgba(163,203,246,.12);background:#10233d}
html[data-theme="dark"] .multi-filter__clear{color:#8fc3ff}
html[data-theme="dark"] .multi-filter__count{color:#b2bfd0;background:rgba(163,203,246,.12);border-color:rgba(163,203,246,.18)}
html[data-theme="dark"] .multi-filter__options{scrollbar-color:#8fc3ff rgba(65,139,229,.18)}
html[data-theme="dark"] .multi-filter__options::-webkit-scrollbar-track{background:rgba(65,139,229,.18)}
html[data-theme="dark"] .multi-filter__options::-webkit-scrollbar-thumb{background:#8fc3ff}
.monthly-history__submit{min-width:168px}
.monthly-history__period{display:flex;align-items:end;justify-content:space-between;gap:16px;padding-inline:3px}
.monthly-history__period h2{margin:0;font-size:19px}
.monthly-history__period>p{margin:0;color:var(--ui-text-tertiary);font-size:12px}
.monthly-history__period-label{margin:0 0 2px;color:var(--ui-text-tertiary);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}
.monthly-history__period-actions,
.monthly-history__report-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}
.monthly-action-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:43px;
  padding:10px 17px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:13px;
  font-size:12px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(5,40,83,.12),inset 0 1px 0 rgba(255,255,255,.75);
  transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease,filter .2s ease;
}
.monthly-action-button:hover{transform:translateY(-2px)}
.monthly-action-button:focus-visible{outline:3px solid rgba(0,113,227,.28);outline-offset:2px}
.monthly-action-button--chart{
  color:#075bbd;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(230,241,255,.9));
}
.monthly-action-button--chart:hover{color:#075bbd;box-shadow:0 11px 25px rgba(5,75,155,.17)}
.monthly-action-button--pdf{
  color:#fff;
  background:linear-gradient(145deg,#ff4b42,#d70015);
  box-shadow:0 9px 22px rgba(215,0,21,.24),inset 0 1px 0 rgba(255,255,255,.28);
}
.monthly-action-button--pdf:hover{color:#fff;filter:brightness(.97);box-shadow:0 12px 27px rgba(215,0,21,.3)}
html[data-theme="dark"] .monthly-action-button--chart{
  border-color:rgba(163,203,246,.2);
  color:#a9d1ff;
  background:linear-gradient(145deg,rgba(20,54,91,.96),rgba(10,37,70,.9));
}
.chart-modal{
  width:min(920px,calc(100vw - 32px));
  max-width:none;
  padding:0;
  border:0;
  border-radius:18px;
  background:transparent;
  box-shadow:none;
}
.chart-modal::backdrop{background:rgba(8,24,48,.42);backdrop-filter:blur(8px)}
.chart-modal__panel{
  overflow:hidden;
  border-radius:18px;
  background:var(--ui-surface-solid);
  box-shadow:0 24px 64px rgba(8,30,60,.28);
}
.chart-modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px 14px;
  border-bottom:1px solid var(--ui-separator);
}
.chart-modal__header h2{margin:0;font-size:18px;letter-spacing:-.02em}
.chart-modal__subtitle{margin:4px 0 0;color:var(--ui-text-secondary);font-size:12px}
.chart-modal__close{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:0;
  border-radius:10px;
  color:var(--ui-text-secondary);
  background:var(--ui-surface-muted);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.chart-modal__close:hover{color:var(--ui-text);background:color-mix(in srgb,var(--ui-surface-muted) 70%,#000 8%)}
.chart-modal__body{display:grid;gap:18px;padding:18px 22px 24px}
.chart-modal__summary{
  display:grid;
  grid-template-columns:minmax(180px,.85fr) minmax(0,1.15fr);
  gap:16px;
  align-items:stretch;
}
.chart-modal__kpi{max-width:none;height:100%}
.chart-modal__general{
  display:flex;
  flex-direction:column;
  margin-top:0;
  height:100%;
  min-height:0;
  padding:18px 20px;
  border-radius:14px;
}
.chart-modal__general h4{
  margin:0 0 14px;
  font-size:15px;
  font-weight:750;
  letter-spacing:-.01em;
}
.chart-modal__general dl{
  flex:1 1 auto;
  display:grid;
  grid-template-rows:repeat(4,1fr);
  gap:0;
  margin:0;
  align-content:stretch;
}
.chart-modal__general dl>div{
  align-items:center;
  gap:16px;
  padding:10px 2px;
  border-top:1px solid var(--ui-separator);
}
.chart-modal__general dl>div:first-child{border-top:0;padding-top:2px}
.chart-modal__general dt{
  color:var(--ui-text);
  font-size:14px;
  font-weight:650;
  line-height:1.3;
}
.chart-modal__general dd{
  color:var(--ui-text);
  font-size:18px;
  font-weight:780;
  letter-spacing:-.02em;
  line-height:1.1;
}
.chart-modal__chart{height:320px}
.chart-modal--resumen{
  width:min(860px,calc(100vw - 24px));
  max-height:calc(100dvh - 24px);
  margin:auto;
  overflow:hidden;
}
.chart-modal--resumen .chart-modal__panel{
  display:flex;
  flex-direction:column;
  max-width:none;
  width:100%;
  max-height:calc(100dvh - 24px);
  overflow:hidden;
}
.chart-modal__header--resumen{align-items:flex-start;gap:10px;padding:14px 16px 10px}
.chart-modal--resumen .chart-modal__header h2{font-size:16px}
.chart-modal--resumen .chart-modal__subtitle{font-size:11px}
.chart-modal__heading{display:flex;align-items:flex-start;gap:10px;min-width:0}
.chart-modal__title-icon{
  display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;margin-top:1px;
  border-radius:11px;color:var(--ui-accent);background:color-mix(in srgb,var(--ui-accent) 12%,transparent);
  box-shadow:0 6px 14px color-mix(in srgb,var(--ui-accent) 12%,transparent);
}
.chart-modal--resumen .chart-modal__body{
  display:grid;
  gap:10px;
  padding:12px 16px 14px;
  min-height:0;
  overflow:hidden;
}
.chart-modal__highlights{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.chart-modal__highlight{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
  padding:12px 14px;
  border:1px solid transparent;
  border-radius:14px;
}
.chart-modal__highlight--area{
  color:#0b5ed7;
  background:linear-gradient(180deg,#edf5ff,#f7fbff);
  border-color:color-mix(in srgb,#0b5ed7 14%,transparent);
}
.chart-modal__highlight--motivo{
  color:#e87500;
  background:linear-gradient(180deg,#fff6eb,#fffaf4);
  border-color:color-mix(in srgb,#e87500 18%,transparent);
}
.chart-modal__highlight-icon{
  display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;
  border-radius:50%;color:#fff;
}
.chart-modal__highlight--area .chart-modal__highlight-icon{background:#0b5ed7}
.chart-modal__highlight--motivo .chart-modal__highlight-icon{
  color:#e87500;
  background:color-mix(in srgb,#e87500 16%,#fff);
}
.chart-modal__highlight>div{display:grid;gap:3px;min-width:0}
.chart-modal__highlight-label{
  color:currentColor;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.chart-modal__highlight>div>strong{
  overflow:hidden;
  color:var(--ui-text);
  font-size:15px;
  line-height:1.2;
  letter-spacing:-.02em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chart-modal__highlight>div>small{color:var(--ui-text-secondary);font-size:11px}
.chart-modal__indices>h3,
.chart-modal__compare-head>h3{
  margin:0;
  color:var(--ui-text);
  font-size:13px;
  font-weight:750;
}
.chart-modal__indices>h3{margin-bottom:8px}
.chart-modal__index-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.chart-modal__index-card{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-width:0;
  min-height:0;
  padding:10px;
  border:1px solid color-mix(in srgb,currentColor 22%,var(--ui-separator));
  border-radius:12px;
  background:color-mix(in srgb,currentColor 7%,var(--ui-surface-solid));
}
.chart-modal__index-icon{
  display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;
  border-radius:8px;color:currentColor;
  background:color-mix(in srgb,currentColor 14%,transparent);
}
.chart-modal__index-card>div{display:grid;gap:2px;min-width:0}
.chart-modal__index-card>div>span{
  overflow:hidden;color:var(--ui-text-secondary);font-size:10px;font-weight:650;
  text-overflow:ellipsis;white-space:nowrap;
}
.chart-modal__index-card>div>strong{color:currentColor;font-size:18px;line-height:1}
.chart-modal__index-card>div>strong>small{font-size:11px;font-weight:600}
.chart-modal__index-card>div>em{
  overflow:hidden;color:currentColor;font-size:10px;font-style:normal;font-weight:750;
  text-overflow:ellipsis;white-space:nowrap;
}
.chart-modal__compare{
  display:grid;
  gap:4px;
  min-height:0;
  padding:10px 12px 8px;
  border:1px solid var(--ui-separator);
  border-radius:14px;
  background:var(--ui-surface-solid);
}
.chart-modal__compare-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.chart-modal__compare-legend{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--ui-text-secondary);
  font-size:10px;
  font-weight:650;
  white-space:nowrap;
}
.chart-modal__compare-legend>i{
  display:block;width:7px;height:7px;border-radius:50%;background:#34c759;
}
.chart-modal--resumen .chart-modal__chart{height:clamp(140px,24vh,210px);min-height:140px}
@media (max-width:767.98px){
  .chart-modal__summary{grid-template-columns:1fr}
  .chart-modal__general dl{grid-template-rows:none;gap:4px}
  .chart-modal__highlights,.chart-modal__index-list{grid-template-columns:1fr 1fr}
  .chart-modal__compare-head{align-items:flex-start;flex-direction:column}
  .chart-modal--resumen .chart-modal__chart{height:clamp(120px,22vh,180px)}
}
@media (max-width:520px){
  .chart-modal__highlights,.chart-modal__index-list{grid-template-columns:1fr}
  .chart-modal--resumen{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .chart-modal--resumen .chart-modal__panel{max-height:calc(100dvh - 16px)}
}
html[data-theme="dark"] .chart-modal__highlight--area{
  background:linear-gradient(180deg,rgba(11,94,215,.18),rgba(11,94,215,.08));
}
html[data-theme="dark"] .chart-modal__highlight--motivo{
  color:#ff9f0a;
  background:linear-gradient(180deg,rgba(232,117,0,.2),rgba(232,117,0,.08));
  border-color:color-mix(in srgb,#e87500 28%,transparent);
}
html[data-theme="dark"] .chart-modal__highlight--motivo .chart-modal__highlight-icon{
  color:#ff9f0a;
  background:color-mix(in srgb,#e87500 28%,transparent);
}
html[data-theme="dark"] .chart-modal__panel{background:rgba(10,29,52,.96)}
html[data-theme="dark"] .chart-modal::backdrop{background:rgba(0,0,0,.55)}
.monthly-history__kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.monthly-kpi{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:76px;padding:13px 16px;border-radius:15px}
.monthly-kpi__icon{display:grid;flex:0 0 38px;place-items:center;width:38px;height:38px;border-radius:11px;font-size:17px;font-weight:700}
.monthly-kpi div>span,.monthly-kpi div>strong{display:block}
.monthly-kpi div>span{color:var(--ui-text-secondary);font-size:11px;font-weight:600}
.monthly-kpi div>strong{margin-top:1px;color:var(--ui-text);font-size:24px;line-height:1.05}
.monthly-kpi--total .monthly-kpi__icon{color:var(--ui-accent);background:rgba(0,113,227,.11)}
.monthly-kpi--completed .monthly-kpi__icon{color:var(--ui-success);background:rgba(52,199,89,.12)}
.monthly-kpi--pending .monthly-kpi__icon{color:var(--ui-warning);background:rgba(255,159,10,.13)}
.monthly-history__table-card{min-height:0}
.monthly-history__table-scroll{max-height:none!important;overflow:visible!important}
.monthly-history__table-scroll .table{width:100%;margin:0;table-layout:fixed}
.monthly-history__table-scroll thead th{background:var(--ui-surface-solid);box-shadow:0 1px var(--ui-separator)}
.monthly-history__table-scroll .table th{padding:10px 8px;white-space:normal;line-height:1.25}
.monthly-history__table-scroll .table td{padding:10px 8px;font-size:12px;overflow-wrap:anywhere}
.monthly-history__table-scroll .table th:nth-child(1){width:9%}
.monthly-history__table-scroll .table th:nth-child(2){width:14%}
.monthly-history__table-scroll .table th:nth-child(3){width:13%}
.monthly-history__table-scroll .table th:nth-child(4){width:17%}
.monthly-history__table-scroll .table th:nth-child(5){width:12%}
.monthly-history__table-scroll .table th:nth-child(6){width:14%}
.monthly-history__table-scroll .table th:nth-child(7){width:14%}
.monthly-history__table-scroll .table th:nth-child(8){width:7%}
.monthly-history__table-scroll .badge{max-width:100%;white-space:normal;text-align:center}
.monthly-history__folio{color:var(--ui-accent);font-weight:650;white-space:nowrap}
.monthly-history__name{min-width:0;font-weight:550}
.monthly-history__pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:7px 12px;border-top:1px solid var(--ui-separator);color:var(--ui-text-secondary);font-size:11px}
.monthly-history__pagination>div{display:flex;align-items:center;gap:10px}
.monthly-history__pagination small{min-width:88px;text-align:center}
.monthly-history__grouped{overflow:hidden;border-radius:18px}
.monthly-grouped__header{display:flex;align-items:center;gap:14px;padding:18px 20px;border-bottom:1px solid var(--ui-separator)}
.monthly-grouped__header-icon,
.monthly-grouped__period-icon{display:grid;place-items:center;color:var(--ui-accent);background:rgba(0,113,227,.08)}
.monthly-grouped__header-icon{flex:0 0 48px;width:48px;height:48px;border-radius:14px}
.monthly-grouped__header h2{margin:0;color:var(--ui-text);font-size:20px;line-height:1.2}
.monthly-grouped__header p{margin:5px 0 0;color:var(--ui-text-secondary);font-size:12px}
.monthly-grouped__table .table{margin:0;table-layout:fixed}
.monthly-grouped__table thead th{padding:13px 22px;color:var(--ui-text-secondary);background:rgba(0,113,227,.035);font-size:10px;font-weight:600}
.monthly-grouped__table tbody td{height:88px;padding:14px 22px;border-color:var(--ui-separator)}
.monthly-grouped__table th:first-child{width:24%}
.monthly-grouped__table th:nth-child(2){width:21%}
.monthly-grouped__table th:nth-child(3),
.monthly-grouped__table th:nth-child(4){width:18%}
.monthly-grouped__table th:last-child{width:19%}
.monthly-grouped__period{display:flex;align-items:center;gap:14px;color:var(--ui-text)}
.monthly-grouped__period-icon{flex:0 0 42px;width:42px;height:42px;border-radius:11px}
.monthly-grouped__period strong{font-size:13px;white-space:nowrap}
.monthly-grouped__metric{display:flex;align-items:flex-start;flex-direction:column;gap:6px}
.monthly-grouped__metric>span{display:grid;place-items:center;min-width:32px;height:32px;padding:0 9px;border-radius:999px;font-size:13px;font-weight:650}
.monthly-grouped__metric small{color:var(--ui-text-tertiary);font-size:10px;white-space:nowrap}
.monthly-grouped__metric--total>span{color:#0066d6;background:rgba(0,113,227,.08)}
.monthly-grouped__metric--signed>span{color:#248a3d;background:rgba(52,199,89,.1)}
.monthly-grouped__metric--pending>span{color:#c35a00;background:rgba(255,159,10,.12)}
.monthly-grouped__action{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:8px 13px;border:1px solid rgba(0,113,227,.55);border-radius:9px;color:var(--ui-accent);font-size:11px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .18s ease,box-shadow .18s ease,transform .18s ease}
.monthly-grouped__action .ui-icon{transform:rotate(-90deg)}
.monthly-grouped__action:hover{color:var(--ui-accent);background:rgba(0,113,227,.06);box-shadow:0 6px 15px rgba(0,113,227,.1);transform:translateY(-1px)}
.monthly-grouped__footer{display:flex;align-items:center;gap:10px;padding:14px 21px;color:var(--ui-text-secondary);background:rgba(0,113,227,.025);font-size:10px}
.monthly-grouped__footer .ui-icon{flex:0 0 auto;color:var(--ui-accent)}
.table{--bs-table-bg:transparent;--bs-table-hover-bg:rgba(118,118,128,.045);color:var(--ui-text)}
.table th{
  padding:13px 18px;
  border-bottom-color:var(--ui-separator);
  color:var(--ui-text-tertiary);
  background:transparent;
  font-size:11px;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:none;
}
.table td{padding:15px 18px;border-bottom-color:var(--ui-separator);font-size:14px}
.table tbody tr:last-child td{border-bottom:0}
.badge,.badge-status,.dashboard-status{
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
}
.text-bg-success,.dashboard-status--completada{color:#187437!important;background:rgba(52,199,89,.12)!important}
.text-bg-warning,.dashboard-status--borrador,.dashboard-status--en_proceso{color:#965300!important;background:rgba(255,159,10,.13)!important}
.text-bg-secondary,.dashboard-status--cancelada{color:var(--ui-text-secondary)!important;background:rgba(118,118,128,.12)!important}
.pagination{gap:6px}
.page-link{border:0;border-radius:10px!important;color:var(--ui-text-secondary);background:var(--ui-surface)}
.page-link:hover{color:var(--ui-accent);background:var(--ui-surface-solid)}
.detail-grid dt{color:var(--ui-text-tertiary);font-size:11px;font-weight:600;letter-spacing:.03em}
.detail-grid dd{margin-top:4px;color:var(--ui-text);font-size:15px;font-weight:500}
.interview-detail-header{
  align-items:center;
  margin-bottom:24px;
  padding-bottom:18px;
  border-bottom:1px solid var(--ui-separator);
}
.interview-detail-header h1{margin:0;font-size:clamp(28px,3vw,36px)}
.document-detail-hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  min-height:202px;
  margin-bottom:16px;
  padding:28px;
  overflow:hidden;
  border:1px solid rgba(0,113,227,.08);
  border-radius:20px;
  background:radial-gradient(circle at 93% 24%,rgba(82,143,255,.1),transparent 27%),linear-gradient(135deg,#fff 0%,#fff 60%,#f2f7ff 100%);
  box-shadow:0 12px 34px rgba(32,65,105,.07);
}
.document-detail-hero::after{
  position:absolute;
  top:-130px;
  right:-60px;
  width:430px;
  height:320px;
  border:1px solid rgba(0,113,227,.07);
  border-radius:50%;
  content:"";
  pointer-events:none;
}
.document-detail-hero__identity{position:relative;z-index:1;display:flex;align-items:flex-start;gap:22px}
.document-detail-hero__icon{
  display:grid;
  flex:0 0 58px;
  place-items:center;
  width:58px;
  height:58px;
  margin-top:2px;
  border-radius:16px;
  color:#0873e6;
  background:linear-gradient(145deg,#f3f7ff,#e4edff);
}
.document-detail-hero h1{margin:3px 0 0;color:#1765c1;font-size:clamp(20px,2.2vw,24px);font-weight:750;letter-spacing:.035em;line-height:1.1;text-transform:uppercase}
.document-detail-hero__name{margin:17px 0 0;color:#071329;font-size:clamp(25px,3.3vw,34px);font-weight:750;letter-spacing:-.025em;line-height:1.1;text-transform:uppercase}
.document-detail-hero__date{display:flex;align-items:center;gap:9px;margin:25px 0 0;color:#687386;font-size:12px}
.document-detail-hero__date .ui-icon{color:#0873e6}
.document-detail-hero__date strong{color:#0873e6;font-weight:650}
.document-detail-hero__actions{position:relative;z-index:1;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.document-detail-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:10px 17px;
  border:1px solid var(--ui-separator-strong);
  border-radius:10px;
  font-size:12px;
  font-weight:650;
  text-decoration:none;
  box-shadow:0 5px 14px rgba(20,50,90,.07);
  transition:transform .18s ease,box-shadow .18s ease;
}
.document-detail-button:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(20,50,90,.12)}
.document-detail-button--back{color:var(--ui-text);background:rgba(255,255,255,.78)}
.document-detail-button--back:hover{color:var(--ui-text)}
.document-detail-button--back .ui-icon{transform:rotate(90deg)}
.document-detail-button--primary{border-color:#006fe6;color:#fff;background:linear-gradient(145deg,#087cf0,#005bd7);box-shadow:0 7px 16px rgba(0,103,220,.22)}
.document-detail-button--primary:hover{color:#fff}
.document-employee-card{box-shadow:0 12px 30px rgba(32,65,105,.07)}
.employee-detail-card{overflow:hidden;border-radius:18px}
.employee-detail-card__header{
  display:flex;
  align-items:center;
  gap:14px;
  padding:24px 28px;
  border-bottom:1px solid var(--ui-separator);
}
.employee-detail-card__title-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:13px;
  color:#0873e6;
  background:linear-gradient(145deg,#f3f7ff,#e4edff);
}
.employee-detail-card__header h2{margin:0;color:var(--ui-text);font-size:20px}
.employee-detail-card__header p{margin:4px 0 0;color:var(--ui-text-secondary);font-size:12px}
.employee-detail-grid{display:grid;grid-template-columns:repeat(12,1fr);margin:0;padding:0 28px 14px}
.employee-detail-item{
  min-width:0;
  padding:28px 20px 24px 0;
  border-right:1px solid var(--ui-separator);
}
.employee-detail-item:nth-child(-n+4){grid-column:span 3}
.employee-detail-item:nth-child(n+5){grid-column:span 4;border-top:1px solid var(--ui-separator)}
.employee-detail-item:not(:nth-child(1)):not(:nth-child(5)){padding-left:28px}
.employee-detail-item:nth-child(4),
.employee-detail-item:nth-child(7){border-right:0}
.employee-detail-item__icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-bottom:13px;
  border-radius:11px;
}
.employee-detail-item--blue .employee-detail-item__icon{color:#0873e6;background:#edf4ff}
.employee-detail-item--purple .employee-detail-item__icon{color:#8a3ffc;background:#f4edff}
.employee-detail-item--green .employee-detail-item__icon{color:#148447;background:#eaf8f0}
.employee-detail-item--orange .employee-detail-item__icon{color:#e87500;background:#fff2e5}
.employee-detail-item dt{color:var(--ui-text-tertiary);font-size:10px;font-weight:700;letter-spacing:.055em;text-transform:uppercase}
.employee-detail-item dd{margin:6px 0 0;color:var(--ui-text);font-size:14px;font-weight:650;line-height:1.35}
html[data-theme="dark"] .document-detail-hero{border-color:rgba(105,174,252,.12);background:radial-gradient(circle at 93% 24%,rgba(41,151,255,.12),transparent 28%),linear-gradient(135deg,#0d2542 0%,#0d2542 60%,#0a203b 100%)}
html[data-theme="dark"] .document-detail-hero h1{color:#f5f8fc}
html[data-theme="dark"] .document-detail-hero__date{color:#aebdd0}
html[data-theme="dark"] .document-detail-hero__name{color:#f5f8fc}
html[data-theme="dark"] .document-detail-hero__icon{color:#8fc3ff;background:rgba(65,139,229,.16)}
html[data-theme="dark"] .document-detail-button--back{background:rgba(12,39,69,.82)}
html[data-theme="dark"] .employee-detail-card__title-icon,
html[data-theme="dark"] .employee-detail-item--blue .employee-detail-item__icon{color:#8fc3ff;background:rgba(65,139,229,.16)}
html[data-theme="dark"] .employee-detail-item--purple .employee-detail-item__icon{color:#c8a7ff;background:rgba(138,63,252,.15)}
html[data-theme="dark"] .employee-detail-item--green .employee-detail-item__icon{color:#83dba0;background:rgba(52,199,89,.14)}
html[data-theme="dark"] .employee-detail-item--orange .employee-detail-item__icon{color:#f1bd78;background:rgba(232,117,0,.14)}
@media (max-width:991.98px){
  .document-detail-hero{align-items:stretch;flex-direction:column;min-height:0}
  .document-detail-hero__actions{justify-content:flex-end}
  .employee-detail-grid{grid-template-columns:repeat(2,1fr)}
  .employee-detail-item{grid-column:auto!important;border-top:1px solid var(--ui-separator);border-right:0}
  .employee-detail-item:nth-child(-n+2){border-top:0}
  .employee-detail-item:nth-child(odd){padding-left:0;border-right:1px solid var(--ui-separator)}
  .employee-detail-item:nth-child(even){padding-left:24px}
}
@media (max-width:575.98px){
  .document-detail-hero{padding:20px}
  .document-detail-hero__identity{gap:14px}
  .document-detail-hero__icon{flex-basis:46px;width:46px;height:46px;border-radius:13px}
  .document-detail-hero h1{font-size:19px}
  .document-detail-hero__name{font-size:clamp(22px,7vw,29px)}
  .document-detail-hero__date{align-items:flex-start;margin-top:18px}
  .document-detail-hero__actions{display:grid;grid-template-columns:1fr}
  .document-detail-button{width:100%}
  .employee-detail-card__header{padding:20px}
  .employee-detail-grid{grid-template-columns:1fr;padding:0 20px 12px}
  .employee-detail-item,
  .employee-detail-item:nth-child(odd),
  .employee-detail-item:nth-child(even){padding:20px 0;border-top:1px solid var(--ui-separator);border-right:0}
  .employee-detail-item:first-child{border-top:0}
}
.bg-light{background-color:var(--ui-surface-muted)!important}

/* Signed document upload */
.signed-pdf-card{overflow:hidden;border-radius:18px}
.signed-pdf-card__header{
  display:flex;
  align-items:center;
  gap:15px;
  padding:22px 24px;
  border-bottom:1px solid var(--ui-separator);
}
.signed-pdf-card__icon{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:14px;
  color:#0768e6;
  background:linear-gradient(145deg,#f1f6ff,#e3edff);
}
.signed-pdf-card__header h2{margin:0;color:var(--ui-text);font-size:20px}
.signed-pdf-card__header p{margin:5px 0 0;color:var(--ui-text-secondary);font-size:12px}
.signed-pdf-card__body{padding:22px 24px 24px}
.signed-pdf-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-bottom:13px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
}
.signed-pdf-status--pending{color:#b45b00;background:#fff3df}
.signed-pdf-status--success{color:#187437;background:#e8f8ee}
.signed-pdf-status--removed{color:#9b1c1c;background:#fde8e8}
.signed-pdf-card__message{margin:0 0 17px;color:var(--ui-text);font-size:14px}
.signed-pdf-upload{display:grid;justify-items:start;gap:14px}
.signed-pdf-picker{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  min-height:104px;
  padding:24px 26px;
  overflow:hidden;
  border:1px solid var(--ui-separator);
  border-radius:13px;
  background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(246,249,253,.72));
  cursor:pointer;
}
.signed-pdf-picker::before{
  position:absolute;
  inset:11px;
  border:1px dashed #cfdae8;
  border-radius:10px;
  content:"";
  pointer-events:none;
}
.signed-pdf-picker>*{position:relative;z-index:1}
.signed-pdf-picker__icon{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:50%;
  color:#0873e6;
  background:#e9f2ff;
}
.signed-pdf-picker__text{display:grid;min-width:0}
.signed-pdf-picker__text strong{color:var(--ui-text);font-size:14px}
.signed-pdf-picker__text small{
  margin-top:4px;
  overflow:hidden;
  color:var(--ui-text-secondary);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.signed-pdf-picker__browse{
  margin-left:auto;
  padding:9px 15px;
  border:1px solid var(--ui-separator);
  border-radius:9px;
  color:#0868dc;
  background:rgba(255,255,255,.82);
  box-shadow:0 3px 10px rgba(5,40,83,.06);
  font-size:12px;
  font-weight:650;
}
.signed-pdf-picker:hover{border-color:rgba(0,113,227,.35);background:#f8fbff}
.signed-pdf-picker:focus-within{outline:3px solid rgba(0,113,227,.2);outline-offset:2px}
.signed-pdf-help{display:flex;align-items:flex-start;gap:8px;margin:0;color:var(--ui-text-secondary);font-size:11px;line-height:1.4}
.signed-pdf-help .ui-icon{margin-top:1px;flex:0 0 auto}
.signed-pdf-submit{display:inline-flex;align-items:center;gap:8px;min-height:43px;padding-inline:17px}
html[data-theme="dark"] .signed-pdf-card__icon,
html[data-theme="dark"] .signed-pdf-picker__icon{color:#8fc3ff;background:rgba(65,139,229,.16)}
html[data-theme="dark"] .signed-pdf-picker{background:rgba(15,42,72,.72)}
html[data-theme="dark"] .signed-pdf-picker::before{border-color:rgba(177,205,237,.2)}
html[data-theme="dark"] .signed-pdf-picker__browse{border-color:rgba(177,205,237,.14);color:#9dccff;background:rgba(255,255,255,.06)}
html[data-theme="dark"] .signed-pdf-status--pending{color:#f1ca78;background:rgba(233,188,98,.15)}
html[data-theme="dark"] .signed-pdf-status--success{color:#83dba0;background:rgba(52,199,89,.14)}
html[data-theme="dark"] .signed-pdf-status--removed{color:#f5a3a3;background:rgba(255,69,58,.14)}
.signed-pdf-divider{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  margin:6px 0 2px;
  color:var(--ui-text-tertiary);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.signed-pdf-divider::before,
.signed-pdf-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--ui-separator);
}
.generated-pdf-body{display:flex;flex-direction:column;gap:10px}
.generated-pdf-file{margin:0;color:var(--ui-text-secondary);font-size:13px}
.generated-pdf-preview{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:0;
  /* Sin crecer: el sobrante de altura queda debajo de los botones y no entre
     la vista previa y las acciones. */
  flex:0 0 auto;
}
.generated-pdf-preview__frame{
  width:100%;
  /* Proporción carta acotada al alto de la ventana para que en tablet quepa
     sin desplazar la tarjeta de entrevista firmada. */
  aspect-ratio:17 / 22;
  max-height:min(62vh,620px);
  min-height:260px;
  border:1px solid var(--ui-separator);
  border-radius:12px;
  background:var(--ui-surface-muted);
}
.generated-pdf-preview__caption{
  margin:0;
  color:var(--ui-text-secondary);
  font-size:12px;
}
@media (max-width:575.98px){
  .generated-pdf-preview__frame{max-height:52vh;min-height:220px}
}
@media print{
  .generated-pdf-preview{display:none}
}
.signed-photo-upload{display:grid;justify-items:start;gap:12px;width:100%}
.signed-photo-upload__title{margin:0;color:var(--ui-text);font-size:14px;font-weight:700}
.signed-photo-upload__hint{margin:0;color:var(--ui-text-secondary);font-size:12px;line-height:1.45}
.signed-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
.signed-photo-slot{display:grid;gap:6px;min-width:0}
.signed-photo-picker{
  position:relative;
  display:grid;
  place-items:center;
  width:100%;
  min-height:150px;
  padding:14px;
  overflow:hidden;
  border:1.5px dashed color-mix(in srgb,var(--ui-accent) 28%,var(--ui-separator));
  border-radius:14px;
  background:var(--ui-surface-muted);
  cursor:pointer;
  text-align:center;
}
.signed-photo-input{
  position:absolute;
  inset:0;
  z-index:2;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
  font-size:0;
}
.signed-photo-picker__placeholder{display:grid;justify-items:center;gap:4px;z-index:1}
.signed-photo-picker__icon{color:var(--ui-accent);line-height:0}
.signed-photo-picker__placeholder strong{color:var(--ui-text);font-size:13px}
.signed-photo-picker__placeholder small{color:var(--ui-text-secondary);font-size:11px;word-break:break-word}
.signed-photo-actions{display:flex;align-items:center;gap:10px;justify-content:center;flex-wrap:wrap}
.signed-photo-alt{
  padding:6px 10px;
  min-height:32px;
  border:0;
  border-radius:8px;
  color:var(--ui-accent);
  background:transparent;
  font-size:11px;
  font-weight:650;
  text-decoration:underline;
  cursor:pointer;
}
.signed-photo-alt:hover{color:var(--ui-text)}
.signed-photo-alt--clear{color:var(--ui-text-secondary)}
.signed-photo-feedback{
  margin:0;
  color:var(--ui-text-secondary);
  font-size:12px;
  font-weight:650;
}
.signed-photo-feedback.is-ready{color:#187437}
html[data-theme="dark"] .signed-photo-feedback.is-ready{color:#83dba0}
.signed-photo-upload .signed-pdf-submit:disabled{opacity:.55;cursor:not-allowed}
.signed-photo-picker__preview{
  position:absolute;
  inset:0;
  z-index:0;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
}
.signed-photo-picker.is-filled .signed-photo-picker__placeholder{
  position:relative;
  z-index:1;
  padding:6px 8px;
  border-radius:8px;
  color:#fff;
  background:rgba(8,20,40,.55);
}
.signed-photo-picker.is-filled .signed-photo-picker__placeholder strong,
.signed-photo-picker.is-filled .signed-photo-picker__placeholder small{color:#fff}
.signed-photo-picker.is-filled .signed-photo-picker__icon{color:#fff}
.signed-photo-picker:hover{border-color:rgba(0,113,227,.4)}
.signed-photo-picker:focus-within{outline:3px solid rgba(0,113,227,.2);outline-offset:2px}
html[data-theme="dark"] .signed-photo-picker{background:rgba(15,42,72,.72)}
@media (max-width:575.98px){
  .signed-pdf-card__header{align-items:flex-start;padding:18px}
  .signed-pdf-card__body{padding:18px}
  .signed-pdf-picker{align-items:flex-start;flex-wrap:wrap;min-height:132px;padding:24px}
  .signed-pdf-picker__text{max-width:calc(100% - 60px)}
  .signed-pdf-picker__browse{width:100%;margin-left:0;text-align:center}
  .signed-pdf-submit{justify-content:center;width:100%}
  .signed-photo-grid{grid-template-columns:1fr}
  .signed-photo-upload .signed-pdf-submit{width:100%;justify-content:center}
}
.document-upload-card{width:100%;max-width:none;overflow:hidden;border-radius:14px}
.document-upload-card__header{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 22px;
  border-bottom:1px solid var(--ui-separator);
}
.document-upload-card__header h1{margin:0 0 4px;color:#082d6d;font-size:18px;font-weight:750}
.document-upload-card__header p{color:var(--ui-text-secondary);font-size:12px;line-height:1.45}
.document-upload-card__icon{
  display:grid;
  flex:0 0 46px;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:10px;
  color:#075fe4;
  background:#eaf2ff;
}
.document-upload-card__body{padding:20px 22px}
.document-upload-form{display:grid;gap:16px}
.document-upload-form__field{min-width:0}
.document-upload-form .form-label{
  margin-bottom:10px;
  color:#152b52;
  font-size:12px;
  font-weight:700;
}
.document-dropzone{
  display:grid;
  place-items:center;
  min-height:168px;
  padding:18px;
  border:1.5px dashed #75a8f4;
  border-radius:11px;
  color:#102f69;
  background:rgba(241,247,255,.42);
  text-align:center;
  cursor:pointer;
  transition:border-color .16s,background .16s,box-shadow .16s;
}
.document-dropzone:hover,.document-dropzone.is-dragging{border-color:#075fe4;background:#f0f6ff}
.document-dropzone:focus-visible{outline:0;box-shadow:0 0 0 4px rgba(7,95,228,.16)}
/* Selector con el elemento para ganar a `.document-dropzone span`, que si no
   convierte el círculo en bloque y descentra el ícono. */
.document-dropzone span.document-dropzone__icon{
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  margin:0 0 8px;
  border-radius:50%;
  color:#075fe4;
  background:#e7f0ff;
}
.document-dropzone strong,.document-dropzone span,.document-dropzone small{display:block}
.document-dropzone strong{font-size:14px}
.document-dropzone span{margin-top:2px;font-size:12px}
.document-dropzone small{margin-top:12px;color:var(--ui-text-secondary);font-size:11px}
.document-upload-notice{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:11px 14px;border-radius:10px;color:#0b51b7;background:#f0f6ff}
.document-upload-notice>span{margin-top:1px}
.document-upload-notice p,.document-upload-notice strong,.document-upload-notice span{display:block;margin:0}
.document-upload-notice p{font-size:11px;line-height:1.45}
.document-upload-notice p span{color:#445a78}
.document-selected>.form-label{display:block}
.document-selected__card{display:grid;grid-template-columns:auto minmax(140px,1fr) auto minmax(280px,1.5fr) auto;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--ui-separator);border-radius:11px;background:var(--ui-surface-solid)}
.document-selected__pdf{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;color:#e5323b;background:#fff0f1}
.document-selected__identity{min-width:0}
.document-selected__identity strong,.document-selected__identity small{display:block}
.document-selected__identity strong{overflow:hidden;color:#172a4c;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.document-selected__identity small{margin-top:3px;color:var(--ui-text-secondary);font-size:11px}
.document-validation-badge{padding:5px 9px;border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap}
.document-validation-badge--pending{color:#8a5a00;background:#fff4d6}
.document-validation-badge--success{color:#157345;background:#dff7e9}
.document-validation-badge--error{color:#a3222c;background:#fde9eb}
.document-selected__association{display:grid;grid-template-columns:minmax(100px,.6fr) minmax(170px,1fr);border-left:1px solid var(--ui-separator)}
.document-selected__association>span{min-width:0;padding:0 14px;border-right:1px solid var(--ui-separator)}
.document-selected__association>span:last-child{border-right:0}
.document-selected__association small,.document-selected__association strong{display:block}
.document-selected__association small{color:var(--ui-text-secondary);font-size:9px}
.document-selected__association strong{margin-top:2px;overflow:hidden;color:#18375f;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.document-selected__association [data-folio]{color:#075fe4}
.document-clear-button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--ui-separator);border-radius:8px;color:#6f7d91;background:transparent}
.document-clear-button:hover{color:var(--ui-danger);background:rgba(215,0,21,.06)}
.document-clear-button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.document-file-error{margin:8px 0 0;padding:9px 12px;border-radius:8px;color:#a3222c;background:#fde9eb;font-size:11px}
.document-upload-info{display:grid;grid-template-columns:.85fr .85fr 1.5fr;border-radius:10px;background:var(--ui-surface-muted)}
.document-upload-info>div{display:flex;align-items:center;gap:10px;min-width:0;padding:12px 14px;border-right:1px solid var(--ui-separator)}
.document-upload-info>div:last-child{border-right:0}
.document-upload-info>div>span{color:#075fe4}
.document-upload-info p,.document-upload-info strong,.document-upload-info p span{display:block;margin:0}
.document-upload-info strong{color:#203654;font-size:10px}
.document-upload-info p span{margin-top:2px;color:#344966;font-size:10px;line-height:1.35}
.document-upload-form__actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-top:14px;
  border-top:1px solid var(--ui-separator);
}
.document-upload-form__actions>p{display:flex;align-items:flex-start;gap:8px;max-width:520px;margin:0;padding:9px 12px;border-radius:8px;color:#31578e;background:#f0f6ff;font-size:10px;line-height:1.4}
.document-upload-form__actions>p span{flex:0 0 auto}
.document-upload-form__actions>div{display:flex;gap:10px}
.document-upload-form__actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:120px}
.document-upload-form__actions .btn:disabled{cursor:not-allowed;opacity:.5}

/* Dashboard */
.dashboard-page{
  --dashboard-gutter:clamp(24px,3.5vw,52px);
  margin:calc(0px - var(--dashboard-gutter));
  margin-bottom:0;
}
.dashboard-hero{
  position:relative;
  min-height:190px;
  padding:42px var(--dashboard-gutter) 70px;
  overflow:hidden;
  isolation:isolate;
  color:#fff;
  background:
    radial-gradient(circle at 72% 18%,rgba(75,190,255,.34),transparent 22%),
    linear-gradient(112deg,#071b59 0%,#063b83 56%,#0877b7 100%);
}
.dashboard-hero::before{
  position:absolute;
  z-index:-1;
  inset:0 0 0 48%;
  opacity:.32;
  background:
    linear-gradient(125deg,transparent 0 38%,rgba(255,255,255,.17) 38.3% 38.7%,transparent 39%),
    linear-gradient(55deg,transparent 0 62%,rgba(255,255,255,.12) 62.3% 62.7%,transparent 63%),
    radial-gradient(circle,rgba(255,255,255,.42) 1px,transparent 1.5px);
  background-size:auto,auto,12px 12px;
  clip-path:polygon(18% 0,100% 0,100% 100%,0 100%);
  content:"";
}
.dashboard-hero::after{
  position:absolute;
  z-index:-1;
  top:-74px;
  right:16%;
  width:240px;
  height:240px;
  border:1px solid rgba(255,255,255,.12);
  transform:rotate(45deg);
  content:"";
}
.dashboard-welcome{position:relative;z-index:1;margin:0}
.dashboard-welcome h1{
  margin:0;
  color:#fff;
  font-size:clamp(27px,2.5vw,36px);
  font-weight:730;
  letter-spacing:-.035em;
  text-shadow:0 2px 12px rgba(0,18,54,.18);
}
.dashboard-welcome p{margin:7px 0 0;color:rgba(255,255,255,.88);font-size:14px}
.dashboard-content{position:relative;z-index:2;padding:0 var(--dashboard-gutter) 48px}
.dashboard-kpis{row-gap:16px!important;margin-top:-48px;margin-bottom:20px!important}
.dashboard-kpi{
  position:relative;
  min-height:112px;
  padding:18px 20px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:16px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.9),rgba(245,249,253,.78));
  box-shadow:0 12px 32px rgba(5,40,83,.13);
  backdrop-filter:saturate(140%) blur(15px);
  -webkit-backdrop-filter:saturate(140%) blur(15px);
}
.dashboard-kpi:hover{transform:translateY(-2px);box-shadow:0 15px 38px rgba(5,40,83,.16)}
.dashboard-kpi__icon{width:42px;height:42px;border-radius:12px}
.dashboard-kpi__icon--blue{color:#0071e3;background:rgba(0,113,227,.1)}
.dashboard-kpi__icon--green{color:#248a3d;background:rgba(52,199,89,.11)}
.dashboard-kpi__icon--amber{color:#b25000;background:rgba(255,159,10,.12)}
.dashboard-kpi div>span{color:#52657a;font-size:12px}
.dashboard-kpi div>strong{margin:2px 0;color:#0a3975;font-size:26px}
.dashboard-kpi div>small{color:var(--ui-text-tertiary);font-size:11px}
.dashboard-kpi-action{
  overflow:hidden;
  padding-right:58px;
  border-color:rgba(255,255,255,.9);
  color:#0b3972;
  background:
    linear-gradient(145deg,rgba(255,255,255,.97),rgba(235,244,255,.86));
  box-shadow:
    0 14px 34px rgba(5,40,83,.14),
    inset 0 1px 0 rgba(255,255,255,.95);
  text-decoration:none;
  transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s ease;
}
.dashboard-kpi-action .dashboard-kpi__icon{
  color:#fff;
  background:linear-gradient(145deg,#32a2ff,#0068e2);
  box-shadow:0 7px 18px rgba(0,104,226,.25),inset 0 1px 0 rgba(255,255,255,.3);
}
.dashboard-kpi-action div>span,
.dashboard-kpi-action div>small{color:#6c7e93}
.dashboard-kpi-action div>strong{color:#0a3975;font-size:18px;letter-spacing:-.02em}
.dashboard-kpi-action::after{
  position:absolute;
  top:50%;
  right:20px;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:50%;
  color:#0873e6;
  background:rgba(0,113,227,.09);
  content:"›";
  font-size:24px;
  font-weight:400;
  line-height:1;
  transform:translateY(-50%);
  transition:transform .22s ease,background-color .22s ease;
}
.dashboard-kpi-action:hover{
  color:#0b3972;
  box-shadow:0 18px 40px rgba(5,40,83,.19),inset 0 1px 0 #fff;
  transform:translateY(-3px);
}
.dashboard-kpi-action:hover::after{
  background:rgba(0,113,227,.14);
  transform:translate(3px,-50%);
}
.dashboard-kpi-action:focus-visible{outline:3px solid rgba(0,113,227,.32);outline-offset:3px}
.dashboard-chart-card,.dashboard-recent{border-radius:16px;background:var(--ui-surface-solid);box-shadow:0 7px 24px rgba(13,46,84,.07)}
.dashboard-chart-card .card-header,.dashboard-recent .card-header{padding:17px 20px}
.dashboard-recent .card-header{display:flex;align-items:center;gap:16px;justify-content:space-between}
.dashboard-recent .card-header small{display:block;margin-top:3px;color:var(--ui-text-secondary);font-size:11px}
.dashboard-chart-card .card-header h2,.dashboard-recent .card-header h2{color:var(--ui-text);font-size:15px}
.dashboard-chart-card .card-header span{border:0;border-radius:9px;color:var(--ui-text-secondary);background:var(--ui-surface-muted)}
/* El chip gris del encabezado no debe pintar el texto del botón "Ver por área". */
.dashboard-chart-card .card-header .dashboard-risk-link span{border-radius:0;color:inherit;background:none}
.dashboard-chart-card .card-body{padding:18px 20px 22px}
.dashboard-chart-card .chart-wrap{height:270px}
.interview-exit-reason{
  display:flex;
  align-items:center;
  gap:15px;
  width:100%;
  max-width:none;
  min-height:104px;
  padding:20px 24px;
  border:1px solid rgba(0,113,227,.12);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(249,252,255,.98),rgba(233,242,255,.78));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter:blur(14px) saturate(135%);
}
.interview-exit-reason__icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:13px;
  color:#0873e6;
  background:#e8f2ff;
}
.interview-exit-reason__content{display:grid;min-width:0}
.interview-exit-reason__content small{color:var(--ui-text-tertiary);font-size:10px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}
.interview-exit-reason__content strong{margin-top:5px;color:var(--ui-text);font-size:17px;font-weight:650}
.interview-exit-reason__status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-left:auto;
  padding:6px 10px;
  border-radius:999px;
  color:#187437;
  background:#e8f8ee;
  font-size:10px;
  font-weight:650;
  white-space:nowrap;
}
html[data-theme="dark"] .interview-exit-reason{
  border-color:rgba(163,203,246,.18);
  background:linear-gradient(145deg,rgba(20,54,91,.96),rgba(10,37,70,.9));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-theme="dark"] .interview-exit-reason__icon{color:#8fc3ff;background:rgba(65,139,229,.16)}
html[data-theme="dark"] .interview-exit-reason__content strong{color:#f5f7fb}
html[data-theme="dark"] .interview-exit-reason__status{color:#83dba0;background:rgba(52,199,89,.14)}
.dashboard-section-heading.interview-indicators-heading{
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  margin-bottom:20px;
}
.interview-indicators-heading__icon{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:13px;
  color:#0873e6;
  background:linear-gradient(145deg,#f3f7ff,#e4edff);
  box-shadow:0 6px 18px rgba(5,65,145,.08);
}
html[data-theme="dark"] .interview-indicators-heading__icon{color:#8fc3ff;background:rgba(65,139,229,.16)}
.interview-motive-card{overflow:hidden}
.interview-motive-card__header{
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px 22px;
  border-bottom:1px solid var(--ui-separator);
}
.interview-motive-card__icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:12px;
  color:#0873e6;
  background:#edf4ff;
}
.interview-motive-card__header>div{min-width:0}
.interview-motive-card__header h2{margin:0;color:var(--ui-text);font-size:16px}
.interview-motive-card__header p{margin:4px 0 0;color:var(--ui-text-secondary);font-size:11px;line-height:1.35}
.interview-motive-card__info{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  flex:0 0 32px;
  margin-left:auto;
  border:1px solid var(--ui-separator);
  border-radius:50%;
  color:#0873e6;
}
html[data-theme="dark"] .interview-motive-card__icon{color:#8fc3ff;background:rgba(65,139,229,.16)}
.interview-indicators-grid>.interview-indicator-motive{order:1}
.interview-indicators-grid>.interview-indicator-climate{order:2}
.interview-indicators-grid>.interview-indicator-perspective{order:3}
.interview-indicators-grid>.dashboard-leadership-column{order:4}
.interview-indicators-grid>.dashboard-risks-column{order:5}
.interview-indicator-motive .dashboard-chart-card>.card-body{
  display:flex;
  align-items:center;
  min-height:150px;
}
.interview-indicator-motive .interview-exit-reason{max-width:none}
.interview-indicator-climate .dashboard-workplace-card>.card-body{padding:14px}
.interview-indicator-climate .dashboard-workplace-grid{grid-template-columns:minmax(145px,.8fr) minmax(0,1.2fr);gap:14px}
.interview-indicator-climate .dashboard-workplace-kpi{min-height:190px;padding:18px}
.interview-indicator-climate .dashboard-workplace-kpi>strong{font-size:36px}
.interview-indicator-climate .dashboard-workplace-chart{padding:16px}
.interview-indicator-climate .dashboard-chart-summary{
  margin:8px 0 5px;
  overflow:visible;
  color:var(--ui-text);
  font-size:11px;
  font-weight:600;
  text-overflow:clip;
  white-space:normal;
}
.interview-indicator-climate .dashboard-workplace-chart .chart-wrap{height:90px}
.dashboard-section-heading{display:flex;align-items:end;justify-content:space-between;margin:4px 0 14px}
.dashboard-section-heading h2{margin:0;color:var(--ui-text);font-size:20px;letter-spacing:-.02em}
.dashboard-section-heading p{margin:4px 0 0;color:var(--ui-text-secondary);font-size:13px}
.dashboard-chart-card .card-header>div>small,
.dashboard-insight-card .card-header small{display:block;margin-top:3px;color:var(--ui-text-secondary);font-size:11px}
.dashboard-insight-card{
  overflow:hidden;
  border-radius:16px;
  background:var(--ui-surface-solid);
  box-shadow:0 7px 24px rgba(13,46,84,.07);
}
.dashboard-insight-card .card-header{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:17px 20px}
.dashboard-insight-card .card-header h2{color:var(--ui-text);font-size:15px}
.dashboard-insight-card .card-header>span{
  flex:0 0 auto;
  padding:5px 8px;
  border-radius:9px;
  color:var(--ui-text-secondary);
  background:var(--ui-surface-muted);
  font-size:11px;
}
.dashboard-insight-card .card-body{padding:8px 20px 16px}
.dashboard-question{border-bottom:1px solid var(--ui-separator)}
.dashboard-question:last-child{border-bottom:0}
.dashboard-question summary{display:flex;gap:11px;align-items:start;padding:12px 2px;cursor:pointer;list-style:none}
.dashboard-question summary::-webkit-details-marker{display:none}
.dashboard-question__number{
  display:grid;
  flex:0 0 28px;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:9px;
  color:var(--ui-accent);
  background:rgba(0,113,227,.1);
  font-size:11px;
  font-weight:750;
}
.dashboard-question summary>span:last-child{min-width:0}
.dashboard-question summary strong{
  display:block;
  overflow:hidden;
  color:var(--ui-text);
  font-size:12px;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dashboard-question summary small{display:block;margin-top:3px;color:var(--ui-text-secondary);font-size:11px}
.dashboard-question__detail{padding:0 2px 12px 41px}
.dashboard-question__detail ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.dashboard-question__detail li{display:flex;gap:12px;justify-content:space-between;color:var(--ui-text-secondary);font-size:11px}
.dashboard-question__detail li strong{flex:0 0 auto;color:var(--ui-text);font-weight:650}
.dashboard-question__detail p{margin:8px 0 0;color:var(--ui-text-tertiary);font-size:10px}
.dashboard-workplace-card{
  overflow:hidden;
  border-radius:16px;
  background:var(--ui-surface-solid);
  box-shadow:0 7px 24px rgba(13,46,84,.07);
}
.dashboard-workplace-card>.card-header{padding:17px 20px}
.dashboard-workplace-card>.card-header h2{color:var(--ui-text);font-size:15px}
.dashboard-workplace-card>.card-header small{color:var(--ui-text-secondary);font-size:11px}
.dashboard-compact-indicator>.dashboard-workplace-card>.card-header{display:flex;align-items:center;gap:11px;padding:14px 16px}
.dashboard-climate-card>.card-header{justify-content:space-between;gap:12px}
.dashboard-compact-indicator__heading{display:flex;align-items:center;gap:11px;min-width:0}
.dashboard-climate-card .dashboard-risk-link{flex:0 0 auto;padding:8px 12px;font-size:11px;min-height:36px}
.dashboard-compact-indicator__icon{display:grid;flex:0 0 34px;place-items:center;width:34px;height:34px;border-radius:9px}
.dashboard-compact-indicator__icon--orange{color:#e87500;background:#fff3e8}
.dashboard-compact-indicator__icon--blue{color:#0873e6;background:#edf4ff}
.dashboard-compact-indicator>.dashboard-workplace-card>.card-body{padding:12px 14px}
.dashboard-compact-indicator .dashboard-workplace-grid{grid-template-columns:minmax(140px,.72fr) minmax(0,1.28fr);gap:14px}
.dashboard-compact-indicator .dashboard-workplace-kpi{min-height:230px;padding:16px}
.dashboard-compact-indicator .dashboard-workplace-kpi>span:first-child{font-size:11px}
.dashboard-compact-indicator .dashboard-workplace-kpi>strong{font-size:clamp(32px,3.4vw,42px)}
.dashboard-compact-indicator .dashboard-workplace-kpi>small{font-size:9px}
.dashboard-compact-indicator .dashboard-workplace-chart h3{font-size:11px}
.dashboard-compact-indicator .dashboard-chart-summary{min-height:28px;font-size:9px;line-height:1.35}
.dashboard-compact-indicator .dashboard-workplace-chart .chart-wrap{height:160px}
.dashboard-compact-indicator .leadership-general-data{margin-top:8px}
.dashboard-compact-indicator__footer{display:flex;align-items:center;gap:9px;margin:0 14px 12px;padding:11px 12px;border:1px solid var(--ui-separator);border-radius:9px;color:var(--ui-text-secondary);background:var(--ui-surface-muted);font-size:9px}
.dashboard-compact-indicator__footer .ui-icon{flex:0 0 auto;color:var(--ui-accent)}
html[data-theme="dark"] .dashboard-compact-indicator__icon--orange{color:#f1bd78;background:rgba(232,117,0,.14)}
html[data-theme="dark"] .dashboard-compact-indicator__icon--blue{color:#8fc3ff;background:rgba(65,139,229,.16)}
.dashboard-leadership-card>.card-header,
.dashboard-motivo-card>.card-header{
  display:flex;
  align-items:center;
  gap:16px;
  justify-content:space-between;
}
/* Solo Evaluación de liderazgo: Datos generales según menú / orientación. */
@media (min-width:992px){
  body.app-shell:not(.sidebar-collapsed) .dashboard-leadership-card .leadership-general-data{
    display:none;
  }
  body.sidebar-collapsed .dashboard-leadership-card .leadership-general-data{
    display:block;
  }
}
@media (orientation:landscape) and (max-width:991.98px){
  .dashboard-leadership-card .leadership-general-data{display:none}
}
.dashboard-workplace-card>.card-body{display:grid;gap:24px;padding:20px}
.dashboard-workplace-grid{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(0,2fr);gap:24px}
.dashboard-workplace-kpi{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:260px;
  padding:24px;
  border:1px solid currentColor;
  border-radius:14px;
  background:color-mix(in srgb,currentColor 7%,var(--ui-surface-solid));
}
.dashboard-workplace-kpi>span:first-child{color:var(--ui-text-secondary);font-size:13px;font-weight:650}
.dashboard-workplace-kpi>strong{margin:10px 0 5px;color:currentColor;font-size:clamp(31px,4vw,48px);line-height:1}
.dashboard-workplace-kpi>strong>small{font-size:14px;font-weight:600}
.dashboard-workplace-kpi>small{margin-top:12px;color:var(--ui-text-secondary);font-size:11px;line-height:1.45}
.dashboard-score-state{align-self:flex-start;padding:4px 9px;border-radius:999px;color:currentColor;background:color-mix(in srgb,currentColor 13%,transparent);font-size:11px;font-weight:750}
.dashboard-score--verde{color:#248a3d}
.dashboard-score--amarillo{color:#9a6900}
.dashboard-score--naranja{color:#c45700}
.dashboard-score--rojo{color:#c52e36}
.dashboard-score--sin-datos{color:#6e6e73}
.dashboard-workplace-chart{min-width:0}
.dashboard-workplace-chart h3{margin:0;color:var(--ui-text);font-size:13px}
.dashboard-chart-summary{margin:4px 0 0;color:var(--ui-text-secondary);font-size:11px}
.dashboard-workplace-chart .chart-wrap{height:260px}
.leadership-general-data{margin-top:10px;padding:11px 12px;border:1px solid var(--ui-separator);border-radius:11px;background:var(--ui-surface-muted)}
.leadership-general-data h4{margin:0 0 7px;color:var(--ui-text);font-size:12px}
.leadership-general-data dl{display:grid;gap:5px;margin:0}
.leadership-general-data dl>div{display:flex;align-items:baseline;gap:10px;justify-content:space-between}
.leadership-general-data dt{color:var(--ui-text-secondary);font-size:11px;font-weight:600}
.leadership-general-data dd{margin:0;color:var(--ui-text);font-size:12px;font-weight:750}
.dashboard-risk-card{
  overflow:hidden;
  border-radius:16px;
  box-shadow:0 7px 24px rgba(13,46,84,.07);
}
.dashboard-risk-card>.card-header{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:17px 20px}
.dashboard-risk-card>.card-header h2{color:var(--ui-text);font-size:15px}
.dashboard-risk-card>.card-header small{color:var(--ui-text-secondary);font-size:11px}
.dashboard-risk-card>.card-body{padding:20px}
.dashboard-risk-link{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:9px 14px;
  border:1px solid color-mix(in srgb,var(--ui-accent) 28%,var(--ui-separator));
  border-radius:11px;
  color:#fff;
  background:linear-gradient(135deg,var(--ui-accent),#0052a8);
  font-size:12px;
  font-weight:750;
  text-decoration:none;
  box-shadow:0 7px 18px color-mix(in srgb,var(--ui-accent) 20%,transparent);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.dashboard-risk-link:hover{color:#fff;filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 10px 24px color-mix(in srgb,var(--ui-accent) 28%,transparent)}
.dashboard-risk-link:focus-visible{outline:3px solid color-mix(in srgb,var(--ui-accent) 36%,transparent);outline-offset:3px}
.dashboard-risk-link span:last-child{font-size:17px;line-height:1}
.dashboard-risk-grid{
  display:grid;
  grid-template-columns:minmax(180px,.75fr) minmax(0,1.25fr);
  gap:20px;
  align-items:stretch;
}
.dashboard-risk-panel{
  min-width:0;
  padding:16px;
  border:1px solid var(--ui-separator);
  border-radius:14px;
  background:var(--ui-surface-muted);
}
.dashboard-risk-panel h2,.dashboard-risk-panel h3{margin:0;color:var(--ui-text);font-size:13px}
.dashboard-risk-panel>p{margin:4px 0 10px;color:var(--ui-text-secondary);font-size:11px}
.dashboard-risk-panel .chart-wrap{height:220px}
.dashboard-risk-summary,.dashboard-risk-alerts{display:grid;gap:6px;margin:0 0 10px;padding:0;list-style:none}
.dashboard-risk-summary li,.dashboard-risk-alerts li{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:space-between;
  color:var(--ui-text-secondary);
  font-size:11px;
}
.dashboard-risk-summary li strong{color:var(--ui-text);font-weight:700}
.dashboard-risk-summary li.is-none span,.dashboard-risk-summary li.is-none strong{color:var(--ui-success)}
.dashboard-risk-alerts li{flex-wrap:wrap;padding:5px 0;border-bottom:1px solid var(--ui-separator)}
.dashboard-risk-alerts li:last-child{border-bottom:0}
.dashboard-risk-alert{
  padding:4px 8px;
  border-radius:999px;
  color:#a32a31;
  background:rgba(215,0,21,.09);
  font-weight:750;
}
.dashboard-risk-summary li.is-empty,.dashboard-risk-alerts li.is-empty{color:var(--ui-text-tertiary)}
.dashboard-risk-noscript{margin:14px 0 0;color:var(--ui-text-secondary);font-size:11px}
@media (max-width:1199.98px){
  /* En tablet la tarjeta ocupa media pantalla: apilar evita etiquetas cortadas. */
  .dashboard-risk-grid{grid-template-columns:1fr;gap:14px}
  .dashboard-risk-grid>.dashboard-workplace-kpi{min-height:0;padding:16px 18px}
  .dashboard-risk-panel .chart-wrap{height:200px}
  .dashboard-risk-summary li,.dashboard-risk-alerts li{font-size:12px}
  /* En tablet las tarjetas van a 50%: apilar KPI + gráfica evita etiquetas cortadas. */
  .dashboard-compact-indicator .dashboard-workplace-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
  .dashboard-compact-indicator .dashboard-workplace-kpi{min-height:0;padding:14px 16px}
  .dashboard-compact-indicator .dashboard-workplace-chart .chart-wrap{height:140px}
  .dashboard-leadership-card .dashboard-workplace-grid{grid-template-columns:1fr;gap:14px}
  .dashboard-leadership-card .dashboard-workplace-kpi{min-height:0;padding:16px 18px}
  .dashboard-leadership-card .dashboard-workplace-chart .chart-wrap{height:200px}
}
@media (min-width:992px){
  .dashboard-risks-column{order:1}
  .dashboard-leadership-column{order:2}
}
@media (max-width:767.98px){
  .dashboard-leadership-card>.card-header{align-items:flex-start}
  .dashboard-risk-card>.card-header{align-items:flex-start}
  .dashboard-recent .card-header{align-items:flex-start;flex-wrap:wrap}
  .interview-exit-reason{align-items:center;flex-direction:row;flex-wrap:wrap}
  .interview-exit-reason__content{flex:1}
  .interview-exit-reason__status{margin-left:61px}
  .dashboard-risk-grid{grid-template-columns:1fr}
  .dashboard-risk-panel .chart-wrap{height:240px}
}
@media (prefers-reduced-motion:reduce){
  .dashboard-risk-link{transition:none}
}
.motive-analysis-panel{display:grid;gap:18px}
.motive-analysis-panel .dashboard-risk-panel .chart-wrap{height:320px}
@media (max-width:767.98px){
  .motive-analysis-panel .dashboard-risk-panel .chart-wrap{height:280px}
}
.risk-analysis-hero{
  padding:22px clamp(20px,2.6vw,32px);
  border:1px solid var(--ui-separator);
  border-radius:16px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--ui-accent) 9%,var(--ui-surface-solid)),var(--ui-surface-solid) 62%);
  box-shadow:0 8px 24px rgba(13,46,84,.07);
}
.risk-analysis-back{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  margin-bottom:12px;
  padding:9px 14px;
  border:1px solid color-mix(in srgb,var(--ui-accent) 28%,var(--ui-separator));
  border-radius:11px;
  color:#fff;
  background:linear-gradient(135deg,var(--ui-accent),#0052a8);
  font-size:12px;
  font-weight:750;
  text-decoration:none;
  box-shadow:0 7px 18px color-mix(in srgb,var(--ui-accent) 20%,transparent);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.risk-analysis-back:hover{color:#fff;filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 10px 24px color-mix(in srgb,var(--ui-accent) 28%,transparent);text-decoration:none}
.risk-analysis-back:focus-visible{outline:3px solid color-mix(in srgb,var(--ui-accent) 36%,transparent);outline-offset:3px}
.risk-analysis-heading{display:flex;align-items:center;gap:24px;justify-content:space-between}
.risk-analysis-heading h1{margin:4px 0 6px;color:var(--ui-text);font-size:clamp(28px,3vw,38px);line-height:1.08;letter-spacing:-.035em}
.risk-analysis-heading p{max-width:680px;margin:0;color:var(--ui-text-secondary);font-size:14px}
.risk-analysis-eyebrow{display:inline-flex;align-items:center;gap:6px;color:var(--ui-accent);font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.risk-analysis-filter{display:grid;flex:0 0 min(100%,280px);gap:7px;color:var(--ui-text-secondary);font-size:13px;font-weight:700}
.risk-analysis-filter select{min-height:48px;padding:9px 40px 9px 13px;border:1px solid var(--ui-separator);border-radius:11px;color:var(--ui-text);background:var(--ui-surface-solid);font-size:14px}
.risk-analysis-filter select:focus-visible{outline:3px solid color-mix(in srgb,var(--ui-accent) 28%,transparent);outline-offset:2px;border-color:var(--ui-accent)}
.risk-analysis-overview{display:grid;grid-template-columns:minmax(220px,29%) minmax(280px,36%) minmax(280px,1fr);gap:14px;align-items:stretch}
.risk-analysis-overview>.dashboard-workplace-kpi,.risk-analysis-overview>.dashboard-risk-panel{min-height:0;box-shadow:0 6px 20px rgba(13,46,84,.06)}
.risk-analysis-overview>.dashboard-workplace-kpi{padding:24px;justify-content:center}
.risk-analysis-overview>.dashboard-workplace-kpi>strong{font-size:clamp(34px,4vw,46px)}
.risk-analysis-overview>.dashboard-workplace-kpi>span:first-child{font-size:14px}
.risk-analysis-overview>.dashboard-workplace-kpi>.dashboard-score-state{font-size:12px}
.risk-analysis-overview>.dashboard-workplace-kpi>small{font-size:12px;line-height:1.45}
.risk-analysis-grid{display:grid;grid-template-columns:1fr;gap:14px}
.risk-analysis-grid>.dashboard-risk-panel{padding:20px 22px;background:var(--ui-surface-solid);box-shadow:0 6px 20px rgba(13,46,84,.05)}
.risk-panel-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}
.risk-panel-heading h2{margin-top:4px;font-size:17px}
.risk-panel-heading>p{margin:0;color:var(--ui-text-secondary);font-size:12px;text-align:right}
.risk-p18-panel{padding:20px 22px;background:var(--ui-surface-solid)}
.risk-ranking-panel>p{font-size:12px;line-height:1.4}
.risk-p18-content{display:grid;grid-template-columns:minmax(105px,.65fr) minmax(140px,1.35fr);align-items:center;gap:12px;margin-top:8px}
.risk-p18-panel .chart-wrap{height:174px}
.risk-p18-summary{grid-template-columns:1fr;gap:8px;margin:0}
.risk-p18-summary li{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto;
  gap:1px 8px;
  padding:11px 12px 10px 16px;
  overflow:hidden;
  border:1px solid var(--ui-separator);
  border-radius:11px;
  background:var(--ui-surface-muted);
}
.risk-p18-summary li::before{position:absolute;inset:0 auto 0 0;width:4px;background:var(--ui-success);content:""}
.risk-p18-summary li.is-negative::before{background:var(--ui-danger,#d9363e)}
.risk-p18-summary li>span{color:var(--ui-text-secondary);font-size:13px;font-weight:700}
.risk-p18-summary li>strong{grid-row:1/3;grid-column:2;color:var(--ui-text);font-size:28px;line-height:1}
.risk-p18-summary li>small{color:var(--ui-text-secondary);font-size:12px}
.risk-progress-list{gap:9px;margin:10px 0 0}
.risk-progress-list li{display:grid;gap:5px}
.risk-progress-meta{display:flex;align-items:center;gap:8px;justify-content:space-between;min-width:0}
.risk-progress-meta>span:first-child{min-width:0;overflow-wrap:anywhere;color:var(--ui-text);font-size:13px}
.risk-progress-meta>strong,.risk-progress-value{flex:0 0 auto;color:var(--ui-text);font-size:13px;font-weight:750}
.risk-progress-track{display:block;width:100%;height:9px;overflow:hidden;border:0;border-radius:999px;background:color-mix(in srgb,var(--ui-accent) 10%,var(--ui-surface-muted));accent-color:var(--ui-accent)}
.risk-progress-track::-webkit-progress-bar{border-radius:999px;background:color-mix(in srgb,var(--ui-accent) 10%,var(--ui-surface-muted))}
.risk-progress-track::-webkit-progress-value{border-radius:999px;background:var(--ui-accent)}
.risk-progress-track::-moz-progress-bar{border-radius:999px;background:var(--ui-accent)}
.risk-progress-list li.is-none .risk-progress-track{accent-color:var(--ui-success)}
.risk-progress-list li.is-none .risk-progress-track::-webkit-progress-value{background:var(--ui-success)}
.risk-progress-list li.is-none .risk-progress-track::-moz-progress-bar{background:var(--ui-success)}
.dashboard-risk-alerts.risk-progress-list li{padding:0 0 7px}
.dashboard-risk-alerts.risk-progress-list li:last-child{padding-bottom:0}
.dashboard-risk-alerts.risk-progress-list .risk-progress-track{accent-color:color-mix(in srgb,var(--ui-accent) 68%,var(--ui-text-secondary))}
.dashboard-risk-alerts.risk-progress-list .risk-progress-track::-webkit-progress-value{background:color-mix(in srgb,var(--ui-accent) 68%,var(--ui-text-secondary))}
.dashboard-risk-alerts.risk-progress-list .risk-progress-track::-moz-progress-bar{background:color-mix(in srgb,var(--ui-accent) 68%,var(--ui-text-secondary))}
.dashboard-risk-alerts.risk-progress-list li.requires-review .risk-progress-track{accent-color:#d9363e}
.dashboard-risk-alerts.risk-progress-list li.requires-review .risk-progress-track::-webkit-progress-value{background:#d9363e}
.dashboard-risk-alerts.risk-progress-list li.requires-review .risk-progress-track::-moz-progress-bar{background:#d9363e}
.risk-progress-list .dashboard-risk-alert{flex:0 0 auto;padding:4px 9px;font-size:11px}
.risk-analysis-filter small{color:var(--ui-text-tertiary);font-size:11px;font-weight:500}
.leadership-analysis-grid{display:grid;grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr);gap:14px;align-items:stretch}
.leadership-analysis-grid>.dashboard-workplace-kpi{min-height:330px;padding:24px;box-shadow:0 6px 20px rgba(13,46,84,.06)}
.leadership-analysis-grid>.dashboard-risk-panel{padding:20px 22px;background:var(--ui-surface-solid);box-shadow:0 6px 20px rgba(13,46,84,.05)}
.leadership-chart-panel .chart-wrap{height:285px}
.climate-analysis-title{display:flex;align-items:flex-start;gap:14px;min-width:0}
.climate-analysis-title h1{margin:4px 0 6px}
.climate-analysis-title__icon{
  display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;margin-top:2px;
  border-radius:14px;color:var(--ui-accent);background:var(--ui-surface-solid);
  box-shadow:0 8px 22px color-mix(in srgb,var(--ui-accent) 18%,transparent);
}
.climate-analysis-grid{display:grid;grid-template-columns:minmax(240px,.78fr) minmax(0,1.22fr);gap:14px;align-items:stretch}
.climate-index-card{
  display:flex;flex-direction:column;gap:10px;min-height:330px;padding:24px;
  border:1px solid var(--ui-separator);border-radius:18px;background:var(--ui-surface-solid);
  box-shadow:0 6px 20px rgba(13,46,84,.06);
}
.climate-index-card__header{display:flex;align-items:center;gap:10px;color:var(--ui-text);font-size:15px;font-weight:750}
.climate-index-card__icon{
  display:grid;place-items:center;width:34px;height:34px;border-radius:10px;
  color:#c45700;background:color-mix(in srgb,#e87500 16%,transparent);
}
.climate-index-card>strong{margin:4px 0 0;color:currentColor;font-size:clamp(40px,4.4vw,56px);line-height:1}
.climate-index-card>strong>small{font-size:16px;font-weight:600}
.climate-index-card>.dashboard-score-state{
  align-self:flex-start;padding:6px 12px;border-radius:999px;color:#fff;
  background:#8e8e93;font-size:12px;font-weight:750;
}
.climate-index-card.dashboard-score--verde>.dashboard-score-state{background:#248a3d}
.climate-index-card.dashboard-score--amarillo>.dashboard-score-state{background:#c18400}
.climate-index-card.dashboard-score--naranja>.dashboard-score-state{background:#e87500}
.climate-index-card.dashboard-score--rojo>.dashboard-score-state{background:#d9363e}
.climate-index-card.dashboard-score--sin-datos>.dashboard-score-state{background:#8e8e93}
.climate-index-card__meter{
  display:block;width:100%;height:10px;margin-top:8px;border:0;border-radius:999px;
  overflow:hidden;background:color-mix(in srgb,currentColor 14%,transparent);accent-color:currentColor;
}
.climate-index-card__meter::-webkit-progress-bar{background:color-mix(in srgb,currentColor 14%,transparent);border-radius:999px}
.climate-index-card__meter::-webkit-progress-value{background:currentColor;border-radius:999px}
.climate-index-card__meter::-moz-progress-bar{background:currentColor;border-radius:999px}
.climate-causes-panel{padding:20px 22px;background:var(--ui-surface-solid);box-shadow:0 6px 20px rgba(13,46,84,.05)}
.climate-causes-panel .chart-wrap{height:285px}
.climate-causes-panel .dashboard-chart-summary{margin:8px 0 14px;color:var(--ui-text-secondary);font-size:13px;line-height:1.45}
.leadership-data-panel{grid-column:1/-1}
.leadership-data-panel>h2{margin-bottom:12px;font-size:17px}
.leadership-data-panel dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
.leadership-data-panel dl>div{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:52px;padding:12px 14px;border:1px solid var(--ui-separator);border-radius:11px;background:var(--ui-surface-muted)}
.leadership-data-panel dt{color:var(--ui-text-secondary);font-size:13px;font-weight:650}
.leadership-data-panel dd{margin:0;color:var(--ui-text);font-size:16px;font-weight:800}
@media (max-width:1199.98px){
  .risk-analysis-overview{grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr)}
  .risk-analysis-overview>.risk-ranking-panel{grid-column:1/-1}
}
@media (max-width:767.98px){
  .risk-analysis-heading{align-items:stretch;flex-direction:column}
  .risk-analysis-filter{flex-basis:auto;width:100%}
  .risk-analysis-overview,.risk-analysis-grid{grid-template-columns:1fr}
  .risk-analysis-overview{gap:12px}
  .risk-analysis-overview>.dashboard-workplace-kpi{min-height:170px}
  .risk-p18-content{grid-template-columns:1fr}
  .risk-p18-summary{order:2}
  .risk-p18-panel .chart-wrap{height:170px}
  .risk-progress-meta{align-items:flex-start;flex-wrap:wrap}
  .risk-progress-meta>span:first-child{flex:1 1 55%}
  .leadership-analysis-grid,.climate-analysis-grid{grid-template-columns:1fr}
  .leadership-analysis-grid>.dashboard-workplace-kpi,
  .climate-index-card{min-height:180px}
  .leadership-data-panel{grid-column:auto}
  .leadership-data-panel dl{grid-template-columns:1fr}
}
@media (max-width:420px){
  .risk-analysis-page{gap:12px}
  .risk-analysis-hero,.risk-analysis-grid>.dashboard-risk-panel,.risk-p18-panel{padding:14px}
  .risk-p18-summary{grid-template-columns:1fr}
}
.dashboard-recent .table{font-size:14px}
.dashboard-recent .table th,.dashboard-recent .table td{padding-inline:24px}
.dashboard-recent__footer{padding:16px 24px;border-top:1px solid var(--ui-separator)}
.dashboard-row-action{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--ui-text-secondary)}
.dashboard-row-action:hover{background:var(--ui-surface-muted)}
.dashboard-weekly{
  display:grid;
  gap:20px;
  padding:22px 0 2px;
}
.dashboard-weekly__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.dashboard-weekly__heading{display:flex;align-items:center;gap:12px}
.dashboard-weekly__heading-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border:1px solid rgba(30,112,230,.12);
  border-radius:12px;
  color:#0969e8;
  background:#f4f8ff;
}
.dashboard-weekly__heading h2{
  margin:0;
  color:var(--ui-text);
  font-size:17px;
  font-weight:700;
  letter-spacing:-.015em;
}
.dashboard-weekly__heading small{
  display:block;
  margin-top:3px;
  color:var(--ui-text-secondary);
  font-size:11px;
}
.dashboard-weekly__all{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:9px 16px;
  border-radius:9px;
  color:#fff;
  background:linear-gradient(180deg,#0875e6,#0560d2);
  box-shadow:0 4px 10px rgba(7,101,215,.22);
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
.dashboard-weekly__all:hover{color:#fff;filter:brightness(.96)}
.dashboard-weekly__summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(150px,1fr));
  gap:clamp(16px,5vw,56px);
  width:min(100%,760px);
  margin-left:30px;
}
.dashboard-weekly-stat{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:76px;
  padding:14px 16px;
  border:1px solid var(--ui-separator);
  border-radius:10px;
  background:var(--ui-surface-solid);
  box-shadow:0 4px 14px rgba(13,46,84,.035);
}
.dashboard-weekly-stat>span{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:1px solid currentColor;
  border-radius:50%;
}
.dashboard-weekly-stat div{display:grid}
.dashboard-weekly-stat strong{color:var(--ui-text);font-size:21px;line-height:1}
.dashboard-weekly-stat small{margin-top:5px;color:var(--ui-text-secondary);font-size:11px}
.dashboard-weekly-stat--total>span{color:#1473e6;background:#f0f6ff}
.dashboard-weekly-stat--completed>span{color:#15954a;background:#effbf4}
.dashboard-weekly-stat--today>span{color:#eda500;background:#fff9e9}
.dashboard-weekly__table{
  overflow:hidden;
  border:1px solid var(--ui-separator);
  border-radius:11px;
  background:var(--ui-surface-solid);
}
.dashboard-weekly__table .table{margin:0;font-size:12px}
.dashboard-weekly__table .table th{
  padding:13px 18px;
  color:#223a57;
  background:#f1f6fd;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.dashboard-weekly__table .table th>span,
.dashboard-weekly__date,
.dashboard-weekly__table .dashboard-status{display:inline-flex;align-items:center;gap:7px}
.dashboard-weekly__table .table th .ui-icon{color:#173d6a}
.dashboard-weekly__table .table td{padding:16px 18px;font-size:12px}
.dashboard-weekly__name{color:#172941;font-weight:700}
.dashboard-weekly__date .ui-icon{color:#0873e6}
.dashboard-weekly__table .dashboard-status--firmado{color:#14753b;background:#e9f8ef}
.dashboard-weekly__table .dashboard-status--pendiente{color:#965300;background:#fff5df}
.interview-results{margin-top:18px}
.interview-results .table{min-width:1100px}
.interview-results__folio{color:#194e86;font-weight:700;white-space:nowrap}
.interview-results th:last-child,
.interview-results td:last-child{
  position:sticky;
  right:0;
  z-index:2;
  width:54px;
  min-width:54px;
  padding-inline:10px!important;
  background:var(--ui-surface-solid);
  box-shadow:-8px 0 14px -14px rgba(5,40,83,.55);
}
.interview-results th:last-child{z-index:3;background:#f1f6fd}
@media (max-width:1199.98px){
  .interview-results .table{min-width:720px}
  .interview-results th:nth-child(3),
  .interview-results td:nth-child(3){display:none}
}
@media (max-width:575.98px){
  .interview-results .table{min-width:560px}
  .interview-results th:nth-child(4),
  .interview-results td:nth-child(4){display:none}
}
html[data-theme="dark"] .dashboard-weekly__heading-icon{color:#8fc3ff;background:rgba(65,139,229,.16)}
html[data-theme="dark"] .dashboard-weekly__table .table th{color:var(--ui-text-secondary);background:rgba(73,135,205,.1)}
html[data-theme="dark"] .dashboard-weekly__name{color:var(--ui-text)}
html[data-theme="dark"] .interview-results__folio{color:#8fc3ff}
html[data-theme="dark"] .interview-results th:last-child{background:#102b4b}
html[data-theme="dark"] .interview-results td:last-child{background:var(--ui-surface-solid)}
html[data-theme="dark"] .dashboard-weekly__table .dashboard-status--firmado{color:#83dba0;background:rgba(52,199,89,.14)}
html[data-theme="dark"] .dashboard-weekly__table .dashboard-status--pendiente{color:#f1ca78;background:rgba(233,188,98,.15)}
@media (max-width:767.98px){
  .dashboard-weekly{gap:16px}
  .dashboard-weekly__header{align-items:flex-start;flex-direction:column}
  .dashboard-weekly__all{justify-content:center;width:100%}
  .dashboard-weekly__summary{grid-template-columns:1fr;gap:10px;margin-left:0}
  .dashboard-weekly__table .table{min-width:760px}
}

/* Questionnaire and signatures */
.questionnaire-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:22px;
  padding:8px 2px 6px;
}
.questionnaire-hero__heading{display:flex;align-items:center;gap:18px;min-width:0}
.questionnaire-hero__icon{
  display:grid;
  flex:0 0 64px;
  place-items:center;
  width:64px;
  height:64px;
  border:1px solid rgba(8,115,230,.08);
  border-radius:18px;
  color:#0873e6;
  background:#fff;
  box-shadow:0 8px 22px rgba(32,65,105,.08);
}
.questionnaire-hero__heading p{margin:0 0 6px;color:#2767bd;font-size:11px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
.questionnaire-hero__heading h1{margin:0;color:#101828;font-size:clamp(28px,3.6vw,40px);font-weight:750;letter-spacing:-.035em;line-height:1.05}
.questionnaire-hero__heading>div>span{display:block;margin-top:8px;color:#667085;font-size:14px}
.questionnaire-hero__logo{
  display:block;
  flex:0 0 auto;
  width:min(210px,34vw);
  height:auto;
  object-fit:contain;
  }
.questionnaire-hero__back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:10px 18px;
  border:1px solid var(--ui-separator-strong);
  border-radius:10px;
  color:var(--ui-text);
  background:var(--ui-surface-solid);
  box-shadow:0 5px 14px rgba(20,50,90,.06);
  font-size:12px;
  font-weight:650;
  text-decoration:none;
}
.questionnaire-hero__back:hover{color:var(--ui-text);transform:translateY(-1px)}
.questionnaire-hero__back .ui-icon{transform:rotate(90deg)}
.questionnaire-intro{
  overflow:hidden;
  border:1px solid rgba(60,60,67,.08);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 32px rgba(32,65,105,.07);
}
.questionnaire-intro__header{display:flex;align-items:center;gap:16px;padding:22px 26px;border-bottom:1px solid rgba(60,60,67,.08)}
.questionnaire-intro__header-icon{
  display:grid;
  flex:0 0 48px;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:50%;
  color:#0873e6;
  background:#edf4ff;
}
.questionnaire-intro__header h2{margin:0;color:#101828;font-size:17px;font-weight:700}
.questionnaire-intro__body{display:grid;gap:28px;padding:24px 26px}
.questionnaire-intro__row{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:18px}
.questionnaire-intro__row-icon{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:50%;
}
.questionnaire-intro__row-icon--people{color:#0873e6;background:#edf4ff}
.questionnaire-intro__row-icon--lock{color:#159438;background:#edf9f0}
.questionnaire-intro__row p{max-width:760px;margin:0;color:#667085;font-size:13px;line-height:1.65}
.questionnaire-intro__row strong{color:#159438;font-weight:750}
.questionnaire-intro__note{display:flex;align-items:center;gap:14px;padding:17px 18px;border:1px solid rgba(0,113,227,.1);border-radius:11px;color:var(--ui-text-secondary);background:linear-gradient(135deg,rgba(0,113,227,.045),rgba(0,113,227,.02));font-size:11px}
.questionnaire-intro__note .ui-icon{flex:0 0 auto;color:#0873e6}
.questionnaire-general{
  overflow:visible;
  border:1px solid rgba(60,60,67,.08);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 32px rgba(32,65,105,.07);
}
.questionnaire-general__header{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 28px;
  padding:26px 0 20px;
  border-bottom:1px solid rgba(60,60,67,.08);
}
.questionnaire-general__header-icon{
  display:grid;
  flex:0 0 46px;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:50%;
  color:#0873e6;
  background:#edf4ff;
}
.questionnaire-general__header h2{
  margin:0;
  color:#101828;
  font-size:22px;
  font-weight:700;
  letter-spacing:-.03em;
}
.questionnaire-general__header p{
  margin:6px 0 0;
  color:#667085;
  font-size:13px;
  line-height:1.35;
}
.questionnaire-general__body{padding:28px}
.questionnaire-general__grid{--bs-gutter-x:22px;--bs-gutter-y:20px}
.questionnaire-general__field{scroll-margin-top:24px}
.questionnaire-general__field .form-label{
  margin-bottom:8px;
  color:#667085;
  font-size:12px;
  font-weight:600;
  letter-spacing:-.01em;
}
.questionnaire-general__input{
  min-height:48px;
  padding:12px 14px;
  border:1px solid rgba(60,60,67,.14);
  border-radius:12px;
  color:#101828;
  background:#fff;
  box-shadow:none;
  font-size:15px;
  font-weight:500;
  letter-spacing:-.01em;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.questionnaire-general__input:hover{
  border-color:rgba(60,60,67,.22);
  background:#fff;
}
.questionnaire-general__input:focus{
  border-color:rgba(0,113,227,.45);
  background:#fff;
  box-shadow:0 0 0 4px rgba(0,113,227,.12);
}
.questionnaire-general__input.is-invalid{
  border-color:rgba(215,0,21,.45);
  background:rgba(215,0,21,.04);
}
html[data-theme="dark"] .questionnaire-general{
  border-color:rgba(151,188,231,.12);
  background:#102b4b;
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}
html[data-theme="dark"] .questionnaire-general__header{border-bottom-color:rgba(151,188,231,.12)}
html[data-theme="dark"] .questionnaire-general__header-icon{color:#8fc3ff;background:rgba(65,139,229,.16)}
html[data-theme="dark"] .questionnaire-general__header h2{color:#f5f7fb}
html[data-theme="dark"] .questionnaire-general__header p{color:#aebdd0}
html[data-theme="dark"] .questionnaire-general__field .form-label{color:#aebdd0}
html[data-theme="dark"] .questionnaire-general__input{
  border-color:rgba(190,211,235,.2);
  color:#f5f7fb;
  background:#0b213c;
  box-shadow:none;
}
html[data-theme="dark"] .questionnaire-general__input:hover{background:#153455}
html[data-theme="dark"] .questionnaire-general__input:focus{
  border-color:#85bdff;
  background:#0d2542;
  box-shadow:0 0 0 4px rgba(105,174,252,.22);
}
html[data-theme="dark"] .questionnaire-hero__heading p{color:#8fc3ff}
html[data-theme="dark"] .questionnaire-hero__heading h1{color:#f5f7fb}
html[data-theme="dark"] .questionnaire-hero__heading>div>span{color:#aebdd0}
html[data-theme="dark"] .questionnaire-hero__icon{
  color:#8fc3ff;
  background:rgba(16,43,75,.92);
  border-color:rgba(151,188,231,.22);
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}
html[data-theme="dark"] .questionnaire-hero__logo{
  filter:brightness(0) invert(1);
  opacity:.96;
}
html[data-theme="dark"] .questionnaire-intro{
  border-color:rgba(151,188,231,.12);
  background:#102b4b;
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}
html[data-theme="dark"] .questionnaire-intro__header{border-bottom-color:rgba(151,188,231,.12)}
html[data-theme="dark"] .questionnaire-intro__header h2{color:#f5f7fb}
html[data-theme="dark"] .questionnaire-intro__row p{color:#aebdd0}
html[data-theme="dark"] .questionnaire-intro__header-icon,
html[data-theme="dark"] .questionnaire-intro__row-icon--people{color:#8fc3ff;background:rgba(65,139,229,.16)}
html[data-theme="dark"] .questionnaire-intro__row-icon--lock{color:#83dba0;background:rgba(52,199,89,.14)}
html[data-theme="dark"] .questionnaire-intro__note{
  border-color:rgba(105,174,252,.14);
  color:#aebdd0;
  background:rgba(65,139,229,.08);
}
html[data-theme="dark"] body.interview-kiosk.auth-shell{
  color:#f5f7fb;
  background:
    radial-gradient(1100px 480px at -10% -14%,rgba(65,139,229,.22),transparent 58%),
    radial-gradient(900px 420px at 110% 0%,rgba(40,90,160,.18),transparent 52%),
    linear-gradient(145deg,#07182f 0%,#0b213c 48%,#102b4b 100%);
}
html[data-theme="dark"] body.interview-kiosk.auth-shell::before{opacity:.28}
@media (max-width:575.98px){
  .questionnaire-hero{align-items:flex-start;flex-direction:column;gap:16px}
  .questionnaire-hero__heading{align-items:flex-start;gap:14px}
  .questionnaire-hero__icon{flex-basis:52px;width:52px;height:52px;border-radius:14px}
  .questionnaire-hero__heading h1{font-size:28px}
  .questionnaire-hero__logo{width:min(168px,56vw);align-self:flex-end}
  .questionnaire-hero__back{width:100%}
  .questionnaire-intro__header{align-items:flex-start;padding:18px}
  .questionnaire-intro__body{gap:22px;padding:20px 16px}
  .questionnaire-intro__row{grid-template-columns:44px minmax(0,1fr);align-items:flex-start;gap:13px;padding:0}
  .questionnaire-intro__row-icon{width:44px;height:44px}
  .questionnaire-intro__note{align-items:flex-start}
  .questionnaire-general__header{align-items:flex-start;margin-inline:20px;padding-top:20px}
  .questionnaire-general__header-icon{flex-basis:40px;width:40px;height:40px}
  .questionnaire-general__header h2{font-size:20px}
  .questionnaire-general__body{padding:22px 20px 25px}
  .questionnaire-general__input{min-height:46px;border-radius:11px}
}
.question-section{scroll-margin-top:96px}
.questionnaire-section{
  overflow:hidden;
  border:1px solid rgba(60,60,67,.08);
  border-radius:22px;
  background:linear-gradient(180deg,#fff 0%,#fbfbfd 100%);
  box-shadow:0 18px 40px rgba(15,35,70,.08),inset 0 1px 0 rgba(255,255,255,.9);
}
.questionnaire-section__header{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 28px;
  padding:24px 0 18px;
  border-bottom:1px solid rgba(60,60,67,.08);
}
.questionnaire-section__header-icon{
  display:grid;
  flex:0 0 46px;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:14px;
  color:#0873e6;
  background:linear-gradient(145deg,#f2f7ff,#e5efff);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}
.questionnaire-section__header h2{
  margin:0;
  color:#1d1d1f;
  font-size:21px;
  font-weight:700;
  letter-spacing:-.03em;
}
.questionnaire-section__header p{
  margin:6px 0 0;
  color:#6e6e73;
  font-size:13px;
  line-height:1.35;
}
.questionnaire-section__body{padding:8px 28px 18px}
.question-card{
  margin:0;
  padding:22px 0;
  border:0;
  border-bottom:1px solid rgba(60,60,67,.08);
}
.question-card.is-invalid,
.question-card--missing,
.question-complement.is-invalid{
  border-radius:14px;
  outline:2px solid rgba(217,54,62,.45);
  outline-offset:6px;
  background:rgba(217,54,62,.04);
}
.question-card:last-of-type{border-bottom:0}
.question-card__legend{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:0 0 14px;
  padding:0;
  float:none;
  width:100%;
  scroll-margin-top:88px;
}
.question-missing-alert{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  padding:10px 12px;
  border:1px solid rgba(217,54,62,.28);
  border-radius:12px;
  color:#7a1f24;
  background:#fff2f2;
  font-size:13px;
  line-height:1.35;
}
.question-missing-alert>span{
  display:grid;
  place-items:center;
  flex:0 0 22px;
  width:22px;
  height:22px;
  border-radius:6px;
  color:#fff;
  background:#e87500;
  font-size:13px;
  font-weight:800;
}
.question-missing-alert>strong{font-weight:700}
.question-card__number{
  display:grid;
  flex:0 0 28px;
  place-items:center;
  width:28px;
  height:28px;
  margin-top:1px;
  border-radius:50%;
  color:#0873e6;
  background:#eaf2ff;
  font-size:12px;
  font-weight:700;
}
.question-card__number--compound{
  flex-basis:36px;
  width:36px;
  font-size:11px;
  letter-spacing:-.02em;
}
.question-card__text{
  flex:1 1 auto;
  color:#1d1d1f;
  font-size:15px;
  font-weight:650;
  letter-spacing:-.015em;
  line-height:1.4;
}
.choice-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
}
.choice-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  margin:0;
  padding:12px 14px;
  border:1px solid rgba(60,60,67,.12);
  border-radius:12px;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
  cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.choice-item.form-check{
  padding-left:14px;
  min-height:48px;
}
.choice-item .form-check-input{
  position:relative;
  z-index:1;
  float:none;
  flex:0 0 auto;
  margin:0;
  pointer-events:none;
}
.choice-item .form-check-label{
  position:static;
  z-index:0;
  flex:1 1 auto;
  margin:0;
  padding:0;
  color:#6e6e73;
  font-size:13px;
  font-weight:500;
  line-height:1.35;
  cursor:pointer;
}
.choice-item .form-check-label::after{
  position:absolute;
  inset:0;
  border-radius:inherit;
  content:"";
}
.choice-item:hover{
  border-color:rgba(0,113,227,.22);
  background:#f7faff;
  transform:translateY(-1px);
}
.choice-item:has(.form-check-input:checked){
  border-color:rgba(0,113,227,.35);
  background:rgba(0,113,227,.07);
  box-shadow:0 0 0 3px rgba(0,113,227,.08);
}
.choice-item:has(.form-check-input:checked) .form-check-label{color:#1d1d1f;font-weight:600}
.question-complement{
  padding:16px;
  border:1px solid rgba(60,60,67,.08);
  border-radius:14px;
  background:#f5f5f7;
  scroll-margin-top:24px;
}
html[data-theme="dark"] .questionnaire-section{
  border-color:rgba(151,188,231,.12);
  background:linear-gradient(180deg,#102b4b 0%,#0d2542 100%);
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}
html[data-theme="dark"] .questionnaire-section__header{border-bottom-color:rgba(151,188,231,.12)}
html[data-theme="dark"] .questionnaire-section__header-icon{color:#8fc3ff;background:rgba(65,139,229,.16)}
html[data-theme="dark"] .questionnaire-section__header h2,
html[data-theme="dark"] .question-card__text{color:#f5f7fb}
html[data-theme="dark"] .questionnaire-section__header p{color:#aebdd0}
html[data-theme="dark"] .question-card{border-bottom-color:rgba(151,188,231,.12)}
html[data-theme="dark"] .question-card__number{color:#8fc3ff;background:rgba(65,139,229,.18)}
html[data-theme="dark"] .choice-item{
  border-color:rgba(190,211,235,.2);
  background:#0b213c;
  box-shadow:none;
}
html[data-theme="dark"] .choice-item .form-check-label{color:#c4cfdd}
html[data-theme="dark"] .choice-item:hover{background:#153455}
html[data-theme="dark"] .choice-item:has(.form-check-input:checked){
  border-color:#69aefc;
  background:rgba(64,139,229,.24);
}
html[data-theme="dark"] .choice-item:has(.form-check-input:checked) .form-check-label{color:#fff}
html[data-theme="dark"] .question-complement{
  border-color:rgba(151,188,231,.14);
  background:rgba(118,147,183,.12);
}
@media (max-width:575.98px){
  .questionnaire-section__header{align-items:flex-start;margin-inline:18px;padding-top:18px}
  .questionnaire-section__header-icon{flex-basis:40px;width:40px;height:40px;border-radius:12px}
  .questionnaire-section__body{padding:4px 18px 14px}
  .choice-grid{grid-template-columns:1fr}
}
.question-actions{
  position:static;
  bottom:auto;
  z-index:auto;
  margin-top:24px;
  padding:14px;
  border:1px solid rgba(255,255,255,.7);
  border-radius:var(--ui-radius);
  background:rgba(255,255,255,.78);
  box-shadow:var(--ui-shadow);
  backdrop-filter:var(--ui-blur);
  -webkit-backdrop-filter:var(--ui-blur);
}
.signature-grid{gap:18px}
.signature-panel{padding:20px;border:0;border-radius:var(--ui-radius);background:var(--ui-surface-muted)}
.signature-panel h3{color:var(--ui-text)}
.signature-canvas{border:1px solid var(--ui-separator);border-radius:var(--ui-radius-sm);background:#fff}

/* Auth and feedback */
.login-card{border-radius:var(--ui-radius-lg);background:rgba(255,255,255,.94);box-shadow:0 28px 80px rgba(0,0,0,.22)}
.login-input .form-control{border-radius:var(--ui-radius-sm);background:var(--ui-surface-muted)}
.login-submit{border-radius:var(--ui-radius-sm);background:var(--ui-accent);box-shadow:0 8px 20px rgba(0,113,227,.2)}
.alert{border:0;border-radius:var(--ui-radius-sm);box-shadow:var(--ui-shadow-sm)}
.toast-container{z-index:2100}
.flash-toast-container{
  position:fixed;
  top:calc(var(--topbar-h) + 12px);
  right:16px;
  z-index:10000;
  display:grid;
  gap:10px;
  width:min(92vw,410px);
  padding:0;
  pointer-events:none;
}
.flash-toast-container > *{pointer-events:auto}
.flash-toast-wrap{
  position:relative;
  display:block;
}
.flash-toast{
  --flash-accent:#0071e3;
  --flash-soft:rgba(0,113,227,.1);
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 32px;
  align-items:center;
  gap:11px;
  min-height:76px;
  overflow:hidden;
  padding:13px 12px 15px 14px;
  border:1px solid color-mix(in srgb,var(--flash-accent) 20%,var(--ui-separator));
  border-radius:16px;
  color:var(--ui-text);
  background:color-mix(in srgb,var(--ui-surface-solid) 94%,var(--flash-soft));
  box-shadow:0 18px 50px rgba(9,30,66,.18),0 2px 8px rgba(9,30,66,.08);
  backdrop-filter:blur(20px) saturate(140%);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  animation:flash-toast-enter .28s cubic-bezier(.2,.8,.2,1) both;
}
.flash-toast--success{--flash-accent:#248a3d;--flash-soft:rgba(36,138,61,.1)}
.flash-toast--info{--flash-accent:#0b6bcb;--flash-soft:rgba(11,107,203,.1)}
.flash-toast--warning{--flash-accent:#c18400;--flash-soft:rgba(193,132,0,.11)}
.flash-toast--danger{--flash-accent:#d9363e;--flash-soft:rgba(217,54,62,.1)}
.flash-toast--action{
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}
.flash-toast--action:hover{
  border-color:color-mix(in srgb,var(--flash-accent) 35%,var(--ui-border));
  box-shadow:0 10px 28px rgba(15,35,60,.12);
}
.flash-toast--entrevista{
  grid-template-columns:42px minmax(0,1fr) 36px;
  align-items:start;
  gap:12px;
  min-height:92px;
  padding:14px 40px 16px 14px;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  background:#fff;
  border:1px solid rgba(11,107,203,.14);
  box-shadow:0 14px 36px rgba(15,35,60,.12);
}
.flash-toast--entrevista:hover{
  border-color:rgba(11,107,203,.28);
  box-shadow:0 16px 40px rgba(15,35,60,.16);
  transform:translateY(-1px);
  color:inherit;
  text-decoration:none;
}
.flash-toast--entrevista:focus-visible{
  outline:3px solid rgba(11,107,203,.28);
  outline-offset:2px;
}
.flash-toast__close--overlay{
  position:absolute;
  top:10px;
  right:10px;
  z-index:5;
  width:28px;
  height:28px;
  border:0;
  border-radius:8px;
  padding:0;
  color:#98a2b3;
  font-size:22px;
  line-height:1;
  background:transparent;
  cursor:pointer;
}
.flash-toast__close--overlay:hover{
  color:#667085;
  background:rgba(60,60,67,.08);
}
.flash-toast--entrevista .flash-toast__icon{
  margin-top:2px;
  color:#0b6bcb;
  background:#e8f2ff;
}
.flash-toast--entrevista .flash-toast__content{
  gap:4px;
  padding-right:2px;
}
.flash-toast--entrevista .flash-toast__content strong{
  color:#101828;
  font-size:14px;
  font-weight:750;
}
.flash-toast--entrevista .flash-toast__body{
  color:#667085;
  font-size:12.5px;
  line-height:1.45;
}
.flash-toast--entrevista .flash-toast__highlight{
  color:#0b6bcb;
  font-weight:700;
}
.flash-toast--entrevista .flash-toast__go{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  margin-top:8px;
  border-radius:50%;
  color:#0b6bcb;
  background:#e8f2ff;
  font-size:18px;
  font-weight:700;
  line-height:1;
}
.flash-toast--entrevista .flash-toast__progress{
  animation-duration:30s;
}
html[data-theme="dark"] .flash-toast--entrevista{
  background:#102b4b;
  border-color:rgba(151,188,231,.16);
}
html[data-theme="dark"] .flash-toast--entrevista .flash-toast__content strong{color:#f5f7fb}
html[data-theme="dark"] .flash-toast--entrevista .flash-toast__body{color:#aebdd0}
html[data-theme="dark"] .flash-toast--entrevista .flash-toast__highlight{color:#8fc3ff}
html[data-theme="dark"] .flash-toast--entrevista .flash-toast__icon,
html[data-theme="dark"] .flash-toast--entrevista .flash-toast__go{
  color:#8fc3ff;
  background:rgba(65,139,229,.18);
}
html[data-theme="dark"] .flash-toast__close--overlay{color:#8fa0b5}
body.interview-kiosk.auth-shell{
  min-height:100vh;
  color:#101828;
  background:
    radial-gradient(1200px 520px at -8% -12%,rgba(120,178,255,.28),transparent 58%),
    radial-gradient(900px 420px at 108% 8%,rgba(180,214,255,.22),transparent 52%),
    linear-gradient(145deg,#eaf3ff 0%,#f5f9ff 42%,#ffffff 100%);
}
body.interview-kiosk.auth-shell::before{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  content:"";
  background:
    linear-gradient(118deg,transparent 0 46%,rgba(255,255,255,.55) 52%,transparent 58%),
    linear-gradient(128deg,transparent 0 58%,rgba(147,190,255,.14) 64%,transparent 72%);
  opacity:.9;
}
.interview-kiosk .interview-kiosk__content{
  position:relative;
  z-index:1;
  max-width:1080px;
  margin:0 auto;
  padding:1.5rem 1.15rem 2.75rem;
}
.interview-thanks{
  min-height:70vh;
  display:grid;
  place-items:center;
  padding:1.5rem;
}
.interview-thanks__dialog{
  width:min(440px,92vw);
  border:0;
  border-radius:1rem;
  padding:0;
  box-shadow:0 18px 48px rgba(15,35,60,.18);
  background:#fff;
}
.interview-thanks__dialog::backdrop{
  background:rgba(0,20,50,.35);
  backdrop-filter:blur(6px);
}
.interview-thanks__dialog form{
  display:grid;
  gap:12px;
  justify-items:center;
  padding:2rem 1.75rem 1.75rem;
  text-align:center;
}
.interview-thanks__icon{
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  border-radius:50%;
  color:#248a3d;
  background:rgba(36,138,61,.12);
}
.interview-thanks__dialog h1{
  margin:0;
  font-size:1.35rem;
  color:var(--ui-text);
}
.interview-thanks__dialog p{
  margin:0;
  color:var(--ui-text-secondary);
  line-height:1.45;
}
.interview-thanks__dialog .btn{
  margin-top:.5rem;
  min-width:8rem;
}
.flash-toast__icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:13px;
  color:var(--flash-accent);
  background:var(--flash-soft);
}
.flash-toast__content{display:grid;gap:3px;min-width:0;font-size:13px;line-height:1.35}
.flash-toast__content strong{color:var(--ui-text);font-size:13px;font-weight:700}
.flash-toast__content>span{color:var(--ui-text-secondary);overflow-wrap:anywhere}
.flash-toast__close{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:0;
  border-radius:50%;
  color:var(--ui-text-secondary);
  background:transparent;
  font-size:24px;
  line-height:1;
}
.flash-toast__close:hover{color:var(--ui-text);background:var(--ui-surface-muted)}
.flash-toast__close:focus-visible{outline:2px solid var(--flash-accent);outline-offset:2px}
.flash-toast__progress{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  height:3px;
  background:var(--flash-accent);
  transform-origin:left;
  animation:flash-toast-progress 7s linear forwards;
}
.flash-toast--closing{pointer-events:none;animation:flash-toast-exit .22s ease forwards}
@keyframes flash-toast-enter{from{opacity:0;transform:translate3d(24px,-8px,0) scale(.98)}to{opacity:1;transform:none}}
@keyframes flash-toast-exit{to{opacity:0;transform:translate3d(18px,0,0) scale(.98)}}
@keyframes flash-toast-progress{to{transform:scaleX(0)}}
@media (max-width:575.98px){
  .flash-toast-container{right:4vw!important;left:4vw!important;width:92vw}
  .flash-toast{grid-template-columns:38px minmax(0,1fr) 30px;padding-inline:12px;min-height:70px}
  .flash-toast__icon{width:38px;height:38px;border-radius:12px}
}
.confirm-dialog{
  width:min(92vw,400px);
  padding:0;
  border:0;
  border-radius:var(--ui-radius-lg);
  color:var(--ui-text);
  background:rgba(255,255,255,.94);
  box-shadow:0 30px 100px rgba(0,0,0,.28);
  backdrop-filter:var(--ui-blur);
  -webkit-backdrop-filter:var(--ui-blur);
}
.confirm-dialog::backdrop{background:rgba(0,0,0,.22);backdrop-filter:blur(8px)}
.confirm-dialog form{padding:28px;text-align:center}
.confirm-dialog__icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 16px;border-radius:50%;color:var(--ui-danger);background:rgba(215,0,21,.09);font-size:22px;font-weight:700}
.confirm-dialog h2{margin-bottom:8px;font-size:20px}
.confirm-dialog p{color:var(--ui-text-secondary)}
.confirm-dialog__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}

/* Dark appearance */
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 78% 0,rgba(27,91,169,.18),transparent 34rem),
    linear-gradient(135deg,#020b18,#061a34 58%,#031127);
}
html[data-theme="dark"] .topbar{background:rgba(3,16,35,.82)}
html[data-theme="dark"] .topbar-brand img{filter:brightness(0) invert(1)}
html[data-theme="dark"] .sidebar{background:rgba(4,22,45,.88)}
html[data-theme="dark"] .sidebar-nav .nav-link:hover,
html[data-theme="dark"] .sidebar-nav .nav-link:focus,
html[data-theme="dark"] .sidebar-theme-toggle:hover,
html[data-theme="dark"] .sidebar-theme-toggle:focus-visible,
html[data-theme="dark"] .topbar-profile:hover,
html[data-theme="dark"] .topbar-profile[aria-expanded="true"],
html[data-theme="dark"] .topbar-logout:hover,
html[data-theme="dark"] .icon-button:hover{background:rgba(255,255,255,.08)}
html[data-theme="dark"] .sidebar-nav .nav-link.active{
  color:#a9d1ff;
  background:rgba(71,145,231,.18);
  box-shadow:inset 0 0 0 1px rgba(121,181,250,.08);
}
html[data-theme="dark"] .user-menu{
  border-color:var(--ui-separator);
  background:rgba(10,29,52,.96);
}
html[data-theme="dark"] .user-menu .dropdown-item:hover,
html[data-theme="dark"] .user-menu .dropdown-item:focus{background:rgba(255,255,255,.08)}
html[data-theme="dark"] .card{border-color:rgba(151,188,231,.12)}
html[data-theme="dark"] .filter-card{background:rgba(10,31,57,.76)}
html[data-theme="dark"] .monthly-history__table-scroll thead th{background:#0d2542}
html[data-theme="dark"] .monthly-grouped__header-icon,
html[data-theme="dark"] .monthly-grouped__period-icon{background:rgba(41,151,255,.14)}
html[data-theme="dark"] .monthly-grouped__table thead th,
html[data-theme="dark"] .monthly-grouped__footer{background:rgba(41,151,255,.055)}
html[data-theme="dark"] .monthly-grouped__metric--total>span{color:#76b7ff;background:rgba(41,151,255,.14)}
html[data-theme="dark"] .monthly-grouped__metric--signed>span{color:#67d783;background:rgba(52,199,89,.14)}
html[data-theme="dark"] .monthly-grouped__metric--pending>span{color:#ffb54a;background:rgba(255,159,10,.15)}
html[data-theme="dark"] .monthly-kpi--total .monthly-kpi__icon{background:rgba(105,174,252,.16)}
html[data-theme="dark"] .monthly-kpi--completed .monthly-kpi__icon{background:rgba(90,200,120,.15)}
html[data-theme="dark"] .monthly-kpi--pending .monthly-kpi__icon{background:rgba(233,188,98,.15)}
html[data-theme="dark"] .form-control:hover,
html[data-theme="dark"] .form-select:hover,
html[data-theme="dark"] .choice-item:hover{background:#153455}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select{
  color:#f5f7fb;
  border-color:rgba(177,205,237,.18);
  background-color:#102b4c;
  color-scheme:dark;
  -webkit-text-fill-color:#f5f7fb;
}
html[data-theme="dark"] .form-control:hover,
html[data-theme="dark"] .form-select:hover{
  color:#f5f7fb;
  -webkit-text-fill-color:#f5f7fb;
  background-color:#153455;
}
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus{
  color:#f5f7fb;
  -webkit-text-fill-color:#f5f7fb;
  border-color:rgba(105,174,252,.55);
  background-color:#153455;
  box-shadow:0 0 0 4px rgba(41,151,255,.16);
}
html[data-theme="dark"] .form-select option{
  color:#f5f7fb;
  background-color:#102b4c;
}
html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .form-select::placeholder{color:#9eafc3;opacity:1;-webkit-text-fill-color:#9eafc3}
html[data-theme="dark"] .form-control:-webkit-autofill,
html[data-theme="dark"] .form-control:-webkit-autofill:hover,
html[data-theme="dark"] .form-control:-webkit-autofill:focus,
html[data-theme="dark"] .form-select:-webkit-autofill{
  -webkit-text-fill-color:#f5f7fb;
  caret-color:#f5f7fb;
  box-shadow:0 0 0 1000px #102b4c inset;
  transition:background-color 9999s ease-out;
}
html[data-theme="dark"] .document-upload-card__header h1,
html[data-theme="dark"] .document-upload-form .form-label,
html[data-theme="dark"] .document-selected__identity strong,
html[data-theme="dark"] .document-selected__association strong,
html[data-theme="dark"] .document-upload-info strong{color:var(--ui-text)}
html[data-theme="dark"] .document-upload-card__icon,
html[data-theme="dark"] .document-dropzone__icon{background:rgba(105,174,252,.16)}
html[data-theme="dark"] .document-dropzone{border-color:#568bc8;color:#dceaff;background:rgba(22,54,87,.32)}
html[data-theme="dark"] .document-dropzone:hover,
html[data-theme="dark"] .document-dropzone.is-dragging{border-color:#85bdff;background:#153455}
html[data-theme="dark"] .document-upload-notice,
html[data-theme="dark"] .document-upload-form__actions>p{color:#9dccff;background:rgba(45,115,196,.15)}
html[data-theme="dark"] .document-upload-notice p span{color:var(--ui-text-secondary)}
html[data-theme="dark"] .document-selected__card{background:var(--ui-surface-muted)}
html[data-theme="dark"] .document-selected__pdf{background:rgba(255,105,97,.12)}
html[data-theme="dark"] .document-upload-info p span{color:var(--ui-text-secondary)}
html[data-theme="dark"] [data-questionnaire] .question-section .card-header p,
html[data-theme="dark"] [data-questionnaire] .form-text{color:#b2bfd0!important}
html[data-theme="dark"] [data-questionnaire] .question-card legend,
html[data-theme="dark"] [data-questionnaire] .form-label,
html[data-theme="dark"] [data-questionnaire] .choice-item,
html[data-theme="dark"] [data-questionnaire] .form-check-label,
html[data-theme="dark"] [data-questionnaire] .form-control,
html[data-theme="dark"] [data-questionnaire] .form-select,
html[data-theme="dark"] [data-questionnaire] .form-select option{color:#f5f7fb}
html[data-theme="dark"] [data-questionnaire] .question-complement .form-label{color:#c4cfdd}
html[data-theme="dark"] [data-questionnaire] .form-control,
html[data-theme="dark"] [data-questionnaire] .form-select{
  border-color:rgba(190,211,235,.34);
  background-color:#102b4c;
}
html[data-theme="dark"] [data-questionnaire] .form-control::placeholder{color:#9eafc3;opacity:1}
html[data-theme="dark"] [data-questionnaire] .form-control:hover,
html[data-theme="dark"] [data-questionnaire] .form-select:hover{
  border-color:rgba(190,211,235,.5);
  background-color:#153455;
}
html[data-theme="dark"] [data-questionnaire] .form-control:focus,
html[data-theme="dark"] [data-questionnaire] .form-select:focus{
  border-color:#85bdff;
  background-color:#0d2542;
  box-shadow:0 0 0 4px rgba(105,174,252,.22);
}
html[data-theme="dark"] [data-questionnaire] .form-control:disabled,
html[data-theme="dark"] [data-questionnaire] .form-select:disabled{
  color:#b2bfd0;
  background-color:#0b213c;
  opacity:.72;
}
html[data-theme="dark"] [data-questionnaire] .form-control:focus-visible,
html[data-theme="dark"] [data-questionnaire] .form-select:focus-visible,
html[data-theme="dark"] [data-questionnaire] .form-check-input:focus-visible{
  outline:3px solid #85bdff;
  outline-offset:2px;
}
html[data-theme="dark"] [data-questionnaire] .choice-item{
  border-color:rgba(190,211,235,.24);
  color:#f5f7fb;
}
html[data-theme="dark"] [data-questionnaire] .choice-item:hover{
  border-color:rgba(190,211,235,.46);
  color:#fff;
  background:#153455;
}
html[data-theme="dark"] [data-questionnaire] .choice-item:focus-within{
  border-color:#85bdff;
  background:#153455;
}
html[data-theme="dark"] [data-questionnaire] .choice-item:has(.form-check-input:checked){
  border-color:#69aefc;
  color:#fff;
  background:rgba(64,139,229,.24);
}
html[data-theme="dark"] [data-questionnaire] .form-check-input{
  border-color:#91a7c0;
  background-color:#071a31;
}
html[data-theme="dark"] [data-questionnaire] .form-check-input:hover{border-color:#c4d5e8}
html[data-theme="dark"] [data-questionnaire] .form-check-input:checked{
  border-color:#85bdff;
  background-color:#438fe8;
}
html[data-theme="dark"] [data-questionnaire] .form-check-input:focus{
  border-color:#85bdff;
  box-shadow:0 0 0 4px rgba(105,174,252,.22);
}
html[data-theme="dark"] [data-questionnaire] .form-check-input:disabled,
html[data-theme="dark"] [data-questionnaire] .form-check-input:disabled~.form-check-label{opacity:.65}
html[data-theme="dark"] [data-questionnaire] .question-complement{
  border-color:#69aefc;
  color:#f5f7fb;
  background:rgba(118,147,183,.12);
}
html[data-theme="dark"] .questionnaire-intro{
  border-color:rgba(151,188,231,.12);
  background:#102b4b;
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}
html[data-theme="dark"] .questionnaire-intro__header{border-bottom-color:rgba(151,188,231,.12)}
html[data-theme="dark"] .questionnaire-intro__header h2{color:#f5f7fb}
html[data-theme="dark"] .questionnaire-intro__row p{color:#aebdd0}
html[data-theme="dark"] .questionnaire-intro .card-body,
html[data-theme="dark"] .questionnaire-intro .card-body p{color:#dbe6f4}
html[data-theme="dark"] .questionnaire-intro .card-body strong{color:#fff}
html[data-theme="dark"] .table{
  --bs-table-color:var(--ui-text);
  --bs-table-hover-color:var(--ui-text);
  --bs-table-hover-bg:rgba(255,255,255,.04);
}
html[data-theme="dark"] .dashboard-kpi div>strong,
html[data-theme="dark"] .dashboard-chart-card .card-header h2,
html[data-theme="dark"] .dashboard-recent .card-header h2{color:var(--ui-text)}
html[data-theme="dark"] .dashboard-kpi div>span,
html[data-theme="dark"] .dashboard-kpi div>small{color:var(--ui-text-secondary)}
html[data-theme="dark"] .dashboard-hero{
  background:
    radial-gradient(circle at 72% 18%,rgba(48,143,218,.24),transparent 22%),
    linear-gradient(112deg,#030d28 0%,#082e63 58%,#075481 100%);
}
html[data-theme="dark"] .dashboard-kpi{
  border-color:rgba(163,203,246,.18);
  background:linear-gradient(135deg,rgba(14,42,75,.94),rgba(9,31,57,.88));
  box-shadow:0 12px 32px rgba(0,0,0,.26);
}
html[data-theme="dark"] .dashboard-kpi div>strong{color:#f5f7fb}
html[data-theme="dark"] .dashboard-kpi-action{
  border-color:rgba(163,203,246,.2);
  background:linear-gradient(145deg,rgba(20,54,91,.96),rgba(10,37,70,.9));
}
html[data-theme="dark"] .dashboard-kpi-action div>strong{color:#f5f7fb}
html[data-theme="dark"] .dashboard-kpi-action div>span,
html[data-theme="dark"] .dashboard-kpi-action div>small{color:#aabbd0}
html[data-theme="dark"] .dashboard-kpi-action::after{color:#8fc3ff;background:rgba(65,139,229,.16)}
html[data-theme="dark"] .dashboard-chart-card,
html[data-theme="dark"] .dashboard-recent,
html[data-theme="dark"] .dashboard-insight-card,
html[data-theme="dark"] .dashboard-workplace-card,
html[data-theme="dark"] .dashboard-risk-card{background:var(--ui-surface-solid)}
html[data-theme="dark"] .dashboard-risk-alert{color:#ffaaa5;background:rgba(255,105,97,.14)}
html[data-theme="dark"] .dashboard-kpi__icon--blue{color:#8fc3ff;background:rgba(65,139,229,.18)}
html[data-theme="dark"] .dashboard-kpi__icon--green{color:#83dba0;background:rgba(52,199,89,.14)}
html[data-theme="dark"] .dashboard-kpi__icon--amber{color:#f1ca78;background:rgba(233,188,98,.15)}
html[data-theme="dark"] .dashboard-chart-card .card-header span{border-color:var(--ui-separator);color:var(--ui-text-secondary)}
html[data-theme="dark"] .dashboard-chart-card .card-header .dashboard-risk-link span{color:inherit}
html[data-theme="dark"] .dashboard-recent .table th{color:var(--ui-text-secondary);background:rgba(73,135,205,.1)}
html[data-theme="dark"] .choice-item,
html[data-theme="dark"] .signature-panel{background:var(--ui-surface-muted)}
html[data-theme="dark"] .question-actions{
  border-color:var(--ui-separator);
  background:rgba(10,31,57,.8);
}
html[data-theme="dark"] .confirm-dialog{background:rgba(10,29,52,.96)}
html[data-theme="dark"] .login-card{
  color-scheme:light;
  border-color:rgba(255,255,255,.7);
  color:#1d1d1f;
  background:rgba(255,255,255,.94);
}
html[data-theme="dark"] .login-card-logo{filter:none}
html[data-theme="dark"] .login-heading h2,
html[data-theme="dark"] .login-card .form-label,
html[data-theme="dark"] .login-help>strong,
html[data-theme="dark"] .login-help__contact b{color:#1d1d1f}
html[data-theme="dark"] .login-heading p,
html[data-theme="dark"] .login-help,
html[data-theme="dark"] .login-help__contact small{color:#6e6e73}
html[data-theme="dark"] .login-input .form-control{
  border-color:#d6dfeb;
  color:#1d1d1f;
  background:#fbfcfe;
}
html[data-theme="dark"] .login-input .form-control:focus{background:#fff}
html[data-theme="dark"] .login-card .alert-info{color:#18548a;background:#eff7ff}
html[data-theme="dark"] .alert-success{color:#b8f0ca;background:rgba(36,138,61,.22)}
html[data-theme="dark"] .alert-danger{color:#ffc1be;background:rgba(215,0,21,.2)}
html[data-theme="dark"] .alert-info{color:#c2ddff;background:rgba(0,113,227,.2)}

@media (min-width:992px){
  .sidebar{
    box-shadow:inset -1px 0 var(--ui-separator);
    transition:transform .28s cubic-bezier(.4,0,.2,1),visibility 0s;
  }
  .app-main{transition:margin-left .28s cubic-bezier(.4,0,.2,1)}
  .sidebar-collapsed .sidebar{
    visibility:hidden!important;
    transform:translateX(-100%)!important;
    pointer-events:none;
    transition:transform .28s cubic-bezier(.4,0,.2,1),visibility 0s linear .28s;
  }
  .sidebar-collapsed .app-main{margin-left:0}
  .sidebar-collapsed [data-sidebar-toggle]{color:var(--ui-accent);background:rgba(0,113,227,.1)}
  .sidebar-collapsed .dashboard-page{
    width:100vw;
    max-width:100vw;
    margin-inline:calc(50% - 50vw);
  }
  .content-area{padding:clamp(32px,3.5vw,52px)}
  .dashboard-page{--dashboard-gutter:clamp(32px,3.5vw,52px)}
}
@media (max-width:991.98px){
  .sidebar{
    position:fixed!important;
    inset:0 auto 0 0;
    height:100vh;
    height:100dvh;
    min-height:100vh;
    background:
      linear-gradient(
        180deg,
        #071b59 0%,
        #063b83 42%,
        rgba(18,76,145,.82) 52%,
        #d6e0ed 79%,
        #f5f5f7 100%
      )
  }
  .sidebar .offcanvas-body{min-height:0}
  html:not([data-theme="dark"]) .sidebar-brand{border-bottom-color:rgba(255,255,255,.17);color:#fff}
  html:not([data-theme="dark"]) .sidebar-brand .icon-button{color:#fff}
  html[data-theme="dark"] .sidebar{background:rgba(4,22,45,.97)}
  .sidebar-brand{min-height:64px}
  .monthly-grouped__table thead th,
  .monthly-grouped__table tbody td{padding-inline:14px}
  .monthly-grouped__period{gap:9px}
  .monthly-grouped__period-icon{flex-basis:36px;width:36px;height:36px}
  .monthly-grouped__action{padding-inline:10px}
}
@media (max-width:767.98px){
  :root{--topbar-h:64px}
  .content-area{padding:24px 16px 40px}
  .page-header{align-items:flex-start;margin-bottom:24px}
  .page-header>div:last-child{width:100%}
  .page-header>div:last-child .btn{flex:1}
  .topbar-brand img{width:112px}
  .card{border-radius:var(--ui-radius)}
  .card-header,.card-body{padding:18px}
  .interview-search .card-body{padding:22px 18px}
  .interview-search__heading{margin-bottom:20px}
  .interview-search__heading h2{font-size:20px}
  .interview-search__group+.interview-search__group,
  .interview-search__group+.interview-search__split{margin-top:22px;padding-top:22px}
  .interview-search__split{grid-template-columns:1fr;gap:22px}
  .interview-search__split>.interview-search__group+.interview-search__group{
    margin-top:22px;
    padding-top:22px;
    border-top:1px solid var(--ui-separator);
  }
  .interview-search__actions{
    display:grid;
    grid-template-columns:1fr;
    margin-top:22px;
    padding-top:18px;
  }
  .interview-search__actions .btn{width:100%;min-width:0}
  .monthly-history{gap:12px}
  .monthly-history__header{margin-bottom:4px}
  .monthly-history__header>div:last-child{width:auto}
  .monthly-history__filters .card-body{padding:16px}
  .monthly-history__submit{width:100%;min-width:0}
  .monthly-history__period{align-items:start;flex-wrap:wrap}
  .monthly-history__period>p{display:none}
  .monthly-history__period .dashboard-risk-link{margin-top:4px}
  .monthly-history__kpis{grid-template-columns:1fr}
  .monthly-kpi{min-height:68px}
  .monthly-history__table-scroll{max-height:none;overflow-y:visible}
  .monthly-history__table-card{overflow:visible;border:0;background:transparent;box-shadow:none}
  .monthly-history__table-scroll .table,
  .monthly-history__table-scroll tbody{display:block}
  .monthly-history__table-scroll thead{display:none}
  .monthly-history__table-scroll tbody{display:grid;gap:12px}
  .monthly-history__table-scroll tbody tr{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 14px;
    padding:12px 14px;
    border:1px solid var(--ui-separator);
    border-radius:14px;
    background:var(--ui-surface-solid);
    box-shadow:var(--ui-shadow-sm);
  }
  .monthly-history__table-scroll .table td{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    padding:8px 0;
    border-bottom:1px solid var(--ui-separator);
    text-align:right!important;
  }
  .monthly-history__table-scroll .table td::before{
    flex:0 0 auto;
    color:var(--ui-text-tertiary);
    font-size:10px;
    font-weight:650;
    content:attr(data-label);
  }
  .monthly-history__table-scroll .table td:nth-last-child(-n+2){border-bottom:0}
  .monthly-history__table-scroll .table td:last-child{grid-column:1/-1;align-items:center;padding-top:12px}
  .monthly-history__table-scroll .table td:last-child .btn{width:100%}
  .monthly-history__pagination{align-items:flex-start;flex-direction:column}
  .monthly-history__pagination>div{width:100%;justify-content:space-between}
  .monthly-grouped__header{align-items:flex-start;padding:16px}
  .monthly-grouped__header-icon{flex-basis:42px;width:42px;height:42px}
  .monthly-grouped__table{overflow:visible}
  .monthly-grouped__table .table,
  .monthly-grouped__table tbody{display:block}
  .monthly-grouped__table thead{display:none}
  .monthly-grouped__table tbody{display:grid;gap:10px;padding:12px}
  .monthly-grouped__table tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--ui-separator);border-radius:14px;background:var(--ui-surface-solid);overflow:hidden}
  .monthly-grouped__table tbody td{height:auto;padding:12px 8px;border:0;text-align:center!important}
  .monthly-grouped__table tbody td:first-child{grid-column:1/-1;padding:12px;border-bottom:1px solid var(--ui-separator)}
  .monthly-grouped__table tbody td:last-child{grid-column:1/-1;padding:0 12px 12px}
  .monthly-grouped__metric{align-items:center}
  .monthly-grouped__metric small{font-size:9px;white-space:normal}
  .monthly-grouped__action{width:100%}
  .monthly-grouped__footer{align-items:flex-start;padding:13px 16px;line-height:1.45}
  .document-upload-card__header{align-items:flex-start;padding:18px}
  .document-upload-card__icon{width:46px;height:46px;flex-basis:46px;border-radius:13px}
  .document-upload-card__body{padding:18px}
  .document-dropzone{min-height:150px;padding:14px}
  .document-selected__card{grid-template-columns:auto minmax(0,1fr) auto}
  .document-validation-badge{grid-column:2}
  .document-selected__association{grid-column:1/-1;grid-template-columns:1fr;border-top:1px solid var(--ui-separator);border-left:0}
  .document-selected__association>span{padding:10px 0;border-right:0;border-bottom:1px solid var(--ui-separator)}
  .document-selected__association>span:last-child{border-bottom:0}
  .document-upload-info{grid-template-columns:1fr}
  .document-upload-info>div{border-right:0;border-bottom:1px solid var(--ui-separator)}
  .document-upload-info>div:last-child{border-bottom:0}
  .document-upload-form__actions{align-items:stretch;flex-direction:column;padding-top:18px}
  .document-upload-form__actions>p{max-width:none}
  .document-upload-form__actions>div{display:grid;grid-template-columns:1fr 1fr}
  .document-upload-form__actions .btn{width:100%;min-width:0}
  .dashboard-page{--dashboard-gutter:16px;margin-top:-24px}
  .dashboard-hero{min-height:170px;padding-top:34px;padding-bottom:60px}
  .dashboard-hero::before{inset-inline-start:30%}
  .dashboard-welcome h1{font-size:27px}
  .dashboard-welcome p{max-width:290px;font-size:13px;line-height:1.45}
  .dashboard-content{padding-bottom:32px}
  .dashboard-kpis{margin-top:-34px}
  .dashboard-kpi{min-height:108px;padding:16px 18px}
  .dashboard-chart-card .card-header,.dashboard-recent .card-header{padding:16px 18px}
  .dashboard-chart-card .card-body{padding:16px 18px 20px}
  .dashboard-chart-card .chart-wrap{height:250px}
  .dashboard-section-heading h2{font-size:18px}
  .dashboard-insight-card .card-header{align-items:start;padding:16px 18px}
  .dashboard-insight-card .card-body{padding-inline:16px}
  .dashboard-question summary strong{white-space:normal}
  .dashboard-workplace-grid{grid-template-columns:1fr}
  .dashboard-compact-indicator .dashboard-workplace-grid{grid-template-columns:1fr}
  .dashboard-compact-indicator .dashboard-workplace-kpi{min-height:170px}
  .dashboard-compact-indicator .dashboard-workplace-chart .chart-wrap{height:150px}
  .dashboard-workplace-kpi{min-height:190px}
  .dashboard-workplace-card>.card-body{padding:18px}
  .table th,.table td{padding:13px 14px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
@media print{
  body{background:#fff}
  .card{border:1px solid #ddd;box-shadow:none;backdrop-filter:none}
}

/* Native PDF print launcher */
.pdf-print-page{
  min-height:100vh;
  margin:0;
  color:#172033;
  background:#f2f4f7;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.pdf-print-page__content{
  position:fixed;
  z-index:2;
  top:18px;
  left:50%;
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 16px;
  border:1px solid rgba(0,0,0,.1);
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 28px rgba(0,0,0,.14);
  transform:translateX(-50%);
}
.pdf-print-page__content p{margin:0;font-size:14px}
.pdf-print-page__content button{
  min-height:38px;
  padding:8px 14px;
  border:0;
  border-radius:9px;
  color:#fff;
  background:#0071e3;
  font-weight:700;
  cursor:pointer;
}
#pdf-print-frame{
  width:100vw;
  height:100vh;
  border:0;
  background:#fff;
}

/* Crear / editar usuario */
.page-eyebrow--trail{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  color:var(--ui-accent);
  text-transform:uppercase;
}
.page-eyebrow--trail a{
  color:inherit;
  text-decoration:none;
}
.page-eyebrow--trail a:hover{text-decoration:underline}
.page-eyebrow--trail span{opacity:.55;font-weight:500}
.user-form-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.user-form-back__icon{
  display:inline-grid;
  place-items:center;
  transform:rotate(90deg);
}
.user-form-card__body{padding:clamp(24px,3vw,36px)}
.user-form-email{
  display:flex;
  align-items:stretch;
  min-height:48px;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:var(--ui-radius-sm);
  background:var(--ui-surface-muted);
  transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.user-form-email:hover{background-color:#f0f0f2}
.user-form-email:focus-within{
  border-color:rgba(0,113,227,.45);
  background:var(--ui-surface-solid);
  box-shadow:0 0 0 4px rgba(0,113,227,.1);
}
.user-form-email.is-invalid{border-color:rgba(215,0,21,.5);background-color:rgba(215,0,21,.035)}
.user-form-email .form-control{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  min-height:46px;
}
.user-form-email .form-control:hover,
.user-form-email .form-control:focus{
  background:transparent;
  box-shadow:none;
  border-color:transparent;
}
.user-form-email__domain{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  padding:0 14px;
  border-left:1px solid rgba(60,60,67,.12);
  color:var(--ui-text-secondary);
  background:rgba(118,118,128,.08);
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
}
.user-form-email-preview{
  margin:8px 0 0;
  color:var(--ui-accent);
  font-size:13px;
  font-weight:500;
}
.user-form-email-preview strong{font-weight:700}
.user-form-select{position:relative}
.user-form-select__icon{
  position:absolute;
  z-index:2;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  color:var(--ui-text-secondary);
  pointer-events:none;
}
.user-form-select .form-select{padding-left:42px}
.user-form-password{
  position:relative;
  display:flex;
  align-items:center;
}
.user-form-password .form-control{padding-right:48px}
.user-form-password__toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:0;
  border-radius:10px;
  color:var(--ui-text-secondary);
  background:transparent;
}
.user-form-password__toggle:hover,
.user-form-password__toggle:focus-visible{
  color:var(--ui-accent);
  background:rgba(0,113,227,.08);
  outline:0;
}
.user-form-active .form-check{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.user-form-active .form-check-input{
  width:44px;
  height:24px;
  margin-top:2px;
  flex:0 0 auto;
}
.user-form-active .form-check-label{
  font-size:15px;
  font-weight:600;
  color:var(--ui-text);
}
.user-form-active__hint{
  margin-top:2px;
  color:var(--ui-text-secondary);
  font-size:13px;
}
.user-form-actions .btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
html[data-theme="dark"] .user-form-email,
html[data-theme="dark"] .user-form-email:hover{background:#1c2430}
html[data-theme="dark"] .user-form-email:focus-within{background:#121820}
html[data-theme="dark"] .user-form-email__domain{
  border-left-color:rgba(255,255,255,.1);
  background:rgba(255,255,255,.06);
  color:#aebdd0;
}
html[data-theme="dark"] .user-form-email .form-control{color:#e8eef6}
