@charset "utf-8";
/* CSS Document */
 /* Reset CSS */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        :root {
            /*--primary-color: #e60000;  Vermelho 
            --primary-light: #ff3333;
            --primary-dark: #cc0000; */
            --primary-color: #005ce6; /* Vermelho */
            --primary-light: #1268e9;
            --primary-dark: #0053d0;
            --white: #ffffff;
            --light-gray: #f5f5f5;
            --medium-gray: #e0e0e0;
            --dark-gray: #333333;
            --shadow: 0 2px 10px rgba(0,0,0,0.1);
            --transition: all 0.3s ease;
        }
        
        body {
            background-color: var(--light-gray);
            color: var(--dark-gray);
        }
        
        /* Header */
        .header {
            background-color: var(--primary-color);
            color: var(--white);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .user-info select {
            padding: 0.5rem;
            border: none;
            border-radius: 4px;
            background-color: var(--white);
        }
        
        .sidebar { 
            width: 250px; 
            background-color: var(--white); 
            height: calc(100vh - 64px); 
            position: fixed; 
            left: 0; /* Mantido em 0 para estar no limite esquerdo */
            top: 64px; 
            box-shadow: var(--shadow); 
            z-index: 90; 
            transition: var(--transition); 
            overflow-y: auto; 
            display: block !important; 
        } 
         
        .sidebar-menu { 
            list-style: none; 
            padding: 0.5rem 0; /* Reduzido de 1rem para 0.5rem */
        } 
         
        .sidebar-menu li { 
            padding: 0.5rem 0.75rem; /* Reduzido o padding horizontal de 1.5rem para 0.75rem */
            margin-bottom: 0.5rem; 
        } 
         
        .sidebar-menu a { 
            color: var(--dark-gray); 
            text-decoration: none; 
            display: flex; 
            align-items: center; 
            gap: 0.5rem; 
            font-size: 1rem; 
            transition: var(--transition); 
            word-break: break-word; 
            padding-left: 0.25rem; /* Adicionado padding esquerdo menor */
        } 
         
        .sidebar-menu a:hover { 
            color: var(--primary-color); 
        } 
         
        .sidebar-menu li.active { 
            background-color: transparent; 
        } 
         
        .sidebar-menu li.active a { 
            color: var(--primary-color); 
            font-weight: 500; 
        } 
         
        /* Botão para mostrar/esconder a sidebar em telas menores */ 
        .sidebar-toggle { 
            display: none; 
            position: fixed; 
            top: 70px; 
            left: 10px; 
            z-index: 100; 
            background-color: var(--primary-color); 
            color: white; 
            border: none; 
            border-radius: 4px; 
            padding: 8px; 
            cursor: pointer; 
        } 
         
        /* Media queries para responsividade */ 
        @media screen and (max-width: 992px) { 
            .sidebar { 
                width: 220px; 
            } 
             
            .sidebar-menu a { 
                font-size: 0.95rem; 
            } 
            
            .sidebar-menu li {
                padding: 0.5rem 0.5rem; /* Reduzido ainda mais em telas médias */
            }
        } 
         
        @media screen and (max-width: 768px) { 
            .sidebar-toggle { 
                display: block; 
            } 
             
            .sidebar { 
                width: 100%; 
                max-width: 280px; 
                transition: transform 0.3s ease; 
            } 
             
            .sidebar.active { 
                transform: translateX(0); 
            } 
             
            .main-content { 
                margin-left: 0; 
                transition: margin-left 0.3s ease; 
            } 
             
            .main-content.sidebar-active { 
                margin-left: 280px; 
            } 
        } 
         
        @media screen and (max-width: 480px) { 
            .sidebar { 
                width: 85%; 
                max-width: 260px; 
            } 
             
            .sidebar-menu li { 
                padding: 0.5rem 0.5rem; /* Reduzido para telas pequenas */
                margin-bottom: 0.5rem; 
            } 
             
            .main-content.sidebar-active { 
                margin-left: 0; 
            } 
        }

        
        /* Main Content */
        .main-content {
            margin-left: 250px;
            padding: 2rem;
            min-height: calc(100vh - 64px);
        }
        .page-title {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--primary-color);
            font-weight: 500;
            text-align: center; /* Centers the text horizontally */
            width: 100%; /* Ensures the element takes up full width */
            display: block; /* Makes sure it's a block element */
            max-width: 100%; /* Prevent overflow on small screens */
            padding: 0 15px; /* Add some padding on the sides */
        }
        
        /* Media queries para responsividade */
        @media screen and (max-width: 768px) {
            .page-title {
                font-size: 1.5rem; /* Tamanho menor para tablets */
                margin-bottom: 1.2rem;
            }
        }
        
        @media screen and (max-width: 480px) {
            .page-title {
                font-size: 1.3rem; /* Tamanho ainda menor para celulares */
                margin-bottom: 1rem;
            }
        }
        /* Cards */
        .dashboard-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .card {
            background-color: var(--white);
            border-radius: 8px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            transition: var(--transition);
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        }
        
        .card-title {
            font-size: 1.2rem;
            font-weight: 500;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
        
        .card-value {
            font-size: 2rem;
            font-weight: bold;
        }
        
        .card-subtitle {
            color: #777;
            font-size: 0.9rem;
            margin-top: 0.5rem;
        }
        
        /* Tables */
        .table-container {
            background-color: var(--white);
            border-radius: 8px;
            box-shadow: var(--shadow);
            padding: 1.5rem;
            overflow-x: auto;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th, td {
            padding: 0.75rem 1rem;
            text-align: left;
            border-bottom: 1px solid var(--medium-gray);
        }
        
        th {
            background-color: var(--light-gray);
            font-weight: 500;
            color: var(--primary-color);
        }
        
        tr:hover {
            background-color: var(--light-gray);
        }
        
        /* Forms */
        .form-container {
            background-color: var(--white);
            border-radius: 8px;
            box-shadow: var(--shadow);
            padding: 2rem;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--dark-gray);
        }
        
        .form-control {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--medium-gray);
            border-radius: 4px;
            font-size: 1rem;
            transition: var(--transition);
        }
        

        .select2-container--default  {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--medium-gray);
            border-radius: 4px;
            font-size: 1rem;
            transition: var(--transition);
        }

        
        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.2);
        }
        
        .form-row {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .form-col {
            flex: 1;
            min-width: 200px;
        }
        
        /* Buttons */
        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: var(--white);
        }
        
        .btn-primary:hover {
            background-color: var(--primary-dark);
        }
        
        .btn-outline {
            background-color: transparent;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
        }
        
        .btn-outline:hover {
            background-color: var(--primary-color);
            color: var(--white);
        }
        
        .btn-sm {
            padding: 0.4rem 0.8rem;
            font-size: 0.9rem;
        }
        
        /* Utilities */
        .mt-1 { margin-top: 0.5rem; }
        .mt-2 { margin-top: 1rem; }
        .mt-3 { margin-top: 1.5rem; }
        .mt-4 { margin-top: 2rem; }
        .mb-1 { margin-bottom: 0.5rem; }
        .mb-2 { margin-bottom: 1rem; }
        .mb-3 { margin-bottom: 1.5rem; }
        .mb-4 { margin-bottom: 2rem; }
        
        .text-center { text-align: center; }
        .text-right { text-align: right; }
        .text-primary { color: var(--primary-color); }
        
        .badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        .badge-success {
            background-color: #28a745;
            color: white;
        }
        
        .badge-warning {
            background-color: #ffc107;
            color: #333;
        }
        
        .badge-danger {
            background-color: var(--primary-color);
            color: white;
        }

		/* Estilo para mensagens/notificações */
.mensagem {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards;
    max-width: 100%;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.mensagem-fadeout {
    animation: fadeOut 0.5s ease-out forwards;
}

.mensagem-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mensagem-content {
    flex-grow: 1;
}

.mensagem-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.mensagem-text {
    margin: 0;
}

.mensagem-sucesso {
    background-color: #e8f6ee;
    border-left: 4px solid #28a745;
    color: #155724;
}

.mensagem-sucesso .mensagem-icon {
    color: #28a745;
}

.mensagem-erro {
    background-color: #fbeaea;
    border-left: 4px solid #e60000;
    color: #721c24;
}

.mensagem-erro .mensagem-icon {
    color: #e60000;
}

.mensagem-alerta {
    background-color: #fff8e6;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.mensagem-alerta .mensagem-icon {
    color: #ffc107;
}

.mensagem-info {
    background-color: #e6f5ff;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.mensagem-info .mensagem-icon {
    color: #17a2b8;
}

.mensagem-fechar {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #999;
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    transition: color 0.2s;
}

.mensagem-fechar:hover {
    color: #333;
}

/* Mensagens fixas no topo (toast) */
.mensagem-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 2rem);
}

.mensagem-toast {
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mensagem-toast.ocultar {
    transform: translateX(120%);
    opacity: 0;
}

/* Lista de erros dentro de mensagem */
.mensagem ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.mensagem ul li {
    margin-bottom: 0.25rem;
}

.mensagem ul li:last-child {
    margin-bottom: 0;
}
        
        /* Responsive */
        @media (max-width: 991px) {
            .sidebar {
                width: 64px;
                overflow-x: hidden;
            }
            
            .sidebar-menu a span {
                display: none;
            }
            
            .main-content {
                margin-left: 64px;
            }
        }
        
        @media (max-width: 767px) {
            .header {
                padding: 1rem;
            }
            
            .logo {
                font-size: 1.4rem;
            }
            
            .main-content {
                padding: 1rem;
            }
            
            .sidebar {
                transform: translateX(-100%);
            }
            
            .sidebar.open {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0;
            }
            
            .dashboard-cards {
                grid-template-columns: 1fr;
            }
            
            .menu-toggle {
                display: block;
            }
        }


/* Estilos para o modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
}

/* Estilos para o container do modal */
.modal {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 0 auto;
}

/* Estilos para o cabeçalho do modal */
.modal-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Estilos para o corpo do modal */
.modal-body {
    padding: 15px;
}

/* Estilos para o rodapé do modal */
.modal-footer {
    padding: 12px 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Estilos para linhas e colunas do formulário */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap: 10px;
}

.form-col {
    flex: 1;
    min-width: 0;
}

/* Estilos para grupos de formulário */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Estilos para controles de formulário */
.form-control {
    display: block;
    width: 100%;
    padding: 8px 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out;
}

/* Estilos para botões */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    padding: 8px 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-outline {
    color: #6c757d;
    background-color: transparent;
    border: 1px solid #6c757d;
}

.btn-outline:hover {
    color: #fff;
    background-color: #6c757d;
}

/* Media queries para telas menores */
@media (max-width: 768px) {
    .modal {
        max-height: 85vh;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-col {
        width: 100%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* Para telas muito pequenas */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .form-control, .btn {
        font-size: 0.9rem;
        padding: 7px 10px;
    }
}




.search-bar {
    width: 100%;
    max-width: 400px;

}


.input-group {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.input-group input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #495057;
}


.input-group button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}


