/* =====================================================
   NB Gestao - Stylesheet Principal
   Tema: Prata / Preto / Branco (Nilton Brito)
   ===================================================== */

:root {
    --sidebar-width:    260px;
    --topbar-height:    64px;
    --color-dark:       #1c1c1c;
    --color-dark-2:     #252525;
    --color-dark-3:     #2e2e2e;
    --color-silver:     #b8b8b8;
    --color-silver-light: #d8d8d8;
    --color-silver-dim: #888888;
    --color-white:      #ffffff;
    --color-bg:         #f3f4f6;
    --color-card:       #ffffff;
    --color-success:    #28a745;
    --color-danger:     #dc3545;
    --color-warning:    #ffc107;
    --color-info:       #17a2b8;
    --radius:           8px;
    --radius-lg:        12px;
    --shadow:           0 2px 12px rgba(0,0,0,0.08);
    --shadow-md:        0 4px 20px rgba(0,0,0,0.12);
    --transition:       all 0.22s ease;
    --font:             'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: #333;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== AUTENTICACAO ===== */
.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 50%, #1c1c1c 100%);
    padding: 24px;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.auth-card {
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-img { height: 90px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2)); }
.auth-footer { color: rgba(255,255,255,0.3); font-size: 12px; text-align: center; margin: 0; }

.auth-card .form-label { font-weight: 500; font-size: 13px; color: #555; margin-bottom: 4px; }

.auth-card .form-control {
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
}

.auth-card .form-control:focus {
    border-color: var(--color-silver);
    box-shadow: 0 0 0 3px rgba(184,184,184,0.2);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-dark);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.sidebar-logo {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}

.sidebar-logo img {
    height: 64px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.9);
}

/* Botao de fechar o menu offcanvas (so no mobile) */
.sidebar-close {
    display: none;
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    width: 36px; height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: var(--color-silver-light);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.sidebar-close:hover { background: rgba(255,255,255,0.16); color: #fff; }
.sidebar-close:active { transform: scale(0.93); }

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-dark-3) transparent;
}

.nav-section { padding: 0 12px; margin-bottom: 8px; }

.nav-section-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-silver-dim);
    padding: 12px 8px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--color-silver-light);
    font-size: 13.5px;
    font-weight: 400;
    transition: var(--transition);
    margin-bottom: 2px;
}

.nav-item i { font-size: 16px; width: 20px; text-align: center; color: var(--color-silver-dim); transition: var(--transition); }
.nav-item:hover { background: rgba(255,255,255,0.06); color: var(--color-white); }
.nav-item:hover i { color: var(--color-silver-light); }

.nav-item.active {
    background: linear-gradient(135deg, rgba(184,184,184,0.15), rgba(184,184,184,0.05));
    color: var(--color-white);
    font-weight: 500;
    border-left: 3px solid var(--color-silver);
    padding-left: 9px;
}

.nav-item.active i { color: var(--color-silver); }

.sidebar-user {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-silver-dim), var(--color-silver));
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role { display: block; font-size: 11px; color: var(--color-silver-dim); text-transform: capitalize; }

.sidebar-user-actions { display: flex; gap: 6px; }

.sidebar-user-actions a { color: var(--color-silver-dim); font-size: 16px; padding: 4px; border-radius: 4px; transition: var(--transition); }
.sidebar-user-actions a:hover { color: var(--color-silver-light); }

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.topbar {
    height: var(--topbar-height);
    background: var(--color-white);
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.topbar-toggle { display: none; background: none; border: none; font-size: 22px; color: #555; cursor: pointer; padding: 4px; border-radius: 4px; }
.topbar-title { font-size: 17px; font-weight: 600; color: var(--color-dark); flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-date { font-size: 13px; color: #888; }

.flash-container { padding: 16px 24px 0; }
.page-content { padding: 24px; flex: 1; }

/* ===== NAVEGACAO MOBILE (estilo app) ===== */
/* Logo na topbar (so aparece no mobile) */
.topbar-logo { display: none; align-items: center; }
.topbar-logo img { height: 36px; width: auto; }

/* Barra inferior fixa */
.mobile-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--color-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.22);
    z-index: 900;
    align-items: center;
    justify-content: space-around;
}
.mnav-item {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    color: var(--color-silver-dim);
    font-size: 10.5px; font-weight: 500;
    text-decoration: none;
    padding: 8px 2px 6px;
    min-width: 0;
    transition: color 0.2s;
}
.mnav-item i { font-size: 21px; line-height: 1; transition: color 0.2s; }
.mnav-item span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mnav-item.active, .mnav-item:active { color: var(--color-silver-light); }
.mnav-item.active i { color: var(--color-silver); }

/* Botao central elevado (FAB) que abre o menu offcanvas */
.mnav-fab {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    margin-top: -26px;
    border-radius: 50%;
    border: 4px solid var(--color-bg);
    background: linear-gradient(135deg, var(--color-silver-light), var(--color-silver-dim));
    color: var(--color-dark);
    font-size: 25px;
    display: grid; place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.34);
    transition: transform 0.2s ease, filter 0.2s ease;
}
.mnav-fab:hover { filter: brightness(1.05); }
.mnav-fab:active { transform: scale(0.92); }

/* ===== CARDS ===== */
.card-nb {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

.card-nb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.card-nb-title { font-size: 15px; font-weight: 600; color: var(--color-dark); margin: 0; }

.stat-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    color: inherit;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.dark    { background: var(--color-dark); color: var(--color-silver-light); }
.stat-icon.silver  { background: linear-gradient(135deg, #c8c8c8, #e8e8e8); color: var(--color-dark); }
.stat-icon.success { background: rgba(40,167,69,0.12);  color: var(--color-success); }
.stat-icon.danger  { background: rgba(220,53,69,0.12);  color: var(--color-danger); }
.stat-icon.warning { background: rgba(255,193,7,0.12);  color: #d39e00; }
.stat-icon.info    { background: rgba(23,162,184,0.12); color: var(--color-info); }

.stat-content { flex: 1; min-width: 0; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--color-dark); line-height: 1.2; display: block; }
.stat-label { font-size: 12px; color: #888; font-weight: 500; display: block; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== BOTOES ===== */
.btn-nb-primary {
    background: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    justify-content: center;
}

.btn-nb-primary:hover { background: var(--color-dark-3); color: var(--color-silver-light); transform: translateY(-1px); }

.btn-nb-silver {
    background: linear-gradient(135deg, #b8b8b8, #d8d8d8);
    color: var(--color-dark);
    border: none;
    border-radius: var(--radius);
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-nb-silver:hover { background: linear-gradient(135deg, #c8c8c8, #e8e8e8); transform: translateY(-1px); }

.btn-nb-outline {
    background: transparent;
    color: var(--color-dark);
    border: 1.5px solid #ddd;
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-nb-outline:hover { border-color: var(--color-silver-dim); background: var(--color-bg); color: var(--color-dark) !important; transform: translateY(-1px) !important; }

.btn-nb-danger {
    background: var(--color-danger);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-nb-danger:hover { background: #c82333; transform: translateY(-1px); }

/* ===== TABELAS ===== */
.table-nb { width: 100%; border-collapse: collapse; }

.table-nb thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
    white-space: nowrap;
}

.table-nb tbody td {
    padding: 13px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    vertical-align: middle;
}

.table-nb tbody tr:hover td { background: #fafafa; }
.table-nb tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.badge-ativo       { background: rgba(40,167,69,0.12);  color: #1e7e34; }
.badge-suspenso    { background: rgba(255,193,7,0.15);  color: #856404; }
.badge-concluido   { background: rgba(23,162,184,0.12); color: #0c6674; }
.badge-desistente  { background: rgba(220,53,69,0.12);  color: #a71d2a; }
.badge-pendente    { background: rgba(255,193,7,0.15);  color: #856404; }
.badge-pago        { background: rgba(40,167,69,0.12);  color: #1e7e34; }
.badge-vencido     { background: rgba(220,53,69,0.12);  color: #a71d2a; }
.badge-gerado      { background: rgba(23,162,184,0.12); color: #0c6674; }
.badge-assinado    { background: rgba(40,167,69,0.12);  color: #1e7e34; }
.badge-cancelado   { background: rgba(108,117,125,0.12); color: #495057; }
.badge-agendado    { background: rgba(23,162,184,0.12); color: #0c6674; }
.badge-confirmado  { background: rgba(40,167,69,0.12);  color: #1e7e34; }
.badge-realizado   { background: rgba(108,117,125,0.12); color: #495057; }
.badge-nao_compareceu { background: rgba(220,53,69,0.12); color: #a71d2a; }

/* ===== FORMULARIOS ===== */
.form-nb .form-label { font-weight: 500; font-size: 13px; color: #444; margin-bottom: 5px; }

.form-nb .form-control,
.form-nb .form-select {
    border: 1.5px solid #e2e2e2;
    border-radius: var(--radius);
    padding: 9px 13px;
    font-size: 13.5px;
    transition: var(--transition);
    color: #333;
}

.form-nb .form-control:focus,
.form-nb .form-select:focus {
    border-color: var(--color-silver);
    box-shadow: 0 0 0 3px rgba(184,184,184,0.2);
    outline: none;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-silver-dim);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
    margin: 24px 0 16px;
}

/* ===== PAGINACAO ===== */
.pagination-nb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-info { font-size: 13px; color: #888; }
.pagination-controls { display: flex; gap: 4px; }

.page-btn {
    width: 34px; height: 34px;
    border-radius: var(--radius);
    border: 1.5px solid #e0e0e0;
    background: var(--color-white);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.page-btn:hover { border-color: var(--color-silver); color: var(--color-dark); }
.page-btn.active { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ===== PROFILE ===== */
.profile-header {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-silver-dim), var(--color-silver));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.2);
}

.profile-info { flex: 1; }
.profile-name { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.profile-meta { font-size: 13px; color: var(--color-silver-light); opacity: 0.8; display: flex; gap: 16px; flex-wrap: wrap; }
.profile-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* Abas */
.nb-tabs { display: flex; gap: 2px; border-bottom: 2px solid #f0f0f0; margin-bottom: 24px; flex-wrap: wrap; }

.nb-tab {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.nb-tab:hover { color: var(--color-dark); }
.nb-tab.active { color: var(--color-dark); border-bottom-color: var(--color-dark); font-weight: 600; }
.nb-tab-pane { display: none; }
.nb-tab-pane.active { display: block; }

/* ===== RESPONSIVO ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: flex; }
    .sidebar-overlay.show { display: block; }
    .main-content { margin-left: 0; }

    /* Topbar vira "chrome" escuro de app: logo + hamburger */
    .topbar {
        background: var(--color-dark);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 2px 10px rgba(0,0,0,0.25);
        padding: 0 14px;
    }
    .topbar-logo   { display: flex; margin-right: auto; }
    .topbar-title  { display: none; }
    .topbar-right  { display: none; }
    .topbar-toggle { display: flex; color: var(--color-silver-light); font-size: 26px; margin-left: auto; }

    /* Barra inferior estilo app */
    .mobile-nav   { display: flex; }

    /* Espacamentos mais compactos no mobile */
    .page-content    { padding: 16px 16px calc(82px + env(safe-area-inset-bottom)); }
    .flash-container { padding: 14px 16px 0; }
    .card-nb         { padding: 18px 16px; }

    /* Stat cards compactos (evita estouro do valor em R$) */
    .stat-card  { padding: 16px; gap: 13px; }
    .stat-icon  { width: 48px; height: 48px; font-size: 20px; }
    .stat-value { font-size: 22px; }

    .profile-header { flex-direction: column; text-align: center; }
    .profile-meta { justify-content: center; }
    .profile-actions { justify-content: center; }
}

/* ===== TELEFONES: ajustes finos ===== */
@media (max-width: 575.98px) {
    /* Stat cards viram tiles verticais: o valor ganha a largura toda */
    .stat-card  { flex-direction: column; align-items: flex-start; gap: 9px; padding: 14px 15px; }
    .stat-icon  { width: 42px; height: 42px; font-size: 19px; }
    .stat-value { font-size: 21px; }
    .stat-label { font-size: 10.5px; letter-spacing: 0.3px; }

    .card-nb        { padding: 16px 14px; }
    .card-nb-header { margin-bottom: 14px; padding-bottom: 12px; flex-wrap: wrap; gap: 8px; }
}

/* ===== TABELAS VIRAM CARTOES NO MOBILE/TABLET =====
   Cada linha vira um cartao; cada celula mostra o rotulo da coluna
   (preenchido automaticamente pelo JS a partir do <thead>).
   Usa o mesmo breakpoint do menu mobile (<=991px) para nao ter rolagem lateral no tablet. */
@media (max-width: 991.98px) {
    .table-responsive { overflow: visible; }

    table.table-nb thead { display: none; }
    table.table-nb,
    table.table-nb tbody { display: block; width: 100%; }

    table.table-nb tbody tr {
        display: block;
        background: var(--color-card);
        border: 1px solid #ececec;
        border-radius: 12px;
        padding: 4px 14px;
        margin-bottom: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    table.table-nb tbody tr:hover td { background: transparent; }

    table.table-nb tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #f3f3f3;
        font-size: 13.5px;
        text-align: right;
        min-height: 42px;
    }
    table.table-nb tbody td:last-child { border-bottom: none; }

    /* rotulo da coluna a esquerda */
    table.table-nb tbody td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11px;
        color: var(--color-silver-dim);
        text-transform: uppercase;
        letter-spacing: 0.4px;
        text-align: left;
        flex-shrink: 0;
        white-space: nowrap;
    }
    /* celulas sem rotulo (ex.: Acoes) alinham os botoes a direita */
    table.table-nb tbody td:not([data-label]) { justify-content: flex-end; }

    /* Abas deslizam na horizontal (em vez de quebrar linha) */
    .nb-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 16px;
    }
    .nb-tabs::-webkit-scrollbar { display: none; }
    .nb-tab { flex-shrink: 0; white-space: nowrap; padding: 10px 14px; }
}

/* ===== AGENDA: painel do dia ===== */
.dia-item { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #f1f1f1; }
.dia-item:last-child { border-bottom: none; }
.dia-hora { flex: 0 0 auto; min-width: 48px; font-weight: 700; font-size: 14px; color: var(--color-dark); }
.dia-info { flex: 1 1 auto; min-width: 0; }
.dia-info .t { font-size: 13.5px; font-weight: 600; color: var(--color-dark); }
.dia-info .s { font-size: 12px; color: var(--color-silver-dim); margin-top: 1px; }
.dia-acoes { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.dia-vazio { text-align: center; color: #aaa; padding: 24px 0; }

/* ===== AGENDA: ajustes no mobile ===== */
@media (max-width: 767.98px) {
    .fc .fc-toolbar.fc-header-toolbar { gap: 8px; margin-bottom: 12px; }
    .fc .fc-toolbar-title { font-size: 17px; }
    .fc .fc-button { padding: 5px 10px; font-size: 13px; }
    .fc .fc-daygrid-day-number { font-size: 12px; padding: 2px 5px; }
    .fc .fc-col-header-cell-cushion { font-size: 11px; padding: 4px 2px; }
    .fc .fc-daygrid-day-frame { min-height: 44px; }
    .fc-daygrid-event { font-size: 10px; padding: 0 2px; }
    .fc-daygrid-event .fc-event-time { font-weight: 600; }
}

/* ===== UTILITARIOS ===== */
.text-silver  { color: var(--color-silver-dim) !important; }
.text-dark-nb { color: var(--color-dark) !important; }
.bg-dark-nb   { background: var(--color-dark) !important; }
.fw-500       { font-weight: 500; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }

.empty-state { text-align: center; padding: 48px 24px; color: #aaa; }
.empty-state i { font-size: 48px; display: block; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 14px; margin: 0; }

.loading-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
