/* DersTime v1.18.15 - solver alternatives, dashboard views, duty planner, report editor */
.overview-view-toggle{display:inline-flex;gap:4px;padding:4px;border:1px solid #e4e7ef;border-radius:12px;background:#f7f8fb}.overview-view-toggle button{border:0;background:transparent;padding:8px 10px;border-radius:9px;font-weight:800;color:#657087;cursor:pointer}.overview-view-toggle button.active{background:#fff;color:#35358f;box-shadow:0 3px 12px rgba(34,42,72,.1)}
.workspace-start-v115.overview-view-list{grid-template-columns:1fr;gap:12px}.workspace-start-v115.overview-view-list .workspace-start-main{padding:20px 22px}.workspace-start-v115.overview-view-list .workspace-start-main>h2{font-size:24px;margin-bottom:6px}.workspace-start-v115.overview-view-list .workspace-start-main>p{max-width:none;margin-bottom:12px}.workspace-start-v115.overview-view-list .workspace-health-card{display:grid;grid-template-columns:auto 1fr;align-items:center;padding:14px 18px}.workspace-start-v115.overview-view-list .health-ring{width:86px;height:86px}.workspace-start-v115.overview-view-list .health-list{grid-template-columns:repeat(4,minmax(0,1fr));display:grid;gap:8px}.workspace-start-v115.overview-view-list .workflow-path-grid{grid-template-columns:1fr}.workspace-start-v115.overview-view-list .workflow-path-card{min-height:56px;padding:9px 12px;grid-template-columns:40px minmax(0,1fr) 30px}.workspace-start-v115.overview-view-list .workflow-path-card em{width:34px;height:34px}
.solver-alternatives-bar{margin:10px 0 12px;padding:12px;border:1px solid #e0e4f0;border-radius:16px;background:linear-gradient(135deg,#fbfbff,#f6f8ff)}.solver-alternatives-head{display:flex;align-items:center;gap:10px;margin-bottom:9px}.solver-alternatives-head>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#e8e7ff;color:#5550c8}.solver-alternatives-head b,.solver-alternatives-head small{display:block}.solver-alternatives-head small{margin-top:2px;color:#7a8497;font-size:11px}.solver-alternative-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.solver-alternative-card{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #e1e4eb;background:#fff;padding:9px;border-radius:12px;text-align:left;cursor:pointer}.solver-alternative-card>span{width:28px;height:28px;border-radius:9px;background:#f0f2f7;display:grid;place-items:center;font-weight:900}.solver-alternative-card b,.solver-alternative-card small{display:block}.solver-alternative-card b{font-size:12px}.solver-alternative-card small{font-size:9px;color:#7b8495;margin-top:2px}.solver-alternative-card em{font-style:normal;font-weight:900;color:#6b7280}.solver-alternative-card.complete{border-color:#b9e8d5;background:#f5fffa}.solver-alternative-card.complete>span{background:#dff7eb;color:#087f5b}.solver-alternative-card.complete em{color:#087f5b}
.duty-dashboard{display:grid;gap:14px}.duty-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px 24px;border:1px solid #e2e6ee;border-radius:22px;background:linear-gradient(135deg,#fff,#f6f8ff);box-shadow:0 10px 28px rgba(42,49,82,.05)}.duty-hero h2{margin:5px 0 7px;font-size:25px;line-height:1.18}.duty-hero p{margin:0;color:#697389;max-width:760px}.duty-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.duty-config-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:14px}.duty-panel{border:1px solid #e2e5ed;border-radius:18px;background:#fff;padding:16px;box-shadow:0 7px 22px rgba(35,44,75,.035)}.duty-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.duty-panel>header b,.duty-panel>header small{display:block}.duty-panel>header small{color:#7b8495;margin-top:3px}.duty-date-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.duty-date-grid label{font-size:11px;font-weight:800;color:#596174}.duty-date-grid input,.duty-date-grid select,.duty-area-row input{width:100%;margin-top:5px;border:1px solid #dfe3eb;border-radius:10px;padding:9px 10px;background:#fff}.duty-area-list{display:grid;gap:8px}.duty-area-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 36px;gap:8px;align-items:end}.duty-area-row label{font-size:10px;color:#70798b}.duty-teacher-list{display:grid;gap:7px;max-height:330px;overflow:auto}.duty-teacher-row{display:grid;grid-template-columns:12px minmax(180px,1fr) auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid #e8eaf0;border-radius:12px}.duty-teacher-row .teacher-dot{width:10px;height:28px;border-radius:99px}.duty-teacher-row b,.duty-teacher-row small{display:block}.duty-teacher-row small{color:#80889a}.duty-weekdays{display:flex;gap:4px}.duty-weekdays input{position:absolute;opacity:0}.duty-weekdays span{display:block;padding:6px 7px;border:1px solid #e1e4eb;border-radius:8px;font-size:9px;font-weight:850;color:#687286;cursor:pointer}.duty-weekdays input:checked+span{background:#fff0f2;border-color:#f1b8c1;color:#b4233a}.duty-table-wrap{overflow:auto;max-height:520px;border:1px solid #e3e6ed;border-radius:12px}.duty-table-wrap table{width:100%;border-collapse:collapse;min-width:720px}.duty-table-wrap th,.duty-table-wrap td{padding:9px 10px;border-bottom:1px solid #e8eaf0;border-right:1px solid #eef0f4;vertical-align:top;font-size:10px}.duty-table-wrap thead th{position:sticky;top:0;background:#f7f8fb;z-index:2}.duty-table-wrap tbody th{background:#fbfcfe;white-space:nowrap;text-align:left}.duty-assigned-person{display:block;padding:4px 6px;margin:2px 0;border-radius:7px;background:#eef1ff;color:#4743a5;font-weight:800}.duty-empty{color:#a0a7b5}.duty-picker-dialog{width:min(760px,calc(100vw - 28px));padding:24px}.duty-picker-dialog h2{margin:5px 0 7px}.duty-picker-dialog>p{color:#70798d}.duty-teacher-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:430px;overflow:auto;margin:12px 0}.duty-teacher-picker label{display:grid;grid-template-columns:20px 10px minmax(0,1fr);align-items:center;gap:8px;padding:9px;border:1px solid #e5e8ef;border-radius:11px}.duty-teacher-picker label>span{width:8px;height:28px;border-radius:8px;background:var(--teacher-color)}.duty-teacher-picker b,.duty-teacher-picker small{display:block}.duty-teacher-picker small{color:#81899a}
.report-official-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.report-official-card{border:1px solid #e1e5ed;border-radius:14px;background:#fff;padding:13px;display:flex;flex-direction:column;gap:8px}.report-official-card span{font-size:9px;font-weight:900;letter-spacing:.08em;color:#6c65c7}.report-official-card h4{font-size:13px;margin:0}.report-official-card p{font-size:10px;line-height:1.45;color:#737c8d;margin:0;flex:1}.report-layout-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.report-layout-editor label{font-size:10px;font-weight:800;color:#60697a}.report-layout-editor select,.report-layout-editor input{width:100%;margin-top:5px;padding:9px;border:1px solid #dfe3eb;border-radius:10px;background:#fff}
@media(max-width:1100px){.solver-alternative-list{grid-template-columns:repeat(3,minmax(0,1fr))}.report-official-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.duty-config-grid{grid-template-columns:1fr}.duty-date-grid{grid-template-columns:1fr 1fr}.duty-weekdays{flex-wrap:wrap}}
@media(max-width:720px){.overview-view-toggle{width:100%}.overview-view-toggle button{flex:1}.workspace-start-v115.overview-view-list .health-list{grid-template-columns:1fr 1fr}.solver-alternative-list{grid-template-columns:1fr}.duty-hero{flex-direction:column;align-items:flex-start}.duty-hero-actions{justify-content:flex-start}.duty-date-grid,.duty-teacher-picker,.report-official-grid,.report-layout-editor{grid-template-columns:1fr}.duty-teacher-row{grid-template-columns:10px 1fr}.duty-weekdays{grid-column:1/-1}}

/* Main dashboard: card / list / compact list views */
.dashboard-v2{--dash-panel:#fff;--dash-line:#e4e7ef;--dash-muted:#70798c}.dashboard-view-toolbar{position:sticky;top:74px;z-index:16;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0 14px;padding:10px 12px 10px 14px;border:1px solid var(--dash-line);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 10px 30px rgba(38,45,75,.055);backdrop-filter:blur(14px)}.dashboard-view-copy{display:flex;align-items:center;gap:10px;min-width:0}.dashboard-view-copy>span{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:#eeefff;color:#504bc2;font-weight:900}.dashboard-view-copy b,.dashboard-view-copy small{display:block}.dashboard-view-copy b{font-size:12px;color:#31384d}.dashboard-view-copy small{margin-top:2px;font-size:9px;color:var(--dash-muted)}.dashboard-view-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid #e5e7ee;border-radius:13px;background:#f6f7fa}.dashboard-view-switch button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:9px;background:transparent;padding:7px 10px;color:#697286;font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap}.dashboard-view-switch button>span{font-size:13px}.dashboard-view-switch button.active{background:#fff;color:#4440aa;box-shadow:0 3px 12px rgba(33,40,72,.1)}
.dashboard-v2[data-project-view="list"] .project-grid-v2,.dashboard-v2[data-project-view="compact"] .project-grid-v2{grid-template-columns:1fr;gap:9px}.dashboard-v2[data-project-view="list"] .project-card{display:grid;grid-template-columns:92px minmax(210px,1.35fr) minmax(230px,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:16px;row-gap:5px;min-height:92px;padding:13px 15px;border-radius:18px}.dashboard-v2[data-project-view="list"] .project-card .project-top{grid-row:1/3;grid-column:1;justify-content:flex-start;align-self:stretch;flex-direction:column;align-items:flex-start;gap:9px;padding:2px 0}.dashboard-v2[data-project-view="list"] .project-card-title-row{grid-column:2;grid-row:1;min-width:0}.dashboard-v2[data-project-view="list"] .project-card>p{grid-column:2;grid-row:2;margin:0}.dashboard-v2[data-project-view="list"] .project-card .project-integration-badge{grid-column:3;grid-row:1;margin:0;justify-self:start}.dashboard-v2[data-project-view="list"] .project-card .project-stats{grid-column:3;grid-row:2;margin:0;display:flex;gap:7px;flex-wrap:wrap}.dashboard-v2[data-project-view="list"] .project-card .card-actions{grid-column:4;grid-row:1/3;align-self:center;margin:0;justify-content:flex-end;min-width:238px}.dashboard-v2[data-project-view="list"] .project-card:hover{transform:translateY(-1px)}
.dashboard-v2[data-project-view="compact"] .institution-section{padding-bottom:14px}.dashboard-v2[data-project-view="compact"] .project-card{display:grid;grid-template-columns:46px minmax(220px,1.4fr) minmax(210px,.9fr) minmax(220px,1fr) auto;align-items:center;gap:10px;min-height:56px;padding:8px 11px;border-radius:15px}.dashboard-v2[data-project-view="compact"] .project-card .project-top{grid-column:1;margin:0;display:grid;place-items:center}.dashboard-v2[data-project-view="compact"] .project-card .project-top .badge{display:none}.dashboard-v2[data-project-view="compact"] .project-card .project-icon{width:34px;height:34px}.dashboard-v2[data-project-view="compact"] .project-card-title-row{grid-column:2;min-width:0}.dashboard-v2[data-project-view="compact"] .project-card-title-row h3{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-v2[data-project-view="compact"] .project-card>p{grid-column:3;margin:0;font-size:9px}.dashboard-v2[data-project-view="compact"] .project-card .project-integration-badge{display:none}.dashboard-v2[data-project-view="compact"] .project-card .project-stats{grid-column:4;margin:0;display:flex;gap:6px}.dashboard-v2[data-project-view="compact"] .project-card .project-stats span{padding:4px 7px;border-radius:8px;font-size:9px}.dashboard-v2[data-project-view="compact"] .project-card .card-actions{grid-column:5;margin:0;gap:5px}.dashboard-v2[data-project-view="compact"] .project-card .card-actions .btn{padding:7px 9px}.dashboard-v2[data-project-view="compact"] .project-card:hover{transform:none;border-color:#cbcffa;background:#fbfbff}
/* Report title editor fields stay compact even with six official output names. */
.report-title-editor{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #e5e8ef;border-radius:14px;background:#fafbfe}.report-title-editor>div{grid-column:1/-1;display:flex;align-items:center;gap:8px}.report-title-editor>div span{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#ececff;color:#514bc6}.report-title-editor>div b,.report-title-editor>div small{display:block}.report-title-editor>div small{font-size:9px;color:#7a8395;margin-top:1px}.report-title-editor label{min-width:0}
@media(max-width:980px){.dashboard-v2[data-project-view="list"] .project-card{grid-template-columns:64px 1fr auto}.dashboard-v2[data-project-view="list"] .project-card .project-top{grid-column:1}.dashboard-v2[data-project-view="list"] .project-card-title-row,.dashboard-v2[data-project-view="list"] .project-card>p{grid-column:2}.dashboard-v2[data-project-view="list"] .project-card .project-stats,.dashboard-v2[data-project-view="list"] .project-card .project-integration-badge{grid-column:2}.dashboard-v2[data-project-view="list"] .project-card .card-actions{grid-column:3;grid-row:1/4;min-width:0}.dashboard-v2[data-project-view="compact"] .project-card{grid-template-columns:42px 1fr auto}.dashboard-v2[data-project-view="compact"] .project-card>p,.dashboard-v2[data-project-view="compact"] .project-card .project-stats{display:none}.dashboard-v2[data-project-view="compact"] .project-card .card-actions{grid-column:3}.report-title-editor{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.dashboard-view-toolbar{position:static;align-items:stretch;flex-direction:column}.dashboard-view-switch{display:grid;grid-template-columns:repeat(3,1fr)}.dashboard-view-switch button{justify-content:center;padding:8px 5px}.dashboard-view-copy small{line-height:1.35}.dashboard-v2[data-project-view="list"] .project-card,.dashboard-v2[data-project-view="compact"] .project-card{display:grid;grid-template-columns:42px minmax(0,1fr);padding:10px 11px}.dashboard-v2[data-project-view="list"] .project-card .project-top,.dashboard-v2[data-project-view="compact"] .project-card .project-top{grid-column:1;grid-row:1}.dashboard-v2[data-project-view="list"] .project-card-title-row,.dashboard-v2[data-project-view="compact"] .project-card-title-row{grid-column:2;grid-row:1}.dashboard-v2[data-project-view="list"] .project-card>p,.dashboard-v2[data-project-view="list"] .project-card .project-stats{grid-column:1/-1;grid-row:auto}.dashboard-v2[data-project-view="list"] .project-card .project-integration-badge{grid-column:1/-1;grid-row:auto}.dashboard-v2[data-project-view="list"] .project-card .card-actions,.dashboard-v2[data-project-view="compact"] .project-card .card-actions{grid-column:1/-1;grid-row:auto;justify-content:flex-start}.dashboard-v2[data-project-view="compact"] .project-card>p,.dashboard-v2[data-project-view="compact"] .project-card .project-stats{display:none}.report-title-editor{grid-template-columns:1fr}}
