/*.project-day-tabs {*/
/*    color: black;*/
/*}*/
.container-fluid .no-padding-calendar,
.no-padding-calendar .shadow-sm,
.no-padding-calendar .card-body {
    padding: 0 !important;
    margin: 0 !important;
}

/* ─── 2. АГРЕССИВНЫЙ CSS ДЛЯ FULLCALENDAR LIST VIEW (На всю ширину) ─── */
.fc,
.fc-view,
.fc-list-view,
.fc-list-table,
.fc-table,
.fc-tbody,
.fc-row,
.fc-cell,
.fc-list-cell,
.fc-list-cell-content,
.fc-list-event,
.fc-list-event-title,
.fc-list-event-title-container {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.fc-daygrid-day.has-events {
    background-color: #e8f5e9 !important;
}
.fc-daygrid-day.has-events .fc-daygrid-day-number {
    font-weight: 700;
    color: #2e7d32;
}
/* Скрыть "+N more" */
.fc-daygrid-more-link {
    display: none !important;
}

/* Превращаем таблицу списка в блочную структуру, чтобы игнорировать колонки */
.fc-list-table {
    table-layout: auto !important;
    width: 100% !important;
    border-collapse: collapse !important;
    display: block !important; /* Ключевое правило */
}
.fc-list-table thead,
.fc-list-table tbody,
.fc-list-table tr {
    display: block !important;
    width: 100% !important;
}
.fc-list-table td {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    vertical-align: top !important;
    border: none !important;
}

/* Целевые классы для вашего контента */
.fc-list-cell-content {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
}
.fc-list-event-custom {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    overflow: visible !important;
    padding: 1rem 1.5rem !important;

    /* Если фон белый, а у родителя тень, можно добавить свой фон, чтобы тень не просвечивала сквозь текст */
    background-color: #ffffff !important;
}
.fc-list-line {
    width: 100% !important;
    display: block !important;
    white-space: normal !important;
    word-break: break-word !important;
    margin-bottom: 0.2rem !important;
}
.fc-list-label {
    font-weight: 600 !important;
    opacity: 0.6 !important;
    margin-right: 0.3em !important;
}

/* Скрываем колонки времени и иконок в списке */
.fc-list-event-graphic,
.fc-list-event-dot,
.fc-list-event-time {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
}

/* Стили для компактного вида (месяц/неделя) */
.fc-grid-event-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
}
.fc-daygrid-event,
.fc-timegrid-event {
    overflow: hidden !important;
}

/* ─── Мобильная адаптация (оставляем как было) ─── */
@media (max-width: 768px) {
    .fc .fc-toolbar.fc-header-toolbar {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem 0 !important;
        margin-bottom: 0.75rem !important;
    }
    .fc .fc-toolbar.fc-header-toolbar > .fc-toolbar-chunk {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
        width: 100% !important;
    }
    .fc .fc-toolbar.fc-header-toolbar .fc-toolbar-title {
        font-size: 1.1rem !important;
        margin: 0 !important;
        text-align: center !important;
    }
    .fc .fc-toolbar.fc-header-toolbar .fc-button {
        padding: 0.2rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    .fc .fc-toolbar.fc-header-toolbar .fc-button-group {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .fc-list-event-custom { font-size: 0.82rem !important; }
    .fc-list-line { font-size: 0.82rem !important; }
    .fc-list-label { font-size: 0.78rem !important; }
}
