/* ═══════════════════════════════════════════════════
   VALORATALENTO — Shared Design System (App Interior)
   Basado en Opción A
═══════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:       #00247d;
  --blue-deep:  #001a5c;
  --blue-hover: rgba(0,36,125,.08);
  --blue-soft:  rgba(0,36,125,.06);
  --yellow:     #ffcc00;
  --yellow-d:   #e6b800;
  --red:        #c8102e;
  --red-lt:     rgba(200,16,46,.08);
  --green:      #16a34a;
  --green-lt:   rgba(22,163,74,.08);
  --orange:     #ea580c;
  --orange-lt:  rgba(234,88,12,.08);
  --bg:         #f4f6fb;
  --white:      #ffffff;
  --text:       #0f172a;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --sh-sm:      0 1px 3px rgba(0,36,125,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-md:      0 4px 16px rgba(0,36,125,.10);
  --r:          1rem;
  --r-sm:       .625rem;
  --sidebar-w:  198px;
  --header-h:   62px;
  --stripe-h:   4px;
}

/* Iconos SVG en línea (includes/icons.php). Miden como el texto que los rodea y toman su
   color, que es lo que hacía la fuente de iconos que sustituyen. El descenso de .125em los
   alinea con la línea base cuando van pegados a una palabra. */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -.125em;
}

html { scroll-behavior: smooth; }
body {
  /* Sistema de fuente: Inter si está instalada (macOS Ventura+, muchos Linux),
     luego system-ui (San Francisco en Apple, Segoe UI variable en Win11),
     fallbacks para versiones anteriores. Cero requests de red. */
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

/* Respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── STRIPE ── */
.stripe {
  height: var(--stripe-h);
  background: linear-gradient(to right,
    var(--yellow)  0% 33.33%,
    var(--blue)    33.33% 66.66%,
    var(--red)     66.66% 100%);
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  flex-shrink: 0;
}

/* ── APP SHELL ── */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding-top: var(--stripe-h);
}

.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s ease;
  z-index: 300;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 .9rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.logo-text { font-size: 1.18rem; font-weight: 900; letter-spacing: -.025em; line-height: 1; }
.logo-text .v { color: #22d3ee; }
.logo-text .t { color: var(--yellow); }

.sidebar-nav {
  padding: .45rem 0 .25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-group-label {
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: .38rem .95rem .15rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .62rem;
  padding: .42rem .9rem;
  font-size: .81rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  transition: background .15s, color .15s;
  border-radius: 0;
  margin: .03rem .4rem;
  border-radius: .52rem;
  min-height: 34px;
}
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.sidebar-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,.15); color: #fff; font-weight: 600; }
.sidebar-link.active svg { opacity: 1; }

.sidebar-footer {
  padding: .8rem .9rem;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.sidebar-account {
  display: none;
  padding: .75rem .9rem 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.sidebar-account-name {
  overflow: hidden;
  margin-bottom: .35rem;
  color: rgba(255,255,255,.72);
  font-size: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-account-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .55rem;
  border-radius: .52rem;
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 600;
}

.sidebar-account-link:hover,
.sidebar-account-link:focus-visible {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

.sidebar-account-logout { color: var(--yellow); }

/* ── MAIN AREA ── */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── TOP HEADER ── */
.top-header {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--sh-sm);
}

.header-left { display: flex; align-items: center; gap: 1rem; }
.header-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.header-breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.header-breadcrumb span { color: var(--muted); }
.header-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}
.header-breadcrumb a:hover {
  text-decoration: underline;
}
.header-breadcrumb .current {
  color: var(--muted);
}
.header-breadcrumb .sep { opacity: .4; }

.header-right { display: flex; align-items: center; gap: .75rem; }

.header-user-dropdown {
  position: relative;
}

.header-user-dropdown summary {
  list-style: none;
}

.header-user-dropdown summary::-webkit-details-marker {
  display: none;
}

.header-user-trigger {
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  padding: .2rem;
  border-radius: .9rem;
  transition: background .15s ease;
}

.header-user-trigger:hover {
  background: var(--bg);
}

.header-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.header-user-name {
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
}

.header-user-role {
  font-size: .72rem;
  color: var(--muted);
}

.header-user-panel {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  min-width: 220px;
  padding: .55rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: .9rem;
  box-shadow: var(--sh-md);
  display: grid;
  gap: .2rem;
  z-index: 50;
}

.header-user-panel-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 .85rem;
  border-radius: .7rem;
  color: var(--text);
  font-size: .86rem;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}

.header-user-panel-link:hover {
  background: var(--bg);
  color: var(--blue);
}

.header-user-panel-link-danger:hover {
  background: var(--red-lt);
  color: var(--red);
}

.avatar {
  width: 34px; height: 34px;
  background: var(--blue-soft);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
}

.icon-btn {
  width: 34px; height: 34px;
  background: none; border: none;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.menu-toggle { display: none; }
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* ── PAGE CONTENT ── */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

@media (min-width: 768px) { .page-content { padding: 1.5rem; } }

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text);
  line-height: 1.2;
}

.page-subtitle {
  font-size: .875rem;
  color: var(--muted);
  margin-top: .2rem;
}

/* -- STEPPER -- */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: all .25s;
}

.step-circle.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.step-circle.done {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.step-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.step-label.active { color: var(--blue); }
.step-label.done { color: var(--green); }

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 .5rem;
  transition: background .25s;
}

.step-connector.done { background: var(--green); }

/* -- INSTRUMENT CARDS -- */
.instr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .instr-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .instr-grid { grid-template-columns: 1fr; }
}

.instr-card {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  position: relative;
  background: var(--white);
  user-select: none;
}

.instr-card:hover { border-color: #94a3b8; transform: translateY(-1px); }
.instr-card.selected { border-color: var(--blue); background: rgba(0,36,125,.03); }

.instr-check {
  position: absolute;
  top: .875rem;
  right: .875rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.instr-card.selected .instr-check {
  background: var(--blue);
  border-color: var(--blue);
}

.instr-check svg { display: none; }
.instr-card.selected .instr-check svg { display: block; }

.instr-ico {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--blue);
  border-radius: .625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  color: var(--white);
  font-size: 1rem;
}

.instr-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
  line-height: 1.2;
}

.instr-desc {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.6;
}

.instr-meta {
  font-size: .7rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: .5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  padding: .55rem 1.1rem;
  min-height: 38px;
  transition: all .18s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--text); }
.btn-yellow:hover { background: var(--yellow-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ghost:hover { background: var(--blue-hover); }
.btn-danger { background: var(--red-lt); color: var(--red); border: 1px solid rgba(200,16,46,.15); }
.btn-danger:hover { background: rgba(200,16,46,.14); }

/* Icon buttons — acción negativa (eliminar, cerrar, cancelar) */
.icon-btn.danger { color: var(--red); }
.icon-btn.danger:hover { background: var(--red-lt); color: var(--red); }

/* SVG icon containers */
.ico-wrap {
  width: 2.25rem; height: 2.25rem;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ico-wrap svg { width: 18px; height: 18px; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-wrap.blue  { background: var(--blue); }
.ico-wrap.blue svg { stroke: white; }
.ico-wrap.red   { background: var(--red); }
.ico-wrap.red svg { stroke: white; }
.btn-sm { padding: .35rem .75rem; font-size: .75rem; min-height: 30px; border-radius: .4rem; }
.btn-lg { padding: .7rem 1.5rem; font-size: .9375rem; min-height: 44px; border-radius: var(--r); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.card.no-hover { transform: none !important; box-shadow: var(--sh-sm) !important; }

.card-accent::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
}
.card-accent.yellow::after { background: var(--yellow-d); }
.card-accent.red::after    { background: var(--red); }
.card-accent.green::after  { background: var(--green); }

/* ── STAT CARDS ── */
.stats-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.75rem;
}
@media (min-width: 900px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.stat-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-val {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--blue);
}
.stat-val.yellow { color: #b8940a; }
.stat-val.red    { color: var(--red); }
.stat-val.green  { color: var(--green); }
.stat-sub {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .1rem;
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 9999px;
}
.badge-green  { background: var(--green-lt);  color: var(--green); }
.badge-blue   { background: var(--blue-soft);  color: var(--blue); }
.badge-yellow { background: rgba(255,204,0,.15); color: #a07800; }
.badge-red    { background: var(--red-lt);     color: var(--red); }
.badge-gray   { background: var(--bg);          color: var(--muted); border: 1px solid var(--border); }
.badge-orange { background: var(--orange-lt);  color: var(--orange); }

/* -- SCORE PILLS -- */
.score-pill {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 9999px;
}

.score-high { background: var(--green-lt); color: var(--green); }
.score-mid  { background: rgba(255,204,0,.15); color: #9a7200; }
.score-low  { background: var(--red-lt); color: var(--red); }

/* -- PAGINATION -- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 0;
  background: transparent;
  flex-wrap: wrap;
  gap: .75rem;
}

.pagination[hidden] {
  display: none !important;
}

.pagination-info {
  font-size: .78rem;
  color: var(--muted);
}

.pagination-btns {
  display: flex;
  gap: .35rem;
}

.pg-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.pg-btn:hover { border-color: var(--blue); color: var(--blue); }
.pg-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--sh-sm);
}
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .875rem 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: .875rem 1.25rem;
  font-size: .8125rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(0,36,125,.02); }

.td-name { font-weight: 600; color: var(--text); }
.td-sub  { font-size: .72rem; color: var(--muted); margin-top: .1rem; }

/* ── FORM ELEMENTS ── */
label { font-size: .8125rem; font-weight: 600; color: var(--text); display: block; margin-bottom: .35rem; }
input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: .6rem .85rem;
  font-family: inherit;
  font-size: .875rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  min-height: 42px;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,36,125,.08);
}
textarea { resize: vertical; min-height: 90px; }

.form-group { margin-bottom: 1.25rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ── GRID UTILITIES ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── MOBILE SIDEBAR OVERLAY ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 290;
}
.sidebar-overlay.show { display: block; }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .sidebar {
    position: fixed;
    left: 0; top: var(--stripe-h); bottom: 0;
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-account { display: block; }
}

@media (max-width: 600px) {
  .top-header {
    gap: .75rem;
    padding: .7rem .875rem;
  }

  .header-left {
    min-width: 0;
    gap: .5rem;
  }

  .header-title {
    overflow: hidden;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-breadcrumb,
  .header-user-meta {
    display: none;
  }

  .page-content {
    padding: .875rem;
  }
}

/* ── SECTION SEPARATOR ── */
.section-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── TABS ── */
.tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.tab {
  padding: .65rem 1.1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── EMPTY STATE ── */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .5; }
.empty-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.empty-desc { font-size: .875rem; }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ── PROJECT OVERRIDES ── */
/* Allow top-header to auto-size to accommodate page-header content */
.top-header { height: auto; min-height: var(--header-h); }

/* Bootstrap Icons compatibility inside sidebar links */
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.sidebar-link.active svg { opacity: 1; }
.sidebar-link:hover svg { opacity: 1; }

@media (min-height: 880px) {
  .sidebar-link {
    min-height: 40px;
    padding: .56rem 1rem;
  }

  .nav-group-label {
    padding-top: .6rem;
  }
}

/* page-breadcrumb inside page-content */
.page-breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.page-breadcrumb a { color: var(--blue); }
.page-breadcrumb .sep { opacity: .4; }


/* ── FILTROS (compartido entre páginas de listado) ── */
.filters-bar {
  display: flex;
  gap: .75rem;
  padding: .4rem 0 .55rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: .7rem;
}

.filter-group {
  flex: 1;
  min-width: 180px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: .5rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: .8125rem;
  color: var(--text);
  background: var(--white);
  min-height: 36px;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.filter-input:focus,
.filter-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.filter-input::placeholder { color: var(--muted); }

.btn-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  padding: .5rem .8rem;
  min-height: 36px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.btn-clear:hover { border-color: var(--blue); color: var(--blue); }
.btn-clear-icon { padding: 0; width: 38px; }

.no-results { display: none; text-align: center; padding: 3rem; color: var(--muted); font-size: .875rem; }
.no-results.active { display: block; }
