/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Power BI */
    --primary-color: #005a9f;
    --secondary-color: #0078d4;
    --accent-color: #ffd600;
    --success-color: #107c10;
    --warning-color: #ff8c00;
    --danger-color: #d83b01;
    
    /* Tons de cinza modernos */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f3f2f1;
    --bg-dark: #323130;
    
    /* Texto */
    --text-primary: #323130;
    --text-secondary: #605e5c;
    --text-tertiary: #a19f9d;
    --text-white: #ffffff;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    
    /* Bordes */
    --border-radius: 8px;
    --border-color: #e1dfdd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

/* Container Principal */
.app-container {
    min-height: 100vh;
}

/* Main Content */
.main-content {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.top-header {
    background: var(--bg-primary);
    padding: 0 24px;
    height: 56px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    display: flex;
    align-items: center;
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

.brand-mark:hover {
    opacity: 1;
}

.brand-mark img {
    height: 24px;
    width: auto;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Botão do usuário (gatilho do menu) */
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 5px 10px 5px 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: background 0.15s ease;
}

.user-btn:hover {
    background: var(--gray-100);
}

.user-btn__name {
    font-weight: 500;
}

.user-btn__chevron {
    font-size: 10px;
    color: var(--text-tertiary);
    transition: transform 0.15s ease;
}

.user-dropdown:has(.user-dropdown-menu.show) .user-btn__chevron {
    transform: rotate(180deg);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
}

/* Menu de navegação dentro do dropdown */
.dropdown-header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--gray-200);
}

.dropdown-header__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-header__email {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    word-break: break-all;
}

.dropdown-section {
    padding: 8px 16px 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    list-style: none;
}

.nav-menu {
    list-style: none;
    padding: 4px 0 0;
    margin: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: var(--gray-100);
}

.nav-item.active .nav-link {
    background: rgba(0, 120, 212, 0.08);
    color: var(--primary-color);
    border-left-color: var(--secondary-color);
    font-weight: 600;
}

.nav-link i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

/* Content Area */
.content-area {
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.content-area.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 20px;
}

.kpi-info {
    flex: 1;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.kpi-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.kpi-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.kpi-change.positive {
    background: rgba(16, 124, 16, 0.1);
    color: var(--success-color);
}

.kpi-change.negative {
    background: rgba(216, 59, 1, 0.1);
    color: var(--danger-color);
}

.kpi-change.neutral {
    background: var(--gray-100);
    color: var(--text-secondary);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.chart-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.chart-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.chart-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.chart-container {
    padding: 24px;
    height: 300px;
    position: relative;
}

/* Activity List */
.activity-list {
    padding: 16px 24px 24px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.activity-info p {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-info span {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--text-white);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #c2370a;
}

/* Tables */
.table-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-tertiary);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--text-primary);
}

.data-table tr:hover {
    background: var(--bg-secondary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 124, 16, 0.1);
    color: var(--success-color);
}

.status-badge.inactive {
    background: rgba(150, 150, 150, 0.1);
    color: var(--text-secondary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.action-btn.edit:hover {
    color: var(--secondary-color);
}

.action-btn.delete:hover {
    color: var(--danger-color);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .top-header {
        padding: 0 16px;
    }

    .user-btn__name {
        display: none;
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 24px;
}

/* Priority Badges */
.priority-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.priority-alta {
    background: rgba(216, 59, 1, 0.1);
    color: var(--danger-color);
}

.priority-badge.priority-media {
    background: rgba(255, 140, 0, 0.1);
    color: var(--warning-color);
}

.priority-badge.priority-baixa {
    background: rgba(16, 124, 16, 0.1);
    color: var(--success-color);
}

/* Text Colors */
.text-warning {
    color: var(--warning-color);
    font-weight: 500;
}

.text-success {
    color: var(--success-color);
    font-weight: 500;
}

/* Form Row for two-column layouts */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Responsive form rows */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 16px;
    }
}

/* Estilos específicos para Despesas */
.tipo-despesa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: #f8f9fa;
    color: #495057;
}

.tipo-despesa.refeicao { background: #fff3cd; color: #856404; }
.tipo-despesa.pedagio { background: #d1ecf1; color: #0c5460; }
.tipo-despesa.estacionamento { background: #f8d7da; color: #721c24; }
.tipo-despesa.hotel { background: #d4edda; color: #155724; }
.tipo-despesa.taxi_uber_frete { background: #e2e3e5; color: #383d41; }
.tipo-despesa.combustivel { background: #fff3cd; color: #856404; }
.tipo-despesa.km { background: #cce5ff; color: #004085; }
.tipo-despesa.outro { background: #e7e8ea; color: #41464b; }

.valor-despesa {
    font-weight: 600;
    color: #28a745;
    font-size: 16px;
}

.nota-fiscal-cell {
    text-align: center;
}

.btn-visualizar-nota {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-visualizar-nota:hover {
    background: #0056b3;
}

.sem-nota {
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
}

.file-upload-container {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s;
    cursor: pointer;
}

.file-upload-container:hover {
    border-color: #007bff;
}

.file-upload-container input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-info i {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 10px;
}

.file-upload-info p {
    margin: 10px 0 5px 0;
    font-weight: 500;
    color: #495057;
}

.file-upload-info small {
    color: #6c757d;
}

#preview-container {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

#image-preview {
    border: 1px solid #dee2e6;
    box-shadow: var(--shadow-sm);
}
/* Estilos para Relatórios Técnicos */
.action-btn.pdf {
    background: #e74c3c;
    color: white;
}

.action-btn.pdf:hover {
    background: #c0392b;
}

.action-btn.share {
    background: #3498db;
    color: white;
}

.action-btn.share:hover {
    background: #2980b9;
}

.compartilhamento-container {
    padding: 20px;
}

.share-option {
    margin-bottom: 20px;
}

.share-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.link-container {
    display: flex;
    gap: 8px;
}

.link-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.btn-copy {
    padding: 8px 12px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-copy:hover {
    background: #7f8c8d;
}

.share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.btn-email {
    background: #34495e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-email:hover {
    background: #2c3e50;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Relatórios Gerenciais Styles */
.filters-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filters-container select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    min-width: 180px;
}

.relatorio-gestor-container {
    max-width: 900px;
    margin: 0 auto;
}

.relatorio-gestor-container h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card p {
    margin-bottom: 8px;
    color: #555;
}

.info-card hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.info-card details {
    margin-top: 10px;
}

.info-card summary {
    cursor: pointer;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 10px;
}

.despesas-lista {
    background: white;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.action-buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.action-btn.finish {
    background: #27ae60;
    color: white;
}

.action-btn.finish:hover {
    background: #219a52;
}

.btn-success {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-success:hover {
    background: #219a52;
    transform: translateY(-1px);
}

.status-badge.info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-badge.secondary {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Mobile Cards Styles */
.mobile-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

.mobile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.mobile-card-header {
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.mobile-card-content {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-card-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-card-value {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.mobile-card-actions {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 8px;
    justify-content: space-around;
}

.mobile-card-actions button {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-card-actions .btn-editar {
    background: #007bff;
    color: white;
}

.mobile-card-actions .btn-editar:hover {
    background: #0056b3;
}

.mobile-card-actions .btn-excluir {
    background: #dc3545;
    color: white;
}

.mobile-card-actions .btn-excluir:hover {
    background: #c82333;
}

.mobile-card-actions .btn-visualizar-nota {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.mobile-card-actions .btn-visualizar-nota:hover {
    background: #218838;
}

.mobile-card-actions .btn-pdf {
    background: #dc3545;
    color: white;
}

.mobile-card-actions .btn-pdf:hover {
    background: #c82333;
}

.mobile-card-actions .btn-compartilhar {
    background: #17a2b8;
    color: white;
}

.mobile-card-actions .btn-compartilhar:hover {
    background: #138496;
}

.sem-nota {
    color: #6c757d;
    font-style: italic;
    font-size: 12px;
}

/* Cores específicas para diferentes telas */
#apontamentos-content .mobile-card-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

#despesas-content .mobile-card-header {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
    color: #e65100;
}

#relatorios-tecnicos-content .mobile-card-header {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    color: #2e7d32;
}

/* Status badges em mobile */
.mobile-card .status-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.mobile-card .status-badge.status-success {
    background-color: #d4edda;
    color: #155724;
}

.mobile-card .status-badge.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.mobile-card .status-badge.status-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.mobile-card .status-badge.status-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Tipo de despesa específico */
.mobile-card .tipo-despesa {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.mobile-card .valor-despesa {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
}

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-container select {
        min-width: auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons-container {
        flex-direction: column;
    }
    
    /* Ocultar tabelas em mobile e mostrar cards */
    .table-container table {
        display: none;
    }
    
    .mobile-cards-container {
        display: block;
    }
}

/* Header Controls for Technical Pages */
.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.os-filter-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.os-filter-container label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

.os-filter-select {
    min-width: 280px;
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
}

.os-filter-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.os-filter-select:hover {
    border-color: #007bff;
}

@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .os-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .os-filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-container select {
        min-width: auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons-container {
        flex-direction: column;
    }
    
    /* Ocultar tabelas em mobile e mostrar cards */
    .table-container table {
        display: none;
    }
    
    .mobile-cards-container {
        display: block;
    }
}

@media (min-width: 769px) {
    /* Ocultar cards em desktop e mostrar tabelas */
    .mobile-cards-container {
        display: none;
    }
    
    .table-container table {
        display: table;
    }
}

/* ==========================================
   Página de Configurações
   ========================================== */

/* Header dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: var(--gray-100);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.15s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu do usuário: mais largo e rolável, pois carrega a navegação inteira */
.user-dropdown-menu {
    width: 260px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding-bottom: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: var(--gray-100);
}

.dropdown-item--danger {
    color: var(--danger-color);
}

.dropdown-item--danger:hover {
    background: rgba(216, 59, 1, 0.06);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 6px 0;
    list-style: none;
}

/* Container de configurações */
.config-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.config-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.config-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.config-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Formulário de alterar senha */
.config-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.config-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-form label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.config-form input[type="password"] {
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.config-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 159, 0.1);
}

.form-hint {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Informações da conta */
.account-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.info-item label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Botões de ação desabilitados para OS finalizada */
.action-buttons-disabled {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-tertiary);
    font-size: 12px;
    padding: 8px;
    text-align: center;
    opacity: 0.6;
}

.action-buttons-disabled i {
    font-size: 14px;
    color: var(--warning-color);
}

.action-buttons-disabled small {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .config-container {
        margin: 0 16px;
    }
    
    .config-section {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
    
    .account-info {
        grid-template-columns: 1fr;
    }
    
    .dropdown-menu {
        left: 0;
        right: 0;
        min-width: auto;
    }
}

/ *   C a m p o s   m a i o r e s   p a r a   m o b i l e   * / 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
         . m o d a l - b o d y   . f o r m - g r o u p   i n p u t , 
         . m o d a l - b o d y   . f o r m - g r o u p   s e l e c t , 
         . m o d a l - b o d y   . f o r m - g r o u p   t e x t a r e a   { 
                 p a d d i n g :   2 2 p x   1 8 p x   ! i m p o r t a n t ; 
                 f o n t - s i z e :   1 8 p x   ! i m p o r t a n t ; 
                 m i n - h e i g h t :   6 4 p x   ! i m p o r t a n t ; 
                 b o r d e r - r a d i u s :   1 4 p x   ! i m p o r t a n t ; 
         } 
         
         . m o d a l - b o d y   . f o r m - g r o u p   l a b e l   { 
                 f o n t - s i z e :   1 8 p x   ! i m p o r t a n t ; 
                 m a r g i n - b o t t o m :   1 2 p x   ! i m p o r t a n t ; 
         } 
         
         . m o d a l - f o o t e r   . b t n - p r i m a r y , 
         . m o d a l - f o o t e r   . b t n - s e c o n d a r y   { 
                 p a d d i n g :   2 0 p x   3 2 p x   ! i m p o r t a n t ; 
                 f o n t - s i z e :   1 8 p x   ! i m p o r t a n t ; 
                 m i n - h e i g h t :   6 4 p x   ! i m p o r t a n t ; 
                 b o r d e r - r a d i u s :   1 4 p x   ! i m p o r t a n t ; 
         } 
 }  
 