/* ══════════════════════════════════════════════════════════════
   ManutenPRO — CSS de Produção v2.0
   Engenharia e Consultoria — Sistema de Gestão de Manutenção
   ══════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #3A515C;
  --primary-dark:   #2a3c45;
  --primary-light:  #4d6a78;
  --secondary:      #7D9A7F;
  --secondary-light:#a0bc9f;
  --secondary-dark: #5e7a60;
  --accent:         #294550;
  --success:    #4d7a56;
  --success-bg: rgba(133,162,140,0.12);
  --warning:    #b07d28;
  --warning-bg: rgba(212,160,74,0.12);
  --danger:     #b5403a;
  --danger-bg:  rgba(192,81,74,0.1);
  --info:       #2d6b96;
  --info-bg:    rgba(74,138,180,0.1);
  --bg:         #f4f6f7;
  --surface:    #ffffff;
  --surface-2:  #f8fafb;
  --border:     #dce3e6;
  --border-light: #edf1f3;
  --text-primary:   #1e2d33;
  --text-secondary: #4a6370;
  --text-muted:     #7a9099;
  --font-head: 'Josefin Sans', 'Gill Sans MT', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --sidebar-w:   248px;
  --topbar-h:    60px;
  --radius:      8px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 8px 28px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.18);
  --transition: 0.2s ease;
}

html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body); font-size: 0.9375rem;
  color: var(--text-primary); background: var(--bg);
  min-height: 100vh; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(58,81,92,0.18); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(58,81,92,0.35); }

/* ── SPLASH ── */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(145deg, #2a3c45 0%, #3A515C 50%, #4d6a78 100%);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#splash-screen.fade-out { opacity: 0; visibility: hidden; }
.splash-content { text-align: center; }
.splash-logo { width: 180px; margin-bottom: 32px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3)); }
.splash-bar { width: 220px; height: 3px; background: rgba(255,255,255,0.15); border-radius: 4px; margin: 0 auto 14px; overflow: hidden; }
.splash-fill { height: 100%; width: 0; background: var(--secondary-light); border-radius: 4px; animation: splashLoad 1.4s ease forwards; }
@keyframes splashLoad { to { width: 100%; } }
.splash-text { color: rgba(255,255,255,0.55); font-family: var(--font-head); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }

/* ── UTILITIES ── */
.hidden { display: none !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.gap-6{gap:6px} .gap-8{gap:8px} .gap-12{gap:12px} .gap-16{gap:16px} .gap-20{gap:20px}
.mb-8{margin-bottom:8px} .mb-12{margin-bottom:12px} .mb-16{margin-bottom:16px}
.mb-20{margin-bottom:20px} .mb-24{margin-bottom:24px}
.mt-16{margin-top:16px} .mt-20{margin-top:20px}
.text-right{text-align:right} .text-center{text-align:center}
.fw-700{font-weight:700} .font-head{font-family:var(--font-head)}
.text-muted{color:var(--text-muted)} .text-primary-color{color:var(--primary)}
.text-secondary-color{color:var(--secondary)} .text-danger{color:var(--danger)}
.text-success{color:var(--success)} .text-sm{font-size:11px} .text-xs{font-size:10px}
.full-span{grid-column:1/-1} .w-full{width:100%}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── LOGIN ── */
#login-page { display: flex; min-height: 100vh; }
.login-visual {
  flex: none; width: 44%; min-height: 100vh;
  background: linear-gradient(155deg, #2a3c45 0%, #3A515C 45%, #5a7e6e 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 40px; position: relative; overflow: hidden;
}
.login-visual::before {
  content:''; position:absolute; top:-120px; right:-120px; width:400px; height:400px;
  border-radius:50%; background: radial-gradient(circle, rgba(125,154,127,0.18) 0%, transparent 70%);
}
.login-visual::after {
  content:''; position:absolute; bottom:-80px; left:-80px; width:280px; height:280px;
  border-radius:50%; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}
.logo-area { text-align: center; margin-bottom: 36px; z-index: 1; }
.login-logo-img { width: 200px; max-width: 100%; height: auto; display: block; margin: 0 auto 16px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3)); }
.brand-sub { font-family: var(--font-head); font-weight: 400; font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 3px; text-transform: uppercase; }
.system-badge {
  z-index: 1; text-align: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 20px 28px; margin-bottom: 32px; backdrop-filter: blur(8px);
}
.system-badge h2 { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: #fff; letter-spacing: 2px; margin-bottom: 6px; }
.system-badge p { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 1px; }
.login-stats { display: flex; gap: 32px; z-index: 1; }
.login-stat { text-align: center; }
.login-stat .num { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: #fff; }
.login-stat .lbl { font-size: 10px; color: rgba(255,255,255,0.5); letter-spacing: 1px; text-transform: uppercase; }
.login-form-area { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 40px; background: var(--surface); }
.login-form-inner { width: 100%; max-width: 400px; }
.login-form-inner h1 { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 1.5px; margin-bottom: 6px; }
.login-subtitle { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.login-profiles { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.profile-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 8px; border: 2px solid var(--border); border-radius: var(--radius-md);
  cursor: pointer; font-family: var(--font-head); font-size: 11px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.5px; transition: var(--transition);
  text-align: center; gap: 6px;
}
.profile-chip i { font-size: 16px; }
.profile-chip:hover { border-color: var(--secondary); color: var(--secondary-dark); background: var(--success-bg); }
.profile-chip.active { border-color: var(--primary); background: rgba(58,81,92,0.06); color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 13px; color: var(--text-primary);
  background: var(--bg); transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(58,81,92,0.08);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; }
.input-password-wrap { position: relative; }
.input-password-wrap input { padding-right: 42px; }
.btn-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; transition: color var(--transition); }
.btn-eye:hover { color: var(--primary); }
.btn-login { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: var(--transition); margin-top: 4px; }
.btn-login:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.login-secure { text-align: center; margin-top: 20px; font-size: 11px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ── APP SHELL ── */
#app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex; flex-direction: column; height: 100vh; overflow: hidden;
  position: relative; z-index: 100; transition: transform 0.3s ease;
}
.sidebar-logo { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.sidebar-logo-img { width: 100%; max-width: 196px; height: auto; display: block; object-fit: contain; }
.sidebar-system { padding: 8px 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
.sys-label { font-family: var(--font-head); font-size: 9px; color: rgba(255,255,255,0.35); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 2px; }
.sys-name { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: rgba(255,255,255,0.9); letter-spacing: 1px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
.nav-section-label { font-family: var(--font-head); font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: 2px; padding: 12px 16px 4px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  margin: 1px 8px; border-radius: var(--radius); color: rgba(255,255,255,0.7);
  font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: 0.5px;
  cursor: pointer; transition: var(--transition); position: relative; user-select: none;
}
.nav-item i { width: 18px; text-align: center; font-size: 13px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
.nav-item.active::before { content:''; position:absolute; left:-8px; top:50%; transform:translateY(-50%); width:3px; height:60%; background:var(--secondary-light); border-radius:0 3px 3px 0; }
.nav-badge { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 10px; padding: 2px 6px; border-radius: 10px; flex-shrink: 0; background: rgba(255,255,255,0.15); color: #fff; }
.nav-badge.green { background: rgba(125,154,127,0.4); color: #c8e6c9; }
.nav-badge.warn  { background: rgba(212,160,74,0.35); color: #ffe082; }
.nav-badge.red   { background: rgba(192,81,74,0.4); color: #ffcdd2; }
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.07); border-radius: var(--radius-md); padding: 8px 10px; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 12px; }
.user-info { flex: 1; overflow: hidden; }
.user-name { font-family: var(--font-head); font-weight: 700; font-size: 11px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 1px; }
.btn-logout { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; padding: 4px; border-radius: 6px; transition: var(--transition); font-size: 14px; flex-shrink: 0; }
.btn-logout:hover { color: #ff8a80; background: rgba(255,255,255,0.08); }
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.sidebar-overlay.open { display: block; }

/* ── MAIN ── */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.top-bar { height: var(--topbar-h); flex-shrink: 0; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 20px; box-shadow: var(--shadow-sm); position: relative; z-index: 10; }
.btn-hamburger { display: none; background: none; border: none; color: var(--primary); font-size: 18px; cursor: pointer; padding: 8px; border-radius: var(--radius); transition: var(--transition); flex-shrink: 0; }
.btn-hamburger:hover { background: var(--bg); }
.top-bar-title { flex: 1; min-width: 0; }
.top-bar-title h2 { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--primary); letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb { font-size: 11px; color: var(--text-muted); margin-top: 1px; font-family: var(--font-head); letter-spacing: 0.3px; }
.top-bar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-icon { width: 36px; height: 36px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: var(--transition); position: relative; }
.btn-icon:hover { background: var(--border-light); color: var(--primary); }
.bell-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: var(--danger); border-radius: 50%; border: 1.5px solid var(--surface); }
.page-content { flex: 1; overflow-y: auto; padding: 20px 24px; background: var(--bg); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.5px; cursor: pointer; transition: var(--transition); border: 1.5px solid transparent; white-space: nowrap; text-decoration: none; }
.btn i { font-size: 12px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: rgba(58,81,92,0.04); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #a03530; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 11px; }
.btn-lg { padding: 12px 24px; font-size: 13px; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-family: var(--font-head); font-weight: 700; font-size: 10px; letter-spacing: 0.5px; white-space: nowrap; }
.badge::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:0.7; }
.badge-disponivel  { background: rgba(77,122,86,0.12);  color: #3a6e42; }
.badge-locado      { background: rgba(45,107,150,0.12); color: #1a5478; }
.badge-reservado   { background: rgba(139,123,190,0.12);color: #6450a0; }
.badge-prev        { background: rgba(176,125,40,0.12); color: #8a5c10; }
.badge-corretiva   { background: rgba(181,64,58,0.12);  color: #942d28; }
.badge-aguardando  { background: rgba(120,130,140,0.12);color: #4a5a64; }
.badge-bloqueado   { background: rgba(80,80,80,0.1);    color: #4a4a4a; }
.badge-desativado  { background: rgba(120,120,120,0.08);color: #888; }
.badge-aberta      { background: rgba(45,107,150,0.12); color: #1a5478; }
.badge-em-andamento{ background: rgba(176,125,40,0.12); color: #8a5c10; }
.badge-concluida   { background: rgba(77,122,86,0.12);  color: #3a6e42; }
.badge-atrasada    { background: rgba(181,64,58,0.12);  color: #942d28; }
.badge-pendente    { background: rgba(120,130,140,0.1); color: #4a5a64; }
.badge-assinado    { background: rgba(77,122,86,0.12);  color: #3a6e42; }
.badge-recusado    { background: rgba(181,64,58,0.12);  color: #942d28; }
.badge-expirado    { background: rgba(80,80,80,0.1);    color: #555; }
.priority-alta  { color: var(--danger);  font-weight:700; font-size:11px; font-family:var(--font-head); }
.priority-media { color: var(--warning); font-weight:700; font-size:11px; font-family:var(--font-head); }
.priority-baixa { color: var(--success); font-weight:700; font-size:11px; font-family:var(--font-head); }

/* ── CARDS ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-light); gap: 8px; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--primary); letter-spacing: 0.3px; display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--secondary); }
.card-body { padding: 16px 18px; }

/* ── KPI CARDS ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; gap: 8px; }
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background: var(--primary); }
.kpi-card.green::before { background: var(--secondary); }
.kpi-card.orange::before { background: var(--warning); }
.kpi-card.red::before { background: var(--danger); }
.kpi-card.info::before { background: var(--info); }
.kpi-header { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-family: var(--font-head); font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.kpi-icon { width: 32px; height: 32px; border-radius: var(--radius); background: rgba(58,81,92,0.08); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 13px; }
.kpi-card.green .kpi-icon { background: rgba(125,154,127,0.12); color: var(--secondary-dark); }
.kpi-card.orange .kpi-icon { background: rgba(212,160,74,0.12); color: var(--warning); }
.kpi-card.red .kpi-icon { background: rgba(192,81,74,0.1); color: var(--danger); }
.kpi-card.info .kpi-icon { background: rgba(74,138,180,0.1); color: var(--info); }
.kpi-value { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--primary); line-height: 1; letter-spacing: -0.5px; }
.kpi-meta { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.kpi-trend { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head); font-size: 10px; font-weight: 700; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* ── CHART CARDS ── */
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.chart-card-title { font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--primary); letter-spacing: 0.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.chart-card-title i { color: var(--secondary); }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── TABLES ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead tr { background: var(--surface-2); }
th { padding: 10px 14px; text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1.5px solid var(--border); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-primary); vertical-align: middle; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: rgba(58,81,92,0.03); }
tbody tr:last-child td { border-bottom: none; }

/* ── FILTERS ── */
.filters-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 8px 12px; flex: 1; min-width: 200px; }
.search-box i { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.search-box input { border: none; background: none; outline: none; font-size: 13px; color: var(--text-primary); width: 100%; }
.filter-select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 12px; color: var(--text-primary); background: var(--surface); cursor: pointer; outline: none; transition: var(--transition); }
.filter-select:focus { border-color: var(--primary); }
.view-toggle { display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.view-toggle-btn { padding: 7px 12px; border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 12px; transition: var(--transition); }
.view-toggle-btn:hover { color: var(--primary); }
.view-toggle-btn.active { background: var(--primary); color: #fff; }

/* ── ALERTS ── */
.alert-strip { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: var(--radius); font-size: 12.5px; line-height: 1.5; border-left: 3px solid; }
.alert-strip i { margin-top: 1px; flex-shrink: 0; font-size: 13px; }
.alert-strip.danger  { background: var(--danger-bg);  border-color: var(--danger);  color: #7a2520; }
.alert-strip.warning { background: var(--warning-bg); border-color: var(--warning); color: #7a4e10; }
.alert-strip.success { background: var(--success-bg); border-color: var(--success); color: #2a5032; }
.alert-strip.info    { background: var(--info-bg);    border-color: var(--info);    color: #1a4a6a; }

/* ── PROGRESS ── */
.progress-bar-wrap { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--secondary); border-radius: 4px; transition: width 0.4s ease; }
.progress-bar-fill.warn   { background: var(--warning); }
.progress-bar-fill.danger { background: var(--danger); }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(15,20,24,0.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 640px; box-shadow: var(--shadow-xl); animation: slideUp 0.25s ease; margin: auto; }
.modal.modal-lg { max-width: 900px; }
.modal.modal-xl { max-width: 1100px; }
.modal.modal-sm { max-width: 420px; }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--primary); letter-spacing: 0.3px; }
.modal-close { width: 30px; height: 30px; border: none; background: var(--bg); border-radius: var(--radius); cursor: pointer; color: var(--text-muted); font-size: 13px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-body { padding: 20px; max-height: 68vh; overflow-y: auto; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ── FORMS ── */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-section-title { font-family: var(--font-head); font-weight: 700; font-size: 10px; color: var(--primary); letter-spacing: 1.5px; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1.5px solid var(--border-light); margin: 20px 0 14px; }
.form-section-title:first-child { margin-top: 0; }

/* ── CHECKLIST ── */
.checklist-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--bg); margin-bottom: 6px; transition: var(--transition); }
.checklist-item.ok  { background: rgba(77,122,86,0.06); border-color: rgba(77,122,86,0.3); }
.checklist-item.nok { background: rgba(181,64,58,0.06); border-color: rgba(181,64,58,0.3); }
.checklist-item-text { font-size: 12.5px; flex: 1; line-height: 1.4; }
.checklist-btns { display: flex; gap: 4px; flex-shrink: 0; }
.chk-btn { padding: 4px 10px; border-radius: 4px; font-size: 10px; font-weight: 700; font-family: var(--font-head); cursor: pointer; border: 1.5px solid; transition: var(--transition); letter-spacing: 0.5px; }
.chk-btn.ok  { border-color: #5a9e62; color: #5a9e62; background: transparent; }
.chk-btn.nok { border-color: #c05248; color: #c05248; background: transparent; }
.chk-btn.na  { border-color: #aaa; color: #888; background: transparent; }
.chk-btn.ok.active  { background: #5a9e62; color: #fff; }
.chk-btn.nok.active { background: #c05248; color: #fff; }
.chk-btn.na.active  { background: #999; color: #fff; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content:''; position:absolute; left:6px; top:0; bottom:0; width:2px; background: var(--border); }
.timeline-item { position: relative; padding: 12px 16px; background: var(--bg); border-radius: var(--radius); margin-bottom: 8px; border: 1px solid var(--border-light); }
.timeline-item::before { content:''; position:absolute; left:-18px; top:16px; width:10px; height:10px; border-radius:50%; background: var(--secondary); border: 2px solid var(--surface); }
.timeline-item.warning::before { background: var(--warning); }
.timeline-item.danger::before { background: var(--danger); }
.timeline-date { font-family: var(--font-head); font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 3px; }
.timeline-title { font-weight: 600; font-size: 12.5px; color: var(--text-primary); margin-bottom: 2px; }
.timeline-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ── DASHBOARD ── */
.dash-charts-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── EQUIP GRID ── */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.equip-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; }
.equip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.equip-card-top { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 14px 16px; text-align: center; }
.equip-card-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.15); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; margin: 0 auto 10px; }
.equip-card-name { color: #fff; font-weight: 700; font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
.equip-card-code { color: rgba(255,255,255,0.6); font-size: 10px; font-family: var(--font-head); margin-bottom: 8px; }
.equip-card-body { padding: 12px 16px; }
.equip-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.equip-row:last-child { border-bottom: none; }
.equip-row span { color: var(--text-muted); }
.equip-card-footer { padding: 10px 16px; border-top: 1px solid var(--border-light); display: flex; gap: 8px; background: var(--surface-2); }
.equip-card-footer .btn { flex: 1; justify-content: center; }

/* ── INSPECAO ── */
.insp-header { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--primary), var(--secondary-dark)); padding: 14px 16px; border-radius: var(--radius-md); margin-bottom: 16px; }
.insp-header-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(255,255,255,0.15); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.equip-name { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: #fff; }
.equip-code { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 2px; font-family: var(--font-head); }
.horim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.horim-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-align: center; }
.horim-card .lbl { font-family: var(--font-head); font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.horim-card input { width: 100%; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--primary); background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 8px; outline: none; }
.horim-card input:focus { border-color: var(--secondary); }

/* ── AGENDA ── */
.agenda-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.calendar-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.cal-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.cal-title { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: #fff; letter-spacing: 1px; }
.cal-nav-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: #fff; width: 30px; height: 30px; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; transition: var(--transition); }
.cal-nav-btn:hover { background: rgba(255,255,255,0.2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day-header { padding: 8px 4px; text-align: center; font-family: var(--font-head); font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.cal-day { min-height: 80px; padding: 6px 4px; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day-num { font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--text-muted); margin-bottom: 3px; text-align: right; padding-right: 2px; }
.cal-day.today { background: rgba(58,81,92,0.04); }
.cal-day.today .cal-day-num span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 11px; }
.cal-event { font-size: 9.5px; font-weight: 600; font-family: var(--font-head); padding: 2px 5px; border-radius: 3px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-event.prev    { background: rgba(212,160,74,0.18); color: #8a5c10; }
.cal-event.corret  { background: rgba(192,81,74,0.15); color: #8a2820; }
.cal-event.inspect { background: rgba(74,138,180,0.15); color: #1a4878; }
.cal-event.ok      { background: rgba(77,122,86,0.15); color: #2a5232; }

/* ── SETTINGS ── */
.settings-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.settings-section-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.settings-section-header i { font-size: 16px; color: var(--secondary); }
.settings-section-header h3 { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--primary); letter-spacing: 0.3px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--border-light); }
.settings-row:last-child { border-bottom: none; }
.settings-row .meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.toggle { position: relative; display: inline-flex; cursor: pointer; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider { position: relative; display: inline-block; width: 38px; height: 20px; background: #ccd6da; border-radius: 20px; transition: 0.3s; }
.toggle-slider::after { content:''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle input:checked + .toggle-slider { background: var(--secondary); }
.toggle input:checked + .toggle-slider::after { transform: translateX(18px); }

/* ── PLANO DE MANUTENÇÃO ── */
.plano-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 500px; }
.plano-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.plano-list-header { padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-family: var(--font-head); font-weight: 700; font-size: 11px; color: var(--primary); letter-spacing: 0.5px; display:flex;align-items:center;gap:8px; }
.plano-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: var(--transition); }
.plano-item:last-child { border-bottom: none; }
.plano-item:hover { background: var(--bg); }
.plano-item.active { background: rgba(58,81,92,0.06); border-left: 3px solid var(--primary); padding-left: 11px; }
.plano-item-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; background: rgba(58,81,92,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 14px; }
.plano-item-name { font-weight: 600; font-size: 12.5px; }
.plano-item-sub  { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.plano-detail    { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.plano-task-row { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border-light); font-size: 12.5px; }
.plano-task-row:last-child { border-bottom: none; }
.plano-task-type { font-family: var(--font-head); font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 12px; letter-spacing: 0.5px; }
.type-prev { background: rgba(212,160,74,0.15); color: #8a5c10; }
.type-corr { background: rgba(192,81,74,0.12); color: #8a2820; }
.type-pred { background: rgba(74,138,180,0.12); color: #1a4878; }
.type-insp { background: rgba(125,154,127,0.15); color: #3a5c42; }

/* ── MEDIÇÃO ── */
.medicao-kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 12px; margin-bottom: 16px; }
.boletim-preview { background: #fff; border: 1px solid #ccc; border-radius: var(--radius); padding: 32px; font-size: 12px; line-height: 1.6; max-width: 860px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.boletim-header { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 2px solid var(--primary); padding-bottom: 16px; margin-bottom: 16px; gap: 12px; }
.boletim-logo img { width: 130px; }
.boletim-title-block { text-align: center; flex: 1; }
.boletim-title-block h2 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; }
.boletim-num { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.boletim-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.boletim-info-block { background: #f7f9fa; border: 1px solid #e0e6e9; border-radius: 6px; padding: 10px 12px; }
.boletim-info-block .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: #7a9099; font-weight: 700; }
.boletim-info-block .val { font-size: 13px; font-weight: 600; color: #1e2d33; margin-top: 2px; }
.boletim-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-bottom: 16px; }
.boletim-table th { background: var(--primary); color: #fff; padding: 7px 8px; text-align: center; font-family: var(--font-head); font-size: 9px; letter-spacing: 0.8px; text-transform: uppercase; }
.boletim-table td { padding: 6px 8px; border: 1px solid #dce3e6; text-align: center; }
.boletim-table tr:nth-child(even) { background: #f7f9fa; }
.boletim-totals td { background: var(--primary) !important; color: #fff; font-weight: 700; }
.boletim-sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.boletim-sign-block { border-top: 1.5px solid #333; padding-top: 8px; text-align: center; font-size: 11px; }
.boletim-sign-block p { color: #555; }
.boletim-watermark { text-align: center; margin-top: 20px; font-size: 9px; color: #b0b8bc; letter-spacing: 1px; border-top: 1px solid #edf1f3; padding-top: 10px; }

/* ── ADMIN TABS ── */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--border); overflow-x: auto; }
.admin-tab { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border: none; background: none; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); cursor: pointer; transition: var(--transition); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.admin-tab i { font-size: 12px; }
.admin-tab:hover { color: var(--primary); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── TOASTS ── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9998; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; min-width: 260px; max-width: 380px; box-shadow: var(--shadow-lg); pointer-events: all; animation: toastIn 0.3s ease; font-family: var(--font-body); border-left: 3px solid; }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }
.toast.out { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut { to{opacity:0;transform:translateX(20px)} }
.toast i { font-size: 15px; flex-shrink: 0; }
.toast-success { background: #edf7ef; color: #1e4d26; border-color: #5a9e62; }
.toast-success i { color: #5a9e62; }
.toast-error   { background: #fdf1f0; color: #7a2520; border-color: #c05248; }
.toast-error i { color: #c05248; }
.toast-warning { background: #fdf6e8; color: #7a4e10; border-color: #c8902a; }
.toast-warning i { color: #c8902a; }
.toast-info    { background: #edf4fd; color: #1a3e6a; border-color: #4a8ab4; }
.toast-info i  { color: #4a8ab4; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state i { font-size: 40px; margin-bottom: 12px; opacity: 0.35; display: block; }
.empty-state h3 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: 12.5px; }

/* ── AUDIT ── */
.audit-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.audit-icon { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.audit-create { background: rgba(77,122,86,0.12); color: #3a6e42; }
.audit-update { background: rgba(74,138,180,0.12); color: #1a4878; }
.audit-delete { background: rgba(181,64,58,0.12); color: #942d28; }
.audit-login  { background: rgba(58,81,92,0.1); color: var(--primary); }
.audit-time { font-size: 10px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* ── DOCSIGN STATUS ── */
.sign-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; font-family: var(--font-head); }
.sign-pendente  { background: rgba(176,125,40,0.12); color: #8a5c10; }
.sign-assinado  { background: rgba(77,122,86,0.12); color: #3a6e42; }
.sign-recusado  { background: rgba(181,64,58,0.12); color: #942d28; }
.sign-expirado  { background: rgba(80,80,80,0.1); color: #555; }

/* ── PRINT ── */
@media print {
  #splash-screen, #login-page, .sidebar, .top-bar, .modal-overlay,
  #toast-container, .sidebar-overlay, .btn-hamburger, .filters-bar,
  .top-bar-actions, .admin-tabs { display: none !important; }
  body { background: #fff; }
  .page-content { padding: 0; overflow: visible; }
  .boletim-preview { box-shadow: none; border: none; }
  .card { box-shadow: none; }
}

/* ── RESPONSIVE 1200px ── */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
  .report-grid { grid-template-columns: 1fr; }
  .dash-charts-row { grid-template-columns: 1fr 1fr; }
  .plano-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE 1024px ── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .agenda-grid { grid-template-columns: 1fr; }
  .agenda-sidebar-col { display: none; }
}

/* ── RESPONSIVE 768px ── */
@media (max-width: 768px) {
  #login-page { flex-direction: column; }
  .login-visual { width: 100%; min-height: auto; padding: 32px 24px 28px; flex: none; }
  .login-logo-img { width: 150px; }
  .login-stats { gap: 20px; }
  .login-form-area { padding: 28px 20px; }
  .login-profiles { grid-template-columns: 1fr 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); z-index: 200; }
  .sidebar.open { transform: translateX(0); }
  .btn-hamburger { display: flex; }
  .breadcrumb { display: none; }
  .btn-label { display: none; }
  #top-action-btn { padding: 8px; width: 36px; height: 36px; justify-content: center; }
  .top-bar { padding: 0 12px; }
  .top-bar-title h2 { font-size: 14px; }
  .page-content { padding: 12px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-value { font-size: 22px; }
  .dash-charts-row { grid-template-columns: 1fr; }
  .dash-bottom-row { grid-template-columns: 1fr; }
  .equip-grid { grid-template-columns: 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .horim-row { grid-template-columns: 1fr 1fr; }
  .boletim-info-grid { grid-template-columns: 1fr; }
  .boletim-sign-grid { grid-template-columns: 1fr; }
  .medicao-kpi-grid { grid-template-columns: 1fr 1fr; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 580px; }
  .modal-overlay { padding: 12px 0 0; align-items: flex-end; }
  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 90vh; }
  .modal-body { max-height: 60vh; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1 1 auto; justify-content: center; }
  .boletim-preview { padding: 16px; }
  .boletim-header { flex-direction: column; gap: 10px; }
}

/* ── RESPONSIVE 480px ── */
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-card { padding: 12px 14px; }
  .kpi-value { font-size: 20px; }
  .page-content { padding: 10px; }
  .profile-chip { padding: 8px 4px; font-size: 10px; }
  .login-visual { padding: 24px 16px; }
  .login-stats .num { font-size: 20px; }
}
