/* MetaZero Mobile | Tema Visual GPS Aprovado (v2.0.0 LINOS)
 * Fundo branco/claro, cabecalho azul corporativo vibrante, cards grandes e arredondados na grade 2x2.
 * Totalmente compativel com iPhone (iOS Safari) e Android (Chrome).
 * Preserva integralmente todas as classes funcionais: canvas de assinatura, modais, alertas e PDFs.
 */
:root {
  --mz-blue-primary: #0b3b60;
  --mz-blue-header: #0d4775;
  --mz-blue-card-icon: #105489;
  --mz-blue-card-bg: #e8f2fa;
  --mz-accent-cyan: #38bdf8;
  --mz-accent-mint: #10b981;
  --mz-accent-gold: #f59e0b;
  --mz-bg-page: #f8fafc;
  --mz-bg-surface: #ffffff;
  --mz-text-dark: #0f172a;
  --mz-text-muted: #64748b;
  --mz-border-subtle: #e2e8f0;
  --mz-border-focus: #38bdf8;
  --mz-shadow-card: 0 4px 18px rgba(15, 35, 60, 0.06);
  --mz-radius-card: 20px;
  --mz-radius-btn: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--mz-text-dark);
  background: #f1f5f9;
  font-synthesis: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; scroll-behavior: smooth; background: #f1f5f9; }
body {
  margin: 0;
  min-height: 100%;
  background: #f1f5f9;
  color: var(--mz-text-dark);
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--mz-accent-cyan); outline-offset: 2px; }
a { color: var(--mz-blue-card-icon); text-decoration: none; }

.app-shell {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100svh;
  background: var(--mz-bg-surface);
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.08);
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* =========================================================
   CABECALHO AZUL CORPORATIVO (VISUAL GPS)
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 20px 15px;
  background: linear-gradient(135deg, #0b3860 0%, #0f4c81 100%);
  border-bottom: 2px solid #082946;
  box-shadow: 0 3px 14px rgba(11, 56, 96, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 20px;
  letter-spacing: -0.4px;
  line-height: 1;
  color: #ffffff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0b3b60;
  font-size: 22px;
  font-weight: 900;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.brand-dot {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mz-accent-mint);
}

.brand-highlight {
  color: #38bdf8;
}

.brand small {
  font-size: 8px;
  color: #bae6fd;
  display: block;
  letter-spacing: 2.2px;
  margin-top: 4px;
  font-weight: 700;
}

.mz-v15-header-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  position: relative;
}
.mz-v15-header-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.mz-v15-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #0b3860;
}

/* =========================================================
   BARRA DE NAVEGACAO INFERIOR (VISUAL GPS)
   ========================================================= */
.bottom-nav {
  position: fixed;
  z-index: 100;
  bottom: 0;
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid var(--mz-border-subtle);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.05);
}

.nav-item {
  background: transparent;
  color: #64748b;
  border: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.nav-item.active {
  color: var(--mz-blue-primary);
  font-weight: 800;
  background: var(--mz-blue-card-bg);
}
.nav-symbol { font-size: 20px; line-height: 1; }

/* =========================================================
   PAGINA E CONTEUDO
   ========================================================= */
.page {
  padding: 20px 18px 30px;
  animation: fade .18s ease-out;
  flex: 1;
}

@keyframes fade {
  from { opacity: .5; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head {
  margin-bottom: 20px;
}
.page-head h1 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 6px 0 6px;
  color: var(--mz-blue-primary);
  font-weight: 800;
}
.page-head p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mz-text-muted);
  margin: 0;
}

.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #0284c7;
  font-weight: 800;
}

/* =========================================================
   BANNER DO FUNCIONARIO (VISUAL GPS)
   ========================================================= */
.mz-gps-banner {
  background: linear-gradient(135deg, #eef6fc 0%, #e0effa 100%);
  border: 1px solid #cce3f4;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mz-gps-banner-info h2 {
  margin: 3px 0 2px;
  font-size: 20px;
  color: #0b3860;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.mz-gps-banner-info p {
  margin: 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.mz-gps-banner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #0b3860;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(11, 56, 96, 0.2);
}

/* =========================================================
   GRADE 2x2 DA TELA INICIAL (ORDEM RIGOROSA GPS)
   ========================================================= */
.mz-gps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.mz-gps-card {
  background: #ffffff;
  border: 1px solid var(--mz-border-subtle);
  border-radius: var(--mz-radius-card);
  padding: 18px 16px 16px;
  box-shadow: var(--mz-shadow-card);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 142px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mz-gps-card:active {
  transform: scale(0.98);
}
.mz-gps-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(15, 35, 60, 0.1);
}

.mz-gps-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mz-gps-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--mz-blue-card-bg);
  color: var(--mz-blue-card-icon);
  display: grid;
  place-items: center;
}
.mz-gps-card-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

.mz-gps-card-badge {
  font-size: 10px;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
}
.mz-gps-card-badge.is-alert {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fca5a5;
}

.mz-gps-card-body {
  margin-top: 12px;
}
.mz-gps-card-body strong {
  display: block;
  font-size: 15px;
  color: #0b3860;
  font-weight: 800;
  margin-bottom: 3px;
  line-height: 1.25;
}
.mz-gps-card-body small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.mz-gps-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: #94a3b8;
  opacity: 0.6;
}

/* =========================================================
   BOTOES, PAINÉIS E CARDS DE CONTEÚDO
   ========================================================= */
.panel {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--mz-border-subtle);
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #0b3860;
  font-weight: 800;
}
.panel p {
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--mz-radius-btn);
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: #0f4c81;
  color: #ffffff;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.2);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn.secondary {
  background: #f1f5f9;
  color: #0b3860;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}
.btn.ghost {
  background: transparent;
  color: #0f4c81;
  border: 1px solid transparent;
  box-shadow: none;
}
.btn.full { width: 100%; margin-top: 8px; }

.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: #e0f2fe;
  color: #0369a1;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.pill.is-warning { background: #fef3c7; color: #b45309; }
.pill.is-success { background: #dcfce7; color: #15803d; }
.pill.is-danger { background: #fee2e2; color: #b91c1c; }

/* =========================================================
   ABAS DE NAVEGACAO INTERNA (TABS GPS)
   ========================================================= */
.mz-tab-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.mz-tab-bar::-webkit-scrollbar { display: none; }

.mz-tab-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--mz-border-subtle);
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.mz-tab-btn.active {
  background: #0f4c81;
  color: #ffffff;
  border-color: #0f4c81;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.2);
}

/* =========================================================
   CARDS DE EPI E UNIFORMES (NOVO MODULO GPS)
   ========================================================= */
.mz-item-card {
  border: 1px solid var(--mz-border-subtle);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.mz-item-pic {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  color: #0f4c81;
  flex-shrink: 0;
}
.mz-item-pic svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.mz-item-info { flex: 1; }
.mz-item-info strong {
  display: block;
  font-size: 14px;
  color: #0b3860;
  margin-bottom: 4px;
  line-height: 1.3;
}
.mz-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}
.mz-item-tag {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

/* =========================================================
   ORDENS DE SERVIÇO (OS NR-01)
   ========================================================= */
.mz-os-card {
  border: 1px solid var(--mz-border-subtle);
  border-radius: 16px;
  padding: 18px;
  background: #ffffff;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.mz-os-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mz-os-top strong { font-size: 16px; color: #0b3860; font-weight: 800; }
.kv {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
  color: #64748b;
}
.kv strong { color: #0f172a; font-weight: 700; }
.button-row { display: flex; gap: 8px; margin-top: 14px; }
.button-row .btn { flex: 1; }

/* =========================================================
   TREINAMENTOS E MODULOS DE ESTUDO
   ========================================================= */
.td-meter {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 10px 0;
}
.td-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #10b981);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.td-module {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--mz-border-subtle);
  margin-bottom: 10px;
  text-align: left;
  transition: all 0.15s ease;
}
.td-module:hover { border-color: #93c5fd; }
.td-module.td-done { background: #f0fdf4; border-color: #bbf7d0; }
.td-index {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #334155;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.td-done .td-index { background: #dcfce7; color: #15803d; }
.td-module strong { display: block; font-size: 13px; color: #0b3860; }
.td-module small { display: block; font-size: 11px; color: #64748b; margin-top: 2px; }

.td-question {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  background: #f8fafc;
}
.td-question legend {
  font-weight: 800;
  font-size: 13px;
  color: #0b3860;
  padding: 0 6px;
}
.td-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}
.td-option input { margin-top: 3px; accent-color: #0f4c81; }

/* =========================================================
   CARTAO DE ASSINATURA (CANVAS touch-action: none)
   ========================================================= */
.mz-sig-card {
  border: 1px solid var(--mz-border-subtle);
  border-radius: 18px;
  padding: 20px;
  background: #ffffff;
  margin-top: 14px;
}
.mz-sig-display, .mz-sig-pad {
  background: #ffffff;
  border: 2px dashed #94a3b8;
  border-radius: 14px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}
.mz-sig-display svg { width: 100%; height: 160px; display: block; }
.mz-sig-pad canvas {
  touch-action: none;
  width: 100%;
  height: 160px;
  display: block;
  cursor: crosshair;
}
.mz-sig-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  margin: 14px 0;
}
.mz-sig-consent input { margin-top: 3px; accent-color: #0f4c81; }
.mz-sig-legal {
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
  margin-top: 16px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 12px;
}

/* =========================================================
   MODAL DE PDF E DIÁLOGOS
   ========================================================= */
.mz-epi-pdf-dialog {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.mz-epi-pdf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #0b3860;
  color: #ffffff;
}
.mz-epi-pdf-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #ffffff;
}

.mz-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
  padding: 20px;
}
.mz-dialog {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.mz-dialog-symbol {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 12px;
}
.mz-dialog h2 { margin: 0 0 8px; color: #0f172a; font-size: 20px; }
.mz-dialog p { font-size: 13px; color: #475569; line-height: 1.5; margin: 0 0 16px; }
.mz-dialog-actions { display: flex; gap: 8px; }
.mz-dialog-actions .btn { flex: 1; }

.error-msg {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}


/* =========================================================
   CARD TOTALMENTE LIGADO A DOCUMENTOS NA HOME (5º CARD)
   ========================================================= */
.mz-gps-card-full {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid var(--mz-border-subtle);
  border-radius: var(--mz-radius-card);
  padding: 16px 18px;
  box-shadow: var(--mz-shadow-card);
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mz-gps-card-full:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(15, 35, 60, 0.1);
}
.mz-gps-card-full:active {
  transform: scale(0.99);
}

.mz-gps-banner-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(11, 56, 96, 0.2);
  flex-shrink: 0;
}

/* =========================================================
   MENU LATERAL DESLIZANTE (☰) & NOTIFICAÇÕES (🔔)
   ========================================================= */
.mz-v15-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  animation: mzFadeIn 0.2s ease;
}

@keyframes mzFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mz-v15-drawer {
  width: min(84%, 340px);
  height: 100%;
  background: #ffffff;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  animation: mzSlideLeft 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mzSlideLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mz-v15-drawer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}
.mz-v15-drawer-heading strong {
  font-size: 18px;
  color: #0b3860;
  font-weight: 800;
}
.mz-v15-drawer-close {
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.mz-v15-drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}
.mz-v15-drawer-profile .mz-avatar-mini {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #0b3860;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.mz-v15-drawer-profile strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}
.mz-v15-drawer-profile small {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.mz-v15-drawer-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin: 14px 0 8px 4px;
}

.mz-v15-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mz-v15-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mz-v15-drawer-item:hover, .mz-v15-drawer-item:active {
  background: #f1f5f9;
  color: #0b3860;
}
.mz-v15-drawer-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mz-v15-drawer-item-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #0284c7;
}

/* Central de Notificações Modal */
.mz-v15-notifications-modal {
  margin: auto;
  max-width: 420px;
  width: 90%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
  animation: mzPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mzPopIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.mz-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0b3860;
  color: #ffffff;
}
.mz-notif-header h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 800;
}
.mz-notif-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mz-notif-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mz-notif-card.is-pending {
  background: #fffbeb;
  border-color: #fde68a;
}
.mz-notif-card:hover {
  border-color: #0284c7;
  transform: translateY(-1px);
}
.mz-notif-card strong {
  font-size: 13px;
  color: #0b3860;
}
.mz-notif-card p {
  font-size: 12px;
  color: #475569;
  margin: 0;
  line-height: 1.35;
}

/* Modal de Visualização de Certificado / Documento PDF */
.mz-pdf-view-dialog {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
}
.mz-pdf-view-wrap {
  background: #ffffff;
  border-radius: 20px;
  width: min(100%, 420px);
  padding: 22px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  text-align: center;
}
.mz-pdf-view-icon {
  font-size: 40px;
  margin-bottom: 10px;
}
.mz-pdf-view-wrap h3 {
  font-size: 17px;
  color: #0b3860;
  margin: 0 0 6px;
  font-weight: 800;
}
.mz-pdf-view-wrap p {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 18px;
  line-height: 1.45;
}

/* =========================================================
   TELA DE LOGIN E ACESSO DO COLABORADOR (RESTAURADA)
   ========================================================= */
.access-page {
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 80px);
}

.mz-v14-intro {
  margin-bottom: 24px;
  text-align: left;
}

.mz-v14-intro h1 {
  font-size: 26px;
  color: #0b3860;
  font-weight: 850;
  letter-spacing: -0.5px;
  margin: 6px 0 4px;
  line-height: 1.2;
}

.mz-v14-intro p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.login-panel {
  background: #ffffff;
  border: 1px solid var(--mz-border-subtle);
  border-radius: 20px;
  padding: 24px 20px 20px;
  box-shadow: 0 4px 25px rgba(15, 35, 60, 0.07);
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0b3860;
  margin-bottom: 6px;
}

.mz-v14-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
}

.mz-v14-field-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
  color: #94a3b8;
  display: grid;
  place-items: center;
  z-index: 2;
}

.mz-v14-input-wrap .field {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 46px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.mz-v14-input-wrap .field:focus {
  outline: none;
  border-color: #0b3860;
  box-shadow: 0 0 0 3px rgba(11, 56, 96, 0.12);
}

.mz-v14-eye {
  position: absolute;
  right: 6px;
  background: transparent;
  border: 0;
  color: #94a3b8;
  padding: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.mz-v14-eye:hover, .mz-v14-eye:active {
  color: #0b3860;
}

.mz-v14-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 16px;
  line-height: 1.3;
}
.mz-v14-secure svg {
  flex-shrink: 0;
  color: #059669;
}

.mz-v14-enter {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b3860 0%, #0f4c81 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 56, 96, 0.25);
  transition: all 0.15s ease;
  display: grid;
  place-items: center;
}
.mz-v14-enter:hover {
  background: linear-gradient(135deg, #0d4775 0%, #105489 100%);
  box-shadow: 0 6px 18px rgba(11, 56, 96, 0.35);
}
.mz-v14-enter:active {
  transform: scale(0.99);
}

.mz-v14-text-link {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 0;
  color: #0284c7;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 0 4px;
  cursor: pointer;
}
.mz-v14-text-link:hover {
  text-decoration: underline;
}

.mz-v14-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0;
  color: #94a3b8;
  font-size: 12px;
}
.mz-v14-separator::before, .mz-v14-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.mz-v14-separator span {
  padding: 0 10px;
}

.mz-v14-helper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 12px;
  color: #475569;
  margin-top: 18px;
  line-height: 1.45;
}

.mz-v14-info-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0b3860;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.error-msg {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.4;
}

.footnote {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 16px;
  line-height: 1.4;
}
