/* Theme choice is shared with Django's built-in administration theme. */
.theme-switch{position:fixed;right:20px;bottom:18px;z-index:20;box-shadow:0 3px 14px #0002}
body{padding-bottom:64px}
.upcoming{background:#ede9fb;color:#67449e}
.closed{background:#eef1f3;color:#52616b}
[data-theme=dark]{--ink:#e3eaf3;--muted:#b0bdcc;--paper:#0c1420;--line:#344253;--green:#7bd6bd;--dark:#111d2b;--white:#172333;color-scheme:dark}
[data-theme=light]{color-scheme:light}
[data-theme=dark] .card,[data-theme=dark] .secondary{background:#172333;border-color:var(--line);color:var(--ink)}
[data-theme=dark] .stat:first-child{background:#19372f;border-color:#345447}
[data-theme=dark] th{background:#1e2b3c;color:var(--muted)}
[data-theme=dark] td,[data-theme=dark] th{border-color:var(--line)}
[data-theme=dark] tbody tr:hover{background:#1d2d40}
[data-theme=dark] input:not([type=checkbox]):not([type=radio]),[data-theme=dark] select,[data-theme=dark] textarea{background:#101b29;color:var(--ink);border-color:#506278}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#a2afbe;opacity:1}
[data-theme=dark] .button:not(.secondary):not(.danger){background:#24705e;color:#fff}
[data-theme=dark] .button.danger{background:#963d43;color:#fff}
[data-theme=dark] .badge{background:#304051;color:#e3eaf3}
[data-theme=dark] .approved,[data-theme=dark] .completed,[data-theme=dark] .P,[data-theme=dark] .active{background:#214637;color:#adedd0}
[data-theme=dark] .pending,[data-theme=dark] .returned,[data-theme=dark] .hold,[data-theme=dark] .L{background:#4d3c20;color:#ffe0a0}
[data-theme=dark] .running,[data-theme=dark] .software-icon{background:#253e64;color:#c4dcff}
[data-theme=dark] .upcoming{background:#3b2f57;color:#e0cbff}
[data-theme=dark] .rejected,[data-theme=dark] .dropout,[data-theme=dark] .A{background:#542c32;color:#ffc4c4}
[data-theme=dark] .danger-text{color:#ffa8a2}
[data-theme=dark] .errorlist,[data-theme=dark] .message.error{background:#44272e;border-color:#794a51;color:#ffccc5}
[data-theme=dark] .message{background:#1b372d;border-color:#385a4a;color:#d1ebdf}
[data-theme=dark] .note{background:#433721;color:#f1dfba}
[data-theme=dark] .auth-main{background:var(--paper)}
[data-theme=dark] .sidebar nav>a:hover{background:#263a4e}
[data-theme=dark] .attendance thead th{background:#785019;color:#fff0d5;border-color:#9b793e}
[data-theme=dark] .attendance tbody td{background:#45391e;color:#f4e8c6;border-color:#706447}
[data-theme=dark] .attendance tbody tr:nth-child(even) td{background:#53411c}
[data-theme=dark] .attendance .date-cell{background:#37404c!important;color:#edf3f9}
[data-theme=dark] .attendance td.mark{background:#263240;color:#f1f5fa}
[data-theme=dark] .attendance td.mark-P{background:#254b35;color:#dbf6df}
[data-theme=dark] .attendance td.mark-A{background:#65383d;color:#ffe3e5}
[data-theme=dark] .attendance td.mark-L{background:#284d70;color:#e1f0ff}
[data-theme=dark] .attendance select{background:#172333;color:#f2f6ff;border-color:#8d9aa8}
[data-theme=dark] .attendance select option{background:#172333;color:#f2f6ff}
.batch-roster small{white-space:normal}.batch-roster input:disabled{cursor:not-allowed}
@media print{.theme-switch{display:none}}
