/* 
 * RECAP.PRO - Módulo Agenda
 * Layout de calendário e agendamentos profissionais
 */

.agenda-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.agenda-toolbar {
    height: 50px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
}

.agenda-view-selector {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.agenda-view-btn {
    padding: 5px 15px;
    font-size: 12px;
    background: #fff;
    border: none;
    cursor: pointer;
    border-right: 1px solid #ccc;
}

.agenda-view-btn:last-child { border-right: none; }
.agenda-view-btn.active { background: #0078d4; color: #fff; border-color: #0078d4; }

/* Grid do Calendário */
.agenda-grid-container {
    flex: 1;
    overflow: auto;
    position: relative;
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Colunas de tamanho igual */
}

.agenda-table th {
    height: 40px;
    background: #f3f3f3;
    border: 1px solid #ddd;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.agenda-table td {
    height: 80px;
    border: 1px solid #eee;
    vertical-align: top;
    padding: 4px;
    background: #fff;
}

.agenda-hour-col {
    width: 60px !important;
    background: #f9f9f9;
    font-size: 11px;
    text-align: center !important;
    color: #888;
    font-weight: 700;
}

/* Visualização Diária */
.agenda-hour-row-day {
    height: 100px !important;
}

/* Visualização Mensal */
.agenda-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(5, 1fr);
    height: 100%;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

.agenda-month-header {
    background: #f3f3f3;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 11px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.agenda-month-cell {
    min-height: 100px;
    background: #fff;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 5px;
}

.agenda-month-day-num {
    font-size: 14px;
    font-weight: 700;
    color: #999;
    margin-bottom: 5px;
}

.agenda-month-cell.today {
    background-color: #f0f7ff;
}

.agenda-month-cell.today .agenda-month-day-num {
    color: #0078d4;
}

.agenda-month-event {
    background: #0078d4;
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card de Agendamento */
.agenda-slot {
    background: #e1f5fe;
    border-left: 4px solid #0288d1;
    padding: 6px;
    border-radius: 2px;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}

.agenda-slot:hover { transform: scale(1.02); background: #b3e5fc; }

.agenda-slot b { display: block; margin-bottom: 2px; color: #01579b; }
.agenda-slot span { color: #555; font-size: 10px; }

.agenda-slot.status-confirmed { border-left-color: #2e7d32; background: #e8f5e9; }
.agenda-slot.status-pending { border-left-color: #f9a825; background: #fff3e0; }
