/* ============================================================
   notifications-view.css — Pantalla de Notificaciones
   ------------------------------------------------------------
   Mismo lenguaje visual del panel: superficies blancas, relieve
   suave (luz arriba / sombra abajo), píldoras y color con
   significado. Sin líneas de acento.
   ============================================================ */

#nv-root { display: flex; flex-direction: column; }

.nv-load {
  padding: 46px 12px;
  text-align: center;
  font-size: 13px;
  color: #9aa4b2;
}

.nv-head-acts { display: flex; gap: 8px; align-items: center; }

/* ─── Barra: pestañas + buscador ─────────────────────────────*/
.nv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.nv-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: #eef1f6;
  box-shadow: inset 0 1px 3px rgba(20,24,31,.10);
}
.nv-tab {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #5b6676;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.nv-tab:hover { color: #14181f; }
.nv-tab.nv-on {
  background-image: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  color: #14181f;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 2px rgba(20,24,31,.12),
    0 2px 6px -1px rgba(20,24,31,.10);
}
.nv-tab-n {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(20,24,31,.10);
  color: #5b6676;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.nv-tab.nv-on .nv-tab-n { background: #2f80ed; color: #fff; }

.nv-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 380px;
}
.nv-search i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #9aa4b2;
  pointer-events: none;
}
.nv-search input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 11px 14px 11px 36px !important;
  border: none !important;
  border-radius: 999px !important;
  background-image: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #14181f;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 0 0 1px rgba(20,24,31,.08),
    0 1px 2px rgba(20,24,31,.06) !important;
}
.nv-search input:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px #2f80ed,
    0 0 0 3px rgba(47,128,237,.14) !important;
}

/* ─── Chips de tipo ──────────────────────────────────────────*/
.nv-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.nv-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background-image: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: #5b6676;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 0 0 1px rgba(20,24,31,.07),
    0 1px 2px rgba(20,24,31,.06);
  transition: transform .14s ease, box-shadow .16s ease, color .14s ease;
}
.nv-chip i { font-size: 11px; }
.nv-chip:hover { transform: translateY(-1px); color: #14181f; }
.nv-chip.nv-on {
  background-image: linear-gradient(180deg, #4a91f2 0%, #2f80ed 55%, #2472d8 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 2px 5px rgba(47,128,237,.30),
    0 6px 14px -4px rgba(47,128,237,.42);
}
.nv-chip.nv-on i { color: #fff !important; }
.nv-chip-n {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(20,24,31,.09);
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.nv-chip.nv-on .nv-chip-n { background: rgba(255,255,255,.24); }

/* ─── Barra de lote ──────────────────────────────────────────*/
.nv-lote {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background-image: linear-gradient(180deg, #eaf2fe 0%, #e2ecfd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 1px 2px rgba(20,24,31,.06);
  flex-wrap: wrap;
}
.nv-lote-idle {
  background-image: linear-gradient(180deg, #fafbfd 0%, #f4f6fa 100%);
}
.nv-lote-n { font-size: 12.5px; font-weight: 700; color: #1d4ed8; }
.nv-lote-hint { font-size: 12px; color: #9aa4b2; }
.nv-lote .btn { margin-left: 2px; }
.nv-lote-x {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #5b6676;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.nv-lote-x:hover { background: rgba(20,24,31,.06); color: #14181f; }

/* ─── Casillas ───────────────────────────────────────────────*/
.nv-check { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.nv-check input {
  width: 17px; height: 17px;
  cursor: pointer;
  accent-color: #2f80ed;
  margin: 0;
}

/* ─── Lista ──────────────────────────────────────────────────*/
.nv-list {
  padding: 6px !important;
  overflow: hidden;
}

.nv-sep {
  font-size: 10px;
  font-weight: 700;
  color: #9aa4b2;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 14px 12px 7px;
}

.nv-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 12px;
  cursor: pointer;                 /* la fila abre el detalle */
  transition: background-color .14s ease, transform .14s ease, box-shadow .16s ease;
}
.nv-item:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 2px rgba(20,24,31,.07),
    0 6px 16px -6px rgba(20,24,31,.18);
}
.nv-item:active { transform: translateY(0); }
.nv-picked {
  background: #e8f0fe !important;
  box-shadow: inset 0 0 0 1px rgba(47,128,237,.30);
}

/* Sin leer: fondo azul tenue con degradado y título marcado. */
.nv-unread {
  background-image: linear-gradient(180deg, #f4faff 0%, #eef6ff 100%);
}
.nv-unread .nv-title { font-weight: 700; color: #14181f; }
.nv-unread:hover {
  background-image: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

/* Icono con volumen: degradado en el color del tipo y sombra
   proyectada en ese mismo tono. El JS fija --ic y --ic2. */
.nv-ic {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(0,0,0,.10),
    0 3px 8px -2px var(--ic-glow, rgba(20,24,31,.22));
  transition: transform .16s ease;
}
.nv-item:hover .nv-ic { transform: scale(1.05); }

.nv-body { flex: 1; min-width: 0; }
.nv-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nv-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #14181f;
  word-break: break-word;
}
.nv-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.nv-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2f80ed;
  flex-shrink: 0;
}
.nv-msg {
  font-size: 12.5px;
  color: #5b6676;
  line-height: 1.5;
  margin-top: 4px;
  word-break: break-word;
}
.nv-meta {
  font-size: 11px;
  color: #9aa4b2;
  margin-top: 5px;
}

/* Acciones: aparecen al pasar el cursor, para no saturar */
.nv-acts {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .16s ease;
}
.nv-item:hover .nv-acts,
.nv-picked .nv-acts { opacity: 1; }

.nv-btn {
  width: 30px; height: 30px;
  border: none;
  border-radius: 9px;
  background-image: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  color: #5b6676;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 0 0 1px rgba(20,24,31,.08),
    0 1px 2px rgba(20,24,31,.07);
  transition: transform .14s ease, color .14s ease;
}
.nv-btn:hover { transform: translateY(-1px); }
.nv-open:hover { color: #2f80ed; }
.nv-read:hover { color: #16a34a; }
.nv-del:hover  { color: #dc2626; }
.nv-btn:active { transform: translateY(1px); }

/* ─── Vacío ──────────────────────────────────────────────────*/
.nv-empty {
  padding: 54px 20px;
  text-align: center;
  color: #9aa4b2;
}
.nv-empty i { font-size: 34px; opacity: .45; }
.nv-empty h3 {
  font-size: 15px;
  font-weight: 700;
  color: #5b6676;
  margin: 14px 0 5px;
}
.nv-empty p { font-size: 12.5px; margin: 0; }

/* ─── Modal de detalle ───────────────────────────────────────
   La cabecera se tiñe del color del tipo mediante la variable
   --nc, que el JS fija por notificación. */
.nvm-overlay {
  position: fixed;
  inset: 0;
  z-index: 4500;
  background: rgba(20,24,31,.48);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  animation: nvmFade .16s ease;
}
@keyframes nvmFade { from { opacity: 0 } to { opacity: 1 } }

.nvm-box {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 4px 10px rgba(20,24,31,.14),
    0 24px 60px -12px rgba(20,24,31,.40);
  animation: nvmRise .2s cubic-bezier(.2,.9,.3,1.05);
}
@keyframes nvmRise {
  from { opacity: 0; transform: translateY(12px) scale(.985) }
  to   { opacity: 1; transform: none }
}

/* Cabecera con degradado en el color del tipo */
.nvm-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  color: #fff;
  background-image:
    linear-gradient(135deg, var(--nc) 0%, var(--nc) 55%, rgba(0,0,0,.22) 160%);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.10);
  position: relative;
  overflow: hidden;
}
/* Halo decorativo, mismo recurso que las tarjetas KPI */
.nvm-head::after {
  content: "";
  position: absolute;
  right: -34px; top: -48px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  pointer-events: none;
}
.nvm-ic {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.nvm-head-txt { flex: 1; min-width: 0; position: relative; z-index: 1; }
.nvm-kind {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  opacity: .92;
}
.nvm-new {
  background: rgba(255,255,255,.26);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .03em;
}
.nvm-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 5px;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0,0,0,.14);
}
.nvm-x {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: none;
  background: rgba(255,255,255,.16);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 999px;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}
.nvm-x:hover { background: rgba(255,255,255,.30); }

.nvm-body {
  padding: 20px 22px;
  overflow-y: auto;
}
.nvm-msg {
  font-size: 13.5px;
  line-height: 1.6;
  color: #14181f;
  word-break: break-word;
}
.nvm-vacio { color: #9aa4b2; font-style: italic; }
.nvm-img {
  display: block;
  width: 100%;
  margin-top: 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20,24,31,.14);
}

/* Ficha de datos */
.nvm-datos {
  margin-top: 18px;
  border-radius: 12px;
  background-image: linear-gradient(180deg, #fafbfd 0%, #f4f6fa 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(20,24,31,.06);
  padding: 4px 14px;
}
.nvm-dato {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20,24,31,.06);
}
.nvm-dato:last-child { border-bottom: none; }
.nvm-k {
  font-size: 10.5px;
  font-weight: 700;
  color: #9aa4b2;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.nvm-v {
  font-size: 12.5px;
  color: #14181f;
  text-align: right;
  word-break: break-word;
}
.nvm-mono {
  font-family: Consolas, Menlo, monospace;
  font-weight: 700;
  color: #2f80ed;
}

.nvm-pie {
  display: flex;
  gap: 9px;
  padding: 15px 22px;
  flex-wrap: wrap;
  align-items: center;
  background: #fafbfd;
  box-shadow: inset 0 1px 0 rgba(20,24,31,.07);
}
.nvm-pie .btn { font-size: 12.5px !important; padding: 10px 16px !important; }
.nvm-cerrar {
  margin-left: auto;
  border: none;
  background: transparent;
  color: #5b6676;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 9px;
}
.nvm-cerrar:hover { background: rgba(20,24,31,.06); color: #14181f; }

@media (prefers-reduced-motion: reduce) {
  .nvm-overlay, .nvm-box { animation: none; }
}

/* ─── Responsive ─────────────────────────────────────────────*/
@media (max-width: 700px) {
  .nv-bar { flex-direction: column; align-items: stretch; }
  .nv-search { max-width: 100%; }
  .nv-acts { opacity: 1; }          /* en táctil no hay hover */
  .nv-item { padding: 12px 8px; }
}

@media print {
  .nv-bar, .nv-chips, .nv-lote, .nv-acts, .nv-check, .nv-head-acts { display: none !important; }
  .nv-list { box-shadow: none !important; }
}

/* ============================================================
   Pantalla de módulo no contratado (addons-client.js)
   ============================================================ */
.addon-lock {
  max-width: 480px;
  margin: 60px auto;
  padding: 40px 34px;
  text-align: center;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 0 0 1px rgba(20,24,31,.06),
    0 2px 6px rgba(20,24,31,.06),
    0 16px 40px -14px rgba(20,24,31,.22);
}
.addon-lock-ic {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  background-image: linear-gradient(160deg, #94a3b8, #5b6676);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 6px 16px -4px rgba(91,102,118,.45);
}
.addon-lock h2 {
  font-size: 19px;
  font-weight: 700;
  color: #14181f;
  margin: 0 0 12px;
}
.addon-lock p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #5b6676;
  margin: 0 0 8px;
}
.addon-lock-sub { color: #9aa4b2 !important; font-size: 12.5px !important; }
