/* Estilos de /admin.html (antes <style> inline; archivo propio para la CSP de estilos). */

/* ===== Barra superior: marca + menú en pastillas + usuario ===== */
.navbar { flex-wrap: wrap; gap: 10px 16px; }
.navbar-title small { opacity: .7; font-weight: 400; }
.navbar-menu { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.nav-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.nav-pill:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.nav-pill svg, .nav-salir svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.navbar a.nav-active { background: #fff !important; border-color: #fff !important; color: #0D47A1 !important; }
.navbar-user { margin-left: auto; gap: 8px; }
.nav-salir { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; font: 600 13px/1 inherit; font-family: inherit; cursor: pointer; }
.nav-salir:hover { background: rgba(220,38,38,.35); border-color: rgba(255,255,255,.5); }
/* Logo de Systemas IT en la barra (en vez del nombre tipeado): pastilla blanca para que se vean sus colores. */
/* Pie: logo de Systemas IT sobre «Desarrollado por…» (el texto sigue tenue; el logo a color). */
.footer-adm { padding: 14px 16px 12px; }
.footer-logo { display: block; height: 40px; width: auto; margin: 0 auto 6px; }
.footer-txt { font-size: 10px; opacity: .6; line-height: 1.6; }
.nav-pill:focus-visible, .nav-salir:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Celular y tablet: marca y usuario arriba; el menú en una sola fila que se desliza (sin envolver en 3 renglones). */
@media (max-width: 1180px) {
  .navbar { padding: 10px 0 0; gap: 0; position: sticky; top: 0; z-index: 30; }
  .navbar-brand { order: 1; padding: 0 0 0 16px; gap: 9px; min-width: 0; }
  .navbar-brand img { height: 30px; }
  .navbar-title { font-size: 15px; white-space: nowrap; }
  .navbar-user { order: 2; padding-right: 16px; gap: 6px; }
  .nav-salir { width: 38px; padding: 0; justify-content: center; }
  .nav-salir span { display: none; }
  .navbar-menu { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 10px 16px 12px; gap: 6px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .navbar-menu::-webkit-scrollbar { display: none; }
  .nav-pill { scroll-snap-align: start; min-height: 36px; padding: 0 12px; font-size: 13px; }
}

/* ===== Acciones de cada empresa: íconos de línea ===== */
.ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico span { display: none; }
.ico.danger { color: var(--color-danger); }

/* Celular y tablet: tarjeta de empresa más compacta, acciones con ícono + rótulo. */
@media (max-width: 900px) {
  .tabla-cards tr { padding: 14px 14px 10px; border-radius: 16px; }
  .tabla-cards td { padding: 3px 0; font-size: 13.5px; min-width: 0; }
  .tabla-cards td::before { font-size: 10.5px; }
  .tabla-cards td.nom { font-size: 17px; padding-bottom: 6px; }
  .tabla-cards td.muted-cell { text-align: right; overflow-wrap: anywhere; }
  .tabla-cards td.acc-td { margin-top: 10px; padding-top: 10px; }
  .tabla-cards .acc-cell { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
  .tabla-cards .ico { width: auto; height: auto; min-height: 50px; flex-direction: column; gap: 3px; border-radius: 12px; border-color: #e4e9f2; background: #f7f9fc; font-size: 11px; font-weight: 600; }
  .tabla-cards .ico span { display: block; line-height: 1; }
  .tabla-cards .ico svg { width: 19px; height: 19px; }
  .tabla-cards .ico.danger { background: #fff6f6; border-color: #f6dada; }
}

/* Vigencia de la suscripción en la lista de empresas */
.vig { font-size: 12px; font-weight: 600; color: var(--color-text-muted); white-space: nowrap; }
.vig.pronto { color: #9a5b00; background: #FFF4E0; padding: 2px 8px; border-radius: 8px; }
.vig.pausada { color: #B3261E; background: #FDECEA; padding: 2px 8px; border-radius: 8px; }

/* Tabla de empresas en monitores: entra sin scroll lateral. Contacto parte la línea; en pantallas medianas
   se ocultan Rubro y luego Dirección (siguen en Editar; en celular/tablet la tarjeta muestra todo). */
@media (min-width: 901px) {
  .tabla-empresas .col-contacto { max-width: 220px; overflow-wrap: anywhere; }
  .tabla-empresas td, .tabla-empresas th { padding-left: 10px; padding-right: 10px; }
  .tabla-empresas .acc-cell { flex-wrap: nowrap; }
}
@media (min-width: 901px) and (max-width: 1700px) { .tabla-empresas .col-rubro { display: none; } }
@media (min-width: 901px) and (max-width: 1400px) { .tabla-empresas .col-dir { display: none; } }
@media (min-width: 901px) and (max-width: 1150px) { .tabla-empresas .col-contacto { display: none; } }

/* Casillas de botones de la landing */
.lbl-blk { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--color-dark); }
.chk-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.chk-botones label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; font-size: 14px; cursor: pointer; }
.chk-botones input { width: 18px; height: 18px; }

/* ===== Colores del logo corporativo de Systemas IT (original «SYSTEMAS it C.A») =====
   Azul del «it» como principal, naranja del punto como acento y verde lima como detalle. */
:root {
  --color-primary: #2B2FB0;
  --color-primary-light: #3A3EC6;
  --color-accent: #F26522;
  --color-accent-hover: #D9541A;
  --sit-lima: #C2E205;
  --shadow-md: 0 4px 12px rgba(43, 47, 176, 0.08);
}
.navbar { box-shadow: inset 0 -4px 0 var(--sit-lima), var(--shadow-sm); }
.navbar a.nav-active { color: #2B2FB0 !important; }
.btn-accent, #btn-nueva-empresa { background-color: #F26522; background-image: linear-gradient(160deg, #F8874F 0%, #F26522 55%, #D9541A 100%); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -10px rgba(242,101,34,.7); }
.btn-accent:hover, #btn-nueva-empresa:hover { background-color: #D9541A; background-image: linear-gradient(160deg, #F47A3E 0%, #E25A1C 55%, #C64A14 100%); }
.auth-wrapper { background: linear-gradient(135deg, #2B2FB0 0%, #14166B 100%); }
.auth-wrapper::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 6px; background: var(--sit-lima); pointer-events: none; }
.chip-rol.super, .badge-plan.starter { background: #ECEDFB; color: #2B2FB0; }
.plan-btn.on { border-color: #2B2FB0; box-shadow: 0 0 0 3px rgba(43,47,176,.14); background: #F6F6FE; }
.plan-btn:focus-visible { outline-color: #2B2FB0; }
.inicio-card .ic-top svg { stroke: #2B2FB0; }
h2 .section-ico, .section-header h2 svg { color: #2B2FB0; }
