.timetable-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.timetable-tab {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    color: #0f172a;
}
.timetable-tab.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.timetable-sidebar-row {
    cursor: pointer;
    transition: 0.18s;
}
.timetable-sidebar-row:hover,
.timetable-sidebar-row.selected {
    background: #fff7ed;
}
.timetable-sidebar-row.selected td:first-child {
    color: #ea580c;
}
.timetable-sidebar-table-wrap {
    max-height: 72vh;
    overflow: auto;
}
.timetable-grid-wrap {
    max-height: 78vh;
    overflow: auto;
}
.timetable-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 820px;
}
.timetable-grid th,
.timetable-grid td {
    border: 1px solid #e5e7eb;
    padding: 10px;
    vertical-align: top;
    min-width: 150px;
    height: 82px;
}
.timetable-grid thead th {
    position: sticky;
    top: 0;
    background: #0f172a;
    color: #fff;
    z-index: 2;
}
.timetable-hour-col {
    width: 115px;
    min-width: 115px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 900;
    white-space: nowrap;
}
.timetable-slot {
    background: #fff;
    position: relative;
}
.timetable-closed-cell {
    background: repeating-linear-gradient(
        135deg,
        #f1f5f9,
        #f1f5f9 8px,
        #e2e8f0 8px,
        #e2e8f0 16px
    );
    color: #64748b;
    text-align: center;
    font-weight: 800;
}
.timetable-add-slot {
    border: 1px dashed #f97316;
    background: #fff7ed;
    color: #c2410c;
    border-radius: 14px;
    padding: 8px 10px;
    font-weight: 800;
    width: 100%;
}
.timetable-entry-card {
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 10px;
    margin-bottom: 6px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    cursor: grab;
}
.timetable-entry-card.group {
    background: linear-gradient(135deg, #047857, #0f766e);
}
.timetable-entry-card.dragging {
    opacity: 0.55;
}
.timetable-group-box {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
@media print {
    .gesnote-sidebar,
    .d-print-none,
    .gesnote-topbar {
        display: none !important;
    }
    .gesnote-main {
        margin: 0 !important;
    }
    .gesnote-card {
        box-shadow: none !important;
        border: 0 !important;
    }
}

.timetable-entry-card {
    position: relative;
    cursor: grab;
}

.timetable-entry-card:active {
    cursor: grabbing;
}

.timetable-resize-handle {
    height: 7px;
    width: 100%;
    border-radius: 0 0 10px 10px;
    background: rgba(15, 23, 42, 0.25);
    margin-top: 6px;
    cursor: ns-resize;
}

.drop-available {
    background: repeating-linear-gradient(
        135deg,
        #dcfce7,
        #dcfce7 8px,
        #bbf7d0 8px,
        #bbf7d0 16px
    ) !important;
}

.drop-no-room {
    background: repeating-linear-gradient(
        135deg,
        #fee2e2,
        #fee2e2 8px,
        #fecaca 8px,
        #fecaca 16px
    ) !important;
}

.drop-unavailable {
    background: repeating-linear-gradient(
        135deg,
        #f1f5f9,
        #f1f5f9 8px,
        #cbd5e1 8px,
        #cbd5e1 16px
    ) !important;
}

.timetable-hatched {
    background: repeating-linear-gradient(
        135deg,
        #111827,
        #111827 2px,
        #ffffff 2px,
        #ffffff 8px
    ) !important;
}

.timetable-resize-top,
.timetable-resize-bottom {
    height: 7px;
    width: 100%;
    background: rgba(15, 23, 42, 0.35);
    cursor: ns-resize;
    border-radius: 8px;
}

.timetable-resize-top {
    margin-bottom: 5px;
}

.timetable-resize-bottom {
    margin-top: 5px;
}

.timetable-trash-zone {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 3000;
    width: 260px;
    padding: 22px;
    border-radius: 24px;
    background: #fee2e2;
    color: #991b1b;
    border: 2px dashed #dc2626;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.timetable-trash-zone i {
    display: block;
    font-size: 34px;
    margin-bottom: 8px;
}

.timetable-trash-zone.is-over {
    background: #dc2626;
    color: #fff;
}

.timetable-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.timetable-group-mini-card {
    border: 1px solid rgba(15, 23, 42, 0.25);
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    font-size: 11px;
    line-height: 1.2;
}

.timetable-entry-card.group {
    background: #047857;
    border-radius: 16px;
    padding: 8px;
    color: #fff;
}

.timetable-group-hour {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 6px;
}

.timetable-group-hour:last-child {
    margin-bottom: 0;
}

.timetable-group-hour-title {
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
    opacity: 0.95;
}

.timetable-group-hour-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.timetable-group-mini-card {
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    padding: 6px;
    font-size: 11px;
    line-height: 1.2;
    min-height: 72px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.timetable-slot.is-drag-hover {
    background: #e5e7eb !important;
    outline: 3px solid #6b7280;
    outline-offset: -3px;
}

.timetable-slot.is-drag-hover::after {
    content: "Déposer ici";
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-align: center;
    margin-top: 6px;
}
