.side-nav .nav-group-label{padding:8px 13px 3px;font-size:11px;letter-spacing:.04em;color:var(--muted);font-weight:400}.side-nav .nav-group-divider{border-top:1px solid var(--line);margin-top:12px;padding-top:16px}.side-nav .nav-account{padding-top:10px}.workflow-overview-link{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:15px 18px;margin:0 0 20px;border:1px solid var(--line);border-radius:12px;background:var(--card,#fff);color:var(--ink,#173957);font-size:14px;text-align:left}.workflow-overview-link>span:last-child{font-size:12px;color:var(--muted)}.workflow-filter-controls{display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(160px,1fr);gap:14px;align-items:end}.workflow-filter-controls label{display:grid;gap:8px;margin:0;min-width:0}.workflow-filter-controls input,.workflow-filter-controls select{width:100%;min-width:0;height:46px;margin:0}.workflow-date-buttons{display:flex;gap:8px;height:46px}.workflow-date-buttons button{margin:0;min-width:60px}.workflow-counts{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.workflow-counts button{display:inline-flex;align-items:baseline;gap:6px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);padding:9px 13px;font-size:13px;line-height:1.5}.workflow-counts button.on{color:var(--ink,#173957);background:#edf2f6;border-color:#b7cbd9}.workflow-counts b{font-size:19px;font-weight:500;font-variant-numeric:tabular-nums}.workflow-filters{margin-bottom:18px}.workflow-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:14px}.workflow-table th{font-weight:400;color:var(--muted);background:#f5f7f9;padding:15px 12px}.workflow-table td{padding:22px 12px;text-align:center;vertical-align:middle;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.workflow-table tr:last-child td{border-bottom:0}.workflow-table th:nth-child(1){width:18%}.workflow-table th:nth-child(2){width:32%}.workflow-table small{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.6}.workflow-own{display:block;margin-top:7px;font-size:11px;color:var(--muted)}.workflow-status{display:grid;justify-items:center;gap:6px}.workflow-pill{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 12px;border-radius:7px;background:#f0f2f4;color:#667682;font-size:13px;line-height:1.5;white-space:nowrap}.workflow-pill.done{background:#e7f1ed;color:#3f7163}.workflow-pill.waiting{background:#f7eee5;color:#986b37}.workflow-status time{font-size:11px;color:var(--muted);line-height:1.6}.workflow-table .notice-row-action{display:grid;justify-items:center;gap:6px}.workflow-table .notice-row-action small{margin:0}.workflow-table .btn{font-size:13px;padding:10px 14px}.workflow-table-card{overflow:hidden}html[data-theme=dark] .workflow-overview-link{background:#1c2934}html[data-theme=dark] .workflow-table th,html[data-theme=dark] .workflow-counts button.on{background:#263645}html[data-theme=dark] .workflow-pill{background:#263645;color:#b8c7d2}html[data-theme=dark] .workflow-pill.done{background:#263e38;color:#b5d9c9}html[data-theme=dark] .workflow-pill.waiting{background:#493a2c;color:#e1c298}
@media(max-width:650px){.workflow-filter-controls{grid-template-columns:minmax(0,1fr) auto;gap:12px}.workflow-filter-controls label:last-child{grid-column:1/-1}.workflow-date-buttons{gap:6px}.workflow-date-buttons button{min-width:48px;padding:10px}.workflow-counts{gap:7px;margin-top:16px}.workflow-counts button{padding:8px 10px;gap:4px;font-size:12px}.workflow-counts b{font-size:18px}.workflow-table-card{padding:0 16px}.workflow-table thead{display:none}.workflow-table,.workflow-table tbody{display:block}.workflow-table tr{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px;padding:20px 0;border-bottom:1px solid var(--line)}.workflow-table tr:last-child{border-bottom:0}.workflow-table td{display:grid;align-content:start;justify-items:start;gap:8px;text-align:left;padding:0;border:0;min-width:0}.workflow-table td:before{content:attr(data-label);font-size:11px;color:var(--muted);line-height:1.4}.workflow-table td small,.workflow-own{margin:0}.workflow-table td:nth-child(2){text-align:right;justify-items:end}.workflow-status,.workflow-table .notice-row-action{justify-items:start}.workflow-table td:last-child{justify-items:end;text-align:right}.workflow-table td:last-child .workflow-status{justify-items:end}.workflow-overview-link{padding:13px 15px}}
.history-filters{margin-bottom:18px}.history-filter-grid{display:grid;grid-template-columns:minmax(130px,1fr) minmax(150px,1fr) minmax(190px,1.5fr) minmax(130px,1fr);gap:16px;align-items:end}.history-filter-grid label{display:grid;gap:9px;min-width:0;margin:0}.history-filter-grid input,.history-filter-grid select{width:100%;min-width:0;height:46px;margin:0}.history-filter-footer{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:12px;color:var(--muted);font-size:13px}.history-filter-footer .text-btn{margin:0;padding:6px 0}.staff-directory-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.staff-directory-head small{white-space:nowrap;color:var(--muted)}.staff-directory-table{width:100%;table-layout:fixed;min-width:0!important}.staff-directory-table th,.staff-directory-table td{padding:18px 10px;text-align:center;vertical-align:middle;overflow-wrap:anywhere}.staff-directory-table th:first-child,.staff-directory-table td:first-child{width:36px;padding:10px 4px}.staff-directory-table th:nth-child(2){width:17%}.staff-directory-table th:nth-child(3){width:24%}.staff-directory-table th:nth-child(4),.staff-directory-table th:nth-child(5){width:8%}.staff-directory-table th:nth-child(6){width:12%}.staff-directory-table small{display:block;margin-top:6px;font-size:11px;line-height:1.5}.staff-directory-table input[type=checkbox]{width:17px;height:17px;margin:0;accent-color:#173957;vertical-align:middle}.staff-person{display:flex;align-items:center;justify-content:flex-start;gap:10px;text-align:left}.staff-person .avatar{flex-shrink:0;width:34px;height:34px}.staff-management-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.staff-management-actions .btn{margin:0;padding:9px 11px;font-size:12px;white-space:nowrap}.staff-directory .table-scroll{overflow:visible}.staff-directory .segmented button{white-space:nowrap}.staff-directory .btn:disabled{opacity:.4;cursor:default}
@media(max-width:900px){.history-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-directory-table th,.staff-directory-table td{padding:16px 6px}.staff-person{gap:7px}.staff-person .avatar{display:none}}
@media(max-width:650px){.history-filter-grid{gap:14px 12px}.history-search-label{grid-column:1/-1}.history-filter-grid label:last-child:nth-child(4){grid-column:1/-1}.staff-directory-head{gap:10px;flex-wrap:wrap;margin-bottom:8px}.staff-directory-table,.staff-directory-table tbody{display:block}.staff-directory-table thead{display:none}.staff-directory-table tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;padding:22px 0 22px 28px;border-bottom:1px solid var(--line)}.staff-directory-table tr:last-child{border-bottom:0}.staff-directory-table td{display:block;padding:0!important;width:auto!important;min-width:0;text-align:left;border:0!important}.staff-directory-table td:first-child{position:absolute;left:0;top:25px}.staff-directory-table td:nth-child(2){grid-column:1}.staff-directory-table td:nth-child(3){grid-column:1/-1;grid-row:2}.staff-directory-table td:nth-child(4){grid-column:1;grid-row:3;color:var(--muted);font-size:12px}.staff-directory-table td:nth-child(5){grid-column:2;grid-row:1;font-size:12px;text-align:right}.staff-directory-table td:nth-child(6){grid-column:2;grid-row:3;text-align:right}.staff-directory-table td:nth-child(7){grid-column:1/-1;grid-row:4}.staff-directory-table td:before{display:none!important}.staff-management-actions{justify-content:flex-start;gap:8px}.staff-person .avatar{display:flex}.staff-directory-table small{font-size:12px}.staff-directory-table td:nth-child(7)>.muted{font-size:12px}.staff-directory .segmented button{padding:9px 12px}.history-table{min-width:0!important}}
.history-filter-footer .btn.text-btn{background:transparent;color:var(--muted);border:1px solid var(--line);padding:7px 14px;min-width:70px;min-height:36px;white-space:nowrap}.staff-directory-table .staff-person{justify-content:flex-start;flex-wrap:nowrap}
@media(max-width:650px){.staff-directory-table tr{padding-left:38px;padding-right:14px}.staff-directory-table td:first-child{left:12px}.staff-directory-table :is(th,td){text-align:left!important}.staff-directory-table td:nth-child(5),.staff-directory-table td:nth-child(6){text-align:right!important}}
.staff-directory .staff-directory-table .staff-person{justify-content:flex-start;flex-wrap:nowrap}
@media(max-width:650px){.staff-directory .staff-directory-table tr{padding:22px 14px 22px 38px}.staff-directory .staff-directory-table td:first-child{left:12px}.staff-directory .staff-directory-table td{text-align:left!important}.staff-directory .staff-directory-table td:nth-child(5),.staff-directory .staff-directory-table td:nth-child(6){text-align:right!important}}
/* Account entry and appearance settings share the same geometry on desktop and phones. */
.sidebar>.profile{margin-top:18px;display:flex;align-items:center;gap:8px;padding:12px 10px}.profile-account-link{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:left;padding:3px 0;border-radius:7px}.profile-account-link>span{min-width:0;display:grid;gap:2px}.profile-account-link b{font-size:14px;line-height:1.5}.profile-account-link small{font-size:12px;color:var(--muted)}.profile-account-link .staff-avatar{flex-shrink:0;width:36px;height:36px}.profile .logout{flex-shrink:0;margin:0}.profile-account-link:hover{background:var(--blue)}.account-display-settings{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.account-display-settings h3{margin:0 0 14px;font-size:16px}.account-theme-row{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px}.account-theme-row .theme-switch{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:10px 15px;border:1px solid var(--line);border-radius:9px;width:auto;min-height:42px;white-space:nowrap}.staff-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Keep navigation scrollable without showing a scrollbar. */
.sidebar,.sidebar>.side-nav{scrollbar-width:none;-ms-overflow-style:none}
.sidebar::-webkit-scrollbar,.sidebar>.side-nav::-webkit-scrollbar{display:none;width:0;height:0}


/* Instructor identity stays consistent across calendars, filters and assignment boards. */
.instructor-owner{--schedule-bg:#0d2f62;--schedule-ink:#fff;--schedule-edge:#0d2f62}
.instructor-sky{--schedule-bg:#e1f1fc;--schedule-ink:#245875;--schedule-edge:#78b7db}
.instructor-yellow{--schedule-bg:#fbf3d8;--schedule-ink:#715625;--schedule-edge:#cfaa50}
.instructor-pink{--schedule-bg:#f9e9ee;--schedule-ink:#824b60;--schedule-edge:#cf8ea7}
.instructor-unassigned{--schedule-bg:#fff0ee;--schedule-ink:#994942;--schedule-edge:#d77b71}
html .calendar .cal-event[class*="instructor-"],html .board-lesson[class*="instructor-"]{background:var(--schedule-bg);color:var(--schedule-ink);border-left-color:var(--schedule-edge)}
html .calendar .cal-event[class*="instructor-"] .cal-instructor{color:inherit}
.calendar-legend{flex-wrap:wrap;row-gap:7px}.instructor-dot{background:var(--schedule-edge)}
html[data-theme=dark] .instructor-owner{--schedule-bg:#f3f6fb;--schedule-ink:#0d2f62;--schedule-edge:#f3f6fb}
html[data-theme=dark] .instructor-sky{--schedule-bg:#243f51;--schedule-ink:#c4e5fa;--schedule-edge:#79b9dc}
html[data-theme=dark] .instructor-yellow{--schedule-bg:#403923;--schedule-ink:#f1dfa9;--schedule-edge:#c9ab5f}
html[data-theme=dark] .instructor-pink{--schedule-bg:#44303b;--schedule-ink:#f2c9db;--schedule-edge:#d192ae}
html[data-theme=dark] .instructor-unassigned{--schedule-bg:#442f34;--schedule-ink:#edb9b3;--schedule-edge:#ae7776}
