/* ==========================================================
   SIEEJC v0.6.91
   Shell institucional transversal: navbar, lienzo, brand,
   cards de inicio y tablas críticas de Jueces.
   Fuente final de verdad visual cargada al último.
   ========================================================== */

:root{
  --sieejc-shell-nav:#12284c;
  --sieejc-shell-nav-2:#12284c;
  --sieejc-shell-ink:#0b2f5f;
  --sieejc-shell-muted:#6f7f96;
  --sieejc-shell-line:#dbe6f5;
  --sieejc-shell-bg:#f4f8fd;
  --sieejc-shell-card:#ffffff;
  --sieejc-shell-shadow:0 22px 52px rgba(15,45,95,.11);
  --sieejc-shell-soft-shadow:0 10px 26px rgba(15,45,95,.065);
}

/* ==========================================================
   1) NAVBAR ÚNICA
   ========================================================== */
html body #header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  height:3.25em !important;
  min-height:3.25em !important;
  max-height:3.25em !important;
  line-height:3.25em !important;
  margin:0 !important;
  padding:0 !important;
  background:#12284c !important;
  background-image:none !important;
  color:#ffffff !important;
  opacity:1 !important;
  z-index:2147483000 !important;
  box-shadow:0 7px 18px rgba(7,24,48,.20) !important;
  overflow:visible !important;
  transform:none !important;
  filter:none !important;
  backdrop-filter:none !important;

  background-color:#12284c !important;}

html body #header::before,
html body #header::after{
  
  opacity:1 !important;
  filter:none !important;
  backdrop-filter:none !important;

  content:none !important;
  display:none !important;
  background:#12284c !important;
  background-color:#12284c !important;
  background-image:none !important;}

html body #header h1{
  height:3.25em !important;
  line-height:3.25em !important;
  margin:0 !important;
  padding:0 !important;
  top:0 !important;
}

html body #header h1 a,
html body #header nav a{
  color:#ffffff !important;
  font-weight:700 !important;
  opacity:1 !important;
  text-shadow:none !important;
}

html body #header nav{
  height:3.25em !important;
  line-height:3.25em !important;
  top:0 !important;
}

html body #header nav > ul > li > a{
  height:2em !important;
  line-height:2em !important;
}

html body #page-wrapper{
  padding-top:3.25em !important;
  background:transparent !important;
}

html{
  scroll-padding-top:calc(3.25em + 30px) !important;
}

/* Evita que overlays visuales queden por encima del menú. */
html body[data-page="inicio"] #page-wrapper::before,
html body[data-page="jueces-inicio"] #page-wrapper::before{
  z-index:0 !important;
}

/* ==========================================================
   2) LIENZO DE INICIOS
   ========================================================== */
html body[data-page="inicio"],
html body[data-page="jueces-inicio"]{
  background:linear-gradient(180deg,#f7fbff 0%,#f4f8fd 48%,#edf4fb 100%) !important;
}

html body[data-page="inicio"] #main.container,
html body[data-page="jueces-inicio"] #main.container{
  width:min(calc(100vw - 56px),1440px) !important;
  max-width:1440px !important;
  margin:0 auto !important;
  padding:3.35rem 0 2.4rem !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  position:relative !important;
  z-index:1 !important;
  box-sizing:border-box !important;
}

html body[data-page="inicio"] #page-wrapper::before,
html body[data-page="jueces-inicio"] #page-wrapper::before{
  content:"" !important;
  position:fixed !important;
  left:clamp(2.2rem,4.3vw,4.65rem) !important;
  top:calc(3.25em + 3.1rem) !important;
  width:108px !important;
  height:108px !important;
  background:url("../../images/logo_guardia_civil.png") center / contain no-repeat !important;
  opacity:.94 !important;
  filter:drop-shadow(0 16px 28px rgba(15,31,61,.15)) !important;
  pointer-events:none !important;
}

/* ==========================================================
   3) BRAND INSTITUCIONAL ÚNICO
   ========================================================== */
html body[data-page="inicio"] .sieejc-start-brand,
html body[data-page="jueces-inicio"] .sieejc-start-brand{
  width:min(720px,calc(100vw - 72px)) !important;
  min-height:92px !important;
  margin:0 auto 2.25rem !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:82px minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:center !important;
  column-gap:18px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-align:left !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

html body[data-page="inicio"] .sieejc-start-brand-logo,
html body[data-page="jueces-inicio"] .sieejc-start-brand-logo{
  width:82px !important;
  height:82px !important;
  min-width:82px !important;
  max-width:82px !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  object-fit:contain !important;
  filter:drop-shadow(0 12px 20px rgba(15,31,61,.18)) !important;
}

html body[data-page="inicio"] .sieejc-start-brand-text,
html body[data-page="jueces-inicio"] .sieejc-start-brand-text{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  font-family:inherit !important;
}

html body[data-page="inicio"] .sieejc-start-brand-text > strong,
html body[data-page="jueces-inicio"] .sieejc-start-brand-text > strong{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--sieejc-shell-ink) !important;
  font-size:1.58rem !important;
  font-weight:900 !important;
  line-height:1.12 !important;
  letter-spacing:.002em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  text-rendering:geometricPrecision !important;
  -webkit-font-smoothing:antialiased !important;
}

html body[data-page="inicio"] .sieejc-start-brand-text > span,
html body[data-page="jueces-inicio"] .sieejc-start-brand-text > span{
  display:block !important;
  margin:.28rem 0 0 !important;
  padding:0 !important;
  color:#708097 !important;
  font-size:.98rem !important;
  line-height:1.36 !important;
  font-weight:500 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

/* Si hay brand viejo en el DOM, no debe competir. */
html body[data-page="inicio"] .sieejc-brand-strip:not(.sieejc-start-brand),
html body[data-page="inicio"] .jueces-brand-strip:not(.sieejc-start-brand),
html body[data-page="jueces-inicio"] .sieejc-brand-strip:not(.sieejc-start-brand),
html body[data-page="jueces-inicio"] .jueces-brand-strip:not(.sieejc-start-brand),
html body[data-page="jueces-inicio"] .jueces-side-logo{
  display:none !important;
}

/* ==========================================================
   4) PANEL DE CARDS
   ========================================================== */
html body[data-page="inicio"] .sieejc-home-panel,
html body[data-page="jueces-inicio"] .jueces-home-panel{
  width:min(100%,1180px) !important;
  max-width:1180px !important;
  margin:0 auto 1.5rem !important;
  padding:2rem 2.45rem 1.85rem !important;
  background:rgba(255,255,255,.985) !important;
  border:1px solid var(--sieejc-shell-line) !important;
  border-radius:18px !important;
  box-shadow:var(--sieejc-shell-shadow) !important;
  box-sizing:border-box !important;
}

html body[data-page="inicio"] .sieejc-home-panel h2,
html body[data-page="jueces-inicio"] .jueces-home-intro h2{
  margin:0 0 .65rem !important;
  color:var(--sieejc-shell-ink) !important;
  font-size:1.82rem !important;
  font-weight:900 !important;
  line-height:1.16 !important;
  text-align:center !important;
}

html body[data-page="inicio"] .sieejc-home-panel > p,
html body[data-page="jueces-inicio"] .jueces-home-intro p{
  margin:.38rem auto !important;
  color:#697a92 !important;
  font-size:1rem !important;
  line-height:1.54 !important;
  font-weight:500 !important;
  text-align:center !important;
  max-width:900px !important;
}

html body[data-page="inicio"] .sieejc-home-panel > p#bienvenida,
html body[data-page="inicio"] .sieejc-home-panel > .muted,
html body[data-page="jueces-inicio"] .jueces-home-intro > p#bienvenida,
html body[data-page="jueces-inicio"] .jueces-home-intro > .muted{
  margin-top:.85rem !important;
  margin-bottom:1.45rem !important;
}

html body[data-page="inicio"] .sieejc-home-grid,
html body[data-page="inicio"] .sieejc-home-grid.juridico-home-grid-complete,
html body[data-page="jueces-inicio"] .jueces-access-grid{
  width:min(100%,780px) !important;
  max-width:780px !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:1.15rem !important;
  align-items:stretch !important;
  justify-content:center !important;
}

html body[data-page="inicio"] .sieejc-home-card,
html body[data-page="jueces-inicio"] .jueces-access-card{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  width:100% !important;
  min-width:0 !important;
  min-height:190px !important;
  padding:1.18rem 1.2rem 1.08rem !important;
  background:#fff !important;
  border:1px solid #e1e9f4 !important;
  border-radius:16px !important;
  box-shadow:var(--sieejc-shell-soft-shadow) !important;
  box-sizing:border-box !important;
  text-align:left !important;
}

html body[data-page="inicio"] .sieejc-home-card[hidden],
html body[data-page="inicio"] .sieejc-home-card[aria-hidden="true"],
html body[data-page="inicio"] .sieejc-home-card.sieejc-force-hidden,
html body[data-page="jueces-inicio"] .jueces-access-card[hidden],
html body[data-page="jueces-inicio"] .jueces-access-card[aria-hidden="true"]{
  display:none !important;
}

html body[data-page="inicio"] .sieejc-home-card-icon,
html body[data-page="jueces-inicio"] .jueces-access-icon{
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  border-radius:14px !important;
  margin:0 0 .85rem !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#edf6ff !important;
  font-size:1.25rem !important;
  line-height:1 !important;
}

html body[data-page="inicio"] .sieejc-home-card h3,
html body[data-page="jueces-inicio"] .jueces-access-card h3{
  margin:0 0 .48rem !important;
  color:#15396c !important;
  font-size:1.05rem !important;
  font-weight:850 !important;
  line-height:1.25 !important;
}

html body[data-page="inicio"] .sieejc-home-card p,
html body[data-page="jueces-inicio"] .jueces-access-card p{
  flex:1 1 auto !important;
  margin:0 0 1rem !important;
  color:#65768e !important;
  font-size:.93rem !important;
  font-weight:500 !important;
  line-height:1.48 !important;
}

html body[data-page="inicio"] .sieejc-home-card .button,
html body[data-page="inicio"] .sieejc-home-card a.button,
html body[data-page="inicio"] .sieejc-home-card button.button,
html body[data-page="jueces-inicio"] .jueces-access-card .button,
html body[data-page="jueces-inicio"] .jueces-access-card a.button,
html body[data-page="jueces-inicio"] .jueces-access-card button.button{
  width:100% !important;
  height:40px !important;
  min-height:40px !important;
  margin:auto 0 0 !important;
  padding:0 .85rem !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.42rem !important;
  border-radius:9px !important;
  font-size:.92rem !important;
  font-weight:800 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}

html body[data-page="inicio"] .sieejc-home-grid[data-visible-count="1"],
html body[data-page="jueces-inicio"] .jueces-access-grid[data-visible-count="1"]{
  width:min(100%,390px) !important;
  grid-template-columns:1fr !important;
}

html body[data-page="inicio"] .sieejc-home-grid[data-visible-count="2"],
html body[data-page="jueces-inicio"] .jueces-access-grid[data-visible-count="2"],
html body[data-page="inicio"] .sieejc-home-grid[data-visible-count="3"],
html body[data-page="jueces-inicio"] .jueces-access-grid[data-visible-count="3"],
html body[data-page="inicio"] .sieejc-home-grid[data-visible-count="4"],
html body[data-page="jueces-inicio"] .jueces-access-grid[data-visible-count="4"]{
  width:min(100%,780px) !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

html body[data-page="inicio"] .sieejc-home-grid[data-visible-count="3"] .sieejc-home-card[data-visible-index="3"],
html body[data-page="jueces-inicio"] .jueces-access-grid[data-visible-count="3"] .jueces-access-card[data-visible-index="3"]{
  grid-column:1 / -1 !important;
  width:calc((780px - 1.15rem)/2) !important;
  max-width:100% !important;
  justify-self:center !important;
}

html body[data-page="inicio"] .sieejc-home-meta,
html body[data-page="jueces-inicio"] .jueces-stats-grid{
  width:min(100%,780px) !important;
  max-width:780px !important;
  margin:1.05rem auto 0 !important;
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr)) !important;
  gap:.95rem !important;
}

html body[data-page="inicio"] .sieejc-home-meta article,
html body[data-page="jueces-inicio"] .jueces-stat-card{
  min-height:84px !important;
  padding:1rem 1.08rem .9rem !important;
  background:#fbfdff !important;
  border:1px solid #e1e9f4 !important;
  border-radius:14px !important;
  box-shadow:0 8px 18px rgba(15,45,95,.045) !important;
  box-sizing:border-box !important;
}

/* ==========================================================
   5) JUECES: TABLAS ANCHAS Y CENTRADAS
   ========================================================== */
html body[data-page="jueces-inicio"] .sieejc-jueces-shell{
  width:min(100%,calc(100vw - 64px)) !important;
  max-width:1500px !important;
  margin:0 auto !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias,
html body[data-page="jueces-inicio"] #resolucionesEmitidas{
  scroll-margin-top:calc(3.25em + 30px) !important;
  width:min(calc(100vw - 96px),1480px) !important;
  max-width:1480px !important;
  margin:1.6rem auto 0 !important;
  padding:1.4rem 1.5rem 1.15rem !important;
  box-sizing:border-box !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-toolbar{
  display:grid !important;
  grid-template-columns:minmax(320px,450px) minmax(520px,1fr) !important;
  align-items:end !important;
  gap:1.1rem !important;
  margin-bottom:1rem !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-toolbar-actions{
  width:100% !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:.75rem !important;
  flex-wrap:nowrap !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-toolbar-actions input{
  flex:1 1 auto !important;
  min-width:520px !important;
}

html body[data-page="jueces-inicio"] .jueces-table-wrap{
  width:100% !important;
  max-width:100% !important;
  margin:0 auto !important;
  overflow-x:auto !important;
  border-radius:16px !important;
  border:1px solid #dbe6f5 !important;
  background:#fff !important;
}

html body[data-page="jueces-inicio"] table.jueces-table{
  width:100% !important;
  border-collapse:collapse !important;
  background:#fff !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table{
  min-width:0 !important;
  table-layout:fixed !important;
}

html body[data-page="jueces-inicio"] #resolucionesEmitidas table.jueces-table{
  min-width:1180px !important;
  table-layout:fixed !important;
}

html body[data-page="jueces-inicio"] table.jueces-table th{
  background:#12386f !important;
  color:#fff !important;
  font-weight:850 !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  font-size:.88rem !important;
  text-align:center !important;
  vertical-align:middle !important;
  padding:.8rem .75rem !important;
}

html body[data-page="jueces-inicio"] table.jueces-table td{
  vertical-align:middle !important;
  padding:.86rem .8rem !important;
  border-bottom:1px solid #e7eef8 !important;
  color:#18375e !important;
  background:#fff !important;
}

html body[data-page="jueces-inicio"] table.jueces-table tbody tr:hover td{
  background:#fbfdff !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table tbody tr.jueces-row-cancelled td{
  background:#fff7ed !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table tbody tr.jueces-row-cancelled:hover td{
  background:#fff2df !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(1),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(1){width:15% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(2),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(2){width:20% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(3),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(3){width:12% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(4),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(4){width:14% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(5),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(5){width:12% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(6),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(6){width:10% !important;text-align:center !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(7),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(7){width:17% !important;text-align:center !important;}

html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-audience-actions{
  display:table-cell !important;
  text-align:center !important;
  white-space:nowrap !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-open-audience-btn{
  width:154px !important;
  min-width:154px !important;
  max-width:154px !important;
  height:34px !important;
  padding:0 .65rem !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.35rem !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

/* ==========================================================
   6) RESPONSIVO
   ========================================================== */
@media(max-width:1280px){
  html body[data-page="inicio"] #page-wrapper::before,
  html body[data-page="jueces-inicio"] #page-wrapper::before{
    display:none !important;
  }
}

@media(max-width:1180px){
  html body[data-page="inicio"] #main.container,
  html body[data-page="jueces-inicio"] #main.container{
    width:min(calc(100vw - 32px),1180px) !important;
  }
  html body[data-page="jueces-inicio"] #bandejaAudiencias,
  html body[data-page="jueces-inicio"] #resolucionesEmitidas{
    width:min(100%,calc(100vw - 36px)) !important;
  }
  html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-toolbar{
    grid-template-columns:1fr !important;
  }
  html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-toolbar-actions{
    flex-wrap:wrap !important;
    justify-content:stretch !important;
  }
  html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-toolbar-actions input{
    min-width:0 !important;
  }
}

@media(max-width:760px){
  html body[data-page="inicio"] .sieejc-start-brand,
  html body[data-page="jueces-inicio"] .sieejc-start-brand{
    width:100% !important;
    grid-template-columns:1fr !important;
    justify-items:center !important;
    row-gap:.75rem !important;
    text-align:center !important;
  }
  html body[data-page="inicio"] .sieejc-start-brand-text,
  html body[data-page="jueces-inicio"] .sieejc-start-brand-text{
    align-items:center !important;
    text-align:center !important;
  }
  html body[data-page="inicio"] .sieejc-home-grid,
  html body[data-page="jueces-inicio"] .jueces-access-grid,
  html body[data-page="inicio"] .sieejc-home-grid[data-visible-count],
  html body[data-page="jueces-inicio"] .jueces-access-grid[data-visible-count]{
    width:100% !important;
    grid-template-columns:1fr !important;
  }
  html body[data-page="inicio"] .sieejc-home-grid[data-visible-count="3"] .sieejc-home-card[data-visible-index="3"],
  html body[data-page="jueces-inicio"] .jueces-access-grid[data-visible-count="3"] .jueces-access-card[data-visible-index="3"]{
    width:100% !important;
    grid-column:auto !important;
  }
}

/* ==========================================================
   SIEEJC v0.6.90 - Navbar institucional sólida definitiva
   Fuente de verdad transversal para el menú superior.
   - Gana contra main.css, sieejc-home.css y sieejc-home-unificado.css
     usando #page-wrapper > #header cuando existe.
   - Elimina gradiente, transparencia y pseudo-capas del header.
   ========================================================== */
html body #page-wrapper > #header,
html body[data-page] #page-wrapper > #header,
html body[data-page="inicio"] #page-wrapper > #header,
html body[data-page="jueces-inicio"] #page-wrapper > #header,
html body.landing #page-wrapper > #header,
html body #header,
html body #header.alt,
html body #header.reveal,
html body #header.scrolly,
html body #header.is-visible{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  height:3.25em !important;
  min-height:3.25em !important;
  max-height:3.25em !important;
  line-height:3.25em !important;
  margin:0 !important;
  padding:0 !important;
  background:#12284c !important;
  background-color:#12284c !important;
  background-image:none !important;
  color:#ffffff !important;
  opacity:1 !important;
  border:0 !important;
  box-shadow:0 7px 18px rgba(7,24,48,.18) !important;
  transform:none !important;
  filter:none !important;
  backdrop-filter:none !important;
  overflow:visible !important;
  z-index:2147483000 !important;
}

html body #page-wrapper > #header::before,
html body #page-wrapper > #header::after,
html body[data-page] #page-wrapper > #header::before,
html body[data-page] #page-wrapper > #header::after,
html body #header::before,
html body #header::after,
html body #header.alt::before,
html body #header.alt::after{
  content:none !important;
  display:none !important;
  background:#12284c !important;
  background-color:#12284c !important;
  background-image:none !important;
  opacity:0 !important;
  filter:none !important;
  backdrop-filter:none !important;
  box-shadow:none !important;
}

html body #page-wrapper:has(> #header),
html body[data-page] #page-wrapper:has(> #header),
html body.landing #page-wrapper:has(> #header),
html body #page-wrapper{
  padding-top:3.25em !important;
}

html body #header h1{
  position:absolute !important;
  top:0 !important;
  left:clamp(1rem,2vw,1.45rem) !important;
  height:3.25em !important;
  line-height:3.25em !important;
  margin:0 !important;
  padding:0 !important;
  color:#ffffff !important;
  font-family:inherit !important;
  font-size:1rem !important;
  font-weight:800 !important;
  letter-spacing:.01em !important;
  white-space:nowrap !important;
  text-shadow:none !important;
}

html body #header h1 a{
  height:inherit !important;
  line-height:inherit !important;
  color:#ffffff !important;
  font-family:inherit !important;
  font-size:.95rem !important;
  font-weight:800 !important;
  letter-spacing:.01em !important;
  text-decoration:none !important;
  text-shadow:none !important;
  opacity:1 !important;
}

html body #header nav,
html body #header #nav{
  position:absolute !important;
  top:0 !important;
  right:clamp(.85rem,1.8vw,1.25rem) !important;
  height:3.25em !important;
  line-height:3.25em !important;
  margin:0 !important;
  padding:0 !important;
  color:#ffffff !important;
}

html body #header nav > ul,
html body #header #nav > ul{
  height:3.25em !important;
  line-height:3.25em !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:.14rem !important;
  list-style:none !important;
}

html body #header nav > ul > li,
html body #header #nav > ul > li{
  height:3.25em !important;
  line-height:3.25em !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

html body #header nav > ul > li > a,
html body #header #nav > ul > li > a,
html body #header nav a:not(.button),
html body #header #nav a:not(.button){
  height:2.05rem !important;
  min-height:2.05rem !important;
  line-height:2.05rem !important;
  margin:0 !important;
  padding:0 .78rem !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:0 !important;
  border-radius:8px !important;
  background:transparent !important;
  color:#ffffff !important;
  font-family:inherit !important;
  font-size:.88rem !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  text-decoration:none !important;
  text-transform:none !important;
  opacity:1 !important;
  text-shadow:none !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}

html body #header nav > ul > li > a:hover,
html body #header #nav > ul > li > a:hover,
html body #header nav > ul > li.active > a:not(.button),
html body #header #nav > ul > li.active > a:not(.button){
  background:rgba(255,255,255,.10) !important;
  color:#ffffff !important;
}

html body #header nav > ul > li[hidden],
html body #header nav > ul > li[aria-hidden="true"],
html body #header nav > ul > li.sieejc-force-hidden,
html body #header #nav > ul > li[hidden],
html body #header #nav > ul > li[aria-hidden="true"],
html body #header #nav > ul > li.sieejc-force-hidden{
  display:none !important;
  visibility:hidden !important;
  width:0 !important;
  min-width:0 !important;
  max-width:0 !important;
  height:0 !important;
  min-height:0 !important;
  max-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}

@media(max-width:1180px){
  html body #header h1 a{font-size:.86rem !important;}
  html body #header nav > ul > li > a,
  html body #header #nav > ul > li > a,
  html body #header nav a:not(.button),
  html body #header #nav a:not(.button){
    padding:0 .54rem !important;
    font-size:.8rem !important;
  }
}

/* ==========================================================
   SIEEJC v0.6.91 - Homologación visual transversal definitiva
   Navbar y brand institucional con medidas fijas en px.
   Motivo: las reglas históricas usaban 3.25em; el alto real variaba
   por cascada/tamaño base del módulo. Esta sección es la fuente final
   de verdad y se carga al último en todos los módulos web.
   ========================================================== */
:root{
  --sieejc-nav-height:56px;
  --sieejc-nav-bg:#12284c;
  --sieejc-nav-link-h:32px;
  --sieejc-nav-brand-font:15px;
  --sieejc-nav-link-font:14px;
  --sieejc-start-logo:82px;
  --sieejc-start-width:720px;
  --sieejc-start-gap:18px;
  --sieejc-start-title:25px;
  --sieejc-start-subtitle:15px;
  --sieejc-start-top-gap:52px;
  --sieejc-side-logo:110px;
}

html body #page-wrapper > #header,
html body[data-page] #page-wrapper > #header,
html body[data-page="inicio"] #page-wrapper > #header,
html body[data-page="jueces-inicio"] #page-wrapper > #header,
html body.landing #page-wrapper > #header,
html body #header,
html body #header.alt,
html body #header.reveal,
html body #header.scrolly,
html body #header.is-visible{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  margin:0 !important;
  padding:0 !important;
  background:var(--sieejc-nav-bg) !important;
  background-color:var(--sieejc-nav-bg) !important;
  background-image:none !important;
  color:#fff !important;
  opacity:1 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:0 7px 18px rgba(7,24,48,.18) !important;
  transform:none !important;
  filter:none !important;
  backdrop-filter:none !important;
  overflow:visible !important;
  z-index:2147483000 !important;
  box-sizing:border-box !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:16px !important;
}

html body #page-wrapper > #header::before,
html body #page-wrapper > #header::after,
html body[data-page] #page-wrapper > #header::before,
html body[data-page] #page-wrapper > #header::after,
html body #header::before,
html body #header::after,
html body #header.alt::before,
html body #header.alt::after,
html body #header.reveal::before,
html body #header.reveal::after{
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  background:var(--sieejc-nav-bg) !important;
  background-color:var(--sieejc-nav-bg) !important;
  background-image:none !important;
  opacity:0 !important;
  filter:none !important;
  backdrop-filter:none !important;
  box-shadow:none !important;
}

html body #page-wrapper:has(> #header),
html body[data-page] #page-wrapper:has(> #header),
html body.landing #page-wrapper:has(> #header),
html body #page-wrapper{
  padding-top:var(--sieejc-nav-height) !important;
}

html body #header h1,
html body #page-wrapper > #header h1{
  position:absolute !important;
  top:0 !important;
  left:24px !important;
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-nav-brand-font) !important;
  font-weight:800 !important;
  letter-spacing:.01em !important;
  white-space:nowrap !important;
  text-shadow:none !important;
  box-sizing:border-box !important;
}

html body #header h1 a,
html body #page-wrapper > #header h1 a{
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-nav-brand-font) !important;
  font-weight:800 !important;
  letter-spacing:.01em !important;
  text-decoration:none !important;
  text-shadow:none !important;
  border:0 !important;
  opacity:1 !important;
  box-sizing:border-box !important;
}

html body #header nav,
html body #header #nav,
html body #page-wrapper > #header nav,
html body #page-wrapper > #header #nav{
  position:absolute !important;
  top:0 !important;
  right:24px !important;
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  max-width:calc(100vw - 330px) !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:none !important;
  box-sizing:border-box !important;
}
html body #header nav::-webkit-scrollbar,
html body #header #nav::-webkit-scrollbar{display:none !important;}

html body #header nav > ul,
html body #header #nav > ul,
html body #page-wrapper > #header nav > ul,
html body #page-wrapper > #header #nav > ul{
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:4px !important;
  list-style:none !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}

html body #header nav > ul > li,
html body #header #nav > ul > li,
html body #page-wrapper > #header nav > ul > li,
html body #page-wrapper > #header #nav > ul > li{
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box !important;
}

html body #header nav > ul > li > a,
html body #header #nav > ul > li > a,
html body #header nav a:not(.button),
html body #header #nav a:not(.button),
html body #page-wrapper > #header nav > ul > li > a,
html body #page-wrapper > #header #nav > ul > li > a{
  height:var(--sieejc-nav-link-h) !important;
  min-height:var(--sieejc-nav-link-h) !important;
  max-height:var(--sieejc-nav-link-h) !important;
  line-height:var(--sieejc-nav-link-h) !important;
  margin:0 !important;
  padding:0 12px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:0 !important;
  border-radius:8px !important;
  background:transparent !important;
  color:#fff !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-nav-link-font) !important;
  font-weight:750 !important;
  letter-spacing:0 !important;
  text-decoration:none !important;
  text-transform:none !important;
  opacity:1 !important;
  text-shadow:none !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}

html body #header nav > ul > li > a:hover,
html body #header #nav > ul > li > a:hover,
html body #header nav > ul > li.active > a:not(.button),
html body #header #nav > ul > li.active > a:not(.button){
  background:rgba(255,255,255,.10) !important;
  color:#fff !important;
}

html body #header .sieejc-notif-bell-button,
html body #header button.sieejc-notif-bell-button,
html body #header .jueces-bell-button,
html body #header button.jueces-bell-button,
html body #header .jueces-bell-icon{
  width:32px !important;
  min-width:32px !important;
  max-width:32px !important;
  height:32px !important;
  min-height:32px !important;
  max-height:32px !important;
  line-height:32px !important;
  margin:0 !important;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:8px !important;
  color:#fff !important;
  box-sizing:border-box !important;
}

html body[data-page="inicio"] #main.container,
html body[data-page="jueces-inicio"] #main.container,
html body[data-page="inicio"] #page-wrapper:has(> #header) > #main.container,
html body[data-page="jueces-inicio"] #page-wrapper:has(> #header) > #main.container{
  width:min(calc(100vw - 56px),1440px) !important;
  max-width:1440px !important;
  margin:0 auto !important;
  padding:var(--sieejc-start-top-gap) 0 36px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  position:relative !important;
  z-index:1 !important;
  box-sizing:border-box !important;
}

html body[data-page="inicio"] #page-wrapper::before,
html body[data-page="jueces-inicio"] #page-wrapper::before{
  content:"" !important;
  position:fixed !important;
  left:clamp(44px,4.4vw,76px) !important;
  top:calc(var(--sieejc-nav-height) + 44px) !important;
  width:var(--sieejc-side-logo) !important;
  height:var(--sieejc-side-logo) !important;
  background:url("../../images/logo_guardia_civil.png") center / contain no-repeat !important;
  opacity:.94 !important;
  filter:drop-shadow(0 16px 28px rgba(15,31,61,.15)) !important;
  pointer-events:none !important;
  z-index:0 !important;
}

html body[data-page="inicio"] .sieejc-start-brand,
html body[data-page="jueces-inicio"] .sieejc-start-brand{
  width:min(var(--sieejc-start-width),calc(100vw - 72px)) !important;
  min-height:92px !important;
  height:92px !important;
  margin:0 auto 34px !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:var(--sieejc-start-logo) minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:center !important;
  column-gap:var(--sieejc-start-gap) !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-align:left !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
}

html body[data-page="inicio"] .sieejc-start-brand-logo,
html body[data-page="jueces-inicio"] .sieejc-start-brand-logo{
  width:var(--sieejc-start-logo) !important;
  height:var(--sieejc-start-logo) !important;
  min-width:var(--sieejc-start-logo) !important;
  min-height:var(--sieejc-start-logo) !important;
  max-width:var(--sieejc-start-logo) !important;
  max-height:var(--sieejc-start-logo) !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  object-fit:contain !important;
  filter:drop-shadow(0 12px 20px rgba(15,31,61,.18)) !important;
}

html body[data-page="inicio"] .sieejc-start-brand-text,
html body[data-page="jueces-inicio"] .sieejc-start-brand-text{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  min-width:0 !important;
  max-width:100% !important;
  height:92px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  box-sizing:border-box !important;
}

html body[data-page="inicio"] .sieejc-start-brand-text > strong,
html body[data-page="jueces-inicio"] .sieejc-start-brand-text > strong{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:#0b2f5f !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-start-title) !important;
  font-weight:900 !important;
  line-height:1.12 !important;
  letter-spacing:.002em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  text-rendering:geometricPrecision !important;
  -webkit-font-smoothing:antialiased !important;
}

html body[data-page="inicio"] .sieejc-start-brand-text > span,
html body[data-page="jueces-inicio"] .sieejc-start-brand-text > span{
  display:block !important;
  margin:6px 0 0 !important;
  padding:0 !important;
  color:#708097 !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-start-subtitle) !important;
  line-height:1.36 !important;
  font-weight:500 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

html body[data-page="inicio"] .sieejc-home-panel,
html body[data-page="jueces-inicio"] .jueces-home-panel{
  margin-top:0 !important;
}

html body[data-page="jueces-inicio"] #bandejaAudiencias,
html body[data-page="jueces-inicio"] #resolucionesEmitidas{
  scroll-margin-top:calc(var(--sieejc-nav-height) + 28px) !important;
}

@media(max-width:1280px){
  :root{--sieejc-side-logo:0px;}
  html body[data-page="inicio"] #page-wrapper::before,
  html body[data-page="jueces-inicio"] #page-wrapper::before{display:none !important;}
  html body #header nav,
  html body #header #nav{max-width:calc(100vw - 260px) !important;}
}

@media(max-width:1180px){
  html body #header h1,
  html body #header h1 a{font-size:13px !important;}
  html body #header nav > ul > li > a,
  html body #header #nav > ul > li > a,
  html body #header nav a:not(.button),
  html body #header #nav a:not(.button){padding:0 9px !important;font-size:12.5px !important;}
}

@media(max-width:760px){
  :root{--sieejc-nav-height:54px;--sieejc-start-logo:72px;--sieejc-start-title:21px;--sieejc-start-subtitle:14px;--sieejc-start-top-gap:34px;}
  html body #header nav,
  html body #header #nav{display:none !important;}
  html body[data-page="inicio"] .sieejc-start-brand,
  html body[data-page="jueces-inicio"] .sieejc-start-brand{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    grid-template-columns:1fr !important;
    justify-items:center !important;
    row-gap:10px !important;
    text-align:center !important;
  }
  html body[data-page="inicio"] .sieejc-start-brand-text,
  html body[data-page="jueces-inicio"] .sieejc-start-brand-text{
    height:auto !important;
    align-items:center !important;
    text-align:center !important;
  }
}

/* ==========================================================
   SIEEJC v0.6.92 - LOGO LATERAL ÚNICO EN INICIOS
   Diagnóstico: algunos módulos todavía heredaban body::before
   desde main.css y además el shell pintaba #page-wrapper::before.
   Resultado: el escudo lateral podía verse duplicado/superpuesto.
   Regla final: en las pantallas de inicio solo existe un emblema
   lateral, el administrado por #page-wrapper::before.
   ========================================================== */
html body[data-page="inicio"]::before,
html body[data-page="jueces-inicio"]::before,
html body[data-page="inicio"]::after,
html body[data-page="jueces-inicio"]::after{
  content:none !important;
  display:none !important;
  width:0 !important;
  height:0 !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:0 !important;
  max-height:0 !important;
  opacity:0 !important;
  visibility:hidden !important;
  background:none !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
  pointer-events:none !important;
  z-index:-1 !important;
}

html body[data-page="inicio"] .jueces-side-logo,
html body[data-page="jueces-inicio"] .jueces-side-logo,
html body[data-page="inicio"] .sieejc-side-logo,
html body[data-page="jueces-inicio"] .sieejc-side-logo,
html body[data-page="inicio"] .side-logo,
html body[data-page="jueces-inicio"] .side-logo{
  display:none !important;
  content:none !important;
  width:0 !important;
  height:0 !important;
  opacity:0 !important;
  visibility:hidden !important;
  background:none !important;
  background-image:none !important;
  pointer-events:none !important;
}

html body[data-page="inicio"] #page-wrapper::before,
html body[data-page="jueces-inicio"] #page-wrapper::before{
  content:"" !important;
  display:block !important;
  position:fixed !important;
  left:clamp(44px,4.4vw,76px) !important;
  top:calc(var(--sieejc-nav-height,56px) + 44px) !important;
  width:var(--sieejc-side-logo,110px) !important;
  height:var(--sieejc-side-logo,110px) !important;
  min-width:var(--sieejc-side-logo,110px) !important;
  min-height:var(--sieejc-side-logo,110px) !important;
  max-width:var(--sieejc-side-logo,110px) !important;
  max-height:var(--sieejc-side-logo,110px) !important;
  background:url("../../images/logo_guardia_civil.png") center / contain no-repeat !important;
  opacity:.94 !important;
  visibility:visible !important;
  filter:drop-shadow(0 16px 28px rgba(15,31,61,.15)) !important;
  pointer-events:none !important;
  z-index:0 !important;
}

@media(max-width:1280px){
  html body[data-page="inicio"] #page-wrapper::before,
  html body[data-page="jueces-inicio"] #page-wrapper::before{
    display:none !important;
  }
}

/* ==========================================================
   SIEEJC v0.6.94 - Jueces: Bandeja sin scroll por botón compacto
   Diagnóstico: el scroll restante no venía solo de Avance; el botón de
   Acciones conservaba ancho fijo grande y el min-width de la tabla seguía
   forzando desborde. La fuente final es el shell transversal.
   ========================================================== */
html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-table-wrap{
  overflow-x:hidden !important;
  overflow-y:visible !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table{
  width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th,
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td{
  padding:.74rem .56rem !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(1),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(1){width:15% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(2),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(2){width:20% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(3),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(3){width:12% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(4),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(4){width:14% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(5),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(5){width:12% !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(6),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(6){width:10% !important;text-align:center !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table th:nth-child(7),
html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table td:nth-child(7){width:17% !important;text-align:center !important;}
html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-audience-actions{
  display:table-cell !important;
  text-align:center !important;
  white-space:nowrap !important;
  padding-left:.38rem !important;
  padding-right:.38rem !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-open-audience-btn{
  width:154px !important;
  max-width:154px !important;
  min-width:154px !important;
  height:34px !important;
  min-height:34px !important;
  border-radius:9px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.26rem !important;
  padding:0 .42rem !important;
  line-height:1 !important;
  font-size:.74rem !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-action-icon{
  flex:0 0 auto !important;
  font-size:.78rem !important;
  line-height:1 !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-action-text{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-progress-cell{
  padding-left:.45rem !important;
  padding-right:.45rem !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-progress-line{
  gap:.28rem !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-progress-chip{
  padding:.24rem .42rem !important;
  font-size:.71rem !important;
  gap:.22rem !important;
}
html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-progress-dot{
  width:.31rem !important;
  height:.31rem !important;
  flex-basis:.31rem !important;
}
@media(max-width:980px){
  html body[data-page="jueces-inicio"] #bandejaAudiencias .jueces-table-wrap{
    overflow-x:auto !important;
  }
  html body[data-page="jueces-inicio"] #bandejaAudiencias table.jueces-table{
    min-width:920px !important;
  }
}

/* ==========================================================
   SIEEJC v0.6.95 - Brand institucional transversal en todas las vistas
   Diagnóstico: los inicios ya usaban .sieejc-start-brand, pero las vistas
   internas seguían mezclando .brand-strip, .sieejc-brand-strip,
   .sieejc-page-head, .sieejc-module-brand y .jueces-brand-strip.
   Resultado: el bloque logo + título cambiaba de altura, posición y escala.
   Regla final: una sola métrica visual para navbar, escudo lateral y brand
   en inicios e interfaces internas, sin tocar lógica JS ni endpoints.
   ========================================================== */
:root{
  --sieejc-nav-height:56px;
  --sieejc-brand-width:720px;
  --sieejc-brand-logo:82px;
  --sieejc-brand-gap:18px;
  --sieejc-brand-title:26px;
  --sieejc-brand-subtitle:16px;
  --sieejc-brand-top-gap:52px;
  --sieejc-brand-bottom-gap:38px;
  --sieejc-side-logo-size:108px;
  --sieejc-shell-nav:#12284c;
  --sieejc-shell-ink:#0b2f5f;
  --sieejc-shell-muted:#708097;
}

html body #header,
html body #page-wrapper > #header{
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  background:#12284c !important;
  background-color:#12284c !important;
  background-image:none !important;
  opacity:1 !important;
}

html body #header h1,
html body #header h1 a,
html body #header nav,
html body #header #nav,
html body #header nav > ul,
html body #header #nav > ul,
html body #header nav > ul > li,
html body #header #nav > ul > li{
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
}

html body #header nav > ul > li > a,
html body #header #nav > ul > li > a,
html body #header nav a:not(.button),
html body #header #nav a:not(.button){
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

html body #page-wrapper{
  padding-top:var(--sieejc-nav-height) !important;
}

html body:not(.sieejc-login-page):not([data-page="inicio"]):not([data-page="jueces-inicio"]) #main.container{
  margin-top:0 !important;
  padding-top:var(--sieejc-brand-top-gap) !important;
}

/* Escudo lateral único, con la misma posición en home e internas. */
html body:not(.sieejc-login-page) #page-wrapper::before{
  content:"" !important;
  position:fixed !important;
  left:clamp(44px,4.4vw,76px) !important;
  top:calc(var(--sieejc-nav-height) + 44px) !important;
  width:var(--sieejc-side-logo-size) !important;
  height:var(--sieejc-side-logo-size) !important;
  background:url("../../images/logo_guardia_civil.png") center / contain no-repeat !important;
  opacity:.94 !important;
  filter:drop-shadow(0 16px 28px rgba(15,31,61,.15)) !important;
  pointer-events:none !important;
  z-index:0 !important;
}

html body:not(.sieejc-login-page)::before,
html body:not(.sieejc-login-page)::after,
html body:not(.sieejc-login-page) .sieejc-side-logo,
html body:not(.sieejc-login-page) .jueces-side-logo,
html body:not(.sieejc-login-page) .side-logo{
  content:none !important;
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  background:none !important;
}

/* Contenedor del brand: el padre puede cambiar por módulo, la métrica no. */
html body:not(.sieejc-login-page) #main.container > header.sieejc-home-wrap:first-child,
html body:not(.sieejc-login-page) #main.container > header.sieejc-module-brand:first-child,
html body:not(.sieejc-login-page) #main.container > header.sieejc-page-head:first-child,
html body:not(.sieejc-login-page) #main.container > header:first-child,
html body:not(.sieejc-login-page) .sieejc-jueces-shell > .jueces-brand-strip:first-child{
  width:100% !important;
  max-width:1440px !important;
  min-height:0 !important;
  margin:0 auto var(--sieejc-brand-bottom-gap) !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-align:center !important;
  display:block !important;
  box-sizing:border-box !important;
}

/* Bloque visual logo + título: igual para start-brand, module-brand y brands heredados. */
html body:not(.sieejc-login-page) .sieejc-start-brand,
html body:not(.sieejc-login-page) #main.container > header.sieejc-module-brand > .sieejc-brand-strip,
html body:not(.sieejc-login-page) #main.container > header.sieejc-home-wrap > .sieejc-brand-strip,
html body:not(.sieejc-login-page) #main.container > header.sieejc-page-head > .sieejc-brand-strip,
html body:not(.sieejc-login-page) #main.container > header:first-child > .sieejc-brand-strip,
html body:not(.sieejc-login-page) #main.container > header:first-child > .brand-strip,
html body:not(.sieejc-login-page) .sieejc-jueces-shell > .jueces-brand-strip:first-child{
  width:min(var(--sieejc-brand-width),calc(100vw - 72px)) !important;
  min-height:92px !important;
  height:92px !important;
  margin:0 auto !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:var(--sieejc-brand-logo) minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:center !important;
  column-gap:var(--sieejc-brand-gap) !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-align:left !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-logo,
html body:not(.sieejc-login-page) .sieejc-start-brand > img,
html body:not(.sieejc-login-page) #main.container > header.sieejc-module-brand > .sieejc-brand-strip > img,
html body:not(.sieejc-login-page) #main.container > header.sieejc-home-wrap > .sieejc-brand-strip > img,
html body:not(.sieejc-login-page) #main.container > header.sieejc-page-head > .sieejc-brand-strip > img,
html body:not(.sieejc-login-page) #main.container > header:first-child > .sieejc-brand-strip > img,
html body:not(.sieejc-login-page) #main.container > header:first-child > .brand-strip > img,
html body:not(.sieejc-login-page) .sieejc-jueces-shell > .jueces-brand-strip:first-child > img{
  width:var(--sieejc-brand-logo) !important;
  height:var(--sieejc-brand-logo) !important;
  min-width:var(--sieejc-brand-logo) !important;
  min-height:var(--sieejc-brand-logo) !important;
  max-width:var(--sieejc-brand-logo) !important;
  max-height:var(--sieejc-brand-logo) !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  object-fit:contain !important;
  filter:drop-shadow(0 12px 20px rgba(15,31,61,.18)) !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-text,
html body:not(.sieejc-login-page) .sieejc-brand-text,
html body:not(.sieejc-login-page) .brand-text,
html body:not(.sieejc-login-page) .jueces-brand-text{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  min-width:0 !important;
  max-width:100% !important;
  height:92px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  box-sizing:border-box !important;
  text-align:left !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-text > strong,
html body:not(.sieejc-login-page) .sieejc-brand-text > strong,
html body:not(.sieejc-login-page) .brand-text > strong,
html body:not(.sieejc-login-page) .jueces-brand-text > strong{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--sieejc-shell-ink) !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-brand-title) !important;
  font-weight:900 !important;
  line-height:1.12 !important;
  letter-spacing:.002em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  text-rendering:geometricPrecision !important;
  -webkit-font-smoothing:antialiased !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-text > span,
html body:not(.sieejc-login-page) .sieejc-brand-text > span,
html body:not(.sieejc-login-page) .brand-text > span,
html body:not(.sieejc-login-page) .jueces-brand-text > span{
  display:block !important;
  margin:6px 0 0 !important;
  padding:0 !important;
  color:var(--sieejc-shell-muted) !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-brand-subtitle) !important;
  line-height:1.36 !important;
  font-weight:500 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

html body:not(.sieejc-login-page) #main.container > header.sieejc-page-head > h1,
html body:not(.sieejc-login-page) #main.container > header.sieejc-page-head > h2,
html body:not(.sieejc-login-page) #main.container > header.sieejc-page-head > p,
html body:not(.sieejc-login-page) #main.container > header.sieejc-module-brand + header,
html body:not(.sieejc-login-page) #main.container > header.sieejc-home-wrap + header{
  margin-top:18px !important;
  text-align:center !important;
}

html body:not(.sieejc-login-page) #main.container > header.sieejc-page-head > h2,
html body:not(.sieejc-login-page) #main.container > header.sieejc-module-brand + header > h2,
html body:not(.sieejc-login-page) #main.container > header.sieejc-home-wrap + header > h2{
  color:var(--sieejc-shell-ink) !important;
  font-weight:500 !important;
}

@media(max-width:1280px){
  :root{--sieejc-side-logo-size:0px;}
  html body:not(.sieejc-login-page) #page-wrapper::before{display:none !important;}
}

@media(max-width:760px){
  :root{
    --sieejc-nav-height:54px;
    --sieejc-brand-logo:72px;
    --sieejc-brand-title:21px;
    --sieejc-brand-subtitle:14px;
    --sieejc-brand-top-gap:34px;
    --sieejc-brand-bottom-gap:28px;
  }
  html body:not(.sieejc-login-page) .sieejc-start-brand,
  html body:not(.sieejc-login-page) #main.container > header.sieejc-module-brand > .sieejc-brand-strip,
  html body:not(.sieejc-login-page) #main.container > header.sieejc-home-wrap > .sieejc-brand-strip,
  html body:not(.sieejc-login-page) #main.container > header.sieejc-page-head > .sieejc-brand-strip,
  html body:not(.sieejc-login-page) #main.container > header:first-child > .sieejc-brand-strip,
  html body:not(.sieejc-login-page) #main.container > header:first-child > .brand-strip,
  html body:not(.sieejc-login-page) .sieejc-jueces-shell > .jueces-brand-strip:first-child{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    grid-template-columns:1fr !important;
    justify-items:center !important;
    row-gap:10px !important;
    text-align:center !important;
  }
  html body:not(.sieejc-login-page) .sieejc-start-brand-text,
  html body:not(.sieejc-login-page) .sieejc-brand-text,
  html body:not(.sieejc-login-page) .brand-text,
  html body:not(.sieejc-login-page) .jueces-brand-text{
    height:auto !important;
    align-items:center !important;
    text-align:center !important;
  }
}


/* ==========================================================
   SIEEJC v0.6.96 - Brand único por DOM + métrica fija
   Diagnóstico: las vistas internas y los homes ya compartían color/navbar,
   pero no compartían la misma estructura HTML del bloque institucional.
   Unas pantallas usaban .sieejc-start-brand, otras .brand-strip,
   .sieejc-brand-strip, .sieejc-page-head o .sieejc-module-brand; además
   algunas mezclaban el título de la página dentro del mismo header del brand.
   Esta regla final hace que el bloque escudo + título del módulo mida y se
   posicione igual en todos los HTML normalizados.
   ========================================================== */
:root{
  --sieejc-nav-height:56px;
  --sieejc-brand-top-gap:52px;
  --sieejc-brand-bottom-gap:42px;
  --sieejc-brand-width:720px;
  --sieejc-brand-height:92px;
  --sieejc-brand-logo:82px;
  --sieejc-brand-gap:18px;
  --sieejc-brand-title:26px;
  --sieejc-brand-subtitle:16px;
  --sieejc-side-logo-size:108px;
  --sieejc-shell-nav:#12284c;
  --sieejc-shell-ink:#0b2f5f;
  --sieejc-shell-muted:#708097;
}

html body #header,
html body #page-wrapper > #header{
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  margin:0 !important;
  padding:0 !important;
  background:#12284c !important;
  background-color:#12284c !important;
  background-image:none !important;
  opacity:1 !important;
}

html body #header h1,
html body #header h1 a,
html body #header nav,
html body #header #nav,
html body #header nav > ul,
html body #header #nav > ul,
html body #header nav > ul > li,
html body #header #nav > ul > li,
html body #header nav > ul > li > a,
html body #header #nav > ul > li > a,
html body #header nav a:not(.button),
html body #header #nav a:not(.button){
  height:var(--sieejc-nav-height) !important;
  min-height:var(--sieejc-nav-height) !important;
  max-height:var(--sieejc-nav-height) !important;
  line-height:var(--sieejc-nav-height) !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

html body #header::before,
html body #header::after,
html body #page-wrapper > #header::before,
html body #page-wrapper > #header::after{
  content:none !important;
  display:none !important;
  background:none !important;
  background-image:none !important;
}

html body #page-wrapper{
  padding-top:var(--sieejc-nav-height) !important;
}

html body:not(.sieejc-login-page) #main.container{
  margin-top:0 !important;
  padding-top:var(--sieejc-brand-top-gap) !important;
}

/* Escudo lateral único y alineado con el brand, tanto en home como en internas. */
html body:not(.sieejc-login-page) #page-wrapper::before{
  content:"" !important;
  position:fixed !important;
  left:clamp(44px,4.4vw,76px) !important;
  top:calc(var(--sieejc-nav-height) + var(--sieejc-brand-top-gap)) !important;
  width:var(--sieejc-side-logo-size) !important;
  height:var(--sieejc-side-logo-size) !important;
  background:url("../../images/logo_guardia_civil.png") center / contain no-repeat !important;
  opacity:.94 !important;
  filter:drop-shadow(0 16px 28px rgba(15,31,61,.15)) !important;
  pointer-events:none !important;
  z-index:0 !important;
}

html body:not(.sieejc-login-page)::before,
html body:not(.sieejc-login-page)::after,
html body:not(.sieejc-login-page) .sieejc-side-logo,
html body:not(.sieejc-login-page) .jueces-side-logo,
html body:not(.sieejc-login-page) .side-logo{
  content:none !important;
  display:none !important;
  opacity:0 !important;
  visibility:hidden !important;
  background:none !important;
}

/* Host del brand: todas las vistas normalizadas usan este primer bloque. */
html body:not(.sieejc-login-page) #main.container > header.sieejc-brand-host:first-child,
html body:not(.sieejc-login-page) #main.container > header.sieejc-module-brand:first-child,
html body:not(.sieejc-login-page) #main.container > header.sieejc-home-wrap:first-child{
  width:100% !important;
  max-width:none !important;
  height:var(--sieejc-brand-height) !important;
  min-height:var(--sieejc-brand-height) !important;
  max-height:var(--sieejc-brand-height) !important;
  margin:0 auto var(--sieejc-brand-bottom-gap) !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:left !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

/* Caso Jueces: el brand vive dentro de .sieejc-jueces-shell. */
html body:not(.sieejc-login-page) #main.container > .sieejc-jueces-shell > .sieejc-start-brand:first-child{
  margin:0 auto var(--sieejc-brand-bottom-gap) !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand{
  width:min(var(--sieejc-brand-width),calc(100vw - 72px)) !important;
  height:var(--sieejc-brand-height) !important;
  min-height:var(--sieejc-brand-height) !important;
  max-height:var(--sieejc-brand-height) !important;
  margin:0 auto !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:var(--sieejc-brand-logo) minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:center !important;
  column-gap:var(--sieejc-brand-gap) !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-align:left !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-logo,
html body:not(.sieejc-login-page) .sieejc-start-brand > img{
  width:var(--sieejc-brand-logo) !important;
  height:var(--sieejc-brand-logo) !important;
  min-width:var(--sieejc-brand-logo) !important;
  min-height:var(--sieejc-brand-logo) !important;
  max-width:var(--sieejc-brand-logo) !important;
  max-height:var(--sieejc-brand-logo) !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  object-fit:contain !important;
  filter:drop-shadow(0 12px 20px rgba(15,31,61,.18)) !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-text{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  min-width:0 !important;
  max-width:100% !important;
  height:var(--sieejc-brand-height) !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  box-sizing:border-box !important;
  text-align:left !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-text > strong{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--sieejc-shell-ink) !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-brand-title) !important;
  font-weight:900 !important;
  line-height:1.12 !important;
  letter-spacing:.002em !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  text-rendering:geometricPrecision !important;
  -webkit-font-smoothing:antialiased !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-text > span{
  display:block !important;
  margin:6px 0 0 !important;
  padding:0 !important;
  color:var(--sieejc-shell-muted) !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-brand-subtitle) !important;
  line-height:1.36 !important;
  font-weight:500 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

/* Títulos propios de cada pantalla, separados del brand para que no muevan el escudo. */
html body:not(.sieejc-login-page) #main.container > header.sieejc-page-title{
  width:min(calc(100vw - 72px),1180px) !important;
  max-width:1180px !important;
  margin:calc(18px - var(--sieejc-brand-bottom-gap)) auto 2rem !important;
  padding:0 !important;
  text-align:center !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

html body:not(.sieejc-login-page) #main.container > header.sieejc-page-title h1,
html body:not(.sieejc-login-page) #main.container > header.sieejc-page-title h2{
  margin:0 0 1rem !important;
  color:var(--sieejc-shell-ink) !important;
  font-weight:500 !important;
  line-height:1.15 !important;
}

html body:not(.sieejc-login-page) #main.container > header.sieejc-page-title p{
  margin:.35rem auto 0 !important;
  max-width:880px !important;
  color:#718098 !important;
  line-height:1.55 !important;
}

@media(max-width:1280px){
  :root{--sieejc-side-logo-size:0px;}
  html body:not(.sieejc-login-page) #page-wrapper::before{display:none !important;}
}

@media(max-width:760px){
  :root{
    --sieejc-nav-height:54px;
    --sieejc-brand-logo:72px;
    --sieejc-brand-title:21px;
    --sieejc-brand-subtitle:14px;
    --sieejc-brand-top-gap:34px;
    --sieejc-brand-bottom-gap:30px;
    --sieejc-brand-height:auto;
  }
  html body:not(.sieejc-login-page) #main.container > header.sieejc-brand-host:first-child,
  html body:not(.sieejc-login-page) #main.container > header.sieejc-module-brand:first-child,
  html body:not(.sieejc-login-page) #main.container > header.sieejc-home-wrap:first-child{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
  }
  html body:not(.sieejc-login-page) .sieejc-start-brand{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    grid-template-columns:1fr !important;
    justify-items:center !important;
    row-gap:10px !important;
    text-align:center !important;
  }
  html body:not(.sieejc-login-page) .sieejc-start-brand-text{
    height:auto !important;
    align-items:center !important;
    text-align:center !important;
  }
}
/* FIN SIEEJC v0.6.96
   ========================================================== */

/* ==========================================================
   SIEEJC v0.6.97 - POSICIÓN ÚNICA DEL BRAND EN TODAS LAS VISTAS
   Diagnóstico: el DOM ya estaba unificado, pero los inicios todavía
   heredaban reglas antiguas con body[data-page="inicio"] #main.container
   y algunas vistas internas heredaban padding/márgenes de main.css o CSS
   propio del módulo. Resultado: el bloque escudo + título tenía la misma
   estructura, pero no el mismo eje vertical. Esta regla final mueve el
   espaciado al host del brand y deja #main sin padding superior variable,
   para que homes e internas inicien exactamente en la misma coordenada.
   ========================================================== */
:root{
  --sieejc-brand-stage-gap:52px;
  --sieejc-brand-stage-bottom:42px;
  --sieejc-brand-stage-width:720px;
  --sieejc-brand-stage-height:92px;
  --sieejc-brand-stage-logo:82px;
  --sieejc-brand-stage-gap-x:18px;
  --sieejc-brand-stage-title:26px;
  --sieejc-brand-stage-subtitle:16px;
  --sieejc-side-logo-stage-size:108px;
}

html body:not(.sieejc-login-page) #page-wrapper > #main.container,
html body:not(.sieejc-login-page)[data-page] #page-wrapper > #main.container,
html body[data-page="inicio"]:not(.sieejc-login-page) #page-wrapper > #main.container,
html body[data-page="jueces-inicio"]:not(.sieejc-login-page) #page-wrapper > #main.container,
html body:not(.sieejc-login-page) #page-wrapper:has(> #header) > #main.container,
html body:not(.sieejc-login-page)[data-page] #page-wrapper:has(> #header) > #main.container,
html body[data-page="inicio"]:not(.sieejc-login-page) #page-wrapper:has(> #header) > #main.container,
html body[data-page="jueces-inicio"]:not(.sieejc-login-page) #page-wrapper:has(> #header) > #main.container{
  width:min(calc(100vw - 56px),1440px) !important;
  max-width:1440px !important;
  margin:0 auto !important;
  padding-top:0 !important;
  padding-right:0 !important;
  padding-left:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  position:relative !important;
  z-index:1 !important;
  box-sizing:border-box !important;
}

html body:not(.sieejc-login-page) #page-wrapper::before,
html body:not(.sieejc-login-page)[data-page] #page-wrapper::before,
html body[data-page="inicio"]:not(.sieejc-login-page) #page-wrapper::before,
html body[data-page="jueces-inicio"]:not(.sieejc-login-page) #page-wrapper::before{
  content:"" !important;
  position:fixed !important;
  left:clamp(44px,4.4vw,76px) !important;
  top:calc(var(--sieejc-nav-height) + var(--sieejc-brand-stage-gap)) !important;
  width:var(--sieejc-side-logo-stage-size) !important;
  height:var(--sieejc-side-logo-stage-size) !important;
  background:url("../../images/logo_guardia_civil.png") center / contain no-repeat !important;
  opacity:.94 !important;
  filter:drop-shadow(0 16px 28px rgba(15,31,61,.15)) !important;
  pointer-events:none !important;
  z-index:0 !important;
}

html body:not(.sieejc-login-page) #page-wrapper > #main.container > header.sieejc-brand-host:first-child,
html body:not(.sieejc-login-page)[data-page] #page-wrapper > #main.container > header.sieejc-brand-host:first-child,
html body:not(.sieejc-login-page) #page-wrapper > #main.container > header.sieejc-module-brand:first-child,
html body:not(.sieejc-login-page)[data-page] #page-wrapper > #main.container > header.sieejc-module-brand:first-child,
html body:not(.sieejc-login-page) #page-wrapper:has(> #header) > #main.container > header.sieejc-brand-host:first-child,
html body:not(.sieejc-login-page)[data-page] #page-wrapper:has(> #header) > #main.container > header.sieejc-brand-host:first-child,
html body:not(.sieejc-login-page) #page-wrapper:has(> #header) > #main.container > header.sieejc-module-brand:first-child,
html body:not(.sieejc-login-page)[data-page] #page-wrapper:has(> #header) > #main.container > header.sieejc-module-brand:first-child{
  width:100% !important;
  max-width:none !important;
  height:var(--sieejc-brand-stage-height) !important;
  min-height:var(--sieejc-brand-stage-height) !important;
  max-height:var(--sieejc-brand-stage-height) !important;
  margin:var(--sieejc-brand-stage-gap) auto var(--sieejc-brand-stage-bottom) !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:left !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
}

html body:not(.sieejc-login-page) #page-wrapper > #main.container > .sieejc-jueces-shell:first-child,
html body:not(.sieejc-login-page)[data-page] #page-wrapper > #main.container > .sieejc-jueces-shell:first-child,
html body:not(.sieejc-login-page) #page-wrapper:has(> #header) > #main.container > .sieejc-jueces-shell:first-child,
html body:not(.sieejc-login-page)[data-page] #page-wrapper:has(> #header) > #main.container > .sieejc-jueces-shell:first-child{
  width:100% !important;
  max-width:1440px !important;
  margin:0 auto !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  box-sizing:border-box !important;
}

html body:not(.sieejc-login-page) #page-wrapper > #main.container > .sieejc-jueces-shell:first-child > .sieejc-start-brand:first-child,
html body:not(.sieejc-login-page)[data-page] #page-wrapper > #main.container > .sieejc-jueces-shell:first-child > .sieejc-start-brand:first-child,
html body:not(.sieejc-login-page) #page-wrapper:has(> #header) > #main.container > .sieejc-jueces-shell:first-child > .sieejc-start-brand:first-child,
html body:not(.sieejc-login-page)[data-page] #page-wrapper:has(> #header) > #main.container > .sieejc-jueces-shell:first-child > .sieejc-start-brand:first-child{
  margin:var(--sieejc-brand-stage-gap) auto var(--sieejc-brand-stage-bottom) !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand,
html body:not(.sieejc-login-page)[data-page] .sieejc-start-brand,
html body[data-page="inicio"]:not(.sieejc-login-page) .sieejc-start-brand,
html body[data-page="jueces-inicio"]:not(.sieejc-login-page) .sieejc-start-brand{
  width:min(var(--sieejc-brand-stage-width),calc(100vw - 72px)) !important;
  height:var(--sieejc-brand-stage-height) !important;
  min-height:var(--sieejc-brand-stage-height) !important;
  max-height:var(--sieejc-brand-stage-height) !important;
  margin:0 auto !important;
  padding:0 !important;
  display:grid !important;
  grid-template-columns:var(--sieejc-brand-stage-logo) minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:center !important;
  column-gap:var(--sieejc-brand-stage-gap-x) !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-align:left !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-logo,
html body:not(.sieejc-login-page)[data-page] .sieejc-start-brand-logo,
html body:not(.sieejc-login-page) .sieejc-start-brand > img,
html body:not(.sieejc-login-page)[data-page] .sieejc-start-brand > img{
  width:var(--sieejc-brand-stage-logo) !important;
  height:var(--sieejc-brand-stage-logo) !important;
  min-width:var(--sieejc-brand-stage-logo) !important;
  min-height:var(--sieejc-brand-stage-logo) !important;
  max-width:var(--sieejc-brand-stage-logo) !important;
  max-height:var(--sieejc-brand-stage-logo) !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  object-fit:contain !important;
  align-self:center !important;
  justify-self:center !important;
  filter:drop-shadow(0 12px 20px rgba(15,31,61,.18)) !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-text,
html body:not(.sieejc-login-page)[data-page] .sieejc-start-brand-text{
  height:var(--sieejc-brand-stage-height) !important;
  min-height:var(--sieejc-brand-stage-height) !important;
  max-height:var(--sieejc-brand-stage-height) !important;
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  box-sizing:border-box !important;
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-text > strong,
html body:not(.sieejc-login-page)[data-page] .sieejc-start-brand-text > strong{
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  color:#0b2f5f !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-brand-stage-title) !important;
  font-weight:900 !important;
  line-height:1.12 !important;
  letter-spacing:.002em !important;
}

html body:not(.sieejc-login-page) .sieejc-start-brand-text > span,
html body:not(.sieejc-login-page)[data-page] .sieejc-start-brand-text > span{
  margin:6px 0 0 !important;
  padding:0 !important;
  display:block !important;
  color:#708097 !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:var(--sieejc-brand-stage-subtitle) !important;
  line-height:1.36 !important;
  font-weight:500 !important;
}

html body:not(.sieejc-login-page) #page-wrapper > #main.container > header.sieejc-brand-host:first-child + *,
html body:not(.sieejc-login-page) #page-wrapper > #main.container > header.sieejc-module-brand:first-child + *,
html body:not(.sieejc-login-page) #page-wrapper > #main.container > .sieejc-jueces-shell:first-child > .sieejc-start-brand:first-child + *{
  margin-top:0 !important;
}

@media(max-width:760px){
  :root{
    --sieejc-brand-stage-gap:34px;
    --sieejc-brand-stage-bottom:30px;
    --sieejc-brand-stage-height:auto;
    --sieejc-brand-stage-logo:72px;
    --sieejc-brand-stage-title:21px;
    --sieejc-brand-stage-subtitle:14px;
  }
  html body:not(.sieejc-login-page) .sieejc-start-brand,
  html body:not(.sieejc-login-page)[data-page] .sieejc-start-brand{
    width:100% !important;
    grid-template-columns:1fr !important;
    justify-items:center !important;
    row-gap:10px !important;
    text-align:center !important;
  }
  html body:not(.sieejc-login-page) .sieejc-start-brand-text,
  html body:not(.sieejc-login-page)[data-page] .sieejc-start-brand-text{
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    align-items:center !important;
    text-align:center !important;
  }
}



/* ============================================================
   SIEEJC v0.6.98 · Saneamiento transversal de tablas operativas
   - Paneles internos más anchos cuando contienen tablas.
   - Tipografía compacta y uniforme.
   - Acciones finales sin recorte.
   - Se ocultan datos territoriales repetidos solo en listados JS.
   ============================================================ */
:root{
  --sieejc-table-panel-width:min(calc(100vw - 132px),1360px);
  --sieejc-table-font:13px;
  --sieejc-table-header-font:12px;
  --sieejc-table-cell-pad-y:10px;
  --sieejc-table-cell-pad-x:12px;
  --sieejc-table-action-width:112px;
}

html body:not(.sieejc-login-page) #page-wrapper > #main.container > section.juridico-panel,
html body:not(.sieejc-login-page) #page-wrapper > #main.container > section.box.historial-table-box,
html body:not(.sieejc-login-page) #page-wrapper > #main.container > section.box:has(#tbodyHistorial),
html body:not(.sieejc-login-page) #page-wrapper > #main.container > section:has(.juridico-table-wrap),
html body:not(.sieejc-login-page) #page-wrapper > #main.container > section:has(.table-wrapper),
html body:not(.sieejc-login-page) #page-wrapper > #main.container > section:has(.iph-table-wrap),
html body:not(.sieejc-login-page) #page-wrapper > #main.container > section:has(.pending-table-wrap),
html body:not(.sieejc-login-page) #page-wrapper > #main.container > section:has(.sieejc-certificados-table-wrap),
html body:not(.sieejc-login-page) #page-wrapper > #main.container > section:has(.list-table-wrap),
html body:not(.sieejc-login-page) #page-wrapper > #main.container > section:has(.report-detail-table){
  width:var(--sieejc-table-panel-width) !important;
  max-width:var(--sieejc-table-panel-width) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
}

html body:not(.sieejc-login-page) :where(.juridico-table-wrap,.table-wrapper,.iph-table-wrap,.pending-table-wrap,.admin-table-wrap,.sieejc-certificados-table-wrap,.list-table-wrap,.table-responsive){
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  box-sizing:border-box !important;
}

html body:not(.sieejc-login-page) :where(table.juridico-table, table.historial-wide-table-main, table.custodia-table, table.iph-table, table.pending-table, table.admin-users-table, table.compact-table, table.jueces-table, table.sieejc-certificados-table, table.juridico-search-table, table.juridico-resolutions-table, table.alt, .table-wrapper table){
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  font-size:var(--sieejc-table-font) !important;
  line-height:1.34 !important;
}

html body:not(.sieejc-login-page) :where(table.juridico-table, table.historial-wide-table-main, table.custodia-table, table.iph-table, table.pending-table, table.admin-users-table, table.compact-table, table.jueces-table, table.sieejc-certificados-table, table.juridico-search-table, table.juridico-resolutions-table, table.alt, .table-wrapper table) th{
  padding:10px 12px !important;
  font-size:var(--sieejc-table-header-font) !important;
  line-height:1.2 !important;
  font-weight:850 !important;
  white-space:nowrap !important;
  vertical-align:middle !important;
}

html body:not(.sieejc-login-page) :where(table.juridico-table, table.historial-wide-table-main, table.custodia-table, table.iph-table, table.pending-table, table.admin-users-table, table.compact-table, table.jueces-table, table.sieejc-certificados-table, table.juridico-search-table, table.juridico-resolutions-table, table.alt, .table-wrapper table) td{
  padding:var(--sieejc-table-cell-pad-y) var(--sieejc-table-cell-pad-x) !important;
  font-size:var(--sieejc-table-font) !important;
  line-height:1.36 !important;
  vertical-align:top !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}

html body:not(.sieejc-login-page) :where(table.juridico-table, table.historial-wide-table-main, table.custodia-table, table.iph-table, table.pending-table, table.admin-users-table, table.compact-table, table.jueces-table, table.sieejc-certificados-table, table.juridico-search-table, table.juridico-resolutions-table, table.alt, .table-wrapper table) td:last-child,
html body:not(.sieejc-login-page) :where(table.juridico-table, table.historial-wide-table-main, table.custodia-table, table.iph-table, table.pending-table, table.admin-users-table, table.compact-table, table.jueces-table, table.sieejc-certificados-table, table.juridico-search-table, table.juridico-resolutions-table, table.alt, .table-wrapper table) th:last-child{
  width:var(--sieejc-table-action-width) !important;
  min-width:var(--sieejc-table-action-width) !important;
  max-width:var(--sieejc-table-action-width) !important;
  text-align:center !important;
  overflow:visible !important;
}

html body:not(.sieejc-login-page) :where(table.juridico-table, table.historial-wide-table-main, table.custodia-table, table.iph-table, table.pending-table, table.admin-users-table, table.compact-table, table.jueces-table, table.sieejc-certificados-table, table.juridico-search-table, table.juridico-resolutions-table, table.alt, .table-wrapper table) td:last-child .button.small,
html body:not(.sieejc-login-page) :where(table.juridico-table, table.historial-wide-table-main, table.custodia-table, table.iph-table, table.pending-table, table.admin-users-table, table.compact-table, table.jueces-table, table.sieejc-certificados-table, table.juridico-search-table, table.juridico-resolutions-table, table.alt, .table-wrapper table) td:last-child button.small,
html body:not(.sieejc-login-page) .sieejc-table-action{
  width:calc(var(--sieejc-table-action-width) - 14px) !important;
  min-width:calc(var(--sieejc-table-action-width) - 14px) !important;
  max-width:calc(var(--sieejc-table-action-width) - 14px) !important;
  height:32px !important;
  min-height:32px !important;
  padding:0 10px !important;
  margin:0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  border-radius:8px !important;
  font-size:11.5px !important;
  line-height:1 !important;
  white-space:nowrap !important;
  text-align:center !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* Jurídico: anchos de tabla vehicular luego de retirar territorio repetido. */
html body:not(.sieejc-login-page) table.juridico-table th:nth-child(1),
html body:not(.sieejc-login-page) table.juridico-table td:nth-child(1){width:17% !important;}
html body:not(.sieejc-login-page) table.juridico-table th:nth-child(2),
html body:not(.sieejc-login-page) table.juridico-table td:nth-child(2){width:13% !important;}
html body:not(.sieejc-login-page) table.juridico-table th:nth-child(3),
html body:not(.sieejc-login-page) table.juridico-table td:nth-child(3){width:15% !important;}
html body:not(.sieejc-login-page) table.juridico-table th:nth-child(4),
html body:not(.sieejc-login-page) table.juridico-table td:nth-child(4){width:14% !important;}
html body:not(.sieejc-login-page) table.juridico-table th:nth-child(5),
html body:not(.sieejc-login-page) table.juridico-table td:nth-child(5){width:12% !important;}
html body:not(.sieejc-login-page) table.juridico-table th:nth-child(6),
html body:not(.sieejc-login-page) table.juridico-table td:nth-child(6){width:13% !important;}
html body:not(.sieejc-login-page) table.juridico-table th:nth-child(7),
html body:not(.sieejc-login-page) table.juridico-table td:nth-child(7){width:6% !important;text-align:center !important;}
html body:not(.sieejc-login-page) table.juridico-table th:nth-child(8),
html body:not(.sieejc-login-page) table.juridico-table td:nth-child(8){width:10% !important;}

/* Procesal/Jueces historial: evita que la acción quede cortada. */
html body:not(.sieejc-login-page) table.historial-wide-table-main th:nth-child(1),
html body:not(.sieejc-login-page) table.historial-wide-table-main td:nth-child(1),
html body:not(.sieejc-login-page) .table-wrapper table:has(#tbodyHistorial) th:nth-child(1),
html body:not(.sieejc-login-page) .table-wrapper table:has(#tbodyHistorial) td:nth-child(1){width:21% !important;}
html body:not(.sieejc-login-page) table.historial-wide-table-main th:nth-child(2),
html body:not(.sieejc-login-page) table.historial-wide-table-main td:nth-child(2),
html body:not(.sieejc-login-page) .table-wrapper table:has(#tbodyHistorial) th:nth-child(2),
html body:not(.sieejc-login-page) .table-wrapper table:has(#tbodyHistorial) td:nth-child(2){width:14% !important;}
html body:not(.sieejc-login-page) table.historial-wide-table-main th:nth-child(3),
html body:not(.sieejc-login-page) table.historial-wide-table-main td:nth-child(3),
html body:not(.sieejc-login-page) table.historial-wide-table-main th:nth-child(4),
html body:not(.sieejc-login-page) table.historial-wide-table-main td:nth-child(4){width:12% !important;}
html body:not(.sieejc-login-page) table.historial-wide-table-main th:nth-child(5),
html body:not(.sieejc-login-page) table.historial-wide-table-main td:nth-child(5){width:12% !important;}
html body:not(.sieejc-login-page) table.historial-wide-table-main th:nth-child(6),
html body:not(.sieejc-login-page) table.historial-wide-table-main td:nth-child(6){width:17% !important;}
html body:not(.sieejc-login-page) table.historial-wide-table-main th:nth-child(7),
html body:not(.sieejc-login-page) table.historial-wide-table-main td:nth-child(7){width:12% !important;}

html body:not(.sieejc-login-page) :where(.doc-indicators,.line-icons.exp-indicators){
  gap:4px !important;
}
html body:not(.sieejc-login-page) :where(.doc-indicator,.line-icon.doc-badge){
  transform:scale(.92) !important;
  transform-origin:center !important;
}
html body:not(.sieejc-login-page) .table-toolbar{
  gap:10px !important;
  align-items:center !important;
  flex-wrap:wrap !important;
}

@media(max-width:1200px){
  :root{--sieejc-table-panel-width:calc(100vw - 56px);--sieejc-table-font:12.4px;--sieejc-table-action-width:104px;}
  html body:not(.sieejc-login-page) :where(table.juridico-table, table.historial-wide-table-main, table.custodia-table, table.iph-table, table.pending-table, table.admin-users-table, table.compact-table, table.jueces-table, table.sieejc-certificados-table, table.juridico-search-table, table.juridico-resolutions-table, table.alt, .table-wrapper table){
    min-width:1080px !important;
  }
}
@media(max-width:760px){
  :root{--sieejc-table-panel-width:calc(100vw - 28px);--sieejc-table-font:12px;--sieejc-table-action-width:100px;}
}


/* ============================================================
   SIEEJC v0.6.99 · Saneamiento transversal de modales
   - Todas las modales viven dentro del área de trabajo, debajo de navbar.
   - Encabezado/barra de título homologado en los 6 módulos web.
   - Botones de modal con colores institucionales consistentes.
   - Evita que la barra de título quede oculta detrás del menú superior.
   - En media print no interviene, para conservar formatos imprimibles.
   ============================================================ */
@media screen{
:root{
  --sieejc-modal-top:var(--sieejc-nav-height,56px);
  --sieejc-modal-gap:18px;
  --sieejc-modal-bg:#ffffff;
  --sieejc-modal-title-bg:#12284c;
  --sieejc-modal-title-fg:#ffffff;
  --sieejc-modal-line:#dbe6f5;
  --sieejc-modal-muted:#66758c;
  --sieejc-modal-primary:#12386f;
  --sieejc-modal-primary-hover:#0f2f61;
  --sieejc-modal-danger:#b42318;
  --sieejc-modal-success:#167044;
  --sieejc-modal-warning:#b7791f;
}

/* Overlay dinámico SIEEJCModal y overlays heredados (.modal/original-modal). */
html body:not(.sieejc-login-page) .sieejc-modal-overlay,
html body:not(.sieejc-login-page) .modal,
html body:not(.sieejc-login-page) .original-modal,
html body:not(.sieejc-login-page) .photo-modal,
html body:not(.sieejc-login-page) .pdf-modal,
html body:not(.sieejc-login-page) .document-modal,
html body:not(.sieejc-login-page) .preview-modal,
html body:not(.sieejc-login-page) .modal-backdrop{
  position:fixed !important;
  top:var(--sieejc-modal-top) !important;
  right:0 !important;
  bottom:0 !important;
  left:0 !important;
  width:100vw !important;
  height:auto !important;
  min-height:0 !important;
  max-height:calc(100dvh - var(--sieejc-modal-top)) !important;
  margin:0 !important;
  padding:var(--sieejc-modal-gap) !important;
  background:rgba(15,23,42,.58) !important;
  backdrop-filter:blur(2px) !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  z-index:2147482900 !important;
}

/* Cuando una modal legacy está visible mediante display:block, centrarla como flex sin forzar modales ocultas. */
html body:not(.sieejc-login-page) .modal[style*="display: block"],
html body:not(.sieejc-login-page) .modal[style*="display:block"],
html body:not(.sieejc-login-page) .modal.is-active,
html body:not(.sieejc-login-page) .modal.active,
html body:not(.sieejc-login-page) .modal.show,
html body:not(.sieejc-login-page) .original-modal[style*="display: block"],
html body:not(.sieejc-login-page) .original-modal[style*="display:block"]{
  display:flex !important;
}

/* La navbar queda visible y por encima; la modal ya no intenta meterse debajo de ella. */
html body:not(.sieejc-login-page) #header{
  z-index:2147483000 !important;
}

/* Tarjeta modal: compacta, flexible y sin salirse del workspace. */
html body:not(.sieejc-login-page) .sieejc-modal,
html body:not(.sieejc-login-page) .modal-card,
html body:not(.sieejc-login-page) .modal-content,
html body:not(.sieejc-login-page) .original-modal-box,
html body:not(.sieejc-login-page) .pdf-modal-card,
html body:not(.sieejc-login-page) .photo-viewer-card{
  background:var(--sieejc-modal-bg) !important;
  color:#24364d !important;
  border:1px solid var(--sieejc-modal-line) !important;
  border-radius:16px !important;
  box-shadow:0 24px 64px rgba(7,24,48,.28) !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  width:100% !important;
  max-height:calc(100dvh - var(--sieejc-modal-top) - (var(--sieejc-modal-gap) * 2)) !important;
  margin:0 auto !important;
  padding:0 !important;
  box-sizing:border-box !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
}

/* Anchos por tipo, sin agrandar alerts chicos que llegan con maxWidth inline. */
html body:not(.sieejc-login-page) .modal-card,
html body:not(.sieejc-login-page) .modal-content,
html body:not(.sieejc-login-page) .original-modal-box{
  max-width:min(980px,calc(100vw - 56px)) !important;
}
html body:not(.sieejc-login-page) .modal-card.wide,
html body:not(.sieejc-login-page) .sieejc-modal.sieejc-modal-document,
html body:not(.sieejc-login-page) .sieejc-modal.sieejc-modal-notification,
html body:not(.sieejc-login-page) .iph-confirm-modal,
html body:not(.sieejc-login-page) .custodia-modal-card,
html body:not(.sieejc-login-page) .pdf-modal-card,
html body:not(.sieejc-login-page) .original-modal-box{
  max-width:min(1120px,calc(100vw - 56px)) !important;
}

/* Barra de título institucional común. */
html body:not(.sieejc-login-page) .sieejc-modal-header,
html body:not(.sieejc-login-page) .modal-head,
html body:not(.sieejc-login-page) .modal-header,
html body:not(.sieejc-login-page) .original-modal-head{
  flex:0 0 auto !important;
  min-height:44px !important;
  height:auto !important;
  padding:10px 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  background:var(--sieejc-modal-title-bg) !important;
  background-color:var(--sieejc-modal-title-bg) !important;
  background-image:none !important;
  color:var(--sieejc-modal-title-fg) !important;
  border:0 !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
  box-shadow:inset 0 -1px 0 rgba(199,167,108,.18) !important;
  box-sizing:border-box !important;
}

html body:not(.sieejc-login-page) .sieejc-modal-title,
html body:not(.sieejc-login-page) .modal-head h1,
html body:not(.sieejc-login-page) .modal-head h2,
html body:not(.sieejc-login-page) .modal-head h3,
html body:not(.sieejc-login-page) .modal-header h1,
html body:not(.sieejc-login-page) .modal-header h2,
html body:not(.sieejc-login-page) .modal-header h3,
html body:not(.sieejc-login-page) .original-modal-head h1,
html body:not(.sieejc-login-page) .original-modal-head h2,
html body:not(.sieejc-login-page) .original-modal-head h3{
  margin:0 !important;
  padding:0 !important;
  color:var(--sieejc-modal-title-fg) !important;
  font-size:14px !important;
  font-weight:850 !important;
  line-height:1.22 !important;
  letter-spacing:.01em !important;
  text-shadow:none !important;
}

/* Modales legacy que tienen h3 directo sin modal-head: convertir ese h3 en una barra visual. */
html body:not(.sieejc-login-page) .modal-content > h1:first-child,
html body:not(.sieejc-login-page) .modal-content > h2:first-child,
html body:not(.sieejc-login-page) .modal-content > h3:first-child,
html body:not(.sieejc-login-page) .modal-card > h1:first-child,
html body:not(.sieejc-login-page) .modal-card > h2:first-child,
html body:not(.sieejc-login-page) .modal-card > h3:first-child{
  flex:0 0 auto !important;
  width:auto !important;
  margin:0 !important;
  padding:12px 16px !important;
  display:flex !important;
  align-items:center !important;
  min-height:44px !important;
  background:var(--sieejc-modal-title-bg) !important;
  color:var(--sieejc-modal-title-fg) !important;
  font-size:14px !important;
  font-weight:850 !important;
  line-height:1.22 !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
}

/* Cuerpos y pies de modal. */
html body:not(.sieejc-login-page) .sieejc-modal-body,
html body:not(.sieejc-login-page) .modal-body,
html body:not(.sieejc-login-page) .pdf-modal-body,
html body:not(.sieejc-login-page) .modal-content > .row,
html body:not(.sieejc-login-page) .modal-content > .box,
html body:not(.sieejc-login-page) .modal-content > form,
html body:not(.sieejc-login-page) .modal-card > form{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow:auto !important;
  padding:16px 18px !important;
  color:#304258 !important;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%) !important;
  font-size:14px !important;
  line-height:1.46 !important;
  box-sizing:border-box !important;
}

html body:not(.sieejc-login-page) .sieejc-modal-footer,
html body:not(.sieejc-login-page) .modal-foot,
html body:not(.sieejc-login-page) .modal-footer,
html body:not(.sieejc-login-page) .modal-actions,
html body:not(.sieejc-login-page) .modal-content ul.actions{
  flex:0 0 auto !important;
  margin:0 !important;
  padding:12px 16px !important;
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
  justify-content:flex-end !important;
  flex-wrap:wrap !important;
  background:#f8fafc !important;
  border-top:1px solid var(--sieejc-modal-line) !important;
  box-sizing:border-box !important;
}
html body:not(.sieejc-login-page) .modal-content ul.actions li{margin:0 !important;padding:0 !important;}

/* Botones dentro de modales: institucionales, compactos y legibles. */
html body:not(.sieejc-login-page) .sieejc-modal .button,
html body:not(.sieejc-login-page) .modal .button,
html body:not(.sieejc-login-page) .original-modal .button,
html body:not(.sieejc-login-page) .sieejc-modal-btn,
html body:not(.sieejc-login-page) .modal-btn,
html body:not(.sieejc-login-page) .modal button,
html body:not(.sieejc-login-page) .sieejc-modal button{
  min-height:34px !important;
  height:34px !important;
  padding:0 14px !important;
  border-radius:9px !important;
  border:1px solid transparent !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  font-family:"Segoe UI",Roboto,Arial,Helvetica,sans-serif !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  text-decoration:none !important;
  text-align:center !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  box-sizing:border-box !important;
  box-shadow:none !important;
}

html body:not(.sieejc-login-page) .sieejc-modal .button:not(.alt):not(.secondary):not(.danger),
html body:not(.sieejc-login-page) .modal .button:not(.alt):not(.secondary):not(.danger),
html body:not(.sieejc-login-page) .original-modal .button:not(.alt):not(.secondary):not(.danger),
html body:not(.sieejc-login-page) .sieejc-modal-btn.primary,
html body:not(.sieejc-login-page) .modal-btn.primary,
html body:not(.sieejc-login-page) .modal button.primary,
html body:not(.sieejc-login-page) .modal button[type="submit"]{
  background:var(--sieejc-modal-primary) !important;
  background-color:var(--sieejc-modal-primary) !important;
  background-image:none !important;
  color:#fff !important;
  border-color:var(--sieejc-modal-primary) !important;
}

html body:not(.sieejc-login-page) .sieejc-modal .button:not(.alt):not(.secondary):not(.danger):hover,
html body:not(.sieejc-login-page) .modal .button:not(.alt):not(.secondary):not(.danger):hover,
html body:not(.sieejc-login-page) .sieejc-modal-btn.primary:hover,
html body:not(.sieejc-login-page) .modal-btn.primary:hover{
  background:var(--sieejc-modal-primary-hover) !important;
  border-color:var(--sieejc-modal-primary-hover) !important;
  color:#fff !important;
}

html body:not(.sieejc-login-page) .sieejc-modal .button.alt,
html body:not(.sieejc-login-page) .sieejc-modal .button.secondary,
html body:not(.sieejc-login-page) .modal .button.alt,
html body:not(.sieejc-login-page) .modal .button.secondary,
html body:not(.sieejc-login-page) .original-modal .button.alt,
html body:not(.sieejc-login-page) .sieejc-modal-btn.secondary,
html body:not(.sieejc-login-page) .modal-btn.secondary{
  background:#fff !important;
  background-color:#fff !important;
  background-image:none !important;
  color:#12386f !important;
  border-color:#c9d6e6 !important;
}

html body:not(.sieejc-login-page) .modal-head .button.alt,
html body:not(.sieejc-login-page) .modal-header .button.alt,
html body:not(.sieejc-login-page) .original-modal-head .button.alt,
html body:not(.sieejc-login-page) .modal-head .button.small.alt,
html body:not(.sieejc-login-page) .sieejc-modal-close,
html body:not(.sieejc-login-page) .modal-close{
  min-width:34px !important;
  width:auto !important;
  height:30px !important;
  min-height:30px !important;
  padding:0 10px !important;
  background:rgba(255,255,255,.10) !important;
  background-color:rgba(255,255,255,.10) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.28) !important;
  border-radius:8px !important;
  box-shadow:none !important;
}

html body:not(.sieejc-login-page) .sieejc-modal .button.danger,
html body:not(.sieejc-login-page) .modal .button.danger,
html body:not(.sieejc-login-page) .modal-btn.danger,
html body:not(.sieejc-login-page) .sieejc-modal-btn.danger{
  background:var(--sieejc-modal-danger) !important;
  border-color:var(--sieejc-modal-danger) !important;
  color:#fff !important;
}
html body:not(.sieejc-login-page) .sieejc-modal .button.success,
html body:not(.sieejc-login-page) .modal .button.success,
html body:not(.sieejc-login-page) .modal-btn.success,
html body:not(.sieejc-login-page) .sieejc-modal-btn.success{
  background:var(--sieejc-modal-success) !important;
  border-color:var(--sieejc-modal-success) !important;
  color:#fff !important;
}

/* Campos dentro de modal: evitar estilos oscuros heredados o inputs enormes. */
html body:not(.sieejc-login-page) .modal input,
html body:not(.sieejc-login-page) .modal select,
html body:not(.sieejc-login-page) .modal textarea,
html body:not(.sieejc-login-page) .sieejc-modal input,
html body:not(.sieejc-login-page) .sieejc-modal select,
html body:not(.sieejc-login-page) .sieejc-modal textarea{
  background:#fff !important;
  color:#1f2f46 !important;
  border:1px solid #cbd7e6 !important;
  border-radius:9px !important;
  min-height:38px !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
}
html body:not(.sieejc-login-page) .modal label,
html body:not(.sieejc-login-page) .sieejc-modal label{
  color:#14376a !important;
  font-weight:800 !important;
}

/* Tablas, visores e imágenes dentro de modal no deben desbordar verticalmente. */
html body:not(.sieejc-login-page) .modal :where(.table-wrapper,.juridico-table-wrap,.iph-related-table-wrap,.jueces-table-wrap),
html body:not(.sieejc-login-page) .sieejc-modal :where(.table-wrapper,.juridico-table-wrap,.iph-related-table-wrap,.jueces-table-wrap){
  max-width:100% !important;
  overflow:auto !important;
}
html body:not(.sieejc-login-page) .modal iframe,
html body:not(.sieejc-login-page) .modal embed,
html body:not(.sieejc-login-page) .sieejc-modal iframe,
html body:not(.sieejc-login-page) .sieejc-modal embed,
html body:not(.sieejc-login-page) .original-modal iframe{
  width:100% !important;
  min-height:min(620px,calc(100dvh - var(--sieejc-modal-top) - 148px)) !important;
  max-height:calc(100dvh - var(--sieejc-modal-top) - 132px) !important;
  border:0 !important;
  background:#f8fafc !important;
}
html body:not(.sieejc-login-page) .modal img,
html body:not(.sieejc-login-page) .sieejc-modal img{
  max-width:100% !important;
}
}
@media screen and (max-width:900px){
  :root{--sieejc-modal-gap:12px;}
  html body:not(.sieejc-login-page) .sieejc-modal,
  html body:not(.sieejc-login-page) .modal-card,
  html body:not(.sieejc-login-page) .modal-content,
  html body:not(.sieejc-login-page) .original-modal-box{
    max-width:calc(100vw - 24px) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-footer,
  html body:not(.sieejc-login-page) .modal-foot,
  html body:not(.sieejc-login-page) .modal-footer,
  html body:not(.sieejc-login-page) .modal-actions,
  html body:not(.sieejc-login-page) .modal-content ul.actions{
    justify-content:stretch !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-footer .button,
  html body:not(.sieejc-login-page) .modal-foot .button,
  html body:not(.sieejc-login-page) .modal-footer .button,
  html body:not(.sieejc-login-page) .modal-content ul.actions .button,
  html body:not(.sieejc-login-page) .sieejc-modal-btn,
  html body:not(.sieejc-login-page) .modal-btn{
    flex:1 1 160px !important;
  }
}


/* ============================================================
   SIEEJC v0.6.100 · Modales 3D, fotografías, botones y tablas
   - Efecto 3D Slit institucional con fade in/out en modales SIEEJC.
   - Fotografías de modales con tamaño legible y proporción estable.
   - Botones de acción centrados, con icono/texto alineados y tamaño homogéneo.
   - Tablas operativas con columnas de acción protegidas.
   ============================================================ */
@media screen{
  :root{
    --sieejc-motion-enter:360ms;
    --sieejc-motion-exit:260ms;
    --sieejc-action-h:34px;
    --sieejc-action-radius:9px;
    --sieejc-action-blue:#12386f;
    --sieejc-action-blue-hover:#0f2f61;
  }

  html body:not(.sieejc-login-page) .sieejc-modal-overlay{
    opacity:0 !important;
    perspective:1400px !important;
    transform-style:preserve-3d !important;
    transition:opacity var(--sieejc-motion-enter) cubic-bezier(.2,.8,.2,1) !important;
    will-change:opacity !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-visible{
    opacity:1 !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-closing{
    opacity:0 !important;
    transition-duration:var(--sieejc-motion-exit) !important;
    pointer-events:none !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay .sieejc-modal{
    opacity:0 !important;
    transform-origin:50% 50% !important;
    transform:translate3d(0,-10px,-460px) rotateY(78deg) scale(.72) !important;
    transform-style:preserve-3d !important;
    backface-visibility:hidden !important;
    transition:
      transform var(--sieejc-motion-enter) cubic-bezier(.18,.88,.28,1.08),
      opacity calc(var(--sieejc-motion-enter) - 60ms) ease-out !important;
    will-change:transform,opacity !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-visible .sieejc-modal{
    opacity:1 !important;
    transform:translate3d(0,0,0) rotateY(0deg) scale(1) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-closing .sieejc-modal{
    opacity:0 !important;
    transform:translate3d(0,8px,-360px) rotateY(-58deg) scale(.84) !important;
    transition-duration:var(--sieejc-motion-exit) !important;
    transition-timing-function:cubic-bezier(.55,.02,.72,.38) !important;
  }

  /* Modales legacy visibles: al menos entrada elegante cuando aparecen por display:block. */
  html body:not(.sieejc-login-page) .modal[style*="display: block"] :where(.modal-card,.modal-content),
  html body:not(.sieejc-login-page) .modal[style*="display:block"] :where(.modal-card,.modal-content),
  html body:not(.sieejc-login-page) .modal.is-active :where(.modal-card,.modal-content),
  html body:not(.sieejc-login-page) .modal.show :where(.modal-card,.modal-content),
  html body:not(.sieejc-login-page) .original-modal[style*="display: block"] .original-modal-box,
  html body:not(.sieejc-login-page) .original-modal[style*="display:block"] .original-modal-box{
    animation:sieejcModal3DSlitIn 360ms cubic-bezier(.18,.88,.28,1.08) both !important;
    transform-style:preserve-3d !important;
    backface-visibility:hidden !important;
  }

  @keyframes sieejcModal3DSlitIn{
    0%{opacity:0;transform:translate3d(0,-10px,-420px) rotateY(76deg) scale(.76);}
    62%{opacity:1;transform:translate3d(0,0,0) rotateY(-4deg) scale(1.015);}
    100%{opacity:1;transform:translate3d(0,0,0) rotateY(0deg) scale(1);}
  }

  @media (prefers-reduced-motion: reduce){
    html body:not(.sieejc-login-page) .sieejc-modal-overlay,
    html body:not(.sieejc-login-page) .sieejc-modal-overlay .sieejc-modal{
      transition:opacity 140ms ease !important;
      transform:none !important;
      animation:none !important;
    }
    html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-visible .sieejc-modal,
    html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-closing .sieejc-modal{
      transform:none !important;
    }
  }

  /* Fotografías: ya no deben quedar como tiras diminutas dentro de modales. */
  html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-category,
  html body:not(.sieejc-login-page) .modal .jueces-photo-category{
    padding:14px 16px 16px !important;
    overflow:visible !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal :where(.jueces-photo-grid,.fotos-grid,.photo-grid),
  html body:not(.sieejc-login-page) .modal :where(.jueces-photo-grid,.fotos-grid,.photo-grid){
    display:grid !important;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;
    gap:14px !important;
    align-items:start !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-grid--portraits,
  html body:not(.sieejc-login-page) .modal .jueces-photo-grid--portraits{
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr)) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal :where(.jueces-photo-thumb,.foto-card,.vehicle-photo-card,.exp-photo-mini),
  html body:not(.sieejc-login-page) .modal :where(.jueces-photo-thumb,.foto-card,.vehicle-photo-card,.exp-photo-mini){
    min-height:0 !important;
    overflow:hidden !important;
    border-radius:14px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal :where(.jueces-photo-thumb img,.foto-preview img,.vehicle-photo-preview img,.person-photo-preview img,.exp-photo-mini img),
  html body:not(.sieejc-login-page) .modal :where(.jueces-photo-thumb img,.foto-preview img,.vehicle-photo-preview img,.person-photo-preview img,.exp-photo-mini img){
    display:block !important;
    width:100% !important;
    min-height:145px !important;
    height:clamp(145px,18vw,230px) !important;
    max-height:260px !important;
    object-fit:cover !important;
    object-position:center !important;
    border-radius:0 !important;
    background:#eaf1fb !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal :where(.exp-photo-viewer,.jueces-photo-viewer),
  html body:not(.sieejc-login-page) .modal :where(.exp-photo-viewer,.jueces-photo-viewer){
    display:grid !important;
    gap:12px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal :where(.exp-photo-viewer-stage,.jueces-photo-viewer),
  html body:not(.sieejc-login-page) .modal :where(.exp-photo-viewer-stage,.jueces-photo-viewer){
    min-height:min(58vh,620px) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#0b172d !important;
    border-radius:14px !important;
    overflow:hidden !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal :where(.exp-photo-viewer-stage img,.jueces-photo-viewer img),
  html body:not(.sieejc-login-page) .modal :where(.exp-photo-viewer-stage img,.jueces-photo-viewer img){
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    max-width:100% !important;
    max-height:calc(100dvh - var(--sieejc-modal-top) - 170px) !important;
    object-fit:contain !important;
    border-radius:0 !important;
  }

  /* Botones transversales: icono/texto centrados, alturas y espacios homogéneos. */
  html body:not(.sieejc-login-page) a.button,
  html body:not(.sieejc-login-page) button.button,
  html body:not(.sieejc-login-page) .sieejc-table-action,
  html body:not(.sieejc-login-page) .juridico-action-btn,
  html body:not(.sieejc-login-page) .juridico-detail-btn,
  html body:not(.sieejc-login-page) .juridico-view-doc-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    min-height:var(--sieejc-action-h) !important;
    height:var(--sieejc-action-h) !important;
    padding:0 13px !important;
    border-radius:var(--sieejc-action-radius) !important;
    line-height:1 !important;
    text-align:center !important;
    white-space:nowrap !important;
    vertical-align:middle !important;
    box-sizing:border-box !important;
    letter-spacing:0 !important;
    text-indent:0 !important;
  }
  html body:not(.sieejc-login-page) a.button.small,
  html body:not(.sieejc-login-page) button.button.small,
  html body:not(.sieejc-login-page) .sieejc-table-action,
  html body:not(.sieejc-login-page) .juridico-action-btn,
  html body:not(.sieejc-login-page) .juridico-detail-btn,
  html body:not(.sieejc-login-page) .juridico-view-doc-btn{
    min-width:108px !important;
    font-size:11.5px !important;
    font-weight:850 !important;
  }
  html body:not(.sieejc-login-page) :where(.sieejc-actions-cell,.juridico-actions-cell,.juridico-action-cell,td.actions,td:last-child){
    text-align:center !important;
  }
  html body:not(.sieejc-login-page) :where(.sieejc-actions-cell,.juridico-actions-cell,.juridico-action-cell) :where(.button,.sieejc-table-action){
    margin-left:auto !important;
    margin-right:auto !important;
  }
  html body:not(.sieejc-login-page) .juridico-action-stack,
  html body:not(.sieejc-login-page) .juridico-user-actions,
  html body:not(.sieejc-login-page) .sieejc-admin-user-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    flex-wrap:wrap !important;
  }
  html body:not(.sieejc-login-page) .sieejc-certificados-table td:last-child,
  html body:not(.sieejc-login-page) table:has(.sieejc-certificados-table) td:last-child{
    text-align:center !important;
  }
  html body:not(.sieejc-login-page) .sieejc-certificados-table td:last-child .button,
  html body:not(.sieejc-login-page) .sieejc-certificados-table td:last-child button,
  html body:not(.sieejc-login-page) .sieejc-certificados-table .button.small{
    width:118px !important;
    min-width:118px !important;
    max-width:118px !important;
    padding:0 8px !important;
    justify-content:center !important;
  }

  /* Visitas: selector de tipo de visita con botones uniformes e iconografía. */
  html body[data-page="seleccion-visita-full"] #tipoVisitaTabs{
    width:min(620px,100%) !important;
    margin:0 auto !important;
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:12px !important;
    align-items:stretch !important;
  }
  html body[data-page="seleccion-visita-full"] #tipoVisitaTabs li{
    width:auto !important;
    padding:0 !important;
    margin:0 !important;
  }
  html body[data-page="seleccion-visita-full"] #tipoVisitaTabs .button{
    width:100% !important;
    min-width:0 !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 12px !important;
    border-radius:10px !important;
    font-size:13px !important;
    white-space:normal !important;
    line-height:1.12 !important;
  }
  html body[data-page="seleccion-visita-full"] #tipoVisitaTabs .button i{
    flex:0 0 auto !important;
  }

  /* Procesal/Jueces historial: Ingreso/Salida compactos para proteger Acción. */
  html body[data-page="historial"] table.historial-wide-table-main{
    min-width:1080px !important;
  }
  html body[data-page="historial"] table.historial-wide-table-main th:nth-child(1),
  html body[data-page="historial"] table.historial-wide-table-main td:nth-child(1){width:25% !important;}
  html body[data-page="historial"] table.historial-wide-table-main th:nth-child(2),
  html body[data-page="historial"] table.historial-wide-table-main td:nth-child(2){width:15% !important;}
  html body[data-page="historial"] table.historial-wide-table-main th:nth-child(3),
  html body[data-page="historial"] table.historial-wide-table-main td:nth-child(3){width:10% !important;font-size:12px !important;}
  html body[data-page="historial"] table.historial-wide-table-main th:nth-child(4),
  html body[data-page="historial"] table.historial-wide-table-main td:nth-child(4){width:9% !important;font-size:12px !important;}
  html body[data-page="historial"] table.historial-wide-table-main th:nth-child(5),
  html body[data-page="historial"] table.historial-wide-table-main td:nth-child(5){width:13% !important;}
  html body[data-page="historial"] table.historial-wide-table-main th:nth-child(6),
  html body[data-page="historial"] table.historial-wide-table-main td:nth-child(6){width:17% !important;}
  html body[data-page="historial"] table.historial-wide-table-main th:nth-child(7),
  html body[data-page="historial"] table.historial-wide-table-main td:nth-child(7){width:11% !important;min-width:120px !important;text-align:center !important;}
  html body[data-page="historial"] table.historial-wide-table-main td:nth-child(7) .button,
  html body[data-page="historial"] table.historial-wide-table-main td:nth-child(7) .sieejc-table-action{
    width:112px !important;
    min-width:112px !important;
    max-width:112px !important;
    padding:0 9px !important;
  }

  @media(max-width:980px){
    html body[data-page="seleccion-visita-full"] #tipoVisitaTabs{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
    html body:not(.sieejc-login-page) .sieejc-modal :where(.jueces-photo-grid,.fotos-grid,.photo-grid){grid-template-columns:repeat(auto-fit,minmax(170px,1fr)) !important;}
  }
}


@media screen{
  /* Visitas: modal de detalle histórico */
  html body:not(.sieejc-login-page) .visita-detail-modal{display:grid !important;gap:14px !important;}
  html body:not(.sieejc-login-page) .visita-detail-section{border:1px solid #dfe8f5 !important;background:#fbfdff !important;border-radius:14px !important;padding:14px 16px !important;}
  html body:not(.sieejc-login-page) .visita-detail-section h4{margin:0 0 10px !important;color:#0f2d5f !important;font-size:15px !important;font-weight:900 !important;line-height:1.2 !important;}
  html body:not(.sieejc-login-page) .visita-detail-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;}
  html body:not(.sieejc-login-page) .visita-detail-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  html body:not(.sieejc-login-page) .visita-detail-field{border:1px solid #dbe6f5 !important;background:#f8fbff !important;border-radius:12px !important;padding:10px 12px !important;min-width:0 !important;}
  html body:not(.sieejc-login-page) .visita-detail-field span{display:block !important;color:#667085 !important;font-size:11px !important;font-weight:850 !important;text-transform:uppercase !important;letter-spacing:.02em !important;margin-bottom:4px !important;}
  html body:not(.sieejc-login-page) .visita-detail-field strong{display:block !important;color:#0f2d5f !important;font-size:13px !important;font-weight:850 !important;line-height:1.32 !important;overflow-wrap:anywhere !important;}
  html body:not(.sieejc-login-page) .visita-detail-text{border:1px solid #dbe6f5 !important;background:#fff !important;border-radius:12px !important;padding:10px 12px !important;margin-top:8px !important;color:#304258 !important;line-height:1.45 !important;}
  html body:not(.sieejc-login-page) .visita-detail-text b{color:#0f2d5f !important;}

  /* Acciones con varios botones: no se cortan ni se cargan hacia la derecha. */
  html body:not(.sieejc-login-page) .row-actions,
  html body:not(.sieejc-login-page) .cert-actions,
  html body:not(.sieejc-login-page) .medical-actions,
  html body:not(.sieejc-login-page) td:last-child > .row-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    flex-wrap:wrap !important;
  }
  html body:not(.sieejc-login-page) .row-actions .button,
  html body:not(.sieejc-login-page) .cert-actions .button,
  html body:not(.sieejc-login-page) .medical-actions .button{
    min-width:104px !important;
    width:auto !important;
    max-width:136px !important;
    padding-left:9px !important;
    padding-right:9px !important;
  }

  /* Certificados médicos: botones estrechos pero centrados. */
  html body:not(.sieejc-login-page) table.sieejc-certificados-table td:last-child,
  html body:not(.sieejc-login-page) .sieejc-certificados-table td:last-child{width:128px !important;min-width:128px !important;}
  html body:not(.sieejc-login-page) .sieejc-certificados-table td:last-child .button.small{margin:3px auto !important;}

  @media(max-width:820px){
    html body:not(.sieejc-login-page) .visita-detail-grid,
    html body:not(.sieejc-login-page) .visita-detail-grid.cols-3{grid-template-columns:1fr !important;}
  }
}


/* ============================================================
   SIEEJC v0.6.101 · Modales/fotografías refinadas
   - Las modales quedan por encima de loader stale, sin tapar navbar.
   - 3D Slit más perceptible con fade out real.
   - Las fotos ya no heredan estilos de botón compacto.
   - Galerías vehiculares/persona con tarjetas proporcionadas y visor estructurado.
   ============================================================ */
@media screen{
  :root{
    --sieejc-motion-enter:520ms !important;
    --sieejc-motion-exit:420ms !important;
    --sieejc-modal-top:3.25em !important;
  }
  html body:not(.sieejc-login-page) #header,
  html body:not(.sieejc-login-page) #page-wrapper > #header{z-index:2147483005 !important;}
  html body:not(.sieejc-login-page) .sieejc-loader-overlay{z-index:2147483001 !important;}
  html body:not(.sieejc-login-page) .sieejc-modal-overlay,
  html body:not(.sieejc-login-page) .modal,
  html body:not(.sieejc-login-page) .original-modal,
  html body:not(.sieejc-login-page) .photo-modal,
  html body:not(.sieejc-login-page) .pdf-modal,
  html body:not(.sieejc-login-page) .document-modal,
  html body:not(.sieejc-login-page) .preview-modal,
  html body:not(.sieejc-login-page) .modal-backdrop{z-index:2147483003 !important;}

  html body:not(.sieejc-login-page) .sieejc-modal-overlay{transition:opacity 520ms cubic-bezier(.16,.84,.22,1) !important;}
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-closing{transition-duration:420ms !important;}
  html body:not(.sieejc-login-page) .sieejc-modal-overlay .sieejc-modal{
    transform:translate3d(0,-14px,-520px) rotateY(84deg) scale(.64) !important;
    transition:transform 520ms cubic-bezier(.16,.92,.22,1.08),opacity 460ms ease-out,filter 520ms ease-out !important;
    filter:blur(1.5px) saturate(.94) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-visible .sieejc-modal{
    transform:translate3d(0,0,0) rotateY(0deg) scale(1) !important;
    filter:none !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-closing .sieejc-modal{
    transform:translate3d(0,12px,-420px) rotateY(-70deg) scale(.76) !important;
    transition-duration:420ms !important;
    filter:blur(1.8px) saturate(.88) !important;
  }

  @keyframes sieejcModal3DSlitIn{
    0%{opacity:0;transform:translate3d(0,-14px,-520px) rotateY(84deg) scale(.64);filter:blur(1.5px) saturate(.94);}
    68%{opacity:1;transform:translate3d(0,0,0) rotateY(-6deg) scale(1.018);filter:none;}
    100%{opacity:1;transform:translate3d(0,0,0) rotateY(0deg) scale(1);filter:none;}
  }

  /* Las fotos en modales no son botones compactos: recuperan tarjeta, imagen y caption. */
  html body:not(.sieejc-login-page) .sieejc-modal button.jueces-photo-thumb,
  html body:not(.sieejc-login-page) .modal button.jueces-photo-thumb,
  html body:not(.sieejc-login-page) .sieejc-modal [data-jueces-photo-open],
  html body:not(.sieejc-login-page) .modal [data-jueces-photo-open]{
    appearance:none !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:auto !important;
    min-height:218px !important;
    padding:0 !important;
    display:grid !important;
    grid-template-rows:158px minmax(54px,auto) !important;
    align-items:stretch !important;
    justify-content:stretch !important;
    gap:0 !important;
    border:1px solid #dbe6f5 !important;
    border-radius:14px !important;
    background:#fff !important;
    color:#12386f !important;
    overflow:hidden !important;
    text-align:left !important;
    box-shadow:0 10px 24px rgba(15,45,95,.08) !important;
    cursor:zoom-in !important;
    line-height:1.25 !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal button.jueces-photo-thumb:hover,
  html body:not(.sieejc-login-page) .modal button.jueces-photo-thumb:hover{
    transform:translateY(-1px) !important;
    box-shadow:0 14px 30px rgba(15,45,95,.13) !important;
    border-color:#b8cce6 !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal button.jueces-photo-thumb img,
  html body:not(.sieejc-login-page) .modal button.jueces-photo-thumb img,
  html body:not(.sieejc-login-page) .sieejc-modal [data-jueces-photo-open] img,
  html body:not(.sieejc-login-page) .modal [data-jueces-photo-open] img{
    display:block !important;
    width:100% !important;
    height:158px !important;
    min-height:158px !important;
    max-height:158px !important;
    object-fit:cover !important;
    object-position:center !important;
    border-radius:0 !important;
    background:#edf4fb !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal button.jueces-photo-thumb span,
  html body:not(.sieejc-login-page) .modal button.jueces-photo-thumb span{
    min-height:54px !important;
    padding:10px 12px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:3px !important;
    background:#fbfdff !important;
    color:#12386f !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    text-align:left !important;
    font-size:12px !important;
    font-weight:800 !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal button.jueces-photo-thumb span small,
  html body:not(.sieejc-login-page) .modal button.jueces-photo-thumb span small{
    color:#64748b !important;
    font-size:11px !important;
    font-weight:650 !important;
    line-height:1.25 !important;
  }

  html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-grid,
  html body:not(.sieejc-login-page) .modal .jueces-photo-grid{
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(auto-fit,minmax(190px,240px)) !important;
    gap:14px !important;
    align-items:start !important;
    justify-content:start !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-category,
  html body:not(.sieejc-login-page) .modal .jueces-photo-category{
    background:#fff !important;
    border:1px solid #dbe6f5 !important;
    border-radius:16px !important;
    padding:14px 16px 16px !important;
    overflow:visible !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-category h6,
  html body:not(.sieejc-login-page) .modal .jueces-photo-category h6{
    margin:0 0 12px !important;
    padding-bottom:8px !important;
    border-bottom:1px solid #e3ebf6 !important;
    color:#0f2d5f !important;
    font-size:14px !important;
    font-weight:900 !important;
  }

  /* Visor ampliado de fotografía con estructura clara: escenario + caption. */
  html body:not(.sieejc-login-page) .sieejc-photo-viewer,
  html body:not(.sieejc-login-page) .exp-photo-viewer{
    width:100% !important;
    display:grid !important;
    gap:12px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage{
    width:100% !important;
    min-height:min(58vh,620px) !important;
    max-height:calc(100dvh - var(--sieejc-modal-top) - 180px) !important;
    padding:16px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.07),rgba(255,255,255,0) 28rem),#07152b !important;
    border-radius:16px !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage img,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage img{
    display:block !important;
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    max-width:100% !important;
    max-height:calc(100dvh - var(--sieejc-modal-top) - 220px) !important;
    object-fit:contain !important;
    background:#fff !important;
    border-radius:10px !important;
    box-shadow:0 10px 30px rgba(0,0,0,.30) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-caption,
  html body:not(.sieejc-login-page) .exp-photo-viewer-caption{
    margin:0 !important;
    padding:10px 12px !important;
    color:#304258 !important;
    background:#f8fbff !important;
    border:1px solid #dbe6f5 !important;
    border-radius:12px !important;
    font-size:13px !important;
    line-height:1.4 !important;
    overflow-wrap:anywhere !important;
  }

  @media(max-width:980px){
    html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-grid,
    html body:not(.sieejc-login-page) .modal .jueces-photo-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr)) !important;}
    html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
    html body:not(.sieejc-login-page) .exp-photo-viewer-stage{min-height:42vh !important;}
  }
}

/* ============================================================
   SIEEJC v0.6.102 · Modales sin franja, fade-out real y fotos grandes
   - Overlay cubre desde el borde superior pero queda debajo de navbar.
   - Evita franja blanca bajo menú al abrir modales.
   - Galería de fotos vehiculares en 2 columnas proporcionales.
   - Visor de fotografía con imagen grande y controles de zoom.
   ============================================================ */
@media screen{
  :root{
    --sieejc-motion-enter:560ms !important;
    --sieejc-motion-exit:620ms !important;
    --sieejc-modal-top:var(--sieejc-nav-height,56px) !important;
    --sieejc-modal-gap:18px !important;
  }

  /* El overlay inicia en 0 y la navbar queda encima: así no aparece la franja blanca. */
  html body:not(.sieejc-login-page) .sieejc-modal-overlay,
  html body:not(.sieejc-login-page) .modal,
  html body:not(.sieejc-login-page) .original-modal,
  html body:not(.sieejc-login-page) .photo-modal,
  html body:not(.sieejc-login-page) .pdf-modal,
  html body:not(.sieejc-login-page) .document-modal,
  html body:not(.sieejc-login-page) .preview-modal,
  html body:not(.sieejc-login-page) .modal-backdrop{
    top:0 !important;
    max-height:100dvh !important;
    height:100dvh !important;
    padding-top:calc(var(--sieejc-modal-top) + var(--sieejc-modal-gap)) !important;
    padding-right:var(--sieejc-modal-gap) !important;
    padding-bottom:var(--sieejc-modal-gap) !important;
    padding-left:var(--sieejc-modal-gap) !important;
    background:rgba(15,23,42,.60) !important;
    backdrop-filter:blur(2.6px) saturate(.92) !important;
  }

  html body:not(.sieejc-login-page) .sieejc-modal,
  html body:not(.sieejc-login-page) .modal-card,
  html body:not(.sieejc-login-page) .modal-content,
  html body:not(.sieejc-login-page) .original-modal-box,
  html body:not(.sieejc-login-page) .pdf-modal-card,
  html body:not(.sieejc-login-page) .photo-viewer-card{
    max-height:calc(100dvh - var(--sieejc-modal-top) - (var(--sieejc-modal-gap) * 2)) !important;
  }

  /* Fade-out más visible: no solo desaparece el overlay, también la tarjeta cierra con 3D real. */
  html body:not(.sieejc-login-page) .sieejc-modal-overlay{
    opacity:0 !important;
    transition:opacity var(--sieejc-motion-enter) cubic-bezier(.16,.84,.22,1) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-visible{opacity:1 !important;}
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-closing{
    opacity:0 !important;
    transition-duration:var(--sieejc-motion-exit) !important;
    pointer-events:none !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay .sieejc-modal{
    transform-origin:50% 50% !important;
    transform:translate3d(0,-18px,-560px) rotateY(86deg) scale(.62) !important;
    opacity:0 !important;
    filter:blur(2px) saturate(.92) !important;
    transition:
      transform var(--sieejc-motion-enter) cubic-bezier(.16,.92,.22,1.08),
      opacity calc(var(--sieejc-motion-enter) - 60ms) ease-out,
      filter var(--sieejc-motion-enter) ease-out !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-visible .sieejc-modal{
    transform:translate3d(0,0,0) rotateY(0deg) scale(1) !important;
    opacity:1 !important;
    filter:none !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal-overlay.is-closing .sieejc-modal{
    transform:translate3d(0,14px,-520px) rotateY(-78deg) scale(.70) !important;
    opacity:0 !important;
    filter:blur(2.4px) saturate(.86) !important;
    transition-duration:var(--sieejc-motion-exit) !important;
    transition-timing-function:cubic-bezier(.55,.02,.72,.38) !important;
  }

  /* Galería vehicular: 2 fotos por fila y tarjetas más legibles. */
  html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-grid,
  html body:not(.sieejc-login-page) .modal .jueces-photo-grid{
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:18px !important;
    align-items:start !important;
    justify-content:stretch !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal button.jueces-photo-thumb,
  html body:not(.sieejc-login-page) .modal button.jueces-photo-thumb,
  html body:not(.sieejc-login-page) .sieejc-modal [data-jueces-photo-open],
  html body:not(.sieejc-login-page) .modal [data-jueces-photo-open]{
    min-height:260px !important;
    grid-template-rows:194px minmax(64px,auto) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal button.jueces-photo-thumb img,
  html body:not(.sieejc-login-page) .modal button.jueces-photo-thumb img,
  html body:not(.sieejc-login-page) .sieejc-modal [data-jueces-photo-open] img,
  html body:not(.sieejc-login-page) .modal [data-jueces-photo-open] img{
    height:194px !important;
    min-height:194px !important;
    max-height:194px !important;
    object-fit:cover !important;
  }

  /* Visor ampliado: foto grande, área de paneo y controles. */
  html body:not(.sieejc-login-page) .sieejc-photo-viewer,
  html body:not(.sieejc-login-page) .exp-photo-viewer{
    width:100% !important;
    display:grid !important;
    gap:12px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage{
    width:100% !important;
    min-height:min(66vh,720px) !important;
    max-height:calc(100dvh - var(--sieejc-modal-top) - 190px) !important;
    padding:18px !important;
    overflow:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:radial-gradient(circle at 50% 34%,rgba(255,255,255,.08),rgba(255,255,255,0) 31rem),#07152b !important;
    border-radius:16px !important;
    box-sizing:border-box !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage img,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage img{
    display:block !important;
    width:var(--sieejc-photo-zoom-width, min(94%,980px)) !important;
    height:auto !important;
    min-height:0 !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:contain !important;
    background:#fff !important;
    border-radius:10px !important;
    box-shadow:0 12px 34px rgba(0,0,0,.34) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    flex-wrap:wrap !important;
    margin:0 !important;
    padding:0 !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar button{
    min-width:42px !important;
    width:auto !important;
    height:32px !important;
    min-height:32px !important;
    padding:0 12px !important;
    border-radius:9px !important;
    border:1px solid #c9d6e6 !important;
    background:#fff !important;
    color:#12386f !important;
    font-weight:900 !important;
    font-size:12px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    cursor:pointer !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar button:hover{background:#eef4fb !important;}
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar .sieejc-photo-zoom-label{
    min-width:54px !important;
    text-align:center !important;
    color:#0f2d5f !important;
    font-size:12px !important;
    font-weight:900 !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-caption,
  html body:not(.sieejc-login-page) .exp-photo-viewer-caption{
    color:#304258 !important;
    background:#f8fbff !important;
    border:1px solid #dbe6f5 !important;
    border-radius:12px !important;
    padding:10px 12px !important;
  }

  @media(max-width:880px){
    html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-grid,
    html body:not(.sieejc-login-page) .modal .jueces-photo-grid{grid-template-columns:1fr !important;}
    html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
    html body:not(.sieejc-login-page) .exp-photo-viewer-stage{min-height:46vh !important;}
  }
}

/* ============================================================
   SIEEJC v0.6.103 · Zoom real, botones de acción y tablas
   - Visor fotográfico con canvas interno, slider y zoom visible hasta 500%.
   - Galerías vehiculares en 2 columnas con tarjetas más amplias.
   - Botones de acción unificados: Jurídico, Procesal, Visitas y Médico.
   - Columnas de acciones protegidas para evitar recortes de “Expediente”.
   ============================================================ */
@media screen{
  :root{
    --sieejc-action-h:38px !important;
    --sieejc-action-radius:10px !important;
    --sieejc-action-blue:#12386f !important;
    --sieejc-action-blue-hover:#0f2f61 !important;
  }

  /* Acción transversal: más visible, texto perfectamente centrado. */
  html body:not(.sieejc-login-page) :where(a.button.small,button.button.small,.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn,.visita-detail-btn,.jueces-action-btn,.jueces-table-action,.historial-action-btn){
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    min-height:var(--sieejc-action-h) !important;
    height:var(--sieejc-action-h) !important;
    min-width:126px !important;
    width:auto !important;
    max-width:none !important;
    padding:0 16px !important;
    border-radius:var(--sieejc-action-radius) !important;
    font-size:12px !important;
    font-weight:900 !important;
    line-height:1 !important;
    text-align:center !important;
    text-indent:0 !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
    letter-spacing:0 !important;
  }
  html body:not(.sieejc-login-page) :where(a.button.small,button.button.small,.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn,.visita-detail-btn,.jueces-action-btn,.jueces-table-action,.historial-action-btn) :where(i,svg,span){
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
    margin:0 !important;
    vertical-align:middle !important;
  }
  html body:not(.sieejc-login-page) :where(td.actions,td.sieejc-actions-cell,td.juridico-actions-cell,td.juridico-action-cell,td.jueces-actions,td.jueces-actions-cell,td.col-acciones){
    text-align:center !important;
    vertical-align:middle !important;
  }
  html body:not(.sieejc-login-page) :where(.juridico-row-actions,.juridico-action-stack,.compact-actions,.jueces-action-stack,.jueces-resolution-action-stack,.table-actions,.actions-stack){
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    flex-wrap:wrap !important;
  }

  /* Jurídico: acciones un poco más grandes y columna protegida. */
  html body:not(.sieejc-login-page) :where(table.juridico-table,table.juridico-search-table,table.juridico-resolutions-table) th:last-child,
  html body:not(.sieejc-login-page) :where(table.juridico-table,table.juridico-search-table,table.juridico-resolutions-table) td:last-child{
    width:156px !important;
    min-width:156px !important;
    max-width:176px !important;
    text-align:center !important;
  }
  html body:not(.sieejc-login-page) :where(.juridico-table,.juridico-search-table,.juridico-resolutions-table) :where(.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn){
    min-width:132px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 14px !important;
  }

  /* Procesal/Jueces históricos: columna Acción legible y fechas compactas. */
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.jueces-table,table.custodia-table) th:last-child,
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.jueces-table,table.custodia-table) td:last-child{
    width:150px !important;
    min-width:150px !important;
    text-align:center !important;
  }
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.jueces-table,table.custodia-table) :where(.button.small,.sieejc-table-action,.jueces-action-btn,.historial-action-btn){
    min-width:128px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 14px !important;
  }
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.jueces-table) th:nth-child(3),
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.jueces-table) td:nth-child(3),
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.jueces-table) th:nth-child(4),
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.jueces-table) td:nth-child(4){
    width:112px !important;
    max-width:118px !important;
  }

  /* Visitas histórico: botones iguales, con ancho suficiente y tabla más informativa. */
  html body[data-page="historico"] table.alt th:last-child,
  html body[data-page="historico"] table.alt td:last-child{
    width:142px !important;
    min-width:142px !important;
    text-align:center !important;
  }
  html body[data-page="historico"] .visita-detail-btn{
    min-width:126px !important;
    height:38px !important;
    min-height:38px !important;
  }
  html body[data-page="historico"] .visita-row-main{
    display:block !important;
    color:#0f2d5f !important;
    font-weight:850 !important;
    line-height:1.18 !important;
  }
  html body[data-page="historico"] .visita-row-sub{
    display:block !important;
    margin-top:4px !important;
    color:#657289 !important;
    font-size:11px !important;
    line-height:1.25 !important;
  }

  /* Médico: acciones 15% más grandes y centradas. */
  html body:not(.sieejc-login-page) table.sieejc-certificados-table th.col-acciones,
  html body:not(.sieejc-login-page) table.sieejc-certificados-table td.col-acciones,
  html body:not(.sieejc-login-page) .sieejc-certificados-table th:last-child,
  html body:not(.sieejc-login-page) .sieejc-certificados-table td:last-child{
    width:172px !important;
    min-width:172px !important;
    max-width:182px !important;
    text-align:center !important;
  }
  html body:not(.sieejc-login-page) .sieejc-certificados-table .compact-actions .button.small,
  html body:not(.sieejc-login-page) .sieejc-certificados-table .compact-actions .button.small.alt,
  html body:not(.sieejc-login-page) .sieejc-certificados-table .compact-actions .button.small.special,
  html body:not(.sieejc-login-page) .sieejc-certificados-table td:last-child .button.small,
  html body:not(.sieejc-login-page) .sieejc-certificados-table td:last-child button.small{
    width:136px !important;
    min-width:136px !important;
    max-width:136px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 10px !important;
    font-size:12px !important;
    margin:4px auto !important;
  }

  /* Galerías vehiculares: 2 por fila, más presencia visual. */
  html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-grid,
  html body:not(.sieejc-login-page) .modal .jueces-photo-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:20px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal button.jueces-photo-thumb,
  html body:not(.sieejc-login-page) .modal button.jueces-photo-thumb,
  html body:not(.sieejc-login-page) .sieejc-modal [data-jueces-photo-open],
  html body:not(.sieejc-login-page) .modal [data-jueces-photo-open]{
    min-height:300px !important;
    grid-template-rows:226px minmax(70px,auto) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal button.jueces-photo-thumb img,
  html body:not(.sieejc-login-page) .modal button.jueces-photo-thumb img,
  html body:not(.sieejc-login-page) .sieejc-modal [data-jueces-photo-open] img,
  html body:not(.sieejc-login-page) .modal [data-jueces-photo-open] img{
    height:226px !important;
    min-height:226px !important;
    max-height:226px !important;
    object-fit:cover !important;
  }

  /* Visor de fotografía: canvas real para que el zoom sí cambie visualmente. */
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage{
    min-height:min(68vh,760px) !important;
    max-height:calc(100dvh - var(--sieejc-modal-top) - 200px) !important;
    overflow:auto !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    padding:22px !important;
    scroll-behavior:smooth !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-zoom-canvas{
    margin:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:100% !important;
    min-height:100% !important;
    flex:0 0 auto !important;
    transition:width .22s ease,height .22s ease !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage img,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage img{
    display:block !important;
    max-width:none !important;
    max-height:none !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
    transform:none !important;
    transition:width .22s ease,height .22s ease !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar{
    gap:10px !important;
    padding:2px 0 0 !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar button{
    min-width:46px !important;
    height:36px !important;
    min-height:36px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar input[type="range"]{
    width:min(360px,42vw) !important;
    accent-color:#12386f !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar .sieejc-photo-zoom-label{
    min-width:60px !important;
    font-size:12px !important;
  }

  @media(max-width:880px){
    html body:not(.sieejc-login-page) .sieejc-modal .jueces-photo-grid,
    html body:not(.sieejc-login-page) .modal .jueces-photo-grid{grid-template-columns:1fr !important;}
    html body:not(.sieejc-login-page) .sieejc-photo-toolbar input[type="range"]{width:100% !important;}
  }
}


/* ============================================================
   SIEEJC v0.6.104 · Ajuste fino: select limpio, zoom solo imagen y botones estilo Jueces
   - Visor fotográfico: el zoom transforma únicamente la imagen; el escenario y la modal no escalan.
   - Acciones Jurídico/Búsqueda integral/vehículos con mismo patrón visual que Jueces.
   - Botones de expediente más legibles, centrados y sin recorte.
   ============================================================ */
@media screen{
  /* Foto ampliada: escenario fijo y zoom exclusivo en la imagen. */
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage{
    min-height:min(64vh,690px) !important;
    max-height:calc(100dvh - var(--sieejc-modal-top) - 220px) !important;
    overflow:hidden !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:24px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-zoom-canvas{
    width:100% !important;
    height:100% !important;
    min-width:100% !important;
    min-height:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
    margin:0 !important;
    transition:none !important;
    transform:none !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-zoom-canvas img,
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage img,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage img{
    display:block !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:contain !important;
    transform-origin:center center !important;
    transition:transform .24s cubic-bezier(.2,.8,.2,1) !important;
    will-change:transform !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar input[type="range"]{
    width:min(430px,44vw) !important;
  }

  /* Patrón de botón de acción igual al que ya quedó bien en Jueces. */
  html body:not(.sieejc-login-page) :where(.juridico-row-actions,.juridico-action-stack,.jueces-resolution-action-stack,.jueces-action-stack){
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:center !important;
    gap:8px !important;
    width:100% !important;
  }
  html body:not(.sieejc-login-page) :where(table.juridico-table,table.juridico-search-table,table.juridico-resolutions-table) th:last-child,
  html body:not(.sieejc-login-page) :where(table.juridico-table,table.juridico-search-table,table.juridico-resolutions-table) td:last-child{
    width:178px !important;
    min-width:178px !important;
    max-width:192px !important;
    text-align:center !important;
    overflow:visible !important;
  }
  html body:not(.sieejc-login-page) :where(.juridico-table,.juridico-search-table,.juridico-resolutions-table) :where(.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn,.juridico-iph-detail-btn,.juridico-veh-detail-btn,.juridico-exp-detail-btn){
    width:148px !important;
    min-width:148px !important;
    max-width:148px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 14px !important;
    margin:0 auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    border-radius:10px !important;
    font-size:12px !important;
    font-weight:900 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  html body:not(.sieejc-login-page) :where(.juridico-table,.juridico-search-table,.juridico-resolutions-table) :where(.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn,.juridico-iph-detail-btn,.juridico-veh-detail-btn,.juridico-exp-detail-btn) :where(i,span){
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    line-height:1 !important;
  }

  /* Búsqueda integral: más aire y acciones similares a Resoluciones/Jueces. */
  html body[data-page="busqueda-integral"] .juridico-search-shell{
    width:min(calc(100vw - 112px),1220px) !important;
    max-width:min(calc(100vw - 112px),1220px) !important;
  }
  html body[data-page="busqueda-integral"] table.juridico-search-table{
    table-layout:fixed !important;
    font-size:12.2px !important;
  }
  html body[data-page="busqueda-integral"] table.juridico-search-table th:nth-child(1),
  html body[data-page="busqueda-integral"] table.juridico-search-table td:nth-child(1){width:18% !important;}
  html body[data-page="busqueda-integral"] table.juridico-search-table th:nth-child(2),
  html body[data-page="busqueda-integral"] table.juridico-search-table td:nth-child(2){width:16% !important;}
  html body[data-page="busqueda-integral"] table.juridico-search-table th:nth-child(3),
  html body[data-page="busqueda-integral"] table.juridico-search-table td:nth-child(3){width:18% !important;}
  html body[data-page="busqueda-integral"] table.juridico-search-table th:nth-child(4),
  html body[data-page="busqueda-integral"] table.juridico-search-table td:nth-child(4){width:18% !important;}
  html body[data-page="busqueda-integral"] table.juridico-search-table th:nth-child(5),
  html body[data-page="busqueda-integral"] table.juridico-search-table td:nth-child(5){width:10% !important;}
  html body[data-page="busqueda-integral"] table.juridico-search-table th:nth-child(6),
  html body[data-page="busqueda-integral"] table.juridico-search-table td:nth-child(6){width:178px !important;}
  html body[data-page="busqueda-integral"] .juridico-row-actions .button.small{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
  }

  /* Vehículos bajo resguardo: acción final más limpia sin verse diminuta. */
  html body[data-page="vehiculos"] table.juridico-table th:last-child,
  html body[data-page="vehiculos"] table.juridico-table td:last-child,
  html body[data-page="historico"] table.juridico-table th:last-child,
  html body[data-page="historico"] table.juridico-table td:last-child{
    width:170px !important;
    min-width:170px !important;
    max-width:185px !important;
  }
  html body[data-page="vehiculos"] table.juridico-table .sieejc-table-action,
  html body[data-page="historico"] table.juridico-table .sieejc-table-action{
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
    height:40px !important;
    min-height:40px !important;
  }
}

/* ============================================================
   SIEEJC v0.6.105 · Visor fotográfico con zoom real de imagen
   - El control de zoom modifica únicamente dimensiones de la imagen.
   - El escenario conserva tamaño fijo con scroll interno cuando la foto crece.
   - Corrige reglas anteriores con transform:none !important.
   ============================================================ */
html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
html body:not(.sieejc-login-page) .exp-photo-viewer-stage{
  display:block !important;
  position:relative !important;
  overflow:auto !important;
  padding:0 !important;
  min-height:min(62vh,680px) !important;
  max-height:calc(100dvh - var(--sieejc-modal-top) - 190px) !important;
  scrollbar-width:auto !important;
  background:radial-gradient(circle at 50% 34%,rgba(255,255,255,.08),rgba(255,255,255,0) 31rem),#07152b !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-zoom-canvas,
html body:not(.sieejc-login-page) .exp-photo-zoom-canvas{
  width:max(100%,var(--sieejc-photo-canvas-min-w,100%)) !important;
  height:max(100%,var(--sieejc-photo-canvas-min-h,100%)) !important;
  min-width:max(100%,var(--sieejc-photo-canvas-min-w,100%)) !important;
  min-height:max(100%,var(--sieejc-photo-canvas-min-h,100%)) !important;
  display:grid !important;
  place-items:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  overflow:visible !important;
  margin:0 !important;
  transform:none !important;
  transition:none !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-zoom-canvas img,
html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage img,
html body:not(.sieejc-login-page) .exp-photo-viewer-stage img{
  display:block !important;
  width:var(--sieejc-photo-img-width,auto) !important;
  height:var(--sieejc-photo-img-height,auto) !important;
  max-width:none !important;
  max-height:none !important;
  min-width:0 !important;
  min-height:0 !important;
  object-fit:contain !important;
  transform:translate3d(0,0,0) !important;
  transform-origin:center center !important;
  transition:width .18s ease,height .18s ease !important;
  will-change:width,height !important;
  background:#fff !important;
  border-radius:10px !important;
  box-shadow:0 12px 34px rgba(0,0,0,.34) !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-toolbar{
  display:grid !important;
  grid-template-columns:auto 58px minmax(260px,430px) auto auto !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  width:100% !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-toolbar input[type="range"]{
  width:100% !important;
  accent-color:#12386f !important;
}
@media(max-width:760px){
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar{
    grid-template-columns:auto 54px minmax(140px,1fr) auto !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar button[data-sieejc-photo-zoom-reset]{grid-column:1/-1 !important;}
}

/* ============================================================
   SIEEJC v0.6.106 · Zoom fotográfico sin reflujo + acciones compactas uniformes
   - El zoom agranda únicamente la imagen dentro de un escenario fijo con scroll interno.
   - La modal no cambia de alto/ancho al mover el slider.
   - Acciones de Jurídico, Búsqueda integral, Procesal y Médico alineadas al patrón visual de Jueces.
   ============================================================ */
html body:not(.sieejc-login-page) .sieejc-modal:has(.sieejc-photo-viewer),
html body:not(.sieejc-login-page) .sieejc-modal:has(.exp-photo-viewer){
  width:min(96vw,1240px) !important;
  max-height:calc(100dvh - var(--sieejc-nav-height,56px) - 34px) !important;
}
html body:not(.sieejc-login-page) .sieejc-modal:has(.sieejc-photo-viewer) .sieejc-modal-body,
html body:not(.sieejc-login-page) .sieejc-modal:has(.exp-photo-viewer) .sieejc-modal-body{
  overflow:hidden !important;
  min-height:0 !important;
  flex:1 1 auto !important;
  padding:14px 16px !important;
  display:block !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-viewer,
html body:not(.sieejc-login-page) .exp-photo-viewer{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  display:grid !important;
  grid-template-rows:minmax(0,1fr) auto auto !important;
  gap:12px !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
html body:not(.sieejc-login-page) .exp-photo-viewer-stage{
  width:100% !important;
  height:clamp(420px,56dvh,650px) !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:auto !important;
  overscroll-behavior:contain !important;
  padding:0 !important;
  border-radius:16px !important;
  box-sizing:border-box !important;
  scrollbar-width:auto !important;
  background:radial-gradient(circle at 50% 34%,rgba(255,255,255,.08),rgba(255,255,255,0) 31rem),#07152b !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-zoom-canvas,
html body:not(.sieejc-login-page) .exp-photo-zoom-canvas{
  width:var(--sieejc-photo-canvas-min-w,100%) !important;
  height:var(--sieejc-photo-canvas-min-h,100%) !important;
  min-width:100% !important;
  min-height:100% !important;
  display:grid !important;
  place-items:center !important;
  padding:28px !important;
  box-sizing:border-box !important;
  overflow:visible !important;
  margin:0 !important;
  transform:none !important;
  transition:none !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-zoom-canvas img,
html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage img,
html body:not(.sieejc-login-page) .exp-photo-viewer-stage img{
  display:block !important;
  width:var(--sieejc-photo-img-width,auto) !important;
  height:var(--sieejc-photo-img-height,auto) !important;
  max-width:none !important;
  max-height:none !important;
  min-width:0 !important;
  min-height:0 !important;
  object-fit:contain !important;
  transform:translate3d(0,0,0) !important;
  transform-origin:center center !important;
  transition:width .16s ease,height .16s ease !important;
  will-change:width,height !important;
  background:#fff !important;
  border-radius:10px !important;
  box-shadow:0 12px 34px rgba(0,0,0,.34) !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-toolbar{
  display:grid !important;
  grid-template-columns:42px 64px minmax(300px,460px) 42px auto !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  width:100% !important;
  min-height:38px !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-toolbar button{
  height:34px !important;
  min-width:42px !important;
  border-radius:9px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-toolbar input[type="range"]{
  width:100% !important;
  min-width:0 !important;
  accent-color:#12386f !important;
}
html body:not(.sieejc-login-page) .sieejc-photo-viewer-caption,
html body:not(.sieejc-login-page) .exp-photo-viewer-caption{
  margin:0 !important;
  min-height:36px !important;
  display:flex !important;
  align-items:center !important;
}

/* Jurídico · vehículos, histórico y búsqueda integral: botones como Jueces, visibles y centrados. */
html body[data-page="vehiculos"] table.juridico-table th:last-child,
html body[data-page="vehiculos"] table.juridico-table td:last-child,
html body[data-page="historico"] table.juridico-table th:last-child,
html body[data-page="historico"] table.juridico-table td:last-child{
  width:156px !important;
  min-width:156px !important;
  max-width:156px !important;
  text-align:center !important;
}
html body[data-page="vehiculos"] table.juridico-table td:last-child,
html body[data-page="historico"] table.juridico-table td:last-child,
html body[data-page="busqueda-integral"] table.juridico-search-table td:last-child{
  vertical-align:middle !important;
}
html body[data-page="vehiculos"] table.juridico-table .sieejc-table-action,
html body[data-page="vehiculos"] table.juridico-table .juridico-action-btn,
html body[data-page="historico"] table.juridico-table .sieejc-table-action,
html body[data-page="historico"] table.juridico-table .juridico-action-btn,
html body[data-page="busqueda-integral"] .juridico-row-actions .button.small,
html body[data-page="busqueda-integral"] table.juridico-search-table .button.small{
  width:136px !important;
  min-width:136px !important;
  max-width:136px !important;
  height:34px !important;
  min-height:34px !important;
  padding:0 12px !important;
  margin:0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:900 !important;
  text-align:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
html body[data-page="busqueda-integral"] .juridico-search-shell{
  max-width:min(1180px,calc(100vw - 44px)) !important;
  width:min(1180px,calc(100vw - 44px)) !important;
}
html body[data-page="busqueda-integral"] .juridico-search-table-wrap{
  overflow-x:auto !important;
}
html body[data-page="busqueda-integral"] table.juridico-search-table{
  min-width:1040px !important;
  table-layout:fixed !important;
}
html body[data-page="busqueda-integral"] table.juridico-search-table th:nth-child(6),
html body[data-page="busqueda-integral"] table.juridico-search-table td:nth-child(6){
  width:174px !important;
  min-width:174px !important;
  text-align:center !important;
}
html body[data-page="busqueda-integral"] .juridico-row-actions{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  width:100% !important;
}

/* Procesal/Jueces historial y custodia: columna de acciones centrada, no pegada al borde derecho. */
html body:not(.sieejc-login-page) :where(table.historial-wide-table-main, table.custodia-table) td.sieejc-actions-cell,
html body:not(.sieejc-login-page) :where(table.historial-wide-table-main, table.custodia-table) td:last-child{
  text-align:center !important;
}
html body:not(.sieejc-login-page) :where(table.historial-wide-table-main, table.custodia-table) :where(td.sieejc-actions-cell,td:last-child) > :where(.button.small,.sieejc-table-action,.historial-action-btn){
  margin-left:auto !important;
  margin-right:auto !important;
  min-width:126px !important;
  width:126px !important;
  height:32px !important;
  min-height:32px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  padding:0 10px !important;
  line-height:1 !important;
}
html body:not(.sieejc-login-page) :where(table.custodia-table) .row-actions{
  justify-content:center !important;
  align-items:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* Médico · acciones en matriz compacta 2x2 para que las filas no crezcan en exceso. */
html body[data-page="certificados"] .sieejc-certificados-table th.col-acciones,
html body[data-page="certificados"] .sieejc-certificados-table td.col-acciones,
html body[data-page="certificados"] .sieejc-certificados-table th.actions-col,
html body[data-page="certificados"] .sieejc-certificados-table td:last-child{
  width:238px !important;
  min-width:238px !important;
  max-width:238px !important;
  text-align:center !important;
  vertical-align:middle !important;
}
html body[data-page="certificados"] .sieejc-certificados-table .compact-actions{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(98px,1fr)) !important;
  gap:8px !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  max-width:226px !important;
  margin:0 auto !important;
}
html body[data-page="certificados"] .sieejc-certificados-table .compact-actions .button.small,
html body[data-page="certificados"] .sieejc-certificados-table .compact-actions .button.small.alt,
html body[data-page="certificados"] .sieejc-certificados-table .compact-actions .button.small.special{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:32px !important;
  min-height:32px !important;
  margin:0 !important;
  padding:0 8px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  font-size:11.5px !important;
  font-weight:900 !important;
  line-height:1 !important;
  text-align:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
html body[data-page="certificados"] .sieejc-certificados-table .compact-actions .button.small span{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
@media(max-width:760px){
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage{height:48dvh !important;}
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar{grid-template-columns:42px 58px minmax(120px,1fr) 42px !important;}
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar button[data-sieejc-photo-zoom-reset]{grid-column:1/-1 !important;width:100% !important;}
}



/* ============================================================
   SIEEJC v0.6.107 · Ajuste fino de acciones y visor fotográfico
   - Botones de tablas con ancho real sin quedar recortados: var(--sieejc-table-action-width) - 1px.
   - Jurídico, búsqueda integral y procesal usan el patrón visual compacto tipo Jueces.
   - Médico distribuye acciones en matriz compacta para reducir altura de filas.
   - El visor fotográfico/zoom se replica en modales de evidencia que usan exp-photo-viewer.
   ============================================================ */
@media screen{
  :root{
    --sieejc-table-action-width:112px;
    --sieejc-table-action-height:32px;
  }

  /* Base real corregida por Luis: el botón aprovecha casi todo el ancho asignado, sin restar 14px. */
  html body:not(.sieejc-login-page) :where(.sieejc-table-action,a.button.small.sieejc-iconified,button.button.small.sieejc-iconified,.historial-action-btn,.jueces-table-action,.jueces-action-btn,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn,.visita-detail-btn){
    width:calc(var(--sieejc-table-action-width) - 1px) !important;
    min-width:calc(var(--sieejc-table-action-width) - 1px) !important;
    max-width:calc(var(--sieejc-table-action-width) - 1px) !important;
    height:var(--sieejc-table-action-height) !important;
    min-height:var(--sieejc-table-action-height) !important;
    padding:0 10px !important;
    margin:0 auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    border-radius:8px !important;
    font-size:11.5px !important;
    font-weight:900 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    text-align:center !important;
    text-indent:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    box-sizing:border-box !important;
  }
  html body:not(.sieejc-login-page) :where(.sieejc-table-action,a.button.small.sieejc-iconified,button.button.small.sieejc-iconified,.historial-action-btn,.jueces-table-action,.jueces-action-btn,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn,.visita-detail-btn) :where(i,svg,.sieejc-btn-icon,.sieejc-btn-text,span){
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
    margin:0 !important;
    min-width:0 !important;
  }
  html body:not(.sieejc-login-page) :where(td.sieejc-actions-cell,td.juridico-actions-cell,td.juridico-action-cell,td.jueces-actions,td.jueces-actions-cell,td.col-acciones,td.actions,td:last-child){
    text-align:center !important;
    vertical-align:middle !important;
  }

  /* Jurídico: más aire de columna, pero mismo botón compacto y centrado. */
  html body[data-page="vehiculos"] table.juridico-table,
  html body[data-page="historico"] table.juridico-table,
  html body[data-page="busqueda-integral"] table.juridico-search-table{
    --sieejc-table-action-width:112px !important;
    --sieejc-table-action-height:32px !important;
  }
  html body[data-page="vehiculos"] table.juridico-table th:last-child,
  html body[data-page="vehiculos"] table.juridico-table td:last-child,
  html body[data-page="historico"] table.juridico-table th:last-child,
  html body[data-page="historico"] table.juridico-table td:last-child{
    width:132px !important;
    min-width:132px !important;
    max-width:132px !important;
    text-align:center !important;
    overflow:visible !important;
  }
  html body[data-page="busqueda-integral"] table.juridico-search-table th:nth-child(6),
  html body[data-page="busqueda-integral"] table.juridico-search-table td:nth-child(6){
    width:136px !important;
    min-width:136px !important;
    max-width:136px !important;
    text-align:center !important;
    overflow:visible !important;
  }
  html body[data-page="busqueda-integral"] .juridico-row-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    width:100% !important;
  }
  html body[data-page="busqueda-integral"] .juridico-row-actions .button.small{
    width:111px !important;
    min-width:111px !important;
    max-width:111px !important;
    height:32px !important;
    min-height:32px !important;
    padding:0 9px !important;
    margin:0 auto !important;
  }

  /* Procesal/Jueces: acciones centradas, no pegadas al extremo de columna. */
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.custodia-table,table.jueces-table,table.pending-table){
    --sieejc-table-action-width:112px !important;
    --sieejc-table-action-height:32px !important;
  }
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.custodia-table,table.jueces-table,table.pending-table) th:last-child,
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.custodia-table,table.jueces-table,table.pending-table) td:last-child{
    width:132px !important;
    min-width:132px !important;
    text-align:center !important;
  }
  html body:not(.sieejc-login-page) :where(table.historial-wide-table-main,table.custodia-table,table.jueces-table,table.pending-table) :where(.sieejc-table-action,.button.small.sieejc-iconified,.jueces-action-btn,.historial-action-btn){
    margin-left:auto !important;
    margin-right:auto !important;
  }

  /* Médico: distribución tipo Procesal, compacta y sin filas gigantes. */
  html body[data-page="certificados"] .sieejc-certificados-table{
    --sieejc-table-action-width:104px !important;
    --sieejc-table-action-height:32px !important;
  }
  html body[data-page="certificados"] .sieejc-certificados-table th.col-acciones,
  html body[data-page="certificados"] .sieejc-certificados-table td.col-acciones,
  html body[data-page="certificados"] .sieejc-certificados-table th:last-child,
  html body[data-page="certificados"] .sieejc-certificados-table td:last-child{
    width:238px !important;
    min-width:238px !important;
    max-width:238px !important;
    text-align:center !important;
    vertical-align:middle !important;
    overflow:visible !important;
  }
  html body[data-page="certificados"] .sieejc-certificados-table .compact-actions{
    display:grid !important;
    grid-template-columns:repeat(2,104px) !important;
    gap:7px 8px !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    max-width:220px !important;
    margin:0 auto !important;
  }
  html body[data-page="certificados"] .sieejc-certificados-table .compact-actions .button.small,
  html body[data-page="certificados"] .sieejc-certificados-table .compact-actions button.small{
    width:104px !important;
    min-width:104px !important;
    max-width:104px !important;
    height:32px !important;
    min-height:32px !important;
    padding:0 8px !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    font-size:11px !important;
    font-weight:900 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  html body[data-page="certificados"] .sieejc-certificados-table .compact-actions .button.small span{
    display:inline-block !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  /* Visor fotográfico v107: misma lógica de zoom real en cualquier modal con imágenes. */
  html body:not(.sieejc-login-page) .sieejc-modal:has(.sieejc-photo-viewer),
  html body:not(.sieejc-login-page) .sieejc-modal:has(.exp-photo-viewer){
    width:min(96vw,1240px) !important;
    max-height:calc(100dvh - var(--sieejc-nav-height,56px) - 34px) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-modal:has(.sieejc-photo-viewer) .sieejc-modal-body,
  html body:not(.sieejc-login-page) .sieejc-modal:has(.exp-photo-viewer) .sieejc-modal-body{
    overflow:hidden !important;
    padding:14px 16px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer,
  html body:not(.sieejc-login-page) .exp-photo-viewer{
    width:100% !important;
    height:100% !important;
    display:grid !important;
    grid-template-rows:minmax(0,1fr) auto auto !important;
    gap:12px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage{
    display:block !important;
    position:relative !important;
    width:100% !important;
    height:clamp(420px,56dvh,650px) !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:auto !important;
    overscroll-behavior:contain !important;
    padding:0 !important;
    border-radius:16px !important;
    box-sizing:border-box !important;
    scrollbar-width:auto !important;
    background:radial-gradient(circle at 50% 34%,rgba(255,255,255,.08),rgba(255,255,255,0) 31rem),#07152b !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-zoom-canvas,
  html body:not(.sieejc-login-page) .exp-photo-zoom-canvas{
    width:var(--sieejc-photo-canvas-min-w,100%) !important;
    height:var(--sieejc-photo-canvas-min-h,100%) !important;
    min-width:100% !important;
    min-height:100% !important;
    display:grid !important;
    place-items:center !important;
    padding:28px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    margin:0 !important;
    transform:none !important;
    transition:none !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-zoom-canvas img,
  html body:not(.sieejc-login-page) .exp-photo-zoom-canvas img,
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-stage img,
  html body:not(.sieejc-login-page) .exp-photo-viewer-stage img{
    display:block !important;
    width:var(--sieejc-photo-img-width,auto) !important;
    height:var(--sieejc-photo-img-height,auto) !important;
    max-width:none !important;
    max-height:none !important;
    min-width:0 !important;
    min-height:0 !important;
    object-fit:contain !important;
    transform:translate3d(0,0,0) !important;
    transform-origin:center center !important;
    transition:width .16s ease,height .16s ease !important;
    will-change:width,height !important;
    background:#fff !important;
    border-radius:10px !important;
    box-shadow:0 12px 34px rgba(0,0,0,.34) !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar{
    display:grid !important;
    grid-template-columns:42px 64px minmax(300px,460px) 42px auto !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
    width:100% !important;
    min-height:38px !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar button{
    height:34px !important;
    min-width:42px !important;
    border-radius:9px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-toolbar input[type="range"]{
    width:100% !important;
    min-width:0 !important;
    accent-color:#12386f !important;
  }
  html body:not(.sieejc-login-page) .sieejc-photo-viewer-caption,
  html body:not(.sieejc-login-page) .exp-photo-viewer-caption{
    margin:0 !important;
    min-height:36px !important;
    display:flex !important;
    align-items:center !important;
  }
}

/* ============================================================
   SIEEJC v0.6.108 · Médico: acciones amplias sin filas gigantes
   - La tabla de certificados recupera ancho de Persona/Sujeto y Médico.
   - La columna Acciones gana espacio real para una matriz 2x2 legible.
   - Botones de acción: texto centrado, icono estable y sin recortes.
   ============================================================ */
@media screen{
  html body[data-page="certificados"] .sieejc-certificados-host,
  html body[data-page="certificados"] .sieejc-certificados-table-wrap,
  html body[data-page="certificados"] .table-wrapper.sieejc-certificados-host{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:visible !important;
  }

  html body[data-page="certificados"] table.sieejc-certificados-table{
    width:100% !important;
    min-width:1120px !important;
    max-width:none !important;
    table-layout:fixed !important;
    --sieejc-med-action-col:272px;
    --sieejc-med-action-btn:122px;
    --sieejc-med-action-height:32px;
  }

  html body[data-page="certificados"] table.sieejc-certificados-table .col-folio{width:140px !important;min-width:140px !important;max-width:140px !important;}
  html body[data-page="certificados"] table.sieejc-certificados-table .col-persona{width:255px !important;min-width:255px !important;max-width:255px !important;}
  html body[data-page="certificados"] table.sieejc-certificados-table .col-medico{width:185px !important;min-width:185px !important;max-width:185px !important;}
  html body[data-page="certificados"] table.sieejc-certificados-table .col-fecha{width:135px !important;min-width:135px !important;max-width:135px !important;}
  html body[data-page="certificados"] table.sieejc-certificados-table .col-pdf{width:150px !important;min-width:150px !important;max-width:150px !important;}

  html body[data-page="certificados"] table.sieejc-certificados-table th.col-acciones,
  html body[data-page="certificados"] table.sieejc-certificados-table td.col-acciones,
  html body[data-page="certificados"] table.sieejc-certificados-table th.actions-col,
  html body[data-page="certificados"] table.sieejc-certificados-table td:last-child{
    width:var(--sieejc-med-action-col) !important;
    min-width:var(--sieejc-med-action-col) !important;
    max-width:var(--sieejc-med-action-col) !important;
    text-align:center !important;
    vertical-align:middle !important;
    overflow:visible !important;
  }

  html body[data-page="certificados"] table.sieejc-certificados-table th,
  html body[data-page="certificados"] table.sieejc-certificados-table td{
    padding:11px 10px !important;
  }

  html body[data-page="certificados"] table.sieejc-certificados-table td.col-acciones{
    padding-left:8px !important;
    padding-right:8px !important;
  }

  html body[data-page="certificados"] table.sieejc-certificados-table .compact-actions{
    display:grid !important;
    grid-template-columns:repeat(2, var(--sieejc-med-action-btn)) !important;
    grid-auto-rows:var(--sieejc-med-action-height) !important;
    gap:7px 8px !important;
    align-items:center !important;
    justify-content:center !important;
    justify-items:stretch !important;
    width:100% !important;
    max-width:calc((var(--sieejc-med-action-btn) * 2) + 8px) !important;
    margin:0 auto !important;
  }

  html body[data-page="certificados"] table.sieejc-certificados-table .compact-actions .button.small,
  html body[data-page="certificados"] table.sieejc-certificados-table .compact-actions .button.small.alt,
  html body[data-page="certificados"] table.sieejc-certificados-table .compact-actions .button.small.special,
  html body[data-page="certificados"] table.sieejc-certificados-table .compact-actions button.small{
    width:var(--sieejc-med-action-btn) !important;
    min-width:var(--sieejc-med-action-btn) !important;
    max-width:var(--sieejc-med-action-btn) !important;
    height:var(--sieejc-med-action-height) !important;
    min-height:var(--sieejc-med-action-height) !important;
    max-height:var(--sieejc-med-action-height) !important;
    padding:0 9px !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    border-radius:8px !important;
    font-size:10.8px !important;
    font-weight:900 !important;
    line-height:1 !important;
    white-space:nowrap !important;
    text-align:center !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    box-sizing:border-box !important;
  }

  html body[data-page="certificados"] table.sieejc-certificados-table .compact-actions .button.small :where(i,svg,.sieejc-btn-icon,span),
  html body[data-page="certificados"] table.sieejc-certificados-table .compact-actions button.small :where(i,svg,.sieejc-btn-icon,span){
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:1 !important;
    margin:0 !important;
    min-width:0 !important;
  }

  html body[data-page="certificados"] table.sieejc-certificados-table .compact-actions .button.small span,
  html body[data-page="certificados"] table.sieejc-certificados-table .compact-actions button.small span{
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  @media(max-width:1280px){
    html body[data-page="certificados"] table.sieejc-certificados-table{
      min-width:1060px !important;
      --sieejc-med-action-col:260px;
      --sieejc-med-action-btn:116px;
    }
    html body[data-page="certificados"] table.sieejc-certificados-table .col-folio{width:130px !important;min-width:130px !important;max-width:130px !important;}
    html body[data-page="certificados"] table.sieejc-certificados-table .col-persona{width:240px !important;min-width:240px !important;max-width:240px !important;}
    html body[data-page="certificados"] table.sieejc-certificados-table .col-medico{width:170px !important;min-width:170px !important;max-width:170px !important;}
    html body[data-page="certificados"] table.sieejc-certificados-table .col-fecha{width:125px !important;min-width:125px !important;max-width:125px !important;}
    html body[data-page="certificados"] table.sieejc-certificados-table .col-pdf{width:135px !important;min-width:135px !important;max-width:135px !important;}
  }
}


/* ============================================================
   SIEEJC v0.6.110 · Afinación de filtros, acciones y tablas
   - Jurídico: filtros con botones del mismo alto que inputs y acciones más legibles.
   - Visitas: filtros históricos con fechas/select del mismo alto y página legible.
   - IPH Operativo: tabla con respiración interna y acciones más amplias/centradas.
   ============================================================ */
@media screen{
  :root{
    --sieejc-filter-control-height:48px;
    --sieejc-action-button-height:36px;
    --sieejc-action-font-size:12px;
  }

  /* Jurídico · filtros de vehículos/histórico: botones al mismo alto que inputs/selects. */
  html body:not(.sieejc-login-page)[data-page="vehiculos"] .juridico-filters-compact,
  html body:not(.sieejc-login-page)[data-page="historico"] .juridico-filters-compact{
    grid-template-columns:minmax(360px,2.15fr) minmax(180px,.9fr) minmax(130px,.58fr) 150px 150px !important;
    gap:14px !important;
    align-items:end !important;
  }
  html body:not(.sieejc-login-page)[data-page="vehiculos"] .juridico-filters-compact :where(input,select,.button,button),
  html body:not(.sieejc-login-page)[data-page="historico"] .juridico-filters-compact :where(input,select,.button,button){
    height:var(--sieejc-filter-control-height) !important;
    min-height:var(--sieejc-filter-control-height) !important;
    line-height:1 !important;
    box-sizing:border-box !important;
  }
  html body:not(.sieejc-login-page)[data-page="vehiculos"] .juridico-filters-compact .filter-action .button,
  html body:not(.sieejc-login-page)[data-page="historico"] .juridico-filters-compact .filter-action .button,
  html body:not(.sieejc-login-page)[data-page="vehiculos"] .juridico-filters-compact .filter-action button,
  html body:not(.sieejc-login-page)[data-page="historico"] .juridico-filters-compact .filter-action button{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    padding:0 18px !important;
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    font-size:12.6px !important;
    font-weight:850 !important;
    white-space:nowrap !important;
    text-align:center !important;
  }

  /* Jurídico · tabla vehicular: columna Acciones +25% aprox. y botón Expedia/Expediente más cómodo. */
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table th:nth-child(1),
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(1),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table th:nth-child(1),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(1){width:15.5% !important;}
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table th:nth-child(2),
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(2),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table th:nth-child(2),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(2){width:12.5% !important;}
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table th:nth-child(3),
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(3),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table th:nth-child(3),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(3){width:14% !important;}
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table th:nth-child(4),
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(4),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table th:nth-child(4),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(4){width:13% !important;}
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table th:nth-child(5),
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(5),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table th:nth-child(5),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(5){width:11% !important;}
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table th:nth-child(6),
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(6),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table th:nth-child(6),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(6){width:13% !important;}
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table th:nth-child(7),
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(7),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table th:nth-child(7),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(7){width:6.5% !important;text-align:center !important;}
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table th:nth-child(8),
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(8),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table th:nth-child(8),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(8){width:14.5% !important;min-width:132px !important;text-align:center !important;}
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(8),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(8){
    padding-left:10px !important;
    padding-right:10px !important;
    vertical-align:middle !important;
  }
  html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table td:nth-child(8) :where(.button,button,.sieejc-table-action),
  html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table td:nth-child(8) :where(.button,button,.sieejc-table-action){
    width:calc(100% - 1px) !important;
    min-width:116px !important;
    max-width:100% !important;
    height:var(--sieejc-action-button-height) !important;
    min-height:var(--sieejc-action-button-height) !important;
    padding:0 10px !important;
    margin:0 auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    font-size:var(--sieejc-action-font-size) !important;
    line-height:1 !important;
    text-align:center !important;
    white-space:nowrap !important;
  }

  /* Visitas · histórico: controles de filtros equilibrados y select de tamaño legible. */
  html body:not(.sieejc-login-page)[data-page="historico"] section.box > .row.gtr-50.gtr-uniform:has(#hist_pageSize){
    display:grid !important;
    grid-template-columns:minmax(260px,1.35fr) minmax(220px,1fr) 142px 142px 136px !important;
    gap:14px !important;
    align-items:center !important;
    margin-left:0 !important;
    margin-right:0 !important;
    margin-bottom:1rem !important;
  }
  html body:not(.sieejc-login-page)[data-page="historico"] section.box > .row.gtr-50.gtr-uniform:has(#hist_pageSize) > [class*="col-"]{
    width:auto !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
    margin:0 !important;
  }
  html body:not(.sieejc-login-page)[data-page="historico"] :where(#hist_q,#hist_destino,#hist_from,#hist_to,#hist_pageSize){
    height:var(--sieejc-filter-control-height) !important;
    min-height:var(--sieejc-filter-control-height) !important;
    line-height:1.2 !important;
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
  }
  html body:not(.sieejc-login-page)[data-page="historico"] #hist_pageSize{
    min-width:136px !important;
    padding-left:14px !important;
    padding-right:34px !important;
    text-align:left !important;
  }

  /* Visitas admin · mismo alto en filtros equivalentes por nivel de usuario. */
  html body:not(.sieejc-login-page)[data-page="admin-visitas"] section.box > .row.gtr-50:has(#btnBuscar){
    display:grid !important;
    grid-template-columns:repeat(3,minmax(220px,1fr)) !important;
    gap:14px !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  html body:not(.sieejc-login-page)[data-page="admin-visitas"] section.box > .row.gtr-50:has(#btnBuscar) > [class*="col-"]{
    width:auto !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  html body:not(.sieejc-login-page)[data-page="admin-visitas"] section.box > .row.gtr-50:has(#btnBuscar) :where(input,select,.button){
    height:var(--sieejc-filter-control-height) !important;
    min-height:var(--sieejc-filter-control-height) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-sizing:border-box !important;
  }

  /* IPH Operativo · tabla con margen interno, acciones más anchas y centradas. */
  html body.iph-op:not(.sieejc-login-page) .iphop-table-panel{
    padding:14px 16px 16px !important;
    overflow:visible !important;
  }
  html body.iph-op:not(.sieejc-login-page) .iphop-table-panel .iphop-table-headline{
    padding:0 2px 12px !important;
    background:transparent !important;
  }
  html body.iph-op:not(.sieejc-login-page) .iphop-table-panel .iph-table-wrap{
    border-radius:14px !important;
    overflow-x:auto !important;
    overflow-y:visible !important;
  }
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table{
    table-layout:fixed !important;
    min-width:1180px !important;
  }
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table th:nth-child(1),
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table td:nth-child(1){width:15% !important;}
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table th:nth-child(2),
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table td:nth-child(2){width:13.5% !important;}
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table th:nth-child(3),
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table td:nth-child(3){width:14% !important;}
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table th:nth-child(4),
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table td:nth-child(4){width:16% !important;}
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table th:nth-child(5),
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table td:nth-child(5){width:15% !important;}
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table th:nth-child(6),
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table td:nth-child(6){width:14% !important;}
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table th:nth-child(7),
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table td:nth-child(7){
    width:12.5% !important;
    min-width:132px !important;
    text-align:center !important;
    vertical-align:middle !important;
  }
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table td:nth-child(7){padding-left:10px !important;padding-right:10px !important;}
  html body.iph-op:not(.sieejc-login-page) table.iphop-iph-table td:nth-child(7) :where(.button,button,.sieejc-table-action){
    width:calc(100% - 1px) !important;
    min-width:112px !important;
    max-width:100% !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 12px !important;
    margin:0 auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    font-size:12px !important;
    line-height:1 !important;
    text-align:center !important;
    white-space:nowrap !important;
  }

  @media(max-width:1200px){
    html body:not(.sieejc-login-page)[data-page="vehiculos"] .juridico-filters-compact,
    html body:not(.sieejc-login-page)[data-page="historico"] .juridico-filters-compact{
      grid-template-columns:minmax(280px,1fr) minmax(170px,.85fr) 130px 145px 145px !important;
    }
    html body:not(.sieejc-login-page)[data-page="historico"] section.box > .row.gtr-50.gtr-uniform:has(#hist_pageSize){
      grid-template-columns:minmax(240px,1fr) minmax(210px,.9fr) 132px 132px 126px !important;
    }
  }
  @media(max-width:760px){
    html body:not(.sieejc-login-page)[data-page="vehiculos"] .juridico-filters-compact,
    html body:not(.sieejc-login-page)[data-page="historico"] .juridico-filters-compact,
    html body:not(.sieejc-login-page)[data-page="historico"] section.box > .row.gtr-50.gtr-uniform:has(#hist_pageSize),
    html body:not(.sieejc-login-page)[data-page="admin-visitas"] section.box > .row.gtr-50:has(#btnBuscar){
      grid-template-columns:1fr !important;
    }
    html body:not(.sieejc-login-page)[data-page="vehiculos"] .juridico-filters-compact .filter-action .button,
    html body:not(.sieejc-login-page)[data-page="historico"] .juridico-filters-compact .filter-action .button,
    html body:not(.sieejc-login-page)[data-page="vehiculos"] .juridico-filters-compact .filter-action button,
    html body:not(.sieejc-login-page)[data-page="historico"] .juridico-filters-compact .filter-action button{
      width:100% !important;
      min-width:0 !important;
      max-width:100% !important;
    }
  }
}

/* ==========================================================
   v0.6.111 - Visitas: panel administrativo como acceso único
   y tarjetas de administración homologadas con el home.
   ========================================================== */
html body[data-page="admin-dashboard"] #main.container{
  width:min(calc(100vw - 56px),1440px) !important;
  max-width:1440px !important;
  margin:0 auto !important;
  padding:3.25rem 0 2.4rem !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  box-sizing:border-box !important;
  position:relative !important;
  z-index:1 !important;
}

html body[data-page="admin-dashboard"] .sieejc-home-panel.sieejc-admin-panel{
  width:min(100%,1180px) !important;
  max-width:1180px !important;
  margin:0 auto 1.5rem !important;
  padding:2rem 2.45rem 1.85rem !important;
  background:rgba(255,255,255,.985) !important;
  border:1px solid var(--sieejc-shell-line) !important;
  border-radius:18px !important;
  box-shadow:var(--sieejc-shell-shadow) !important;
  box-sizing:border-box !important;
}

html body[data-page="admin-dashboard"] .sieejc-admin-panel h2{
  margin:0 0 .65rem !important;
  color:#0b2f5f !important;
  font-size:1.82rem !important;
  font-weight:900 !important;
  line-height:1.16 !important;
  text-align:center !important;
}

html body[data-page="admin-dashboard"] .sieejc-admin-panel > p{
  margin:.38rem auto !important;
  color:#697a92 !important;
  font-size:1rem !important;
  line-height:1.54 !important;
  font-weight:500 !important;
  text-align:center !important;
  max-width:900px !important;
}

html body[data-page="admin-dashboard"] .sieejc-admin-panel > .muted{
  margin-top:.2rem !important;
  margin-bottom:1.45rem !important;
}

html body[data-page="admin-dashboard"] .sieejc-admin-grid{
  width:min(100%,780px) !important;
  max-width:780px !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:1.15rem !important;
  align-items:stretch !important;
  justify-content:center !important;
}

html body[data-page="admin-dashboard"] .sieejc-admin-card{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  width:100% !important;
  min-width:0 !important;
  min-height:190px !important;
  padding:1.18rem 1.2rem 1.08rem !important;
  background:#fff !important;
  border:1px solid #e1e9f4 !important;
  border-radius:16px !important;
  box-shadow:0 10px 26px rgba(15,45,95,.065) !important;
  box-sizing:border-box !important;
  text-align:left !important;
}

html body[data-page="admin-dashboard"] .sieejc-admin-card .sieejc-home-card-icon{
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  border-radius:14px !important;
  margin:0 0 .85rem !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#edf6ff !important;
  font-size:1.25rem !important;
  line-height:1 !important;
}

html body[data-page="admin-dashboard"] .sieejc-admin-card h3{
  margin:0 0 .48rem !important;
  color:#15396c !important;
  font-size:1.05rem !important;
  font-weight:850 !important;
  line-height:1.25 !important;
}

html body[data-page="admin-dashboard"] .sieejc-admin-card p{
  flex:1 1 auto !important;
  margin:0 0 1rem !important;
  color:#65768e !important;
  font-size:.93rem !important;
  font-weight:500 !important;
  line-height:1.48 !important;
}

html body[data-page="admin-dashboard"] .sieejc-admin-card .button,
html body[data-page="admin-dashboard"] .sieejc-admin-card a.button,
html body[data-page="admin-dashboard"] .sieejc-admin-card button.button{
  width:100% !important;
  height:40px !important;
  min-height:40px !important;
  margin:auto 0 0 !important;
  padding:0 .85rem !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:.42rem !important;
  border-radius:9px !important;
  font-size:.92rem !important;
  font-weight:800 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  box-sizing:border-box !important;
}

@media (max-width: 780px){
  html body[data-page="admin-dashboard"] .sieejc-admin-grid{
    grid-template-columns:1fr !important;
    width:min(100%,390px) !important;
  }
  html body[data-page="admin-dashboard"] .sieejc-home-panel.sieejc-admin-panel{
    padding:1.55rem 1.15rem !important;
  }
}
/* ==========================================================
   v0.6.112 - Homologación 110% de tablas administrativas
   - Usuarios de Jurídico y tablas admin por módulo más anchas.
   - Columnas redistribuidas para evitar scroll innecesario.
   - Acciones con patrón compacto: dos botones arriba + acción larga abajo.
   ========================================================== */
:root{
  --sieejc-admin-table-panel-width:min(calc(100vw - 56px),1520px);
  --sieejc-admin-actions-width:172px;
}

html body[data-page="usuarios"] #main.container,
html body[data-page="admin-jueces"] #main.container,
html body[data-page="admin-procesal"] #main.container,
html body[data-page="admin-medicos"] #main.container,
html body[data-page="admin-recepcionistas"] #main.container{
  width:var(--sieejc-admin-table-panel-width) !important;
  max-width:var(--sieejc-admin-table-panel-width) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

html body[data-page="usuarios"] #panelUsuariosJuridico,
html body[data-page="admin-jueces"] .jueces-admin-users-panel,
html body[data-page="admin-procesal"] section.box:has(.admin-users-table),
html body[data-page="admin-medicos"] section.box:has(#tbody_medicos),
html body[data-page="admin-recepcionistas"] section.box:has(#usersBody),
html body[data-page="admin-recepcionistas"] section.box:has(#tbodyUsuarios),
html body[data-page="admin-recepcionistas"] section.box:has(.admin-user-actions){
  width:min(100%,1480px) !important;
  max-width:1480px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
}

html body[data-page="usuarios"] #panelUsuariosJuridico .juridico-table-wrap,
html body[data-page="admin-jueces"] .jueces-admin-users-panel .jueces-table-wrap,
html body[data-page="admin-procesal"] .table-wrapper:has(.admin-users-table),
html body[data-page="admin-medicos"] .table-wrapper:has(#tbody_medicos),
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive):has(.admin-user-actions){
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  border-radius:12px !important;
  box-sizing:border-box !important;
}

html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table,
html body[data-page="admin-jueces"] table.jueces-users-table,
html body[data-page="admin-procesal"] table.admin-users-table,
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos),
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions){
  width:100% !important;
  max-width:100% !important;
  min-width:1120px !important;
  table-layout:fixed !important;
  font-size:12.6px !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
}

html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th,
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td,
html body[data-page="admin-jueces"] table.jueces-users-table th,
html body[data-page="admin-jueces"] table.jueces-users-table td,
html body[data-page="admin-procesal"] table.admin-users-table th,
html body[data-page="admin-procesal"] table.admin-users-table td,
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th,
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td,
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) th,
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) td{
  padding:9px 10px !important;
  vertical-align:middle !important;
  line-height:1.32 !important;
  overflow-wrap:anywhere !important;
}

/* Jurídico · usuarios: columnas ajustadas para mostrar Nombre y Acciones sin recorte. */
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(1),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(1){width:18% !important;min-width:0 !important;max-width:none !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(2),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(2){width:22% !important;min-width:0 !important;max-width:none !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(3),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(3){width:17% !important;min-width:0 !important;max-width:none !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(4),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(4){width:10% !important;min-width:0 !important;max-width:none !important;text-align:center !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(5),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(5){width:16% !important;min-width:0 !important;max-width:none !important;text-align:center !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(6),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(6){width:17% !important;min-width:var(--sieejc-admin-actions-width) !important;max-width:none !important;text-align:center !important;}

/* Jueces · usuarios */
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(1),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(1){width:22% !important;}
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(2),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(2){width:24% !important;}
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(3),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(3){width:12% !important;}
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(4),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(4){width:10% !important;text-align:center !important;}
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(5),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(5){width:15% !important;text-align:center !important;}
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(6),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(6){width:17% !important;min-width:var(--sieejc-admin-actions-width) !important;text-align:center !important;}

/* Procesal · usuarios administrativos */
html body[data-page="admin-procesal"] table.admin-users-table .col-nombre{width:18% !important;}
html body[data-page="admin-procesal"] table.admin-users-table .col-correo{width:22% !important;}
html body[data-page="admin-procesal"] table.admin-users-table .col-turno{width:9% !important;}
html body[data-page="admin-procesal"] table.admin-users-table .col-usuario{width:10% !important;}
html body[data-page="admin-procesal"] table.admin-users-table .col-acceso{width:10% !important;}
html body[data-page="admin-procesal"] table.admin-users-table .col-login{width:14% !important;}
html body[data-page="admin-procesal"] table.admin-users-table .col-acciones{width:17% !important;min-width:var(--sieejc-admin-actions-width) !important;}
html body[data-page="admin-procesal"] table.admin-users-table th:nth-child(7),
html body[data-page="admin-procesal"] table.admin-users-table td:nth-child(7){width:17% !important;min-width:var(--sieejc-admin-actions-width) !important;max-width:none !important;text-align:center !important;}

/* Médico · usuarios administrativos */
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(1),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(1){width:18% !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(2),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(2){width:22% !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(3),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(3){width:12% !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(4),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(4){width:10% !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(5),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(5){width:8% !important;text-align:center !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(6),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(6){width:14% !important;text-align:center !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(7),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(7){width:16% !important;min-width:var(--sieejc-admin-actions-width) !important;text-align:center !important;}

/* Visitas · recepción/notificadores cuando usen tabla de usuarios. */
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) th:nth-child(1),
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) td:nth-child(1){width:19% !important;}
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) th:nth-child(2),
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) td:nth-child(2){width:23% !important;}
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) th:nth-child(3),
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) td:nth-child(3){width:17% !important;}
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) th:nth-child(4),
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) td:nth-child(4){width:10% !important;text-align:center !important;}
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) th:nth-child(5),
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) td:nth-child(5){width:14% !important;text-align:center !important;}
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) th:nth-child(6),
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) td:nth-child(6){width:17% !important;min-width:var(--sieejc-admin-actions-width) !important;text-align:center !important;}

/* Acciones admin: misma lógica visual en todos los módulos. */
html body:not(.sieejc-login-page) :where(.juridico-user-actions,.proc-actions,.med-actions,.admin-user-actions):is(.sieejc-admin-user-actions),
html body:not(.sieejc-login-page) :where(.juridico-user-actions,.proc-actions,.med-actions,.admin-user-actions){
  width:100% !important;
  max-width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:6px !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 auto !important;
}
html body:not(.sieejc-login-page) td.jueces-actions.sieejc-admin-user-actions{
  text-align:center !important;
  vertical-align:middle !important;
  white-space:normal !important;
}
html body:not(.sieejc-login-page) :where(.juridico-user-actions,.proc-actions,.med-actions,.admin-user-actions) .button.small,
html body:not(.sieejc-login-page) td.jueces-actions.sieejc-admin-user-actions .button.small{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:31px !important;
  min-height:31px !important;
  padding:0 7px !important;
  margin:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  border-radius:8px !important;
  font-size:11px !important;
  font-weight:850 !important;
  line-height:1 !important;
  text-align:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  box-sizing:border-box !important;
}
html body:not(.sieejc-login-page) :where(.juridico-user-actions,.proc-actions,.med-actions,.admin-user-actions) .sieejc-action-toggle,
html body:not(.sieejc-login-page) td.jueces-actions.sieejc-admin-user-actions .sieejc-action-toggle{
  grid-column:1 / -1 !important;
  width:100% !important;
}
html body:not(.sieejc-login-page) td.jueces-actions.sieejc-admin-user-actions .button.small{
  width:calc(50% - 5px) !important;
  margin:3px 2px !important;
}
html body:not(.sieejc-login-page) td.jueces-actions.sieejc-admin-user-actions .sieejc-action-toggle{
  width:calc(100% - 4px) !important;
}

@media(max-width:1180px){
  :root{--sieejc-admin-table-panel-width:calc(100vw - 36px);--sieejc-admin-actions-width:160px;}
  html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table,
  html body[data-page="admin-jueces"] table.jueces-users-table,
  html body[data-page="admin-procesal"] table.admin-users-table,
  html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos),
  html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions){
    min-width:1060px !important;
  }
}



/* ==========================================================
   SIEEJC v0.6.113 · Corrección profunda de tablas/admin y acciones
   - Evita que tablas administrativas se corten por min-width heredados.
   - Homologa botones de acción con ancho real, alineación y altura uniforme.
   - Administración de médicos: filtros y botones al mismo alto que inputs.
   ========================================================== */
:root{
  --sieejc-admin-table-panel-width: min(calc(100vw - 72px), 1560px);
  --sieejc-admin-actions-width: 188px;
  --sieejc-admin-action-height: 32px;
  --sieejc-admin-action-gap: 7px;
}

/* Paneles administrativos: ancho real suficiente, pero sin forzar scroll innecesario. */
html body[data-page="usuarios"] #main.container,
html body[data-page="admin-medicos"] #main.container,
html body[data-page="admin-jueces"] #main.container,
html body[data-page="admin-procesal"] #main.container,
html body[data-page="admin-recepcionistas"] #main.container{
  width: var(--sieejc-admin-table-panel-width) !important;
  max-width: var(--sieejc-admin-table-panel-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html body[data-page="usuarios"] #panelUsuariosJuridico,
html body[data-page="admin-medicos"] section.box:has(#tbody_medicos),
html body[data-page="admin-jueces"] .jueces-admin-users-panel,
html body[data-page="admin-procesal"] section.box:has(.admin-users-table),
html body[data-page="admin-recepcionistas"] section.box:has(.admin-user-actions),
html body[data-page="admin-recepcionistas"] section.box:has(#usersBody),
html body[data-page="admin-recepcionistas"] section.box:has(#tbodyUsuarios){
  width: min(100%, 1500px) !important;
  max-width: 1500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 22px !important;
  padding-right: 22px !important;
  box-sizing: border-box !important;
}

/* Tablas admin: se ajustan al contenedor. Ya no cortan la primera columna por traer scroll horizontal heredado. */
html body[data-page="usuarios"] #panelUsuariosJuridico .juridico-table-wrap,
html body[data-page="admin-medicos"] .table-wrapper:has(#tbody_medicos),
html body[data-page="admin-jueces"] .jueces-admin-users-panel .jueces-table-wrap,
html body[data-page="admin-procesal"] .table-wrapper:has(.admin-users-table),
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive):has(.admin-user-actions){
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table,
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos),
html body[data-page="admin-jueces"] table.jueces-users-table,
html body[data-page="admin-procesal"] table.admin-users-table,
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions){
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  font-size: 12.4px !important;
}

html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th,
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td,
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th,
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td,
html body[data-page="admin-jueces"] table.jueces-users-table th,
html body[data-page="admin-jueces"] table.jueces-users-table td,
html body[data-page="admin-procesal"] table.admin-users-table th,
html body[data-page="admin-procesal"] table.admin-users-table td,
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) th,
html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions) td{
  padding: 10px 11px !important;
  line-height: 1.3 !important;
  vertical-align: middle !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* Jurídico / Usuarios: columnas redistribuidas para que Nombre y Acciones respiren. */
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(1),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(1){width: 22% !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(2),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(2){width: 23% !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(3),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(3){width: 15% !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(4),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(4){width: 9% !important;text-align:center !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(5),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(5){width: 14% !important;text-align:center !important;}
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table th:nth-child(6),
html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table td:nth-child(6){width: 17% !important;min-width: var(--sieejc-admin-actions-width) !important;text-align:center !important;}

/* Médico / Administración: cede un poco de Nombre/Correo para ampliar Acciones y evitar botones apretados. */
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(1),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(1){width: 18% !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(2),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(2){width: 20% !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(3),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(3){width: 10% !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(4),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(4){width: 11% !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(5),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(5){width: 7% !important;text-align:center !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(6),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(6){width: 14% !important;text-align:center !important;}
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) th:nth-child(7),
html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos) td:nth-child(7){width: 20% !important;min-width: 208px !important;text-align:center !important;}

/* Filtros de Administración de médicos: Buscar y Nuevo médico mismo alto que inputs/selects. */
html body[data-page="admin-medicos"] .admin-toolbar{
  grid-template-columns: minmax(260px,2fr) minmax(150px,.85fr) minmax(150px,.85fr) 158px 178px !important;
  align-items: end !important;
  gap: 12px !important;
}
html body[data-page="admin-medicos"] .admin-toolbar input,
html body[data-page="admin-medicos"] .admin-toolbar select,
html body[data-page="admin-medicos"] .admin-toolbar #btnBuscar,
html body[data-page="admin-medicos"] .admin-toolbar #btnNuevo{
  height: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
}
html body[data-page="admin-medicos"] .admin-toolbar #btnBuscar,
html body[data-page="admin-medicos"] .admin-toolbar #btnNuevo{
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 .95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .45rem !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-weight: 850 !important;
  border-radius: 9px !important;
}

/* Acciones administrativas: mismo tamaño visual para Editar/Reset/Ver y acción larga abajo. */
html body:not(.sieejc-login-page) :where(.juridico-user-actions,.proc-actions,.med-actions,.admin-user-actions,.sieejc-admin-user-actions){
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--sieejc-admin-action-gap) !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: stretch !important;
  margin: 0 auto !important;
}
html body:not(.sieejc-login-page) :where(.juridico-user-actions,.proc-actions,.med-actions,.admin-user-actions,.sieejc-admin-user-actions) :where(a.button.small,button.button.small,.button.small){
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: var(--sieejc-admin-action-height) !important;
  min-height: var(--sieejc-admin-action-height) !important;
  padding: 0 8px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  line-height: 1 !important;
  text-align: center !important;
  font-size: 11.2px !important;
  font-weight: 850 !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}
html body:not(.sieejc-login-page) :where(.juridico-user-actions,.proc-actions,.med-actions,.admin-user-actions,.sieejc-admin-user-actions) :where(.toggle,.sieejc-action-toggle,.sieejc-user-disable,.sieejc-user-enable){
  grid-column: 1 / -1 !important;
}
html body:not(.sieejc-login-page) :where(.juridico-user-actions,.proc-actions,.med-actions,.admin-user-actions,.sieejc-admin-user-actions) :where(.sieejc-btn-icon,svg,i){
  flex: 0 0 auto !important;
}
html body:not(.sieejc-login-page) :where(.juridico-user-actions,.proc-actions,.med-actions,.admin-user-actions,.sieejc-admin-user-actions) :where(.sieejc-btn-text,span){
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Acciones operativas tipo Jueces: búsqueda integral/Jurídico/Procesal/IPH con ancho homogéneo. */
html body[data-page="busqueda-integral"] .juridico-search-table th:last-child,
html body[data-page="busqueda-integral"] .juridico-search-table td:last-child,
html body[data-page="vehiculos"] table.juridico-table th:last-child,
html body[data-page="vehiculos"] table.juridico-table td:last-child,
html body[data-page="historico"] table.juridico-table th:last-child,
html body[data-page="historico"] table.juridico-table td:last-child,
html body[data-page="historial"] table.historial-wide-table-main th:last-child,
html body[data-page="historial"] table.historial-wide-table-main td:last-child{
  width: 140px !important;
  min-width: 140px !important;
  max-width: 150px !important;
  text-align: center !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
html body[data-page="busqueda-integral"] .juridico-search-table :where(.sieejc-table-action,.juridico-exp-detail-btn,.juridico-veh-detail-btn,.juridico-iph-detail-btn),
html body[data-page="vehiculos"] table.juridico-table :where(.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn),
html body[data-page="historico"] table.juridico-table :where(.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn),
html body[data-page="historial"] table.historial-wide-table-main :where(.sieejc-table-action,.button.small.sieejc-iconified,.historial-action-btn){
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 1180px){
  :root{
    --sieejc-admin-table-panel-width: calc(100vw - 32px);
    --sieejc-admin-actions-width: 176px;
  }
  html body[data-page="usuarios"] #panelUsuariosJuridico table.compact-table,
  html body[data-page="admin-medicos"] .table-wrapper table:has(#tbody_medicos),
  html body[data-page="admin-jueces"] table.jueces-users-table,
  html body[data-page="admin-procesal"] table.admin-users-table,
  html body[data-page="admin-recepcionistas"] :where(.table-wrapper,.admin-table-wrap,.table-responsive) table:has(.admin-user-actions){
    min-width: 1040px !important;
  }
  html body[data-page="admin-medicos"] .admin-toolbar{
    grid-template-columns: 1fr 1fr !important;
  }
  html body[data-page="admin-medicos"] .admin-toolbar > div{
    min-width: 0 !important;
  }
}

/* ============================================================
   SIEEJC v0.6.114 · Homologación final de botones secundarios en tablas
   - Corrige botones blancos/outline más pequeños que los azules.
   - Fuerza mismo ancho, alto, padding, tipografía y centrado para todas
     las acciones de Búsqueda integral, Jurídico vehicular y tablas operativas.
   ============================================================ */
html body:not(.sieejc-login-page)[data-page="busqueda-integral"] .juridico-search-table th:last-child,
html body:not(.sieejc-login-page)[data-page="busqueda-integral"] .juridico-search-table td:last-child{
  width: 168px !important;
  min-width: 168px !important;
  max-width: 168px !important;
  text-align: center !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  overflow: visible !important;
}
html body:not(.sieejc-login-page)[data-page="busqueda-integral"] .juridico-row-actions,
html body:not(.sieejc-login-page)[data-page="busqueda-integral"] .juridico-action-stack{
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 8px !important;
}
html body:not(.sieejc-login-page)[data-page="busqueda-integral"] .juridico-search-table :where(a.button.small,button.button.small,.button.small,.sieejc-table-action,.juridico-exp-detail-btn,.juridico-veh-detail-btn,.juridico-iph-detail-btn),
html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table :where(a.button.small,button.button.small,.button.small,.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn),
html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table :where(a.button.small,button.button.small,.button.small,.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn){
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 12px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
}
html body:not(.sieejc-login-page)[data-page="busqueda-integral"] .juridico-search-table :where(a.button.small.alt,button.button.small.alt,.button.small.alt,.juridico-veh-detail-btn,.juridico-iph-detail-btn),
html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table :where(a.button.small.alt,button.button.small.alt,.button.small.alt),
html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table :where(a.button.small.alt,button.button.small.alt,.button.small.alt){
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 12px !important;
  border-width: 1px !important;
  box-shadow: none !important;
}
html body:not(.sieejc-login-page)[data-page="busqueda-integral"] .juridico-search-table :where(a.button.small,button.button.small,.button.small,.sieejc-table-action,.juridico-exp-detail-btn,.juridico-veh-detail-btn,.juridico-iph-detail-btn) :where(i,svg,.sieejc-btn-icon,span),
html body:not(.sieejc-login-page)[data-page="vehiculos"] table.juridico-table :where(a.button.small,button.button.small,.button.small,.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn) :where(i,svg,.sieejc-btn-icon,span),
html body:not(.sieejc-login-page)[data-page="historico"] table.juridico-table :where(a.button.small,button.button.small,.button.small,.sieejc-table-action,.juridico-action-btn,.juridico-detail-btn,.juridico-view-doc-btn) :where(i,svg,.sieejc-btn-icon,span){
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;
}
/* ============================================================
   SIEEJC v0.6.116 · Estándar transversal de usuarios administrativos
   - Homologa tablas de usuarios con el patrón visual de Jueces.
   - Acciones compactas: Editar/Reset arriba y bloqueo/reactivación abajo.
   - Modales de edición/reset/bloqueo con formularios institucionales.
   ============================================================ */
:root{
  --sieejc-admin-user-panel-width:min(calc(100vw - 72px),1560px);
  --sieejc-admin-user-actions-width:188px;
  --sieejc-admin-user-action-height:32px;
  --sieejc-admin-user-action-gap:7px;
}
html body[data-page="admin-procesal"] section#main,
html body[data-page="admin-medicos"] section#main,
html body[data-page="usuarios"] section#main,
html body[data-page="admin-recepcionistas"] section#main{
  max-width:none !important;
}
html body[data-page="admin-procesal"] .sieejc-admin-users-panel,
html body[data-page="admin-medicos"] .sieejc-admin-users-panel,
html body[data-page="usuarios"] .sieejc-admin-users-panel,
html body[data-page="admin-recepcionistas"] .sieejc-admin-users-panel,
html body[data-page="admin-jueces"] .jueces-admin-users-panel{
  width:var(--sieejc-admin-user-panel-width) !important;
  max-width:var(--sieejc-admin-user-panel-width) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  border:1px solid #d9e4f2 !important;
  border-radius:14px !important;
  box-shadow:0 18px 45px rgba(18,40,76,.08) !important;
  background:#fff !important;
  overflow:hidden !important;
}
html body[data-page="admin-procesal"] .sieejc-admin-users-panel .table-wrapper,
html body[data-page="admin-medicos"] .sieejc-admin-users-panel .table-wrapper,
html body[data-page="usuarios"] .juridico-table-wrap,
html body[data-page="admin-recepcionistas"] .visitas-users-table-wrap,
html body[data-page="admin-jueces"] .jueces-admin-users-panel .jueces-table-wrap{
  border:1px solid #dbe6f5 !important;
  border-radius:12px !important;
  overflow:hidden !important;
  background:#fff !important;
  box-shadow:none !important;
}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table,
html body[data-page="usuarios"] table.sieejc-admin-users-table,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table,
html body[data-page="admin-jueces"] table.jueces-users-table{
  width:100% !important;
  min-width:1040px !important;
  table-layout:fixed !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  margin:0 !important;
  background:#fff !important;
}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table thead th,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table thead th,
html body[data-page="usuarios"] table.sieejc-admin-users-table thead th,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table thead th,
html body[data-page="admin-jueces"] table.jueces-users-table thead th{
  background:#12386f !important;
  color:#fff !important;
  font-size:11.2px !important;
  font-weight:900 !important;
  letter-spacing:.01em !important;
  padding:9px 12px !important;
  border:0 !important;
  line-height:1.15 !important;
  vertical-align:middle !important;
}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table tbody td,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table tbody td,
html body[data-page="usuarios"] table.sieejc-admin-users-table tbody td,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table tbody td,
html body[data-page="admin-jueces"] table.jueces-users-table tbody td{
  padding:12px 12px !important;
  border-bottom:1px solid #e7edf6 !important;
  vertical-align:middle !important;
  font-size:12.2px !important;
  line-height:1.28 !important;
  color:#31455d !important;
  background:#fff !important;
}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table tbody tr:nth-child(even) td,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table tbody tr:nth-child(even) td,
html body[data-page="usuarios"] table.sieejc-admin-users-table tbody tr:nth-child(even) td,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table tbody tr:nth-child(even) td,
html body[data-page="admin-jueces"] table.jueces-users-table tbody tr:nth-child(even) td{
  background:#f8fbff !important;
}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table tbody tr:hover td,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table tbody tr:hover td,
html body[data-page="usuarios"] table.sieejc-admin-users-table tbody tr:hover td,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table tbody tr:hover td,
html body[data-page="admin-jueces"] table.jueces-users-table tbody tr:hover td{
  background:#f1f7ff !important;
}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="usuarios"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-jueces"] table.jueces-users-table :is(th:last-child,td:last-child){
  width:var(--sieejc-admin-user-actions-width) !important;
  min-width:var(--sieejc-admin-user-actions-width) !important;
  text-align:center !important;
}
html body:not(.sieejc-login-page) :is(.proc-actions,.med-actions,.juridico-user-actions,.admin-user-actions,td.jueces-actions.sieejc-admin-user-actions){
  width:100% !important;
  max-width:var(--sieejc-admin-user-actions-width) !important;
  min-width:0 !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:var(--sieejc-admin-user-action-gap) !important;
  align-items:center !important;
  justify-items:stretch !important;
}
html body:not(.sieejc-login-page) :is(.proc-actions,.med-actions,.juridico-user-actions,.admin-user-actions,td.jueces-actions.sieejc-admin-user-actions) :is(a.button.small,button.button.small,.button.small){
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:var(--sieejc-admin-user-action-height) !important;
  min-height:var(--sieejc-admin-user-action-height) !important;
  max-height:var(--sieejc-admin-user-action-height) !important;
  margin:0 !important;
  padding:0 8px !important;
  border-radius:8px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  font-size:11px !important;
  font-weight:900 !important;
  line-height:1 !important;
  text-align:center !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  box-sizing:border-box !important;
}
html body:not(.sieejc-login-page) :is(.proc-actions,.med-actions,.juridico-user-actions,.admin-user-actions,td.jueces-actions.sieejc-admin-user-actions) :is(.sieejc-action-toggle,.sieejc-user-disable,.sieejc-user-enable,.toggle){
  grid-column:1 / -1 !important;
}
html body:not(.sieejc-login-page) :is(.proc-actions,.med-actions,.juridico-user-actions,.admin-user-actions,td.jueces-actions.sieejc-admin-user-actions) :is(.sieejc-btn-icon,svg,i){
  width:13px !important;
  height:13px !important;
  flex:0 0 auto !important;
}
html body:not(.sieejc-login-page) :is(.proc-actions,.med-actions,.juridico-user-actions,.admin-user-actions,td.jueces-actions.sieejc-admin-user-actions) .sieejc-btn-text{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
html body:not(.sieejc-login-page) :is(.proc-actions,.med-actions,.juridico-user-actions,.admin-user-actions,td.jueces-actions.sieejc-admin-user-actions) .sieejc-user-disable{
  background:#9b1c1c !important;
  border-color:#9b1c1c !important;
  color:#fff !important;
}
html body:not(.sieejc-login-page) :is(.proc-actions,.med-actions,.juridico-user-actions,.admin-user-actions,td.jueces-actions.sieejc-admin-user-actions) .sieejc-user-enable{
  background:#176b36 !important;
  border-color:#176b36 !important;
  color:#fff !important;
}
.sieejc-admin-user-modal-content{color:#24364d !important;}
.sieejc-admin-user-form{display:block !important;margin:0 !important;}
.sieejc-admin-form-grid{display:grid !important;gap:14px !important;margin-bottom:14px !important;}
.sieejc-admin-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
.sieejc-admin-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
.sieejc-admin-form-grid label{display:flex !important;flex-direction:column !important;gap:6px !important;margin:0 !important;font-size:12px !important;font-weight:850 !important;color:#12284c !important;letter-spacing:.01em !important;}
.sieejc-admin-form-grid input,.sieejc-admin-form-grid select{width:100% !important;min-height:42px !important;border:1px solid #cfd9e8 !important;border-radius:9px !important;padding:0 12px !important;background:#fff !important;color:#26384f !important;font-size:13px !important;box-sizing:border-box !important;}
.sieejc-admin-form-grid input[readonly]{background:#f4f7fb !important;color:#52657e !important;}
.sieejc-admin-modal-actions{display:flex !important;justify-content:flex-end !important;gap:10px !important;margin-top:16px !important;flex-wrap:wrap !important;}
.sieejc-admin-modal-actions .button{margin:0 !important;min-width:150px !important;}
@media(max-width:1180px){
  :root{--sieejc-admin-user-panel-width:calc(100vw - 32px);--sieejc-admin-user-actions-width:176px;}
  html body[data-page="admin-procesal"] table.sieejc-admin-users-table,
  html body[data-page="admin-medicos"] table.sieejc-admin-users-table,
  html body[data-page="usuarios"] table.sieejc-admin-users-table,
  html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table,
  html body[data-page="admin-jueces"] table.jueces-users-table{min-width:1040px !important;}
}
@media(max-width:760px){
  .sieejc-admin-form-grid.two,.sieejc-admin-form-grid.three{grid-template-columns:1fr !important;}
  .sieejc-admin-modal-actions{justify-content:stretch !important;}
  .sieejc-admin-modal-actions .button{width:100% !important;}
}

/* ============================================================
   SIEEJC v0.6.117 · Centrado real de tablas administrativas
   - Corrige el descentrado causado por paneles más anchos que #main.container.
   - Centra los paneles respecto al área visible, no respecto a un contenedor heredado.
   - Jueces: la celda Acciones vuelve a comportarse como table-cell; el grid vive en un div interno.
   ============================================================ */
:root{
  --sieejc-admin-users-panel-width-v117:min(calc(100vw - 96px),1560px);
  --sieejc-admin-users-narrow-panel-v117:min(calc(100vw - 96px),1120px);
}
html body[data-page="admin-procesal"] #page-wrapper > #main.container,
html body[data-page="admin-medicos"] #page-wrapper > #main.container,
html body[data-page="admin-jueces"] #page-wrapper > #main.container,
html body[data-page="usuarios"] #page-wrapper > #main.container,
html body[data-page="admin-recepcionistas"] #page-wrapper > #main.container{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:24px !important;
  padding-right:24px !important;
  box-sizing:border-box !important;
  align-items:center !important;
  overflow-x:clip !important;
}
html body[data-page="admin-procesal"] #main.container > header,
html body[data-page="admin-medicos"] #main.container > header,
html body[data-page="admin-jueces"] #main.container > header,
html body[data-page="usuarios"] #main.container > header,
html body[data-page="admin-recepcionistas"] #main.container > header{
  width:100% !important;
  max-width:1440px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
}
html body[data-page="admin-procesal"] #main.container > .box:not(.sieejc-admin-users-panel):not(:has(.sieejc-admin-users-table)),
html body[data-page="admin-medicos"] #main.container > .box:not(.sieejc-admin-users-panel):not(:has(.sieejc-admin-users-table)),
html body[data-page="admin-jueces"] #main.container > .jueces-panel:not(.jueces-admin-users-panel),
html body[data-page="usuarios"] #main.container > .juridico-panel:not(.sieejc-admin-users-panel),
html body[data-page="admin-recepcionistas"] #main.container > .box:not(.sieejc-admin-users-panel):not(:has(.sieejc-admin-users-table)){
  width:var(--sieejc-admin-users-narrow-panel-v117) !important;
  max-width:var(--sieejc-admin-users-narrow-panel-v117) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
}
html body[data-page="admin-procesal"] .sieejc-admin-users-panel,
html body[data-page="admin-medicos"] .sieejc-admin-users-panel,
html body[data-page="usuarios"] .sieejc-admin-users-panel,
html body[data-page="admin-recepcionistas"] .sieejc-admin-users-panel,
html body[data-page="admin-jueces"] .jueces-admin-users-panel{
  width:var(--sieejc-admin-users-panel-width-v117) !important;
  max-width:var(--sieejc-admin-users-panel-width-v117) !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
  transform:none !important;
}
html body[data-page="admin-procesal"] .sieejc-admin-users-panel .table-wrapper,
html body[data-page="admin-medicos"] .sieejc-admin-users-panel .table-wrapper,
html body[data-page="usuarios"] .sieejc-admin-users-panel .juridico-table-wrap,
html body[data-page="admin-recepcionistas"] .sieejc-admin-users-panel :is(.table-wrapper,.visitas-users-table-wrap),
html body[data-page="admin-jueces"] .jueces-admin-users-panel .jueces-table-wrap{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table,
html body[data-page="usuarios"] table.sieejc-admin-users-table,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table,
html body[data-page="admin-jueces"] table.jueces-users-table{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  table-layout:fixed !important;
  box-sizing:border-box !important;
}
html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions-cell,
html body[data-page="admin-jueces"] table.jueces-users-table th:last-child,
html body[data-page="admin-procesal"] table.sieejc-admin-users-table td:last-child,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:last-child,
html body[data-page="usuarios"] table.sieejc-admin-users-table td:last-child,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:last-child{
  text-align:center !important;
  vertical-align:middle !important;
}
html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions-cell{
  display:table-cell !important;
  width:var(--sieejc-admin-user-actions-width) !important;
  min-width:var(--sieejc-admin-user-actions-width) !important;
  max-width:var(--sieejc-admin-user-actions-width) !important;
  padding-left:12px !important;
  padding-right:12px !important;
}
html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions.sieejc-admin-user-actions{
  display:table-cell !important;
}
html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions-cell > .jueces-actions.sieejc-admin-user-actions,
html body[data-page="admin-procesal"] table.sieejc-admin-users-table td:last-child > .proc-actions.sieejc-admin-user-actions,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:last-child > .med-actions.sieejc-admin-user-actions,
html body[data-page="usuarios"] table.sieejc-admin-users-table td:last-child > .juridico-user-actions.sieejc-admin-user-actions,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:last-child > .admin-user-actions{
  width:100% !important;
  max-width:var(--sieejc-admin-user-actions-width) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:var(--sieejc-admin-user-action-gap) !important;
  align-items:center !important;
  justify-items:stretch !important;
  box-sizing:border-box !important;
}
html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions-cell > .jueces-actions.sieejc-admin-user-actions > :is(.sieejc-action-toggle,.toggle,[data-judge-active]),
html body[data-page="admin-procesal"] table.sieejc-admin-users-table td:last-child > .proc-actions.sieejc-admin-user-actions > :is(.sieejc-action-toggle,.toggle,.wide),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:last-child > .med-actions.sieejc-admin-user-actions > :is(.sieejc-action-toggle,.toggle),
html body[data-page="usuarios"] table.sieejc-admin-users-table td:last-child > .juridico-user-actions.sieejc-admin-user-actions > :is(.sieejc-action-toggle,.toggle),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:last-child > .admin-user-actions > :is(.sieejc-action-toggle,.toggle){
  grid-column:1 / -1 !important;
}
@media(max-width:1180px){
  :root{
    --sieejc-admin-users-panel-width-v117:calc(100vw - 40px);
    --sieejc-admin-users-narrow-panel-v117:calc(100vw - 40px);
  }
  html body[data-page="admin-procesal"] #page-wrapper > #main.container,
  html body[data-page="admin-medicos"] #page-wrapper > #main.container,
  html body[data-page="admin-jueces"] #page-wrapper > #main.container,
  html body[data-page="usuarios"] #page-wrapper > #main.container,
  html body[data-page="admin-recepcionistas"] #page-wrapper > #main.container{
    padding-left:16px !important;
    padding-right:16px !important;
    overflow-x:hidden !important;
  }
}

/* ============================================================
   SIEEJC v0.6.118 · Contenedores administrativos de ancho real
   - Aumenta el contenedor de tablas de usuarios para resoluciones amplias.
   - Evita recortes laterales provocados por min-width/colgroup y overflow heredados.
   - Mantiene scroll horizontal interno solo cuando la pantalla ya no alcanza.
   ============================================================ */
:root{
  --sieejc-admin-users-panel-width-v118:min(calc(100vw - 32px),1720px);
  --sieejc-admin-users-narrow-panel-v118:min(calc(100vw - 96px),1160px);
  --sieejc-admin-user-actions-width-v118:216px;
  --sieejc-admin-user-action-height-v118:34px;
  --sieejc-admin-user-action-gap-v118:8px;
}

html body[data-page="admin-procesal"] #page-wrapper,
html body[data-page="admin-medicos"] #page-wrapper,
html body[data-page="admin-jueces"] #page-wrapper,
html body[data-page="usuarios"] #page-wrapper,
html body[data-page="admin-recepcionistas"] #page-wrapper{
  overflow-x:hidden !important;
}

html body[data-page="admin-procesal"] #page-wrapper > #main.container,
html body[data-page="admin-medicos"] #page-wrapper > #main.container,
html body[data-page="admin-jueces"] #page-wrapper > #main.container,
html body[data-page="usuarios"] #page-wrapper > #main.container,
html body[data-page="admin-recepcionistas"] #page-wrapper > #main.container{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:16px !important;
  padding-right:16px !important;
  box-sizing:border-box !important;
  overflow-x:visible !important;
  align-items:center !important;
}

/* Los paneles de filtros/configuración permanecen legibles; solo la tabla de usuarios crece. */
html body[data-page="admin-procesal"] #main.container > .box:not(.sieejc-admin-users-panel):not(:has(.sieejc-admin-users-table)),
html body[data-page="admin-medicos"] #main.container > .box:not(.sieejc-admin-users-panel):not(:has(.sieejc-admin-users-table)),
html body[data-page="admin-jueces"] #main.container > .jueces-panel:not(.jueces-admin-users-panel),
html body[data-page="usuarios"] #main.container > .juridico-panel:not(.sieejc-admin-users-panel),
html body[data-page="admin-recepcionistas"] #main.container > .box:not(.sieejc-admin-users-panel):not(:has(.sieejc-admin-users-table)){
  width:var(--sieejc-admin-users-narrow-panel-v118) !important;
  max-width:var(--sieejc-admin-users-narrow-panel-v118) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
}

html body[data-page="admin-procesal"] .sieejc-admin-users-panel,
html body[data-page="admin-medicos"] .sieejc-admin-users-panel,
html body[data-page="usuarios"] .sieejc-admin-users-panel,
html body[data-page="admin-recepcionistas"] .sieejc-admin-users-panel,
html body[data-page="admin-jueces"] .jueces-admin-users-panel{
  width:var(--sieejc-admin-users-panel-width-v118) !important;
  max-width:var(--sieejc-admin-users-panel-width-v118) !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
  overflow:visible !important;
  transform:none !important;
}

html body[data-page="admin-procesal"] .sieejc-admin-users-panel .table-wrapper,
html body[data-page="admin-medicos"] .sieejc-admin-users-panel .table-wrapper,
html body[data-page="usuarios"] .sieejc-admin-users-panel .juridico-table-wrap,
html body[data-page="admin-recepcionistas"] .sieejc-admin-users-panel :is(.table-wrapper,.visitas-users-table-wrap),
html body[data-page="admin-jueces"] .jueces-admin-users-panel .jueces-table-wrap{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  padding:0 !important;
}

html body[data-page="admin-procesal"] table.sieejc-admin-users-table,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table,
html body[data-page="usuarios"] table.sieejc-admin-users-table,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table,
html body[data-page="admin-jueces"] table.jueces-users-table{
  width:100% !important;
  min-width:1180px !important;
  max-width:none !important;
  table-layout:fixed !important;
  margin:0 auto !important;
  box-sizing:border-box !important;
}

/* Procesal trae colgroup propio; si no se ajusta el <col>, la columna Acciones queda estrecha y corta botones. */
html body[data-page="admin-procesal"] table.sieejc-admin-users-table col.col-nombre{width:20% !important;}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table col.col-correo{width:22% !important;}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table col.col-turno{width:9% !important;}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table col.col-usuario{width:9% !important;}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table col.col-acceso{width:9% !important;}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table col.col-login{width:13% !important;}
html body[data-page="admin-procesal"] table.sieejc-admin-users-table col.col-acciones{width:var(--sieejc-admin-user-actions-width-v118) !important;}

html body[data-page="admin-procesal"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="usuarios"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-jueces"] table.jueces-users-table :is(th:last-child,td:last-child){
  width:var(--sieejc-admin-user-actions-width-v118) !important;
  min-width:var(--sieejc-admin-user-actions-width-v118) !important;
  max-width:var(--sieejc-admin-user-actions-width-v118) !important;
  text-align:center !important;
  padding-left:12px !important;
  padding-right:12px !important;
  overflow:visible !important;
}

html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(1),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(1){width:24% !important;}
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(2),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(2){width:24% !important;}
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(3),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(3){width:12% !important;text-align:center !important;}
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(4),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(4){width:10% !important;text-align:center !important;}
html body[data-page="admin-jueces"] table.jueces-users-table th:nth-child(5),
html body[data-page="admin-jueces"] table.jueces-users-table td:nth-child(5){width:14% !important;text-align:center !important;}

html body[data-page="admin-medicos"] table.sieejc-admin-users-table th:nth-child(1),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:nth-child(1){width:19% !important;}
html body[data-page="admin-medicos"] table.sieejc-admin-users-table th:nth-child(2),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:nth-child(2){width:20% !important;}
html body[data-page="admin-medicos"] table.sieejc-admin-users-table th:nth-child(3),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:nth-child(3){width:10% !important;}
html body[data-page="admin-medicos"] table.sieejc-admin-users-table th:nth-child(4),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:nth-child(4){width:10% !important;}
html body[data-page="admin-medicos"] table.sieejc-admin-users-table th:nth-child(5),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:nth-child(5){width:8% !important;text-align:center !important;}
html body[data-page="admin-medicos"] table.sieejc-admin-users-table th:nth-child(6),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:nth-child(6){width:15% !important;text-align:center !important;}

html body[data-page="usuarios"] table.sieejc-admin-users-table th:nth-child(1),
html body[data-page="usuarios"] table.sieejc-admin-users-table td:nth-child(1),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table th:nth-child(1),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:nth-child(1){width:25% !important;}
html body[data-page="usuarios"] table.sieejc-admin-users-table th:nth-child(2),
html body[data-page="usuarios"] table.sieejc-admin-users-table td:nth-child(2),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table th:nth-child(2),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:nth-child(2){width:25% !important;}
html body[data-page="usuarios"] table.sieejc-admin-users-table th:nth-child(3),
html body[data-page="usuarios"] table.sieejc-admin-users-table td:nth-child(3),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table th:nth-child(3),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:nth-child(3){width:14% !important;text-align:center !important;}
html body[data-page="usuarios"] table.sieejc-admin-users-table th:nth-child(4),
html body[data-page="usuarios"] table.sieejc-admin-users-table td:nth-child(4),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table th:nth-child(4),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:nth-child(4){width:10% !important;text-align:center !important;}
html body[data-page="usuarios"] table.sieejc-admin-users-table th:nth-child(5),
html body[data-page="usuarios"] table.sieejc-admin-users-table td:nth-child(5),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table th:nth-child(5),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:nth-child(5){width:14% !important;text-align:center !important;}

html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions-cell{
  display:table-cell !important;
  width:var(--sieejc-admin-user-actions-width-v118) !important;
  min-width:var(--sieejc-admin-user-actions-width-v118) !important;
  max-width:var(--sieejc-admin-user-actions-width-v118) !important;
  overflow:visible !important;
}

html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions-cell > .jueces-actions.sieejc-admin-user-actions,
html body[data-page="admin-procesal"] table.sieejc-admin-users-table td:last-child > .proc-actions.sieejc-admin-user-actions,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:last-child > .med-actions.sieejc-admin-user-actions,
html body[data-page="usuarios"] table.sieejc-admin-users-table td:last-child > .juridico-user-actions.sieejc-admin-user-actions,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:last-child > .admin-user-actions{
  width:100% !important;
  max-width:var(--sieejc-admin-user-actions-width-v118) !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:var(--sieejc-admin-user-action-gap-v118) !important;
  align-items:center !important;
  justify-items:stretch !important;
  box-sizing:border-box !important;
}

html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions-cell > .jueces-actions.sieejc-admin-user-actions :is(a.button.small,button.button.small,.button.small),
html body[data-page="admin-procesal"] table.sieejc-admin-users-table td:last-child > .proc-actions.sieejc-admin-user-actions :is(a.button.small,button.button.small,.button.small),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:last-child > .med-actions.sieejc-admin-user-actions :is(a.button.small,button.button.small,.button.small),
html body[data-page="usuarios"] table.sieejc-admin-users-table td:last-child > .juridico-user-actions.sieejc-admin-user-actions :is(a.button.small,button.button.small,.button.small),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:last-child > .admin-user-actions :is(a.button.small,button.button.small,.button.small){
  height:var(--sieejc-admin-user-action-height-v118) !important;
  min-height:var(--sieejc-admin-user-action-height-v118) !important;
  max-height:var(--sieejc-admin-user-action-height-v118) !important;
  padding:0 9px !important;
  margin:0 !important;
  border-radius:8px !important;
  font-size:11.2px !important;
  font-weight:900 !important;
  line-height:1 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  box-sizing:border-box !important;
}

html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions-cell > .jueces-actions.sieejc-admin-user-actions > :is(.sieejc-action-toggle,.toggle,[data-judge-active]),
html body[data-page="admin-procesal"] table.sieejc-admin-users-table td:last-child > .proc-actions.sieejc-admin-user-actions > :is(.sieejc-action-toggle,.toggle,.wide),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table td:last-child > .med-actions.sieejc-admin-user-actions > :is(.sieejc-action-toggle,.toggle),
html body[data-page="usuarios"] table.sieejc-admin-users-table td:last-child > .juridico-user-actions.sieejc-admin-user-actions > :is(.sieejc-action-toggle,.toggle),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table td:last-child > .admin-user-actions > :is(.sieejc-action-toggle,.toggle){
  grid-column:1 / -1 !important;
}

@media(max-width:1280px){
  :root{
    --sieejc-admin-users-panel-width-v118:calc(100vw - 24px);
    --sieejc-admin-users-narrow-panel-v118:calc(100vw - 56px);
    --sieejc-admin-user-actions-width-v118:208px;
  }
  html body[data-page="admin-procesal"] #page-wrapper > #main.container,
  html body[data-page="admin-medicos"] #page-wrapper > #main.container,
  html body[data-page="admin-jueces"] #page-wrapper > #main.container,
  html body[data-page="usuarios"] #page-wrapper > #main.container,
  html body[data-page="admin-recepcionistas"] #page-wrapper > #main.container{
    padding-left:12px !important;
    padding-right:12px !important;
  }
  html body[data-page="admin-procesal"] table.sieejc-admin-users-table,
  html body[data-page="admin-medicos"] table.sieejc-admin-users-table,
  html body[data-page="usuarios"] table.sieejc-admin-users-table,
  html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table,
  html body[data-page="admin-jueces"] table.jueces-users-table{
    min-width:1180px !important;
  }
}

/* ============================================================
   SIEEJC v0.6.119 · Centrado real de paneles administrativos amplios
   - El problema de v0.6.118 era que el panel de usuarios crecía dentro de
     un shell/contenedor padre con ancho máximo heredado; al ser más ancho
     que su padre quedaba alineado al inicio del padre y se veía corrido.
   - Se libera el shell principal de páginas admin y se centra cada panel
     contra el viewport útil, no contra un contenedor estrecho heredado.
   - Mantiene tablas con scroll interno solo si la resolución ya no alcanza.
   ============================================================ */
:root{
  --sieejc-admin-users-panel-width-v119:min(calc(100vw - 96px),1360px);
  --sieejc-admin-users-narrow-panel-v119:min(calc(100vw - 112px),1120px);
  --sieejc-admin-users-home-panel-v119:min(calc(100vw - 112px),960px);
  --sieejc-admin-users-tabs-width-v119:min(calc(100vw - 112px),1120px);
  --sieejc-admin-user-actions-width-v119:216px;
}

html body[data-page="admin-procesal"],
html body[data-page="admin-medicos"],
html body[data-page="admin-jueces"],
html body[data-page="usuarios"],
html body[data-page="admin-recepcionistas"]{
  overflow-x:hidden !important;
}

html body[data-page="admin-procesal"] #page-wrapper > #main.container,
html body[data-page="admin-medicos"] #page-wrapper > #main.container,
html body[data-page="admin-jueces"] #page-wrapper > #main.container,
html body[data-page="usuarios"] #page-wrapper > #main.container,
html body[data-page="admin-recepcionistas"] #page-wrapper > #main.container{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  box-sizing:border-box !important;
  overflow-x:visible !important;
}

/* Jueces trae .sieejc-jueces-shell con max-width heredado; si no se libera,
   los paneles grandes quedan centrados contra ese shell estrecho. */
html body[data-page="admin-jueces"] #main.container > .sieejc-jueces-shell{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

/* Paneles superiores: se mantienen compactos y centrados. */
html body[data-page="admin-procesal"] #main.container > .box:not(.sieejc-admin-users-panel):not(:has(.sieejc-admin-users-table)),
html body[data-page="admin-medicos"] #main.container > .box:not(.sieejc-admin-users-panel):not(:has(.sieejc-admin-users-table)),
html body[data-page="usuarios"] #main.container > .juridico-panel:not(.sieejc-admin-users-panel),
html body[data-page="admin-recepcionistas"] #main.container > .box:not(.sieejc-admin-users-panel):not(:has(.sieejc-admin-users-table)){
  width:var(--sieejc-admin-users-narrow-panel-v119) !important;
  max-width:var(--sieejc-admin-users-narrow-panel-v119) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
}

html body[data-page="admin-jueces"] .jueces-home-panel,
html body[data-page="admin-jueces"] .jueces-admin-home-panel{
  width:var(--sieejc-admin-users-home-panel-v119) !important;
  max-width:var(--sieejc-admin-users-home-panel-v119) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
}

html body[data-page="admin-jueces"] .jueces-admin-tabs{
  width:var(--sieejc-admin-users-tabs-width-v119) !important;
  max-width:var(--sieejc-admin-users-tabs-width-v119) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
}

/* Panel principal de usuarios: centrado contra el viewport útil. */
html body[data-page="admin-procesal"] .sieejc-admin-users-panel,
html body[data-page="admin-medicos"] .sieejc-admin-users-panel,
html body[data-page="usuarios"] .sieejc-admin-users-panel,
html body[data-page="admin-recepcionistas"] .sieejc-admin-users-panel,
html body[data-page="admin-jueces"] .jueces-admin-users-panel{
  width:var(--sieejc-admin-users-panel-width-v119) !important;
  max-width:var(--sieejc-admin-users-panel-width-v119) !important;
  min-width:0 !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
  box-sizing:border-box !important;
  overflow:visible !important;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
}

/* En páginas con shell interno, reforzamos que el centro del panel coincida con el viewport. */
html body[data-page="admin-jueces"] #main.container > .sieejc-jueces-shell > .jueces-admin-users-panel,
html body[data-page="admin-jueces"] #main.container > .sieejc-jueces-shell > .jueces-admin-catalog-panel{
  margin-left:auto !important;
  margin-right:auto !important;
  align-self:center !important;
}

html body[data-page="admin-procesal"] .sieejc-admin-users-panel .table-wrapper,
html body[data-page="admin-medicos"] .sieejc-admin-users-panel .table-wrapper,
html body[data-page="usuarios"] .sieejc-admin-users-panel .juridico-table-wrap,
html body[data-page="admin-recepcionistas"] .sieejc-admin-users-panel :is(.table-wrapper,.visitas-users-table-wrap),
html body[data-page="admin-jueces"] .jueces-admin-users-panel .jueces-table-wrap{
  width:100% !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  padding:0 !important;
}

html body[data-page="admin-procesal"] table.sieejc-admin-users-table,
html body[data-page="admin-medicos"] table.sieejc-admin-users-table,
html body[data-page="usuarios"] table.sieejc-admin-users-table,
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table,
html body[data-page="admin-jueces"] table.jueces-users-table{
  width:100% !important;
  min-width:1120px !important;
  max-width:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
  table-layout:fixed !important;
  box-sizing:border-box !important;
}

html body[data-page="admin-procesal"] table.sieejc-admin-users-table col.col-acciones{width:var(--sieejc-admin-user-actions-width-v119) !important;}

html body[data-page="admin-procesal"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-medicos"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="usuarios"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-jueces"] table.jueces-users-table :is(th:last-child,td:last-child),
html body[data-page="admin-jueces"] table.jueces-users-table td.jueces-actions-cell{
  width:var(--sieejc-admin-user-actions-width-v119) !important;
  min-width:var(--sieejc-admin-user-actions-width-v119) !important;
  max-width:var(--sieejc-admin-user-actions-width-v119) !important;
  text-align:center !important;
  overflow:visible !important;
}

@media(max-width:1280px){
  :root{
    --sieejc-admin-users-panel-width-v119:calc(100vw - 32px);
    --sieejc-admin-users-narrow-panel-v119:calc(100vw - 56px);
    --sieejc-admin-users-home-panel-v119:calc(100vw - 56px);
    --sieejc-admin-users-tabs-width-v119:calc(100vw - 56px);
    --sieejc-admin-user-actions-width-v119:208px;
  }
  html body[data-page="admin-procesal"] #page-wrapper > #main.container,
  html body[data-page="admin-medicos"] #page-wrapper > #main.container,
  html body[data-page="admin-jueces"] #page-wrapper > #main.container,
  html body[data-page="usuarios"] #page-wrapper > #main.container,
  html body[data-page="admin-recepcionistas"] #page-wrapper > #main.container{
    padding-left:0 !important;
    padding-right:0 !important;
  }
}

@media(max-width:760px){
  :root{
    --sieejc-admin-users-panel-width-v119:calc(100vw - 20px);
    --sieejc-admin-users-narrow-panel-v119:calc(100vw - 24px);
    --sieejc-admin-users-home-panel-v119:calc(100vw - 24px);
    --sieejc-admin-users-tabs-width-v119:calc(100vw - 24px);
  }
  html body[data-page="admin-procesal"] table.sieejc-admin-users-table,
  html body[data-page="admin-medicos"] table.sieejc-admin-users-table,
  html body[data-page="usuarios"] table.sieejc-admin-users-table,
  html body[data-page="admin-recepcionistas"] table.sieejc-admin-users-table,
  html body[data-page="admin-jueces"] table.jueces-users-table{
    min-width:1080px !important;
  }
}

/* v0.6.147 - Procesal Historial: acciones legibles y búsqueda por nombres completos.
   Evita texto cortado en botones largos dentro del historial y de sus modales. */
html body[data-page="historial"]{
  --sieejc-table-action-width:150px;
}
html body[data-page="historial"] table.historial-wide-table-main{
  min-width:1240px !important;
}
html body[data-page="historial"] table.historial-wide-table-main th:nth-child(7),
html body[data-page="historial"] table.historial-wide-table-main td:nth-child(7){
  width:150px !important;
  min-width:150px !important;
  max-width:150px !important;
}
html body[data-page="historial"] .historial-action-btn,
html body[data-page="historial"] table.historial-wide-table-main td:nth-child(7) .historial-action-btn,
html body[data-page="historial"] .historial-wide-table table td:last-child .historial-action-btn{
  width:auto !important;
  min-width:132px !important;
  max-width:none !important;
  padding:0 15px !important;
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
}
html body[data-page="historial"] .historial-wide-table table{
  min-width:1120px !important;
  table-layout:auto !important;
}
html body[data-page="historial"] .historial-wide-table table th:last-child,
html body[data-page="historial"] .historial-wide-table table td:last-child{
  width:178px !important;
  min-width:178px !important;
  max-width:none !important;
  text-align:center !important;
}
html body[data-page="historial"] .historial-wide-table .historial-iph-action{
  min-width:160px !important;
}
html body[data-page="historial"] .historial-wide-table .historial-operativo-action,
html body[data-page="historial"] .exp-full-card-head .historial-operativo-action{
  min-width:145px !important;
}
@media(max-width:980px){
  html body[data-page="historial"] table.historial-wide-table-main{
    min-width:1120px !important;
  }
  html body[data-page="historial"] .historial-wide-table table{
    min-width:980px !important;
  }
}


/* v0.6.148 - Procesal historial: hotfix anti-recorte acciones. */
html body[data-page="historial"] .historial-action-btn,
html body .historial-wide .historial-action-btn,
html body #modalExpediente .historial-action-btn,
html body #modalExpediente .historial-iph-action,
html body #modalExpediente .historial-operativo-action,
html body .exp-full-card-head .historial-operativo-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  min-width:168px!important;
  max-width:none!important;
  min-height:38px!important;
  padding:0 16px!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
html body[data-page="historial"] .historial-action-btn :where(.sieejc-btn-text,span,.sieejc-btn-icon,svg,i),
html body .historial-wide .historial-action-btn :where(.sieejc-btn-text,span,.sieejc-btn-icon,svg,i),
html body #modalExpediente .historial-action-btn :where(.sieejc-btn-text,span,.sieejc-btn-icon,svg,i){
  flex:0 0 auto!important;
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
html body[data-page="historial"] table.historial-wide-table-main th:last-child,
html body[data-page="historial"] table.historial-wide-table-main td:last-child,
html body .historial-wide table.historial-wide-table-main th:last-child,
html body .historial-wide table.historial-wide-table-main td:last-child{
  width:190px!important;
  min-width:190px!important;
  max-width:190px!important;
  overflow:visible!important;
  padding-left:14px!important;
  padding-right:14px!important;
}
html body[data-page="historial"] table.historial-wide-table-main,
html body .historial-wide table.historial-wide-table-main{
  min-width:1320px!important;
}
html body[data-page="historial"] #modalExpediente table.iph-related-table th:last-child,
html body[data-page="historial"] #modalExpediente table.iph-related-table td:last-child,
html body #modalExpediente table.iph-related-table th:last-child,
html body #modalExpediente table.iph-related-table td:last-child{
  width:210px!important;
  min-width:210px!important;
  max-width:210px!important;
}
html body #modalExpediente .historial-iph-action{min-width:190px!important;}
html body #modalExpediente .historial-operativo-action,
html body .exp-full-card-head .historial-operativo-action{min-width:170px!important;}
