@charset "UTF-8";

:root {
  --adm-bg: #f4f6f9;
  --adm-surface: #fff;
  --adm-text: #1a2332;
  --adm-muted: #5c6778;
  --adm-border: #dde3ec;
  --adm-primary: #1e3a5f;
  --adm-accent: #c9a962;
  --adm-radius: 8px;
  --adm-font: system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body.admin-body {
  margin: 0;
  font-family: var(--adm-font);
  color: var(--adm-text);
  background: var(--adm-bg);
  min-height: 100vh;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  flex: 0 0 260px;
  width: 260px;
  background: var(--adm-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.85rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
}

.admin-sidebar-brand {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 0.25rem 0.25rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0.75rem;
}

.admin-sidebar-logo {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

.admin-sidebar-tagline {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--adm-radius);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav-item.is-active {
  background: rgba(201, 169, 98, 0.22);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--adm-accent);
}

.admin-nav-icon {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  opacity: 0.95;
}

.admin-nav-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.admin-nav-label {
  line-height: 1.2;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  min-width: 0;
}

.admin-sidebar-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav-item--logout {
  color: rgba(255, 255, 255, 0.8);
}

.admin-main {
  flex: 1;
  min-width: 0;
}

.admin-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    flex: none;
    min-height: auto;
    position: relative;
    padding: 1rem;
  }

  .admin-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .admin-sidebar-footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .admin-nav-item,
  .admin-sidebar-user {
    padding: 0.5rem 0.65rem;
  }

  .admin-sidebar-tagline {
    display: none;
  }
}

.admin-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-card h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 1rem;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  color: var(--adm-primary);
}

.stat span {
  color: var(--adm-muted);
  font-size: 0.85rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--adm-border);
}

table.data th {
  color: var(--adm-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pendiente { background: #fff3cd; color: #856404; }
.badge-en_revision { background: #cce5ff; color: #004085; }
.badge-aprobado { background: #d4edda; color: #155724; }
.badge-rechazado { background: #f8d7da; color: #721c24; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-end;
}

.filters input,
.filters select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  font: inherit;
}

.filters--with-status-tabs {
  display: block;
}

.filters-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.filters-toolbar__status {
  flex: 1 1 auto;
  min-width: 0;
}

.filters-toolbar__search {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: auto;
}

.filters-toolbar__search input[type="search"] {
  width: 11.5rem;
  max-width: 11.5rem;
  min-width: 0;
}

.status-filter {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8f4ed 0%, #f3efe8 100%);
  border: 1px solid #e8e0d4;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.status-filter__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--adm-text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.status-filter__item:hover {
  color: var(--adm-primary);
}

.status-filter__item.is-active {
  background: var(--adm-surface);
  color: var(--adm-text);
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.1);
}

.status-filter__item:not(.status-filter__item--all)::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--adm-border);
}

.status-filter__item--pendiente::before { background: #e0a800; }
.status-filter__item--en_revision::before { background: #2f7dd1; }
.status-filter__item--aprobado::before { background: #2d9f5f; }
.status-filter__item--rechazado::before { background: #d64550; }

.status-filter__count {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--adm-muted);
}

.status-filter__item.is-active .status-filter__count {
  color: var(--adm-muted);
}

.btn {
  display: inline-flex;
  padding: 0.55rem 1rem;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  background: #fff;
  color: var(--adm-text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--adm-primary);
  border-color: var(--adm-primary);
  color: #fff;
}

.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.85rem; }

.alert-error {
  background: #f8d7da;
  color: #721c24;
  padding: 0.75rem 1rem;
  border-radius: var(--adm-radius);
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  padding: 0.75rem 1rem;
  border-radius: var(--adm-radius);
  margin-bottom: 1rem;
}

.detail-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
}

.detail-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--adm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-block p {
  margin: 0.15rem 0;
}

.login-box {
  max-width: 400px;
  margin: 4rem auto;
}

.login-logo {
  display: block;
  width: min(280px, 92%);
  height: auto;
  margin: 0 auto 1rem;
}

.login-box label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.login-box input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  font: inherit;
}

/* —— Formularios admin (Zoho, etc.) —— */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
}

.admin-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--adm-text);
}

.admin-form-field .detail-input,
.admin-form-field textarea.detail-input {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.zoho-textarea {
  min-height: 5.5rem;
  resize: vertical;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-form-hint {
  font-size: 0.78rem;
  color: var(--adm-muted);
  line-height: 1.35;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.zoho-trap {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.zoho-page-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.zoho-page-lead {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--adm-muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.zoho-cred-panel {
  margin-bottom: 1rem;
}

.zoho-cred-status {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: #f4f7fb;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  display: grid;
  gap: 0.5rem;
}

.zoho-cred-status li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.zoho-cred-status span {
  color: var(--adm-muted);
}

.zoho-help-details summary {
  list-style: none;
}

.zoho-help-details summary::-webkit-details-marker {
  display: none;
}

.zoho-help-inner {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--adm-border);
}

.com-zoho-help-sub {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--adm-primary);
}

.mapa-filters-card {
  margin-bottom: 1rem;
}

.mapa-filters {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
  margin-bottom: 0;
}

.mapa-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.mapa-layer-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mapa-layer-label {
  font-size: 0.85rem;
  color: var(--adm-muted);
}

.mapa-layer-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.mapa-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.mapa-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--adm-accent, #1e3a5f);
}

.mapa-rank-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
}

.mapa-rank-detail {
  font-size: 0.75rem;
  color: var(--adm-muted);
  font-weight: normal;
}

.mapa-unmapped-tag {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--adm-muted);
}

.mapa-mini-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0;
}

.mapa-stat-chip {
  padding: 0.4rem 0.6rem;
  min-width: 4.75rem;
}

.mapa-stat-chip strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.mapa-stat-chip span {
  font-size: 0.68rem;
  line-height: 1.25;
  margin-top: 0.1rem;
}

.mapa-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 960px) {
  .mapa-layout {
    grid-template-columns: 1fr minmax(240px, 320px);
  }
}

.mapa-chart {
  width: 100%;
  height: min(58vh, 520px);
  min-height: 320px;
  max-height: 520px;
}

.mapa-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--adm-muted);
}

.mapa-legend-bar {
  flex: 1;
  max-width: 200px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8eef5, #1e3a5f);
  border: 1px solid var(--adm-border);
}

.mapa-rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 520px;
  overflow: auto;
}

.mapa-rank-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--adm-border);
  font-size: 0.9rem;
}

.mapa-rank-name {
  flex: 1;
  min-width: 0;
}

.mapa-unmapped-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--adm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mapa-unmapped-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--adm-muted);
}

.mapa-unmapped-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

/* —— Dashboard (inicio) —— */

.dash {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: calc(var(--adm-radius) + 4px);
  background: linear-gradient(135deg, var(--adm-primary) 0%, #2a4f7a 55%, #1a3050 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.22);
}

.dash-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.dash-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.dash-lead {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.dash-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.dash-hero-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--adm-radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.dash-hero-metric--accent {
  background: rgba(201, 169, 98, 0.22);
  border-color: rgba(201, 169, 98, 0.45);
}

.dash-hero-metric-value {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dash-hero-metric-label {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.dash-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.dash-panel {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: calc(var(--adm-radius) + 2px);
  padding: 1.25rem 1.35rem 1.15rem;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.05);
}

.dash-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--adm-border);
}

.dash-panel-title-wrap {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  min-width: 0;
}

.dash-panel-icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #eef2f8, #fff);
  border: 1px solid var(--adm-border);
  color: var(--adm-primary);
}

.dash-panel-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.dash-panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--adm-text);
}

.dash-panel-desc {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--adm-muted);
  line-height: 1.35;
}

.dash-panel-link {
  white-space: nowrap;
  border-color: var(--adm-border);
  font-weight: 600;
}

.dash-panel-link:hover {
  border-color: var(--adm-primary);
  color: var(--adm-primary);
}

.dash-kpi-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 520px) {
  .dash-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dash-kpi {
  position: relative;
  padding: 0.85rem 0.9rem 0.75rem;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  background: #fafbfc;
  overflow: hidden;
}

.dash-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--adm-border);
}

.dash-kpi-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--adm-primary);
  letter-spacing: -0.02em;
}

.dash-kpi-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--adm-muted);
  line-height: 1.25;
}

.dash-kpi-pct {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--adm-muted);
  opacity: 0.85;
}

.dash-kpi--total {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #f8fafc 0%, #fff 100%);
  border-color: #d4dce8;
}

.dash-kpi--total::before {
  background: var(--adm-accent);
  width: 4px;
}

.dash-kpi--total .dash-kpi-value {
  font-size: 2rem;
}

.dash-kpi--pendiente::before { background: #e0a800; }
.dash-kpi--en_revision::before { background: #2f7dd1; }
.dash-kpi--aprobado::before { background: #2d9f5f; }
.dash-kpi--rechazado::before { background: #d64550; }

.dash-kpi--pendiente { background: #fffdf5; }
.dash-kpi--en_revision { background: #f5f9ff; }
.dash-kpi--aprobado { background: #f4fbf6; }
.dash-kpi--rechazado { background: #fff6f7; }

.dash-panel-foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--adm-border);
}

.dash-text-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--adm-primary);
  text-decoration: none;
}

.dash-text-link:hover {
  color: #2a4f7a;
  text-decoration: underline;
}

/* —— Ficha de solicitud (detalle) —— */

.detail-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-top {
  margin: 0;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--adm-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.detail-back:hover {
  color: var(--adm-primary);
}

.detail-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: calc(var(--adm-radius) + 4px);
  background: linear-gradient(135deg, var(--adm-primary) 0%, #2a4f7a 55%, #1a3050 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.2);
}

.detail-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.detail-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.detail-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.detail-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.detail-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 100%;
  word-break: break-all;
}

.detail-quick-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.detail-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  text-align: right;
}

.detail-status-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.detail-meta-line {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.detail-meta-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.detail-alert {
  margin: 0;
}

.detail-action-card {
  border-color: #d4dce8;
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.06);
}

.detail-action-head {
  margin-bottom: 1rem;
}

.detail-action-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.detail-action-desc {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--adm-muted);
}

.detail-action-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1rem;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 10rem;
}

.detail-field--grow {
  flex: 1 1 14rem;
  min-width: min(100%, 14rem);
}

.detail-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--adm-muted);
}

.detail-input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  font: inherit;
  width: 100%;
  background: #fff;
}

.detail-input:focus {
  outline: 2px solid rgba(30, 58, 95, 0.25);
  border-color: var(--adm-primary);
}

.detail-save-btn {
  flex-shrink: 0;
  font-weight: 600;
}

.detail-sections {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .detail-sections {
    grid-template-columns: 1fr 1fr;
  }

  .detail-panel--wide {
    grid-column: 1 / -1;
  }
}

.detail-panel {
  padding: 1.15rem 1.35rem 1.25rem;
}

.detail-panel-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--adm-border);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-primary);
}

.detail-dl {
  margin: 0;
}

.detail-dl-row {
  display: grid;
  gap: 0.2rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef1f5;
}

.detail-dl-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 520px) {
  .detail-dl-row {
    grid-template-columns: minmax(8rem, 34%) 1fr;
    align-items: start;
  }
}

.detail-dl dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--adm-muted);
}

.detail-dl dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.detail-muted {
  color: var(--adm-muted);
  font-weight: 400;
}

.detail-link {
  color: var(--adm-primary);
  font-weight: 500;
  word-break: break-word;
}

.detail-link:hover {
  text-decoration: underline;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-chips li {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: #eef2f8;
  border: 1px solid #dde3ec;
  color: var(--adm-text);
}

.detail-flag {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-flag--yes {
  background: #d4edda;
  color: #155724;
}

.detail-flag--no {
  background: #f1f3f6;
  color: var(--adm-muted);
}

.detail-text-block {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--adm-radius);
  background: #f8fafc;
  border: 1px solid var(--adm-border);
  font-size: 0.88rem;
  line-height: 1.5;
}

.detail-doc-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 420px) {
  .detail-doc-grid {
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  }
}

.detail-doc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  text-decoration: none;
  color: var(--adm-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.detail-doc:hover {
  border-color: var(--adm-primary);
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
}

.detail-doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #eef2f8;
  color: var(--adm-primary);
}

.detail-doc-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.detail-doc-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.detail-doc-hint {
  font-size: 0.75rem;
  color: var(--adm-muted);
}

/* —— Comercial / Zoho dashboards —— */

.com-dash {
  gap: 1.25rem;
}

.com-dash .com-hero {
  align-items: center;
  position: relative;
  overflow: hidden;
}

.com-dash .com-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -3rem;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.com-hero-sync-value {
  font-size: 1.35rem !important;
  letter-spacing: 0.02em;
}

.com-sync-form {
  margin: 0;
  display: flex;
  align-items: stretch;
}

.com-btn-sync {
  align-self: stretch;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--adm-radius);
  background: #fff;
  color: var(--adm-primary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.com-btn-sync:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.com-flash {
  padding: 0.75rem 1rem;
  border-radius: var(--adm-radius);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.com-flash--ok {
  background: #eef8f1;
  border-color: #b8dfc4;
  color: #1f5c32;
}

.com-flash--err {
  background: #fff5f6;
  border-color: #f0c2c7;
  color: #8b2630;
}

.com-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  padding: 0.35rem;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: calc(var(--adm-radius) + 2px);
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.05);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.com-tab {
  flex: 0 0 auto;
  padding: 0.55rem 0.95rem;
  border-radius: calc(var(--adm-radius) - 1px);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--adm-muted);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.com-tab:hover {
  background: #f0f4f9;
  color: var(--adm-primary);
}

.com-tab.is-active {
  background: var(--adm-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25);
}

.com-main {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.com-section {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: calc(var(--adm-radius) + 2px);
  padding: 1.2rem 1.35rem 1.3rem;
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.04);
}

.com-section-title {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--adm-border);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--adm-primary);
  letter-spacing: -0.01em;
}

.com-diario-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.com-diario-head .com-section-title {
  margin-bottom: 0.35rem;
  padding-bottom: 0;
  border-bottom: none;
}

.com-diario-owner-label {
  font-weight: 600;
  color: var(--adm-text-muted, #5c6778);
}

.com-diario-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0;
}

.com-diario-filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--adm-text-muted, #5c6778);
}

.com-diario-filter-select {
  min-width: 12rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  background: #fff;
  font-size: 0.9rem;
  color: var(--adm-text);
}

.com-section--funnel {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.com-section--funnel-dense {
  padding: 0.75rem 1rem 0.65rem;
}

.com-section--funnel-dense .com-section-title {
  margin-bottom: 0.55rem;
  padding-bottom: 0.4rem;
  font-size: 0.95rem;
}

.com-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.com-funnel--shape {
  gap: 0.28rem;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.35rem 0 0.15rem;
  position: relative;
}

/* Guías laterales del embudo (solo decoración) */
.com-funnel--shape::before,
.com-funnel--shape::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.15rem;
  width: 2px;
  pointer-events: none;
  background: linear-gradient(180deg, #b8c7dc 0%, #dfe6f0 100%);
  opacity: 0.85;
}

.com-funnel--shape::before {
  left: 0;
  transform: skewX(14deg);
  transform-origin: top left;
}

.com-funnel--shape::after {
  right: 0;
  transform: skewX(-14deg);
  transform-origin: top right;
}

.com-funnel--shape .com-funnel-step {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.com-funnel--shape .com-funnel-step__band {
  width: var(--funnel-band, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 0.38rem 0.85rem 0.32rem;
  border-radius: 5px;
  border: 1px solid rgba(47, 125, 209, 0.22);
  background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%);
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.06);
  box-sizing: border-box;
}

.com-funnel--shape .com-funnel-step.is-alert .com-funnel-step__band {
  border-color: rgba(214, 69, 80, 0.45);
  background: linear-gradient(180deg, #fff0f0 0%, #fff 100%);
}

.com-funnel--shape .com-funnel-step__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.com-funnel--shape .com-funnel-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--adm-text);
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
}

.com-funnel--shape .com-funnel-count {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.1;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.com-funnel--shape .com-funnel-meta {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--adm-muted);
  text-align: center;
}

.com-note--funnel {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  line-height: 1.35;
}

.com-gauge-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .com-gauge-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.com-gauge {
  padding: 1.05rem 1.1rem;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  background: #fafbfc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.com-gauge:hover {
  border-color: #c8d4e4;
  box-shadow: 0 4px 12px rgba(26, 35, 50, 0.06);
}

.com-gauge-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--adm-muted);
}

.com-gauge-head strong {
  color: var(--adm-text);
  font-size: 1rem;
}

.com-gauge-bar {
  height: 11px;
  border-radius: 999px;
  background: #e8edf4;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(26, 35, 50, 0.06);
}

.com-gauge-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f7dd1, #1e3a5f);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.com-gauge-bar--gold span {
  background: linear-gradient(90deg, #d4b978, #9a7b3c);
}

.com-gauge-meta {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--adm-muted);
  line-height: 1.4;
}

.com-funnel--visual .com-funnel-step {
  width: min(100%, var(--com-funnel-width, 100%));
  text-align: center;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.05);
}

.com-funnel--visual.com-funnel--shape .com-funnel-step {
  width: 100%;
  box-shadow: none;
}

.com-funnel-step {
  padding: 0.75rem 1rem;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  background: #fff;
}

.com-funnel-step.is-alert {
  border-color: #e8a0a0;
  background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
}

.com-funnel-arrow {
  text-align: center;
  color: var(--adm-accent);
  font-size: 0.9rem;
  line-height: 1;
}

.com-funnel-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--adm-muted);
}

.com-funnel-count {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--adm-primary);
  letter-spacing: -0.02em;
}

.com-funnel-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--adm-muted);
}

.com-section--conversion .com-section-title {
  text-align: center;
}

.com-section--conversion .com-note {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.com-conversion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 720px;
  margin: 0 auto;
}

.com-conversion-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 2.2fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.04);
}

.com-conversion-row.is-alert {
  border-color: #e8a0a0;
  background: linear-gradient(90deg, #fff8f8 0%, #fff 40%);
}

.com-conversion-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--adm-primary);
  line-height: 1.25;
}

.com-conversion-from {
  color: var(--adm-muted);
  font-weight: 600;
}

.com-conversion-arrow {
  color: var(--adm-accent);
  font-weight: 700;
}

.com-conversion-to {
  font-weight: 700;
}

.com-conversion-track {
  height: 0.65rem;
  border-radius: 999px;
  background: #e8edf4;
  overflow: hidden;
}

.com-conversion-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5a9fd4 0%, #2f7dd1 100%);
  transition: width 0.35s ease;
}

.com-conversion-row--high .com-conversion-fill {
  background: linear-gradient(90deg, #6bc48a 0%, #2d9d5a 100%);
}

.com-conversion-row--low .com-conversion-fill {
  background: linear-gradient(90deg, #e8a0a0 0%, #d64545 100%);
}

.com-conversion-row--mid .com-conversion-fill {
  background: linear-gradient(90deg, #e8c547 0%, #c9a227 100%);
}

.com-conversion-pct {
  text-align: right;
  min-width: 4.5rem;
}

.com-conversion-pct strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--adm-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.com-conversion-counts {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--adm-muted);
}

@media (max-width: 640px) {
  .com-conversion-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .com-conversion-pct {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    min-width: 0;
  }
}

.com-dash .table-wrap {
  margin-top: 0.15rem;
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  overflow: auto;
  background: #fff;
}

.com-dash .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.com-dash .admin-table th,
.com-dash .admin-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--adm-border);
  vertical-align: middle;
}

.com-dash .admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fb;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--adm-muted);
  white-space: nowrap;
}

.com-dash .admin-table tbody tr:last-child td {
  border-bottom: none;
}

.com-dash .admin-table tbody tr:hover td {
  background: #f8fafc;
}

.com-dash .admin-table tfoot td {
  border-top: 2px solid var(--adm-border);
  font-weight: 600;
}

.com-dash .admin-table a {
  color: var(--adm-primary);
  font-weight: 600;
  text-decoration: none;
}

.com-dash .admin-table a:hover {
  text-decoration: underline;
}

.com-table .com-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.com-table--metrics th:not(:first-child),
.com-table--metrics td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.com-table--diario {
  min-width: 56rem;
}

.com-table--diario th,
.com-table--diario td {
  white-space: nowrap;
}

.com-table--rank td:first-child {
  font-weight: 600;
}

.com-row-rank-1 td {
  background: linear-gradient(90deg, rgba(201, 169, 98, 0.12) 0%, transparent 55%);
}

.com-row-rank-2 td {
  background: linear-gradient(90deg, rgba(47, 125, 209, 0.08) 0%, transparent 55%);
}

.com-row-rank-3 td {
  background: linear-gradient(90deg, rgba(45, 159, 95, 0.08) 0%, transparent 55%);
}

.com-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: var(--adm-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.com-row-rank-1 .com-rank-badge {
  background: linear-gradient(135deg, #c9a962, #9a7b3c);
}

.com-note {
  font-size: 0.84rem;
  color: var(--adm-muted);
  line-height: 1.5;
  margin: 0.65rem 0 0;
}

.com-note--tight {
  margin-top: 0.5rem;
}

.com-actions {
  margin: 1rem 0 0;
}

.com-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--adm-surface);
  border: 1px dashed var(--adm-border);
  border-radius: calc(var(--adm-radius) + 2px);
}

.com-empty-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef2f8, #fff);
  border: 1px solid var(--adm-border);
  box-shadow: inset 0 1px 0 #fff;
  position: relative;
}

.com-empty-icon::after {
  content: "";
  position: absolute;
  inset: 28% 22% 22% 22%;
  border: 2px solid var(--adm-primary);
  border-radius: 2px 2px 0 0;
  opacity: 0.35;
  border-bottom: none;
}

.com-empty-icon::before {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 28%;
  height: 2px;
  background: var(--adm-accent);
  border-radius: 1px;
  box-shadow: 0 -6px 0 var(--adm-primary), 0 -12px 0 #2f7dd1;
  opacity: 0.45;
}

.com-empty-title {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--adm-text);
}

.com-empty-text {
  margin: 0;
  max-width: 22rem;
  font-size: 0.88rem;
  color: var(--adm-muted);
  line-height: 1.45;
}

.com-setup-banner {
  border-radius: var(--adm-radius);
}

.com-setup-banner a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.com-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--adm-border);
}

.com-dot--hot { background: #2d9f5f; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(45, 159, 95, 0.35); }
.com-dot--warm { background: #e0a800; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(224, 168, 0, 0.35); }
.com-dot--cold { background: #d64550; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(214, 69, 80, 0.35); }

.com-target-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .com-target-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.com-target-card {
  padding: 0.85rem 1rem;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  background: #fafbfc;
}

.com-target-card-title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--adm-muted);
}

.com-target-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.com-target-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--adm-border);
  font-size: 0.84rem;
}

.com-target-list li:last-child {
  border-bottom: none;
}

.com-target-list strong {
  font-variant-numeric: tabular-nums;
  color: var(--adm-primary);
}

/* Comercial: objetivo vs dato real */
.com-data-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  font-size: 0.78rem;
  color: var(--adm-muted);
}

.com-data-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.com-data-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.com-data-legend-item--real .com-data-swatch {
  background: #2f7dd1;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 95, 0.2);
}

.com-data-legend-item--target .com-data-swatch {
  background: #fff4d6;
  border: 1px dashed #c9a962;
}

.com-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.com-tag--real {
  color: #1e4a7a;
  background: #e8f2fc;
  border: 1px solid rgba(47, 125, 209, 0.35);
}

.com-tag--target {
  color: #7a5c12;
  background: #fff8e6;
  border: 1px dashed #c9a962;
}

.com-section--zoho-data .com-section-title::after {
  content: " · Zoho CRM";
  font-weight: 600;
  font-size: 0.72rem;
  color: #2f7dd1;
  letter-spacing: 0;
  text-transform: none;
}

.com-metric-block {
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--adm-radius) - 2px);
  margin-bottom: 0.65rem;
}

.com-metric-block:last-child {
  margin-bottom: 0;
}

.com-metric-block--target {
  background: #fffdf5;
  border: 1px dashed #dcc99a;
}

.com-metric-block--real {
  background: #f5f9ff;
  border: 1px solid rgba(47, 125, 209, 0.28);
}

.com-metric-block-label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.com-metric-block--target .com-metric-block-label {
  color: #8a6914;
}

.com-metric-block--real .com-metric-block-label {
  color: #1e4a7a;
}

.com-metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.com-metric-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.84rem;
  border-bottom: 1px dotted rgba(26, 35, 50, 0.08);
}

.com-metric-list li:last-child {
  border-bottom: none;
}

.com-metric-value--real {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #1e3a5f;
}

.com-metric-value--target {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #8a6914;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: #fff8e6;
  border: 1px dashed #dcc99a;
}

.com-compare {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.com-compare-of {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--adm-muted);
  text-transform: lowercase;
}

.com-compare-sep {
  color: var(--adm-muted);
  font-weight: 400;
  margin: 0 0.1rem;
}

.com-gauge--real {
  border-color: rgba(47, 125, 209, 0.35);
  background: #f8fbff;
}

.com-gauge-head .com-metric-value--real,
.com-gauge-head .com-metric-value--target {
  font-size: 1rem;
}

.com-dash .dash-kpi--has-target {
  display: flex;
  flex-direction: column;
  min-height: 6.5rem;
  border: 1px solid rgba(47, 125, 209, 0.2);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 55%);
}

.com-dash .dash-kpi--has-target::before {
  background: #2f7dd1;
}

.com-dash .dash-kpi--has-target .dash-kpi-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  font-size: 1.35rem;
}

.com-dash .dash-kpi--has-target .dash-kpi-target-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8a6914;
}

.com-dash .dash-kpi--has-target .dash-kpi-pct {
  position: static;
  margin-top: auto;
  padding-top: 0.45rem;
  text-align: right;
  font-size: 0.72rem;
  line-height: 1.2;
}

.com-dash .dash-kpi--real-only::before {
  background: #2f7dd1;
}

.com-table-caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e4a7a;
}

.com-summary-row {
  background: linear-gradient(90deg, #eef2f8 0%, #f4f7fb 100%);
}

.com-dash .dash-kpi-grid {
  gap: 0.75rem;
}

.com-dash .dash-kpi {
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 35, 50, 0.04);
}

.com-dash .dash-kpi::before {
  background: var(--adm-accent);
}

.com-kpi-targets h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.92rem;
}

.com-zoho-steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.com-zoho-steps li {
  margin-bottom: 0.85rem;
}

.com-zoho-steps ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.com-zoho-pre {
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  background: #1a2332;
  color: #e8edf4;
  border-radius: var(--adm-radius);
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.45;
}

.com-zoho-pre code {
  white-space: pre;
}

.com-zoho-faq {
  margin-top: 1rem;
  font-size: 0.86rem;
}

.com-zoho-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--adm-primary);
}

.com-zoho-faq ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--adm-muted);
}

@media (min-width: 900px) {
  .com-dash .dash-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
