.workflow-tasks-panel{flex-shrink:0;margin:4px 0 8px;border:1px solid #bfd0c7;border-radius:8px;background:#f8fbf8;padding:8px 12px}.workflow-tasks-panel summary{font-size:13px;font-weight:650;cursor:pointer}.workflow-tasks-panel>div{max-height:190px;overflow:auto}.workflow-tasks-panel h3{font-size:12px;margin:8px 0 4px}.workflow-day-tasks{margin:7px 0}.workflow-task-group{padding:5px 0}.workflow-task-group>strong{font-size:12px}.workflow-task{display:flex!important;align-items:flex-start;gap:7px;margin:6px 0!important;font-size:12px!important;line-height:1.4;overflow-wrap:anywhere}.workflow-task input,.workflow-child-card input[type=checkbox]{width:auto;flex-shrink:0;margin:2px 0}.workflow-task.done>span{text-decoration:line-through;color:#809087}.workflow-task small{font-size:10px;color:#a17235;white-space:nowrap}.workflow-dialog{width:min(680px,94vw)}.workflow-child-card{padding:12px 0;border-bottom:1px solid #d5dfda}.workflow-child-card h3{margin:3px 0 8px}.workflow-child-card input[type=number]{max-width:150px}.workflow-child-card label:has(input[type=checkbox]){display:flex;gap:8px;align-items:center}.workflow-warning{color:#986322;font-size:12px}.workflow-ok{color:#26725b}.workflow-notice{border-bottom:1px solid #dce5df;padding:12px 0}.workflow-notice.unread{border-left:3px solid #27826b;padding-left:10px}.workflow-notice time,.workflow-notice small{font-size:11px;color:#71847a}.workflow-notice p{font-size:13px;white-space:pre-wrap}.workflow-alert{display:block;text-align:left;width:100%;margin:6px 0;color:#945e1b}#workflow-bell{font-size:12px;padding:6px 9px}
/* Seven days fit the desktop viewport; cards use content height, without empty hour rows. */
.board.personal-week{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0;padding:0!important;max-width:none!important;width:100%!important;min-width:0!important;align-items:start}.personal-week>.agenda-title{grid-column:1/-1;font-size:15px;margin:0;padding:10px}.personal-week>.agenda-day{padding:8px 6px!important;border-right:1px solid #cedbd3;min-width:0;margin:0!important}.personal-week .agenda-day h3{font-size:12px;line-height:1.4;margin:0 0 9px}.personal-week .lesson{display:flex!important;flex-direction:column;align-items:flex-start;padding:7px!important;gap:4px;margin:7px 0!important;width:100%;min-width:0}.personal-week .lesson .card-name{display:block!important;font-size:12px;line-height:1.4;overflow-wrap:anywhere}.personal-week .lesson .card-time{font-size:11px;white-space:normal}.personal-week .lesson .pill{font-size:10px}.personal-week .agenda-empty{font-size:11px}.personal-week .workflow-task{font-size:11px!important}.board-wrap:has(.personal-week){width:100%!important;max-width:none!important}
/* Equal table rows with the established card colors; no time-proportional height. */
.board-wrap:has(.personal-week){overflow:auto!important;min-height:0}
/* Personal weeks use the same soft headers, ruled cells and cards as the team table. */
.board.personal-week{align-items:stretch}
.personal-week>.agenda-title{background:#f0f5f2;border-bottom:1px solid #cedbd3;color:#304f40;font-size:15px;padding:12px}
.board.personal-week>.agenda-day{display:flex;flex-direction:column;padding:0!important;border-right:1px solid #d8e2dc;border-bottom:1px solid #cedbd3}
.personal-week>.agenda-day:last-child{border-right:0}
.personal-week .agenda-day h3{display:flex;align-items:center;min-height:54px;padding:10px;margin:0;background:#f0f5f2;border-bottom:1px solid #cedbd3;color:#526e5e;font-size:12px;font-weight:650;line-height:1.4}
.personal-week .workflow-day-tasks{display:flex;flex-direction:column;gap:6px;flex:1;margin:0;padding:6px}
.personal-week .workflow-task-group{display:flex;flex-direction:column;justify-content:flex-start;gap:6px;flex:1;min-height:72px;padding:8px;background:#edf5ee;border:1px solid #d3e4d7;border-left:3px solid #79a587;border-radius:8px;color:#304f40}
.personal-week .workflow-task-group>strong{font-size:12px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}
.personal-week .workflow-task{margin:0!important;font-size:12px!important;line-height:1.45;gap:7px;flex-wrap:wrap}
.personal-week .workflow-task>span{flex:1;min-width:0}
.personal-week .workflow-task input{margin-top:2px;accent-color:#227566}
.personal-week .workflow-task.done>span{color:#71877a}
.personal-week .workflow-task small{margin-left:22px;white-space:normal}
.personal-week .agenda-empty{padding:10px;margin:0}
.personal-week .agenda-day>.lesson{width:calc(100% - 12px);margin:6px!important}
.agenda-card-list{display:flex;flex-direction:column;gap:6px;min-width:0}
.personal-week .agenda-card-list{flex:1;padding:6px}
.personal-week .agenda-card-list>.lesson{width:100%;margin:0!important}
.personal-week .agenda-card-list>.workflow-task-group{flex:initial}
.card-order-card{position:relative;cursor:grab}
.personal-week .card-order-card{padding-right:20px!important}
.card-order-card::after{content:'⠿';position:absolute;right:5px;top:5px;font-size:14px;font-weight:400;color:#7d9487;pointer-events:none}
.card-order-card input,.card-order-card label{cursor:pointer}
.card-order-dragging{opacity:.45;cursor:grabbing}
.card-order-target{outline:2px dashed #227566!important;outline-offset:2px}
@media(max-width:700px){.personal-week>.agenda-day{padding:0!important}}
.personal-week .lesson .card-specialist{font-size:12px;color:#627c6e;line-height:1.4}
.board.aligned-schedule{display:grid;grid-template-columns:72px repeat(var(--specialist-count,4),minmax(160px,1fr));min-width:calc(72px + var(--specialist-count,4)*180px);align-items:stretch;background:#fff}
.aligned-schedule>.head-cell{font-size:14px;padding:12px;background:#f0f5f2;z-index:4;border-bottom:1px solid #cedbd3}
.aligned-day{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 12px;background:#f4f7f5;color:#526e5e;border-bottom:1px solid #cedbd3;text-transform:capitalize;font-size:12px}
.aligned-day.today{background:#e7f2ed;color:#227566}
.aligned-row{grid-column:1/-1;display:grid;grid-template-columns:72px repeat(var(--specialist-count,4),minmax(0,1fr));align-items:stretch;height:86px}
.aligned-time{display:flex;align-items:center;padding:6px;color:#71877a;background:#f2f6f3;border-right:1px solid #d8e2dc;border-bottom:1px solid #cedbd3;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.aligned-cell{min-width:0;height:86px;display:flex;align-items:stretch;padding:6px;border-right:1px solid #d8e2dc;border-bottom:1px solid #cedbd3;overflow:hidden}
.aligned-cell:last-child{border-right:0}
.aligned-schedule .lesson{position:static;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;width:100%;height:72px;min-height:72px;padding:6px 8px;border-radius:8px;margin:0;overflow:hidden}
.aligned-schedule .lesson .card-time{order:0;font-size:12px;white-space:nowrap}
.aligned-schedule .lesson .card-name{order:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.35}
.aligned-schedule .lesson .pill{order:2;background:transparent;padding:0;white-space:normal;font-size:11px}
.aligned-schedule .lesson .current-label{display:none}
.aligned-schedule .lesson .card-meta,.aligned-schedule .lesson .card-note,.aligned-schedule .lesson .card-warning,.aligned-schedule .lesson .warning-details,.aligned-schedule .lesson .comment-flag{display:none}
.aligned-schedule.show-details .lesson .card-note,.aligned-schedule.show-details .lesson .card-warning,.aligned-schedule.show-details .lesson .warning-details{display:none}
.aligned-schedule .lesson.availability.free,.aligned-schedule .lesson.availability.no_data{background:transparent;border:0;color:#82958a}
.aligned-schedule .lesson.availability .card-name{font-size:12px;font-weight:500}
.board-wrap:has(.aligned-schedule){width:100%;max-width:none!important;overflow:auto!important}
@media(max-width:800px){#workspace .board-wrap:has(.aligned-schedule){overflow:auto!important}.aligned-cell{padding:5px}.aligned-schedule>.head-cell{font-size:13px;padding:10px}}
.specialist-user #mobile-add{display:block!important}
@media(max-width:700px){#workflow-bell{font-size:10px;padding:5px}.board.personal-week{grid-template-columns:repeat(7,minmax(135px,1fr))!important;min-width:945px!important}.workflow-dialog{padding:14px}.workflow-tasks-panel{padding:6px 9px}.personal-week>.agenda-day{padding:5px!important}}

#workspace.specialist-user .main-actions{display:flex!important}

#workspace.payments-open .workflow-tasks-panel,#workspace.expenses-open .workflow-tasks-panel,#workspace.analytics-open .workflow-tasks-panel{display:none!important}
@media(max-width:800px){#workspace.employee-user .mobile-director-tools{grid-template-columns:1fr;justify-items:end}}
