/* Reduzir fonte global do sistema */
html, body {
    font-size: 12px !important;
    max-width: 100%;
    overflow-x: hidden;
}

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

img, video, iframe {
    max-width: 100%;
    height: auto;
}
/* ===== SIDENAV (Materialize padrão) ===== */
.sidenav,
.sidenav.sidenav-fixed {
    width: 280px;
    background: linear-gradient(135deg, #263238 0%, #11181d 100%);
    color: #fff;
    border-radius: 0 20px 20px 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 24px;
}

/* Estilizar scrollbar do sidenav */
.sidenav::-webkit-scrollbar {
    width: 8px;
}

.sidenav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 8px 0;
}

.sidenav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.sidenav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.sidenav .sidenav-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 20px 20px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.sidenav .logo {
    background: linear-gradient(135deg, #fff 0%, #c8e6c9 100%);
    color: #388e3c;
    font-weight: 900;
    font-size: 2rem;
    border-radius: 12px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.sidenav .sidenav-title {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.sidenav .brand-link {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.15rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.sidenav .brand-link:hover {
    color: #4caf50;
}

.sidenav .user-firstname {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #81c784;
    font-weight: 600;
    opacity: 0.95;
}

.sidenav .tagline {
    font-size: 0.8rem;
    color: #c8e6c9;
    margin-top: 2px;
    line-height: 1.2;
}

.sidenav li {
    line-height: normal;
    margin: 0;
    padding: 0;
}

.sidenav li > a {
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 11px 16px;
    margin: 2px 12px;
    line-height: 1.5;
    min-height: 44px;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidenav li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #66bb6a;
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidenav li > a i.material-icons {
    color: #c8e6c9;
    margin-right: 12px;
    font-size: 22px;
    width: 26px;
    text-align: center;
    transition: all 0.25s ease;
}

.sidenav li.active > a {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(56, 142, 60, 0.15) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.sidenav li.active > a::before {
    transform: scaleY(1);
}

.sidenav li.active > a i.material-icons {
    color: #66bb6a;
    transform: scale(1.1);
}

.sidenav li > a:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 20px;
}

.sidenav li > a:hover i.material-icons {
    color: #81c784;
    transform: translateX(2px);
}

.sidenav .subheader {
    color: #81c784;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.7rem;
    padding: 20px 24px 8px 24px !important;
    line-height: 1.4;
    margin-top: 8px;
    opacity: 0.9;
}

.sidenav .divider {
    margin: 12px 20px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 20%, 
        rgba(255, 255, 255, 0.15) 80%, 
        transparent 100%
    );
    height: 1px;
}

.sidenav-logout {
    margin-top: 16px;
    padding: 0 !important;
}

.sidenav-logout .btn-flat {
    width: 100%;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    margin: 0 12px;
    width: calc(100% - 24px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
    text-align: left;
    border-radius: 10px;
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    transition: all 0.25s ease;
}

.sidenav-logout .btn-flat:hover {
    background: rgba(244, 67, 54, 0.25);
    border-color: rgba(244, 67, 54, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

.sidenav-logout .btn-flat i {
    color: #ef5350;
}

.sidenav-trigger {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: linear-gradient(135deg, #263238 0%, #11181d 100%);
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidenav-trigger:hover {
    background: linear-gradient(135deg, #37474f 0%, #263238 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.sidenav-trigger i {
    font-size: 24px;
}

/* Layout principal considerando sidebar fixa */
main.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    background: #f5f7fa;
}

/* Limita largura máxima em telas muito grandes para melhor legibilidade */
@media (min-width: 1600px) {
    main.main-content {
        max-width: 1400px;
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}
/* Utilitário para alinhar botões de ação lado a lado na tabela de clientes */
.actions-inline {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

/* ===== PADRÃO DE ÍCONES DE AÇÃO ===== */
/* 
 * PADRÃO DE CORES PARA ÍCONES DE AÇÃO NO SISTEMA
 * 
 * 🎁 Doação/Adicionar     - Verde   (#4caf50) - card_giftcard, add
 * ✏️ Editar               - Azul    (#2196f3) - edit
 * 👁️ Visualizar/Abrir     - Roxo    (#9c27b0) - visibility, open_in_new
 * 📥 Download             - Azul    (#2196f3) - download, get_app
 * ✅ Ativar               - Verde   (#4caf50) - check_circle, toggle_on
 * 🚫 Desativar/Bloquear   - Laranja (#ff9800) - block, toggle_off
 * 🗑️ Excluir/Deletar      - Vermelho(#f44336) - delete, delete_forever
 * 💬 Mensagem             - Azul    (#2196f3) - message, chat
 * 📄 PDF/Documento        - Vermelho(#f44336) - picture_as_pdf, description
 * 
 * Classes CSS:
 * - .green-text, .blue-text, .red-text, .orange-text, .purple-text
 * - Adicionar .tooltipped para tooltip
 * - Usar data-position="top" data-tooltip="Texto"
 */

/* Estilo base para todos os botões de ação */
.btn-flat.btn-small {
    transition: all 0.2s ease;
    position: relative;
    border-radius: 4px;
}

.btn-flat.btn-small:hover {
    transform: scale(1.1);
}

.btn-flat.btn-small .material-icons {
    transition: all 0.2s ease;
}

/* Ícone de Doação - Verde */
.fazer-doacao-rapida {
    color: #4caf50 !important;
}

.fazer-doacao-rapida:hover {
    background: rgba(76, 175, 80, 0.1) !important;
}

.fazer-doacao-rapida:hover .material-icons {
    transform: scale(1.15);
}

/* Ícone de Editar - Azul */
.btn-flat.blue-text {
    color: #2196f3 !important;
}

.btn-flat.blue-text:hover {
    background: rgba(33, 150, 243, 0.1) !important;
}

.btn-flat.blue-text:hover .material-icons {
    transform: scale(1.15);
}

/* Ícone de Ativar - Verde */
.btn-flat.green-text {
    color: #4caf50 !important;
}

.btn-flat.green-text:hover {
    background: rgba(76, 175, 80, 0.1) !important;
}

.btn-flat.green-text:hover .material-icons {
    transform: scale(1.15);
}

/* Ícone de Desativar - Laranja */
.btn-flat.orange-text {
    color: #ff9800 !important;
}

.btn-flat.orange-text:hover {
    background: rgba(255, 152, 0, 0.1) !important;
}

.btn-flat.orange-text:hover .material-icons {
    transform: scale(1.15);
}

/* Ícone de Excluir - Vermelho */
.btn-flat.red-text {
    color: #f44336 !important;
}

.btn-flat.red-text:hover {
    background: rgba(244, 67, 54, 0.1) !important;
}

.btn-flat.red-text:hover .material-icons {
    transform: scale(1.15);
}

/* Ícone de Mensagem - Azul */
.abrir-modal-mensagens {
    color: #2196f3 !important;
    transition: all 0.2s ease;
}

.abrir-modal-mensagens:hover {
    background: rgba(33, 150, 243, 0.1) !important;
    border-radius: 4px;
    transform: scale(1.1);
}

.abrir-modal-mensagens:hover .material-icons {
    transform: scale(1.15);
}

/* Ícone de Roxo (para ações especiais) */
.btn-flat.purple-text {
    color: #9c27b0 !important;
}

.btn-flat.purple-text:hover {
    background: rgba(156, 39, 176, 0.1) !important;
}

.btn-flat.purple-text:hover .material-icons {
    transform: scale(1.15);
}
/* assets/css/style.css */
/* ===== DESIGN SYSTEM ===== */
:root {
    --primary-color: #4caf50;
    --primary-dark: #45a049;
    --primary-light: #c8e6c9;
    --secondary-color: #263238;
    --accent-color: #ff9800;
    --danger-color: #f44336;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    
    --bg-light: #f5f7fa;
    --bg-card: #ffffff;
    --text-dark: #263238;
    --text-muted: #90a4ae;
    --border-color: #e0e0e0;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.16);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ===== MODAL MINIMAL CSS (Materialize compatible) ===== */
.modal {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-xl) !important;
    background-color: var(--bg-card) !important;
    max-height: 90vh !important;
}

@media (max-width: 600px) {
    .modal {
        width: 95% !important;
        max-width: 95% !important;
        margin-left: 2.5% !important;
        max-height: 85vh !important;
    }
    
    .modal-content {
        max-height: calc(85vh - 140px) !important;
        overflow-y: auto !important;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    padding: 20px 24px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    min-height: 60px !important;
}

.modal-header h4,
.modal-title {
    color: white !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1;
}

.modal-header .modal-close {
    color: white !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 28px !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

.modal-header .modal-close:hover {
    opacity: 1 !important;
}

/* Garantir que botões/links de fechar modal não tenham fundo colorido */
.modal .modal-close,
.modal .modal-close.btn,
.modal .modal-close.btn-flat,
.modal .modal-close.waves-effect {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.modal .modal-close:hover,
.modal .modal-close:focus,
.modal .modal-close:active,
.modal .modal-close.btn-flat:hover,
.modal .modal-close.btn-flat:focus,
.modal .modal-close.waves-effect:hover,
.modal .modal-close.waves-effect:focus {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.modal-content {
    padding: 24px !important;
}

.modal-footer {
    padding: 16px 24px !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
}

.modal-footer .btn {
    margin: 0 !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
}

/* Mensagens do cliente - layout do modal */
.mensagem-modal .modal-content {
    padding-top: 20px !important;
    padding-bottom: 12px !important;
}

.mensagem-modal .mensagem-form-card,
.mensagem-modal .mensagem-historico-card {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
}

.mensagem-modal .mensagem-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.mensagem-modal .materialize-textarea {
    min-height: 120px;
}

.mensagem-modal .mensagem-historico-list {
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    max-height: 220px;
    overflow-y: auto;
}

.mensagem-modal .mensagem-historico-empty {
    margin: 0;
    text-align: center;
    color: var(--text-muted);
}

/* Tabs no modal - 2 colunas centralizadas */
.tabs-cliente {
    display: flex ;
    justify-content: center ;
    width: 100% ;
    margin: 0 ;
}

.tabs-cliente li.tab {
    width: 50% ;
    text-align: center ;
}

.tabs-cliente li.tab a {
    display: flex ;
    align-items: center ;
    justify-content: center ;
    padding: 12px 16px ;
    gap: 8px ;
}

/* Esconder botões de salvar quando na aba histórico */
#tab-historico .row.mt-lg {
    display: none !important;
}

/* Modal footer com botões */
#modal-novo-cliente .modal-footer {
    justify-content: flex-end !important;
    gap: 12px !important;
}

#modal-novo-cliente .modal-footer .btn,
#modal-novo-cliente .modal-footer .btn-flat {
    margin: 0 !important;
}

/* Reset básico + Materialize overrides */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.4;
    font-size: 14px;
}


.table-highlight tr {
    transition: all 0.2s ease;
}

.table-highlight tr:hover {
    background-color: rgba(76, 175, 80, 0.05) !important;
}

table thead {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

table thead th {
    font-weight: 600 !important;
    color: white !important;
    border-bottom: 2px solid var(--primary-color) !important;
    padding: 8px 10px !important;
    font-size: 0.85rem;
}

table tbody td {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 8px 10px !important;
}

/* BADGES AND LABELS */
.badge {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge.green {
    background-color: var(--primary-color);
    color: white;
}

.badge.grey {
    background-color: var(--text-muted);
    color: white;
}

.badge.red {
    background-color: var(--danger-color);
    color: white;
}

/* BUTTONS */
/* Corrige conflito: não sobrescreve display dos botões SweetAlert2 */
.btn, button:not(.swal2-deny):not(.swal2-confirm):not(.swal2-cancel):not(.swal2-styled) {
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 12px !important;
    padding: 10px 24px !important;
    height: auto !important;
    line-height: 1.4 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
}

.btn.green {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn.green:hover {
    background-color: var(--primary-dark) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px) !important;
}

.btn.red {
    background-color: var(--danger-color) !important;
    color: white !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn.red:hover {
    background-color: #da190b !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px) !important;
}

.btn-flat {
    background-color: #e8eef2 !important;
    color: var(--text-dark) !important;
}

.btn-flat:hover {
    background-color: #d0dce6 !important;
}

/* ALERTS AND PANELS */
.card-panel {
    border-radius: var(--radius-md) !important;
    border-left: 4px solid var(--border-color);
    padding: 16px 20px !important;
    box-shadow: var(--shadow-sm) !important;
}

.card-panel.red {
    background-color: #ffebee !important;
    border-left-color: var(--danger-color) !important;
    color: #c62828 !important;
}

.card-panel.green {
    background-color: #e8f5e9 !important;
    border-left-color: var(--primary-color) !important;
    color: #2e7d32 !important;
}

.card-panel.blue {
    background-color: #e3f2fd !important;
    border-left-color: var(--info-color) !important;
    color: #1565c0 !important;
}

.card-panel.amber {
    background-color: #fff8e1 !important;
    border-left-color: var(--warning-color) !important;
    color: #e65100 !important;
}

/* Responsividade e Mobile */
@media only screen and (max-width: 992px) {
    main.main-content {
        margin-left: 0;
        width: 100%;
        min-height: 100vh;
        padding: 16px;
        box-sizing: border-box;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .sidenav-trigger {
        display: block !important;
    }
}

@media only screen and (max-width: 600px) {
    main.main-content {
        padding: 12px;
    }
    
    .card-content {
        padding: 16px !important;
    }
    
    .sidenav {
        width: 280px !important;
    }
}

.flex {
    display: flex !important;
}

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

.flex-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.gap-sm {
    gap: 8px !important;
}

.gap-md {
    gap: 16px !important;
}

.gap-lg {
    gap: 24px !important;
}

@media (max-width: 600px) {
    .gap-md {
        gap: 12px !important;
    }
    
    .gap-lg {
        gap: 16px !important;
    }
}

.mt-sm {
    margin-top: 8px !important;
}

.mt-md {
    margin-top: 16px !important;
}

.mt-lg {
    margin-top: 24px !important;
}

.mb-sm {
    margin-bottom: 8px !important;
}

.mb-md {
    margin-bottom: 16px !important;
}

.mb-lg {
    margin-bottom: 24px !important;
}

@media (max-width: 600px) {
    .mt-md {
        margin-top: 12px !important;
    }
    
    .mt-lg {
        margin-top: 16px !important;
    }
    
    .mb-md {
        margin-bottom: 12px !important;
    }
    
    .mb-lg {
        margin-bottom: 16px !important;
    }
}

.p-sm {
    padding: 8px !important;
}

.p-md {
    padding: 16px !important;
}

.p-lg {
    padding: 24px !important;
}

@media (max-width: 600px) {
    .p-md {
        padding: 12px !important;
    }
    
    .p-lg {
        padding: 16px !important;
    }
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

.rounded-md {
    border-radius: var(--radius-md) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

/* CARD HISTORY */
.card-history {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

/* CARD ACTIONS */
.card-action a {
    text-align: center;
}

.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-floating) {
    margin-right: auto;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

.card .card-action a:not(.btn):not(.btn-large):not(.btn-small):not(.btn-floating):hover {
    color: var(--primary-dark);
}

/* TABLES */
.striped tbody tr:nth-child(odd) {
    background-color: transparent;
}

.striped tbody tr:nth-child(even) {
    background-color: rgba(76, 175, 80, 0.02);
}

.highlight tbody tr:hover {
    background-color: rgba(76, 175, 80, 0.08) !important;
}

/* Proponentes desativados */
.row-inactive td {
    background-color: #ffebee !important;
    color: #c62828 !important;
}

/* DROPDOWN */
.dropdown-content {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card);
}

.dropdown-content li > a,
.dropdown-content li > span {
    color: var(--text-dark);
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.dropdown-content li > a:hover,
.dropdown-content li > span:hover {
    background-color: rgba(76, 175, 80, 0.08);
    color: var(--primary-color);
}

/* COLLAPSIBLE */
.collapsible {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.collapsible-header {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.collapsible-header:hover {
    background-color: rgba(76, 175, 80, 0.05);
}

.collapsible-body {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 16px;
}

/* PRELOADER */
.preloader-wrapper {
    display: inline-block;
}

.spinner-layer {
    border-color: var(--primary-color) !important;
}

.spinner-green-only {
    border-color: var(--primary-color) !important;
}

.spinner-green-only .circle {
    border-color: var(--primary-color) !important;
}

.spinner-green-only .circle-clipper .circle {
    border-color: var(--primary-color) !important;
}

/* FLEX UTILITIES */
.text-right {
    text-align: right;
}

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

.center-align {
    text-align: center !important;
}

/* CARD ACTION LINKS */
.card-action a {
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.card-action a:hover {
    color: var(--primary-dark) !important;
}

/* WHITESPACE UTILITIES */
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 8px !important; }
.mb-md { margin-bottom: 16px !important; }
.mb-lg { margin-bottom: 24px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: 8px !important; }
.mt-md { margin-top: 16px !important; }
.mt-lg { margin-top: 24px !important; }

/* LARGE ICONS */
.material-icons.large {
    font-size: 48px;
    height: 48px;
    width: 48px;
    line-height: 48px;
}

.material-icons.medium {
    font-size: 36px;
    height: 36px;
    width: 36px;
    line-height: 36px;
}

/* ICON COLORS */
.text-primary i.material-icons,
i.material-icons.text-primary {
    color: var(--primary-color) !important;
}

.white-text {
    color: white !important;
}

/* RESPONSIVE ICONS */
.material-icons.left {
    float: left !important;
    margin-right: 8px;
}

/* ===== CUSTOM GRID CLASSES ===== */
/* 5 colunas iguais em desktop (20% each) */
@media only screen and (min-width: 993px) {
    .col.l2-4 {
        width: 20%;
        margin-left: 0;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* 2 colunas em tablet, 1 coluna em mobile */
@media only screen and (max-width: 992px) {
    .col.l2-4 {
        width: 50% !important;
        margin-left: 0 !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 768px) {
    .col.l2-4 {
        width: 50% !important;
        margin-left: 0 !important;
    }
}

@media only screen and (max-width: 600px) {
    .col.l2-4 {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .kpi-card {
        height: auto;
        min-height: 160px;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }
    
    .col {
        padding: 0 6px !important;
    }
}

/* ===== FONTE REDUZIDA - TABELAS E LISTAS ===== */
table {
    font-size: 13px !important;
}

table thead th {
    font-size: 12px !important;
}

table tbody td {
    font-size: 13px !important;
}

.collection {
    font-size: 13px !important;
}

.collection-item {
    font-size: 13px !important;
}

.badge {
    font-size: 11px !important;
}

.chip {
    font-size: 12px !important;
}

small {
    font-size: 11px !important;
}

.text-muted {
    font-size: 13px !important;
}

.grey-text {
    font-size: 13px !important;
}

/* ===== TABLE CONTAINER ===== */
.table-container {
    overflow-x: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 992px) {
    .table-container {
        overflow-x: auto;
    }
    
    .table-container table {
        font-size: 12px !important;
    }
    
    .table-container table th,
    .table-container table td {
        padding: 10px 8px !important;
    }
    
    .actions-inline {
        gap: 2px;
    }
    
    .btn-action {
        width: 28px;
        height: 28px;
    }
    
    .btn-action i {
        font-size: 14px !important;
    }
}

@media (max-width: 600px) {
    .table-container {
        overflow-x: auto;
        min-height: auto;
    }
    
    .table-container table {
        font-size: 11px !important;
        min-width: 600px;
    }
    
    .table-container table th,
    .table-container table td {
        padding: 8px 6px !important;
    }
    
    .text-truncate {
        max-width: 100px;
    }
}

/* ===== STATUS BADGE ===== */
.status-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.status-badge.ativo {
    background-color: #4caf50;
}

.status-badge.inativo {
    background-color: #f44336;
}

/* ===== ROLE BADGE ===== */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background-color: #4caf50;
    color: white;
}

.role-badge.user {
    background-color: #2196f3;
    color: white;
}

/* ===== ACTION BUTTONS ===== */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin: 0 2px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.btn-action.edit {
    background-color: #e3f2fd;
    color: #1976d2;
}

.btn-action.edit:hover {
    background-color: #1976d2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.btn-action.delete {
    background-color: #ffebee;
    color: #c62828;
}

.btn-action.delete:hover {
    background-color: #c62828;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.3);
}

.btn-action i {
    font-size: 18px !important;
}

/* ===== TEXT UTILITIES ===== */
.text-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== CARD PANEL STYLING ===== */
.card-panel {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.card-panel:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12) !important;
}

/* ===== INPUT FIELD STYLING ===== */


/* ===== GLOBAL RESPONSIVE FIXES ===== */
@media (max-width: 992px) {
    .input-field {
        margin-bottom: 16px !important;
    }
    
    .input-field > label {
        font-size: 13px !important;
    }
    
    .btn {
        padding: 0 16px !important;
        font-size: 13px !important;
        height: 36px !important;
        line-height: 36px !important;
    }
    
    .btn i {
        font-size: 18px !important;
    }
    
    .row {
        margin-bottom: 12px !important;
    }
    
    .col {
        padding: 0 6px !important;
    }
}

@media (max-width: 600px) {
    .input-field {
        margin-bottom: 14px !important;
    }
    
    .input-field > label {
        font-size: 12px !important;
    }
    
    .input-field input[type="text"],
    .input-field input[type="email"],
    .input-field input[type="password"],
    .input-field input[type="date"],
    .input-field textarea {
        font-size: 14px !important;
    }
    
    .btn {
        padding: 0 12px !important;
        font-size: 12px !important;
        height: 32px !important;
        line-height: 32px !important;
    }
    
    .btn i {
        font-size: 16px !important;
    }
    
    .btn-small {
        height: 28px !important;
        line-height: 28px !important;
    }
    
    .row {
        margin-bottom: 8px !important;
    }
    
    .col {
        padding: 0 4px !important;
    }
    
    .card {
        margin: 0 !important;
    }
    
    .card-content {
        padding: 12px !important;
    }
}


/* ===== TABS STYLING ===== */
.tabs .tab a {
    color: #4caf50 !important;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabs .tab a:hover, .tabs .tab a.active {
    color: #388e3c !important;
    background-color: transparent !important;
}

.tabs .indicator {
    background-color: #4caf50 !important;
}

/* ===== DOACAO SECTION ===== */
.doacao-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

.doacao-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.doacao-section-title .material-icons {
    color: #4caf50;
}

.doacao-section-divider {
    border-top: 1px solid #e0e0e0;
}

.doacao-project-list {
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding: 4px;
}

.doacao-project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
    animation: fadeInCard 0.4s ease-out backwards;
}

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

.doacao-project-card:nth-child(1) { animation-delay: 0.05s; }
.doacao-project-card:nth-child(2) { animation-delay: 0.1s; }
.doacao-project-card:nth-child(3) { animation-delay: 0.15s; }
.doacao-project-card:nth-child(4) { animation-delay: 0.2s; }
.doacao-project-card:nth-child(5) { animation-delay: 0.25s; }
.doacao-project-card:nth-child(n+6) { animation-delay: 0.3s; }

.doacao-project-card::after {
    content: 'Clique para selecionar';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.doacao-project-card:hover:not(.selected)::after {
    opacity: 1;
}

.doacao-project-card:hover:not(.selected) {
    border-color: #4caf50;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
}

.doacao-project-card.selected {
    cursor: default;
}

.doacao-project-card.selected:hover {
    transform: scale(1.02);
}

.doacao-project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doacao-project-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.doacao-project-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #607d8b;
    font-size: 0.9rem;
}

.doacao-project-meta .material-icons {
    font-size: 18px;
    color: #4caf50;
}

.doacao-project-meta strong {
    font-weight: 600;
}

.doacao-project-action {
    flex-shrink: 0;
}

.doacao-project-action .btn-small {
    margin: 0;
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    font-weight: 600;
}

/* Card de Projeto Selecionado */
.doacao-project-card.selected {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border: 3px solid #4caf50;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25);
    transform: scale(1.02);
    animation: pulseSelection 0.4s ease-out;
}

@keyframes pulseSelection {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.02);
    }
}

.doacao-project-card.selected::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    z-index: -1;
    opacity: 0.15;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

.doacao-project-card.selected .doacao-project-title {
    color: #2e7d32;
    font-weight: 800;
}

.doacao-project-card.selected .doacao-project-meta {
    color: #2e7d32;
    font-weight: 600;
}

.doacao-project-card.selected .doacao-project-action .btn {
    display: none;
}

.doacao-project-card.selected .doacao-project-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    min-width: 140px;
}

.doacao-project-card.selected .doacao-project-action::before {
    content: 'check_circle';
    font-family: 'Material Icons';
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
    animation: checkmark 0.5s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.doacao-project-card.selected .doacao-project-action::after {
    content: 'Selecionado';
}

/* Upload Fields Melhorados */
.doacao-section .file-field {
    margin-bottom: 0;
}

.doacao-section .file-field .btn {
    height: 42px;
    line-height: 42px;
    padding: 0 20px;
    font-weight: 600;
    border-radius: 8px;
}

.doacao-section .file-field .btn .material-icons {
    margin-right: 8px;
}

.doacao-section .file-path-wrapper input {
    border-bottom: 2px solid #e0e0e0 !important;
    font-size: 0.9rem;
    padding: 8px 0;
}

.doacao-section .file-path-wrapper input:focus {
    border-bottom-color: #4caf50 !important;
}

/* Alerta de Lei Federal */
#doacao-lei-estadual-alert {
    animation: slideDown 0.3s ease-out;
}

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

/* Scrollbar personalizada para lista de projetos */
.doacao-project-list::-webkit-scrollbar {
    width: 8px;
}

.doacao-project-list::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 4px;
}

.doacao-project-list::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 4px;
    transition: background 0.2s;
}

.doacao-project-list::-webkit-scrollbar-thumb:hover {
    background: #4caf50;
}

/* Badge de Lei Federal no card de projeto */
.doacao-project-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.doacao-project-card .badge .material-icons {
    margin: 0 !important;
    line-height: 1;
}

/* Modal footer melhorado */
.modal-footer {
    background: #fafbfc;
}

.modal-footer .btn,
.modal-footer .btn-flat {
    text-transform: none;
    letter-spacing: 0.3px;
}

/* Campos desabilitados */
.doacao-section input:disabled,
.doacao-section textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.doacao-section label:has(+ input:disabled),
.doacao-section label input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Aviso de selecionar projeto */
#doacao-aviso-selecionar {
    animation: slideDown 0.3s ease-out;
}

/* ===== PROSPECCAO CALENDAR ===== */
.calendar-header, .calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-weight: bold;
    color: #616161;
    font-size: 0.9rem;
    padding: 8px 0;
}

.calendar-day {
    text-align: center;
    padding: 8px 0;
}

.day-number {
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 auto;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.day-number:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.day-number.day-disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
}

.day-number.day-disabled:hover {
    background: #e0e0e0;
    transform: none;
}

.today .day-number {
    background: #673ab7 !important;
    color: white !important;
    font-weight: bold;
}

.vencido .day-number {
    background: #ff5252 !important;
    color: white !important;
}

.calendar-empty {
    width: 100%;
    height: 52px;
}

.card-line {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 90%;
    margin: 0 auto 32px auto;
}

.card-calendar {
    flex: 1;
    margin: 0 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px !important;
    overflow-y: auto;
}
#calendario-grid .card-content {
    min-height: 437px;
    max-height: 437px;
    overflow: hidden;
}
.today {
    background: #673ab7 !important;
    color: white !important;
    font-weight: bold;
}

.vencido {
    background: #ff5252 !important;
    color: white !important;
}

/* Responsividade para prospeccao calendar */
@media (max-width: 600px) {
    .calendar-header, .calendar-week {
        gap: 2px;
    }
    
    .day-number {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.85rem;
    }
}

/* ===== PROPONENTES MODALS ===== */
.modal-proponente {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.modal-proponente-header {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    padding: 24px;
    margin: 0;
}

.modal-proponente-content {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
    background: #f7f9fb;
}

.modal-proponente-footer {
    padding: 16px 20px;
    border-top: 1px solid #e6e9ef;
    background: #fff;
}

.modal-section {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid #e6e9ef;
    margin-bottom: 16px;
    padding: 18px;
}

.modal-section h6 {
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.contact-card {
    border-radius: 12px;
    border: 1px dashed #d8dde6;
    background: #fff;
    padding: 16px;
}

.contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacts-add-btn {
    border-radius: 999px;
    padding: 0 18px;
}

.contact-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f8f4;
    color: #2e7d32;
    border: 1px solid #d5eadb;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.contact-remove {
    color: #c62828;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.contact-card .row {
    margin-bottom: 6px;
}

.contact-extra-row {
    padding-top: 4px;
    border-top: 1px dashed #e5e7eb;
}

.modal-proponente .percent-mask {
    font-weight: 500;
}

.modal-proponente .helper-text {
    margin-left: 3rem;
}

.modal-proponente .file-field .btn {
    border-radius: 8px;
}

.modal-proponente .btn {
    border-radius: 8px;
}

/* ===== LOGIN PAGE ===== */
.login-header {
    background: radial-gradient(circle at 80% 0%, #a5b4fc 0%, #667eea 60%, #764ba2 100%);
    padding: 38px 24px 28px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-bottom: none;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 2px 12px 0 rgba(102,126,234,0.08);
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.login-header-content { 
    position: relative; 
    z-index: 1; 
}

.logo-icon { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 12px; 
}

.logo-icon svg { 
    width: 54px; 
    height: 54px; 
    filter: drop-shadow(0 2px 8px rgba(102,126,234,0.18)); 
    animation: rotate 18s linear infinite; 
}

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

.login-header h1 { 
    font-size: 2.1rem; 
    font-weight: 800; 
    margin-bottom: 8px; 
    letter-spacing: 1.5px; 
    font-family: 'Montserrat', sans-serif; 
    text-shadow: 0 2px 8px rgba(44,62,80,0.08); 
}

.login-header p { 
    font-size: 1.08rem; 
    opacity: 0.97; 
    margin: 0; 
    font-weight: 400; 
    font-family: 'Montserrat', sans-serif; 
}

.login-content { 
    padding: 32px 28px 28px; 
    background: transparent; 
}

.alert-error { 
    background: #f5576c; 
    border-radius: 12px; 
    padding: 15px; 
    margin-bottom: 25px; 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    animation: shake 0.5s ease; 
}

@keyframes shake { 
    0%, 100% { transform: translateX(0); } 
    25% { transform: translateX(-10px); } 
    75% { transform: translateX(10px); } 
}

.alert-error i { 
    font-size: 1.3rem; 
    flex-shrink: 0; 
}

.btn-login { 
    width: 100%; 
    padding: 16px; 
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    border: none; 
    border-radius: 10px; 
    font-size: 1.13rem; 
    font-weight: 800; 
    cursor: pointer; 
    text-transform: uppercase; 
    letter-spacing: 1.3px; 
    transition: all 0.18s cubic-bezier(.23,1.01,.32,1); 
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.13); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    outline: none; 
    position: relative; 
    overflow: hidden; 
}

.btn-login::after { 
    content: ''; 
    position: absolute; 
    left: -60%; 
    top: 0; 
    width: 60%; 
    height: 100%; 
    background: linear-gradient(90deg,rgba(255,255,255,0.18) 0%,rgba(255,255,255,0.01) 100%); 
    transform: skewX(-18deg); 
    transition: left 0.4s cubic-bezier(.23,1.01,.32,1); 
    pointer-events: none; 
}

.btn-login:hover::after { 
    left: 110%; 
}

.btn-login:hover, .btn-login:focus { 
    transform: translateY(-2px) scale(1.035); 
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.18); 
    background: linear-gradient(120deg, #764ba2 0%, #667eea 100%); 
}

.btn-login:active { 
    transform: translateY(0); 
}

.btn-login i { 
    font-size: 1.2rem; 
}

@media (max-width: 600px) { 
    .login-wrapper { 
        padding: 6px; 
    } 
    
    .login-header { 
        padding: 28px 10px 18px; 
    } 
    
    .login-header h1 { 
        font-size: 1.3rem; 
    } 
    
    .logo-icon svg { 
        width: 38px; 
        height: 38px; 
    } 
    
    .login-content { 
        padding: 18px 6px; 
    } 
}

/* ===== DASHBOARD KPI CARDS ===== */
.kpi-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
    background: white;
}

.kpi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

/* Container centralizado para os cards KPI */
.row.kpi-row-8 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto 30px auto !important;
    padding: 0 10px;
}

/* Cards KPI com largura responsiva */
.row.kpi-row-8 > .col {
    flex: 0 0 auto;
    width: calc(25% - 20px);
    min-width: 250px;
    max-width: 320px;
    padding: 0 !important;
    margin: 0 !important;
}

/* Desktop grande - 4 por linha */
@media only screen and (min-width: 1400px) {
    .row.kpi-row-8 > .col {
        width: calc(25% - 20px);
    }
}

/* Desktop médio - 3 por linha */
@media only screen and (max-width: 1399px) and (min-width: 993px) {
    .row.kpi-row-8 > .col {
        width: calc(33.333% - 20px);
    }
}

/* Tablets - 2 por linha */
@media only screen and (max-width: 992px) and (min-width: 601px) {
    .row.kpi-row-8 {
        gap: 16px;
    }
    
    .row.kpi-row-8 > .col {
        width: calc(50% - 16px);
        min-width: 220px;
    }
}

/* Mobile - 1 por linha */
@media only screen and (max-width: 600px) {
    .row.kpi-row-8 {
        gap: 12px;
        padding: 0;
    }
    
    .row.kpi-row-8 > .col {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* Garante grid 5 colunas lado a lado (legado) */
.row > .col.l2-4 {
    width: 20% !important;
    padding: 6px !important;
}

/* Header com gradient e ícone branco */
.kpi-header {
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    color: white;
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.kpi-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.2), transparent 70%);
    pointer-events: none;
}

.kpi-header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Gradientes para headers */
.kpi-header.green-gradient {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.kpi-header.blue-gradient {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.kpi-header.purple-gradient {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.kpi-header.orange-gradient {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.kpi-header.red-gradient {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.kpi-header.teal-gradient {
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
}

.kpi-icon {
    font-size: 36px !important;
    animation: float-icon 3s ease-in-out infinite;
    color: white !important;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-2deg); }
}

.kpi-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

/* Corpo do card com espaço para conteúdo */
.kpi-body {
    flex: 1;
    padding: 20px 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100px;
    position: relative;
}

.kpi-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.kpi-value {
    font-size: 2rem;
    font-weight: 900;
    margin: 10px 0 8px 0 !important;
    line-height: 1.1;
    color: #1a202c;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kpi-subtitle {
    font-size: 12px;
    margin: 0 !important;
    color: #718096;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 500;
}

.kpi-action {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 18px !important;
    text-align: right;
}

.kpi-link {
    font-weight: 700;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-link:hover {
    transform: translateX(6px);
    filter: brightness(1.1);
}

.kpi-link::after {
    content: '→';
    display: inline-block;
    transition: transform 0.25s ease;
}

.kpi-link:hover::after {
    transform: translateX(4px);
}

/* ===== SEARCH BAR SECTION - REDESIGNED ===== */
.search-section {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}


.search-section .input-field {
    margin-bottom: 0 !important;
    flex: 1;
}

.search-section .btn {
    margin: 0;
    height: 36px;
    padding: 0 16px !important;
    line-height: 36px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.15);
    transition: all 0.2s ease;
}

.search-section .btn:hover {
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.25);
    transform: translateY(-2px);
}

.search-section .btn i {
    font-size: 18px;
    vertical-align: middle;
}

.search-section .btn span {
    margin-left: 6px;
    display: inline;
}

.search-section .btn-flat {
    color: var(--danger-color);
    font-weight: 600;
}

.search-section .btn-flat:hover {
    background: rgba(244, 67, 54, 0.08);
}

@media (max-width: 600px) {
    .search-section {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .search-section .input-field {
        width: 100%;
        order: 1;
    }
    
    .search-section .btn {
        flex: 1;
        min-width: 0;
    }
    
    .search-section .btn span {
        display: none;
    }
}

/* ===== CALENDÁRIO (PROSPECÇÃO) ===== */
.calendar-header, .calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-weight: bold;
    color: #616161;
    font-size: 0.9rem;
    padding: 8px 0;
}

.calendar-day {
    text-align: center;
    padding: 8px 0;
}

.day-number {
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 auto;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.day-number:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.day-number.day-disabled {
    background: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
}

.day-number.day-disabled:hover {
    background: #e0e0e0;
    transform: none;
}

.today .day-number {
    background: #673ab7 !important;
    color: white !important;
    font-weight: bold;
}

.vencido .day-number {
    background: #ff5252 !important;
    color: white !important;
}

.calendar-empty {
    width: 100%;
    height: 52px;
}

.card-panel {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 16px;
}

.card-content {
    padding: 16px !important;
}

.chip {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.card-line {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 90%;
    margin: 0 auto 32px auto;
}

.card-calendar {
    flex: 1;
    margin: 0 8px;
    height: 100%;
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.today {
    background: #673ab7 !important;
    color: white !important;
    font-weight: bold;
}

.vencido {
    background: #ff5252 !important;
    color: white !important;
}

@media (max-width: 600px) {
    .calendar-header, .calendar-week {
        gap: 2px;
    }
    
    .day-number {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.85rem;
    }
}

/* ===== SIDEBAR CUSTOM ===== */
:root {
    --si-bg: #263238;
    --si-fg: #cfd8dc;
    --si-muted: #90a4ae;
    --si-accent: #4caf50;
    --si-active-bg: rgba(76, 175, 80, 0.12);
}

.sidebar-custom {
    width: 240px;
    background: var(--si-bg);
    min-height: 100vh;
    padding: 18px 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1000;
    overflow: hidden;
}

.sidebar-custom .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px;
    margin-bottom: 14px;
}

.sidebar-custom .brand .logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--si-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.sidebar-custom .brand .brand-title {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-custom .tagline {
    color: #b0bec5;
    font-size: 12px;
    margin-top: 3px;
}

.sidebar-custom .menu {
    display: block;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    margin-right: -6px;
    scroll-behavior: smooth;
}

/* Scrollbar bonita para Chrome/Edge/Safari */
.sidebar-custom .menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-custom .menu::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.sidebar-custom .menu::-webkit-scrollbar-thumb {
    background: rgba(207, 216, 220, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.sidebar-custom .menu::-webkit-scrollbar-thumb:hover {
    background: rgba(207, 216, 220, 0.6);
}

/* Scrollbar para Firefox */
.sidebar-custom .menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(207, 216, 220, 0.3) transparent;
}

.sidebar-custom .menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border-radius: 8px;
    color: var(--si-fg);
    text-decoration: none;
    margin-bottom: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
tabs-cliente
.sidebar-custom .menu a .material-icons {
    color: var(--si-muted);
    font-size: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-custom .menu a:hover {
    background: rgba(76, 175, 80, 0.08);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-custom .menu a.active {
    background: var(--si-active-bg);
    color: #fff;
    box-shadow: inset 4px 0 0 var(--si-accent), 0 4px 12px rgba(76, 175, 80, 0.15);
}

.sidebar-custom .menu a.active .material-icons {
    color: var(--si-accent);
    transform: scale(1.1);
}

.sidebar-custom .menu .section-title {
    padding: 14px 8px 8px 8px;
    color: var(--si-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 16px;
    margin-bottom: 8px;
    position: relative;
}

.sidebar-custom .menu .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--si-accent) 0%, transparent 100%);
    border-radius: 1px;
}

.sidebar-custom .footer {
    position: relative;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-custom .profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-custom .profile .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #455a64;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-custom .profile .name {
    color: #fff;
    font-weight: 600;
}

.sidebar-custom .profile .role {
    color: #b0bec5;
    font-size: 12px;
}

.sidebar-custom .logout-btn {
    margin-top: 10px;
}

.sidebar-custom .logout-btn .btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-logout-btn {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 240px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(38, 50, 56, 0) 0%, #263238 30%);
    z-index: 1100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.logout-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: var(--si-fg);
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.4);
    color: #fff;
    transform: translateX(2px);
}

@media (max-width: 992px) {
    .sidebar-custom {
        width: 100%;
        position: relative;
    }
    
    .sidebar-logout-btn {
        width: 100%;
        position: relative;
        box-shadow: none;
    }
}

/* Contatos Item */
.contato-item {
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid #e0e0e0;
    padding: 12px 0 0 0;
    align-items: center;
    margin-bottom: 0;
}

/* Contact Item (dinâmico) */
.contact-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    background: #f5f5f5;
}

.tabs-cliente{
    text-align: center;
}

/* ===== PROJETO CARDS - NOVO LAYOUT ===== */
.projeto-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.projeto-card * {
    border: none !important;
}

/* Reset para Material Icons dentro do card */
.projeto-card .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.projeto-card .material-icons.tiny {
    font-size: 18px !important;
    min-width: 18px;
    height: 18px;
}

/* Grid de Projetos */
#grid-projetos {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#grid-projetos .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#grid-projetos .col {
    display: flex !important;
    padding: 6px !important;
}

#grid-projetos .col > .card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.projeto-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-4px);
}

/* Imagem do Projeto */
.projeto-card-image {
    position: relative;
    width: 100% !important;
    height: 160px !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 160px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.projeto-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projeto-imagem {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border: none !important;
}

.projeto-card-image.image-error .projeto-imagem {
    display: none !important;
}

.projeto-card-image.image-error .projeto-imagem-error {
    display: flex !important;
}

.projeto-imagem-error {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
}

.projeto-card-image div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Badge de Progresso */
.projeto-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 10;
}

.projeto-badge-valor {
    font-size: 1.3rem;
}

/* Cabeçalho com Info do Proponente */
.projeto-header {
    padding: 16px 16px 12px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e8eaed !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    border: none !important;
}

.projeto-info-proponente {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.projeto-proponente-nome {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projeto-proponente-nome .material-icons {
    font-size: 18px;
    color: #4caf50;
    flex-shrink: 0;
}

.projeto-responsavel-nome {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.projeto-responsavel-nome .material-icons {
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
}

/* Conteúdo do Card */
.projeto-card-content {
    padding: 16px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    margin: 0 !important;
    border: none !important;
    min-height: 0;
}

.projeto-card-content p,
.projeto-card-content h5 {
    margin: 0;
    padding: 0;
}

.projeto-card-content p {
    line-height: 1.4;
}

.projeto-segmento {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #90a4ae;
}

.projeto-titulo {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
}

/* Código do Projeto */
.projeto-codigo {
    margin: 8px 0 12px 0;
    font-size: 0.85rem;
    color: #607d8b;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f5f7fa;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

.projeto-codigo .material-icons {
    font-size: 16px;
    color: #2196f3;
    vertical-align: middle;
}

.projeto-codigo strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Leis de Incentivo */
.projeto-leis {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.projeto-lei-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #c8e6c9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.projeto-lei-badge .material-icons {
    font-size: 14px;
    margin: 0;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    min-width: 14px;
    height: 14px;
}

/* Grid de Valores */
.projeto-valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 12px;
    background: #f5f7fa;
    border-radius: 12px;
    margin: 4px 0;
}

.projeto-valor-item {
    text-align: center;
}

.projeto-valor-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #90a4ae;
    letter-spacing: 0.3px;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.2;
}

.projeto-valor-texto {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    word-break: break-word;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.projeto-valor-texto.blue {
    color: #1976d2;
}

.projeto-valor-texto.orange {
    color: #f57c00;
}

/* Saldo Disponível */
.projeto-saldo {
    padding: 12px;
    background: #e8f5e9;
    border-radius: 12px;
    border-left: 4px solid #4caf50;
}

.projeto-saldo-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #2e7d32;
    letter-spacing: 0.3px;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.2;
}

.projeto-saldo-valor {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2e7d32;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* Barra de Progresso */
.projeto-progresso-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projeto-progresso-barra {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.projeto-progresso-doacoes {
    background: linear-gradient(90deg, #1976d2 0%, #1565c0 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.projeto-progresso-captacoes {
    background: linear-gradient(90deg, #f57c00 0%, #e65100 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.projeto-progresso-legenda {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.projeto-progresso-legenda span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.legenda-doacao,
.legenda-captacao {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legenda-doacao {
    background: #1976d2;
}

.legenda-captacao {
    background: #f57c00;
}

/* Ano Término */
.projeto-ano-termino {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.projeto-ano-termino .material-icons {
    font-size: 18px;
    color: #90a4ae;
    flex-shrink: 0;
    min-width: 18px;
    line-height: 1;
}

/* Footer com Ações */
.projeto-card-action {
    padding: 12px 16px !important;
    border-top: 1px solid #e8eaed !important;
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    background: #fafbfc;
    flex: 0 0 auto !important;
    margin: 0 !important;
    border: none !important;
}

.btn-action-projeto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-action-projeto:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Cores específicas para cada ação - apenas texto/ícone */
.projeto-card-action .btn-action-projeto.blue-text,
.projeto-card-action .btn-action-projeto.blue-text i.material-icons {
    color: #2196f3;
}

.projeto-card-action .btn-action-projeto.blue-text:hover {
    border-color: #2196f3;
}

.projeto-card-action .btn-action-projeto.red-text,
.projeto-card-action .btn-action-projeto.red-text i.material-icons {
    color: #f44336;
}

.projeto-card-action .btn-action-projeto.red-text:hover {
    border-color: #f44336;
}

.projeto-card-action .btn-action-projeto.purple-text,
.projeto-card-action .btn-action-projeto.purple-text i.material-icons {
    color: #9c27b0;
}

.projeto-card-action .btn-action-projeto.purple-text:hover {
    border-color: #9c27b0;
}

.projeto-card-action .btn-action-projeto.green-text,
.projeto-card-action .btn-action-projeto.green-text i.material-icons {
    color: #4caf50;
}

.projeto-card-action .btn-action-projeto.green-text:hover {
    border-color: #4caf50;
}

.projeto-card-action .btn-action-projeto.orange-text,
.projeto-card-action .btn-action-projeto.orange-text i.material-icons {
    color: #ff9800;
}

.projeto-card-action .btn-action-projeto.orange-text:hover {
    border-color: #ff9800;
}

.btn-action-projeto .material-icons {
    font-size: 20px;
    margin: 0;
}

/* Responsividade para Projetos */
@media (max-width: 992px) {
    .projeto-card-image {
        height: 150px !important;
        flex: 0 0 150px !important;
    }
    
    .projeto-valores-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .projeto-progresso-legenda {
        gap: 12px;
    }
    
    .projeto-titulo {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .projeto-card {
        border-radius: 12px !important;
    }
    
    .projeto-card-image {
        height: 140px !important;
        flex: 0 0 140px !important;
    }
    
    .projeto-badge {
        width: 48px;
        height: 48px;
        top: 8px;
        right: 8px;
    }
    
    .projeto-badge-valor {
        font-size: 1.1rem;
    }
    
    .projeto-header {
        padding: 12px;
    }
    
    .projeto-card-content {
        padding: 12px;
        gap: 10px;
    }
    
    .projeto-valores-grid {
        padding: 10px;
        gap: 6px;
    }
    
    .projeto-valor-texto {
        font-size: 0.85rem;
    }
    
    .projeto-saldo {
        padding: 10px;
    }
    
    .projeto-saldo-valor {
        font-size: 1.05rem;
    }
    
    .btn-action-projeto {
        width: 36px;
        height: 36px;
    }
    
    .btn-action-projeto .material-icons {
        font-size: 18px;
    }
}

/* Fix: manter input file clicavel no botao Materialize */
.file-field input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}


/* Utility Classes */
.hidden {
    display: none !important;
}
/* Donation Validation Status Styling */
tr.validation-pending {
    background-color: #FFF3E0 !important;
    border-left: 5px solid #FF9800;
}

tr.validation-pending td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

tr.validation-pending .orange-text {
    font-weight: 600;
    color: #FF6F00 !important;
}

/* ===== TOASTS TOP POSITIONING ===== */
/* Container de toasts na parte superior */
#toast-container {
    top: 16px !important;
    bottom: auto !important;
    right: 3% !important;
    left: auto !important;
    min-width: 320px;
    max-width: 450px;
}

/* Garantir que os toasts fiquem empilhados corretamente */
.toast {
    margin-bottom: 12px !important;
}

/* Para dispositivos móveis */
@media only screen and (max-width: 600px) {
    #toast-container {
        min-width: 90%;
        max-width: 95%;
        top: 10px !important;
        bottom: auto !important;
        right: 2.5% !important;
        left: 2.5% !important;
    }
}

/* Para tablets */
@media only screen and (min-width: 601px) and (max-width: 992px) {
    #toast-container {
        min-width: 50%;
        max-width: 60%;
        top: 16px !important;
        bottom: auto !important;
        right: 3% !important;
    }
}

/* ===== TOOLTIPS MELHORADOS (MATERIALIZE) ===== */
.material-tooltip {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    color: white !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    max-width: 280px !important;
    line-height: 1.5 !important;
    backdrop-filter: blur(8px) !important;
    animation: tooltipFadeIn 0.2s ease-out !important;
}

.material-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Seta do tooltip para cima */
.material-tooltip[data-position="top"]::before {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-color: #111827 transparent transparent transparent;
}

/* Seta do tooltip para baixo */
.material-tooltip[data-position="bottom"]::before {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent #111827 transparent;
}

/* Seta do tooltip para esquerda */
.material-tooltip[data-position="left"]::before {
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent #111827;
}

/* Seta do tooltip para direita */
.material-tooltip[data-position="right"]::before {
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-color: transparent #111827 transparent transparent;
}

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

/* ===== BOTÕES DE ALERTAS MELHORADOS (SWEETALERT2) ===== */
/* Botão de confirmação */
.swal2-confirm {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4), 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.swal2-confirm:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5), 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
}

.swal2-confirm:active {
    transform: translateY(0) !important;
}

.swal2-confirm::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.swal2-confirm:active::before {
    width: 300px;
    height: 300px;
}

/* Botão de cancelar */
.swal2-cancel {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.swal2-cancel:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4) !important;
}

.swal2-cancel:active {
    transform: translateY(0) !important;
}

/* Botão de negação (deny) */
.swal2-deny {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 32px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.swal2-deny:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5) !important;
}

/* Container dos botões */
.swal2-actions {
    gap: 12px !important;
    margin-top: 24px !important;
}

/* Popup do SweetAlert2 */
.swal2-popup {
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.swal2-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin-bottom: 16px !important;
}

.swal2-html-container {
    font-size: 15px !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
}

/* ===== ALERTAS REALTIME (CLIENTE) ===== */
#notifications-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gira-notification {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    color: #1f2937;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    pointer-events: auto;
    animation: giraNotificationIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gira-notification-closing {
    animation: giraNotificationOut 0.24s ease forwards;
}

.gira-notification-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--notification-accent, #2196f3);
}

.gira-notification-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
}

.gira-notification-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--notification-accent, #2196f3);
    background: rgba(17, 24, 39, 0.07);
}

.gira-notification-icon {
    font-size: 20px;
    line-height: 1;
}

.gira-notification-content {
    min-width: 0;
}

.gira-notification-title {
    margin: 1px 0 3px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1px;
    color: #111827;
}

.gira-notification-message {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
    white-space: pre-line;
}

.notification-action.gira-notification-action {
    margin-top: 10px;
    border: 0;
    border-radius: 9px;
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(145deg, #111827 0%, #1f2937 100%);
    color: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.25);
}

.notification-action.gira-notification-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.3);
}

.notification-action.gira-notification-action:active {
    transform: translateY(0);
}

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

.notification-close.gira-notification-close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-close.gira-notification-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.notification-close.gira-notification-close i {
    font-size: 20px;
}

.gira-notification.type-error {
    border-color: #fecaca;
    background: linear-gradient(145deg, #fff7f7 0%, #fff 100%);
}

.gira-notification.type-error .gira-notification-icon-wrap {
    background: rgba(239, 68, 68, 0.12);
}

.gira-notification.type-warning {
    border-color: #fde68a;
    background: linear-gradient(145deg, #fff9ed 0%, #fff 100%);
}

.gira-notification.type-warning .gira-notification-icon-wrap {
    background: rgba(245, 158, 11, 0.15);
}

.gira-notification.type-success {
    border-color: #bbf7d0;
    background: linear-gradient(145deg, #f0fff4 0%, #fff 100%);
}

.gira-notification.type-success .gira-notification-icon-wrap {
    background: rgba(34, 197, 94, 0.14);
}

.gira-notification.type-info {
    border-color: #bfdbfe;
    background: linear-gradient(145deg, #f3f8ff 0%, #fff 100%);
}

.gira-notification.type-info .gira-notification-icon-wrap {
    background: rgba(59, 130, 246, 0.14);
}

@keyframes giraNotificationIn {
    from {
        opacity: 0;
        transform: translateX(34px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes giraNotificationOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(26px) scale(0.98);
    }
}

@media only screen and (max-width: 600px) {
    .gira-notification-main {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        padding: 12px;
    }

    .gira-notification-title {
        font-size: 14px;
    }

    .gira-notification-message {
        font-size: 12px;
    }
}

/* ===== TOASTS CLICÁVEIS COM HOVER ===== */
/* Toasts de pendências administrador */
.toast {
    transition: all 0.3s ease !important;
}

.toast:hover {
    transform: translateX(-5px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Elementos clicáveis dentro dos toasts */
.toast [onclick] {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.toast [onclick]:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
    margin: -4px -8px !important;
}

.toast [onclick]:active {
    transform: scale(0.98) !important;
}

/* Badges dentro de toasts mais legíveis */
.toast span[style*="background"] {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* ===== BOTÕES FLUTUANTES (FAB) COM TOOLTIP ===== */
.btn-floating.tooltipped {
    transition: all 0.3s ease !important;
}

.btn-floating.tooltipped:hover {
    transform: scale(1.15) rotate(5deg) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* ===== MODAL DE TEMPLATE EDITOR ===== */
.template-editor-modal .swal2-popup {
    padding: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.template-editor-modal .swal2-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    padding: 24px 30px 20px !important;
    margin: 0 !important;
    border-bottom: 2px solid #e2e8f0 !important;
    background: linear-gradient(to right, #f7fafc, #ffffff) !important;
}

.template-editor-modal .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.template-editor-modal .swal2-actions {
    padding: 20px 30px !important;
    background: #f7fafc !important;
    border-top: 2px solid #e2e8f0 !important;
    margin: 0 !important;
}

.template-editor-modal .swal2-confirm,
.template-editor-modal .swal2-cancel {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.template-editor-modal .swal2-confirm {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
    box-shadow: 0 2px 8px rgba(45, 55, 72, 0.25) !important;
}

.template-editor-modal .swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(45, 55, 72, 0.35) !important;
}

.template-editor-modal .swal2-cancel {
    background: #e2e8f0 !important;
    color: #4a5568 !important;
}

.template-editor-modal .swal2-cancel:hover {
    background: #cbd5e0 !important;
    transform: translateY(-1px) !important;
}

/* ===== DASHBOARD ADMINISTRATIVO - MELHORIAS ===== */

/* Container principal do dashboard */
.dashboard-admin-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f7fa;
    min-height: 100vh;
}

/* Header do Dashboard */
.dashboard-admin-page h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 4px !important;
    letter-spacing: -0.5px;
}

.dashboard-admin-page .row.mb-lg {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px !important;
}

.dashboard-admin-page .text-muted {
    color: #718096;
    font-size: 14px;
}

.dashboard-admin-page .flex-center {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Seção Ações Rápidas */
.dashboard-admin-page .mt-lg {
    max-width: 1400px;
    margin: 30px auto 0 auto !important;
}

.dashboard-admin-page .mt-lg .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.dashboard-admin-page .mt-lg h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px !important;
    padding-left: 12px;
    border-left: 4px solid #4caf50;
}

.dashboard-admin-page .quick-action-card {
        width: 100%;

    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.dashboard-admin-page .quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-admin-page .quick-action-card .card-content {
    padding: 30px 20px !important;
    text-align: center;
}

.dashboard-admin-page .quick-action-card i.material-icons {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.dashboard-admin-page .quick-action-card .card-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #2d3748;
    margin-bottom: 8px !important;
}

.dashboard-admin-page .quick-action-card p {
    font-size: 12px;
    color: #718096;
    margin: 0;
}

/* Responsividade do Dashboard */
@media (max-width: 768px) {
        .dashboard-admin-page {
            padding: 10px;
        }

    .dashboard-admin-page h3 {
        font-size: 1.5rem;
    }
    
    .dashboard-admin-page .row.mb-lg {
        padding: 16px;
    }
    
    .dashboard-admin-page .flex-center {
        justify-content: flex-start;
        margin-top: 8px;
    }
    
    .dashboard-admin-page .mt-lg h5 {
        font-size: 1.1rem;
    }
}

/* Gradientes dos cards KPI existentes */
.green-gradient {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 50%, #81c784 100%);
}

.blue-gradient {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 50%, #64b5f6 100%);
}

.purple-gradient {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 50%, #ce93d8 100%);
}

.orange-gradient {
    background: linear-gradient(135deg, #ff9800 0%, #ffa726 50%, #ffb74d 100%);
}

.red-gradient {
    background: linear-gradient(135deg, #f44336 0%, #e57373 50%, #ef5350 100%);
}

.teal-gradient {
    background: linear-gradient(135deg, #009688 0%, #26a69a 50%, #4db6ac 100%);
}

.indigo-gradient {
    background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 50%, #7986cb 100%);
}

/* Melhorias adicionais para Ações Rápidas */
.dashboard-admin-page .mt-lg > .row > a {
    flex: 0 0 auto;
    width: calc(25% - 20px);
    min-width: 220px;
    max-width: 280px;
    text-decoration: none;
    color: inherit;
}

@media only screen and (max-width: 992px) and (min-width: 601px) {
    .dashboard-admin-page .mt-lg > .row > a {
        width: calc(50% - 20px);
    }
}

@media only screen and (max-width: 600px) {
    .dashboard-admin-page .mt-lg > .row {
        gap: 12px;
    }
    
    .dashboard-admin-page .mt-lg > .row > a {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}
