.calendar-wrapper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    padding: 24px;
    border: 1px solid #f3f4f6;
}

#agenda {
    font-family: 'Inter', sans-serif;
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    text-transform: capitalize;
}

.fc .fc-button {
    background-color: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: none !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 14px;
}

.fc .fc-button:hover {
    background-color: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.fc .fc-button-active {
    background-color: #eef2ff !important;
    color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

.rdv-card {
    padding: 8px 10px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.rdv-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.rdv-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.rdv-contact {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.rdv-company {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 2px;
}

.status-cancelled {
    border-left-color: #ef4444;
    background: #fff5f5;
}
.badge-cancelled {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.status-reported {
    border-left-color: #8b5cf6;
    background: #fbfaff;
}

.badge-reported {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.status-valid {
    border-left-color: #10b981;
    background: #f0fdf9;
}

.badge-valid {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.status-pending {
    border-left-color: #f59e0b;
    background: #fffbf0;
}

.badge-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center; 
}

.filter-btn {
    position: relative;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.filter-new .dot-indicator { background: #f59e0b; }
.filter-valid .dot-indicator { background: #10b981; }
.filter-reported .dot-indicator { background: #8b5cf6; }
.filter-cancelled .dot-indicator { background: #ef4444; }

.filter-btn.active {
    border-color: transparent;
    color: white;
}

.filter-btn.active[data-filter="all"] { background: #374151; }
.filter-btn.active.filter-new { background: #f59e0b; }
.filter-btn.active.filter-valid { background: #10b981; }
.filter-btn.active.filter-reported { background: #8b5cf6; }
.filter-btn.active.filter-cancelled { background: #ef4444; }

.filter-btn.active .dot-indicator {
    background: white;
}

.notif-badge {
    background-color: #dc2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 99px;
    position: absolute;
    top: -5px;
    right: -5px;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    border: 1px solid #fff;
}

.list-item-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 15px 20px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    margin-bottom: 10px; 
}

.list-date-box {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    min-width: 140px !important;
    max-width: 140px !important;
    padding-right: 15px !important;
    margin-right: 15px !important;
    border-right: 1px solid #f3f4f6 !important;
}

.list-date-day {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
    text-transform: capitalize !important;
    display: block !important;
}

.list-date-time {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    margin-top: 4px !important;
    display: block !important;
}

.list-item-bar {
    width: 4px !important;
    height: 40px !important;
    border-radius: 4px;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
}

.list-info-box {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.fc-list-day-cushion, 
.fc-list-event-graphic, 
.fc-list-event-dot, 
.fc-list-event-time { 
    display: none !important; 
}

.fc-list-table, .fc-list-table tbody, .fc-list-event {
    display: block !important;
    width: 100% !important;
    border: none !important;
}

.fc-theme-standard .fc-list {
    border: none !important;
}

.fc-list-event td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.fc-list-event:hover td {
    background: transparent !important;
}

.list-item-badge {
    margin-left: auto !important;
}

.list-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 99px !important; 
    padding: 8px 16px !important; 
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.badge-cancelled { 
    background-color: #fef2f2 !important; 
    color: #991b1b !important; 
    border: 1px solid #fecaca !important;
}
.badge-reported { 
    background-color: #f5f3ff !important; 
    color: #5b21b6 !important; 
    border: 1px solid #ddd6fe !important;
}
.badge-valid { 
    background-color: #ecfdf5 !important; 
    color: #065f46 !important; 
    border: 1px solid #a7f3d0 !important;
}
.badge-pending { 
    background-color: #fffbeb !important; 
    color: #92400e !important; 
    border: 1px solid #fde68a !important;
}

.fc-list, 
.fc-list-table {
    width: 100% !important;
    min-width: 100% !important;
    display: table !important;
    table-layout: fixed !important; 
}

.calendar-wrapper {
    width: 100% !important;
    display: block !important;
}

.fc-view-harness {
    width: 100% !important;
    flex-grow: 1 !important;
}

@media (max-width: 991px) {
    .mobile-margin-top {
        margin-top: 50px;
    }
}


@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 12px !important;
        overflow-x: hidden;
    }

    .list-item-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        position: relative; 
    }

    .list-date-box {
        min-width: 100% !important;
        max-width: 100% !important;
        flex-direction: row !important; 
        justify-content: flex-start !important;
        gap: 10px;
        border-right: none !important;
        border-bottom: 1px solid #f3f4f6 !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }

    .list-item-badge {
        position: absolute !important;
        top: 12px;
        right: 12px;
        margin: 0 !important;
    }
    
    .fc-view-harness {
        overflow-x: auto !important;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.2rem !important;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
}