/* Sistema de Gestão Financeira - Estilos CSS */
/* Paleta de cores: Azul, Vermelho e Preto */

:root {
    --primary-blue: #2563eb;
    --light-blue: #3b82f6;
    --dark-blue: #1d4ed8;
    --primary-red: #dc2626;
    --light-red: #ef4444;
    --dark-red: #b91c1c;
    --primary-black: #1f2937;
    --light-black: #374151;
    --dark-black: #111827;
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --medium-gray: #d1d5db;
    --dark-gray: #6b7280;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    color: var(--primary-black);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e40af 0%, #059669 100%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.user-welcome {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.user-welcome p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
}

.header-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.user-info {
    display: none;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: var(--dark-gray);
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.tab-btn:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.tab-btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

.tab-btn i {
    margin-right: 8px;
}

/* Month Selector */
.month-selector {
    margin: 20px 0;
    text-align: center;
}

.month-selector label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--primary-black);
}

.month-selector select {
    padding: 8px 12px;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 14px;
    background: var(--white);
    color: var(--primary-black);
    cursor: pointer;
}

.month-selector select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Resumo Financeiro Sempre Visível */
.resumo-financeiro {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.resumo-financeiro h3 {
    color: white;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.2em;
}

.resumo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.resumo-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.resumo-card:hover {
    transform: translateY(-2px);
}

.resumo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.resumo-card.receita .resumo-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.resumo-card.despesa .resumo-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.resumo-card.saldo .resumo-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.resumo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.resumo-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.resumo-value {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-color);
}

.resumo-value.positive {
    color: #10b981;
}

.resumo-value.negative {
    color: #ef4444;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: var(--primary-black);
    font-size: 1.5rem;
    font-weight: 600;
}

.section-header h2 i {
    margin-right: 10px;
    color: var(--primary-blue);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-info {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--medium-gray);
    color: var(--primary-black);
}

.btn-secondary:hover {
    background: var(--dark-gray);
    color: var(--white);
}

.btn-success {
    background: var(--success-green);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
}

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

.btn-danger:hover {
    background: var(--dark-red);
}

.btn-info {
    background: var(--warning-yellow);
    color: var(--white);
}

.btn-info:hover {
    background: #d97706;
}

/* Tables */
.table-container {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    color: var(--white);
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--medium-gray);
    white-space: nowrap;
}

.data-table tr:hover {
    background: var(--light-gray);
}

.data-table .btn-danger, .data-table .btn-info {
    padding: 5px 10px;
    font-size: 12px;
}

/* Forms */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-black);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 14px;
    background: var(--white);
    color: var(--primary-black);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Extras Section */
.extras-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.extras-section h3 {
    color: var(--primary-black);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.extras-section h3 i {
    margin-right: 10px;
    color: var(--primary-blue);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Resultado Container */
.resultado-container {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.resultado-container h3 {
    color: var(--success-green);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.detalhes-calculo {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    white-space: pre-line;
    line-height: 1.8;
}

/* Cards */
.card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card h4 {
    color: var(--primary-black);
    margin-bottom: 10px;
    font-size: 1rem;
}

.valor-destaque {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.chart-wrapper {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.chart-wrapper h3 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-size: 1.1em;
    text-align: center;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
}

.chart-wrapper canvas {
    max-height: 300px;
}

/* Comparativos */
.comparativos {
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comparativos h3 {
    margin: 0 0 20px 0;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
}

.comparativo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.comparativo-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.comparativo-card h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 0.9em;
}

.comparativo-valor {
    font-size: 1.2em;
    font-weight: 700;
    margin: 5px 0;
}

.comparativo-variacao {
    font-size: 0.8em;
    font-weight: 600;
}

.comparativo-variacao.positiva {
    color: #10b981;
}

.comparativo-variacao.negativa {
    color: #ef4444;
}

.comparativo-variacao.neutra {
    color: #6b7280;
}


.dashboard-cards .card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
}

.card-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card.receita .card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
}

.card.despesa .card-icon {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-red);
}

.card.saldo .card-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-blue);
}

.card-content h3 {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 5px;
}

.card-variation {
    font-size: 0.8rem;
    font-weight: 500;
}

.card-variation.positive {
    color: var(--success-green);
}

.card-variation.negative {
    color: var(--primary-red);
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-wrapper {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-wrapper h3 {
    color: var(--primary-black);
    margin-bottom: 15px;
    text-align: center;
}

/* Comparativos */
.comparativos {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.comparativos h3 {
    color: var(--primary-black);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.comparativo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.comparativo-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0f2fe;
}

.comparativo-card h4 {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.comp-valor {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Calendário */
.calendario-container {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow-x: auto;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    min-width: 350px;
}

.calendario-header {
    background: linear-gradient(135deg, #2563eb 0%, #059669 100%);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendario-dia {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--medium-gray);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendario-dia:hover {
    transform: scale(1.05);
}

.dia-util {
    background: var(--white);
    color: var(--primary-black);
}

.fim-semana {
    background: #fef3c7;
    color: var(--primary-black);
}

.feriado {
    background: #fecaca;
    color: var(--dark-red);
    font-weight: 700;
}

.dia-vazio {
    background: var(--light-gray);
    cursor: default;
}

.dia-vazio:hover {
    transform: none;
}

/* Legenda do Calendário */
.legenda-calendario {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.cor-dia-util, .cor-fim-semana, .cor-feriado {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--medium-gray);
}

.cor-dia-util {
    background: var(--white);
}

.cor-fim-semana {
    background: #fef3c7;
}

.cor-feriado {
    background: #fecaca;
}

.feriados-info {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Resumo Despesas */
.resumo-despesas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal form {
    padding: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

/* Responsive Design */
@media (max-width: 992px) {
    .dashboard-cards,
    .charts-container,
    .comparativo-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .user-welcome p {
        font-size: 1em;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        margin-bottom: 5px;
        border-radius: 5px;
    }

    .dashboard-cards,
    .resumo-despesas {
        grid-template-columns: 1fr;
    }

    .legenda-calendario {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .table-container {
        font-size: 0.9rem;
    }

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

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .month-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendario-grid {
        min-width: 280px;
    }
    
    .calendario-header,
    .calendario-dia {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .valor-destaque {
        font-size: 1.5rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    animation: fadeIn 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--medium-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Estilos para Horas Extras */
.extras-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.resumo-horas-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
    border-radius: 8px;
    border: 1px solid #e0f2fe;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.resumo-item .label {
    font-weight: 600;
    color: var(--dark-gray);
}

.resumo-item .valor {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.1em;
}

.timeline-horas-extras {
    margin-top: 20px;
}

.timeline-horas-extras h4 {
    color: var(--primary-black);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 5px;
}

.timeline-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    background: white;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.timeline-item:hover {
    background-color: #f9fafb;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 4px;
}

.timeline-details {
    font-size: 0.9em;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

/* Novos estilos para layout reorganizado das horas extras */
.timeline-description {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-valor-total {
    font-size: 1.3em;
    color: var(--success-green);
    margin-bottom: 10px;
}

.timeline-horas-info {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.horas-quantidade {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
}

.horas-valor {
    background: var(--light-gray);
    color: var(--dark-gray);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.timeline-time {
    font-size: 0.8em;
    color: var(--medium-gray);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--light-gray);
}

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

.timeline-actions .btn-info,
.timeline-actions .btn-danger {
    padding: 4px 8px;
    font-size: 0.8em;
}

.valor-calculado {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--success-green);
    padding: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    text-align: center;
}

.timeline-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--dark-gray);
    font-style: italic;
}

.timeline-empty i {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--medium-gray);
    display: block;
}

/* Textarea para descrição */
textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    color: var(--primary-black);
    resize: vertical;
    min-height: 80px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Responsividade para mobile - Horas Extras */
@media (max-width: 768px) {
    .timeline-description {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .timeline-valor-total {
        font-size: 1.2em;
        margin-bottom: 8px;
    }
    
    .timeline-horas-info {
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .horas-quantidade,
    .horas-valor {
        font-size: 0.8em;
        padding: 3px 8px;
    }
    
    .timeline-time {
        font-size: 0.75em;
        margin-top: 6px;
        padding-top: 6px;
    }
    
    .timeline-actions {
        flex-direction: column;
        gap: 4px;
        margin-top: 10px;
    }
    
    .timeline-actions .btn-info,
    .timeline-actions .btn-danger {
        width: 100%;
        justify-content: center;
    }
}

/* Rodapé */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
    color: var(--dark-gray);
    font-size: 0.9em;
}

.footer p {
    margin: 0;
}

.footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}
