/* ==========================================================================
   Vulnerability Management · Security Audit Platform — estilos del dashboard
   Los valores que dependen de datos (colores de severidad, porcentajes,
   rotación del dial) siguen inline en el template; todo lo demás vive aquí.
   ========================================================================== */

/* ── Globales ── */
body {
  margin: 0;
  background: #1c1512;
  font-family: "Nunito Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #e79a45; }
a:hover { color: #f3b76c; }
::selection { background: rgba(224,138,52,.35); }

/* Oculta el template crudo hasta que el runtime (support.js) lo renderiza */
x-dc { display: none !important; }

/* ── Componentes del template ── */
.app-shell {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 18% -10%, #3a2d24 0%, #241b16 55%, #180f0c 100%);
  padding: 22px;
  box-sizing: border-box;
  color: #e9dece;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.sidebar {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 2px 6px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(#f0a755, #cf7526);
  border: 1px solid #8c4f14;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 3px rgba(0,0,0,.25), 0 4px 8px rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #3a1f06;
  font-weight: 900;
}

.brand-name {
  font-family: Pacifico, cursive;
  font-size: 24px;
  line-height: 1;
  color: #f3e7d6;
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 0 12px rgba(240,167,85,.18);
}

.brand-tagline {
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9a8877;
  margin-top: 4px;
}

.nav-menu {
  background: linear-gradient(#3b2f27, #2f251e);
  border: 1px solid #1f1712;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.4), 0 8px 18px rgba(0,0,0,.45);
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item-icon {
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.5));
}

.nav-item-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.nav-item-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
}

.nav-item-sublabel {
  display: block;
  font-size: 9.5px;
  color: #907e6d;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-badge {
  background: linear-gradient(#f0a755, #d07b28);
  color: #351902;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #8c4f14;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.5);
}

.chevron {
  color: #6d5d4f;
  font-size: 14px;
  font-weight: 700;
}

.panel {
  background: linear-gradient(#3b2f27, #2f251e);
  border: 1px solid #1f1712;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.45);
  padding: 14px;
}

.panel-label {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8f7d6c;
  margin-bottom: 10px;
}

.row-center-10 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.engine-on-label {
  position: absolute;
  left: 9px;
  top: 5px;
  font-size: 9.5px;
  font-weight: 900;
  color: rgba(255,255,255,.85);
  letter-spacing: .06em;
}

.engine-off-label {
  position: absolute;
  right: 7px;
  top: 5px;
  font-size: 9.5px;
  font-weight: 900;
  color: rgba(0,0,0,.35);
  letter-spacing: .06em;
}

.engine-status {
  font-size: 11.5px;
  color: #b8a695;
  line-height: 1.3;
}

.engine-status-sub {
  color: #7f6e5e;
  font-size: 10px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(#6b584a, #4a3a2e);
  border: 1px solid #241b15;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 4px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #efe2d0;
}

.user-card-info {
  flex: 1;
  min-width: 0;
}

.user-card-name {
  font-size: 12.5px;
  font-weight: 700;
}

.user-card-role {
  font-size: 10px;
  color: #8b7968;
}

.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.page-heading {
  flex: 1;
  min-width: 220px;
}

.page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: #f4e9d9;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}

.page-subtitle {
  margin: 3px 0 0;
  font-size: 12px;
  color: #93806e;
  letter-spacing: .04em;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(#251d17, #2f251e);
  border: 1px solid #1a130f;
  border-radius: 999px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.06);
  padding: 8px 14px;
  min-width: 190px;
}

.search-icon {
  color: #7d6b5b;
  font-size: 13px;
}

.search-input {
  background: transparent;
  border: 0;
  outline: none;
  color: #e5d9c8;
  font-family: inherit;
  font-size: 12.5px;
  width: 100%;
}

.tabbar {
  display: flex;
  gap: 4px;
  background: linear-gradient(#3d3128, #2e251e);
  border: 1px solid #1f1712;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 10px rgba(0,0,0,.45);
  padding: 5px;
}

.btn-primary-lg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(#f2ad5c, #d17c28);
  color: #3a1c03;
  border: 1px solid #8c4f14;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 4px rgba(0,0,0,.18), 0 4px 9px rgba(0,0,0,.5);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: .01em;
}

.btn-primary-lg:hover {
  filter: brightness(1.06) !important;
}

.btn-primary-lg:active {
  box-shadow: inset 0 3px 6px rgba(0,0,0,.4) !important;
}

.view-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card-risk {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.4), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.card-head-row {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.card-kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9a8877;
}

.card-kicker-en {
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a3907d;
}

.dial {
  position: relative;
  width: 186px;
  height: 186px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dial-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(from 210deg, #c8452f 0turn, #e07a2f .10turn, #d4b24c .22turn, #6f9a74 .36turn, rgba(255,255,255,.05) .40turn, rgba(255,255,255,.05) 1turn);
  opacity: .75;
  filter: blur(.3px);
}

.dial-well {
  position: absolute;
  inset: 13px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, #4a3b30, #241a14);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.7);
}

.dial-face {
  position: absolute;
  inset: 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 12%, #f6ecdc, #cdbca7 62%, #9e8b76);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.28), inset 0 3px 6px rgba(255,255,255,.8), 0 8px 18px rgba(0,0,0,.55);
}

.dial-pointer {
  position: absolute;
  inset: 24px;
  transition: transform .5s cubic-bezier(.3,1.4,.4,1);
}

.dial-pointer-dot {
  position: absolute;
  top: 13px;
  left: 50%;
  margin-left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(#f0a755, #c9701f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 3px rgba(0,0,0,.5);
}

.dial-readout {
  position: relative;
  text-align: center;
  margin-top: 46px;
}

.dial-value {
  font-size: 40px;
  font-weight: 900;
  color: #3b2b1c;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.dial-band {
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6d5a45;
  font-weight: 700;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.range-end {
  font-size: 10px;
  color: #8b7968;
  letter-spacing: .1em;
}

.range-track {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(#1d1610, #2a201a);
  border: 1px solid #17110d;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.7);
  position: relative;
  cursor: pointer;
}

.range-fill {
  position: absolute;
  inset: 1px auto 1px 1px;
  border-radius: 999px;
  background: linear-gradient(#f2ad5c, #cf7723);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.range-thumb {
  position: absolute;
  top: -5px;
  margin-left: -10px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: linear-gradient(#f8f0e2, #c4b3a0);
  border: 1px solid #6a5849;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(0,0,0,.6);
}

.card-stat {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.4), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 150px;
}

.stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stat-kicker-en {
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a3907d;
  margin-top: 3px;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(#4a3d33, #382c24);
  border: 1px solid #241b15;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  color: #f5ead9;
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
}

.stat-delta {
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 6px;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(#1d1610, #2a201a);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.7);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 18px;
  align-items: start;
}

.card-asset-map {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.4), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
  grid-column: span 2;
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #f2e6d4;
}

.section-kicker {
  margin: 3px 0 0;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a3907d;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #b9a795;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 2px rgba(0,0,0,.5);
}

.legend-count {
  color: #f0e3d1;
}

.zone-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zone {
  background: linear-gradient(#2a211a, #322820);
  border: 1px solid #1b1410;
  border-radius: 12px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.55);
  padding: 12px 14px 14px;
}

.zone-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.zone-title {
  font-size: 12px;
  font-weight: 800;
  color: #e7dac7;
}

.zone-title-en {
  color: #a3907d;
  font-weight: 400;
  font-size: 10.5px;
}

.zone-meta {
  font-size: 10.5px;
  color: #8b7968;
}

.asset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-chip {
  height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 2px 4px rgba(0,0,0,.4);
  cursor: default;
}

.asset-chip:hover {
  filter: brightness(1.18) !important;
}

/* Zonas en columnas por severidad */
.sev-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sev-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sev-col-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #b9a795;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}

.sev-col-chip {
  height: auto;
  min-height: 30px;
  padding: 7px 10px;
  line-height: 1.3;
}

.sev-col-empty {
  font-size: 10.5px;
  color: #6d5d4f;
  font-style: italic;
  padding: 6px 2px;
}

@media (max-width: 720px) {
  .sev-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.asset-count {
  font-size: 9.5px;
  background: rgba(0,0,0,.28);
  border-radius: 999px;
  padding: 1px 5px;
}

.card-findings {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.4), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
  min-width: 0;
}

.section-title-sm {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 900;
  color: #f2e6d4;
}

.section-kicker-sm {
  margin: 0 0 16px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a3907d;
}

.list-7 {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.finding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: linear-gradient(#413429, #342a21);
  border: 1px solid #221a14;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 2px 5px rgba(0,0,0,.4);
  padding: 11px 12px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.finding:hover {
  filter: brightness(1.14) !important;
}

.finding-bar {
  width: 10px;
  height: 34px;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 3px rgba(0,0,0,.5);
  flex: none;
}

.item-title {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #f0e4d2;
}

.item-sub {
  display: block;
  font-size: 10.5px;
  color: #8d7b6a;
  margin-top: 2px;
}

.finding-cvss {
  font-size: 10px;
  font-weight: 900;
  color: #2b1c0c;
  border-radius: 999px;
  padding: 3px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

.chevron-sm {
  color: #6d5d4f;
  font-weight: 700;
}

.card-audits {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pill-group {
  display: flex;
  gap: 5px;
  background: linear-gradient(#2a211a, #322820);
  border: 1px solid #1b1410;
  border-radius: 10px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.55);
  padding: 5px;
  align-self: flex-start;
}

.audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) auto;
  gap: 18px;
  align-items: center;
  background: linear-gradient(#413429, #342a21);
  border: 1px solid #221a14;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 3px 7px rgba(0,0,0,.4);
  padding: 14px 16px;
}

.cell {
  min-width: 0;
}

.audit-client {
  font-size: 14px;
  font-weight: 800;
  color: #f2e6d4;
}

.audit-scope {
  font-size: 11px;
  color: #8d7b6a;
  margin-top: 3px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #a79483;
  margin-bottom: 6px;
}

.progress-value {
  font-weight: 800;
  color: #e9a35b;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(#1d1610, #2a201a);
  border: 1px solid #17110d;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.7);
  position: relative;
}

.progress-thumb-sm {
  position: absolute;
  top: -4px;
  margin-left: -9px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(#f8f0e2, #c4b3a0);
  border: 1px solid #6a5849;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(0,0,0,.6);
}

.audit-status-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audit-last-scan {
  font-size: 11.5px;
  color: #a79483;
}

.audit-scan-btn {
  flex: none;
  padding: 8px 20px;
}

.status-badge {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,.5);
  border-radius: 999px;
  padding: 5px 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card-client {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.45);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(#6b584a, #453629);
  border: 1px solid #241b15;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 6px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #f2e6d4;
  flex: none;
}

.client-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #f2e6d4;
}

.client-sector {
  font-size: 10.5px;
  color: #8d7b6a;
}

.client-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.score-dial {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 15%, #f6ecdc, #bfae99);
  border: 1px solid #6a5849;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,.25), inset 0 2px 4px rgba(255,255,255,.7), 0 4px 9px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  opacity: .8;
  box-shadow: 0 0 10px rgba(0,0,0,.4);
}

.score-value {
  font-size: 19px;
  font-weight: 900;
  color: #3b2b1c;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.client-stats {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.client-counts {
  font-size: 11px;
  color: #a79483;
}

.client-next {
  font-size: 11px;
  color: #8d7b6a;
}

.client-next-date {
  color: #e9a35b;
  font-weight: 700;
}

.client-band {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}

.client-actions {
  display: flex;
  gap: 8px;
}

.btn-secondary {
  flex: 1;
  background: linear-gradient(#4a3d33, #3a2e25);
  color: #ead9c4;
  border: 1px solid #241b15;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 2px 5px rgba(0,0,0,.45);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.btn-secondary:hover {
  filter: brightness(1.15) !important;
}

.btn-primary {
  flex: 1;
  background: linear-gradient(#f2ad5c, #d17c28);
  color: #3a1c03;
  border: 1px solid #8c4f14;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 5px rgba(0,0,0,.45);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.07) !important;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
}

.card-calendar {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
  min-width: 0;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-nav {
  display: flex;
  gap: 5px;
}

.btn-nav-prev {
  width: 34px;
  height: 28px;
  background: linear-gradient(#4a3d33, #3a2e25);
  color: #ddccb6;
  border: 1px solid #241b15;
  border-radius: 8px 0 0 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 2px 4px rgba(0,0,0,.45);
  cursor: pointer;
  font-size: 12px;
}

.btn-nav-next {
  width: 34px;
  height: 28px;
  background: linear-gradient(#4a3d33, #3a2e25);
  color: #ddccb6;
  border: 1px solid #241b15;
  border-radius: 0 8px 8px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 2px 4px rgba(0,0,0,.45);
  cursor: pointer;
  font-size: 12px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.weekday {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a3907d;
  padding-bottom: 4px;
}

.day-num {
  font-size: 12px;
  font-weight: 800;
}

.day-dots {
  display: flex;
  gap: 3px;
  height: 6px;
  align-items: center;
}

.day-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
}

.list-8 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appt {
  display: flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(#413429, #342a21);
  border: 1px solid #221a14;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 2px 5px rgba(0,0,0,.4);
  padding: 12px 14px;
}

.appt-time {
  flex: none;
  text-align: center;
  min-width: 52px;
}

.appt-time-value {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #f0e4d2;
}

.appt-duration {
  display: block;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a3907d;
}

.divider-v {
  width: 1px;
  align-self: stretch;
  background: rgba(0,0,0,.45);
  box-shadow: 1px 0 0 rgba(255,255,255,.06);
}

.appt-tag {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}

.empty-state {
  text-align: center;
  padding: 28px 10px;
  font-size: 12px;
  color: #a3907d;
}

.card-users {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.users-header {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 16px;
  padding: 0 14px 6px;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a3907d;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: linear-gradient(#413429, #342a21);
  border: 1px solid #221a14;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 3px 7px rgba(0,0,0,.4);
  padding: 12px 14px;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(#6b584a, #453629);
  border: 1px solid #241b15;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 4px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 900;
  color: #f2e6d4;
}

.user-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #f2e6d4;
}

.user-email {
  display: block;
  font-size: 10.5px;
  color: #8d7b6a;
}

.role-badge {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,.5);
  border-radius: 999px;
  padding: 5px 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
  justify-self: start;
}

.user-last {
  font-size: 11px;
  color: #9d8b7a;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
}

.card-report-builder {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.align-stretch {
  align-self: stretch;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-round {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 20%, #55453a, #33281f);
  border: 1px solid #1f1712;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -3px 6px rgba(0,0,0,.4), 0 4px 9px rgba(0,0,0,.55);
  color: #e6d7c2;
  font-size: 14px;
  cursor: pointer;
}

.btn-round:hover {
  filter: brightness(1.15) !important;
}

.btn-play {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 14%, #f8f0e2, #cdbca7 60%, #9e8b76);
  border: 1px solid #6a5849;
  box-shadow: inset 0 3px 6px rgba(255,255,255,.8), inset 0 -8px 14px rgba(0,0,0,.28), 0 8px 18px rgba(0,0,0,.55);
  color: #3b2b1c;
  font-size: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-play:active {
  box-shadow: inset 0 4px 10px rgba(0,0,0,.45) !important;
}

.step-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #a79483;
  margin-bottom: 7px;
}

.step-fill {
  position: absolute;
  inset: 1px auto 1px 1px;
  border-radius: 999px;
  background: linear-gradient(#f2ad5c, #cf7723);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  transition: width .4s ease;
}

.action-row {
  display: flex;
  gap: 8px;
  align-self: stretch;
}

.btn-secondary-lg {
  flex: 1;
  background: linear-gradient(#4a3d33, #3a2e25);
  color: #ead9c4;
  border: 1px solid #241b15;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 2px 5px rgba(0,0,0,.45);
  padding: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary-md {
  flex: 1;
  background: linear-gradient(#f2ad5c, #d17c28);
  color: #3a1c03;
  border: 1px solid #8c4f14;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 5px rgba(0,0,0,.45);
  padding: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.report-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(#413429, #342a21);
  border: 1px solid #221a14;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 2px 5px rgba(0,0,0,.4);
  padding: 11px 13px;
}

.report-format {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(#4a3d33, #382c24);
  border: 1px solid #241b15;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  color: #e9a35b;
}

.card-alerts {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert-row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: linear-gradient(#413429, #342a21);
  border: 1px solid #221a14;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 3px 7px rgba(0,0,0,.4);
  padding: 13px 15px;
}

.alert-dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 999px;
}

.alert-time {
  font-size: 10.5px;
  color: #a3907d;
  white-space: nowrap;
}

.card-settings {
  background: linear-gradient(#3b2f27, #2e241d);
  border: 1px solid #1f1712;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.45);
  padding: 20px;
}

.section-kicker-lg {
  margin: 0 0 18px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a3907d;
}

.setting-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #ecdfcd;
}

.setting-sub {
  display: block;
  font-size: 10.5px;
  color: #8b7968;
  margin-top: 2px;
}

.slider-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack-list {
  display: flex;
  flex-direction: column;
}

.stack-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.stack-row:first-child { padding-top: 0; }
.stack-row:last-child { border-bottom: 0; box-shadow: none; padding-bottom: 0; }

.stack-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
}

.slider-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #ecdfcd;
}

.slider-value {
  font-size: 12px;
  font-weight: 900;
  color: #e9a35b;
}

.slider-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(#1d1610, #2a201a);
  border: 1px solid #17110d;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.7);
  position: relative;
  cursor: pointer;
}

.profile-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #ecdfcd;
  margin-bottom: 9px;
}

.profile-group {
  display: flex;
  gap: 5px;
  background: linear-gradient(#2a211a, #322820);
  border: 1px solid #1b1410;
  border-radius: 10px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.55);
  padding: 5px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 6px 10px;
  font-size: 10.5px;
  color: #a3907d;
  letter-spacing: .06em;
}

/* ── Estados controlados desde dashboard.js ── */

/* Menú lateral */
.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  font-family: inherit;
  color: #c7b5a1;
  background: transparent;
  box-shadow: none;
}
.nav-item.is-active {
  color: #f6ead8;
  background: linear-gradient(#4e4034,#3d3128);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 3px 0 0 #e9942f, 0 2px 5px rgba(0,0,0,.4);
}
.nav-item:hover { filter: brightness(1.12) !important; }
.nav-item .nav-item-icon { color: #9d8b78; }
.nav-item.is-active .nav-item-icon { color: #f7b163; }

/* Barra de accesos rápidos del header */
.tab-btn {
  width: 38px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #241b15;
  color: #bdab97;
  background: linear-gradient(#4a3d33,#3a2e25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 2px 4px rgba(0,0,0,.45);
}
.tab-btn.is-active {
  border-color: #8c4f14;
  color: #3a1c03;
  background: linear-gradient(#f2ad5c,#d17c28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 4px rgba(0,0,0,.45);
}

/* Filtros tipo píldora (auditorías, perfil de auditoría) */
.pill {
  background: transparent;
  color: #a8967f;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 15px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .03em;
}
.pill.is-active {
  background: linear-gradient(#f2ad5c,#d17c28);
  color: #3a1c03;
  border-color: #8c4f14;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 4px rgba(0,0,0,.45);
  font-weight: 900;
}

/* Interruptores on/off — tamaño base 62×28, --lg 74×30, --sm 54×26 */
.switch {
  position: relative;
  width: 62px;
  height: 28px;
  flex: none;
  border-radius: 999px;
  border: 1px solid #1a130f;
  background: linear-gradient(#2a211a,#3a2e25);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.07);
  cursor: pointer;
  padding: 0;
}
.switch.is-on { background: linear-gradient(#7fae85,#4f7f58); }
.switch--lg { width: 74px; height: 30px; }
.switch--sm { width: 54px; height: 26px; }
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 20%, #fbf5ea, #c6b5a1);
  border: 1px solid #6a5849;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,.55);
  transition: left .18s ease;
}
.switch.is-on .switch-knob { left: 37px; }
.switch--lg .switch-knob { width: 24px; height: 24px; }
.switch--lg.is-on .switch-knob { left: 47px; }
.switch--sm .switch-knob { width: 20px; height: 20px; }
.switch--sm.is-on .switch-knob { left: 31px; }

/* Días del calendario */
.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 46px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #221a14;
  color: #e4d6c2;
  background: linear-gradient(#413429,#342a21);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.35);
}
.cal-day.is-outside {
  cursor: default;
  color: #4e4239;
  background: linear-gradient(#2c231c,#282017);
}
.cal-day.is-selected {
  border-color: #8c4f14;
  color: #3a1c03;
  background: linear-gradient(#f2ad5c,#d17c28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 4px rgba(0,0,0,.35);
}

/* Alertas silenciadas */
.alert-row.is-muted { opacity: .45; }
.btn-mute {
  background: linear-gradient(#4a3d33,#3a2e25);
  color: #d9c8b3;
  border: 1px solid #241b15;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 4px rgba(0,0,0,.4);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.btn-mute.is-muted { background: linear-gradient(#3a2e25,#2d241d); }
