:root{--ink-900:#0f2331;--ink-700:#1f3f56;--ink-500:#315f7f;--paper-100:#f3f7fa;--paper-50:#fbfdff;--accent-600:#cb5a2d;--success-600:#1f7a59;--warn-600:#9b5f00;--danger-600:#9f2738;--border:#d6e2ea}html,body{max-width:100vw;overflow-x:hidden}body{color:var(--ink-900);background:linear-gradient(120deg, var(--paper-100), #eef5ff 45%, #f8fbff);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:Segoe UI,Noto Sans,Tahoma,sans-serif}*{box-sizing:border-box}a{color:inherit;text-decoration:none}.app-shell{grid-template-columns:220px 1fr;min-height:100vh;display:grid}.app-sidebar{border-right:1px solid var(--border);background:radial-gradient(circle at 0 0,#f4fbff,#eaf3f8 65%,#e4eef6);height:100vh;padding:16px 12px;position:sticky;top:0}.brand h1{letter-spacing:.4px;margin:0}.brand p{color:var(--ink-500);margin:6px 0 18px;font-size:13px}.app-sidebar ul{gap:8px;margin:0;padding:0;list-style:none;display:grid}.app-sidebar a{color:var(--ink-700);background:#fff9;border:1px solid #0000;border-radius:8px;padding:10px 12px;transition:all .12s;display:block}.app-sidebar a:hover{border-color:#bfd3e2;transform:translate(2px)}.app-sidebar a.nav-active{color:#122d42;background:#dfeaf4;border-color:#9eb7cb;font-weight:700}.app-main{flex-direction:column;min-height:100vh;padding:14px 12px;display:flex}.app-topbar{justify-content:flex-end;margin-bottom:8px;display:flex}.chip{color:#8f4324;background:#ffefe8;border:1px solid #edc0ad;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:600;display:inline-block}.chip-role{color:#236046;background:#eaf8f0;border-color:#b7d5c2}.app-content{flex:1;min-height:0;margin-top:16px}.grid{gap:12px;display:grid}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{border:1px solid var(--border);background:#ffffffd6;border-radius:12px;padding:14px}.card h3{margin:0 0 8px;font-size:15px}.metric{color:var(--ink-700);font-size:30px;font-weight:700}.table-wrap{border:1px solid var(--border);background:#ffffffe6;border-radius:12px;overflow-x:auto}table{border-collapse:collapse;width:100%}.fixed-table{table-layout:fixed}th,td{text-align:left;vertical-align:top;border-bottom:1px solid #e6edf2;padding:10px;font-size:14px}.fixed-table th,.fixed-table td{word-break:break-word}.fixed-table input,.fixed-table select,.fixed-table textarea{width:100%;min-width:0}.excel-wrap{height:100%;max-height:none;overflow:auto}.excel-scroll-shell{--excel-stt-width:56px;--excel-sales-width:110px;--excel-name-width:190px;grid-template-rows:14px minmax(0,1fr);gap:6px;height:100%;min-height:0;display:grid}.excel-scroll-top{border:1px solid var(--border);z-index:12;background:#edf3f8;border-radius:10px;height:14px;position:sticky;top:0;overflow:auto hidden}.excel-overview{border-collapse:separate;border-spacing:0;min-width:max-content}.excel-overview th,.excel-overview td{white-space:nowrap;border-bottom:1px solid #d9e4ed;border-right:1px solid #b8c8d6;font-size:13px}.excel-overview thead th{background:#ecf3f9}.excel-overview .course-group-head{text-align:center;background:#dfeaf4;min-width:360px;font-weight:700}.excel-overview .course-sub-head{text-align:center;background:#f3f8fc;min-width:120px;font-size:12px}.excel-overview .sticky-col{z-index:6;background:#fff;position:sticky}.excel-overview th.sticky-col{z-index:8;background:#e5eff8}.excel-overview .sticky-sales{left:var(--excel-stt-width);min-width:var(--excel-sales-width);max-width:var(--excel-sales-width)}.excel-overview .sticky-name{left:calc(var(--excel-stt-width) + var(--excel-sales-width));min-width:var(--excel-name-width);max-width:var(--excel-name-width)}.excel-overview .sticky-stt{min-width:var(--excel-stt-width);max-width:var(--excel-stt-width);text-align:center;left:0}.excel-overview .name-cell a{text-overflow:clip;white-space:nowrap;max-width:none;display:block;overflow:visible}.excel-overview thead tr:first-child th{top:0}.excel-overview thead tr:nth-child(2) th{z-index:7;top:41px}.excel-overview tbody tr:hover td{background:#f8fbff}.excel-overview tbody tr:hover td.sticky-col{background:#eef5fb}.excel-overview .alert-head{color:#7b1d2b;background:#ffe7ea;font-weight:800}.excel-overview .alert-row td{background:#fff8f8}.excel-overview .alert-row td.sticky-col{background:#ffeef0}.excel-overview .alert-cell{color:#7d1526;background:#ffe9ed;font-weight:700}.excel-overview .alert-warning{font-size:14px}.excel-overview .alert-employee a,.excel-overview .alert-employee{color:#7c1423;font-weight:800}.excel-head-cell{justify-content:space-between;align-items:center;gap:4px;width:100%;display:inline-flex}.excel-filter-anchor{display:inline-flex;position:relative}.excel-filter-trigger{color:#2f4a60;background:#f7fbff;border:1px solid #b8c8d6;border-radius:4px;min-height:16px;padding:0 4px;font-size:11px;line-height:16px}.excel-filter-trigger.is-active{color:#10314a;background:#dcebf6;border-color:#567894}.excel-filter-menu{z-index:50;background:#fff;border:1px solid #b8c8d6;border-radius:8px;width:220px;padding:8px;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 10px 24px #13273733}.excel-filter-search{width:100%;margin-bottom:6px;padding:6px 8px;font-size:12px}.excel-filter-actions{gap:6px;margin-bottom:6px;display:flex}.excel-filter-actions .ghost-button{padding:4px 6px;font-size:11px}.excel-filter-options{border:1px solid #d4e1eb;border-radius:6px;max-height:220px;padding:4px;overflow:auto}.excel-filter-date-tree{max-height:280px}.excel-filter-option{align-items:center;gap:6px;padding:3px 2px;font-size:12px;display:flex}.excel-filter-option-all{margin-bottom:6px}.excel-filter-year-block{border-bottom:1px dashed #dce6ee;margin-bottom:4px;padding-bottom:4px}.excel-filter-year-block:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}.excel-filter-year{font-weight:600}.excel-filter-month-list{padding-left:16px}.excel-filter-month{color:#29455c;font-size:11px}.excel-filter-option-blank{border-top:1px solid #e2eaf1;margin-top:6px;padding-top:6px}.excel-date-button{text-align:left;width:100%;color:inherit;cursor:pointer;background:0 0;border:0;padding:0}.excel-date-input{border:1px solid #8fb0c7;border-radius:6px;width:100%;min-width:118px;padding:4px 6px;font-size:12px}.employees-page{grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0}th{z-index:1;background:#f4f9fc;position:sticky;top:0}.status-badge{border-radius:999px;padding:4px 8px;font-size:12px;font-weight:600;display:inline-block}.status-overdue{color:var(--danger-600);background:#fbe4e8}.status-due_soon{color:var(--warn-600);background:#fff2d8}.status-valid{color:var(--success-600);background:#e4f5ee}.status-missing,.status-na,.status-exempted,.status-permanent{color:#466075;background:#edf2f6}.page-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.page-head h1{margin:0;font-size:24px}.muted{color:#516c80;font-size:14px}input,select,button,textarea{font:inherit}input,select,textarea{background:#fff;border:1px solid #bfd0de;border-radius:8px;padding:8px 10px}button{color:#fff;cursor:pointer;background:#24495f;border:1px solid #36566f;border-radius:8px;padding:8px 12px}button:hover{background:#1d3d4f}.inline-form{align-items:center;gap:8px;display:flex}.form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.split-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.danger-button{background:#9f2738;border-color:#8d2938}.danger-button:hover{background:#7f1f2d}.ghost-button{color:#1f3f56;background:#eef5fa;border:1px solid #9ab1c4}.ghost-button:hover{background:#e3eef6}.assignment-list{border:1px solid var(--border);background:#ffffffd1;border-radius:10px;gap:8px;max-height:340px;padding:10px;display:grid;overflow:auto}.assignment-item{border-bottom:1px dashed #d7e4ed;justify-content:space-between;align-items:center;gap:12px;padding-bottom:6px;display:flex}.course-tags{flex-wrap:wrap;gap:6px;display:flex}.tag{background:#f5fbff;border:1px solid #c3d6e4;border-radius:999px;padding:4px 8px;font-size:12px;display:inline-block}.clickable-row{cursor:pointer}.clickable-row:hover{background:#f5f9fc}.selected-row{background:#e9f2f8}.modal-backdrop{z-index:30;background:#0c19226b;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-card{border:1px solid var(--border);background:#fff;border-radius:12px;width:min(860px,100%);padding:14px;box-shadow:0 16px 48px #1625303d}.modal-actions{gap:8px;margin-top:12px;display:flex}.login-shell{place-items:center;min-height:100vh;padding:16px;display:grid}.login-card{border:1px solid var(--border);background:#ffffffeb;border-radius:12px;gap:10px;width:min(460px,100%);padding:18px;display:grid}.login-card h1,.login-card h2{margin:0}.login-error{color:var(--danger-600);margin:0;font-weight:600}.login-hints{color:#315f7f;gap:4px;font-size:12px;display:grid}.user-portal{align-content:start;gap:12px;min-height:100vh;padding:16px;display:grid}.user-portal-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}@media (max-width:1050px){.app-shell{grid-template-columns:1fr}.app-sidebar{height:auto;position:static}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:680px){.grid-4{grid-template-columns:1fr}.page-head,.user-portal-head{flex-direction:column;align-items:flex-start}.form-grid,.split-grid{grid-template-columns:1fr}}
