.form-deletar {
    display: inline;
}

.sortable > .fa-caret-up, .sortable > .fa-caret-down {
    display: none;
}

.sort-asc > .fa-caret-up {
    display: inline;
}

.sort-desc > .fa-caret-down {
    display: inline;
}

.nota-textarea {
    resize: vertical;
}

.acao-notas {
    display: none;
    margin-top: -6px !important;
}

.panel:hover .acao-notas {
    display: inline;
}

.notificacao-nota {
    margin-right: 10px;
}

.margintop {
    margin-top: 10px;
}

.fadeInUp.ng-enter {
    transition: 0.5s linear all;
    opacity: 0;
}

.botao-nova-nota {
    cursor: pointer;
}

.botao-nova-nota:hover {
    border: 1px dashed #000;
}

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
    display: none !important;
}

.checkbox-tarefas {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

.checkbox:hover {
    background-color: #f0f0f0;
}

.item-contextmenu {
    padding-left: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.item-contextmenu:hover {
    background-color: #eee;
}

.context {
    z-index: 99999;
}

.ativo {
    display: none !important;
}

.inativo {
    display: inline-block;
}

.active > .ativo {
    display: inline-block !important;
}

.active > .inativo {
    display: none;
}

.subpasta > li > a {
    padding-left: 40px !important;
}

.mb-folder-list > li {
    display: block;
}

.mb-folder-list > pastas > li > a {
    display: block;
    padding: 12px 20px;
    color: #a9bcd2;
}

.mb-folder-list > pastas > li > a.active,
.mb-folder-list > pastas > li > a:hover {
    background-color: #344a62;
    color: #fff;
}

.btn-switch > input[type="checkbox"]:checked + .btn > em {
    padding-bottom: 3px;
    padding-top: 1px;
}

.btn-switch > input[type="checkbox"] + .btn > em {
    padding-bottom: 3px;
    padding-top: 1px;
}

.modal {
    text-align: center;
}

@media screen and (min-width: 768px) {
    .modal:before {
        display: inline-block;
        vertical-align: middle;
        content: " ";
        height: 100%;
    }
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.ui-select-match-text > span {
    color: #515d6e;
    font-size: 13px;
}

.ui-select-placeholder {
    font-size: 13px;
}

.table-slim > tbody > tr > td {
    padding: 3px 8px;
}

.table-slim > tbody > tr > th,
.table-slim > thead > tr > th {
    padding: 3px 8px;
}

.btn-x-sm {
    padding: 3px 8px !important;
}

.btn-xx-sm {
    padding: 0px 6px !important;
}

.input-x-sm {
    padding-top: 2px;
    padding-bottom: 2px;
    height: 25px;
}

.parsley-error {
    border-color: #f05050 !important;
}

.parsley-errors-list {
    display: none;
    margin: 0;
    padding: 0;
}

.parsley-errors-list.filled {
    display: block;
}

.parsley-errors-list > li {
    font-size: 12px;
    list-style: none;
    color: #f05050;
}

.csspinner:after {
    z-index: 3 !important;
}

.csspinner:before {
    z-index: 3 !important;
}

.highlighted {
    text-decoration: underline;
}

.btn-default {
    border-color: #ccc !important;
    color: #585f69 !important;
}

.alert-danger-border {
    border-color: #f34235;
}

.alert-success-border {
    border-color: #4caf50;
}

.postagem img {
    width: 100% !important;

}
.postagem * {
    width: 100% !important;

}

.tab-content {
    margin-top: 10px;
}

.container-login {
    max-width: 430px;
}

.container-login .panel {
    border-radius: 3px;
}

.btn-info .text-info {
    color: #000;
}

.fc-scroller {
    height: auto !important;
}

.table-sem-padding > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
    padding: 2px 8px !important;

}

.table > thead > tr > th {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.label {
    font-weight: normal;
}

.panel .panel-heading {
    z-index: 2 !important;
}

.app-view-header {
    margin: 10px 0 15px 0;
}

.coluna-opcoes {
    min-width: 140px;
    width: 1%; /* encosta no conteúdo à direita */
    text-align: right;
}

@media print
{
    .no-print, .no-print *
    {
        display: none !important;
    }

    .print {
        box-shadow: none !important;
        border: 0px;
        border-color: #fff;
    }
}

.has-error h4 {
    color: #ff0000;
}

.has-error .ui-select-toggle {
    border-color: #ff0000 !important;
}

.fa-1-4x {
    font-size: 1.4em !important;
}

.table .checkbox {
    width: auto;
}

.textarea-no-resize {
    resize: none;
}

.popover-width-config-usuario {
    width: 350px;
    max-width: 350px;
}

.hover-cinza:hover {
    background-color: #f4f4f4;
    padding-left: 0;
    padding-right: 0;
}

.uib-dropdown > a > .label {
    margin-right: 5px;
    position: inherit;
    top: 0;
    right: 0;
}

.fa-1-2 {
    font-size: 1.1em !important;
}

.sidebar > .sidebar-nav > .nav > li > a > .sidebar-item-icon {
    margin-left: 6px;
}

.aside-mini .sidebar .sidebar-nav > .nav li > a > .sidebar-item-caret {
    display: inline-block !important;
    margin-right: -3px;
}

#bg-white .nav > li.active, .bg-white .nav > li.active2 {
    background-color: #f8f9f9 !important;
}

#bg-white .nav > li.active2 > a, .bg-white .nav > li.active2 > a {
    background-color: #f1f2f3;
}

.topnavbar .sidebar-toggle, .topnavbar .menu-toggle {
    color: #FE9700;
}

.bg-menu-superior a:focus,
.bg-menu-superior a:hover {
    color: #FE9700;
}

.bg-menu-superior .nav > li:hover > a,
.bg-gray-lighter .nav > li.active > a {
    color: #FE9700;
}

.navbar-nav > li > a {
    padding-top: 24.5px;
    padding-bottom: 25px;
}

.vertical-divider-left {
    height: 100%;
    float: left;
    width: 1px;
    background: #ddd;
    margin-right: 20px;
}

/* ===== DESIGN MODERNO E FLAT ===== */

/* Variáveis CSS */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --secondary-color: #764ba2;
    --success-color: #2e7d32;
    --danger-color: #c62828;
    --warning-color: #ef6c00;
    --info-color: #1976d2;
    --light-color: #f8f9fa;
    --dark-color: #495057;
    --gray-color: #6c757d;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.2s ease;
}

/* Modal Moderno */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 25px;
    position: relative;
}

.modern-header .modal-title {
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

.modern-header .modal-title i {
    margin-right: 10px;
    opacity: 0.9;
}

.modern-close {
    color: white;
    opacity: 0.8;
    font-size: 24px;
    text-shadow: none;
    transition: opacity 0.2s ease;
}

.modern-close:hover {
    opacity: 1;
    color: white;
}

.modern-body {
    padding: 30px;
    background: #f8f9fa;
}

.modern-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    text-align: right;
}

/* Loading Moderno */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-text {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* Cards Modernos */
.info-card,
.students-card,
.stats-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.card-header i {
    color: #667eea;
    font-size: 18px;
    margin-right: 12px;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.card-content {
    padding: 25px;
}

/* Grid de Informações */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #495057;
    font-weight: 500;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.label-success {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.label-danger {
    background: #ffebee;
    color: #c62828;
}

.status-badge.label-warning {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.label-default {
    background: #f5f5f5;
    color: #757575;
}

/* Tabela de Alunos Moderna */
.students-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.header-cell {
    padding: 15px 20px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-body {
    background: white;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background: #f8f9fa;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.student-name {
    font-weight: 500;
    color: #495057;
}

.student-name i {
    margin-right: 10px;
    color: #6c757d;
    font-size: 14px;
}

.actions {
    justify-content: flex-end;
}

/* Botões de Ação Modernos */
.action-buttons {
    display: flex;
    gap: 8px;
}

.presence-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.presence-btn.btn-neutral {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

.presence-btn.btn-neutral:hover {
    background: #e9ecef;
    color: #495057;
}

.presence-btn.btn-presente {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.presence-btn.btn-ausente {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.presence-btn.btn-reposicao {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.presence-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Grid de Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item.presente {
    background: #e8f5e8;
    border-color: #c8e6c9;
}

.stat-item.ausente {
    background: #ffebee;
    border-color: #ffcdd2;
}

.stat-item.reposicao {
    background: #fff3e0;
    border-color: #ffcc02;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
}

.stat-item.presente .stat-number {
    color: #2e7d32;
}

.stat-item.ausente .stat-number {
    color: #c62828;
}

.stat-item.reposicao .stat-number {
    color: #ef6c00;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botão Moderno */
.btn-modern {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-modern:hover {
    background: #5a6fd8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Eventos de Turma no Calendário */
.evento-turma {
    border-left: 4px solid #667eea !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

.evento-turma:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4) !important;
    transform: translateY(-1px) !important;
}

.fc-event.evento-turma .fc-title {
    font-weight: 600 !important;
}

.fc-event.evento-turma .fc-time {
    font-size: 0.9em !important;
    opacity: 0.9 !important;
}

/* ===== COMPONENTES GERAIS MODERNOS ===== */

/* Cards Gerais */
.modern-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* ===== FORMULÁRIO MODERNO (reutilizável) ===== */
.modern-form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    margin: 20px;
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
}

.form-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.form-body {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 30px;
}

/* Grid base dos formulários (substitui .form-horizontal visivelmente) */
.modern-form-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px 20px;
    align-items: start;
}

.modern-form-label {
    text-transform: uppercase;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    padding-top: 10px;
}

.modern-form-control {
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    color: #495057 !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.modern-form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

textarea.modern-form-control {
    min-height: 140px;
}

.modern-form-actions {
    display: flex;
    gap: 12px;
}

/* Botão principal do formulário */
.modern-form-submit {
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.modern-form-submit:hover {
    background: #5a6fd8;
}

/* Inputs do sistema herdando estilo moderno sem refatorar todas as views */
input.form-control,
select.form-control,
textarea.form-control {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 12px;
    color: #495057;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Select 2 e ui-select aproximação */
.ui-select-toggle,
.ui-select-search,
.ui-select-match .btn {
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .modern-form-grid {
        grid-template-columns: 1fr;
    }
    .modern-form-label {
        padding-top: 0;
    }
}

/* Botões Gerais */
.btn-flat {
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-flat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsividade */
@media (max-width: 768px) {
    .modern-body {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .header-cell {
        display: none;
    }

    .table-cell {
        padding: 10px 0;
    }

    .table-cell:before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 5px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== CALENDÁRIO MODERNO ===== */

/* Container Principal do Calendário */
.modern-calendar-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
}

/* Header do Calendário */
.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    text-align: left;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.date-display i {
    font-size: 20px;
    opacity: 0.9;
}

.current-date {
    text-transform: capitalize;
}

/* Controles do Calendário */
.calendar-controls {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 30px;
}

.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-select {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 200px;
}

.modern-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Botões de Visualização */
.view-buttons {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-btn {
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.view-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.view-btn i {
    font-size: 16px;
}

/* Botão Hoje */
.today-button {
    display: flex;
    align-items: center;
}

.btn-today {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-today:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Container do Calendário */
.calendar-container {
    padding: 20px 30px;
    background: white;
}

.modern-calendar {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* Footer com Legenda */
.calendar-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.legend-color.confirmed {
    background: #667eea;
}

.legend-color.pending {
    background: #6c757d;
}

.legend-color.cancelled {
    background: #dc3545;
}

.legend-color.turma {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.legend-text {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 12px;
}

.calendar-tip i {
    color: #667eea;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 16px;
}

.loading-content {
    text-align: center;
}

.loading-content .loading-spinner {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-content p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* Estilos do FullCalendar */
.fc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fc-toolbar {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.fc-toolbar h2 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.fc-button {
    background: white !important;
    border: 2px solid #e9ecef !important;
    color: #6c757d !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
}

.fc-button:hover {
    background: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fc-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.fc-button.fc-state-active {
    background: #667eea !important;
    border-color: #667eea !important;
    color: white !important;
}

.fc-day-header {
    background: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 8px !important;
    border-color: #e9ecef !important;
}

.fc-day {
    border-color: #e9ecef !important;
}

.fc-day-number {
    color: #495057 !important;
    font-weight: 500 !important;
}

.fc-today {
    background: #e3f2fd !important;
}

.fc-event {
    border-radius: 6px !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    font-weight: 500 !important;
    font-size: 12px !important;
}

.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .calendar-header {
        padding: 20px;
    }

    .date-display {
        font-size: 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .calendar-controls {
        padding: 15px 20px;
    }

    .controls-row {
        flex-direction: column;
        gap: 15px;
    }

    .view-buttons {
        width: 100%;
        justify-content: center;
    }

    .view-btn {
        flex: 1;
        justify-content: center;
    }

    .calendar-container {
        padding: 15px 20px;
    }

    .calendar-footer {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .legend {
        width: 100%;
        justify-content: space-between;
    }

    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
}

/* ===== NAVBAR MODERNA ===== */

/* Navbar Principal */
.modern-navbar {
    background: white !important;
    border-bottom: 1px solid #e9ecef !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
    min-height: 70px !important;
}

/* Header da Navbar */
.navbar-header {
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    height: 70px !important;
}

/* Brand/Logo */
.navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    text-decoration: none !important;
    color: #495057 !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin-left: 0 !important;
}

.navbar-brand:hover {
    color: #667eea !important;
    text-decoration: none !important;
}

.brand-logo {
    height: 45px !important;
    width: auto !important;
}

.brand-text {
    font-weight: 700 !important;
    color: #667eea !important;
    font-size: 24px !important;
}

/* Botão de Pesquisa */
.btn-offset {
    position: absolute !important;
    right: 20px !important;
    top: 15px !important;
    z-index: 99999 !important;
}

.btn-offset .btn {
    background: #667eea !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.2s ease !important;
}

.btn-offset .btn:hover {
    background: #5a6fd8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

.btn-offset .btn-circle {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-offset .btn-circle em {
    font-size: 18px !important;
}

/* Mobile Toggles */
.mobile-toggles {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.sidebar-toggle,
.menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    color: #6c757d !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 1px solid #e9ecef !important;
}

.sidebar-toggle:hover,
.menu-toggle:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

/* Nav Wrapper */
.nav-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0 20px !important;
    height: 70px !important;
}

/* Navbar Nav */
.navbar-nav {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

/* Nav Items */
.nav-item {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 18px !important;
    border-radius: 8px !important;
    color: #6c757d !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
    height: 100% !important;
}

.nav-link:hover {
    background: #f8f9fa !important;
    color: #495057 !important;
    text-decoration: none !important;
}

.nav-link.active {
    background: #667eea !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

.nav-text {
    font-size: 14px !important;
}

/* Menu de Notificações - Centralizado e com dropdown à esquerda */
.notification-menu {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.notification-menu .uib-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #495057 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    min-width: 150px !important;
    height: 100% !important;
}

.notification-menu .uib-dropdown-toggle:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    text-decoration: none !important;
}

.notification-menu .uib-dropdown-toggle em {
    font-size: 16px !important;
}

.notification-menu .uib-dropdown-toggle span {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Dropdown de Notificações - Alinhado à esquerda */
.notification-menu .uib-dropdown-menu {
    right: auto !important;
    left: 0 !important;
    transform: translateX(0) !important;
}

/* User Menu - Centralizado */
.user-menu {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.user-menu .user-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #495057 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    min-width: 200px !important;
    height: 100% !important;
}

.user-menu .user-toggle:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    text-decoration: none !important;
}

/* Dropdown do Usuário - Alinhado à direita */
.user-menu .uib-dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

/* Brand sem texto */
.navbar-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    text-decoration: none !important;
    color: #495057 !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin-left: 0 !important;
}

.navbar-brand:hover {
    color: #667eea !important;
    text-decoration: none !important;
}

.brand-logo {
    height: 45px !important;
    width: auto !important;
}

/* Menu de Notificações - Igual ao do Usuário */
.notification-menu .uib-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #495057 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    min-width: 150px !important;
}

.notification-menu .uib-dropdown-toggle:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    text-decoration: none !important;
}

.notification-menu .uib-dropdown-toggle em {
    font-size: 16px !important;
}

.notification-menu .uib-dropdown-toggle span {
    font-size: 14px !important;
    font-weight: 500 !important;
}

.notification-menu .label {
    background: #6c757d !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
}

.notification-menu .label.label-danger {
    background: #dc3545 !important;
}

.notification-menu .label.label-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.notification-menu .label.label-default {
    background: #6c757d !important;
}

/* User Menu */
.user-menu {
    position: relative !important;
}

/* User Menu com mais espaçamento */
.user-menu .user-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #495057 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    min-width: 200px !important;
}

.user-menu .user-toggle:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    text-decoration: none !important;
}

.user-avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #667eea !important;
    color: white !important;
    font-size: 16px !important;
}

.user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex: 1 !important;
}

.user-name {
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.user-role {
    font-size: 12px !important;
    opacity: 0.7 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.dropdown-arrow {
    font-size: 12px !important;
    opacity: 0.7 !important;
    transition: transform 0.2s ease !important;
}

.user-toggle.open .dropdown-arrow {
    transform: rotate(180deg) !important;
}

/* Modern Dropdown Menu */
.modern-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e9ecef !important;
    padding: 8px !important;
    min-width: 200px !important;
    z-index: 1000 !important;
    margin-top: 8px !important;
    display: none !important;
}

/* Dropdown Items */
.dropdown-item {
    list-style: none !important;
    margin: 0 !important;
}

.dropdown-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    color: #495057 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.dropdown-link:hover {
    background: #f8f9fa !important;
    color: #495057 !important;
    text-decoration: none !important;
    transform: translateX(4px) !important;
}

.dropdown-link em {
    width: 16px !important;
    text-align: center !important;
    color: #6c757d !important;
}

.logout-link {
    color: #dc3545 !important;
}

.logout-link:hover {
    background: #f8d7da !important;
    color: #dc3545 !important;
}

.logout-link em {
    color: #dc3545 !important;
}

.dropdown-divider {
    height: 1px !important;
    background: #e9ecef !important;
    margin: 8px 0 !important;
    border: none !important;
}

/* Apps Grid */
.apps-grid {
    min-width: 300px !important;
}

.apps-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 8px !important;
}

.app-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.app-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 12px !important;
    color: #495057 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    text-align: center !important;
}

.app-link:hover {
    background: #f8f9fa !important;
    color: #495057 !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.app-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: #667eea !important;
    color: white !important;
    font-size: 18px !important;
}

.app-name {
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* User Actions Grid */
.user-actions {
    min-width: 200px !important;
}

.actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 8px !important;
}

.action-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.action-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 12px !important;
    color: #495057 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    text-align: center !important;
}

.action-link:hover {
    background: #f8f9fa !important;
    color: #495057 !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.action-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: #667eea !important;
    color: white !important;
    font-size: 16px !important;
}

.action-name {
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Apps Menu */
.apps-menu .uib-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    color: #6c757d !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.apps-menu .uib-dropdown-toggle:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    text-decoration: none !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-header {
        padding: 0 15px !important;
    }

    .nav-wrapper {
        padding: 0 15px !important;
    }

    .navbar-nav {
        gap: 10px !important;
    }

    .nav-link {
        padding: 8px 12px !important;
    }

    .nav-text {
        display: none !important;
    }

    .user-toggle {
        min-width: auto !important;
        padding: 8px 12px !important;
    }

    .user-info {
        display: none !important;
    }

    .dropdown-arrow {
        display: none !important;
    }

    .modern-dropdown-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
    }

    .apps-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Melhorias nos Dropdowns */
.uib-dropdown {
    position: relative !important;
}

.uib-dropdown-menu {
    display: none !important;
    position: absolute !important;
    z-index: 1000 !important;
}

.uib-dropdown.open .uib-dropdown-menu {
    display: block !important;
}

/* Auto-close behavior */
.uib-dropdown[auto-close="outsideClick"] .uib-dropdown-menu {
    display: none !important;
}

.uib-dropdown[auto-close="outsideClick"].open .uib-dropdown-menu {
    display: block !important;
}

/* Melhorias no User Menu */
.user-menu .uib-dropdown-toggle {
    cursor: pointer !important;
}

.user-menu .uib-dropdown-toggle:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    text-decoration: none !important;
}

/* Garantir que dropdowns fechem ao clicar fora */
.modern-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e9ecef !important;
    padding: 8px !important;
    min-width: 200px !important;
    z-index: 1000 !important;
    margin-top: 8px !important;
    display: none !important;
}

.uib-dropdown.open .modern-dropdown-menu {
    display: block !important;
}

/* Melhorias na responsividade */
@media (max-width: 768px) {
    .modern-dropdown-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
    }
}

/* Estilos para Notificações Modernas */
.notification-badge {
    background: #6c757d !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
}

.notification-badge.badge-danger {
    background: #dc3545 !important;
}

.notification-badge.badge-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.notification-badge.badge-default {
    background: #6c757d !important;
}

/* Dropdown de Notificações */
.notification-dropdown {
    min-width: 400px !important;
    max-width: 500px !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    right: auto !important;
    left: 0 !important;
    transform: translateX(0) !important;
}

/* Modern Dropdown Menu - Ajuste para notificações */
.notification-menu .modern-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #e9ecef !important;
    padding: 8px !important;
    min-width: 400px !important;
    z-index: 1000 !important;
    margin-top: 8px !important;
    display: none !important;
}

.notification-menu.uib-dropdown.open .modern-dropdown-menu {
    display: block !important;
}

.notification-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #e9ecef !important;
    background: #f8f9fa !important;
    border-radius: 12px 12px 0 0 !important;
}

.notification-title {
    font-weight: 600 !important;
    color: #495057 !important;
    font-size: 16px !important;
}

.notification-link {
    color: #667eea !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.notification-link:hover {
    color: #5a6fd8 !important;
    text-decoration: none !important;
}

.notification-content {
    padding: 0 !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

.notification-content.loading {
    opacity: 0.6 !important;
}

.notification-item {
    border-bottom: 1px solid #e9ecef !important;
}

.notification-item:last-child {
    border-bottom: none !important;
}

.notification-card {
    padding: 16px 20px !important;
    transition: background 0.2s ease !important;
}

.notification-card:hover {
    background: #f8f9fa !important;
}

.notification-card.unread {
    background: #e3f2fd !important;
    border-left: 4px solid #667eea !important;
}

.notification-header-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #28a745 !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
}

.notification-time {
    color: #6c757d !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
    text-align: right !important;
}

.notification-author {
    margin-bottom: 8px !important;
}

.notification-author strong {
    color: #495057 !important;
    font-size: 14px !important;
}

.notification-message {
    color: #6c757d !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
}

.notification-options {
    margin-top: 12px !important;
}

.notification-info {
    color: #6c757d !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
}

.notification-buttons {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.notification-btn {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: #f8f9fa !important;
    color: #495057 !important;
}

.notification-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.notification-btn.btn-primary {
    background: #667eea !important;
    color: white !important;
}

.notification-btn.btn-success {
    background: #28a745 !important;
    color: white !important;
}

.notification-btn.btn-danger {
    background: #dc3545 !important;
    color: white !important;
}

.notification-btn.btn-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.notification-link-item {
    color: #667eea !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    margin-top: 8px !important;
}

.notification-link-item:hover {
    color: #5a6fd8 !important;
    text-decoration: none !important;
}

.notification-empty {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #6c757d !important;
}

.notification-empty em {
    font-size: 32px !important;
    margin-bottom: 12px !important;
    display: block !important;
    opacity: 0.5 !important;
}

.notification-empty p {
    margin: 0 !important;
    font-size: 14px !important;
}

/* ===== DASHBOARD MODERNA ===== */

/* Container Principal da Dashboard */
.modern-dashboard-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
    margin: 20px;
}

/* Header da Dashboard */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    text-align: left;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.dashboard-title i {
    font-size: 28px;
    opacity: 0.9;
}

.dashboard-subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

/* Grid de Estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon i {
    display: block !important;
    font-size: 24px !important;
    color: white !important;
    text-align: center !important;
    line-height: 1 !important;
}

.stat-icon .fa {
    display: block !important;
    font-size: 24px !important;
    color: white !important;
    text-align: center !important;
    line-height: 1 !important;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Seção Financeira */
.financial-section {
    padding: 30px;
    background: white;
}

.section-header {
    margin-bottom: 25px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.section-header h3 i {
    color: #667eea;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.financial-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.financial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.financial-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.financial-header span {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.financial-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.financial-subtitle {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* Seção de Gráficos */
.charts-section {
    padding: 30px;
    background: #f8f9fa;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.chart-header h4 i {
    color: #667eea;
}

.chart-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.filter-btn.active {
    background: #667eea;
    color: white;
}

.chart-content {
    position: relative;
}

.chart-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #6c757d;
}

.chart-note i {
    color: #667eea;
}

/* Seção Lateral */
.sidebar-section {
    padding: 30px;
    background: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.table-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.table-header {
    margin-bottom: 20px;
}

.table-header h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.table-header h4 i {
    color: #667eea;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-table thead {
    background: #667eea;
    color: white;
}

.modern-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
}

.modern-table tbody tr:hover {
    background: #f8f9fa;
}

.debit-value {
    color: #dc3545;
    font-weight: 600;
}

.empty-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Cards de Métricas */
.metric-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
}

.metric-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-badge.success {
    background: #28a745;
    color: white;
}

.metric-badge.warning {
    background: #ffc107;
    color: #212529;
}

/* Timeline de Atividades */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.activity-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 16px;
}

.loading-content {
    text-align: center;
}

.loading-content .loading-spinner {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-content p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .modern-dashboard-container {
        margin: 10px;
    }

    .dashboard-header {
        padding: 20px;
    }

    .dashboard-title {
        font-size: 20px;
    }

    .dashboard-subtitle {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .financial-section {
        padding: 20px;
    }

    .financial-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .charts-section {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-container {
        padding: 20px;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-section {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .table-container {
        padding: 20px;
    }

    .modern-table {
        font-size: 13px;
    }

    .modern-table th,
    .modern-table td {
        padding: 10px;
    }

    .metric-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .metric-card {
        padding: 15px;
    }

    .activity-timeline {
        gap: 10px;
    }

    .activity-item {
        padding: 12px;
    }
}

/* ===== LISTAGEM MODERNA ===== */

/* Container Principal da Listagem */
.modern-listagem-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
    position: relative;
    margin: 20px;
}

/* Header da Listagem */
.listagem-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    text-align: left;
}

.listagem-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.listagem-title i {
    font-size: 28px;
    opacity: 0.9;
}

.listagem-subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

/* Pesquisa no Header */
.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search .search-container {
    position: relative;
    width: 100%;
}

.header-search .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    z-index: 2;
}

.header-search-input {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.header-search .search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 14px;
    z-index: 2;
    transition: color 0.2s ease;
}

.header-search .search-clear:hover {
    color: white;
}

/* Navegação Moderna */
.navigation-section {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.navigation-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Navegação Moderna - Botões */
.modern-navigation {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: white;
    color: #6c757d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    color: white;
    border-color: transparent;
}

.nav-btn:hover::before {
    left: 0;
}

.nav-btn-text {
    position: relative;
    z-index: 1;
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.nav-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Estilos para botões de navegação específicos */
.navigation-container .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navigation-container .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.navigation-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.navigation-container .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.navigation-container .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.navigation-container .btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
}

.navigation-container .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(23, 162, 184, 0.3);
}

.navigation-container .btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #212529;
}

.navigation-container .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.navigation-container .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

.navigation-container .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.navigation-container .btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.navigation-container .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);
}

.navigation-container .btn-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1px solid #dee2e6;
}

.navigation-container .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.navigation-container .btn-dark {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    color: white;
}

.navigation-container .btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(52, 58, 64, 0.3);
}

/* Responsividade da Navegação */
@media (max-width: 768px) {
    .listagem-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px 25px;
    }

    .header-content {
        text-align: left;
    }

    .listagem-title {
        font-size: 20px;
        justify-content: center;
    }

    .listagem-subtitle {
        font-size: 14px;
    }

    .header-search {
        max-width: 100%;
    }

    .header-search-input {
        padding: 12px 40px 12px 40px;
        font-size: 14px;
    }

    .nav-buttons {
        gap: 8px;
        justify-content: center;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .navigation-container {
        justify-content: center;
        gap: 10px;
    }

    .navigation-container .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Conteúdo da Listagem */
.listagem-content {
    padding: 30px;
    background: #f8f9fa;
}

/* Seção de Pesquisa */
.search-section {
    margin-bottom: 25px;
}

.search-container {
    position: relative;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    z-index: 2;
}

.modern-search-input {
    width: 100%;
    padding: 15px 45px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
    font-size: 14px;
    z-index: 2;
    transition: color 0.2s ease;
}

.search-clear:hover {
    color: #dc3545;
}

/* Seção da Tabela */

.table-container {
    position: relative;
}

/* Header da Tabela */
.table-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #667eea;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.table-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.table-count i {
    color: #667eea;
    font-size: 16px;
}

/* Tabela Moderna */
.modern-table-container {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.modern-table thead {
    background: #f8f9fa;
}

.modern-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: left;
}

.modern-table th:hover {
    background: #e9ecef;
}

.sort-icons {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 8px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.modern-table th:hover .sort-icons {
    opacity: 1;
}

.sort-up, .sort-down {
    font-size: 10px;
    color: #6c757d;
}

.sort-asc .sort-up {
    color: #667eea;
    opacity: 1;
}

.sort-desc .sort-down {
    color: #667eea;
    opacity: 1;
}

/* Linhas da Tabela */
.table-row {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.table-row:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-cell {
    padding: 18px 20px;
    vertical-align: middle;
    color: #495057;
    border-bottom: 1px solid #f1f3f4;
}

.cell-text {
    line-height: 1.5;
    word-break: break-word;
}

/* Ações */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn.btn-edit {
    background: #667eea;
    color: white;
}

.action-btn.btn-edit:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn.btn-delete {
    background: #dc3545;
    color: white;
}

.action-btn.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Cards Mobile */
.mobile-cards {
    padding: 20px;
}

.card-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.2s ease;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 20px;
}

.card-fields {
    margin-bottom: 15px;
}

.field-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.field-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.field-value {
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
}

.card-actions {
    border-top: 1px solid #f1f3f4;
    padding-top: 15px;
}

.mobile-action-buttons {
    display: flex;
    gap: 10px;
}

.mobile-action-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-action-btn.btn-edit {
    background: #667eea;
    color: white;
}

.mobile-action-btn.btn-edit:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.mobile-action-btn.btn-delete {
    background: #dc3545;
    color: white;
}

.mobile-action-btn.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
    color: #6c757d;
}

/* Responsividade */
@media (max-width: 768px) {
    .modern-listagem-container {
        margin: 10px;
        border-radius: 12px;
    }

    .listagem-header {
        padding: 20px 25px;
    }

    .listagem-title {
        font-size: 20px;
    }

    .listagem-subtitle {
        font-size: 14px;
    }

    .listagem-content {
        padding: 20px;
    }

    .search-container {
        max-width: 100%;
    }

    .modern-search-input {
        padding: 12px 40px 12px 40px;
        font-size: 14px;
    }

    .table-header {
        padding: 15px 20px;
    }

    .modern-table th,
    .modern-table td {
        padding: 12px 15px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .mobile-cards {
        padding: 15px;
    }

    .card-content {
        padding: 15px;
    }

    .mobile-action-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-icon {
        font-size: 36px;
    }

    .empty-title {
        font-size: 16px;
    }

    .empty-subtitle {
        font-size: 13px;
    }
}

/* Animações */
.modern-listagem-container {
    animation: fadeInUp 0.5s ease-out;
}

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

.table-row {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card-item {
    animation: slideInUp 0.4s ease-out;
}

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

/* Tabela Moderna - Sobrescrevendo ngTable */
.modern-listagem-container .modern-table-container .modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.modern-listagem-container .modern-table-container .modern-table thead {
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

 .modern-listagem-container .modern-table-container .modern-table th {
    padding: 18px 20px !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: #495057 !important;
    border-bottom: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    vertical-align: middle !important;
    background: transparent !important;
    display: table-cell !important;
    white-space: nowrap !important;
}
.modern-listagem-container .modern-table-container .modern-table th .th-label {
    display: inline-block !important;
    vertical-align: middle !important;
}

.modern-listagem-container .modern-table-container .modern-table th:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-1px) !important;
    color: #495057 !important;
}

.modern-listagem-container .modern-table-container .modern-table .sort-up,
.modern-listagem-container .modern-table-container .modern-table .sort-down {
    font-size: 10px !important;
    color: #6c757d !important;
}

.modern-listagem-container .modern-table-container .modern-table .sort-asc .sort-up {
    color: #667eea !important;
    opacity: 1 !important;
}

.modern-listagem-container .modern-table-container .modern-table .sort-desc .sort-down {
    color: #667eea !important;
    opacity: 1 !important;
}

/* Linhas da Tabela */
.modern-listagem-container .modern-table-container .modern-table tr {
    transition: all 0.2s ease !important;
    border-bottom: 1px solid #f1f3f4 !important;
}

.modern-listagem-container .modern-table-container .modern-table tr:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.modern-listagem-container .modern-table-container .modern-table td {
    padding: 18px 20px !important;
    vertical-align: middle !important;
    color: #495057 !important;
    border-bottom: 1px solid #f1f3f4 !important;
    text-align: left !important;
}

.modern-listagem-container .modern-table-container .modern-table .cell-text {
    line-height: 1.5 !important;
    word-break: break-word !important;
}

/* Ações */
.modern-listagem-container .modern-table-container .modern-table .action-buttons {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    align-items: center !important;
}

.modern-listagem-container .modern-table-container .modern-table .action-btn {
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.modern-listagem-container .modern-table-container .modern-table .action-btn.btn-edit {
    background: #667eea !important;
    color: white !important;
}

.modern-listagem-container .modern-table-container .modern-table .action-btn.btn-edit:hover {
    background: #5a6fd8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.modern-listagem-container .modern-table-container .modern-table .action-btn.btn-delete {
    background: #dc3545 !important;
    color: white !important;
}

.modern-listagem-container .modern-table-container .modern-table .action-btn.btn-delete:hover {
    background: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

.modern-listagem-container .modern-table-container .modern-table th:hover .sort-icons {
    opacity: 1 !important;
}

.modern-listagem-container .modern-table-container .modern-table .sort-icons {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    gap: 2px !important;
    margin-left: 6px !important;
    position: static !important; /* evita deslocamento relativo */
    vertical-align: middle !important; /* alinha com o texto */
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
}

/* ===== SIDEBAR MODERNA ===== */

/* Estilos base da sidebar */
.sidebar {
    background: white !important;
    border-right: 1px solid #e9ecef !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05) !important;
}

.sidebar > .sidebar-nav > .nav > li > a {
    padding: 12px 15px !important;
    margin: 2px 8px !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}

.sidebar > .sidebar-nav > .nav > li > a:hover {
    background: #f8f9fa !important;
}

/* Item active da sidebar - estilo moderno */
.sidebar > .sidebar-nav > .nav > li.active > a,
.sidebar > .sidebar-nav > .nav > li.active2 > a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2) !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.sidebar > .sidebar-nav > .nav > li.active > a:hover,
.sidebar > .sidebar-nav > .nav > li.active2 > a:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
}

/* Ícone do item active */
.sidebar > .sidebar-nav > .nav > li.active > a > .sidebar-item-icon,
.sidebar > .sidebar-nav > .nav > li.active2 > a > .sidebar-item-icon {
    color: white !important;
}

/* Texto do item active */
.sidebar > .sidebar-nav > .nav > li.active > a > span,
.sidebar > .sidebar-nav > .nav > li.active2 > a > span {
    color: white !important;
    font-weight: 600 !important;
}

/* Subnav items - estilo moderno */
.sidebar-subnav > li > a {
    padding: 10px 15px 10px 40px !important;
    margin: 1px 8px !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease !important;
    background: transparent !important;
}

.sidebar-subnav > li > a:hover {
    background: #f8f9fa !important;
}

.sidebar-subnav > li.active > a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2) !important;
    padding-left: 40px !important;
    padding-right: 15px !important;
}

.sidebar-subnav > li.active > a:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
}

/* Ícone do subnav active */
.sidebar-subnav > li.active > a > .sidebar-item-icon {
    color: white !important;
}

/* Estilos para sidebar mini (fechada) */
.aside-mini .sidebar > .sidebar-nav > .nav > li > a {
    padding: 12px 8px !important;
    margin: 2px 4px !important;
}

.aside-mini .sidebar > .sidebar-nav > .nav > li.active > a,
.aside-mini .sidebar > .sidebar-nav > .nav > li.active2 > a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2) !important;
}

.aside-mini .sidebar > .sidebar-nav > .nav > li.active > a > .sidebar-item-icon,
.aside-mini .sidebar > .sidebar-nav > .nav > li.active2 > a > .sidebar-item-icon {
    color: white !important;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .sidebar > .sidebar-nav > .nav > li > a {
        margin: 1px 5px !important;
        padding: 10px 12px !important;
    }

    .sidebar-subnav > li > a {
        margin: 1px 5px !important;
        padding: 8px 12px 8px 35px !important;
    }
}

/* ===== MENSALIDADES MODERNA ===== */

/* Container Principal das Mensalidades (alinhado à dashboard/calendário) */
.modern-mensalidades-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    margin: 20px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header das Mensalidades */
.mensalidades-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 0; /* integrado ao container */
}

/* Header com título à esquerda e ação à direita */
.mensalidades-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mensalidades-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mensalidades-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.mensalidades-title i {
    font-size: 32px;
    opacity: 0.9;
}

.mensalidades-subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

/* Seção de Ações removida: ação principal no cabeçalho */

.section-header {
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #495057;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #667eea;
}

/* (sem grid de ações) */

.action-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

/* (sem hover acentuado em cards removidos) */

.action-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.action-header i {
    font-size: 16px;
}

.action-content p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Seção de Conteúdo */
.content-section {
    margin: 20px 0 30px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    padding: 0 30px 30px 30px; /* alinha conteúdo com header */
}

.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

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

.card-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h4 i {
    color: #667eea;
}

.card-actions {
    display: flex;
    gap: 8px;
}

/* Botões do cabeçalho com contraste para ícones/brand */
.btn-modern.btn-contrast {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #fff;
}

.btn-modern.btn-contrast:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transform: none;
}

.btn-modern.btn-light {
    background: #fff;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-modern.btn-light:hover {
    background: #f1f3f5;
    color: #343a40;
    box-shadow: none;
    transform: none;
}

.btn-modern.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.card-content {
    padding: 25px;
    position: relative;
}

/* Badges e Status */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.badge-primary {
    background: #667eea;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

/* Estilos básicos para tabelas de mensalidades */
.modern-mensalidades-container table {
    width: 100%;
    border-collapse: collapse;
}

.modern-mensalidades-container table th,
.modern-mensalidades-container table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.modern-mensalidades-container table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.modern-mensalidades-container table td {
    background: white;
}

.modern-mensalidades-container table tbody tr:hover {
    background: #f8f9fa;
}

.modern-mensalidades-container .text-center {
    text-align: center;
}

.modern-mensalidades-container .text-right {
    text-align: right;
}

.modern-mensalidades-container .text-success {
    color: #28a745;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .modern-mensalidades-container {
        padding: 20px;
    }

    .mensalidades-header {
        padding: 20px;
        margin-bottom: 20px;
    }

    .mensalidades-title {
        font-size: 24px;
    }

    .mensalidades-title i {
        font-size: 28px;
    }

    .mensalidades-subtitle {
        font-size: 14px;
    }

    .actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .action-card {
        padding: 20px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-header {
        padding: 15px 20px;
    }

    .card-content {
        padding: 20px;
    }

    .card-header h4 {
        font-size: 16px;
    }


}

