.vol-container {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-main);
}

.vol-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.vol-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.vol-nav {
    display: flex;
    gap: 10px;
}

.vol-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 18px;
    color: var(--text-muted);
}

.vol-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vol-periods-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
}

.vol-periods-grid {
    display: flex;
    gap: 20px;
    min-width: 1200px;
    /* Ensure wide scrolling if side-by-side */
}

.vol-period-col {
    flex: 1;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vol-period-header {
    padding: 15px;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.period-color-1 {
    background: var(--danger);
    /* Rouge (Paires) */
}

.period-color-2 {
    background: var(--warning);
    /* Orange (Impaires) */
}

/* Yellow */

.vol-period-header h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.vol-period-header span {
    font-size: 13px;
    opacity: 0.9;
}

.vol-section {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.vol-section-sat .vol-section-head {
    background: var(--primary);
    color: white;
}

.vol-section-sun .vol-section-head {
    background: var(--sh-violet);
    color: white;
}

.vol-section-hol .vol-section-head {
    background: var(--sh-cyan);
    color: white;
}

.vol-section-head {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}

.vol-col-labels {
    display: flex;
    justify-content: space-between;
    padding: 5px 15px;
    background: var(--bg-body-secondary);
    font-size: 12px;
    font-weight: 600;
}

.vol-day-row {
    display: flex;
    border-bottom: 1px solid var(--border-panel);
    background: var(--bg-card); /* Default/odd */
}

.vol-day-row:nth-child(even) {
    background: var(--bg-body-secondary); /* Alternate/even */
}

.vol-day-row:last-child {
    border-bottom: none;
}

.vol-day-date {
    width: 100px;
    padding: 10px;
    border-right: 1px solid var(--border-panel);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

.vol-day-slots {
    flex: 1;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vol-slot-box {
    background: var(--bg-hover);
    border: 1px solid var(--border-panel);
    border-radius: 6px;
    padding: 6px 10px;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.vol-slot-box:not(.is-empty) {
    background: var(--bg-body-secondary);
    border-color: transparent;
}

.vol-slot-box.is-mine {
    background: var(--success-light);
    border-color: var(--success);
}

.vol-slot-box.is-fixed {
    background: var(--bg-body-secondary);
    border-color: transparent;
    opacity: 0.8;
}

.vol-slot-empty {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.vol-select-off {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
}

.vol-btn-register {
    background: var(--primary);
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.vol-btn-register:hover {
    background: var(--primary-hover, #2563eb);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.vol-btn-register.w-100 {
    width: 100%;
}

.vol-slot-filled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.vol-name {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vol-off-badge {
    background: var(--bg-alternate);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.vol-btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    margin-left: 8px;
    opacity: 0.7;
}

.vol-btn-remove:hover {
    opacity: 1;
}

.vol-quota-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-panel);
}

.vol-quota-section h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
}

.vol-quota-grid {
    display: flex;
    gap: 15px;
}

.vol-quota-card {
    flex: 1;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.vol-quota-header {
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.vol-quota-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vol-quota-count {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.vol-quota-text {
    font-size: 13px;
    font-weight: 500;
}

.vol-quota-alert {
    border-color: var(--danger);
    box-shadow: 0 0 0 1px var(--danger);
}

.vol-quota-alert .vol-quota-text {
    color: var(--danger);
}

.vol-quota-ok .vol-quota-text {
    color: var(--success);
}

.vol-quota-list {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-panel);
    text-align: left;
    color: var(--text-muted);
}

/* Tabs */
.vol-tabs {
    padding-top: 8px;
    overflow: visible;
}

.vol-tab-btn {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px 16px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.vol-tab-btn:hover {
    color: var(--text-main);
}

.vol-tab-active {
    color: var(--primary) !important;
    border-bottom: 3px solid var(--primary) !important;
}

/* Lock button in date cells */
.vol-lock-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.vol-lock-btn:hover {
    opacity: 1;
}

/* Edit slot button */
.vol-btn-edit-slot {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 13px;
    padding: 0 2px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.vol-btn-edit-slot:hover {
    opacity: 1;
}