/* ============================= */
/* ESTILO GENERAL */
/* ============================= */

* { box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background: #f4f6fb;
  margin: 0;
  color: #222;
}

.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 16px;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 22px;
}

h2 {
  margin: 22px 0 12px 0;
  font-size: 18px;
  color: #0C1759;
}

/* ============================= */
/* TARJETAS */
/* ============================= */

.card {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

/* ============================= */
/* TOPBAR */
/* ============================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}

.topbar h1 {
  color: #0C1759;
  margin-bottom: 4px;
}

.muted {
  color: #666;
  font-size: 13px;
}

/* ============================= */
/* ALERTAS */
/* ============================= */

.alert {
  background: #ffe3e3;
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0;
}

.success {
  background: #e6ffea;
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0;
}

/* ============================= */
/* BOTONES */
/* ============================= */

button {
  margin-top: 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: #00B1D0;
  color: white;
  font-weight: 600;
}

button:hover { opacity: .92; }

.btn-outline {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: #bfc5cf;
  color: #1f2933;
  font-weight: 600;
  border: 1px solid #aeb4bf;
  display: inline-block;
  transition: all .2s ease;
}

.btn-outline:hover {
  background: #aeb4bf;
  border-color: #9da3ad;
}

.btn-primary {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: #00B1D0;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.btn-primary:hover { background: #008aa3; }

/* ============================= */
/* FORMULARIOS */
/* ============================= */

label {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #dcdfe6;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

textarea { resize: vertical; }

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #7a869a 50%),
    linear-gradient(135deg, #7a869a 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.field { display: flex; flex-direction: column; }

.span-2 { grid-column: span 2; }

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dcdfe6;
  border-radius: 10px;
  background: #fff;
  margin-top: 6px;
}

.checkline input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================= */
/* SECCIONES */
/* ============================= */

.section { margin-top: 20px; }

/* ============================= */
/* TABLAS */
/* ============================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
  display: block;
}

.indicator-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  table-layout: fixed;
}

.indicator-table thead {
  background: #0C1759;
  color: #fff;
}

.indicator-table th,
.indicator-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eef0f6;
  font-size: 14px;
  line-height: 1.25;
  vertical-align: top;
  word-wrap: break-word;
}

.indicator-table th { font-weight: 700; }

.indicator-table tbody tr:hover { background: #f3f6ff; }

.indicator-table tbody tr:last-child td { border-bottom: none; }

/* Dashboard (4 columnas): widths */
.indicator-table th:nth-child(1),
.indicator-table td:nth-child(1) { width: 120px; }

.indicator-table th:nth-child(2),
.indicator-table td:nth-child(2) { width: 320px; }

.indicator-table th:nth-child(4),
.indicator-table td:nth-child(4) {
  width: 140px;
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

/* ============================= */
/* INTERCONSULTA: BOTONES COMPACTOS EN TABLA */
/* ============================= */

.action-buttons{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.action-buttons .btn-primary,
.action-buttons .btn-outline{
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  border-radius: 10px !important;
  width: auto !important;
}

/* ============================= */
/* FIX FORZADO: ALINEAR TABLAS */
/* ============================= */

.section,
.table-wrapper,
.indicator-table {
  text-align: left !important;
}

.indicator-table th,
.indicator-table td,
.indicator-table th *,
.indicator-table td * {
  text-align: left !important;
}

.indicator-table th:last-child,
.indicator-table td:last-child {
  text-align: right !important;
  white-space: nowrap;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 820px) {
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
}

@media (max-width: 480px) {

  .container {
    margin: 16px auto;
    padding: 0 12px;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  h1 { font-size: 20px; line-height: 1.15; }
  h2 { font-size: 16px; margin: 18px 0 10px 0; }

  .card { padding: 14px; }

  input, textarea, select {
    font-size: 16px;
    padding: 12px;
    border-radius: 12px;
  }

  button {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .indicator-table th,
  .indicator-table td {
    padding: 10px 10px;
    font-size: 13px;
  }
}

/* ============================= */
/* FIX TOPBAR (MÓVIL) */
/* Requiere class="topbar-actions" */
/* ============================= */

@media (max-width: 480px) {

  .topbar .topbar-actions{
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  .topbar a.btn-outline,
  .topbar a.btn-primary{
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
  }
}

/* ===================================================== */
/* ✅ PUNTO 1: DASHBOARD (MÓVIL) OCULTAR DESCRIPCIÓN */
/* ===================================================== */

@media (max-width: 480px){

  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records){
    min-width: 0 !important;
    table-layout: auto !important;
  }

  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) thead th:nth-child(3),
  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) tbody td:nth-child(3){
    display: none !important;
  }

  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) th:nth-child(1),
  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) td:nth-child(1){
    width: 78px !important;
    white-space: nowrap !important;
  }

  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) th:nth-child(2),
  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) td:nth-child(2){
    width: auto !important;
  }

  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) th:nth-child(4),
  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) td:nth-child(4){
    width: 120px !important;
    white-space: nowrap !important;
    text-align: right !important;
  }

  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) th,
  .indicator-table:not(.indicator-table-admin):not(.indicator-table-records) td{
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* ===================================================== */
/* ✅ MIS REGISTROS */
/* ===================================================== */

.indicator-table-records th,
.indicator-table-records td{
  text-align: left !important;
  vertical-align: middle !important;
}

.indicator-table-records th:last-child,
.indicator-table-records td:last-child{
  text-align: left !important;
}

/* Distribución escritorio (7 columnas) */
@media (min-width: 481px){

  .indicator-table-records{
    table-layout: fixed !important;
    width: 100% !important;
  }

  .indicator-table-records th:nth-child(1),
  .indicator-table-records td:nth-child(1){ width: 160px !important; white-space: nowrap !important; }

  .indicator-table-records th:nth-child(2),
  .indicator-table-records td:nth-child(2){ width: 260px !important; }

  .indicator-table-records th:nth-child(3),
  .indicator-table-records td:nth-child(3){ width: 150px !important; white-space: nowrap !important; }

  .indicator-table-records th:nth-child(4),
  .indicator-table-records td:nth-child(4){ width: 160px !important; }

  .indicator-table-records th:nth-child(5),
  .indicator-table-records td:nth-child(5){ width: 110px !important; white-space: nowrap !important; }

  .indicator-table-records th:nth-child(6),
  .indicator-table-records td:nth-child(6){ width: 130px !important; }

  .indicator-table-records th:nth-child(7),
  .indicator-table-records td:nth-child(7){ width: auto !important; }

  .indicator-table-records td{
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

/* Móvil: Oculta Turno(5), Riesgo(6) y Detalle(7) */
@media (max-width: 480px){
  .indicator-table-records th:nth-child(5),
  .indicator-table-records th:nth-child(6),
  .indicator-table-records th:nth-child(7),
  .indicator-table-records td:nth-child(5),
  .indicator-table-records td:nth-child(6),
  .indicator-table-records td:nth-child(7){
    display: none !important;
  }
}

/* ===================================================== */
/* ✅ PUNTO 2: ADMIN INDICADORES */
/* ===================================================== */

.indicator-table-admin th,
.indicator-table-admin td{
  text-align: left !important;
  vertical-align: top !important;
}

.indicator-table-admin th:last-child,
.indicator-table-admin td:last-child{
  text-align: left !important;
}

/* Escritorio: distribución estable (9 columnas) */
@media (min-width: 481px){

  .indicator-table-admin{
    table-layout: fixed !important;
    width: 100% !important;
  }

  .indicator-table-admin th:nth-child(1),
  .indicator-table-admin td:nth-child(1){ width: 180px !important; }

  .indicator-table-admin th:nth-child(2),
  .indicator-table-admin td:nth-child(2){ width: 110px !important; white-space: nowrap !important; }

  .indicator-table-admin th:nth-child(3),
  .indicator-table-admin td:nth-child(3){ width: 260px !important; }

  .indicator-table-admin th:nth-child(4),
  .indicator-table-admin td:nth-child(4){ width: 340px !important; }

  .indicator-table-admin th:nth-child(5),
  .indicator-table-admin td:nth-child(5){ width: 130px !important; }

  .indicator-table-admin th:nth-child(6),
  .indicator-table-admin td:nth-child(6){ width: 80px !important; text-align:center !important; white-space: nowrap !important; }

  .indicator-table-admin th:nth-child(7),
  .indicator-table-admin td:nth-child(7){ width: 100px !important; text-align:center !important; white-space: nowrap !important; }

  .indicator-table-admin th:nth-child(8),
  .indicator-table-admin td:nth-child(8){ width: 90px !important; text-align:center !important; white-space: nowrap !important; }

  .indicator-table-admin th:nth-child(9),
  .indicator-table-admin td:nth-child(9){ width: 110px !important; text-align:center !important; white-space: nowrap !important; }

  .indicator-table-admin td,
  .indicator-table-admin th{
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .indicator-table-admin .btn-outline,
  .indicator-table-admin button.btn-outline{
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    line-height: 1.1 !important;
  }
}

/* MÓVIL: SOLO Código + Indicador + Estado */
@media (max-width: 480px){

  .indicator-table-admin th:nth-child(1),
  .indicator-table-admin td:nth-child(1),
  .indicator-table-admin th:nth-child(4),
  .indicator-table-admin td:nth-child(4),
  .indicator-table-admin th:nth-child(5),
  .indicator-table-admin td:nth-child(5),
  .indicator-table-admin th:nth-child(6),
  .indicator-table-admin td:nth-child(6),
  .indicator-table-admin th:nth-child(8),
  .indicator-table-admin td:nth-child(8),
  .indicator-table-admin th:nth-child(9),
  .indicator-table-admin td:nth-child(9){
    display: none !important;
  }

  .indicator-table-admin th:nth-child(2),
  .indicator-table-admin td:nth-child(2),
  .indicator-table-admin th:nth-child(3),
  .indicator-table-admin td:nth-child(3),
  .indicator-table-admin th:nth-child(7),
  .indicator-table-admin td:nth-child(7){
    display: table-cell !important;
  }

  .indicator-table-admin{
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .indicator-table-admin th,
  .indicator-table-admin td{
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .indicator-table-admin th:nth-child(2),
  .indicator-table-admin td:nth-child(2){ width: 95px !important; }

  .indicator-table-admin th:nth-child(3),
  .indicator-table-admin td:nth-child(3){ width: auto !important; }

  .indicator-table-admin th:nth-child(7),
  .indicator-table-admin td:nth-child(7){ width: 90px !important; }
}

/* ============================= */
/* INTERCONSULTA - TABLA CONCLUIR */
/* ============================= */

.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.table thead th{
  text-align: left;
  font-size: 13px;
  letter-spacing: .2px;
  color: #0C1759;
  padding: 12px 12px;
  background: #f6f7fb;
  border-bottom: 1px solid #e8ebf3;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid #eef1f7;
  vertical-align: middle;
  font-size: 14px;
  background: #fff;
}

.table tbody tr:hover td{
  background: #fbfcff;
}

.table td.actions{ width: 320px; }

.action-form{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.action-form input[type="datetime-local"]{
  width: 210px;
  padding: 10px 10px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  outline: none;
}

.action-form input[type="datetime-local"]:focus{
  border-color: #00B1D0;
  box-shadow: 0 0 0 3px rgba(0,177,208,.15);
}

.action-form button{
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #00B1D0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.action-form button:hover{
  filter: brightness(.95);
}

.nowrap{ white-space: nowrap; }

.clamp2{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eef6ff;
  color: #0C1759;
  white-space: nowrap;
}

@media (max-width: 720px){
  .table{ min-width: 880px; }
  .action-form input[type="datetime-local"]{ width: 190px; }
}

.ic-table td.col-action,
.ic-table th.col-action{
  padding-right: 18px !important;
  padding-left: 18px !important;
}

.ic-table td.col-action{
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.action-form{
  justify-content: flex-end;
  gap: 12px;
  min-height: 44px;
}

.action-form input[type="datetime-local"]{
  width: 200px;
  height: 40px;
  padding: 8px 10px;
}

.action-form button{
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table button{
  width: auto !important;
  margin-top: 0 !important;
}

.table td.conclude-cell{ width: 240px; }
.table td.actions{ width: 140px; }

.table td.conclude-cell,
.table td.actions{
  vertical-align: middle !important;
}

.table .action-form{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  margin:0;
}

.table .action-form input[type="datetime-local"]{
  width: 210px;
  margin-top: 0 !important;
}

.table .action-form button{
  margin-top: 0 !important;
  height: 40px;
}

/* ============================= */
/* LOGIN (AISLADO) */
/* ============================= */

body.login-page{
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  background: #f4f6fb;
}

.login-card{
  width: 100%;
  max-width: 520px;
  padding: 22px;
  border-radius: 14px;
}

.login-card form{ margin-top: 8px; }

.login-card label{ margin-top: 14px; }

.login-card input{
  background: #eef3ff;
  border: 1px solid #d7def0;
}

.login-card input:focus{
  outline: none;
  border-color: #00B1D0;
  box-shadow: 0 0 0 3px rgba(0,177,208,.18);
}

.login-card button{
  width: auto;
  margin-top: 16px;
  padding: 10px 18px;
}

@media (max-width: 480px){
  body.login-page{ padding: 20px 12px; }
  .login-card{ padding: 16px; }
  .login-card button{ width: 100%; }
}

/* ============================= */
/* LOGIN (FINAL - COMPACTO) */
/* ============================= */

body.login-body{
  margin: 0 !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f4f6fb !important;
  padding: 24px 16px !important;
}

body.login-body .login-box{
  width: 100% !important;
  max-width: 420px !important;
  background: #fff !important;
  padding: 34px 28px !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.10) !important;
}

body.login-body .login-box h1{
  margin: 0 0 22px 0 !important;
  text-align: center !important;
  font-size: 22px !important;
  color: #0C1759 !important;
}

body.login-body .login-box label{
  display: block !important;
  margin-top: 14px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

body.login-body .login-box input{
  width: 100% !important;
  margin-top: 8px !important;
  padding: 12px 12px !important;
  border-radius: 12px !important;
  background: #eef2f9 !important;
  border: 1px solid #d9dfef !important;
  font-size: 14px !important;
}

body.login-body .login-box input:focus{
  outline: none !important;
  border-color: #00B1D0 !important;
  box-shadow: 0 0 0 3px rgba(0,177,208,.16) !important;
}

body.login-body .login-box button{
  width: 100% !important;
  margin-top: 18px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 0 !important;
  cursor: pointer !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: #0C1759 !important;
  color: #fff !important;
}

body.login-body .login-box button:hover{
  filter: brightness(.95) !important;
}

@media (max-width: 480px){
  body.login-body .login-box{
    padding: 22px 16px !important;
    border-radius: 14px !important;
  }
}

/* ===================================================== */
/* ✅ FIX: MIS REGISTROS (móvil) - evita encabezados verticales */
/* ===================================================== */

@media (max-width: 480px){

  .table-wrapper{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .indicator-table.indicator-table-records{
    table-layout: auto !important;
    width: 100% !important;
    min-width: 760px !important;
  }

  .indicator-table-records th,
  .indicator-table-records td{
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .indicator-table-records td:nth-child(5){
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  .indicator-table-records th:nth-child(1),
  .indicator-table-records td:nth-child(1){ width: 70px !important; }

  .indicator-table-records th:nth-child(2),
  .indicator-table-records td:nth-child(2){ width: 110px !important; }

  .indicator-table-records th:nth-child(3),
  .indicator-table-records td:nth-child(3){ width: 210px !important; }

  .indicator-table-records th:nth-child(4),
  .indicator-table-records td:nth-child(4){ width: 180px !important; }

  .indicator-table-records th:nth-child(5),
  .indicator-table-records td:nth-child(5){ width: 170px !important; }
}

/* ============================= */
/* ✅ PERMISOS: BOTONES FINALES (PEQUEÑOS + CENTRADOS + AZULES) */
/* Requiere <div class="save-bar"> */
/* ============================= */

.save-bar{
  margin-top: 18px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.save-bar > button,
.save-bar > a{
  height: 38px !important;
  min-width: 170px !important;
  padding: 6px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #00B1D0 !important;
  color: #fff !important;
  border: 0 !important;
  text-decoration: none !important;
  margin-top: 0 !important;
  width: auto !important;
  cursor: pointer;
}

.save-bar > button:hover,
.save-bar > a:hover{
  filter: brightness(.95) !important;
}

.save-bar .btn-danger{
  background: #DC2626 !important;
  color: #fff !important;
  border: 0 !important;
}

.save-bar .btn-danger:hover{
  filter: brightness(.92) !important;
}

@media (max-width: 480px){
  .save-bar{
    flex-direction: column !important;
    align-items: center !important;
  }
  .save-bar > button,
  .save-bar > a{
    width: 100% !important;
    max-width: 260px !important;
  }
}

/* ===================================================== */
/* ✅ MIS REGISTROS - TARJETA DEL FILTRO */
/* Requiere: <div class="card records-filter-card"> */
/* ===================================================== */

.records-filter-card{
  padding-top: 0 !important;
  overflow: hidden !important;
  border: 1px solid #e6ebf3;
}

.records-filter-card::before{
  content: "Filtros de búsqueda";
  display: block;
  background: #0C1759;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 18px;
  margin: 0 -18px 18px -18px;
}

#filterForm{
  display: block;
}

#filterForm .form-grid{
  gap: 18px;
  margin-top: 0;
}

#filterForm .field label{
  margin-top: 0;
  margin-bottom: 6px;
  color: #0C1759;
  font-size: 15px;
}

#filterForm select,
#filterForm input[type="date"]{
  height: 44px;
  border: 1px solid #cfd7e6;
  border-radius: 12px;
  background: #fff;
}

#filterForm select:focus,
#filterForm input[type="date"]:focus{
  outline: none;
  border-color: #0C1759;
  box-shadow: 0 0 0 3px rgba(12, 23, 89, .10);
}

.actions-row{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.actions-row button{
  margin-top: 0 !important;
  min-width: 120px;
  background: #00B1D0;
  color: #fff;
  font-weight: 700;
}

.actions-row button:hover{
  background: #0097b3;
  opacity: 1;
}

.pager{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pager a{
  text-decoration: none;
}

/* ===================================================== */
/* ✅ MIS REGISTROS - TABLA CON ENCABEZADO AZUL MARINO */
/* ===================================================== */

.indicator-table.indicator-table-records{
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #fff;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.indicator-table.indicator-table-records thead,
.indicator-table.indicator-table-records thead tr{
  background: #0C1759 !important;
}

.indicator-table.indicator-table-records thead th{
  background: #0C1759 !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-bottom: none !important;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 12px;
  white-space: nowrap;
}

.indicator-table.indicator-table-records thead th:first-child{
  border-top-left-radius: 12px;
}

.indicator-table.indicator-table-records thead th:last-child{
  border-top-right-radius: 12px;
}

.indicator-table.indicator-table-records tbody td{
  background: #fff;
  border-bottom: 1px solid #eef0f6;
  vertical-align: middle !important;
}

.indicator-table.indicator-table-records tbody tr:nth-child(even) td{
  background: #f8fbff;
}

.indicator-table.indicator-table-records tbody tr:hover td{
  background: #eef4ff !important;
}

.indicator-table-records th:last-child,
.indicator-table-records td:last-child{
  text-align: left !important;
}

/* ===================================================== */
/* ✅ RESPONSIVE FILTRO MIS REGISTROS */
/* ===================================================== */

@media (max-width: 480px){

  .records-filter-card::before{
    font-size: 16px;
    padding: 12px 14px;
    margin: 0 -14px 14px -14px;
  }

  .actions-row{
    flex-direction: column;
    align-items: stretch;
  }

  .actions-row button{
    width: 100%;
  }

  .pager{
    flex-direction: column;
    align-items: flex-start;
  }
}