/* ===== AJUSTE GLOBAL DA FONTE ===== */
body {
    background-color: #f2f3f5;
    font-size: 14px; /* antes 16px -> reduz para visual mais leve */
}

/* ===== INPUTS E FORMULÁRIOS ===== */
.form-label {
    font-size: 0.82rem; /* antes 0.87 */
    color: #444;
    font-weight: 500;
}

.form-control-lg {
    padding: 8px 12px; /* antes 10px 14px */
    font-size: 0.9rem; /* antes ~1rem */
    border-radius: 6px;
}

input.form-control,
select.form-control {
    font-size: 0.9rem; /* menor e mais clean */
    border-color: #d6d6d6 !important;
}

input.form-control:focus {
    border-color: #b0b0b0 !important;
    box-shadow: none !important;
}

/* ===== TITULAÇÃO ===== */
.card-header h4 {
    font-size: 1.15rem; /* antes ~1.25rem */
    font-weight: 600;
}

.section-title,
.section-wrapper h5 {
    font-size: 1rem; /* antes 1.1+ */
    font-weight: 600;
}

/* ===== BOTÕES ===== */
.btn-dark {
    background: #333 !important;
    border-color: #333 !important;
    font-size: 0.9rem; /* menor, mais elegante */
}

.btn-dark:hover {
    background: #000 !important;
}

/* ===== CARDS E SEÇÕES ===== */
.section-wrapper {
    background: #ffffff !important; /* branco total */
    border: 1px solid #e9e9e9 !important; /* borda suave para organização */
    padding: 20px 20px;
    border-radius: 8px;
}

/* ================================
   ⭐ SIDEBAR REFINADA E ALINHADA
================================ */

/* Links principais da sidebar */
.navbar-menu .navbar-nav .menu-link {
    display: flex !important;
    align-items: center !important;
    padding: 10px 18px !important;
    gap: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #e6e6e6 !important;
    transition: 0.25s ease;
}

/* Ícones */
.navbar-menu .navbar-nav .menu-link i {
    font-size: 18px !important;
    opacity: .85;
    transition: .25s ease;
}

/* Hover */
.navbar-menu .navbar-nav .menu-link:hover {
    background: rgba(255,255,255,0.06) !important;
    padding-left: 24px !important;
}
.navbar-menu .navbar-nav .menu-link:hover i {
    opacity: 1;
}

/* Menu ativo */
.navbar-menu .navbar-nav .menu-link.active {
    background: rgba(255,255,255,0.12) !important;
    font-weight: 600;
    color: #fff !important;
}

/* Dropdown */
.menu-dropdown .nav-link {
    padding: 8px 26px !important;
    font-size: 13px !important;
    color: #d5d5d5 !important;
    opacity: .85;
    transition: .25s ease;
}

/* Hover submenu */
.menu-dropdown .nav-link:hover {
    opacity: 1;
    padding-left: 32px !important;
    color: #fff !important;
}

/* Submenu ativo */
.menu-dropdown .nav-link.active {
    font-weight: 600;
    color: #fff !important;
    position: relative;
}

/* bolinha do submenu ativo */
.menu-dropdown .nav-link.active::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #0ab39c;
    border-radius: 50%;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* Títulos das seções (CLIENTES, FINANCEIRO...) */
.menu-title {
    font-size: 11px !important;
    letter-spacing: .5px;
    opacity: .6;
    padding: 12px 20px 5px;
    text-transform: uppercase;
}



/* ===== ANIMAÇÕES ===== */
.card {
    animation: fadeIn 0.45s ease-in-out; /* reduzida para mais sutil */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.label-required::after {
    content: " *";
    color: #dc3545; /* vermelho bootstrap */
    font-weight: bold;
}
.field-alert-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    cursor: pointer;
}
.field-wrapper {
    position: relative;
}

/* ========= WRAPPER GERAL ========= */
.birthday-wrapper {
    background: #ffffff !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 12px;
    padding: 14px 18px; /* reduzido */
}

/* ========= HEADER ========= */
.birthday-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 20px; /* reduzido */
    border-radius: 12px;

    background: linear-gradient(135deg, #405189, #0ab39c) !important;
    color: #ffffff !important;

    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 14px; /* reduzido */
}

.birthday-header i {
    font-size: 2rem; /* menor */
}

.birthday-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.35rem; /* reduzido */
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.birthday-header small {
    color: #f5f5f5 !important;
    opacity: 0.95;
    font-size: .85rem;
}

/* ========= CARD (BLOCO CLIENTES / FUNCIONÁRIOS) ========= */
.birthday-card {
    border-radius: 12px;
    padding: 14px 18px; /* reduzido */
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: .2s ease;
}

.birthday-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.birthday-title {
    font-weight: 600;
    font-size: 1.15rem; /* menor */
    margin-bottom: 10px; /* reduzido */
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========= LISTA ========= */
.birthday-list li {
    padding: 8px 12px; /* reduzido */
    border-radius: 10px !important;
    margin-bottom: 4px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #fafbff;
    border: 1px solid #e4e7ef !important;
    transition: .15s ease;
}

.birthday-list li:hover {
    background: #f1f5ff;
    border-color: #ced8ff !important;
}

/* Título do dia */
.birthday-day-header {
    font-size: .9rem;
    margin-bottom: 4px !important;
    color: #444;
}

/* ========= AVATAR ========= */
.birthday-avatar {
    width: 30px;   /* reduzido */
    height: 30px;  /* reduzido */
    border-radius: 50%;
    background: #405189;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
    font-size: .8rem; /* reduzido */
}

/* ========= RESPONSIVO ========= */
@media (max-width: 768px) {
    .birthday-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px;
    }

    .birthday-wrapper {
        padding: 12px;
    }

    .birthday-list li {
        padding: 10px;
    }
}



/* BADGE MAIS COMPACTO */
.badge-date {
    font-size: .78rem;
    padding: 6px 10px;
    font-weight: 600;
    border-radius: 6px;
}


.total-card {
    transition: all .2s ease-in-out;
}

.total-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10) !important;
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    opacity: .9;
}

/* ===== SELECT2 ESTILO VELZON ===== */
.select2-container .select2-selection--single {
    height: 42px !important;
    padding: 6px 12px;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    right: 10px !important;
}

.select2-container .select2-selection__rendered {
    line-height: 32px !important;
    font-size: 14px;
}

.select2-dropdown {
    border-radius: 6px !important;
    border-color: #ced4da !important;
}

.select2-search__field {
    border-radius: 6px !important;
}

/* Aniversario*/

/* ===================== ROOT COLORS ===================== */
:root {
    --primary: #405189;
    --primary-light: #5369b2;
    --bg-soft: #f6f7fb;
    --border-soft: #e3e6ef;
}

/* ===================== RANKING LIST ===================== */

.ranking-wrapper {
    padding: 5px;
    margin-top: 10px;
}

.ranking-item {
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid transparent;
    margin-bottom: 18px;
    transition: 0.25s ease;
}

.ranking-item:hover {
    background: #fff;
    border-color: var(--border-soft);
    box-shadow: 0px 4px 12px rgba(64, 81, 137, 0.12);
}

/* Avatar */
.ranking-avatar {
    width: 54px;
    height: 54px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* Medal Colors */
.medal-1 { color: #f1c40f; font-size: 1.55rem; }
.medal-2 { color: #c0c0c0; font-size: 1.45rem; }
.medal-3 { color: #cd7f32; font-size: 1.45rem; }
.medal-4 { color: var(--primary-light); font-size: 1.45rem; }

/* Meta text */
.ranking-meta {
    margin-top: -2px;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    color: #777;
}

/* Progress bar */
.progress {
    height: 9px;
    border-radius: 10px;
    background: #e9edf5;
    margin-top: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width .8s ease;
}

.progress-1 {
    background: linear-gradient(90deg, #f1c40f, #f8d64e);
}

.progress-2 {
    background: linear-gradient(90deg, #c0c0c0, #d8d8d8);
}

.progress-3 {
    background: linear-gradient(90deg, #cd7f32, #d89a5e);
}

.progress-4 {
    background: linear-gradient(90deg, var(--primary-light), #6f82d1);
}

/* ===================== PODIUM ===================== */

.podium-wrapper {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0 30px;
}

.podium-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 18px;
    width: 100%;
    max-width: 260px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border: 1px solid #ececec;
    transition: .25s ease;
}

/* Positions */
.podium-1 {
    transform: translateY(-15px);
    border-color: #f1c40f;
}

.podium-2 { transform: translateY(5px); }
.podium-3 { transform: translateY(5px); }

.podium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Avatar podium */
.podium-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 600;
    border: 4px solid #fff;
    margin: 0 auto 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Medal podium */
.podium-medal {
    font-size: 2rem;
    margin-bottom: 6px;
}

/* Responsive */
@media(max-width: 768px) {
    .podium-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .podium-card {
        max-width: 300px;
        transform: translateY(0) !important;
    }
}

.dataTables_paginate .pagination .page-link {
    border-radius: 8px !important;
    padding: 6px 12px;
}

.dataTables_paginate .pagination .active .page-link {
    background: #405189 !important;
    border-color: #405189 !important;
}



/* AVATAR INICIAL */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #405189;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
}

/* MELHORIA DA TABELA */
table.dataTable tbody tr {
    height: 62px;
    vertical-align: middle;
}

table.dataTable thead th {
    font-weight: 600;
}

/* SEARCH DO DATATABLE PARA FICAR PREMIUM */
.dataTables_filter {
    display: none !important;
}

#datatableSearchContainer input {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    padding: 6px 12px;
    width: 220px;
}

/* PAGINAÇÃO PREMIUM */
.dataTables_paginate .pagination .page-link {
    border-radius: 8px !important;
    padding: 6px 12px;
}

.dataTables_paginate .pagination .active .page-link {
    background: #405189 !important;
    border-color: #405189 !important;
}

/* AÇÕES CONSISTENTES */
.btn-success {
    background: #0ab39c !important;
    border-color: #0ab39c !important;
}

.btn-warning {
    background: #f7c948 !important;
    border-color: #f7c948 !important;
}

.btn-danger {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
}

.btn-primary {
    background: #405189 !important;
    border-color: #405189 !important;
}


/* Círculo dos totais */
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

/* Tabela refinada */
table.dataTable tbody tr {
    height: 58px;
}

table.dataTable thead th {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .4px;
}

/* Paginação */
.dataTables_paginate .pagination .page-link {
    border-radius: 8px !important;
    padding: 6px 12px !important;
}

.dataTables_paginate .pagination .active .page-link {
    background: #405189 !important;
    border-color: #405189 !important;
    color: #fff !important;
}

/* Ações */
.btn-dark {
    background: #405189 !important;
    border-color: #405189 !important;
}










