/* utilidades generales  */
a, a:visited { color: inherit; text-decoration: none; }


.quick{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center }
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; background:#fff; border:2px solid var(--brand); border-radius:999px;
  font-weight:700;
}

.form-container{
  background:#fff1b8;
  padding:40px 35px;
  border-radius:25px;
  max-width:480px;
  width:100%;
  box-shadow:0 12px 25px rgba(0,0,0,.12)
}

.kpis{ display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:stretch; }
.kpi-value{ font-size:56px; font-weight:800; margin:6px 0; }
.pill-row{ display:flex; gap:8px; flex-wrap:wrap; align-items:center }
.pill-row .pill.active{ background:var(--brand); color:#fff; border-color:var(--brand) }
.pill-row .custom{ display:flex; gap:8px; align-items:center }
.pill-row input[type="number"]{ width:84px; padding:8px 10px; border-radius:10px; border:1px solid var(--bd) }

/* ======================================================================
   PANEL “POR VENCER / VENCIDOS” 
   ====================================================================== */
.vpanel{
  background:var(--card); border:1px solid var(--bd); border-radius:24px;
  box-shadow:var(--shadow); padding:16px; margin:18px 0;
}
.vpanel-title{
  background:var(--stripe); border-radius:16px; padding:12px 16px; font-weight:800;
  margin:-16px -16px 14px -16px;
}


:root{
  --col-gap: 8px;
  --col-oc: 220px;
  --col-empresa: minmax(330px, 1fr);
  --col-fecha: 188px;
  --col-estado: 218px;
  --col-equipos: 84px;
}

.vthead{
  display:grid;
  grid-template-columns: var(--col-oc) var(--col-empresa) var(--col-fecha) var(--col-estado) var(--col-equipos);
  column-gap: var(--col-gap);
  align-items:center; justify-items:center;
  color:var(--muted); font-weight:800; padding:8px 0;
}
.vthead > div{ display:flex; align-items:center; justify-content:center; width:100%; text-align:center !important; }

.vrow{
  display:grid;
  grid-template-columns: var(--col-oc) var(--col-empresa) var(--col-fecha) var(--col-estado) var(--col-equipos);
  column-gap: var(--col-gap);
  align-items:center; justify-items:stretch; margin:12px 0;
}


.vcell{
  background:#fff; border-radius:16px; padding:14px 16px; min-height:56px;
  display:flex; align-items:center; justify-content:center; text-align:center; width:100%;
}


.vcell--empresa{
  width:100%; font-weight:700; text-align:center !important;
  justify-content:center !important; align-items:center !important;
}


.vcell.vcell--oc{ background:transparent; padding:0; min-height:auto; border-radius:0; }
.oc-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 16px; background:#fff; border:6px solid var(--brand);
  border-radius:28px; font-weight:800; white-space:nowrap;
  min-width: calc(var(--col-oc) - 14px);
}


.vcell--date{ width:100%; min-width: var(--col-fecha); text-align:center !important; justify-content:center !important; align-items:center !important; }
.date-plain{ display:inline-block; font-weight:800; }


.vcell--state{ background:transparent; padding:0; border-radius:0; display:flex; justify-content:center; align-items:center; width:100%; }
.state-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; background:#111; color:#fff; border-radius:999px; font-weight:800; white-space:nowrap;
  width:auto; max-width: var(--col-estado);
}

.vcell--equipos{ font-weight:800; text-align:center !important; justify-content:center !important; align-items:center !important; }


.empty{ padding:16px; margin-top:12px; background:#fff; border-radius:12px; color:#777; text-align:center; }


@media (max-width: 1180px){
  :root{
    --col-oc: 210px;
    --col-empresa: minmax(310px, 1fr);
    --col-fecha: 180px;
    --col-estado: 210px;
    --col-equipos: 76px;
    --col-gap: 8px;
  }
  .oc-pill{ padding:8px 14px; }
  .state-pill{ padding:9px 12px; }
}

/* =========================
   Detalle de Proceso (OC)
   ========================= */
.back-link{ display:inline-block; margin:4px 0 10px; font-weight:600; }

.detail-header{ display:flex; gap:18px; align-items:center; margin:4px 0 18px; }
.detail-header .oc-wrap{ min-width:230px; }

.detail-h1{ margin:0; font-size:28px; font-weight:800; }


.chips{ display:flex; gap:8px; margin-top:6px; flex-wrap:wrap; }
.chip{
  padding:6px 10px; border-radius:999px; font-weight:700; font-size:12px;
  border:1px solid var(--bd); background:#fff;
}
.chip-ok{ background:#e9fbf1; color:#18a05e; border-color:#c3efd6; }
.chip-bad{ background:#ffe5e5; color:#c62828; border-color:#f5c6cb; }
.chip-muted{ background:#f6f6f6; color:#666; border-color:#e5e5e5; }

.meta-cards{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; margin-bottom:14px; }
.meta{
  background:#fff; border:1px solid var(--bd); border-radius:18px;
  box-shadow:var(--shadow); overflow:hidden;
}
.meta-title{ background:var(--stripe); font-weight:800; padding:10px 14px; }
.meta-value{ padding:14px; font-weight:700; }

.meta-empresa{
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  text-wrap: balance;
  word-break: break-word;
}

.equipos-toolbar{ display:flex; justify-content:space-between; align-items:center; margin:6px 0 10px; }
.equipos-title{ margin:0; font-size:20px; }

.search-wrap{ position:relative; display:flex; align-items:center; gap:8px; }
.input-search{
  padding:12px 14px 12px 40px; border-radius:999px; border:2px solid var(--bd);
  background:#fff; min-width:320px; font:inherit; outline:none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input-search::placeholder{ color:#8a8a8a; }
.input-search:focus{ border-color:var(--brand); box-shadow:0 0 0 4px rgba(240,196,25,.18); }
.search-ico{ position:absolute; left:12px; font-size:18px; opacity:.65; pointer-events:none; }
.btn-ghost{
  background:#9d9999; color:#fff; border-radius:12px; padding:10px 14px; font-weight:700;
  border:none; cursor:pointer;
}
.btn-ghost:hover{ background:#7f7b7b; }

/* Tabla con contenedor scrolleable y cabecera fija */
.table-card{
  background:var(--card); border:1px solid var(--bd); border-radius:20px;
  box-shadow:var(--shadow); padding:8px;
}
.table-scroll{
  max-height:none !important;  /* ← fix del espacio amarillo */
  overflow:auto; 
  border-radius:16px;
  scrollbar-gutter:stable both-edges; 
  overscroll-behavior:contain;
}
.nice-table th.sortable::after,
.nice-table th.sortable.asc::after,
.nice-table th.sortable.desc::after {
  content: '⇅' !important;     /* ← fix de las flechas */
}
.nice-table th.sortable.asc::after  { content: '▲' !important; }
.nice-table th.sortable.desc::after { content: '▼' !important; }

/* Cabecera fija */
.nice-table{ width:100%; border-collapse:separate; border-spacing:0 8px; }
.nice-table thead th{
  position:sticky; top:0; z-index:1;
  background:var(--stripe); text-align:left; color:var(--ink);
  font-weight:800; padding:10px; box-shadow: inset 0 -1px 0 var(--bd);
}

/* Cuerpo */
.nice-table tbody tr{ background:#fff; transition:transform .12s ease, box-shadow .12s ease; }
.nice-table tbody td{ padding:12px 10px; border-bottom:1px dashed #edd6a4; }
.nice-table tbody tr:hover{ transform:translateY(-1px); box-shadow:0 10px 18px rgba(0,0,0,.06); }
.nice-table .empty{ text-align:center; color:#777; padding:16px; }

.series{
  font-family: 'Poppins', sans-serif;
  letter-spacing:.2px;
}

/* WebKit */
.table-scroll::-webkit-scrollbar{ width:10px; height:10px; }
.table-scroll::-webkit-scrollbar-track{ background:#fff9d9; border-radius:999px; }
.table-scroll::-webkit-scrollbar-thumb{
  background:var(--brand); border:3px solid #fff9d9; border-radius:999px;
}
.table-scroll:hover::-webkit-scrollbar-thumb{ background:#d9ae1a; }
.table-scroll{ scrollbar-width:thin; scrollbar-color:var(--brand) #fff9d9; }

@media (max-width: 900px){
  .meta-cards{ grid-template-columns:1fr; }
  .detail-header{ flex-direction:column; align-items:flex-start; }
  .detail-header .oc-wrap{ min-width:auto; width:100%; }
  .oc-pill{ min-width:auto; display:inline-flex; }
  .input-search{ min-width:0; width:100%; }

  .nice-table thead{ display:none; }
  .nice-table tbody tr{ display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:10px; }
  .nice-table tbody td{
    display:flex; justify-content:space-between; padding:6px;
    border-bottom:1px dashed #edd6a4;
  }
  .nice-table tbody td::before{
    content: attr(data-label); font-weight:700; color:var(--muted); margin-right:10px;
  }
}

.meta-empresa{
  text-align: center;      
  display: block;
  margin: 6px auto 4px;    
}

.input-search{
  width: clamp(520px, 44vw, 740px); 
  min-width: 520px;                  
}


@media (max-width: 900px){
  .input-search{ min-width: 0; width: 100%; }
}

/* === Roundify pack: tabla redondeada === */

.table-card,
.table-scroll{
  border-radius: 20px;
  overflow: auto;         
}

.nice-table thead th:first-child{ border-top-left-radius: 14px; }
.nice-table thead th:last-child { border-top-right-radius: 14px; }

.nice-table tbody tr{ background: transparent; }              
.nice-table tbody td{ background:#fff; }


.nice-table tbody tr td:first-child{
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.nice-table tbody tr td:last-child{
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}


.nice-table tbody tr:hover{ transform: none; box-shadow: none; } 
.nice-table tbody tr:hover td{
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}

.nice-table tbody tr:last-child td{ border-bottom: none; }  

/* ===== Toolbar admin ===== */
.admin-toolbar{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  background: var(--card); border:1px solid var(--bd); border-radius:18px;
  padding:10px 12px; box-shadow: var(--shadow);
  margin: 8px 0 14px;
}
.btn-admin{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:999px; font-weight:700;
  border:2px solid var(--bd); background:#fff; cursor:pointer;
  transition: transform .06s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn-admin:hover{
  transform: translateY(-1px);
  box-shadow:0 8px 14px rgba(0,0,0,.06);
  border-color: var(--brand);
}
.btn-admin.primary{ background: var(--brand); color:#fff; border-color: var(--brand); }
.btn-admin.warn{ background:#fff3d6; border-color:#f1cc68; }
.btn-admin.danger{ background:#ffe5e5; border-color:#f3b1b1; color:#b3261e; }

/* ===== Acciones por fila ===== */
.actions-cell{ white-space:nowrap; display:flex; gap:6px; align-items:center; }
.icon-btn{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; border:1px solid var(--bd); background:#fff; cursor:pointer;
  transition: transform .06s ease, box-shadow .12s ease, border-color .12s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  box-shadow:0 8px 14px rgba(0,0,0,.06);
  border-color: var(--brand);
}
.icon-btn.edit::before{ content:"✎"; }
.icon-btn.copy::before{ content:"⧉"; }
.icon-btn.prorroga::before{ content:"⟳"; }
.icon-btn.delete::before{ content:"🗑"; }

/* ---------- REMITOS RECIENTES---------*/
.vthead:has(> div:first-child br){
  grid-template-columns:
    var(--col-fecha)      /* Fecha comunicación + N° remito */
    var(--col-oc)         /* OC */
    var(--col-empresa)    /* Empresa */
    minmax(260px, 1fr)    /* Efector */
    minmax(180px, 1fr);   /* Equipo */
}

.vrow:has(> .vcell:nth-child(5)):has(> .vcell:first-child.vcell--date){
  grid-template-columns:
    var(--col-fecha)
    var(--col-oc)
    var(--col-empresa)
    minmax(260px, 1fr)
    minmax(180px, 1fr);
}

/* ---------- REMITOS ATRASADOS ------------*/

.remitos-head-6,
.remitos-row-6{
  display:grid;
  grid-template-columns: 
    var(--col-fecha)      /* Fecha comunicación */
    150px                 /* Atraso */
    var(--col-oc)         /* OC */
    var(--col-empresa)    /* Empresa */
    minmax(260px, 1fr)    /* Efector */
    minmax(180px, 1fr);   /* Equipo */
  column-gap: var(--col-gap);
  align-items:center;
  justify-items:center;
}

/* =========================================================
   Mobile-friendly para INICIO 
   ========================================================= */

@media (max-width: 820px){

  .kpis{ grid-template-columns: 1fr; }

  .vthead{ display:none !important; }

  .vrow{
    grid-template-columns: 1fr !important;
    row-gap: 10px;
  }

  .vcell{
    justify-content: space-between !important;
    text-align: left !important;
    gap: 12px;
  }
  .vcell::before{
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    flex: 0 0 auto;
  }

  .vcell.vcell--oc,
  .vcell.vcell--state{
    background:#fff !important;
    padding:14px 16px !important;
    border-radius:16px !important;
    min-height:auto !important;
  }

  .vcell.vcell--oc{ justify-content: space-between !important; }
  .vcell.vcell--oc .oc-pill{
    min-width: 0 !important;
    width: auto !important;
    border-width: 5px;
  }

  .vcell.vcell--state{
    justify-content: space-between !important;
  }
  .vcell.vcell--state .state-pill{
    max-width:none !important;
  }

  .remitos-head-5,
  .remitos-head-6{
    display:none !important;
  }

  .remitos-row-5,
  .remitos-row-6{
    grid-template-columns: 1fr !important;
    row-gap: 10px;
    padding: 10px 0 !important;
  }

  .remitos-row-5 > div,
  .remitos-row-6 > div{
    justify-content: space-between !important;
    text-align:left !important;
    gap:12px;
  }

  .remitos-row-5 > div::before,
  .remitos-row-6 > div::before{
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    flex: 0 0 auto;
  }

  .remitos-row-5 .vcell.vcell--oc,
  .remitos-row-6 .vcell.vcell--oc,
  .remitos-row-6 .vcell.vcell--state{
    background:#fff !important;
    padding:14px 16px !important;
    border-radius:16px !important;
  }
}

.desktop-only{
  display:block;
}

.mobile-only{
  display:none;
}

@media (max-width: 820px){
  .desktop-only{
    display:none !important;
  }
  .mobile-only{
    display:block !important;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 20px 15px;
  }
}

@media (max-width: 360px) {
  .form-container {
    padding: 15px 10px;
    border-radius: 16px;
  }
}

/* =========================================================
   MEDIA QUERIES ADICIONALES PARA DISPOSITIVOS ESPECÍFICOS
   ========================================================= */

/* Tablets grandes y dispositivos intermedios (iPad Pro, Surface Pro 7, Zenbook Fold, Nest Hub Max) */
@media (max-width: 1280px) and (min-width: 821px){
  :root{
    --col-oc: 180px;
    --col-empresa: minmax(240px, 1fr);
    --col-fecha: 160px;
    --col-estado: 180px;
    --col-equipos: 70px;
    --col-gap: 10px;
  }
  
  .oc-pill{ 
    padding:8px 12px; 
    min-width: calc(var(--col-oc) - 12px);
  }
  
  .state-pill{ 
    padding:8px 10px;
    font-size:13px;
  }
  
  /* Ajustes para remitos */
  .remitos-head-5,
  .remitos-row-5{
    grid-template-columns: 
      minmax(140px, 1.1fr)
      minmax(110px, 0.9fr)
      minmax(200px, 1.6fr)
      minmax(170px, 1.3fr)
      minmax(120px, 0.9fr);
  }
  
  .remitos-head-6,
  .remitos-row-6{
    grid-template-columns: 
      minmax(120px, 1fr)
      minmax(90px, 0.7fr)
      minmax(140px, 1.1fr)
      minmax(180px, 1.4fr)
      minmax(160px, 1.2fr)
      minmax(100px, 0.8fr);
  }
}

/* Tablets (iPad, Nest Hub portrait) */
@media (max-width: 1024px) and (min-width: 821px){
  :root{
    --col-oc: 160px;
    --col-empresa: minmax(220px, 1fr);
    --col-fecha: 150px;
    --col-estado: 160px;
    --col-equipos: 65px;
    --col-gap: 8px;
  }
  
  .oc-pill{ 
    padding:7px 11px;
    font-size:14px;
    min-width: calc(var(--col-oc) - 10px);
  }
  
  .state-pill{ 
    padding:7px 9px;
    font-size:12px;
  }
  
  .vpanel{ padding:12px; }
  
  .remitos-head-5,
  .remitos-row-5{
    grid-template-columns: 
      minmax(130px, 1fr)
      minmax(105px, 0.85fr)
      minmax(180px, 1.4fr)
      minmax(160px, 1.2fr)
      minmax(110px, 0.85fr);
  }
  
  .remitos-head-6,
  .remitos-row-6{
    grid-template-columns: 
      minmax(110px, 0.9fr)
      minmax(85px, 0.7fr)
      minmax(130px, 1fr)
      minmax(160px, 1.2fr)
      minmax(150px, 1.1fr)
      minmax(95px, 0.75fr);
  }
}

/* Celulares grandes (Samsung Galaxy A51/71) */
@media (max-width: 450px){
  body{ padding:20px 10px; }
  
  .card{ padding:14px 12px; }
  
  .quick{ gap:8px; }
  
  .pill{ 
    padding:8px 12px;
    font-size:13px;
  }
  
  .kpi-value{ font-size:48px; }
  
  .vpanel{ 
    padding:12px;
    margin:14px 0;
  }
  
  .vpanel-title{
    margin:-12px -12px 12px -12px;
    padding:10px 14px;
    font-size:15px;
  }
  
  .vcell{
    padding:12px 14px;
    font-size:14px;
  }
  
  .oc-pill{
    padding:7px 13px;
    font-size:13px;
    border-width:4px;
  }
  
  .state-pill{
    padding:7px 11px;
    font-size:12px;
  }
  
  .date-plain{ font-size:14px; }
  
  .tag-remito{ 
    padding:3px 8px;
    font-size:11px;
  }
  
  .remitos-main-col{ gap:3px; }
}

/* Dispositivos muy pequeños (Nest Hub portrait, algunos celulares) */
@media (max-width: 380px){
  body{ padding:15px 8px; }
  
  .card{ 
    padding:12px 10px;
    border-radius:18px;
  }
  
  .card-header{
    font-size:15px;
    padding:10px 12px;
  }
  
  .quick{ gap:6px; }
  
  .pill{ 
    padding:7px 10px;
    font-size:12px;
  }
  
  .kpi-value{ font-size:42px; }
  
  .vpanel{ 
    padding:10px;
    margin:12px 0;
    border-radius:20px;
  }
  
  .vpanel-title{
    margin:-10px -10px 10px -10px;
    padding:9px 12px;
    font-size:14px;
    border-radius:20px 20px 0 0;
  }
  
  .vcell{
    padding:10px 12px;
    font-size:13px;
  }
  
  .oc-pill{
    padding:6px 11px;
    font-size:12px;
    border-width:3px;
  }
  
  .state-pill{
    padding:6px 9px;
    font-size:11px;
  }
}

/* Arreglo de alineación para headers SOLO en celulares */
@media (max-width: 480px) {
  .card {
    padding: 14px;
  }
  
  .card-header {
    box-sizing: border-box;
    margin: -14px -14px 14px -14px;
    border-radius: 18px 18px 0 0;
  }
}

@media (max-width: 380px) {
  .card {
    padding: 12px;
  }
  
  .card-header {
    margin: -12px -12px 12px -12px;
  }
}


.tabla-equipos{
max-height:400px;
overflow-y:auto;
border:3px solid #f0c419;
border-radius:16px;
padding:10px;
background:#fff9db;
}

#tablaEquipos{
width:100%;
border-collapse:separate;
border-spacing:0 10px;
}

#tablaEquipos thead th{
background:#e8c85a;
padding:12px;
text-align:left;
}

#tablaEquipos tbody tr{
background:white;
border-radius:10px;
}

#tablaEquipos td{
padding:12px;
}

.btn-white{
  background:#ffffff;
  border:2px solid #f0c419;
  color:#3e3e3e;
  font-weight:700;
  padding:12px 18px;
  border-radius:14px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}

.btn-white:hover{
  background:#fff8e1;
  transform:translateY(-1px);
}

.hospital-select{
width:420px;
min-width:420px;
padding-left:18px;
padding-right:40px;
text-align:left;
}


.card{
  overflow: hidden;
}

.card,
.empresa-header,
.oc-modern-row{
  background-clip: padding-box;
  position: relative;
}

.card::before,
.empresa-header::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:inherit;
  z-index:-1;
}

.card,
.oc-modern-row{
  isolation:isolate;
}

*::before,
*::after{
  content: none !important;
}

/* =========================================================
   REMITOS PANEL
   ========================================================= */

.remitos-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill,minmax(420px,1fr));
  gap:16px;
  margin-top:10px;
}

.remito-card{
  background:#fff;
  border:1px solid var(--bd);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform .08s ease, box-shadow .12s ease;
}

.remito-card:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(0,0,0,.06);
}

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

.remito-head .oc-pill{
  border-width:4px;
}

.remito-date{
  font-weight:700;
  color:#444;
}

.remito-body{
  display:grid;
  grid-template-columns:1fr;
  gap:6px;
  font-size:14px;
}

.remito-body span{
  font-weight:700;
}

.remito-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:6px;
}

.tag-remito{
  background:#111;
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.tag-pendiente{
  background:#d97706;
  color:#fff;
}

.btn-remito{
  background:#fff;
  border:2px solid var(--brand);
  border-radius:999px;
  padding:6px 14px;
  font-weight:700;
  cursor:pointer;
  transition:all .12s ease;
}

.btn-remito:hover{
  background:var(--brand);
  color:#fff;
}

/* =========================================================
   DOCUMENTOS SEGUIMIENTO
   ========================================================= */

.docs-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.docs-list li{
  background:#fff;
  border:1px solid var(--bd);
  border-radius:10px;
  padding:8px 12px;
}

.docs-list a{
  font-weight:700;
  color:#2b7cff;
}

.docs-list a:hover{
  text-decoration:underline;
}

/* =========================================================
   GRID REMITO 
   ========================================================= */

.grid-remito{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px;
}

.grid-remito label{
  display:block;
  font-weight:700;
  margin-bottom:4px;
}

.grid-remito input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--bd);
  font:inherit;
}

/* =========================================================
   ESTADO REMITOS
   ========================================================= */

.estado-remito{
padding:6px 12px;
border-radius:999px;
font-size:12px;
font-weight:800;
}

.estado-ok{
background:#e9fbf1;
color:#18a05e;
border:1px solid #c3efd6;
}

.estado-falta{
background:#ffe5e5;
color:#c62828;
border:1px solid #f5c6cb;
}

/* filtros */

.remitos-filtros{
display:flex;
gap:10px;
margin-bottom:16px;
flex-wrap:wrap;
}

.remitos-filtros select{
padding:8px 12px;
border-radius:10px;
border:1px solid var(--bd);
background:#fff;
font:inherit;
}

/* =========================================================
   EFECTORES DETALLE
   ========================================================= */

#tablaEquipos thead th:first-child{
border-top-left-radius:12px;
}

#tablaEquipos thead th:last-child{
border-top-right-radius:12px;
}

#tablaEquipos tbody td:first-child{
border-top-left-radius:10px;
border-bottom-left-radius:10px;
}

#tablaEquipos tbody td:last-child{
border-top-right-radius:10px;
border-bottom-right-radius:10px;
}

#tablaEquipos tbody tr{
cursor:pointer;
transition: all .12s ease;
}

#tablaEquipos tbody tr:hover td{
background:#fff3c4;
box-shadow:0 6px 12px rgba(0,0,0,.08);
}

/* =========================================================
   SEGUIMIENTOS DETALLE
   ========================================================= */

/* Bloque principal blanco */
.detalle-seguimiento{
    background: white;
}

/* SOLO Equipos afectados usa el mismo amarillo que Datos del remito */
.detalle-seguimiento > .vpanel:nth-of-type(2){
    background: #f2d37a !important;
}

/* Tarjetas de datos */
.detalle-seguimiento .meta{
    background: white;
}

/* Sacar el bloque interior de la tabla */
.detalle-seguimiento .table-card{
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Engrosar filas */
.detalle-seguimiento .nice-table td{
    padding: 16px 20px;
}

/* Altura filas */
.detalle-seguimiento .nice-table tr{
    height: 60px;
}

/* Hover moderno */
.detalle-seguimiento .nice-table tbody tr:hover{
    background: #f7f7f7;
    transform: scale(1.01);
    transition: all 0.15s ease;
}

.detalle-seguimiento .nice-table tbody tr{
    transition: all 0.15s ease;
}

/* =========================
   DETALLE SEGUIMIENTO FIX
   ========================= */

.detalle-seguimiento{
    background: #ffffff;
}

.detalle-seguimiento > .vpanel:nth-of-type(2){
    background: #f2d37a;
}

.detalle-seguimiento .table-scroll{
    padding: 0;
}

.detalle-seguimiento .nice-table td{
    padding: 16px 20px;
}

.detalle-seguimiento .nice-table tbody tr:hover{
    background: #f7f7f7;
}

/* =========================
   HOSPITAL DETALLE FIX
   ========================= */

/* Card principal blanca */
.hospital-card{
  background: #fff !important;
}

/* =========================
   TOOLBAR (titulo + contador + buscador)
   ========================= */

.hospital-toolbar{
  display: flex;
  flex-direction: column; 
  gap: 14px;
}

/* fila superior */
.top-row{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* buscador */
.search-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   BLOQUE INTERNO
   ========================= */

.hospital-inner{
  background: #f3e2a0;
  border-radius: 20px;
  padding: 20px 16px 16px;
  border: 1px solid #e0c36a;
  margin-top: 18px;
}

/* eliminar fondo duplicado */
.hospital-inner .table-card{
  background: transparent !important;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* =========================
   TABLA
   ========================= */

/* hover más suave */
.hospital-inner #tablaEquipos tbody tr:hover td{
  background: #fff8d6 !important;
}

/* separadores verticales en header */
.nice-table thead th{
  position: relative;
}

.nice-table thead th:not(:last-child)::after{
  content: "";
  position: absolute;
  right: 0;
  top: 0;        
  height: 100%;  
  width: 1px;
  background: rgba(0,0,0,0.2);
}