/* CSS for Feature Warehouse & Daily Compliance Audit Tool */

/* Dropdown Custom Styles */
.warehouse-dropdown-wrapper {
    position: relative;
    margin-right: -1rem;
    display: flex;
    align-items: center;
    z-index: 99;
}

.warehouse-menu {
    width: 320px;
    padding: 0.5rem 0;
}

.warehouse-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 0.25rem;
}

.warehouse-option:hover:not(.disabled) {
    background: var(--bg-light, #f8fafc);
}

body.dark-mode .warehouse-option:hover:not(.disabled) {
    background: #1e293b;
}

.warehouse-option.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.warehouse-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.warehouse-option-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark, #1e293b);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-mode .warehouse-option-title {
    color: #f1f5f9;
}

.warehouse-option-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
}

body.dark-mode .warehouse-option-desc {
    color: #94a3b8;
}

.warehouse-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}

.warehouse-badge.active {
    background: #e0f2fe;
    color: #0284c7;
}

body.dark-mode .warehouse-badge.active {
    background: #0c4a6e;
    color: #38bdf8;
}

.warehouse-badge.locked {
    background: #f1f5f9;
    color: #64748b;
}

body.dark-mode .warehouse-badge.locked {
    background: #334155;
    color: #94a3b8;
}

/* Modal Overlay Styling */
.warehouse-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.warehouse-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.warehouse-modal {
    background: var(--white, #ffffff);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color, #e2e8f0);
}

.warehouse-backdrop.active .warehouse-modal {
    transform: translateY(0);
}

body.dark-mode .warehouse-modal {
    background: #0f172a;
    border-color: #334155;
}

/* Modal Header */
.warehouse-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .warehouse-modal-header {
    border-color: #334155;
}

.warehouse-modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warehouse-modal-title i {
    font-size: 1.5rem;
    color: #4f46e5;
}

body.dark-mode .warehouse-modal-title i {
    color: #818cf8;
}

.warehouse-modal-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark, #1e293b);
}

body.dark-mode .warehouse-modal-title h2 {
    color: #f1f5f9;
}

.warehouse-modal-close {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.warehouse-modal-close:hover {
    background: var(--bg-light, #f8fafc);
    color: #ef4444;
}

body.dark-mode .warehouse-modal-close:hover {
    background: #1e293b;
}

/* Modal Tabs */
.warehouse-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-light, #f8fafc);
    padding: 0 1.5rem;
}

body.dark-mode .warehouse-tabs {
    background: #1e293b;
    border-color: #334155;
}

.warehouse-tab-btn {
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.warehouse-tab-btn:hover {
    color: var(--text-dark, #1e293b);
}

body.dark-mode .warehouse-tab-btn:hover {
    color: #f1f5f9;
}

.warehouse-tab-btn.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

body.dark-mode .warehouse-tab-btn.active {
    color: #818cf8;
    border-bottom-color: #818cf8;
}

/* Modal Content Body */
.warehouse-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Checklist Styling */
.audit-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
}

.audit-section-title:first-of-type {
    margin-top: 0;
}

.audit-checklist-card {
    background: var(--white, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

body.dark-mode .audit-checklist-card {
    background: #1e293b;
    border-color: #334155;
}

.audit-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.audit-check-item:hover {
    background: var(--bg-light, #f8fafc);
}

body.dark-mode .audit-check-item:hover {
    background: #334155;
}

.audit-check-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    margin-top: 0.1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

body.dark-mode .audit-check-checkbox {
    border-color: #475569;
}

.audit-check-item.checked .audit-check-checkbox {
    background: #10b981;
    border-color: #10b981;
}

.audit-check-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark, #1e293b);
    transition: all 0.2s;
}

body.dark-mode .audit-check-text {
    color: #e2e8f0;
}

.audit-check-item.checked .audit-check-text {
    color: #64748b;
    text-decoration: line-through;
}

body.dark-mode .audit-check-item.checked .audit-check-text {
    color: #94a3b8;
}

/* Progress bar container */
.audit-progress-container {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

body.dark-mode .audit-progress-container {
    background: #1e293b;
    border-color: #334155;
}

.audit-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark, #1e293b);
    margin-bottom: 0.5rem;
}

body.dark-mode .audit-progress-header {
    color: #e2e8f0;
}

.audit-progress-bar-bg {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

body.dark-mode .audit-progress-bar-bg {
    background: #334155;
}

.audit-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5 0%, #10b981 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Inputs & Form layout */
.audit-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.audit-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.audit-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.audit-form-input, .audit-form-select {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 0.9rem;
    background: var(--white, #ffffff);
    color: var(--text-dark, #1e293b);
    transition: border-color 0.2s;
}

body.dark-mode .audit-form-input, body.dark-mode .audit-form-select {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.audit-form-input:focus, .audit-form-select:focus {
    border-color: #4f46e5;
    outline: none;
}

body.dark-mode .audit-form-input:focus, body.dark-mode .audit-form-select:focus {
    border-color: #818cf8;
}

/* Button & History Logs styling */
.audit-submit-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.audit-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

.audit-submit-btn:active {
    transform: translateY(0);
}

/* History logs */
.audit-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.audit-history-card {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 1rem;
    background: var(--bg-light, #f8fafc);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .audit-history-card {
    background: #1e293b;
    border-color: #334155;
}

.audit-history-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.audit-history-zone {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark, #1e293b);
}

body.dark-mode .audit-history-zone {
    color: #f1f5f9;
}

.audit-history-meta {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    gap: 0.5rem;
}

body.dark-mode .audit-history-meta {
    color: #94a3b8;
}

.audit-history-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.audit-history-badge.perfect {
    background: #d1fae5;
    color: #065f46;
}

body.dark-mode .audit-history-badge.perfect {
    background: #064e3b;
    color: #34d399;
}

.audit-history-badge.partial {
    background: #fef3c7;
    color: #92400e;
}

body.dark-mode .audit-history-badge.partial {
    background: #78350f;
    color: #fbbf24;
}

.audit-history-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.audit-history-empty i {
    font-size: 2.5rem;
    color: #cbd5e1;
}

body.dark-mode .audit-history-empty i {
    color: #475569;
}

.clear-history-btn {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-history-btn:hover {
    background: #ef4444;
    color: white;
}

/* Scheduler Styles - Full Page Board Edition */
.sched-layout {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .sched-layout {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Sidebar Widgets Panel */
.sched-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .sched-sidebar {
        width: 100%;
    }
}

.sched-sidebar-card {
    background: var(--white, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.dark-mode .sched-sidebar-card {
    background: #0f172a;
    border-color: #334155;
}

.sched-sidebar-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.dark-mode .sched-sidebar-title {
    color: #94a3b8;
}

/* KPI Dashboard Widgets */
.sched-kpi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.sched-kpi-card {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.dark-mode .sched-kpi-card {
    border-color: #334155;
}

.sched-kpi-card.deficiency {
    background: #fff5f5;
    border-color: #fecaca;
    color: #991b1b;
}

body.dark-mode .sched-kpi-card.deficiency {
    background: #7f1d1d;
    border-color: #991b1b;
    color: #fca5a5;
}

.sched-kpi-card.warning {
    background: #fffbeb;
    border-color: #fef3c7;
    color: #92400e;
}

body.dark-mode .sched-kpi-card.warning {
    background: #78350f;
    border-color: #92400e;
    color: #fde68a;
}

.sched-kpi-card.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

body.dark-mode .sched-kpi-card.success {
    background: #064e3b;
    border-color: #065f46;
    color: #86efac;
}

.sched-kpi-icon {
    font-size: 1.5rem;
}

.sched-kpi-details {
    display: flex;
    flex-direction: column;
}

.sched-kpi-val {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.15rem;
}

.sched-kpi-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Scheduler Right Board */
.sched-board {
    flex: 1;
    min-width: 0;
    background: var(--white, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.dark-mode .sched-board {
    background: #0f172a;
    border-color: #334155;
}

/* Day Schedule Section styling */
.sched-day-section {
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding: 1.5rem 0;
}

body.dark-mode .sched-day-section {
    border-color: #334155;
}

.sched-day-section:first-of-type {
    padding-top: 0;
}

.sched-day-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.sched-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sched-day-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark, #1e293b);
}

body.dark-mode .sched-day-name {
    color: #f1f5f9;
}

.sched-shifts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.sched-shift-card {
    background: var(--bg-light, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    box-sizing: border-box;
    transition: all 0.2s;
}

.sched-shift-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

body.dark-mode .sched-shift-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .sched-shift-card:hover {
    border-color: #475569;
}

.sched-shift-caregiver {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark, #1e293b);
    padding-right: 1.5rem;
}

body.dark-mode .sched-shift-caregiver {
    color: #f1f5f9;
}

.sched-shift-zone {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

body.dark-mode .sched-shift-zone {
    color: #94a3b8;
}

.sched-shift-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
}

.sched-shift-time {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sched-shift-time.morning { color: #f59e0b; }
.sched-shift-time.evening { color: #3b82f6; }
.sched-shift-time.night { color: #8b5cf6; }

.sched-shift-delete-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: transparent;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sched-shift-delete-btn:hover {
    color: #ef4444;
}

/* Warnings and Banners */
.sched-warning-banner {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #991b1b;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

body.dark-mode .sched-warning-banner {
    background: #7f1d1d;
    border-color: #991b1b;
    color: #fca5a5;
}

.sched-warning-badge {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    width: fit-content;
}

body.dark-mode .sched-warning-badge {
    background: #7f1d1d;
    color: #fca5a5;
}

.sched-empty-day {
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
    padding: 0.5rem 0;
}

/* Calendar Tabs */
.sched-view-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
body.dark-mode .sched-view-tabs {
    border-color: #334155;
}
.sched-view-tab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.sched-view-tab-btn:hover {
    color: var(--text-dark, #1e293b);
    background: #f1f5f9;
}
body.dark-mode .sched-view-tab-btn:hover {
    color: #f1f5f9;
    background: #1e293b;
}
.sched-view-tab-btn.active {
    color: var(--primary-color, #2563eb);
    background: #eff6ff;
}
body.dark-mode .sched-view-tab-btn.active {
    color: #60a5fa;
    background: #1e3a8a;
}

/* Calendar Grid */
.sched-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sched-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 0.5rem;
}
body.dark-mode .sched-calendar-weekdays {
    border-color: #334155;
}
.sched-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color, #e2e8f0);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
}
body.dark-mode .sched-calendar-grid {
    background: #334155;
    border-color: #334155;
}
.sched-calendar-cell {
    background: var(--white, #ffffff);
    aspect-ratio: 1.1;
    min-height: 80px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}
body.dark-mode .sched-calendar-cell {
    background: #0f172a;
}
.sched-calendar-cell:hover {
    background: #f8fafc;
}
body.dark-mode .sched-calendar-cell:hover {
    background: #1e293b;
}
.sched-calendar-cell.muted {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: default;
}
body.dark-mode .sched-calendar-cell.muted {
    background: #0f172a;
    opacity: 0.25;
}
.sched-calendar-cell.today {
    background: #eff6ff;
    border: 2px solid #3b82f6;
}
body.dark-mode .sched-calendar-cell.today {
    background: #1e3a8a;
    border-color: #60a5fa;
}
.sched-calendar-cell.active-filter {
    background: #f0fdf4;
    border: 2px solid #10b981;
}
body.dark-mode .sched-calendar-cell.active-filter {
    background: #064e3b;
    border-color: #34d399;
}
.sched-calendar-number {
    font-weight: 700;
    font-size: 0.9rem;
}
.sched-calendar-badge-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
}
.sched-calendar-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.25rem;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sched-calendar-badge.shifts {
    background: #f0fdf4;
    color: #166534;
}
body.dark-mode .sched-calendar-badge.shifts {
    background: #064e3b;
    color: #86efac;
}
.sched-calendar-badge.alerts {
    background: #fef2f2;
    color: #991b1b;
}
body.dark-mode .sched-calendar-badge.alerts {
    background: #7f1d1d;
    color: #fca5a5;
}

/* Calendar Scope Selector */
.sched-scope-selector {
    display: flex;
    gap: 0.25rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
}
body.dark-mode .sched-scope-selector {
    background: #1e293b;
    border-color: #334155;
}
.sched-scope-btn {
    border: none;
    background: transparent;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.sched-scope-btn:hover {
    color: var(--text-dark, #1e293b);
}
body.dark-mode .sched-scope-btn:hover {
    color: #f1f5f9;
}
.sched-scope-btn.active {
    background: var(--white, #ffffff);
    color: var(--text-dark, #1e293b);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
body.dark-mode .sched-scope-btn.active {
    background: #0f172a;
    color: #f1f5f9;
}

/* Compact Cell Shift Items */
.sched-cell-item {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    background: #eff6ff;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.15rem;
    text-align: left;
}
body.dark-mode .sched-cell-item {
    background: #1e3a8a;
    color: #93c5fd;
    border-left-color: #60a5fa;
}
.sched-cell-item.alert-item {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}
body.dark-mode .sched-cell-item.alert-item {
    background: #7f1d1d;
    color: #fca5a5;
    border-left-color: #f87171;
}

/* Week View Columns */
.sched-week-columns {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.sched-week-column {
    flex: 1;
    min-width: 160px;
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-sizing: border-box;
}
body.dark-mode .sched-week-column {
    background: #0f172a;
    border-color: #334155;
}
.sched-week-col-header {
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-dark, #1e293b);
    text-align: center;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    padding-bottom: 0.35rem;
}
body.dark-mode .sched-week-col-header {
    color: #f1f5f9;
    border-color: #334155;
}

/* Checklist Configuration Editor Styles */
.config-category-card {
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}
body.dark-mode .config-category-card {
    background: #0f172a;
    border-color: #334155;
}
.config-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}
body.dark-mode .config-category-header {
    border-color: #334155;
}
.config-category-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-dark, #1e293b);
}
body.dark-mode .config-category-title {
    color: #f1f5f9;
}
.config-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.config-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}
body.dark-mode .config-item-row {
    background: #1e293b;
    border-color: #334155;
}
.config-item-text {
    font-size: 0.8rem;
    color: #334155;
}
body.dark-mode .config-item-text {
    color: #cbd5e1;
}
.config-delete-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.2rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.config-delete-btn:hover {
    background: #fee2e2;
}
body.dark-mode .config-delete-btn:hover {
    background: #7f1d1d;
}

.audit-template-tag {
    font-size: 0.65rem;
    background-color: #e2e8f0;
    color: #475569;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-weight: 700;
}
body.dark-mode .audit-template-tag {
    background-color: #334155;
    color: #cbd5e1;
}

.audit-remove-section-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s;
}
.audit-remove-section-btn:hover {
    background: #fee2e2;
    border-color: #fcd34d;
}
body.dark-mode .audit-remove-section-btn:hover {
    background: #7f1d1d;
    border-color: #ef4444;
}





