:root {
  --ops-bg: #04111f;
  --ops-panel: #061b2f;
  --ops-panel-2: #071f37;
  --ops-line: rgba(46, 154, 216, .35);
  --ops-line-soft: rgba(128, 173, 205, .18);
  --ops-blue: #38c8ff;
  --ops-blue-soft: #9edcff;
  --ops-text: #f5fbff;
  --ops-muted: #91b8d7;
  --ops-danger: #ff5f7f;
}

* {
  box-sizing: border-box;
}

body.ops-page {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  background:
    radial-gradient(circle at 12% 0%, rgba(20, 91, 141, .20), transparent 32%),
    var(--ops-bg);
  color: var(--ops-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ops-sidebar {
  min-height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--ops-line-soft);
  background: rgba(3, 13, 25, .72);
}

.ops-side-title {
  color: var(--ops-blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .18em;
  margin-bottom: 22px;
}

.ops-side-logo {
  width: 134px;
  margin: 0 auto 24px;
}

.ops-side-logo img {
  width: 100%;
  display: block;
}

.ops-side-nav {
  display: grid;
  gap: 8px;
}

.ops-side-nav a {
  color: #b9d8ef;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.ops-side-nav a.active,
.ops-side-nav a:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, .28);
  background: rgba(10, 42, 70, .74);
}

.ops-main {
  min-width: 0;
  padding: 14px 16px 20px;
}

.ops-filter-row {
  margin-bottom: 12px;
}

.ops-control-shell {
  margin-bottom: 12px;
}

.ops-control-grid {
  display: grid;
  grid-template-columns: 1.32fr 1fr 1fr;
  gap: 14px;
}

.ops-card,
.ops-panel,
.ops-kpi {
  border: 1px solid var(--ops-line);
  background: linear-gradient(180deg, rgba(7, 31, 55, .96), rgba(5, 24, 42, .96));
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.ops-card {
  min-height: 166px;
  padding: 16px 18px;
}

.ops-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ops-card-head span,
.ops-panel-head span,
.ops-ranking-head span,
.ops-ficha-head span {
  display: block;
  color: var(--ops-blue);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.ops-card-head h3,
.ops-panel-head h2,
.ops-ranking-head h2,
.ops-ficha-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.035em;
}

.ops-card-head h3 {
  font-size: 17px;
}

.ops-card-head b {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 10px;
  font-weight: 950;
}

.ops-card-head b[data-state="verde"] {
  color: #7dffb2;
  background: rgba(21, 128, 61, .20);
}

.ops-card-head b[data-state="ambar"] {
  color: #fde68a;
  background: rgba(180, 83, 9, .22);
}

.ops-card-head b[data-state="rojo"] {
  color: #ff9aaf;
  background: rgba(190, 18, 60, .22);
}

.ops-ratio-main {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.ops-donut {
  --value: 0;
  width: 122px;
  height: 122px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #061b2f 58%, transparent 59%),
    conic-gradient(var(--ops-blue) calc(var(--value) * 1%), rgba(32, 70, 100, .72) 0);
}

.ops-donut div {
  text-align: center;
}

.ops-donut strong {
  display: block;
  font-size: 24px;
  color: #fff;
}

.ops-donut span,
.ops-ratio-bars span,
.ops-card-kicker {
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 750;
}

.ops-ratio-bars {
  display: grid;
  gap: 8px;
}

.ops-ratio-bars div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ops-line-soft);
}

.ops-ratio-bars strong {
  color: #fff;
  font-size: 15px;
}

.ops-card-big {
  color: var(--ops-blue);
  font-size: 40px;
  line-height: 1;
  font-weight: 950;
  margin-bottom: 8px;
}

.ops-semaforo-lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 18px;
}

.ops-semaforo-lines i {
  height: 8px;
  border-radius: 999px;
  background: rgba(35, 78, 110, .9);
}

.ops-semaforo-lines[data-state="verde"] i:nth-child(1) { background: #22c55e; }
.ops-semaforo-lines[data-state="ambar"] i:nth-child(2) { background: #f59e0b; }
.ops-semaforo-lines[data-state="rojo"] i:nth-child(4) { background: #fb7185; }

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ops-kpi {
  min-height: 88px;
  padding: 13px 14px;
}

.ops-kpi span {
  display: block;
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 850;
  margin-bottom: 8px;
}

.ops-kpi strong {
  display: block;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.035em;
}

.ops-kpi small {
  display: block;
  color: #6f96b6;
  font-size: 10px;
  margin-top: 8px;
}

.ops-bottom-grid {
  --bottom-h: 690px;
  display: grid;
  grid-template-columns: minmax(560px, .64fr) minmax(820px, 1.36fr);
  gap: 14px;
  align-items: stretch;
}

.ops-panel {
  min-width: 0;
  padding: 16px 18px;
}

.ops-ranking-panel,
.ops-detail-column {
  height: var(--bottom-h);
  min-width: 0;
}

.ops-detail-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.ops-ranking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.ops-period-pill {
  flex: 0 0 auto;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 12px;
  border: 1px solid rgba(56, 189, 248, .34);
  border-radius: 15px;
  background: rgba(8, 28, 49, .88);
  color: #b9e5ff;
  font-size: 10.5px;
  font-weight: 950;
}

.ops-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 6px 0 12px;
}

.ops-search input {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 10px;
  background: rgba(3, 16, 29, .78);
  color: #eaf8ff;
  padding: 0 12px;
  outline: none;
  font-size: 11px;
}

#ops-count {
  min-width: 92px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 10px;
  background: rgba(10, 42, 70, .74);
  color: #bfeaff;
  font-size: 10.5px;
  font-weight: 950;
}

.ops-table-wrap {
  height: calc(var(--bottom-h) - 96px);
  overflow: auto;
  border: 1px solid rgba(56, 189, 248, .20);
  border-radius: 12px;
  background: rgba(3, 16, 29, .35);
}

.ops-table {
  width: 100%;
  min-width: 560px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.ops-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #061b2f;
  color: #9bc7ed;
  font-size: 9.8px;
  line-height: 1;
  letter-spacing: .12em;
  font-weight: 950;
  text-transform: uppercase;
  padding: 10px 6px 8px;
  white-space: nowrap;
}

.ops-table td {
  padding: 12px 6px;
  color: #e6f4ff;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 850;
  vertical-align: middle;
  white-space: nowrap;
  border-top: 1px solid rgba(56, 189, 248, .12);
  border-bottom: 1px solid rgba(56, 189, 248, .12);
  background: rgba(5, 24, 42, .75);
}

.ops-table td:first-child {
  border-left: 1px solid rgba(56, 189, 248, .12);
  border-radius: 12px 0 0 12px;
}

.ops-table td:last-child {
  border-right: 1px solid rgba(56, 189, 248, .12);
  border-radius: 0 12px 12px 0;
}

.ops-table tr.active td {
  background: rgba(11, 60, 99, .88);
  border-color: rgba(56, 189, 248, .38);
}

.ops-table th:nth-child(1),
.ops-table td:nth-child(1) {
  width: 7%;
  text-align: center;
}

.ops-table th:nth-child(2),
.ops-table td:nth-child(2) {
  width: 31%;
  text-align: left;
  white-space: normal;
}

.ops-table th:nth-child(3),
.ops-table td:nth-child(3) {
  width: 14%;
  text-align: right;
}

.ops-table th:nth-child(4),
.ops-table td:nth-child(4),
.ops-table th:nth-child(5),
.ops-table td:nth-child(5) {
  width: 10%;
  text-align: right;
}

.ops-table th:nth-child(6),
.ops-table td:nth-child(6) {
  width: 15%;
  text-align: right;
}

.ops-table th:nth-child(7),
.ops-table td:nth-child(7) {
  width: 13%;
  text-align: right;
}

.ops-rank-bubble {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(14, 100, 158, .76);
  color: #8fdcff;
  font-size: 11px;
  font-weight: 950;
}

.ops-operator strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.025em;
}

.ops-num {
  font-variant-numeric: tabular-nums;
}

.ops-blue,
.ops-table td:nth-child(3) {
  color: var(--ops-blue);
  font-weight: 950;
}

.ops-activity strong {
  color: #fff;
  font-weight: 950;
}

.ops-ficha {
  min-height: 138px;
}

.ops-ficha-head {
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--ops-line-soft);
}

.ops-ficha-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.ops-stat {
  min-height: 72px;
  padding: 12px 10px;
  border-radius: 8px;
  background: rgba(5, 23, 41, .66);
  border: 1px solid rgba(44, 144, 202, .28);
}

.ops-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 850;
}

.ops-stat strong {
  color: var(--ops-blue);
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.035em;
}

.ops-stat.danger strong {
  color: var(--ops-danger);
}

.ops-turnos-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.ops-panel-head {
  margin-bottom: 12px;
}

.ops-turnos {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(56, 189, 248, .20);
  border-radius: 12px;
  background: rgba(3, 16, 29, .35);
}

.ops-turnos-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
  border-collapse: collapse;
}

.ops-turnos-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #061b2f;
  color: #9bc7ed;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 950;
  text-transform: uppercase;
  padding: 10px 8px;
  white-space: nowrap;
}

.ops-turnos-table td {
  padding: 12px 8px;
  color: #d8e8f7;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 850;
  white-space: nowrap;
  border-top: 1px solid rgba(128, 173, 205, .10);
  font-variant-numeric: tabular-nums;
}

.ops-turnos-table th:nth-child(1),
.ops-turnos-table td:nth-child(1) {
  width: 120px;
  text-align: left;
}

.ops-turnos-table th:nth-child(2),
.ops-turnos-table td:nth-child(2) {
  width: 110px;
  text-align: left;
}

.ops-turnos-table th:nth-child(n+3),
.ops-turnos-table td:nth-child(n+3) {
  text-align: right;
}

.ops-turno-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(13, 73, 118, .55);
  color: #9edcff;
  font-size: 9px;
  font-weight: 950;
}

.ops-empty {
  color: #80d7ff;
  text-align: center;
  padding: 32px 18px;
  font-size: 14px;
}

.ops-modal[aria-hidden="true"] {
  display: none;
}

.ops-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.ops-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}

.ops-modal-card {
  position: relative;
  width: min(820px, calc(100vw - 32px));
  border: 1px solid var(--ops-line);
  border-radius: 18px;
  background: #061b2f;
  padding: 20px;
}

.ops-modal-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ops-modal-card button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(56, 189, 248, .30);
  border-radius: 10px;
  background: rgba(3, 16, 29, .9);
  color: #fff;
  cursor: pointer;
}

.ops-criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-criteria-grid article {
  border: 1px solid var(--ops-line-soft);
  border-radius: 12px;
  padding: 14px;
  background: rgba(3, 16, 29, .45);
}

.ops-criteria-grid h3 {
  margin: 0 0 8px;
}

.ops-criteria-grid p {
  margin: 0;
  color: var(--ops-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ops-fallback-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(56, 189, 248, .22);
  background: rgba(5, 24, 42, .72);
  border-radius: 14px;
  padding: 10px;
}

.ops-fallback-filter label {
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 850;
}

.ops-fallback-filter input,
.ops-fallback-filter button {
  height: 32px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 9px;
  background: rgba(3, 16, 29, .78);
  color: #eaf8ff;
  padding: 0 10px;
}

.ops-fallback-filter button {
  cursor: pointer;
  font-weight: 850;
}

@media (max-width: 1550px) {
  .ops-main {
    padding: 12px;
  }

  .ops-bottom-grid {
    grid-template-columns: minmax(520px, .72fr) minmax(680px, 1.28fr);
  }

  .ops-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ops-ficha-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-operator strong {
    font-size: 14px;
  }

  .ops-table td {
    font-size: 11px;
  }
}

@media (max-width: 1180px) {
  body.ops-page {
    grid-template-columns: 1fr;
  }

  .ops-sidebar {
    display: none;
  }

  .ops-control-grid,
  .ops-bottom-grid {
    grid-template-columns: 1fr;
  }

  .ops-ranking-panel,
  .ops-detail-column {
    height: auto;
  }

  .ops-table-wrap,
  .ops-turnos {
    max-height: 560px;
  }
}

/* ============================================================
   OPERACIONES FINAL — Semáforos UNE por tiempos + no mezcla visual
   ============================================================ */

.ops-semaforo-final {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ops-semaforo-final.estado-verde {
  border-color: rgba(34, 197, 94, .48) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(34,197,94,.04) !important;
}

.ops-semaforo-final.estado-ambar {
  border-color: rgba(245, 158, 11, .58) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(245,158,11,.05) !important;
}

.ops-semaforo-final.estado-naranja {
  border-color: rgba(249, 115, 22, .62) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(249,115,22,.06) !important;
}

.ops-semaforo-final.estado-rojo {
  border-color: rgba(236, 72, 153, .62) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(236,72,153,.06) !important;
}

.ops-semaforo-status {
  border-radius: 999px !important;
  padding: 7px 18px !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .06em !important;
}

.estado-verde .ops-semaforo-status {
  color: #86efac !important;
  border-color: rgba(34,197,94,.42) !important;
  background: rgba(21,128,61,.24) !important;
}

.estado-ambar .ops-semaforo-status {
  color: #fde68a !important;
  border-color: rgba(245,158,11,.48) !important;
  background: rgba(146,64,14,.28) !important;
}

.estado-naranja .ops-semaforo-status {
  color: #fdba74 !important;
  border-color: rgba(249,115,22,.50) !important;
  background: rgba(154,52,18,.28) !important;
}

.estado-rojo .ops-semaforo-status {
  color: #f9a8d4 !important;
  border-color: rgba(236,72,153,.50) !important;
  background: rgba(157,23,77,.28) !important;
}

.ops-semaforo-lines-final {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 12px 0 16px !important;
}

.ops-semaforo-lines-final i {
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(45, 86, 119, .82) !important;
}

.ops-semaforo-lines-final[data-active="1"] i:nth-child(1) {
  background: #22c55e !important;
}

.ops-semaforo-lines-final[data-active="2"] i:nth-child(2) {
  background: #f59e0b !important;
}

.ops-semaforo-lines-final[data-active="3"] i:nth-child(3) {
  background: #f97316 !important;
}

.ops-semaforo-lines-final[data-active="4"] i:nth-child(4) {
  background: #f472b6 !important;
}

.ops-semaforo-grid-final {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.ops-semaforo-grid-final > div {
  border: 1px solid rgba(56,189,248,.24) !important;
  border-radius: 9px !important;
  background: rgba(5,23,41,.58) !important;
  padding: 12px 14px !important;
  min-height: 76px !important;
}

.ops-semaforo-grid-final span {
  display: block !important;
  color: #9bc7ed !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  margin-bottom: 8px !important;
}

.ops-semaforo-grid-final strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -.03em !important;
}

/* El estilo final es el que aparece tras refrescar: ranking estrecho + detalle ancho */
.ops-bottom-grid {
  grid-template-columns: minmax(520px, .46fr) minmax(760px, .54fr) !important;
}

/* Quitar cualquier resto de ratio en el ranking inferior */
.ops-table th:nth-child(8),
.ops-table td:nth-child(8),
.ops-ratio {
  display: none !important;
}

/* ============================================================
   OPERACIONES FINAL — Control operativo completo
   ============================================================ */

.ops-control-grid {
  grid-template-columns: 1.36fr 1fr 1fr !important;
  align-items: stretch !important;
}

.ops-control-card {
  min-height: 248px !important;
  padding: 16px 18px !important;
}

.ops-control-card .ops-card-head {
  margin-bottom: 12px !important;
}

.ops-control-card .ops-card-head h3 {
  font-size: 17px !important;
  line-height: 1.1 !important;
}

.ops-control-status {
  border-radius: 999px !important;
  padding: 7px 18px !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .06em !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

.estado-verde .ops-control-status {
  color: #86efac !important;
  border-color: rgba(34,197,94,.45) !important;
  background: rgba(21,128,61,.24) !important;
}

.estado-ambar .ops-control-status {
  color: #fde68a !important;
  border-color: rgba(245,158,11,.50) !important;
  background: rgba(146,64,14,.28) !important;
}

.estado-naranja .ops-control-status {
  color: #fdba74 !important;
  border-color: rgba(249,115,22,.52) !important;
  background: rgba(154,52,18,.28) !important;
}

.estado-rojo .ops-control-status {
  color: #f9a8d4 !important;
  border-color: rgba(236,72,153,.52) !important;
  background: rgba(157,23,77,.28) !important;
}

.ops-ratio-body-final {
  display: grid !important;
  grid-template-columns: 132px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  margin-bottom: 16px !important;
}

.ops-ratio-donut {
  width: 126px !important;
  height: 126px !important;
}

.ops-ratio-donut strong {
  font-size: 23px !important;
}

.ops-ratio-bars-final {
  display: grid !important;
  gap: 11px !important;
}

.ops-ratio-bar-row {
  display: grid !important;
  grid-template-columns: 108px minmax(0, 1fr) 62px !important;
  gap: 10px !important;
  align-items: center !important;
}

.ops-ratio-bar-row span,
.ops-ratio-bar-row strong {
  font-size: 10px !important;
  font-weight: 900 !important;
}

.ops-ratio-bar-row span {
  color: #b9d8ef !important;
}

.ops-ratio-bar-row strong {
  color: #ffffff !important;
  text-align: right !important;
}

.ops-ratio-track {
  height: 8px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: rgba(42, 83, 113, .72) !important;
}

.ops-ratio-track i {
  display: block !important;
  height: 100% !important;
  min-width: 3px !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #22c55e, #facc15, #fb7185) !important;
}

.ops-mini-grid {
  display: grid !important;
  gap: 10px !important;
}

.ops-mini-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.ops-mini-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.ops-mini-grid > div {
  min-height: 70px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(56,189,248,.24) !important;
  border-radius: 9px !important;
  background: rgba(5,23,41,.58) !important;
}

.ops-mini-grid span {
  display: block !important;
  margin-bottom: 8px !important;
  color: #9bc7ed !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.ops-mini-grid strong {
  display: block !important;
  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -.03em !important;
}

.ops-mini-grid .danger strong {
  color: #ff5f7f !important;
}

.ops-semaforo-lines-final {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 12px 0 16px !important;
}

.ops-semaforo-lines-final i {
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(45, 86, 119, .82) !important;
}

.ops-semaforo-lines-final[data-active="1"] i:nth-child(1) {
  background: #22c55e !important;
}

.ops-semaforo-lines-final[data-active="2"] i:nth-child(2) {
  background: #f59e0b !important;
}

.ops-semaforo-lines-final[data-active="3"] i:nth-child(3) {
  background: #f97316 !important;
}

.ops-semaforo-lines-final[data-active="4"] i:nth-child(4) {
  background: #f472b6 !important;
}

.ops-control-card.estado-verde {
  border-color: rgba(34,197,94,.42) !important;
}

.ops-control-card.estado-ambar {
  border-color: rgba(245,158,11,.58) !important;
}

.ops-control-card.estado-naranja {
  border-color: rgba(249,115,22,.58) !important;
}

.ops-control-card.estado-rojo {
  border-color: rgba(236,72,153,.62) !important;
}

.ops-card-kicker {
  display: none !important;
}

@media (max-width: 1550px) {
  .ops-ratio-body-final {
    grid-template-columns: 118px minmax(0, 1fr) !important;
  }

  .ops-ratio-donut {
    width: 112px !important;
    height: 112px !important;
  }

  .ops-mini-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .ops-mini-grid strong {
    font-size: 19px !important;
  }
}

/* ============================================================
   OPERACIONES FINAL — ajuste ranking + turnos compactos
   ============================================================ */

.ops-bottom-grid {
  min-width: 0 !important;
  overflow: hidden !important;
  align-items: stretch !important;
}

.ops-ranking-panel {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.ops-ranking-panel .ops-table-wrap {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.ops-ranking-panel .ops-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.ops-ranking-panel .ops-table th,
.ops-ranking-panel .ops-table td {
  overflow: hidden !important;
}

.ops-ranking-panel .ops-table th:nth-child(1),
.ops-ranking-panel .ops-table td:nth-child(1) {
  width: 7% !important;
}

.ops-ranking-panel .ops-table th:nth-child(2),
.ops-ranking-panel .ops-table td:nth-child(2) {
  width: 33% !important;
}

.ops-ranking-panel .ops-table th:nth-child(3),
.ops-ranking-panel .ops-table td:nth-child(3) {
  width: 13% !important;
}

.ops-ranking-panel .ops-table th:nth-child(4),
.ops-ranking-panel .ops-table td:nth-child(4),
.ops-ranking-panel .ops-table th:nth-child(5),
.ops-ranking-panel .ops-table td:nth-child(5) {
  width: 9% !important;
}

.ops-ranking-panel .ops-table th:nth-child(6),
.ops-ranking-panel .ops-table td:nth-child(6) {
  width: 15% !important;
}

.ops-ranking-panel .ops-table th:nth-child(7),
.ops-ranking-panel .ops-table td:nth-child(7) {
  width: 14% !important;
}

.ops-ranking-panel .ops-operator strong {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.08 !important;
}

.ops-detail-column {
  min-width: 0 !important;
  overflow: hidden !important;
}

.ops-turnos-panel {
  min-width: 0 !important;
  overflow: hidden !important;
}

.ops-turnos {
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.ops-turnos-table-compact {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.ops-turnos-table-compact th,
.ops-turnos-table-compact td {
  padding: 10px 6px !important;
  font-size: 13px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ops-turnos-table-compact th {
  font-size: 10px !important;
  letter-spacing: .10em !important;
}

.ops-turnos-table-compact th:nth-child(1),
.ops-turnos-table-compact td:nth-child(1) {
  width: 14% !important;
  text-align: left !important;
}

.ops-turnos-table-compact th:nth-child(2),
.ops-turnos-table-compact td:nth-child(2) {
  width: 12% !important;
  text-align: left !important;
}

.ops-turnos-table-compact th:nth-child(3),
.ops-turnos-table-compact td:nth-child(3),
.ops-turnos-table-compact th:nth-child(4),
.ops-turnos-table-compact td:nth-child(4) {
  width: 13% !important;
  text-align: right !important;
}

.ops-turnos-table-compact th:nth-child(5),
.ops-turnos-table-compact td:nth-child(5),
.ops-turnos-table-compact th:nth-child(6),
.ops-turnos-table-compact td:nth-child(6) {
  width: 12% !important;
  text-align: right !important;
}

.ops-turnos-table-compact th:nth-child(7),
.ops-turnos-table-compact td:nth-child(7) {
  width: 13% !important;
  text-align: right !important;
}

.ops-turnos-table-compact th:nth-child(8),
.ops-turnos-table-compact td:nth-child(8) {
  width: 11% !important;
  text-align: right !important;
}

.ops-turnos-table-compact .ops-turno-pill {
  min-width: 58px !important;
  padding: 4px 8px !important;
  font-size: 8.5px !important;
}

@media (max-width: 1550px) {
  .ops-turnos-table-compact th,
  .ops-turnos-table-compact td {
    font-size: 12px !important;
    padding: 9px 5px !important;
  }

  .ops-turnos-table-compact th {
    font-size: 9.4px !important;
  }

  .ops-ranking-panel .ops-table td {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

