:root {
    --bg-body: #e5edf7;
    --bg-card: #ffffff;
    --bg-card-muted: #f3f4f6;
    --bg-navbar: #0f172a;
    --border-soft: rgba(148,163,184,0.45);
    --text-main: #111827;
    --text-secondary: #4b5563;
}
.pending-comment{
  line-height: 1.25;
}
.pending-comment .comment-long-icon{
  display: inline-block;
  margin-right: .35rem;
  font-size: .95rem;
  opacity: .85;
  vertical-align: text-bottom;
}
.pending-comment .comment-preview,
.pending-comment .comment-full{
  white-space: normal;
  word-break: break-word;
}

/* Relatório de solicitações: comentário não corta (quebra linha) */
td.comment-cell{
  white-space: normal !important;
  word-break: break-word;
  max-width: 320px;
}

td.comment-cell .comment-open{
  text-align: left;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 576px){
  /* Otimização mobile: deixa a lista de pendências legível */
  .pendings-table th:nth-child(3),
  .pendings-table td:nth-child(3){
    display:none; /* oculta coluna Anexo no mobile */
  }
  .pendings-table th:nth-child(4),
  .pendings-table td:nth-child(4){
    width: 1%;
    white-space: nowrap;
  }
  .pendings-table td{
    padding-top: .55rem;
    padding-bottom: .55rem;
  }
  .pendings-table .btn{
    padding: .25rem .45rem;
  }
}


body {
    background: radial-gradient(circle at top left, #f9fafb 0, #e5edf7 45%, #d1d5db 100%);
    color: var(--text-main);
}

.navbar {
    background: linear-gradient(90deg, #0f172a, #111827);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.card-soft {
    background: var(--bg-card);
    border-radius: 1.2rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 40px rgba(15,23,42,0.20);
}



/* === KPI cards (dashboard) - colored accent + soft background === */
.stat-card{
  position: relative;
  border-left: 6px solid transparent;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb, 37,99,235), .12) 0%,
                          rgba(255,255,255,.96) 55%,
                          rgba(255,255,255,1) 100%);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* soft decorative blobs */
.stat-card::before,
.stat-card::after{
  content:"";
  position:absolute;
  border-radius: 999px;
  pointer-events:none;
  opacity:.9;
  filter: blur(0px);
}

.stat-card::before{
  width: 160px;
  height: 160px;
  right: -60px;
  top: -70px;
  background: radial-gradient(circle at 30% 30%,
    rgba(var(--accent-rgb, 37,99,235), .22) 0%,
    rgba(var(--accent-rgb, 37,99,235), .12) 35%,
    rgba(var(--accent-rgb, 37,99,235), 0) 70%);
}

.stat-card::after{
  width: 220px;
  height: 220px;
  right: -120px;
  bottom: -120px;
  background: radial-gradient(circle at 35% 35%,
    rgba(var(--accent-rgb, 37,99,235), .14) 0%,
    rgba(var(--accent-rgb, 37,99,235), .08) 35%,
    rgba(var(--accent-rgb, 37,99,235), 0) 70%);
}

.stat-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(15,23,42,0.22);
}

.stat-card .stat-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Types (set accent color + icon chip) */
.stat-total{
  --accent-rgb: 37,99,235; /* blue */
  border-left-color:#2563eb;
}
.stat-total .stat-icon{ background: rgba(37,99,235,.16); color:#2563eb; }

.stat-pendente{
  --accent-rgb: 245,158,11; /* amber */
  border-left-color:#f59e0b;
}
.stat-pendente .stat-icon{ background: rgba(245,158,11,.18); color:#f59e0b; }

.stat-aprovado{
  --accent-rgb: 22,163,74; /* green */
  border-left-color:#16a34a;
}
.stat-aprovado .stat-icon{ background: rgba(22,163,74,.18); color:#16a34a; }

.stat-recusado{
  --accent-rgb: 220,38,38; /* red */
  border-left-color:#dc2626;
}
.stat-recusado .stat-icon{ background: rgba(220,38,38,.18); color:#dc2626; }

/* Mobile: tighter KPI cards */
@media (max-width: 576px){
  .stat-card{ border-left-width: 5px; }
  .stat-card::before{ width: 130px; height: 130px; right:-55px; top:-65px; }
  .stat-card::after{ width: 180px; height: 180px; right:-105px; bottom:-105px; }
  .stat-card .stat-icon{ width: 38px; height: 38px; border-radius: 12px; }
  .stat-card .text-uppercase{ font-size: .72rem; }
}

.chart-card {
    background: var(--bg-card);
    border-radius: 1.2rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 40px rgba(15,23,42,0.20);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.badge-soft {
    border-radius: 999px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.btn-neon {
    position: relative;
    border-radius: 999px;
    border: 1px solid #0039A6;
    background: #0039A6;
    color: #f9fafb;
    overflow: hidden;
}

.btn-neon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 60%);
    opacity: 0;
    transition: opacity .2s ease-out;
}

.btn-neon:hover::before {
    opacity: 1;
}

.btn-neon span {
    position: relative;
    z-index: 1;
}

.form-control,
.form-select,
textarea {
    background-color: var(--bg-card-muted);
    border-color: rgba(148,163,184,0.8);
    color: var(--text-main);
    text-decoration: none !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,0.75);
    background-color: #ffffff;
    color: #111827;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.table-dark-custom {
    --bs-table-bg: #ffffff;
    --bs-table-striped-bg: #f9fafb;
    --bs-table-striped-color: #111827;
    --bs-table-hover-bg: #e5edf7;
    color: #111827;
}

.table-dark-custom thead {
    background-color: #e5edf7;
}

.status-pill {
    border-radius: 999px;
    padding: 0.15rem .65rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(250,204,21,0.18);
    color: #92400e;
}

.status-approved {
    background: rgba(22,163,74,0.18);
    color: #166534;
}

.status-rejected {
    background: rgba(239,68,68,0.18);
    color: #b91c1c;
}

a {
    color: #1d4ed8;
}

a:hover {
    color: #1d4ed8;
    text-decoration: none !important;
}

.nav-link {
    font-size: .85rem;
}

.nav-link.active {
    color: #f9fafb !important;
    font-weight: 600;
}

.badge.bg-secondary-subtle {
    background-color: #e5e7eb !important;
    color: #111827 !important;
}


/* ---- APP SHELL LAYOUT ---- */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #f9fafb 0, #e5edf7 45%, #d1d5db 100%);
    color: #111827;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #020617 0%, #0b1120 40%, #111827 100%);
    color: #e5e7eb;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    text-align: center;
}

.logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #22c55e, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 18px rgba(37,99,235,.7);
}

.logo-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.logo-jobel-sm {
    max-width: 120px;
    max-height: 120px;
    box-shadow: none !important;
}


.sidebar-header .logo-text {
    font-size: 0.90rem;
    line-height: 1.1;
    text-align: center;
}




.logo-text span {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9ca3af;
}

.logo-text strong {
    display: block;
    font-size: 13px;
    color: #f9fafb;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.3);
    margin-top: 10px;
}

.sidebar-avatar i {
    font-size: 28px;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #f9fafb;
}

.sidebar-user-role {
    font-size: 11px;
    color: #9ca3af;
}

.sidebar-nav {
    margin-top: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px; /* itens mais próximos */
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px; /* menos "oval" */
    text-decoration: none;
    color: #e5e7eb;
    font-size: 14px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: background .18s, border-color .18s, transform .12s;
}

button.sidebar-link {
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

button.sidebar-link:focus {
    outline: none;
    box-shadow: none;
}


.sidebar-link:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.10);
    transform: translateY(-1px);
}

/* === Sidebar menu: ícones coloridos + efeitos (visual only) === */
.sidebar-link{
  position: relative;
  overflow: hidden;
}

/* barra de acento (como nos cards) */
.sidebar-link::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: rgba(59,130,246,.0);
  transition: background .18s ease, box-shadow .18s ease;
}

.sidebar-link:hover::before{
  background: rgba(59,130,246,.55);
  box-shadow: 0 0 14px rgba(59,130,246,.25);
}

.sidebar-link.active::before{
  background: rgba(59,130,246,.9);
  box-shadow: 0 0 18px rgba(59,130,246,.35);
}

/* ícone com "badge" circular */
.sidebar-link i{
  --ic: #8ab6ff;
  --bg: rgba(138,182,255,.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  margin-right: 12px;
  font-size: 1.15rem;
  color: var(--ic) !important;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.sidebar-link:hover i{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0,0,0,.26);
  filter: brightness(1.08);
}

.sidebar-link.active i{
  filter: brightness(1.12);
}

/* Paleta por ícone (sem mudar HTML) */
.sidebar-link i.bi-speedometer2{ --ic:#3b82f6; --bg: rgba(59,130,246,.18);}
.sidebar-link i.bi-people{ --ic:#22c55e; --bg: rgba(34,197,94,.16);}
.sidebar-link i.bi-diagram-3{ --ic:#a855f7; --bg: rgba(168,85,247,.18);}
.sidebar-link i.bi-shield-check{ --ic:#f59e0b; --bg: rgba(245,158,11,.16);}
.sidebar-link i.bi-graph-up{ --ic:#10b981; --bg: rgba(16,185,129,.16);}
.sidebar-link i.bi-person-badge{ --ic:#60a5fa; --bg: rgba(96,165,250,.16);}
.sidebar-link i.bi-info-circle{ --ic:#94a3b8; --bg: rgba(148,163,184,.14);}

/* melhora legibilidade do texto */
.sidebar-link span{
  letter-spacing: .2px;
}


.sidebar-link.active {
    background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
    border-color: rgba(255,255,255,.14);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.sidebar-footer {
    margin-top: 8px;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: 60px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148,163,184,0.35);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-title span {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9ca3af;
}

.topbar-title h1 {
    font-weight: 600;
    color: #111827;
}

.topbar-avatar i {
    font-size: 26px;
    color: #111827;
}

.notification-dot {
    position: absolute;
    top: 3px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
}

/* Sino (alertas) - ícone em imagem */
.notif-bell-img{
    width: 18px;
    height: 18px;
    display: block;
}

.app-content {
    background: radial-gradient(circle at top left, #f9fafb 0, #e5edf7 45%, #d1d5db 100%);
    flex: 1;
}

/* Dark mode */
body.theme-dark {
    background: radial-gradient(circle at top left, #020617 0, #020617 40%, #0f172a 100%);
    color: #e5e7eb;
}

body.theme-dark .topbar {
    background: rgba(15,23,42,0.96);
    border-bottom-color: rgba(15,23,42,1);
}

body.theme-dark .card,
body.theme-dark .card-soft,
body.theme-dark .chart-card {
    background-color: #020617;
    color: #e5e7eb;
    border-color: rgba(30,64,175,0.8);
    box-shadow: 0 20px 40px rgba(15,23,42,0.8);
}

body.theme-dark .form-control,
body.theme-dark .form-select,
body.theme-dark textarea {
    background-color: #020617;
    color: #e5e7eb;
    border-color: rgba(51,65,85,1);
}

body.theme-dark .table-dark-custom {
    --bs-table-bg: #020617;
    --bs-table-striped-bg: #020617;
    --bs-table-hover-bg: #020617;
    color: #e5e7eb;
}

/* Mobile sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 20;
        transition: left .2s ease-out;
    }
    .sidebar.open {
        left: 0;
    }
    .app-main {
        flex: 1;
    }
}


/* Login only layout */
.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #f9fafb 0, #e5edf7 45%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.18);
    display: flex;
    flex-direction: column;
}

.login-card form {
    margin-bottom: 0;
}
.login-body {
    flex: 1;
}



.login-footer-info {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(148,163,184,0.35);
}


/* Avatar image styling */
.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(0,57,166,0.45);
}
.sidebar-avatar .avatar-img {
    width: 40px;
    height: 40px;
}

/* ERP-style sidebar refinements */
.sidebar {
    background: radial-gradient(circle at top left, #020617 0, #020617 35%, #030712 100%);
    border-right: 1px solid rgba(15,23,42,0.85);
    box-shadow: 18px 0 40px rgba(15,23,42,0.55);
}

.sidebar-header .logo-circle {
    background: radial-gradient(circle at 30% 20%, #22c55e, #2563eb);
    box-shadow: 0 0 24px rgba(37,99,235,0.85);
}

.sidebar-nav .sidebar-link {
    border-radius: 8px; /* remove "pill" */
    font-weight: 600;
    padding-inline: 0.9rem;
    margin-bottom: 0.15rem;
}

.sidebar-nav .sidebar-link i {
    font-size: 1.15rem; /* ícones maiores */
}

.sidebar-nav .sidebar-link.active {
    background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
    border-color: rgba(255,255,255,.14);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.sidebar-nav .sidebar-link:hover:not(.active) {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.10);
    color: #e5e7eb;
}

.sidebar-footer .btn-outline-light {
    border-radius: 999px;
}

/* Refined login with Jobel institutional panel */
.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #0b1120 0, #020617 45%, #020617 100%);
    color: #e5e7eb;
}

.login-layout {
    min-height: 100vh;
}

.login-left-panel {
    padding: 40px;
    color: #e5e7eb;
}

.login-left-card {
    max-width: 420px;
}

.login-left-logo {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #22c55e, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 26px rgba(37,99,235,0.9);
    margin-bottom: 18px;
}

.login-left-title {
    font-size: 26px;
    font-weight: 700;
}

.login-left-subtitle {
    font-size: 14px;
    color: #9ca3af;
}

.login-left-list {
    margin-top: 18px;
    font-size: 13px;
    color: #cbd5f5;
}

.login-left-list li {
    margin-bottom: 6px;
}

.login-wrapper {
    width: 100%;
    max-width: 430px;
    padding: 28px 20px;
}

.login-card {
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(15,23,42,0.85);
    background: #f9fafb;
    color: #020617;
}

.login-card .form-control {
    border-radius: 999px;
}

.login-card .btn-primary {
    border-radius: 999px;
    background-color: #0039A6;
}

.login-card .btn-primary:hover {
    background-color: #002B7A;
}

@media (max-width: 991.98px) {
    .login-page {
        background: radial-gradient(circle at top left, #f9fafb 0, #e5edf7 45%, #d1d5db 100%);
        color: #020617;
    }

    .login-wrapper {
        max-width: 480px;
        padding: 24px 16px;
    }

    .login-card {
        box-shadow: 0 18px 40px rgba(15,23,42,0.18);
    }

    .login-left-panel {
        display: none;
    }
}


/* Login footer info */
.login-footer-info {
    text-align: center;
    margin-top: 22px;
    font-size: 0.9rem;
    opacity: 0.96;
}
.login-footer-info .dev-by {
    color: #4b5563;
}
.login-footer-info strong {
    color: #111827;
}
.login-footer-info .request-access {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0,57,166,0.06);
    border: 1px solid rgba(0,57,166,0.28);
    color: #0039A6;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}
.login-footer-info .request-access:hover {
    background: #0039A6;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15,23,42,0.26);
    transform: translateY(-1px);
}


.topbar-user {
    color: inherit;
}
.topbar-user:hover {
    text-decoration: none;
    opacity: 0.9;
}


/* V20: Logo Jobel & Solhe title on login */
.jobel-logo {
    max-width: 200px;
    height: auto;
}

.solhe-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin-top: -15px;
    margin-bottom: 14px;
}


/* V22: clickable dashboard cards linking to reports */
.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link-wrapper .card {
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.card-link-wrapper .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}


/* ---- App footer ---- */
.app-footer {
    border-top: 1px solid rgba(148,163,184,0.35);
    background: linear-gradient(90deg, rgba(248,250,252,0.92), rgba(226,232,240,0.98));
}

.app-footer span {
    white-space: nowrap;
}

body.theme-dark .app-footer {
    background: linear-gradient(90deg, #020617, #020617);
    border-top-color: rgba(30,64,175,0.75);
}

/* Versão discreta na tela de login */
.version-tag {
    font-size: 11px;
    color: #9ca3af;
}

/* Transições suaves para modo claro/escuro */
body,
.sidebar,
.topbar,
.card,
.card-soft,
.chart-card {
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Animação suave do logo */
@keyframes logoFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

.jobel-logo {
    animation: logoFloat 3.5s ease-in-out infinite alternate;
}

.logo-jobel-sm {
    transition: transform .4s ease, filter .4s ease;
}

.logo-jobel-sm:hover {
    transform: scale(1.04) rotate(-2deg);
    filter: drop-shadow(0 0 8px rgba(37,99,235,0.7));
}

/* Splash screen estilo app para o login */
#splash-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, #0b1120 0, #020617 45%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    color: #e5e7eb;
}

#splash-screen .splash-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

#splash-screen .splash-logo img {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    box-shadow: 0 0 30px rgba(37,99,235,0.85);
}

#splash-screen .splash-title {
    font-weight: 600;
    letter-spacing: .08em;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #9ca3af;
}

#splash-screen .splash-spinner {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 3px solid rgba(148,163,184,0.35);
    border-top-color: #3b82f6;
    animation: spinSplash 0.9s linear infinite;
    margin-top: .75rem;
}

#splash-screen .splash-dev {
    margin-top: .85rem;
    font-size: 0.72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(226,232,240,0.82);
}

@keyframes spinSplash {
    to { transform: rotate(360deg); }
}

body.splash-hidden #splash-screen {
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}


/* Animação de entrada do card de login */
.login-card {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(10px);
}

.login-card.login-animate {
    animation: loginFadeIn .7s ease forwards;
}

@keyframes loginFadeIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}



/* Correção modo NASA – Deixar formulários visíveis */
.login-card {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}

.login-body input.form-control {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
}

.login-body label,
.login-body p,
.login-body span,
.login-body small {
    color: #000 !important;
}

.login-wrapper {
    z-index: 9999 !important;
}

/* Correção de visibilidade do card em todas as telas (login e cadastro) */
.login-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: none !important;
}


/* === V24: Barra de título com botão X no cadastro === */
.register-card {
    position: relative;
}

.register-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: #9ca3af;
    transition: color .15s ease, transform .15s ease;
}

.register-close-btn:hover {
    color: #4b5563;
    transform: scale(1.06);
}

.register-close-btn:focus {
    outline: none;
    box-shadow: none;
}


/* === V25: Barra de título real e espaçamento premium === */

/* Card geral cadastro */
.register-card {
    border-radius: 18px !important;
    overflow: hidden;
    padding: 0 !important;
    box-shadow: 0 26px 60px rgba(0,0,0,0.25) !important;
}

/* Barra de título */
.register-title-bar {
    background: #f1f5f9;
    padding: 14px 22px;
    border-bottom: 1px solid #d4d7dc;
    position: relative;
    text-align: center;
}

.register-title-bar h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
}

/* Botão X na barra */
.register-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: transparent;
    padding: 2px;
    font-size: 1.25rem;
    color: #475569;
    transition: color .18s ease, transform .18s ease;
}

.register-close-btn:hover {
    color: #1e293b;
    transform: scale(1.12);
}

.register-close-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Corpo do formulário */
.register-body {
    padding: 40px 40px 32px 40px;
}

.register-body .form-label {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #334155;
}

.register-body .form-control {
    border-radius: 12px;
    padding-left: 14px;
    height: 50px;
    font-size: 1rem;
}

/* Botão cadastrar */
.btn-register {
    width: 100%;
    border-radius: 999px;
    height: 52px;
    font-size: 1.05rem;
}


/* === V26: Layout compacto (menor altura, 100% responsivo) === */

/* Wrapper um pouco mais estreito para reduzir altura visual */
.register-wrapper {
    max-width: 520px !important;
}

/* Corpo com menos padding para caber sem scroll em telas médias */
.register-body {
    padding: 24px 24px 20px 24px;
}

/* Reduzir altura e tamanho dos campos */
.register-body .form-control {
    height: 44px;
    font-size: 0.95rem;
    padding-left: 12px;
}

/* Espaçamento vertical entre os grupos de campos */
.register-body .mb-3,
.register-body .mb-4 {
    margin-bottom: 0.75rem !important;
}

/* Subtítulo mais compacto */
.register-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Título um pouco menor */
.register-title-bar h2 {
    font-size: 1.45rem;
}

/* Botão um pouco mais baixo para reduzir altura geral */
.btn-register {
    height: 46px;
    font-size: 0.96rem;
}

/* Em telas muito pequenas, devolve um pouco de respiro */
@media (max-width: 575.98px) {
    .register-body {
        padding: 22px 18px 20px 18px;
    }
}

/* Dashboard: Pendências recentes - comentário com "Ler mais" */
.pending-comment .comment-toggle{
  font-size: .85rem;
  text-decoration: none;
}
.pending-comment .comment-toggle:hover{
  text-decoration: underline;
}

/* Multi seleção de Equipes/Alocação (checkbox list) */
.team-picker{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 8px;
  max-height: 190px;
  overflow: auto;
  background: #fff;
  display: block;
}

.team-picker.is-invalid{
  border-color: #dc3545;
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.12);
}

.team-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background .15s ease;
  user-select: none;
}

.team-item:hover{
  background: rgba(2, 94, 197, .06);
}

.team-item input[type="checkbox"]{
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.team-item .label{
  font-size: .82rem;
  line-height: 1.15;
  color: #111;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.team-item .badge{
  font-size: .70rem;
  padding: .20rem .45rem;
  border-radius: 999px;
}

@media (max-width: 575.98px){
  .team-picker{
    max-height: 160px;
    padding: 6px;
  }
  .team-item{
    padding: 5px 6px;
    gap: 8px;
  }
  .team-item input[type="checkbox"]{
    width: 14px;
    height: 14px;
  }
  .team-item .label{
    font-size: .74rem;
  }
}

/* FORÇA TAMANHO DO TEXTO DA LISTA DE EQUIPES */
label.team-item{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1 !important;
}



/* Alertas (dropdown do sino) */
.alerts-dropdown{
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: 420px;
    overflow: auto;
    padding: 6px 0;
}
.alerts-dropdown .dropdown-item{
    white-space: normal;
    padding-top: 10px;
    padding-bottom: 10px;
}
.alerts-dropdown .alert-item{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    align-items: start;
}
.alerts-dropdown .alert-title{
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
}
.alerts-dropdown .alert-meta{
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}
.alerts-dropdown .alert-snippet{
    grid-column: 1 / -1;
    font-size: 13px;
    color: #374151;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.alerts-dropdown .alert-unread{
    background: rgba(59,130,246,.08);
}
.alerts-dropdown .alert-badge{
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(239,68,68,.12);
    color: #b91c1c;
}
.alerts-dropdown .section-label{
    padding: 6px 16px;
    font-size: 12px;
    color: #6b7280;
}

