/* BLTech — tema sobre o Mazer. Cor da marca extraída do logo: #003F51 */
:root {
  --blt-primary: #003f51;
  --blt-primary-dark: #002b38;
  --blt-primary-600: #0a5a72;
  --blt-primary-300: #4f8798;
  --blt-accent: #19a7c7;
  --blt-tint: #e8f1f4;
  --blt-tint-2: #d3e4ea;
  --bs-primary: #003f51;
  --bs-primary-rgb: 0, 63, 81;
  --bs-link-color: #003f51;
  --bs-link-hover-color: #0a5a72;
}
body { font-family: 'Nunito', system-ui, sans-serif; }
a { color: var(--blt-primary); }
a:hover { color: var(--blt-primary-600); }
.text-primary { color: var(--blt-primary) !important; }
.bg-primary { background-color: var(--blt-primary) !important; }
.border-primary { border-color: var(--blt-primary) !important; }
.btn-primary { background-color: var(--blt-primary); border-color: var(--blt-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-check:checked + .btn-primary {
  background-color: var(--blt-primary-600) !important; border-color: var(--blt-primary-600) !important; color: #fff;
}
.btn-outline-primary { color: var(--blt-primary); border-color: var(--blt-primary); }
.btn-outline-primary:hover, .btn-outline-primary:active { background-color: var(--blt-primary); border-color: var(--blt-primary); color: #fff; }
.btn-light-primary { background: var(--blt-tint); color: var(--blt-primary); border: 0; }
.btn-light-primary:hover { background: var(--blt-tint-2); color: var(--blt-primary-dark); }
.form-control:focus, .form-select:focus { border-color: var(--blt-primary-300); box-shadow: 0 0 0 .2rem rgba(0, 63, 81, .15); }
.form-check-input:checked { background-color: var(--blt-primary); border-color: var(--blt-primary); }
.page-item.active .page-link { background-color: var(--blt-primary); border-color: var(--blt-primary); }
.page-link { color: var(--blt-primary); }
.nav-pills .nav-link.active, .nav-tabs .nav-link.active { color: var(--blt-primary); }
.progress-bar { background-color: var(--blt-primary); }
.bg-orange { background-color: #e8590c !important; color: #fff; }
.badge.bg-light { color: #333; }

/* Sidebar escura com o azul-petróleo da marca */
#sidebar .sidebar-wrapper { background: var(--blt-primary); }
#sidebar .sidebar-header { padding: 1.4rem 1.5rem 1rem; }
#sidebar .sidebar-header .logo img { height: 92px; width: auto; }
#sidebar .sidebar-menu .menu .sidebar-title { color: rgba(255, 255, 255, .45); }
#sidebar .sidebar-menu .menu .sidebar-link { color: rgba(255, 255, 255, .82); }
#sidebar .sidebar-menu .menu .sidebar-link i, #sidebar .sidebar-menu .menu .sidebar-link svg { color: rgba(255, 255, 255, .82); }
#sidebar .sidebar-menu .menu .sidebar-item:not(.active) > .sidebar-link:hover { background: rgba(255, 255, 255, .08); }
#sidebar .sidebar-menu .menu .sidebar-item.active > .sidebar-link {
  background: #fff; color: var(--blt-primary); font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
#sidebar .sidebar-menu .menu .sidebar-item.active > .sidebar-link i,
#sidebar .sidebar-menu .menu .sidebar-item.active > .sidebar-link span { color: var(--blt-primary) !important; }
#sidebar .sidebar-menu .menu .sidebar-link:hover i { color: #fff; }
#sidebar .sidebar-menu .menu .sidebar-item.active:hover > .sidebar-link i { color: var(--blt-primary); }
#sidebar .sidebar-toggler, #sidebar .toggler a { color: #fff; }
.sidebar-user { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: #fff; margin-top: 1rem; }
.sidebar-user small { color: rgba(255,255,255,.6); }

.page-heading h3 { color: var(--blt-primary-dark); font-weight: 800; }
.card { border: 0; box-shadow: 0 2px 12px rgba(0, 43, 56, .07); border-radius: .7rem; }
.card .card-header { border-bottom: 1px solid var(--blt-tint); }
.card-header .card-title { color: var(--blt-primary-dark); }
.table thead th { background: var(--blt-tint); color: var(--blt-primary-dark); border-bottom: 0; font-weight: 700; white-space: nowrap; }
.table-hover > tbody > tr:hover > * { background: #f3f8fa; }
.breadcrumb-header .breadcrumb-item.active { color: var(--blt-primary-300); }

.stats-icon { width: 3rem; height: 3rem; border-radius: .7rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; }
.stats-icon.brand { background: var(--blt-primary); }
.stats-icon.accent { background: var(--blt-accent); }
.stats-icon.ok { background: #1f9d6b; }
.stats-icon.warn { background: #e0a100; }
.stats-icon.bad { background: #cf3c3c; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--blt-primary-dark); line-height: 1.1; }
.stat-label { color: #6b7f88; font-size: .85rem; }

.risk-pill { display: inline-block; min-width: 2.6rem; text-align: center; padding: .15rem .55rem; border-radius: 1rem; font-weight: 700; font-size: .8rem; color: #fff; }
.risk-pill.success { background: #1f9d6b; } .risk-pill.warning { background: #e0a100; } .risk-pill.danger { background: #cf3c3c; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.secret-box { background: #0b1f26; color: #d6f2fa; border-radius: .6rem; padding: 1rem; overflow: auto; white-space: pre; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.filters .form-control, .filters .form-select { min-width: 150px; }
.kv dt { color: #6b7f88; font-weight: 600; font-size: .82rem; }
.kv dd { margin-bottom: .7rem; }
.desc-clip { max-width: 480px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* abas/pílulas na cor da marca */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background-color: var(--blt-primary); color: #fff; box-shadow: 0 2px 10px rgba(0, 63, 81, .35); }
.nav-pills .nav-link { color: var(--blt-primary); }
.alert-light-primary { background-color: var(--blt-tint); color: var(--blt-primary-dark); }


/* ═══════════════════════════════════════════════════════════════
   MODELO VISUAL v2 (01/10/2026) — mesma linguagem do login/home do
   Portal EAD, na cor do logo BLTech (#003f51). Só aparência.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --blt-radius: 14px;
  --blt-radius-sm: 10px;
  --blt-border: #dbe7ec;
  --blt-bg: #f1f6f8;
  --blt-ink: #12303a;
  --blt-muted: #587681;
  --blt-shadow: 0 1px 2px rgba(0,43,56,.05), 0 4px 16px rgba(0,43,56,.07);
  --blt-shadow-lg: 0 14px 40px rgba(0,43,56,.16);
  --blt-ring: 0 0 0 4px rgba(25,167,199,.18);
}
body { background: var(--blt-bg); color: var(--blt-ink); }
#main { background: transparent; }
:focus-visible { outline: 3px solid rgba(25,167,199,.45); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ── Sidebar ── */
#sidebar .sidebar-wrapper {
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(25,167,199,.22), transparent 70%),
    linear-gradient(180deg, #004a60 0%, #003f51 45%, #002b38 100%);
  box-shadow: 4px 0 28px rgba(0,26,36,.25);
}
#sidebar .sidebar-header { padding: 1.1rem 1.3rem .9rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .6rem; }
#sidebar .sidebar-header .logo { display: flex; align-items: center; gap: .65rem; min-width: 0; }
#sidebar .sidebar-header .logo img { height: 38px; width: auto; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
#sidebar .sidebar-header .brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; overflow: hidden; }
#sidebar .sidebar-header .brand-text strong { color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sidebar .sidebar-header .brand-text small { color: rgba(255,255,255,.55); font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
#sidebar .sidebar-menu .menu .sidebar-title { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 1.1rem 1.6rem .35rem; }
#sidebar .sidebar-menu .menu { padding: 0 .9rem; }
#sidebar .sidebar-menu .menu .sidebar-link { display: flex; align-items: center; gap: .7rem; border-radius: 11px; padding: .62rem .9rem; transition: background .15s, color .15s; position: relative; }
#sidebar .sidebar-menu .menu .sidebar-link i { width: 1.15rem; flex-shrink: 0; text-align: center; font-size: 1.02rem; }
#sidebar .sidebar-menu .menu .sidebar-link span { margin-left: 0; font-size: .86rem; font-weight: 600; letter-spacing: .01em; }
#sidebar .sidebar-menu .menu .sidebar-item:not(.active) > .sidebar-link:hover { background: rgba(255,255,255,.1); color: #fff; }
#sidebar .sidebar-menu .menu .sidebar-item.active > .sidebar-link {
  background: rgba(255,255,255,.15); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
#sidebar .sidebar-menu .menu .sidebar-item.active > .sidebar-link::before {
  content: ''; position: absolute; left: -.9rem; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: #4cc3dc;
}
#sidebar .sidebar-menu .menu .sidebar-item.active > .sidebar-link i,
#sidebar .sidebar-menu .menu .sidebar-item.active > .sidebar-link span { color: #fff !important; }
#sidebar .sidebar-menu .menu .sidebar-item.active:hover > .sidebar-link i { color: #fff; }

.sidebar-user { margin: 1rem .9rem 1.2rem; padding: .9rem; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(0,0,0,.14); }
.sidebar-user .su-top { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.sidebar-user .su-avatar, .topbar .tb-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .82rem; letter-spacing: .03em; color: #fff;
  background: linear-gradient(135deg, #2aa7c8, #0a5a72); box-shadow: 0 0 0 2px rgba(255,255,255,.22);
}
/* ── Topo (barra) ── */
#main { padding-top: 0; }
header.topbar {
  position: sticky; top: 0; z-index: 50; margin: 0 -1.5rem 1.4rem; padding: .7rem 1.5rem;
  display: flex; align-items: center; gap: .8rem;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--blt-border), 0 6px 20px rgba(0,43,56,.04);
}
header.topbar .burger-btn { color: var(--blt-primary); line-height: 1; }
header.topbar .tb-brand { font-weight: 800; color: var(--blt-primary); letter-spacing: .03em; display: flex; align-items: center; gap: .55rem; }
header.topbar .tb-brand::before { content: ''; width: 4px; height: 1.1em; border-radius: 3px; background: linear-gradient(180deg, var(--blt-accent), var(--blt-primary)); }
header.topbar .tb-spacer { flex: 1; }
header.topbar .tb-user { display: flex; align-items: center; gap: .6rem; padding: .25rem .8rem .25rem .3rem; border-radius: 99px; background: var(--blt-tint); cursor: pointer; transition: background .15s; }
header.topbar .tb-user-dd.show .tb-user, header.topbar .tb-user:hover { background: var(--blt-tint-2); }
header.topbar .tb-avatar { width: 32px; height: 32px; font-size: .72rem; box-shadow: none; }
header.topbar .tb-user b { font-size: .82rem; color: var(--blt-ink); line-height: 1.1; display: block; }
header.topbar .tb-user small { font-size: .7rem; color: var(--blt-muted); line-height: 1; }
header.topbar .tb-user-caret { font-size: .68rem; color: var(--blt-muted); margin-left: -.1rem; }
.tb-user-menu { min-width: 230px; padding: .5rem; margin-top: .6rem !important; }
.tb-user-menu .dropdown-header { padding: .6rem .75rem .3rem; }
.tb-user-menu .dropdown-header .fw-bold { font-size: .88rem; color: var(--blt-ink); }
.tb-user-menu .dropdown-divider { margin: .35rem 0; border-color: var(--blt-border); }
.tb-user-menu .dropdown-item { display: flex; align-items: center; border-radius: 8px; padding: .55rem .75rem; font-weight: 700; font-size: .86rem; color: var(--blt-ink); }
.tb-user-menu .dropdown-item:hover, .tb-user-menu .dropdown-item:focus { background: var(--blt-tint); color: var(--blt-ink); }
.tb-user-menu .dropdown-item.text-danger { color: #cf3c3c; }
.tb-user-menu .dropdown-item.text-danger:hover { background: #fde7e7; color: #a12828; }
.tb-user-menu form { margin: 0; }
.tb-user-menu form .dropdown-item { width: 100%; text-align: left; background: none; border: 0; }

/* ── Identidade do usuário no rodapé do menu lateral (sem botões, ações ficam no topo) ── */
.sidebar-user { padding: .9rem; }
.sidebar-user .su-top { padding: 0; }

/* ── Cabeçalho de página ── */
.page-heading h3 { font-size: 1.6rem; letter-spacing: -.01em; }
.page-heading .text-subtitle { color: var(--blt-muted) !important; }
.breadcrumb-header .breadcrumb { margin-bottom: 0; }
.breadcrumb-header .breadcrumb-item a { font-weight: 600; }

/* ── Cards ── */
.card { border: 1px solid var(--blt-border); border-radius: var(--blt-radius); box-shadow: var(--blt-shadow); overflow: hidden; }
.card .card-header { background: transparent; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--blt-tint); }
.card .card-header .card-title { font-size: 1.02rem; font-weight: 800; }
.card .card-body { padding: 1.3rem 1.4rem; }
.card .card-body.p-0 { padding: 0; }
a.text-decoration-none > .card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.text-decoration-none > .card:hover { transform: translateY(-2px); box-shadow: var(--blt-shadow-lg); border-color: var(--blt-primary-300); }

.stats-icon { width: 3.2rem; height: 3.2rem; border-radius: 14px; box-shadow: 0 6px 14px rgba(0,43,56,.18); float: none; }
.stats-icon.brand { background: linear-gradient(135deg, #0a5a72, var(--blt-primary)); }
.stats-icon.accent { background: linear-gradient(135deg, #34c0de, #1593b3); }
.stats-icon.ok { background: linear-gradient(135deg, #2bb783, #1f9d6b); }
.stats-icon.warn { background: linear-gradient(135deg, #f0b814, #e0a100); }
.stats-icon.bad { background: linear-gradient(135deg, #e25a5a, #cf3c3c); }
/* o Mazer (app.css) trava o ícone numa caixa de 1rem x 1rem menor que o font-size do ícone (1.4rem);
   o glifo "transbordava" pro canto inferior direito dessa caixa em vez de ficar centralizado */
.stats-icon i { width: auto; height: auto; line-height: 1; }
.stat-value { font-size: 1.75rem; letter-spacing: -.02em; }
.stat-label { color: var(--blt-muted); font-weight: 600; }

/* ── Tabelas ── */
.table > :not(caption) > * > * { padding: .8rem 1.1rem; }
.table thead th { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--blt-muted); background: var(--blt-tint); }
.table thead th:first-child { border-top-left-radius: 0; }
.table > tbody > tr > td { border-color: var(--blt-tint); }
.table-hover > tbody > tr:hover > * { background: #f4fafc; }
.card-body.p-0 .table { margin-bottom: 0; }

/* ── Botões / campos ── */
.btn { border-radius: var(--blt-radius-sm); font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-sm { border-radius: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--blt-primary) 0%, #0a5a72 100%); box-shadow: 0 4px 14px rgba(0,63,81,.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,63,81,.36); }
.btn-primary:active { transform: none; }
.btn-outline-primary:hover { transform: translateY(-1px); }
.form-control, .form-select { border-radius: var(--blt-radius-sm); border: 1.5px solid #d3e0e6; background-color: #fbfdfe; padding-top: .55rem; padding-bottom: .55rem; transition: border-color .15s, box-shadow .15s, background .15s; }
.form-control:hover, .form-select:hover { border-color: #b4c9d2; }
.form-control:focus, .form-select:focus { background: #fff; border-color: var(--blt-accent); box-shadow: var(--blt-ring); }
.form-label { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blt-muted); }
.input-group-text { border-radius: var(--blt-radius-sm); }
.progress { border-radius: 99px; background: var(--blt-tint-2); }
.progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--blt-primary-600), var(--blt-accent)); }
.progress-bar.bg-danger { background: #cf3c3c !important; } .progress-bar.bg-warning { background: #e0a100 !important; }

/* ── Badges / alertas / abas ── */
.badge { border-radius: 99px; font-weight: 700; padding: .38em .75em; letter-spacing: .01em; }
.risk-pill { box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.alert { border: 0; border-left: 4px solid currentColor; border-radius: var(--blt-radius-sm); box-shadow: var(--blt-shadow); }
.nav-pills .nav-link { border-radius: var(--blt-radius-sm); font-weight: 700; }
.secret-box { border-radius: var(--blt-radius-sm); border: 1px solid #12404f; }
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--blt-shadow-lg); }
.dropdown-menu { border: 1px solid var(--blt-border); border-radius: 12px; box-shadow: var(--blt-shadow-lg); }
.pagination .page-link { border-radius: 8px; margin: 0 2px; border: 0; }
footer .footer { border-top: 1px solid var(--blt-border); padding-top: 1rem; font-size: .8rem; }

/* ── Páginas de erro ── */
.error-card { text-align: center; padding: 3.5rem 1.5rem; }
.error-card .err-code {
  width: 96px; height: 96px; margin: 0 auto 1.3rem; border-radius: 26px; display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 800; color: #fff; background: linear-gradient(145deg, var(--blt-primary) 0%, var(--blt-primary-600) 100%); box-shadow: 0 14px 34px rgba(0,63,81,.32);
}
.error-card h2 { color: var(--blt-primary-dark); font-weight: 800; }

/* ── Login (substitui o layout em duas colunas) ── */
body.auth-page {
  min-height: 100dvh; margin: 0; padding: 1rem; display: flex; align-items: center; justify-content: center; position: relative;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(25,167,199,.38), transparent 60%),
    radial-gradient(700px 500px at 92% 96%, rgba(10,90,114,.55), transparent 60%),
    linear-gradient(160deg, #004459 0%, #002b38 100%);
}
body.auth-page::before { /* trama de hexágonos, ecoa o cubo do logo */
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'><path d='M28 2 54 17v30L28 62 2 47V17zM28 62v34M2 47 0 48M54 47l2 1' fill='none' stroke='white' stroke-width='1.4'/></svg>");
  background-size: 56px 98px;
}
.login-card {
  position: relative; z-index: 1; width: 420px; max-width: 100%; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.98);
  box-shadow: 0 28px 70px rgba(0,14,22,.5), 0 4px 14px rgba(0,14,22,.2); animation: loginIn .45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes loginIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.login-head {
  position: relative; text-align: center; padding: 2rem 1.5rem 2.7rem;
  background:
    radial-gradient(260px 160px at 88% -10%, rgba(255,255,255,.2), transparent 70%),
    radial-gradient(200px 140px at 0% 110%, rgba(25,167,199,.5), transparent 70%),
    linear-gradient(145deg, #003f51 0%, #0a5a72 60%, #1593b3 100%);
}
.login-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: #fff; border-radius: 22px 22px 0 0; }
.login-head img { height: 60px; width: auto; display: block; margin: 0 auto .6rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,.28)); }
.login-head .pill {
  display: inline-block; padding: .22rem .85rem; border-radius: 99px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24);
}
.login-body { padding: .5rem 2rem 2rem; }
.login-body h1 { font-size: 1.35rem; font-weight: 800; text-align: center; color: var(--blt-primary-dark); margin: .3rem 0 .15rem; letter-spacing: -.01em; }
.login-body .lead { text-align: center; color: var(--blt-muted); font-size: .88rem; margin-bottom: 1.4rem; }
.login-field { position: relative; margin-bottom: 1.05rem; }
.login-field label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #3d5a65; margin-bottom: .35rem; }
.login-field .ico { position: absolute; left: .95rem; bottom: .78rem; color: #8aa2ab; font-size: 1rem; pointer-events: none; transition: color .15s; }
.login-field:focus-within .ico { color: var(--blt-accent); }
.login-field input { width: 100%; padding: .75rem 2.7rem .75rem 2.65rem; font-size: .95rem; color: #0f2a33; background: #f5f9fb; border: 1.5px solid #d3e0e6; border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.login-field input:hover { border-color: #b4c9d2; }
.login-field input:focus { background: #fff; border-color: var(--blt-accent); box-shadow: var(--blt-ring); }
.login-field .toggle-pw { position: absolute; right: .55rem; bottom: .38rem; width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: #8aa2ab; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.login-field .toggle-pw:hover { color: var(--blt-primary); background: var(--blt-tint); }
.login-btn {
  position: relative; overflow: hidden; display: block; width: 100%; margin-top: 1.4rem; padding: .85rem 1rem; border: 0; border-radius: 12px;
  font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #003f51 0%, #06607a 60%, #1593b3 100%); box-shadow: 0 8px 22px rgba(0,63,81,.36); transition: transform .15s, box-shadow .15s, filter .15s;
}
.login-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.24) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,63,81,.46); filter: brightness(1.04); }
.login-btn:hover::after { transform: translateX(120%); }
.login-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.login-foot { position: relative; z-index: 1; margin-top: 1.1rem; text-align: center; font-size: .75rem; color: rgba(255,255,255,.7); width: 100%; }
body.auth-page { flex-direction: column; }
@media (max-width: 460px) { .login-body { padding: .4rem 1.3rem 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .login-card { animation: none; } }
.min-w-0{min-width:0}

/* ── Recuperação de senha ── */
.login-link { font-size: .82rem; font-weight: 700; color: var(--blt-primary-600); text-decoration: none; }
.login-link:hover { color: var(--blt-primary); text-decoration: underline; }
.login-ghost { display: block; width: 100%; padding: .7rem 1rem; text-align: center; font-weight: 700; font-size: .88rem; color: var(--blt-primary); background: transparent; border: 1.5px solid #d3e0e6; border-radius: 12px; text-decoration: none; transition: border-color .15s, background .15s; }
.login-ghost:hover { border-color: var(--blt-accent); background: var(--blt-tint); color: var(--blt-primary); }
a.login-btn { color: #fff; } a.login-btn:hover { color: #fff; }
.login-note { text-align: center; font-size: .8rem; color: var(--blt-muted); margin: -.4rem 0 1.3rem; }
.login-state { width: 76px; height: 76px; margin: .6rem auto 1rem; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; box-shadow: 0 12px 28px rgba(0,43,56,.25); }
.login-state.ok { background: linear-gradient(135deg, #2bb783, #1f9d6b); }
.login-state.bad { background: linear-gradient(135deg, #e25a5a, #cf3c3c); }
.pw-meter { height: 6px; border-radius: 99px; background: var(--blt-tint-2); overflow: hidden; margin: -.4rem 0 .35rem; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .2s ease, background .2s ease; }
.pw-hint { font-size: .76rem; color: var(--blt-muted); margin-bottom: 1.05rem; }
.login-body .alert { font-size: .86rem; }
.login-card, .login-card *, .login-card *::before, .login-card *::after { box-sizing: border-box; }

/* ── Portal do cliente: validade da licença ── */
header.topbar .tb-lic { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .85rem; border-radius: 99px; font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
header.topbar .tb-lic small { font-weight: 600; opacity: .8; }
header.topbar .tb-lic.ok { color: #0a6b49; background: #e3f6ee; border-color: #bfe8d6; }
header.topbar .tb-lic.warn { color: #8a5d00; background: #fff4d6; border-color: #f3dc9b; }
header.topbar .tb-lic.bad { color: #a12828; background: #fde7e7; border-color: #f4c2c2; }
.lic-hero { border-left: 5px solid var(--blt-accent); }
.lic-hero.ok { border-left-color: #1f9d6b; } .lic-hero.warn { border-left-color: #e0a100; } .lic-hero.bad { border-left-color: #cf3c3c; }
.lic-title { font-size: 1.3rem; font-weight: 800; color: var(--blt-primary-dark); line-height: 1.15; }
.lic-date { white-space: nowrap; font-size: 1.35rem; font-weight: 800; color: var(--blt-primary-dark); line-height: 1.15; }
.lic-note { font-size: .86rem; padding: .7rem .9rem; border-radius: var(--blt-radius-sm); background: var(--blt-tint); color: var(--blt-ink); }

/* v3: abas em <button> (painel Oracle) sem borda do navegador */
.nav-pills .nav-link { border: 0; background: transparent; }
.nav-pills .nav-link:hover:not(.active) { background: rgba(0, 63, 81, .08); }

/* ===== Menu retrátil + responsivo (01/10/2026; trilha de ícones em 05/10/2026) ===== */
:root { --blt-sb-w: 248px; --blt-sb-w-mini: 72px; }
header.topbar .burger-btn { display: inline-flex !important; align-items: center; margin-right: .4rem; cursor: pointer; border-radius: .5rem; padding: .1rem .35rem; }
header.topbar .burger-btn:hover { background: var(--blt-tint); }
/* botão de recolher (X) do cabeçalho do menu — compacto */
#sidebar .toggler a.sidebar-hide {
  display: flex !important; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 7px; color: rgba(255,255,255,.7); transition: background .15s, color .15s;
}
#sidebar .toggler a.sidebar-hide:hover { background: rgba(255,255,255,.14); color: #fff; }
#sidebar .toggler a.sidebar-hide i { font-size: .9rem; }
#sidebar .sidebar-wrapper { z-index: 60; width: var(--blt-sb-w); }
html.sb-ready #sidebar .sidebar-wrapper { transition: left .25s ease, width .2s ease; }
html.sb-ready #main { transition: margin-left .25s ease; }
#sb-backdrop { display: none; }
@media (min-width: 1200px) { #sidebar:not(.active) ~ #sb-backdrop { display: none; } }

@media (min-width: 1200px) {
  #main { margin-left: var(--blt-sb-w); }

  /* "recolhido" no desktop = trilha de ícones (não some da tela); o nome do item aparece
     num mini-dropdown ao passar o mouse ou focar no ícone */
  html.sb-closed #sidebar .sidebar-wrapper, #sidebar:not(.active) .sidebar-wrapper { left: 0; width: var(--blt-sb-w-mini); overflow: visible; }
  html.sb-closed #main, #sidebar:not(.active) ~ #main { margin-left: var(--blt-sb-w-mini); }

  html.sb-closed #sidebar .sidebar-header .d-flex, #sidebar:not(.active) .sidebar-header .d-flex { justify-content: center; }
  html.sb-closed #sidebar .sidebar-header .brand-text, html.sb-closed #sidebar .toggler,
  #sidebar:not(.active) .sidebar-header .brand-text, #sidebar:not(.active) .toggler { display: none; }

  html.sb-closed #sidebar .sidebar-menu .menu, #sidebar:not(.active) .sidebar-menu .menu { padding: 0 .5rem; }
  html.sb-closed #sidebar .sidebar-menu .menu .sidebar-title,
  #sidebar:not(.active) .sidebar-menu .menu .sidebar-title {
    height: 1px; padding: 0; margin: .9rem .6rem; font-size: 0; overflow: hidden; background: rgba(255,255,255,.14);
  }
  html.sb-closed #sidebar .sidebar-menu .menu .sidebar-link,
  #sidebar:not(.active) .sidebar-menu .menu .sidebar-link { justify-content: center; padding: .62rem; }
  html.sb-closed #sidebar .sidebar-menu .menu .sidebar-item.active > .sidebar-link::before,
  #sidebar:not(.active) .sidebar-menu .menu .sidebar-item.active > .sidebar-link::before { left: -.5rem; }

  html.sb-closed #sidebar .sidebar-menu .menu .sidebar-link span,
  #sidebar:not(.active) .sidebar-menu .menu .sidebar-link span {
    position: absolute; left: calc(100% + .7rem); top: 50%; margin: 0;
    background: var(--blt-primary-dark); color: #fff; padding: .5rem .8rem; border-radius: 9px;
    font-size: .82rem; font-weight: 700; white-space: nowrap; box-shadow: var(--blt-shadow-lg);
    opacity: 0; pointer-events: none; transition: opacity .12s ease, transform .12s ease;
    transform: translateY(-50%) translateX(-4px); z-index: 70;
  }
  html.sb-closed #sidebar .sidebar-menu .menu .sidebar-item:hover > .sidebar-link span,
  html.sb-closed #sidebar .sidebar-menu .menu .sidebar-link:focus span,
  #sidebar:not(.active) .sidebar-menu .menu .sidebar-item:hover > .sidebar-link span,
  #sidebar:not(.active) .sidebar-menu .menu .sidebar-link:focus span {
    opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0);
  }

  html.sb-closed .sidebar-user, #sidebar:not(.active) .sidebar-user { margin: 1rem .5rem 1.2rem; padding: .6rem; display: flex; justify-content: center; }
  html.sb-closed .sidebar-user .min-w-0, #sidebar:not(.active) .sidebar-user .min-w-0 { display: none; }
}

@media (max-width: 1199px) {
  #sidebar .sidebar-wrapper { position: fixed; top: 0; bottom: 0; height: 100vh; overflow-y: auto; width: 240px; }
  #sidebar.active .sidebar-wrapper { box-shadow: 0 0 30px rgba(0,0,0,.25); }
  #sidebar.active ~ #sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,30,40,.45); z-index: 55; }
  html.sb-closed #sidebar .sidebar-wrapper { left: -240px; }
  #main { padding: 1rem; }
  header.topbar { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 575px) {
  #main { padding: .75rem; }
  .page-heading h3 { font-size: 1.3rem; }
  header.topbar { margin-left: -.75rem; margin-right: -.75rem; padding-left: .75rem; padding-right: .75rem; }
  .card .card-header, .card .card-body { padding-left: 1rem; padding-right: 1rem; }
  .stat-value { font-size: 1.35rem; }
  .table { font-size: .85rem; }
}
/* tabelas largas rolam dentro do card em vez de estourar a página */
.card .table-responsive { -webkit-overflow-scrolling: touch; }
