/* ============================================================
   PANEL ADMINISTRADOR — Drogueria General Paz
   Paleta institucional, estilo moderno y limpio.
   #004398 azul ppal · #002d6b azul oscuro · #4e7db1 azul claro
   #E4E9F5 fondo · #EEF3FA ultraclaro · #1B5E20 verde (activo)
   ============================================================ */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* El atributo [hidden] debe ganarle a cualquier display explicito de abajo
   (img{display:block}, .off-pfechas{display:inline-block}, etc.). */
[hidden] { display: none !important; }

body {
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  background: #E4E9F5;
  color: #002d6b;
  font-size: 15px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== Top bar ===== */
.adm-top {
  background: #fff;
  border-bottom: 1px solid #dce8f5;
  box-shadow: 0 1px 0 rgba(0,67,152,.06);
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.adm-brand { display: flex; align-items: center; gap: 12px; }
.adm-brand-logo { width: 38px; height: 38px; border-radius: 9px; }
.adm-brand span {
  font-size: 15px; font-weight: 800; color: #004398; line-height: 1.1; letter-spacing: -.3px;
}
.adm-brand small { display: block; font-size: 10px; font-weight: 400; color: #4e7db1; }

.adm-nav { display: flex; align-items: center; gap: 6px; }
.adm-nav a {
  font-size: 13px; font-weight: 600; color: #4e7db1;
  padding: 8px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.adm-nav a:hover { background: #EEF3FA; color: #004398; }
.adm-nav a.adm-logout {
  background: #c0392b; color: #fff; font-weight: 700;
}
.adm-nav a.adm-logout:hover { background: #a93226; }

/* ===== Main ===== */
.adm-main { max-width: 1080px; margin: 0 auto; padding: 32px 28px; }

.adm-page-title {
  font-size: 24px; font-weight: 800; color: #002d6b; letter-spacing: -.5px; margin-bottom: 4px;
}
.adm-page-sub { font-size: 14px; color: #4e7db1; margin-bottom: 28px; }

/* ===== Dashboard cards ===== */
.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.adm-card {
  position: relative;
  background: #fff; border: 1px solid #dce8f5; border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
/* Boton de ayuda (?) en cada tarjeta */
.adm-help-btn {
  position: absolute; top: 14px; right: 14px; width: 26px; height: 26px;
  border-radius: 50%; border: 1px solid #dce8f5; background: #fff; color: #4e7db1;
  font-weight: 800; font-size: 14px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.adm-help-btn:hover { background: #004398; color: #fff; border-color: #004398; }
/* Contenido del modal de ayuda */
#help-body { font-size: 14px; color: #002d6b; line-height: 1.6; }
#help-body p { margin-bottom: 10px; }
#help-body ul { margin: 0 0 10px 18px; }
#help-body li { margin-bottom: 5px; color: #4e7db1; }
#help-body strong { color: #002d6b; }
.adm-card:hover { border-color: #4e7db1; box-shadow: 0 8px 22px rgba(0,67,152,.1); transform: translateY(-3px); }
.adm-card-ic {
  width: 48px; height: 48px; border-radius: 13px; background: #EEF3FA; color: #004398;
  display: flex; align-items: center; justify-content: center;
}
.adm-card h3 { font-size: 16px; font-weight: 800; color: #002d6b; letter-spacing: -.3px; }
.adm-card p { font-size: 13px; color: #4e7db1; line-height: 1.55; flex: 1; }
.adm-card-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: #004398; color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 9px; transition: background .15s;
}
.adm-card-link:hover { background: #003070; }
.adm-card-soon {
  align-self: flex-start; font-size: 11px; font-weight: 700; color: #4e7db1;
  background: #EEF3FA; padding: 6px 12px; border-radius: 20px;
}

/* ===== Login ===== */
.adm-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(160deg, #004398 0%, #002d6b 100%);
}
.adm-login-card {
  background: #fff; border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,31,77,.35);
}
.adm-login-logo {
  width: 54px; height: 54px; border-radius: 13px; margin: 0 auto 16px;
}
.adm-login-card h1 { font-size: 20px; font-weight: 800; color: #002d6b; text-align: center; letter-spacing: -.4px; }
.adm-login-card .adm-login-sub { font-size: 13px; color: #4e7db1; text-align: center; margin: 6px 0 24px; }

.adm-field { margin-bottom: 16px; }
.adm-field label { display: block; font-size: 13px; font-weight: 600; color: #002d6b; margin-bottom: 6px; }
.adm-field input {
  width: 100%; padding: 11px 14px; border: 1.5px solid #b6c6d3; border-radius: 9px;
  font-family: inherit; font-size: 14px; color: #002d6b; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.adm-field input:focus { outline: none; border-color: #004398; box-shadow: 0 0 0 3px rgba(0,67,152,.1); }

.adm-btn {
  width: 100%; background: #004398; color: #fff; border: none; border-radius: 10px;
  padding: 13px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s;
}
.adm-btn:hover { background: #003070; }

.adm-error {
  background: #FFF1F2; color: #991B1B; border: 1px solid #fca5a5;
  font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 9px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.adm-login-back { display: block; text-align: center; margin-top: 18px; font-size: 12px; color: #4e7db1; }
.adm-login-back:hover { color: #004398; }

/* ===== Mensajes y subida de imagenes ===== */
.adm-ok {
  display: flex; align-items: center; gap: 8px;
  background: #F0FDF4; color: #166534; border: 1px solid #86efac;
  font-size: 13px; font-weight: 600; padding: 12px 16px; border-radius: 10px; margin-bottom: 22px;
}
.adm-field input[type="file"] {
  width: 100%; padding: 10px 12px; border: 1.5px dashed #b6c6d3; border-radius: 9px;
  font-family: inherit; font-size: 13px; color: #4e7db1; background: #F5F8FC; cursor: pointer;
}
.adm-field input[type="file"]:hover { border-color: #4e7db1; }
.adm-preview { margin: 4px 0 18px; min-height: 0; }
.adm-preview-img {
  max-width: 170px; max-height: 170px; border-radius: 11px; border: 1px solid #dce8f5;
  background: #F5F8FC; padding: 6px; display: block;
}
.adm-preview-cap { font-size: 11px; color: #4e7db1; margin-top: 6px; }
.adm-btn { width: auto; padding: 12px 22px; }
.adm-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Selector de producto en el form de subida */
.adm-upsel {
  font-size: 13px; color: #4e7db1; background: #EEF3FA; border: 1px solid #dce8f5;
  padding: 10px 14px; border-radius: 9px; margin-bottom: 16px;
}
.adm-upsel strong { color: #004398; }

/* Buscador de la lista */
.adm-imgsearch {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid #dce8f5; border-radius: 9px;
  padding: 0 14px; height: 44px; margin-bottom: 14px; color: #4e7db1;
}
.adm-imgsearch:focus-within { border-color: #004398; box-shadow: 0 0 0 3px rgba(0,67,152,.1); }
.adm-imgsearch input { flex: 1; border: none; outline: none; font: inherit; font-size: 14px; color: #002d6b; background: transparent; }
.adm-imgcount { font-size: 12px; font-weight: 600; color: #4e7db1; white-space: nowrap; }

/* Lista de productos */
.adm-prodlist { display: flex; flex-direction: column; gap: 8px; }
.adm-proditem {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #dce8f5; border-radius: 11px; padding: 10px 14px;
  transition: border-color .15s, background .15s;
}
.adm-proditem:hover { border-color: #4e7db1; }
.adm-proditem.sel { border-color: #004398; background: #EEF3FA; }
.adm-prodthumb {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 9px; background: #F0F4F9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.adm-prodthumb img { width: 46px !important; height: 46px !important; object-fit: contain; border-radius: 9px; display: block; }
.adm-prodinfo { flex: 1; min-width: 0; }
.adm-prodcod { font-size: 10px; color: #4e7db1; font-weight: 700; font-family: 'Courier New', monospace; }
.adm-proddesc { font-size: 13px; font-weight: 600; color: #002d6b; line-height: 1.3; }
.adm-prodsel {
  flex-shrink: 0; background: #004398; color: #fff; border: none; border-radius: 8px;
  padding: 8px 16px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.adm-prodsel:hover { background: #003070; }

/* Estado y acciones de alta/baja de productos */
.adm-estado {
  flex-shrink: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 20px;
}
.adm-estado.on  { background: #F0FDF4; color: #166534; }
.adm-estado.off { background: #FFF1F2; color: #991B1B; }
.adm-prodsel.baja {
  display: inline-flex; align-items: center; gap: 6px; background: #FFF1F2; color: #c0392b; border: 1px solid #fbd5d5;
  text-decoration: none;
}
.adm-prodsel.baja:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.adm-prodsel.reactivar,
.adm-prodsel.mostrar {
  display: inline-flex; align-items: center; gap: 6px; background: #F0FDF4; color: #166534; border: 1px solid #bbf7d0;
  text-decoration: none;
}
.adm-prodsel.reactivar:hover,
.adm-prodsel.mostrar:hover { background: #166534; color: #fff; border-color: #166534; }

/* Fila de producto oculto en el sitio */
.adm-proditem.es-oculto { background: #fbfbfd; border-style: dashed; }
.adm-proditem.es-oculto .adm-proddesc { color: #6b7d92; }

/* Barra de herramientas (ver solo ocultos) */
.adm-prodtools { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.adm-soloocultos { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #4e7db1; cursor: pointer; }
.adm-soloocultos input { width: 15px; height: 15px; accent-color: #004398; }

/* Paginacion */
.adm-pager { display: flex; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; margin-top: 18px; }
.adm-page {
  min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #dce8f5; background: #fff;
  border-radius: 7px; color: #4e7db1; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.adm-page:hover:not(:disabled) { background: #EEF3FA; border-color: #4e7db1; color: #004398; }
.adm-page.active { background: #004398; border-color: #004398; color: #fff; }
.adm-page:disabled { opacity: .4; cursor: default; }

@media (max-width: 600px) {
  .adm-proddesc { font-size: 12px; }
  .adm-prodsel { padding: 8px 12px; }
}

/* ===== Formulario de oferta ===== */
.adm-volver {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #4e7db1;
  margin-bottom: 12px; font-weight: 600; transition: color .15s, gap .15s;
}
.adm-volver:hover { color: #004398; gap: 8px; }
.adm-field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid #b6c6d3; border-radius: 9px;
  font-family: inherit; font-size: 14px; color: #002d6b; background: #fff; resize: vertical;
}
.adm-field textarea:focus { outline: none; border-color: #004398; box-shadow: 0 0 0 3px rgba(0,67,152,.1); }
.adm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-form-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.adm-btn-sec {
  display: inline-flex; align-items: center; background: #EEF3FA; color: #004398; border: 1px solid #dce8f5;
  padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s;
}
.adm-btn-sec:hover { background: #dce8f5; }

/* ---- Layout en dos columnas: formulario + vista previa ---- */
.off-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 24px; align-items: start; }
.off-form { display: flex; flex-direction: column; gap: 16px; }

/* ---- Bloques agrupados ---- */
.off-block {
  background: #fff; border: 1px solid #dce8f5; border-radius: 16px; padding: 22px 22px;
}
.off-block-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.off-block-ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: #EEF3FA; color: #004398;
  display: flex; align-items: center; justify-content: center;
}
.off-block-head h2 { font-size: 15px; font-weight: 800; color: #002d6b; letter-spacing: -.3px; }
.off-block-head p { font-size: 12px; color: #4e7db1; line-height: 1.3; margin-top: 2px; }

/* ---- Input de dinero con prefijo $ ---- */
.off-money { position: relative; display: flex; align-items: center; }
.off-money > span {
  position: absolute; left: 13px; font-size: 14px; font-weight: 700; color: #4e7db1; pointer-events: none;
}
.off-money input { width: 100%; padding-left: 26px !important; }

/* ---- Línea de descuento calculado ---- */
.off-descline {
  display: flex; align-items: center; gap: 7px; margin-top: 14px;
  background: #F0FDF4; color: #166534; border: 1px solid #bbf7d0;
  font-size: 12.5px; font-weight: 600; padding: 9px 13px; border-radius: 9px;
}
.off-descline strong { font-weight: 800; }

/* ---- Switch "activa" ---- */
.off-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-top: 18px; }
.off-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.off-switch-track {
  width: 44px; height: 25px; flex-shrink: 0; border-radius: 20px; background: #cdd9ea;
  position: relative; transition: background .2s;
}
.off-switch-thumb {
  position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,31,77,.3); transition: transform .2s;
}
.off-switch input:checked + .off-switch-track { background: #1B5E20; }
.off-switch input:checked + .off-switch-track .off-switch-thumb { transform: translateX(19px); }
.off-switch input:focus-visible + .off-switch-track { box-shadow: 0 0 0 3px rgba(0,67,152,.18); }
.off-switch-txt strong { display: block; font-size: 14px; font-weight: 700; color: #002d6b; }
.off-switch-txt small { font-size: 12px; color: #4e7db1; }

/* ---- Dropzone de imagen ---- */
.off-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 26px 18px; border: 1.5px dashed #b6c6d3; border-radius: 13px;
  background: #F5F8FC; color: #4e7db1; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.off-drop:hover { border-color: #4e7db1; color: #004398; }
.off-drop.drag { border-color: #004398; background: #EEF3FA; color: #004398; }
.off-drop-t { font-size: 13px; font-weight: 600; color: #002d6b; }
.off-drop-t em { color: #004398; font-style: normal; text-decoration: underline; }
.off-drop-s { font-size: 11.5px; color: #4e7db1; }

/* ---- Columna vista previa (sticky) ---- */
.off-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 10px; }
.off-preview-label {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: #4e7db1;
}
.off-pcard {
  background: #fff; border: 1px solid #dce8f5; border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,67,152,.08);
}
.off-pcard-media {
  position: relative; height: 190px; background: linear-gradient(135deg, #EEF3FA, #dce8f5);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.off-pcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.off-pbadge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: #c0392b; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: -.3px;
  padding: 6px 12px; border-radius: 30px; box-shadow: 0 4px 12px rgba(192,57,43,.4);
}
.off-pcard-body { padding: 18px 18px 20px; }
.off-pestado {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 9px;
}
.off-pestado.on { background: #F0FDF4; color: #166534; }
.off-pestado.off { background: #FFF1F2; color: #991B1B; }
.off-pnombre { font-size: 17px; font-weight: 800; color: #002d6b; letter-spacing: -.4px; line-height: 1.25; }
.off-pdesc { font-size: 13px; color: #4e7db1; line-height: 1.5; margin-top: 6px; }
.off-pprices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.off-ppa { font-size: 14px; color: #b6c6d3; text-decoration: line-through; }
.off-ppact { font-size: 26px; font-weight: 800; color: #004398; letter-spacing: -1px; }
.off-pdesc-tag {
  display: inline-block; margin-top: 14px; background: #FFF1F2; color: #c0392b;
  font-size: 15px; font-weight: 800; letter-spacing: -.3px; padding: 7px 14px; border-radius: 10px;
}
.off-pfechas {
  display: inline-block; font-size: 11.5px; color: #4e7db1; margin-top: 12px;
  background: #EEF3FA; padding: 5px 11px; border-radius: 7px;
}
.off-side-hint { font-size: 11.5px; color: #8aa6c4; line-height: 1.4; text-align: center; }

@media (max-width: 860px) {
  .off-grid { grid-template-columns: 1fr; }
  .off-side { position: static; }
  .off-pcard { max-width: 360px; }
}

/* ===== Listado de ofertas ===== */
.adm-oflist { display: flex; flex-direction: column; gap: 12px; }
.adm-ofvacio { background: #fff; border: 1px dashed #b6c6d3; border-radius: 12px; padding: 28px; text-align: center; color: #4e7db1; font-size: 14px; }
.adm-ofcard {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #dce8f5;
  border-radius: 13px; padding: 14px; transition: border-color .15s;
}
.adm-ofcard:hover { border-color: #4e7db1; }
.adm-ofcard.inactiva { opacity: .62; }
.adm-ofthumb {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 11px; background: #F0F4F9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.adm-ofthumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 11px; display: block; }
.adm-ofbody { flex: 1; min-width: 0; }
.adm-oftop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-ofnombre { font-size: 15px; font-weight: 800; color: #002d6b; letter-spacing: -.2px; }
.adm-ofestado { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 20px; }
.adm-ofestado.on { background: #F0FDF4; color: #166534; }
.adm-ofestado.off { background: #FFF1F2; color: #991B1B; }
.adm-ofdesc { font-size: 12px; color: #4e7db1; line-height: 1.45; margin: 4px 0 6px; }
.adm-ofmeta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.adm-ofpa { font-size: 12px; color: #b6c6d3; text-decoration: line-through; }
.adm-ofpact { font-size: 16px; font-weight: 800; color: #004398; letter-spacing: -.5px; }
.adm-ofpct-tag { font-size: 13px; font-weight: 800; color: #c0392b; background: #FFF1F2; padding: 3px 10px; border-radius: 20px; letter-spacing: -.2px; }
.adm-offechas { font-size: 11px; color: #4e7db1; }
.adm-ofacc { display: flex; gap: 6px; flex-shrink: 0; }
.adm-ofbtn {
  width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #dce8f5; background: #fff; color: #4e7db1; cursor: pointer; transition: all .15s;
}
.adm-ofbtn.editar:hover { background: #EEF3FA; color: #004398; border-color: #4e7db1; }
.adm-ofbtn.toggle:hover { background: #EEF3FA; color: #004398; border-color: #4e7db1; }
.adm-ofbtn.eliminar { color: #c0392b; background: #FFF1F2; border-color: #fbd5d5; }
.adm-ofbtn.eliminar:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

@media (max-width: 600px) {
  .adm-row2 { grid-template-columns: 1fr; }
  .adm-ofcard { flex-wrap: wrap; }
  .adm-ofacc { width: 100%; justify-content: flex-end; }
}

/* ===== Modal selector de producto ===== */
.adm-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.adm-modal[hidden] { display: none; }
.adm-modal-overlay { position: absolute; inset: 0; background: rgba(0,31,77,.45); backdrop-filter: blur(2px); animation: admFade .15s ease; }
.adm-modal-box {
  position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 620px;
  max-height: 88vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,31,77,.4); animation: admPop .18s ease;
}
@keyframes admFade { from { opacity: 0; } }
@keyframes admPop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.adm-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 22px 24px 16px; border-bottom: 1px solid #eef2f8;
}
.adm-modal-head h2 { font-size: 18px; font-weight: 800; color: #002d6b; letter-spacing: -.4px; }
.adm-modal-head p { font-size: 13px; color: #4e7db1; margin-top: 3px; }
.adm-modal-x {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; border: none; background: #EEF3FA;
  color: #4e7db1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s;
}
.adm-modal-x:hover { background: #FFF1F2; color: #c0392b; }
.adm-modal-body { padding: 18px 24px 24px; overflow-y: auto; }
.adm-modal-body .adm-imgsearch { position: sticky; top: 0; z-index: 2; }

.adm-prodprice { font-size: 13px; font-weight: 800; color: #004398; white-space: nowrap; }

/* Chip "oferta vinculada a producto" */
.off-vinc {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  background: #EEF3FA; color: #004398; border: 1px solid #dce8f5;
  font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 20px;
}
.off-vinc strong { font-weight: 800; }

@media (max-width: 600px) {
  .adm-modal { padding: 0; align-items: stretch; }
  .adm-modal-box { max-width: none; max-height: 100vh; border-radius: 0; }
}

/* ===== Registro de auditoria ===== */
.adm-logwrap { border: 1px solid #dce8f5; border-radius: 12px; overflow: hidden; background: #fff; }
.adm-logtbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-logtbl thead th {
  background: #004398; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; text-align: left; padding: 10px 12px; white-space: nowrap;
}
.adm-logtbl tbody td { padding: 9px 12px; border-top: 1px solid #EEF3FA; color: #002d6b; vertical-align: top; }
.adm-logtbl tbody tr:hover td { background: #F7FAFD; }
.log-fecha { white-space: nowrap; color: #4e7db1; font-family: 'Courier New', monospace; font-size: 12px; }
.log-user { font-weight: 700; }
.log-acc { display: inline-block; background: #EEF3FA; color: #004398; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.log-det { color: #4e7db1; }
.log-ip { color: #b6c6d3; font-family: 'Courier New', monospace; font-size: 12px; white-space: nowrap; }

@media (max-width: 600px) {
  .adm-logwrap { overflow-x: auto; }
  .adm-logtbl { min-width: 620px; }
}

/* ===== Footer ===== */
.adm-foot {
  text-align: center; font-size: 12px; color: #4e7db1; padding: 28px 20px 36px;
}

@media (max-width: 600px) {
  .adm-top { padding: 0 16px; height: auto; flex-direction: column; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .adm-nav { flex-wrap: wrap; justify-content: center; }
  .adm-main { padding: 24px 16px; }
}
