﻿/* Rebuilt from the captured screens of visionqhsegroup.pe */
:root {
  --purple: #5c3bee;
  --purple-dark: #3a14e2;
  --teal: #17a2b8;
  --green: #28a745;
  --bg: #f4f6f9;
  --text: #606266;
  --dark: #212529;
  --muted: #c2c7d0;
  --line: rgba(0, 0, 0, 0.12);
  --radius: 4px;
  --radius-sm: 3.2px;
  --shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  --sidebar: 250px;
  --pad: 35px;
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  --band: calc(100vh + 69px);
}

* { box-sizing: border-box; }

html { background: #ffffff; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; }

.bg-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--band);
  background: var(--bg);
  z-index: 0;
}

.skip { position: absolute; left: -9999px; top: 0; }

/* ---------------------------------------------------------------- navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 61px;
  padding: 8px;
  display: flex;
  align-items: flex-start;
  background: #ffffff;
}

.navbar-nav {
  display: flex;
  align-items: center;
  height: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-empresa-name {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #333;
}

.theme-toggle {
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #333;
  border-radius: 4px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}
.login-page .theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
}

.nav-right {
  margin-left: auto;
  padding-right: 15px;
}

.nav-toggle {
  width: 44px;
  height: 45px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.nav-toggle .ic { width: 18px; height: 18px; }

.nav-expand {
  width: 44px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.5);
  font-size: 15px;
}

.nav-user {
  height: 45px;
  display: inline-flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 300;
  white-space: nowrap;
}

.user-menu {
  position: relative;
  height: 45px;
}

.user-menu > summary {
  list-style: none;
  cursor: pointer;
}
.user-menu > summary::-webkit-details-marker { display: none; }

.user-menu .dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  min-width: 140px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  padding: 5px 0;
  z-index: 60;
}
.user-menu .dropdown a {
  display: block;
  padding: 6px 16px;
  color: var(--text);
  font-size: 14px;
}
.user-menu .dropdown a:hover { background: var(--bg); }

/* --------------------------------------------------------------- sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: auto;
  width: var(--sidebar);
  height: 100vh;
  z-index: 40;
  background: var(--purple);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, width 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  height: 62px;
  padding: 0 25px;
  color: #ffffff;
}
.brand img { width: 71px; height: 33px; display: block; }

.sidebar > nav { padding: 8px 0 0; }

.menu {
  margin: 0 8px;
  padding: 0 0 10px;
}

.menu li { margin-bottom: 3px; }

.menu a {
  display: flex;
  align-items: flex-start;
  min-height: 45px;
  padding: 13.5px 16px;
  border-radius: 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 17px;
}

.menu a i {
  width: 18px;
  min-width: 18px;
  height: 18px;
  font-size: 15px;
  line-height: 18px;
  text-align: center;
}

.menu a p {
  margin-left: 11px;
  max-width: 163px;
  line-height: 17px;
}

.menu a:hover { color: #ffffff; }

.menu li.active a {
  background: #ffffff;
  color: var(--purple);
  font-weight: 400;
}
.menu li.active a:hover { color: var(--purple); }

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------- content */
.content {
  position: relative;
  z-index: 10;
  padding: 69px var(--pad) 27px;
  min-height: 100vh;
}

/* Escritorio: el menú queda en iconos y se abre al acercar el mouse. */
@media (min-width: 992px) {
  body:not(.login-page) {
    --sidebar-current: 74px;
  }
  body.sidebar-pinned:not(.login-page) {
    --sidebar-current: var(--sidebar);
  }
  body:not(.login-page) .navbar {
    left: var(--sidebar-current);
    width: calc(100% - var(--sidebar-current));
  }
  body:not(.login-page) .content {
    margin-left: var(--sidebar-current);
    width: calc(100% - var(--sidebar-current));
    max-width: none;
    box-sizing: border-box;
  }
  body:not(.login-page) .bg-band {
    left: var(--sidebar-current);
    right: 0;
  }
  body:not(.login-page):not(.sidebar-pinned) .sidebar {
    width: 74px;
  }
  body:not(.login-page):not(.sidebar-pinned) .sidebar:hover {
    width: var(--sidebar);
  }
  body:not(.login-page):not(.sidebar-pinned) .sidebar:not(:hover) .brand {
    justify-content: center;
    padding: 0;
  }
  body:not(.login-page):not(.sidebar-pinned) .sidebar:not(:hover) .brand-word,
  body:not(.login-page):not(.sidebar-pinned) .sidebar:not(:hover) .menu a p {
    display: none;
  }
  body:not(.login-page):not(.sidebar-pinned) .sidebar:not(:hover) .menu a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 23px;
}

.page-head h1 {
  font-size: 28.8px;
  line-height: 35px;
  font-weight: 500;
  color: var(--dark);
}

.page-head.dash h1 { line-height: 49px; }

.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 0;
}

/* element-ui style select */
.el-select {
  position: relative;
  position: relative;
  display: inline-block;
  width: 200px;
  height: 35px;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  line-height: 33px;
  padding: 0 30px 0 15px;
  white-space: nowrap;
  overflow: visible;
  user-select: none;
}
.el-select .el-arrow {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #c0c4cc;
}
.el-select .el-value { display: block; overflow: hidden; text-overflow: ellipsis; }

.el-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.el-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  z-index: 80;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  max-height: 274px;
  overflow-y: auto;
}
.el-select.open { border-color: var(--purple); }
.el-select.open .el-dropdown { display: block; }
.el-select.open .el-arrow {
  transform: rotate(180deg);
}
.el-option {
  height: 34px;
  padding: 0 20px;
  line-height: 34px;
  font-size: 14px;
  color: #606266;
  white-space: nowrap;
  cursor: pointer;
}
.el-option:hover { background: #f5f7fa; }
.el-option.selected { color: var(--purple); font-weight: 700; }

.logout-form {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.select-wide { flex: 1 1 auto; width: auto; min-width: 120px; }
.select-150 { width: 150px; }
.select-200 { width: 200px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 35px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  background: var(--teal);
  cursor: pointer;
  white-space: nowrap;
}
.btn i { font-size: 14px; }
.btn-info { background: var(--teal); }
.btn-search { background: var(--teal); padding: 0 13px; }
.btn-filter { width: 40px; padding: 0; justify-content: center; }

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #23923c;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #ffffff;
  font-size: 12.25px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.btn-green .caret {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #ffffff;
}

/* --------------------------------------------------------------- section */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 50px;
  height: 35px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  font-size: 21px;
  line-height: 35px;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
}
.section-head .btn { flex: 0 0 auto; }

.sub-title {
  margin-top: 25px;
  font-size: 21px;
  line-height: 25px;
  font-weight: 500;
  color: var(--dark);
}

/* cards */
.card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}
.card-header h3 {
  font-size: 17.6px;
  line-height: 21px;
  font-weight: 400;
  color: var(--dark);
}
.card-header.purple {
  background: var(--purple);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  min-height: 43px;
  padding: 10px 20px;
}
.card-header.purple h3 { color: #ffffff; }

/* ------------------------------------------------------------ stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  height: 81px;
  padding: 6px 16px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #ffffff;
}
.stat-icon svg { width: 38px; height: 38px; }

.stat-info { margin-left: 8px; }
.stat-info .label { font-size: 14px; line-height: 19px; color: var(--text); }
.stat-info .value { font-size: 17.6px; line-height: 21px; color: var(--dark); margin-top: 3px; }

/* ---------------------------------------------------------------- charts */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 23px;
}
.chart-card { height: 493px; display: flex; flex-direction: column; overflow: visible; }
.chart-card .card-body { flex: 1 1 auto; padding: 10.5px; min-height: 0; overflow: hidden; }
.chart-picker { position: relative; }
.chart-picker.open { z-index: 6; }
.chart-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 132px;
  z-index: 6;
  padding: 6px 0;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.chart-picker.open .chart-menu { display: block; }
.chart-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  color: #606266;
  cursor: pointer;
}
.chart-menu button:hover { background: #f5f7fa; }
.chart-menu button[aria-selected="true"] { color: var(--purple); font-weight: 700; }
.chart-wrap { position: relative; width: 100%; height: 420px; }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------------------------------------------------------------- tables */
.table-panel {
  margin-top: 24px;
  overflow: hidden;
}
.table-panel .card-body { padding: 20px; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}
.filter-row .filter-label {
  font-size: 14px;
  color: var(--dark);
  white-space: nowrap;
  margin-right: 15px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--dark);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 7.5px 12px;
  vertical-align: top;
  line-height: 17px;
}
.data-table th {
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  padding-top: 10.5px;
  padding-bottom: 10.5px;
  background: #ffffff;
}
.data-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.05); }
.data-table tbody tr:nth-child(odd) { background: #ffffff; }
.data-table tbody tr { border-top: 1px solid #ffffff; }
.data-table tbody tr:first-child { border-top: 0; }
.data-table tfoot tr { background: rgba(0, 0, 0, 0.05); font-weight: 700; }
.data-table tfoot td { font-weight: 700; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table .num-head { text-align: right; }
.data-table .center { text-align: center; }
.data-table td.name { font-weight: 700; }

.stats-table { margin-top: 15px; }
.stats-table td,
.stats-table th { padding: 7.5px 10px; }
.stats-table tbody tr:nth-child(even) { background: rgba(0, 0, 0, 0.05); }

.chart-caption {
  margin-top: 40px;
  text-align: center;
  font-size: 17.6px;
  font-weight: 700;
  color: var(--text);
}
.bottom-chart-wrap { position: relative; height: 355px; margin-top: 12px; }
.bottom-chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --------------------------------------------------------------- profile */
.profile-card { margin-top: 24px; overflow: hidden; }
.profile-card .card-body { padding: 21px 13px 24px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 15px;
  row-gap: 12px;
}
.field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  align-items: stretch;
}
.field .key {
  background: var(--teal);
  color: #ffffff;
  border-radius: 3.2px;
  padding: 7.5px 10px;
  font-size: 14px;
  line-height: 19px;
  min-height: 34px;
}
.field .val {
  color: var(--text);
  font-size: 14px;
  line-height: 22px;
  padding: 6px 0;
  min-height: 34px;
  word-break: break-word;
}
.field .val input,
.field .val select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 6px 8px;
  font: inherit;
  color: inherit;
  background: #fff;
}
.perfil-checks { display: flex; flex-direction: column; gap: 6px; }
.perfil-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}
.field .val .perfil-checks input {
  width: 13px;
  height: 13px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.perfil-checks p { margin: 0; }
.perfil-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.perfil-note { margin: 0; font-size: 14px; color: #1e7e34; }
.perfil-note.is-error { color: #c0392b; }
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  margin-top: 15px;
}
.check-line .box {
  width: 13px;
  height: 13px;
  border: 1px solid #adb5bd;
  background: #e9ecef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 9px;
}

.profile-top { margin-top: 24px; }

/* --------------------------------------------------------------- search */
.search-card { margin-top: 50px; overflow: hidden; }
.search-card .card-body { padding: 20px 20px 34px; }
.tabs { display: flex; gap: 0; margin-bottom: 24px; }
.tab {
  height: 35px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  background: var(--purple);
  cursor: pointer;
}
.tab.active { background: var(--purple-dark); }

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.search-form .el-select:first-child { width: 200px; flex: 0 0 200px; }
.search-form .el-select.select-wide { flex: 1 1 240px; min-width: 160px; max-width: 100%; }
.search-form .btn-search { flex: 0 0 auto; height: 35px; align-self: center; }
.adv-fields:not(.open) {
  display: none !important;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}
@media (min-width: 768px) {
  .search-form { flex-wrap: nowrap; }
}

.results-panel { margin-top: 16px; overflow: hidden; }
.results-panel .card-body { padding: 28px 20px 20px; }

.results-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}
.results-count { font-size: 14px; color: var(--text); }.pager { display: flex; align-items: center; gap: 4px; color: var(--text); }
.pager a {
  width: 33px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.25px;
  color: #6c757d;
}
.pager .page { min-width: 40px; text-align: center; font-size: 12.25px; }

.table-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 100%; }

.results-table th { white-space: nowrap; }
.results-table th .sort {
  border: 0;
  background: transparent;
  color: var(--dark);
  font-weight: 700;
  font-size: 14px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.results-table tbody td { font-weight: 400; }
.results-table td.functions { white-space: nowrap; }
.results-table .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: #6c757d;
  font-size: 14px;
}
.results-table .icon-btn + .icon-btn { margin-left: 6px; }
.results-table th.functions { text-align: left; }

/* date filter card */
.date-card { margin-top: 19px; overflow: hidden; }
.date-card .card-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9.5px 20px;
  flex-wrap: wrap;
}
.date-label { font-size: 14px; color: var(--text); white-space: nowrap; }
.date-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 251px;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #dcdfe6;
  border-radius: var(--radius);
  color: #606266;
  font-size: 14px;
  background: #ffffff;
  white-space: nowrap;
}
.date-input input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.date-input .ph { color: #c0c4cc; }
.date-input i { color: #606266; }
.search-icon-btn {
  width: 50px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--dark);
  font-size: 20px;
  cursor: pointer;
}
.search-icon-btn img { width: 24px; height: 24px; }

/* requisitos simple/advanced search collapsed */
.adv-fields {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 15px;
}
.adv-fields.open { display: grid; }
.adv-fields .el-select {
  position: relative; width: 100%; }

/* ---------------------------------------------------------------- misc */
.text-teal { color: var(--teal); }
.link { color: #007bff; text-decoration: none; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1199px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  :root { --band: calc(100vh + 83px); }
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .scrim { display: block; }
  .scrim { display: none; }
  .navbar { z-index: 45; }
  .content { padding-top: 69px; }
  .adv-fields { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  :root { --band: calc(100vh + 97px); --pad: 35px; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card { height: 441px; }
  .chart-wrap { height: 367px; }
  .page-head.dash { flex-direction: column; gap: 15px; }
  .page-head.dash .page-actions { padding-top: 0; width: 100%; }
  .page-head.dash .el-select {
  position: relative; width: 100%; }
  .section-head { align-items: flex-start; height: auto; }
  .section-head h2 { white-space: normal; line-height: 30px; }
  .field-grid { grid-template-columns: 1fr; }
  .adv-fields { grid-template-columns: repeat(2, 1fr); }
  .bottom-chart-wrap { height: 300px; }
  .chart-caption { margin-top: 25px; font-size: 16px; }
  .date-card .card-body { padding: 10px 20px; }
  .date-input { max-width: 100%; }
}

@media (max-width: 575px) {
  .date-input input { width: 90px; }
  :root { --pad: 35px; }
  .navbar-right { padding-right: 0; }
  .nav-user { font-size: 14px; }
  .content { padding-bottom: 20px; }
  .section-head { margin-top: 45px; }
  .search-card .card-body { padding: 12px; }
  .tabs { flex-wrap: wrap; }
  .tab { white-space: normal; line-height: 17px; padding: 4px 12px; height: auto; min-height: 45px; }
  .search-form { flex-wrap: nowrap; }
  .search-form .el-select:first-child { width: 140px; min-width: 140px; }
  .search-form .el-select.select-wide { min-width: 155px; }
  .search-form .btn { padding: 0 10px; }
  .results-panel .card-body { padding: 12px; }
  .table-panel .card-body { padding: 12px; }
  .filter-row { min-width: 545px; }
  .stats-table { min-width: 545px; }
  .profile-card .card-body { padding: 12px; }
  .field { grid-template-columns: 1fr; gap: 0; }
  .field .key { border-radius: 3.2px 3.2px 0 0; }
  .field .val { padding: 10px 10px 0; }
  .field-grid { row-gap: 14px; }
  .bottom-chart-wrap { height: 340px; }
  .page-head { gap: 10px; }
  .page-head h1 { font-size: 28.8px; }
}

/* icons inside buttons */
.btn .ic, .btn-evaluar .ic, .date-input .ic, .pager .ic { width: 15px; height: 15px; }
.btn .ic { width: 16px; height: 16px; }
.search-icon-btn .ic { width: 20px; height: 20px; }
.icon-btn .ic { width: 15px; height: 15px; }
.sort .ic { width: 12px; height: 12px; }
.menu .ic { width: 18px; height: 18px; }

.results-table td { line-height: 17px; }
.results-table .cont { color: #606266; font-weight: 400; margin-top: 4px; }
.evidence span { display: block; }
.req-table td.name { font-weight: 700; }
.btn-evaluar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: #17a2b8;
  color: #fff;
  font-size: 12.25px;
  white-space: nowrap;
  cursor: pointer;
}
.req-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.req-table .functions { text-align: left; }
.req-table { min-width: 0; }
.results-table { min-width: 0; }


/* --- refinements from the comparison --- */
.date-input input {
  border: 0;
  outline: 0;
  padding: 0;
  width: 80px;
  font: inherit;
  color: #606266;
  background: transparent;
}
.date-input input::placeholder { color: #c0c4cc; }
.check-line { cursor: pointer; }
.check-line input {
  appearance: none;
  width: 13px;
  height: 13px;
  margin: 0;
  border: 1px solid #adb5bd;
  background: #3c8dbc;
  position: relative;
}
.check-line input:checked::after {
  content: "\2713";
  position: absolute;
  inset: -3px 0 0 1px;
  color: #ffffff;
  font-size: 10px;
  line-height: 13px;
}
.table-scroll table.results-table { min-width: 0; }
.table-scroll table.stats-table { min-width: 0; }
.results-count, .pager { color: #444444; }
.pager .page { color: #444444; }
@media (max-width: 575px) {
  .page-head { flex-direction: column; align-items: stretch; gap: 24px; }
  .page-head .page-actions { display: flex; justify-content: flex-end; padding-top: 0; }
  .page-head h1 { line-height: 35px; }
  .search-card { margin-top: 7px; }
  .profile-card { margin-top: 36px; }
  .profile-card + .profile-card { margin-top: 44px; }
  .field-grid { row-gap: 27px; }
  .field .key { padding: 4px 10px; min-height: 29px; line-height: 21px; }
  .field .val { padding: 12px 10px 0; }
  .content { padding-bottom: 35px; }
}


/* layout corrections */
.field.brk { grid-column: 1; }
.field .val span { line-height: 26px; }
.field .key { padding: 7.5px 10px; line-height: 19px; min-height: 34px; }
.check-line { margin-top: 27.6px; }
.chart-caption { color: #444444; }
.filter-label { color: #444444; }
.results-table th .sort { color: #000000; }
.stat-info .value { margin-top: 3.2px; }
.filter-row { gap: 4px; }
.page-head.dash form.page-actions { width: auto; }
.req-table col:nth-child(1) { width: 7%; }
.req-table col:nth-child(2) { width: 8%; }
.req-table col:nth-child(3) { width: 5%; }
.req-table col:nth-child(4) { width: 15%; }
.req-table col:nth-child(5) { width: 40%; }
.req-table col:nth-child(6) { width: 8%; }
.req-table col:nth-child(7) { width: 17%; }
@media (max-width: 767px) {
  .page-head.dash form.page-actions { width: 100%; }
}
@media (max-width: 575px) {
  .section-head { margin-top: 24px; }
  .section-head h2 { align-items: flex-start; }
  .profile-card .card-body { padding: 12px 12px 24px; }
}

.pager-btn {
  width: 33px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
}
.pager-btn .ic { width: 13px; height: 13px; }


/* trigger inside the styled select box */
.el-trigger {
  position: absolute;
  inset: 0;
  padding: 0 30px 0 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}
.el-trigger .el-value {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.el-select .el-arrow { right: 12px; top: 15px; }

/* exact tokens from the original capture */
.brand { background: #5c3bee; }
.menu a { border-radius: 0; }
.menu li.active a { border-radius: 32px; }
.menu a p { max-width: none; }
.content { max-width: 1440px; }
.card-header { border-radius: var(--radius) var(--radius) 0 0; }
.stat-info .value { font-size: 14px; font-weight: 500; line-height: 17px; color: var(--dark); margin-top: 3.2px; }
.data-table { color: #606266; }
.data-table th { color: var(--dark); font-weight: 700; }
.data-table tfoot tr { font-weight: 400; }
.data-table tfoot td { font-weight: 400; }
.data-table tfoot td:first-child { color: #212529; }
.stats-table td, .stats-table th { padding: 7.5px 10.5px; }
.pager .page { color: #999999; }

/* phone stack corrections */
.h2-text { flex: 1 1 auto; }
.stat-card { overflow: hidden; }
.stat-info { min-width: 0; }
.stat-info .label { white-space: nowrap; overflow: hidden; }
@media (max-width: 575px) {
  .section-head { margin-top: 24px; }
  .section-head h2 { align-items: flex-start; }
  .h2-text { max-width: 105px; line-height: 30px; }
  .section-head .btn { margin-top: 2px; }
  .stat-grid { margin-top: 31px; }
  .bottom-chart-wrap { height: 385px; }
  .chart-caption { margin-top: 32px; }
}

.table-scroll table.results-table { min-width: 0; }
.table-scroll table.req-table { min-width: 0; }
@media (min-width: 768px) {
  .req-name { max-width: 190px; }
  .ev { max-width: 430px; }
}

@media (min-width: 576px) and (max-width: 991px) {
  .stats-table { min-width: 740px; }
}

.profile-card { margin-top: 50px; }
.profile-card + .profile-card { margin-top: 0; }
@media (min-width: 576px) and (max-width: 991px) {
  .table-scroll table.stats-table { min-width: 740px; }
}
.table-scroll table.results-table { min-width: 0; }
.table-scroll table.req-table { min-width: 0; }
@media (min-width: 992px) {
  .req-name { max-width: 155px; }
  .ev { max-width: 400px; }
}

@media (max-width: 575px) {
  .profile-card { margin-top: 36px; }
}


/* match the sidebar's two stacked blocks */
.sidebar { display: flex; flex-direction: column; }
.sidebar .brand { flex: 0 0 62px; }

/* ============================== round 2 corrections ============================== */
/* sidebar stacks the brand and menu blocks, like the original's block aside */
.sidebar { display: block; }
.sidebar .brand { flex: none; }

/* date filter: native date fields 251 px wide, form right-aligned on desktop */
.date-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  font: inherit;
  color: #606266;
  background: transparent;
}
.date-input input::-webkit-calendar-picker-indicator { margin: 0; padding: 0; }
@media (min-width: 992px) {
  .date-card .card-body { justify-content: flex-end; gap: 30px; padding-right: 51px; }
}
@media (max-width: 991px) {
  .date-card .card-body { gap: 10px; padding: 9.5px 20px; }
}

/* table columns as the original lays them out once the content is full width */
.req-table col:nth-child(1) { width: 10%; }
.req-table col:nth-child(2) { width: 9%; }
.req-table col:nth-child(3) { width: 10.5%; }
.req-table col:nth-child(4) { width: 11.5%; }
.req-table col:nth-child(5) { width: 42%; }
.req-table col:nth-child(6) { width: 6%; }
.req-table col:nth-child(7) { width: 11%; }

/* the chart cards keep their desktop height on phones in the original */
@media (max-width: 767px) {
  .chart-card { height: 493px; }
  .chart-wrap { height: 420px; }
}

/* phone spacing above the section heading, and the title row */
@media (max-width: 767px) {
  .page-head.dash { gap: 25px; }
  .page-head.dash h1 { line-height: 35px; }
}
@media (max-width: 575px) {
  .section-head { margin-top: 37px; }
  .profile-card + .profile-card { margin-top: 0; }
}

/* tables: fixed proportions only where the content is full width */
.results-table, .req-table { table-layout: auto; min-width: 0; }
@media (min-width: 992px) {
  .results-table { table-layout: fixed; min-width: 100%; }
  .req-table { table-layout: fixed; min-width: 100%; }
}
@media (min-width: 992px) {
  .req-name, .ev { max-width: none; }
}

@media (max-width: 991px) {
  .search-card .card-body { padding: 15px 13px 20px; }
  .tabs { margin-bottom: 15px; }
}

/* table rows use the original's 11 px vertical cell padding */
.data-table th, .data-table td { padding-top: 11px; padding-bottom: 11px; }
.stats-table th, .stats-table td { padding-top: 11px; padding-bottom: 11px; }
.filter-row .filter-label { margin-right: 0; }
@media (max-width: 575px) {
  .section-head { margin-top: 54px; }
  .stat-grid { margin-top: 18px; }
}
.results-top { margin-bottom: 0; }

@media (max-width: 575px) {
  .search-card { margin-top: 50px; }
  .date-card .card-body { flex-direction: column; align-items: center; gap: 10px; padding: 20px 20px 9.5px; }
  .date-label { text-align: center; }
  .date-input { width: 276px; }
  .search-icon-btn { align-self: flex-start; }
}
.req-table td { padding-top: 17px; padding-bottom: 17px; }
@media (max-width: 575px) {
  .table-scroll table.stats-table { min-width: 615px; }
  .filter-row { min-width: 615px; }
  .table-scroll table.stats-table { table-layout: fixed; }
  .stats-table th:nth-child(1), .stats-table td:nth-child(1) { width: 150px; }
  .stats-table th:nth-child(2), .stats-table td:nth-child(2) { width: 55px; }
  .stats-table th:nth-child(3), .stats-table td:nth-child(3) { width: 62px; }
  .stats-table th:nth-child(4), .stats-table td:nth-child(4) { width: 72px; }
  .stats-table th:nth-child(5), .stats-table td:nth-child(5) { width: 102px; }
  .stats-table th:nth-child(6), .stats-table td:nth-child(6) { width: 84px; }
  .stats-table th:nth-child(7), .stats-table td:nth-child(7) { width: 90px; }
}


.data-table th, .data-table td { padding-left: 8px; padding-right: 8px; }

@media (max-width: 991px) {
  .req-table td { padding-top: 11px; padding-bottom: 11px; }
}
@media (min-width: 576px) and (max-width: 991px) {
  .field { grid-template-columns: 51% 1fr; }
}
@media (max-width: 575px) {
  .profile-card { margin-top: 50px; }
  .card-header.purple { min-height: 47px; padding: 12px 20px; }
}
@media (max-width: 991px) {
  .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 576px) and (max-width: 991px) {
  .field { grid-template-columns: 52% 1fr; }
  .field .key { font-weight: 300; padding-left: 9px; padding-right: 9px; }
  .date-input { width: 115px; }
}
.results-top { margin-bottom: 0; }

.field.brk { grid-column: 1 / -1; grid-template-columns: 25% 1fr; }
@media (max-width: 575px) {
  .field.brk { grid-template-columns: 1fr; }
}
.field .key { background: #3c8dbc; }
@media (min-width: 992px) {
  .req-table td { padding-left: 12px; padding-right: 12px; }
}
.check-line input { background: #d1d1d1; border: 1px solid #c1c1c1; }
@media (max-width: 575px) {
  .profile-card .card-body { padding: 12px 12px 24px; }
}


/* ====================== round 3 corrections ====================== */
/* brand: bold white wordmark with the dotted mark, as in the captures */
.brand { display: flex; align-items: center; height: 62px; padding: 0 25px; color: #ffffff; }
.brand-logo { display: flex; align-items: center; height: 33px; color: #ffffff; }
.brand-mark { width: 14px; height: 24px; flex: 0 0 14px; margin-right: -3px; }
.brand-word { font-size: 24px; line-height: 33px; font-weight: 700; letter-spacing: -0.7px; padding-bottom: 1px; }

/* chart card header: the badge sits 12 px from the card edge */
.chart-card .card-header { padding-right: 12px; }

/* results tables: the original's tall sort header and compact function icons */
.results-table thead th { padding-top: 8px; padding-bottom: 0; }
.results-table th .sort { height: 38px; align-items: center; }
.results-table .icon-btn { width: 22px; height: 17px; }
.btn-evaluar { height: 35px; width: 94px; justify-content: center; padding: 0 6px; line-height: 11px; white-space: normal; text-align: center; }
.btn-evaluar.is-cumple { background: #28a745; }
.btn-evaluar.is-parcial { background: #ffc107; color: #1f2a37; }
.btn-evaluar.is-nocumple { background: #dc3545; }
.btn-evaluar .ic { width: 14px; height: 14px; }
.pager-btn.pager-next { color: #5c3bee; }
.pager .page { color: #444444; }

/* profile: key boxes and value lines follow the original's 29 / 25 px rhythm */
.card-header.purple { min-height: 45px; padding: 12px 20px; }
.profile-card .card-body { padding: 20px 13px 35px; }
.field-grid { row-gap: 16px; }
.field .key { min-height: 29px; padding: 5px 10px; line-height: 19px; }
.field .val { line-height: 25px; padding: 2px 0; }
.field .val span { line-height: 25px; }
.profile-card + .profile-card { margin-top: 13px; }
.check-line { margin-top: 36px; }

@media (max-width: 575px) {
  body.dash-page .nav-right { display: none; }
  .profile-card .card-body { padding: 20px 12px 35px; }
  .field-grid { row-gap: 26px; }
  .field .key { min-height: 29px; padding: 4px 10px; line-height: 21px; }
  .field .val { padding: 10px 10px 0; line-height: 25px; }
  .field .val span { line-height: 25px; }
  .profile-card + .profile-card { margin-top: 23px; }
  .content { padding-bottom: 45px; }
}

/* bottom compliance caption sits lower in the original */
@media (min-width: 576px) {
  .chart-caption { margin-top: 54px; }
  body.dash-page .content { padding-bottom: 13px; }
}

@media (max-width: 575px) {
  .stat-card { height: 80px; padding: 8px; }
  .stat-icon { width: 50px; min-width: 50px; height: 63px; }
  .stat-icon svg { width: 38px; height: 38px; }
  .stats-table th, .stats-table td { padding-top: 10px; padding-bottom: 10px; }
  .bottom-chart-wrap { height: 297px; }
  .content { padding-bottom: 35px; }
}

@media (max-width: 575px) {
  .bottom-chart-wrap { height: 324px; }
}

/* the value cell's old 34 px floor was stretching every profile row */
.field .val { min-height: 0; }
@media (min-width: 576px) {
  body.page-perfil .content { padding-bottom: 38px; }
}

/* lift the high-risk checkbox line so the first profile card ends on the original row */
.check-line { margin-top: 29px; }

/* zebra rows start shaded, as in every captured table */
.data-table tbody tr:nth-child(odd) { background: rgba(0, 0, 0, 0.05); }
.data-table tbody tr:nth-child(even) { background: #ffffff; }
/* the original's 38 px single-line row rhythm */
.results-table th, .results-table td { padding-top: 10.5px; padding-bottom: 10.5px; }
.stats-table th, .stats-table td { padding-top: 10.5px; padding-bottom: 10.5px; }

.results-table tbody tr { border-top: 0; }

@media (min-width: 992px) {
  .req-table td { padding-top: 17px; padding-bottom: 17px; }
}

/* page heights: the legal captures end with a large blank area below the table card */
@media (min-width: 992px) {
  body.page-normas .content { padding-bottom: 307px; }
  body.page-requisitos .content { padding-bottom: 358px; }
}
@media (min-width: 576px) and (max-width: 991px) {
  body.page-normas .content { padding-bottom: 168px; }
  body.page-requisitos .content { padding-bottom: 266px; }
  body.page-perfil .content { padding-bottom: 32px; }
}
@media (max-width: 575px) {
  body.page-normas .content { padding-bottom: 188px; }
  body.page-requisitos .content { padding-bottom: 245px; }
  body.page-perfil .content { padding-bottom: 48px; }
}

/* dashboard page-height tuning per width */
@media (min-width: 992px) {
  body.dash-page .content { padding-bottom: 25px; }
}
@media (min-width: 576px) and (max-width: 991px) {
  body.dash-page .content { padding-bottom: 36px; }
}
@media (max-width: 575px) {
  body.dash-page .content { padding-bottom: 23px; }
}

@media (max-width: 991px) {
  body.page-normas .results-table { table-layout: fixed; min-width: 900px; }
  body.page-normas .results-table col:nth-child(1) { width: 15.5% !important; }
  body.page-normas .results-table col:nth-child(2) { width: 12.1% !important; }
  body.page-normas .results-table col:nth-child(3) { width: 17.2% !important; }
  body.page-normas .results-table col:nth-child(4) { width: 20% !important; }
  body.page-normas .results-table col:nth-child(5) { width: 14.4% !important; }
  body.page-normas .results-table col:nth-child(6) { width: 10.8% !important; }
}

@media (max-width: 991px) {
  body.page-normas .results-table { width: 900px; min-width: 900px; }
}

/* keep the tablet/phone legal table in the original auto column flow */
@media (max-width: 991px) {
  body.page-normas .results-table { table-layout: auto; width: 100%; min-width: 0; }
  body.page-normas .results-table col:nth-child(1) { width: 10.2% !important; }
  body.page-normas .results-table col:nth-child(2) { width: 11.5% !important; }
  body.page-normas .results-table col:nth-child(3) { width: 47.8% !important; }
  body.page-normas .results-table col:nth-child(4) { width: 13.5% !important; }
  body.page-normas .results-table col:nth-child(5) { width: 9% !important; }
  body.page-normas .results-table col:nth-child(6) { width: 8% !important; }
}

@media (min-width: 576px) and (max-width: 991px) {
  body.dash-page .content { padding-bottom: 22px; }
}

/* keep the original logo asset in the DOM without changing the drawn wordmark */
.brand-logo { position: relative; }
.brand-img { position: absolute; left: 0; top: 0; width: 71px; height: 33px; opacity: 0; pointer-events: none; }
button.nav-toggle { border: 0; background: transparent; padding: 0; font: inherit; }

/* select nativo oculto; no duplicar texto visible */
.el-select {
  position: relative;
  overflow: visible;
}
.el-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
  appearance: none;
  z-index: 0;
  font-size: 16px;
}
.el-trigger {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 33px;
}
.el-dropdown {
  z-index: 90;
}

/* the logo asset stays rendered behind the wordmark, matching the original image size */
.brand { position: relative; }
.brand-img {
  position: absolute;
  left: 25px;
  top: 15px;
  width: 71px;
  height: 33px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.brand-logo { position: relative; z-index: 1; background: #5c3bee; }

/* logo wordmark scale matched to the capture */
.brand-word { font-size: 15px; letter-spacing: -0.4px; white-space: nowrap; }
.brand-mark { width: 12px; height: 20px; flex: 0 0 12px; margin-right: -2px; }
.brand-mark svg { width: 12px; height: 20px; }

/* tablet normas: the original keeps six columns at a fixed 900 px table width */
@media (min-width: 576px) and (max-width: 991px) {
  body.page-normas .results-table { table-layout: fixed; width: 900px; min-width: 900px; }
  body.page-normas .results-table col:nth-child(1) { width: 139px !important; }
  body.page-normas .results-table col:nth-child(2) { width: 109px !important; }
  body.page-normas .results-table col:nth-child(3) { width: 155px !important; }
  body.page-normas .results-table col:nth-child(4) { width: 180px !important; }
  body.page-normas .results-table col:nth-child(5) { width: 130px !important; }
  body.page-normas .results-table col:nth-child(6) { width: 97px !important; }
}

/* final: keep the original auto column flow on tablet/phone */
@media (max-width: 991px) {
  body.page-normas .results-table { table-layout: auto; width: 100%; min-width: 0; }
  body.page-normas .results-table col:nth-child(1) { width: 10.2% !important; }
  body.page-normas .results-table col:nth-child(2) { width: 11.5% !important; }
  body.page-normas .results-table col:nth-child(3) { width: 47.8% !important; }
  body.page-normas .results-table col:nth-child(4) { width: 13.5% !important; }
  body.page-normas .results-table col:nth-child(5) { width: 9% !important; }
  body.page-normas .results-table col:nth-child(6) { width: 8% !important; }
}

/* modal detalle norma / requisito */
.comply-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}
.comply-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px 24px;
}
.comply-modal h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  margin: 0 0 16px;
}
.comply-modal dl {
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  gap: 8px 16px;
  margin: 0;
}
.comply-modal dt { font-weight: 500; color: var(--dark); }
.comply-modal dd { margin: 0; color: var(--text); }
.comply-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.stat-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  transition: box-shadow 0.15s ease;
}
.stat-link:hover { box-shadow: 0 4px 14px rgba(92, 59, 238, 0.15); }
.btn-green[disabled] { opacity: 0.85; cursor: default; }
.chart-card .btn-green-label { margin-right: 4px; }

.comply-modal .btn-muted {
  background: #6c757d;
}
.req-sheet { width: min(1080px, 100%); }
.req-sheet-head, .eval-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.eval-x {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #606266;
}
.req-band {
  margin: 18px 0 10px;
  padding: 8px 14px;
  background: var(--purple);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}
.req-grid, .eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.req-field.wide, .eval-grid .wide { grid-column: 1 / -1; }
.req-key {
  background: #1f7bb6;
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
}
.req-val {
  min-height: 32px;
  padding: 6px 2px 10px;
  white-space: pre-wrap;
}
.eval-sheet { width: min(760px, 100%); }
.eval-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.eval-form input, .eval-form select, .eval-form textarea {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
}
.eval-form input[readonly] { background: #f5f7fa; }
.eval-save { height: 34px; padding: 0 16px; background: #28a745; }
.eval-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.eval-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.eval-form select,
.eval-form textarea {
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 8px 10px;
  font-family: inherit;
}

body.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f3f4f8 0%, #e8eaf2 100%); }
.login-wrap { width: 100%; max-width: 420px; padding: 24px; }
.login-card { background: #fff; border-radius: 8px; box-shadow: 0 12px 40px rgba(92, 59, 238, 0.12); padding: 32px 28px 28px; text-align: center; }
.login-card .login-title,
.login-card h1 { font-size: 1.35rem; margin: 16px 0 20px; color: #333; font-weight: 500; }
.maestros-layout { display: flex; min-height: 420px; }
.maestros-nav {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid var(--line);
}
.maestros-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.maestros-cat:hover { background: rgba(92, 59, 238, 0.08); }
.maestros-cat.is-active { background: var(--purple); color: #fff; }
.maestros-count { min-width: 1.5em; font-size: 12px; text-align: center; opacity: 0.85; }
.maestros-main { flex: 1; min-width: 0; padding: 16px 18px 20px; }
.maestros-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.maestros-head h2 { font-size: 18px; font-weight: 500; color: var(--dark); }
.maestros-hint { margin: -4px 0 12px; color: var(--text); font-size: 13px; line-height: 1.45; }
.maestros-hint:empty { display: none; }
.maestros-add, .maestros-search { display: flex; gap: 8px; margin-bottom: 12px; }
.maestros-add.is-users { flex-wrap: wrap; }
.maestros-add.is-users input { flex: 1 1 160px; }
.maestros-item.is-editing { flex-wrap: wrap; }
.maestros-add input, .maestros-add select, .maestros-search input, .maestros-edit {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font: inherit;
}
.maestros-list { display: flex; flex-direction: column; gap: 2px; }
.maestros-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 4px;
}
.maestros-item:nth-child(even) { background: #f8f9fb; }
.maestros-item.is-editing { background: rgba(92, 59, 238, 0.06); }
.maestros-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.maestros-actions, .maestros-confirm, .maestros-side { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.maestros-side { flex-direction: column; align-items: flex-end; }
.maestros .btn-muted { background: transparent; color: var(--text); border: 1px solid #dcdfe6; }
.maestros-confirm { color: var(--dark); font-size: 13px; }
.maestros-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.maestros-icon .ic { width: 16px; height: 16px; }
.maestros-icon:hover { background: rgba(92, 59, 238, 0.08); color: var(--purple); }
.maestros-icon.is-danger:hover { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.maestros-note { margin: 0 0 8px; color: var(--teal); }
.maestros-note.is-error { color: #dc3545; }
.maestros-row-error { margin: 0; color: #dc3545; font-size: 13px; }
.maestros-empty { margin: 8px 0 0; color: var(--text); }
@media (max-width: 760px) {
  .maestros-layout { flex-direction: column; }
  .maestros-nav {
    flex: none;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .maestros-cat { width: auto; white-space: nowrap; }
}
.login-brand { display: inline-block; text-decoration: none; }
.login-word { color: #5c3bee; font-size: 28px; font-weight: 700; font-style: italic; letter-spacing: -0.4px; line-height: 1.1; }
.login-remember { flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 13px; }
.login-forgot { font-size: 13px; color: #5c3bee; text-align: center; text-decoration: none; }
.login-forgot:hover { text-decoration: underline; }
.login-hint { font-size: 13px; color: var(--text); margin: 0 0 16px; text-align: left; line-height: 1.45; }
.login-ok { color: #2e7d32 !important; }
.login-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #606266; }
.login-form input,
.login-form select { border: 1px solid #dcdfe6; border-radius: 4px; padding: 10px 12px; font-size: 15px; background: #fff; color: #333; }
.login-submit { margin-top: 8px; width: 100%; }
.login-error { color: #c0392b; font-size: 13px; margin: 0; }

.comply-ai-note { margin: 0 0 12px; color: #606266; font-size: 14px; }
.comply-ai-card .card-body { display: flex; flex-direction: column; gap: 16px; }
.comply-ai-messages {
  min-height: 200px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px 14px;
  background: #f7f8fc;
  border-radius: 6px;
  border: 1px solid #ebeef5;
}
.comply-ai-msg {
  margin: 0 0 10px;
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.comply-ai-msg-user { margin-left: auto; background: #5c3bee; color: #fff; }
.comply-ai-msg-bot { margin-right: auto; background: #fff; color: #4a4a4a; border: 1px solid #ebeef5; }
.comply-ai-msg-wait { color: #606266; font-style: italic; }
.comply-ai-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.comply-ai-form textarea {
  width: 100%;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.module-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.module-search-input {
  flex: 1 1 220px;
  min-width: 160px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
}

html[data-theme="dark"] {
  --bg: #1b1e23;
  --text: #e4e6eb;
  --dark: #e4e6eb;
  --line: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}
html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #1b1e23;
  color: #e4e6eb;
}
html[data-theme="dark"] .bg-band { background: #1b1e23; }
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .el-select,
html[data-theme="dark"] .el-dropdown,
html[data-theme="dark"] .user-menu .dropdown,
html[data-theme="dark"] .date-input,
html[data-theme="dark"] .comply-modal,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .data-table tbody tr:nth-child(odd),
html[data-theme="dark"] .data-table tbody tr:nth-child(even),
html[data-theme="dark"] .comply-ai-msg-bot {
  background: #24282e;
  color: #e4e6eb;
  border-color: #3a4048;
}
html[data-theme="dark"] .nav-empresa-name { color: #e4e6eb; }
html[data-theme="dark"] .data-table tbody tr { border-top-color: #1b1e23; }
html[data-theme="dark"] .data-table tfoot tr,
html[data-theme="dark"] .stats-table tbody tr:nth-child(even) {
  background: #2c3138;
}
html[data-theme="dark"] .comply-ai-messages {
  background: #1b1e23;
  border-color: #3a4048;
}
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .module-search-input,
html[data-theme="dark"] .login-form input,
html[data-theme="dark"] .login-form select,
html[data-theme="dark"] .comply-ai-form textarea,
html[data-theme="dark"] .eval-form input,
html[data-theme="dark"] .eval-form select,
html[data-theme="dark"] .eval-form textarea {
  background: #1b1e23;
  color: #e4e6eb;
  border-color: #3a4048;
}
html[data-theme="dark"] .el-option { color: #e4e6eb; }
html[data-theme="dark"] .el-option:hover { background: #2c3138; }
html[data-theme="dark"] .user-menu .dropdown a:hover { background: #2c3138; }
html[data-theme="dark"] .results-count,
html[data-theme="dark"] .pager,
html[data-theme="dark"] .pager .page,
html[data-theme="dark"] .chart-caption,
html[data-theme="dark"] .filter-label,
html[data-theme="dark"] .login-hint,
html[data-theme="dark"] .login-form label,
html[data-theme="dark"] .login-card h1,
html[data-theme="dark"] .login-card .login-title,
html[data-theme="dark"] .comply-ai-note,
html[data-theme="dark"] .req-val,
html[data-theme="dark"] .comply-modal h2,
html[data-theme="dark"] .results-table .cont {
  color: #e4e6eb;
}
html[data-theme="dark"] body.login-page {
  background: #1b1e23;
}
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .nav-expand {
  color: rgba(255, 255, 255, 0.72);
}
html[data-theme="dark"] .stat-info .label,
html[data-theme="dark"] .stat-info .value {
  color: #e4e6eb;
}
.cal-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal-toolbar h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 500; text-align: center; }
.cal-nav, .cal-views { display: flex; gap: 4px; }
.cal-btn { height: 34px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff; color: #212529; cursor: pointer; }
.cal-btn.is-on { background: #5c3bee; border-color: #5c3bee; color: #fff; }
.cal-head, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head span { padding: 6px; text-align: center; text-transform: lowercase; color: #606266; }
.cal-day { min-height: 92px; border: 1px solid #e4e7ed; padding: 4px; }
.cal-days.is-week .cal-day { min-height: 160px; }
.cal-day.is-out { background: #fafafa; color: #c0c4cc; }
.cal-num { display: block; font-size: 13px; }
.cal-event { display: block; width: 100%; margin-top: 4px; padding: 2px 4px; border: 0; border-radius: 3px; background: #3788d8; color: #fff; font-size: 12px; text-align: left; cursor: pointer; }
.cal-agenda { list-style: none; margin: 0; padding: 8px 0; }
.cal-agenda li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #e4e7ed; }
.plan-activity { white-space: pre-line; }
.month-filter { display: flex; align-items: center; gap: 8px; }
.month-filter select { height: 34px; min-width: 180px; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
html[data-theme="dark"] .maestros-nav { border-color: #3a4048; }
html[data-theme="dark"] .maestros-cat { color: #e4e6eb; }
html[data-theme="dark"] .maestros-cat.is-active { background: var(--purple); color: #fff; }
html[data-theme="dark"] .maestros-head h2,
html[data-theme="dark"] .maestros-confirm { color: #e4e6eb; }
html[data-theme="dark"] .maestros-item:nth-child(even) { background: #24282e; }
html[data-theme="dark"] .maestros-item.is-editing { background: rgba(92, 59, 238, 0.18); }
html[data-theme="dark"] .maestros-icon { color: #c8cdd3; }
html[data-theme="dark"] .maestros-empty { color: #c8cdd3; }
html[data-theme="dark"] .maestros .btn-muted { color: #e4e6eb; border-color: #3a4048; }
html[data-theme="dark"] .cal-btn { background: #1b1e23; color: #e4e6eb; border-color: #3a4048; }
html[data-theme="dark"] .cal-btn.is-on { background: #5c3bee; color: #fff; }
html[data-theme="dark"] .cal-day { border-color: #3a4048; }
html[data-theme="dark"] .cal-day.is-out { background: #1b1e23; }
html[data-theme="dark"] .chart-menu {
  background: #24282e;
  border: 1px solid #3a4048;
}
html[data-theme="dark"] .chart-menu button { color: #e4e6eb; }
html[data-theme="dark"] .chart-menu button:hover { background: #2c3138; }
html[data-theme="dark"] .chart-menu button[aria-selected="true"] { color: #c4b5fd; }

.accesos-layout { display: flex; min-height: 420px; }
.accesos-nav {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--line);
}
.accesos-user {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.accesos-user.is-active { background: rgba(92, 59, 238, 0.12); color: var(--purple); }
.accesos-badge {
  flex: none;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
}
.accesos-main { flex: 1; padding: 16px 20px 20px; }
.accesos-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.accesos-head h2 { margin: 0; font-size: 18px; }
.accesos-note { margin: 8px 0 0; color: var(--teal); }
.accesos-note.is-error { color: #dc3545; }
.accesos-list { list-style: none; margin: 16px 0; padding: 0; }
.accesos-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.accesos-list label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.accesos .btn-muted { background: transparent; border: 1px solid var(--line); color: inherit; }
@media (max-width: 760px) {
  .accesos-layout { flex-direction: column; }
  .accesos-nav { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
}
html[data-theme="dark"] .accesos-nav { border-color: #3a4048; }
html[data-theme="dark"] .accesos-user.is-active { color: #fff; }
html[data-theme="dark"] .accesos-list li,
html[data-theme="dark"] .accesos .btn-muted { border-color: #3a4048; }
