/* RRHH 37.1.04.3 - Historial de vacaciones integrado al panel lateral */
body[data-rrhh-force-sidebar] .rrhh-history-integrated{
  width:100%; max-width:none; min-width:0;
  padding:24px clamp(14px,2vw,32px) 40px!important;
}
.rrhh-history-integrated .rrhh-history-heading{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:14px; min-height:88px;
}
.rrhh-history-integrated .rrhh-history-heading h1{ margin:4px 0 8px!important; }
.rrhh-history-integrated .rrhh-history-breadcrumb{
  font-size:12px; font-weight:700; letter-spacing:.02em; margin:0;
}
.rrhh-history-integrated .rrhh-history-back{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:38px; padding:8px 14px; border-radius:9px;
  border:1px solid var(--vac-border); background:var(--vac-head);
  text-decoration:none; white-space:nowrap; font-weight:600;
}
.rrhh-history-integrated .rrhh-history-back:hover{filter:brightness(1.08)}
.rrhh-history-integrated #history-form{display:block}
.rrhh-history-integrated .search-row{max-width:920px}
.rrhh-history-integrated .search-row button{white-space:nowrap}
.rrhh-history-integrated #history-result[hidden]{display:none!important}
.rrhh-history-integrated #history-result{min-width:0}
.rrhh-history-integrated .table-scroll{width:100%;max-width:100%;}
.rrhh-history-integrated #history-status{margin:6px 0 16px;color:var(--vac-muted)}
@media (max-width:850px){
  body[data-rrhh-force-sidebar] .rrhh-history-integrated{padding:72px 12px 24px!important;}
  .rrhh-history-integrated .rrhh-history-heading{align-items:flex-start}
}

/* RRHH v37.1.04.5 - selector de empleado accesible */
.rrhh-history-integrated .history-search-field{position:relative;flex:1;min-width:0}
.rrhh-history-integrated .history-search-field>input{width:100%;box-sizing:border-box}
.rrhh-history-integrated .history-suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:1200;max-height:300px;overflow-y:auto;border:1px solid var(--vac-border,#475569);border-radius:10px;background:var(--card-bg,#ffffff);color:var(--text-main,#0f172a);box-shadow:0 18px 35px rgba(0,0,0,.25)}
.rrhh-history-integrated .history-suggestions[hidden]{display:none!important}
.rrhh-history-integrated .history-suggestion{display:flex;flex-direction:column;gap:3px;align-items:flex-start;width:100%;text-align:left;background:transparent;color:inherit;border:0;border-bottom:1px solid rgba(148,163,184,.22);padding:11px 13px;cursor:pointer;font:inherit}
.rrhh-history-integrated .history-suggestion:hover,.rrhh-history-integrated .history-suggestion:focus-visible{background:rgba(59,130,246,.16);outline:2px solid #60a5fa;outline-offset:-2px}
.rrhh-history-integrated .history-suggestion small{font-size:12px;opacity:.77}
.rrhh-history-integrated .history-suggestion-empty{padding:12px;opacity:.8}
.rrhh-history-integrated .history-search-hint{font-size:12px;opacity:.8;margin:8px 0 0}
html[data-theme="dark"] .rrhh-history-integrated .history-suggestions,html.dark .rrhh-history-integrated .history-suggestions,body.dark .rrhh-history-integrated .history-suggestions{background:#152136;color:#f8fafc;border-color:#475569}
