/* ============================================================
   LAYOUT
   ============================================================ */

:root { --sidebar-w: 272px; }

/* Utilidades de espaciado — reutilizan la misma escala de 8px del
   resto del proyecto; existen para que las plantillas JS puedan
   ajustar sus márgenes por breakpoint en vez de usar style="" fijo. */
.u-mt-8  { margin-top: 8px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-16 { margin-top: 16px; }
.u-mb-8  { margin-bottom: 8px; }
.u-mb-12 { margin-bottom: 12px; }
.u-center { text-align: center; }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: var(--backdrop); z-index: 190; backdrop-filter: blur(3px); }
.sidebar-overlay.show { display: block; }

.sidebar {
  position: fixed; top: 16px; left: 16px; bottom: 16px;
  width: var(--sidebar-w); z-index: 200; padding: 24px 16px 16px;
  background: var(--sidebar-bg); border: 1px solid var(--stroke);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-close {
  display: none; position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--stroke);
  background: var(--surface-3); color: var(--txt-dim); align-items: center; justify-content: center; cursor: pointer;
}
.sidebar-close svg { width: 16px; height: 16px; }
.sidebar-close:hover { color: var(--txt); border-color: var(--stroke-strong); }

.sidebar-institucional { display: block; min-width: 0; padding-inline: 4px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--stroke); }

.sidebar-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.sidebar-brand-image { display: block; width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; border-radius: var(--radius-sm); }
.sidebar-brand-copy { min-width: 0; }
.sidebar-brand-title { font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--txt); }
.sidebar-brand-sub { font-size: 11px; color: var(--txt-faint); letter-spacing: .1em; margin-top: 2px; }

.menu { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
  color: var(--txt-dim); text-decoration: none; border: 1px solid transparent; transition: .15s;
}
.menu-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.menu-item:hover { background: var(--surface-hover); color: var(--txt); }
.menu-item.active { background: var(--surface-3); border-color: var(--stroke-strong); color: var(--txt); box-shadow: var(--shadow-inset); }
.menu-item.active svg { color: var(--accent); }

.menu-group { display: flex; flex-direction: column; min-width: 0; }
.menu-toggle-item { width: 100%; font-family: inherit; text-align: left; background: transparent; cursor: pointer; }
.menu-toggle-item span { flex: 1; min-width: 0; }
.menu-toggle-item.branch-active { color: var(--txt); }
.menu-toggle-item.branch-active > svg:first-child { color: var(--accent); }
.menu-chevron { width: 14px !important; height: 14px !important; margin-left: auto; transition: transform .18s ease; }
.menu-group.open > .menu-toggle-item > .menu-chevron { transform: rotate(90deg); }
.menu-sub { display: none; flex-direction: column; gap: 2px; }
.menu-group.open > .menu-sub { display: flex; }
.menu-sub-item { padding-left: 28px; color: var(--txt-dim); }
.catalog-sub { position: relative; margin-left: 28px; padding-left: 12px; }
.catalog-sub::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 0; width: 1px; background: var(--stroke); }
.menu-leaf { min-height: 36px; padding: 8px 12px; font-size: 13px; color: var(--txt-faint); }
.menu-leaf.active { color: var(--txt); }

.sidebar-user { margin-top: 16px; padding: 16px; border-radius: var(--radius-md); background: var(--surface-3); border: 1px solid var(--stroke); box-shadow: var(--shadow-inset); }
.sidebar-user-card { display: flex; align-items: center; gap: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-grad); color: var(--on-accent); display: grid; place-items: center; font-size: 12.5px; font-weight: 800; flex-shrink: 0; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 700; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-meta { font-size: 11px; color: var(--txt-faint); margin-top: 2px; }
.sidebar-user-role { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--info-bg); color: var(--info-text); border: 1px solid var(--info-border); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: capitalize; }

.app-main { margin-left: calc(var(--sidebar-w) + 32px); min-height: 100vh; display: flex; flex-direction: column; padding-right: 16px; }

/* TOPBAR */
.topbar-shell { padding: 16px 0 8px; position: sticky; top: 0; z-index: 100; background: var(--app-bg); }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-pill); box-shadow: var(--shadow-card); }
.topbar-title { font-size: 16px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-toggle { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--stroke); background: var(--surface-3); color: var(--txt); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.theme-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--surface-hover); border: 1px solid var(--stroke); color: var(--txt-dim); font-size: 12.5px; font-weight: 700; font-family: inherit; cursor: pointer; transition: .2s; }
.theme-toggle:hover { color: var(--txt); border-color: var(--stroke-strong); }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: inline-flex; }

.date-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--surface-hover); border: 1px solid var(--stroke); border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; color: var(--txt-dim); white-space: nowrap; flex-shrink: 0; }
.date-pill svg { width: 13px; height: 13px; flex-shrink: 0; }

/* CONTENIDO */
.content { flex: 1; padding: 16px 0 40px; }

.page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-header-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--stroke); color: var(--accent); flex-shrink: 0; }
.page-header-icon svg { width: 20px; height: 20px; }
.page-header-copy { flex: 1; min-width: 0; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--txt); margin: 0; overflow-wrap: break-word; }
.page-sub { font-size: 13px; color: var(--txt-dim); margin: 4px 0 0; overflow-wrap: break-word; }
.muted { color: var(--txt-dim); font-size: 13px; }

.dash-section { margin-bottom: 24px; }
.dash-section-title { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--txt-faint); margin: 0 0 12px; }

/* KPI */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
a.metric, .metric { position: relative; display: block; background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.metric:hover { border-color: var(--stroke-strong); transform: translateY(-2px); }
.metric-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--surface-3); border: 1px solid var(--stroke); }
.metric-icon svg { width: 20px; height: 20px; }
.metric-icon.blue { color: var(--info-text); }
.metric-icon.green { color: var(--success-text); }
.metric-icon.red { color: var(--danger-text); }
.metric-icon.amber { color: var(--warning-text); }
.metric-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--txt-faint); margin-bottom: 8px; }
.metric-value { font-size: 32px; font-weight: 800; color: var(--txt); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: break-word; word-break: break-word; }

.grid-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.mini-stat { display: block; background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-card); }
.mini-stat-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-faint); margin-bottom: 8px; }
.mini-stat-value { font-size: 21px; font-weight: 800; color: var(--txt); letter-spacing: -.5px; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }

/* PANEL */
.panel { background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--stroke); }
.panel-header h2 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--txt); margin: 0; overflow-wrap: break-word; }
.panel-fuente { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--stroke); text-align: right; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--txt-faint); }

.dashboard-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rankings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* FILTROS */
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; }
.filter-field label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--txt-faint); margin-bottom: 8px; }
.search-input, .filter-field input, .filter-field select {
  width: 100%; min-height: 42px; padding: 10px 14px; border: 1px solid var(--stroke);
  border-radius: var(--radius-sm); background: var(--surface-3); font-size: 13.5px; color: var(--txt);
  font-family: inherit; outline: none; box-shadow: var(--shadow-inset); transition: border-color .18s;
}
.search-input:focus, .filter-field input:focus, .filter-field select:focus { border-color: var(--accent); }
.filter-field select option { background: var(--surface-3); color: var(--txt); }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* BOTONES */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 20px; border: none; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; cursor: pointer; transition: .2s; text-decoration: none; font-family: inherit; white-space: nowrap; background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn svg { width: 15px; height: 15px; }
.btn:hover { color: var(--on-accent); transform: translateY(-2px); }
.btn.secondary { background: var(--surface-3); color: var(--txt); border: 1px solid var(--stroke); box-shadow: none; }
.btn.secondary:hover { border-color: var(--stroke-strong); }

/* BADGES */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.ok { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.badge.warn { background: var(--warning-bg); color: var(--warning-text); border-color: var(--warning-border); }
.badge.fail { background: var(--danger-bg); color: var(--danger-text); border-color: var(--danger-border); }
.badge.info { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.badge.neutral { background: var(--surface-3); color: var(--txt-faint); border-color: var(--stroke-strong); }
.badge.neutral::before { background: var(--txt-faint); }

/* TABLAS */
.table-wrap { overflow-x: auto; background: var(--surface-1); border: 1px solid var(--stroke); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--txt-faint); border-bottom: 1px solid var(--stroke); white-space: nowrap; }
td { padding: 16px; font-size: 14px; line-height: 1.5; color: var(--txt); border-bottom: 1px solid var(--stroke); vertical-align: middle; overflow-wrap: break-word; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--surface-hover); }
.td-muted { color: var(--txt-dim); font-size: 13px; }
.table-empty td { text-align: center; padding: 52px 20px; color: var(--txt-faint); font-size: 13.5px; }

.mapa-panel { padding: 16px; }
.mapa-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mapa-estado { margin: 0; font-size: 13px; color: var(--txt-dim); }
.mapa-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font-size: 13px; color: var(--txt-dim); cursor: pointer; user-select: none; }
.mapa-toggle input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.mapa-contenedor { width: 100%; height: 560px; border-radius: var(--radius-md); border: 1px solid var(--stroke); overflow: hidden; background: var(--surface-3); }

/* EMPTY STATE */
.empty-state { padding: 64px 24px; text-align: center; }
.empty-state-icon { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--stroke); display: grid; place-items: center; color: var(--txt-faint); }
.empty-state-icon svg { width: 24px; height: 24px; }
.empty-state-title { font-size: 15px; font-weight: 700; color: var(--txt); margin: 0 0 8px; }
.empty-state-sub { font-size: 13px; color: var(--txt-dim); margin: 0; max-width: 420px; margin-inline: auto; }

/* MODAL */
.modal-backdrop { display: none; position: fixed; inset: 0; background: var(--backdrop); backdrop-filter: blur(3px); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.show { display: flex; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; position: relative; background: var(--surface-1); border: 1px solid var(--stroke-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 28px; }
.modal-title { font-size: 16px; font-weight: 800; margin: 0 0 8px; padding-right: 28px; }
.modal-body { font-size: 13.5px; color: var(--txt-dim); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--stroke); background: var(--surface-3); color: var(--txt-dim); font-size: 18px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--txt); border-color: var(--stroke-strong); }

/* ============================================================
   RESPONSIVE — tablet (≤960px): activa el patrón off-canvas
   ============================================================ */
@media (max-width: 960px) {
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w) - 24px)); }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; padding: 0 16px; }
  .topbar-toggle { display: flex; width: 44px; height: 44px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rankings-grid { grid-template-columns: 1fr; }
  .dashboard-bottom { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — móvil (≤768px, foco 375-430px)
   Rediseño a fondo: más aire, controles compactos, todo apilado.
   ============================================================ */
@media (max-width: 768px) {
  /* --- layout general / safe-area --- */
  .app-main { padding: 0 16px; }
  .content { padding: 12px 0 max(40px, env(safe-area-inset-bottom)); }
  .topbar-shell { padding: max(12px, env(safe-area-inset-top)) 0 8px; }

  /* --- sidebar: a 85% de ancho, borde a borde, con botón de cierre --- */
  :root { --sidebar-w: min(85vw, 340px); }
  .sidebar {
    top: 0; left: 0; bottom: 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: max(24px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }
  .sidebar-close { display: inline-flex; }
  .sidebar-institucional { padding-right: 36px; }

  /* --- topbar compacta (~52px) --- */
  .topbar { padding: 6px 14px; gap: 8px; min-height: 44px; border-radius: var(--radius-pill); }
  .topbar-title { font-size: 14.5px; }
  .topbar-toggle { width: 40px; height: 40px; }
  .topbar-right { gap: 6px; }
  .theme-toggle, .date-pill {
    width: 36px; height: 36px; padding: 0; min-height: 0;
    justify-content: center; border-radius: 50%;
  }
  .theme-toggle-text, .date-pill-text { display: none; }

  /* --- jerarquía / tipografía --- */
  .page-header { gap: 12px; margin-bottom: 16px; }
  .page-header-icon { width: 36px; height: 36px; }
  .page-header-icon svg { width: 18px; height: 18px; }
  .page-title { font-size: 21px; }
  .page-sub { font-size: 12.5px; }
  .panel-header h2 { font-size: 15px; }
  .anchor-title { font-size: 14px; }

  /* --- KPI grid: 2 columnas, deja crecer la tarjeta en alto --- */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .metric, a.metric { padding: 16px; }
  .metric-icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .metric-icon svg { width: 16px; height: 16px; }
  .metric-label { font-size: 11px; margin-bottom: 6px; }
  .metric-value { font-size: 25px; }
  .grid-compact { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mini-stat { padding: 14px; }
  .mini-stat-value { font-size: 19px; }

  /* --- panels: menos padding, separación clara --- */
  .panel { padding: 16px; border-radius: var(--radius-md); }
  .panel + .panel { margin-top: 12px; }
  .panel-header { margin-bottom: 12px; padding-bottom: 12px; }
  .stack { gap: 12px; }
  .dashboard-bottom, .rankings-grid { gap: 12px; }
  .panel-fuente { text-align: left; margin-top: 12px; padding-top: 10px; }
  .two-col, .three-col { gap: 12px; }

  /* --- filtros: apilados, altura y separación táctil --- */
  .filter-bar { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .filter-field label { margin-bottom: 6px; }
  .search-input, .filter-field input, .filter-field select { min-height: 44px; font-size: 14px; }
  .filter-actions { gap: 8px; }

  /* --- botones / toggles: mínimo 44x44 y separación --- */
  .btn { min-height: 44px; width: 100%; }
  .filter-actions .btn { width: auto; flex: 1; }
  .theme-toggle { min-height: 0; }
  .menu-item { min-height: 44px; }
  .tab { min-height: 44px; }
  .mapa-toggle { min-height: 44px; }
  .mapa-toggle input { width: 18px; height: 18px; }

  /* --- mapa: alto de viewport, cuadrícula 1 columna --- */
  .mapa-panel { padding: 12px; }
  .mapa-contenedor { height: 55vh; }
}


/* Auditoría móvil: protección de flex/grid, foco y áreas táctiles. */
.content, .page-header, .panel, .panel-header, .filter-bar, .map-layout, .mapa-mapwrap,
.chart-grid, .chart-scroll, .dashboard-bottom > *, .rankings-grid > *, .grid > *,
.grid-compact > *, .stack > * { min-width: 0; }
.panel-header h2 { flex: 1; min-width: 0; }
.page-sub, .panel-note, .placa p, .legend-row, .mapa-estado, td { overflow-wrap: anywhere; }

button, select, input, .tab, .menu-item, .mapa-toggle, .leaflet-control-zoom a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible, select:focus-visible, input:focus-visible, .tab:focus-visible,
.menu-item:focus-visible, .mapa-toggle:has(input:focus-visible), .leaflet-control-zoom a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mapa-toggle {
  position: relative; min-height: 44px; padding: 0 6px 0 34px; border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.mapa-toggle input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 1;
}
.mapa-toggle::before, .mapa-toggle::after { content: ""; position: absolute; pointer-events: none; }
.mapa-toggle::before {
  left: 6px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  border: 1px solid var(--stroke-strong); border-radius: 6px; background: var(--surface-3);
  box-shadow: var(--shadow-inset);
}
.mapa-toggle::after {
  left: 12px; top: 50%; width: 5px; height: 9px; transform: translateY(-58%) rotate(45deg);
  border-right: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); opacity: 0;
}
.mapa-toggle:has(input:checked)::before { background: var(--accent); border-color: var(--accent); }
.mapa-toggle:has(input:checked)::after { opacity: 1; }

@media (hover: none) {
  button:active, .btn:active, .menu-item:active, .tab:active, .mapa-toggle:active, .leaflet-control-zoom a:active {
    opacity: .78; transform: scale(.98);
  }
  .mapa-toggle:active { background: var(--surface-hover); }
}

@media (max-width: 768px) {
  .topbar { min-height: 52px; padding: 4px 8px; }
  .topbar-toggle, .theme-toggle, .date-pill, .sidebar-close { width: 44px; height: 44px; min-height: 44px; }
  .sidebar-close { top: 12px; right: 12px; }
  .rank-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(48px, .85fr) auto; align-items: center; }
  .rank-row .rank-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
}
