/* --- NOVO CSS PARA DOSSIÊ DE FÉRIAS --- */

/* Layout Base */
.vac-dossier-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar de Colaboradores */
.dossier-sidebar {
    background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.dossier-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dossier-search {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 100%;
    outline: none;
    transition: all 0.2s;
}
.dossier-search:focus {
    border-color: #D32F2F;
    background: rgba(255,255,255,0.08);
}
.dossier-search::placeholder {
    color: rgba(255,255,255,0.3);
}

.dossier-employee-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.dossier-employee-item {
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.dossier-employee-item:hover {
    background: rgba(255,255,255,0.05);
}

.dossier-employee-item.active {
    background: rgba(211, 47, 47, 0.15);
    border-color: #D32F2F;
}

.dossier-employee-item .emp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.dossier-employee-item .emp-name {
    font-size: 0.75rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
}

.dossier-employee-item .emp-meta {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    text-transform: uppercase;
}

.dossier-employee-item .emp-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Main Content - Dossier */
.dossier-main {
    background: #f8fafc;
    overflow-y: auto;
    padding: 2rem;
}

.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.dossier-profile {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.dossier-profile img {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dossier-profile h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #121212;
    text-transform: uppercase;
    font-style: italic;
}

.dossier-profile .dossier-meta {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dossier-actions {
    display: flex;
    gap: 0.75rem;
}

.dossier-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dossier-btn-primary {
    background: #D32F2F;
    color: white;
    border: none;
}

.dossier-btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-1px);
}

.dossier-btn-secondary {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.dossier-btn-secondary:hover {
    border-color: #D32F2F;
    color: #D32F2F;
}

/* Stats Cards */
.dossier-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.dossier-stat-card {
    background: white;
    padding: 1.25rem;
    border-radius: 1rem;
    border-left: 4px solid;
}

.dossier-stat-label {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.dossier-stat-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #121212;
    margin: 0.25rem 0;
}

.dossier-stat-sub {
    font-size: 0.6rem;
    font-weight: 700;
    color: #64748b;
}

/* Timeline Section */
.dossier-section-title {
    font-size: 0.8rem;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dossier-timeline {
    position: relative;
    padding-left: 2rem;
}

.dossier-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #D32F2F 0%, #e2e8f0 100%);
}

.dossier-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.dossier-timeline-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #D32F2F;
}

.dossier-timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid #D32F2F;
}

.dossier-timeline-item.status-concluida::before { border-color: #10b981; }
.dossier-timeline-item.status-agendada::before { border-color: #3b82f6; }
.dossier-timeline-item.status-planejada::before { border-color: #f59e0b; }
.dossier-timeline-item.status-retroativa::before { border-color: #8b5cf6; }

.dossier-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.dossier-timeline-dates {
    font-size: 0.9rem;
    font-weight: 900;
    color: #121212;
}

.dossier-timeline-dates span {
    color: #D32F2F;
}

.dossier-timeline-badge {
    font-size: 0.6rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-concluida { background: #dcfce7; color: #15803d; }
.badge-agendada { background: #dbeafe; color: #1e40af; }
.badge-planejada { background: #fef3c7; color: #b45309; }
.badge-retroativa { background: #ede9fe; color: #7c3aed; }

.dossier-timeline-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.dossier-timeline-detail {
    font-size: 0.65rem;
}

.dossier-timeline-detail strong {
    display: block;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.dossier-timeline-detail span {
    color: #64748b;
    font-weight: 800;
}

.dossier-timeline-obs {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    color: #64748b;
    font-style: italic;
}

/* Empty State */
.dossier-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.dossier-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.dossier-empty h3 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.dossier-empty p {
    font-size: 0.75rem;
    font-weight: 700;
}

/* Modal de Registro Rico */
.dossier-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dossier-modal.active {
    opacity: 1;
    visibility: visible;
}

.dossier-modal-content {
    background: white;
    border-radius: 2rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s;
}

.dossier-modal.active .dossier-modal-content {
    transform: scale(1);
}

.dossier-modal-header {
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    padding: 1.5rem 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 2rem 2rem 0 0;
}

.dossier-modal-header h2 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
}

.dossier-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.dossier-modal-close:hover {
    color: white;
}

.dossier-modal-body {
    padding: 2rem;
}

.dossier-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dossier-form-group {
    display: flex;
    flex-direction: column;
}

.dossier-form-group.full {
    grid-column: span 2;
}

.dossier-form-label {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.dossier-form-input,
.dossier-form-select,
.dossier-form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #121212;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.dossier-form-input:focus,
.dossier-form-select:focus,
.dossier-form-textarea:focus {
    border-color: #D32F2F;
    background: white;
}

.dossier-form-textarea {
    resize: none;
    min-height: 80px;
}

.dossier-form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.dossier-form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dossier-form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #D32F2F;
}

.dossier-form-checkbox span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.dossier-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Filters */
.dossier-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dossier-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    transition: all 0.2s;
}

.dossier-filter-btn:hover,
.dossier-filter-btn.active {
    background: #D32F2F;
    color: white;
    border-color: #D32F2F;
}

/* Scrollbar */
.dossier-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.dossier-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dossier-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

/* Responsive */
@media (max-width: 1024px) {
    .vac-dossier-layout {
        grid-template-columns: 1fr;
    }
    
    .dossier-sidebar {
        display: none;
    }
    
    .dossier-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}