:root {
	color-scheme: light;
	--bp-page: #ffffff;
	--bp-sidebar: #f6f6f8;
	--bp-surface: #ffffff;
	--bp-surface-muted: #f8f9fb;
	--bp-hover: #f0f2f5;
	--bp-selected: #e5e9f0;
	--bp-current-week: #f2f5ff;
	--bp-allocation: #edf2ff;
	--bp-allocation-border: #9baed9;
	--bp-logged: #edf6f1;
	--bp-logged-border: #7a9e8b;
	--bp-absence-border: #c8a45b;
	--bp-employee-surface: #eef0f4;
	--bp-section-border: #c4cbd6;
	--bp-border: #e3e6eb;
	--bp-control-border: #7b8799;
	--bp-text: #20242b;
	--bp-text-muted: #647084;
	--bp-accent: #315fea;
	--bp-accent-hover: #234cc7;
	--bp-warning: #815300;
	--bp-warning-surface: #fff8e7;
	--bp-error: #a32232;
	--bp-error-surface: #fff2f3;
	--bp-success: #21613e;
	--bp-success-surface: #f0f8f3;
	--bp-radius-sm: 4px;
	--bp-radius-md: 6px;
	--bp-radius-lg: 8px;
	--bp-space-1: 4px;
	--bp-space-2: 8px;
	--bp-space-3: 12px;
	--bp-space-4: 16px;
	--bp-space-6: 24px;
	--bp-space-8: 32px;
	--bp-sidebar-width: 240px;
	--bp-planning-toolbar-height: 64px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bp-text);
	background: var(--bp-page);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--bp-accent); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--bp-accent); outline-offset: 3px; }
h1 { font-size: 24px; font-weight: 600; line-height: 1.3; margin: 0 0 var(--bp-space-6); }
h2 { font-size: 18px; font-weight: 600; margin: var(--bp-space-6) 0 var(--bp-space-3); }
p { margin: 0 0 var(--bp-space-4); }

.skip-link { position: fixed; top: -100px; left: var(--bp-space-4); z-index: 100; padding: var(--bp-space-3); background: var(--bp-surface); }
.skip-link:focus { top: var(--bp-space-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }
.app-sidebar { --bp-sidebar: #f1f8ff; --bp-border: #dcebf7; --bp-selected: #d9f3fc; position: fixed; inset: 0 auto 0 0; width: var(--bp-sidebar-width); display: flex; flex-direction: column; background: linear-gradient(155deg, #f9fcff, var(--bp-sidebar)); z-index: 10; }
.app-sidebar::before { content: ""; position: absolute; inset: 40% 0 0; background: url("images/blueplan-waves.svg") 20% bottom / auto 180% no-repeat; opacity: .65; pointer-events: none; }
.sidebar-heading, .sidebar-content { position: relative; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: var(--bp-space-6) var(--bp-space-4); border-bottom: 1px solid transparent; }
.app-brand { display: inline-flex; align-items: center; gap: var(--bp-space-3); font-size: 22px; font-weight: 700; color: var(--bp-text); text-decoration: none; }
.brand-wordmark { color: #0084ab; letter-spacing: -.6px; }
.brand-wordmark > span { color: #10243d; }
.brand-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.sidebar-content { display: flex; flex: 1; min-height: 0; flex-direction: column; overflow-y: auto; }
.app-navigation { display: grid; gap: var(--bp-space-1); padding: var(--bp-space-2) var(--bp-space-3) var(--bp-space-6); }
.navigation-admin { display: grid; gap: var(--bp-space-1); margin: var(--bp-space-1) calc(-1 * var(--bp-space-3)) 0; padding: var(--bp-space-2) var(--bp-space-3) 0; border-top: 1px solid var(--bp-border); }
.app-navigation a { display: flex; align-items: center; gap: var(--bp-space-3); min-height: 40px; padding: var(--bp-space-2); border-radius: var(--bp-radius-sm); color: var(--bp-text); text-decoration: none; font-weight: 500; font-size: 13px; }
.app-navigation a:hover { background: var(--bp-hover); }
.app-navigation a.active { background: var(--bp-selected); box-shadow: inset 3px 0 #00afd3; font-weight: 600; }
.navigation-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--bp-text-muted); }
.app-navigation a.active .navigation-icon { color: #00799d; }
.sidebar-account { display: grid; gap: var(--bp-space-2); margin-top: auto; padding: var(--bp-space-4); border-top: 1px solid transparent; }
.account-name { font-weight: 600; overflow-wrap: anywhere; }
.account-identity { display: flex; align-items: center; justify-content: space-between; gap: var(--bp-space-2); }
.sidebar-account .account-settings { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; flex-shrink: 0; border-radius: var(--bp-radius-sm); text-decoration: none; }
.sidebar-account .account-settings:hover, .sidebar-account .account-settings.active { background: var(--bp-selected); }
.sidebar-account a { color: var(--bp-text-muted); font-size: 13px; }
.sidebar-account a.active { color: var(--bp-accent); font-weight: 600; }
.sidebar-account form { margin: var(--bp-space-2) 0 0; }
.sidebar-account button { width: 100%; }
.sidebar-company { margin-bottom: var(--bp-space-4); }
.sidebar-company img { display: block; width: 140px; max-width: 100%; height: auto; }
.sidebar-account button { display: flex; justify-content: center; align-items: center; gap: var(--bp-space-2); border-color: #bad5eb; background: #fafdff; }
.sidebar-account button .navigation-icon { color: #335675; }
.navigation-toggle { display: none; }
.app-main { min-width: 0; margin-left: var(--bp-sidebar-width); padding: var(--bp-space-8); }

button {
	min-height: 36px;
	padding: var(--bp-space-2) var(--bp-space-3);
	border: 1px solid var(--bp-control-border);
	border-radius: var(--bp-radius-md);
	color: var(--bp-text);
	background: var(--bp-surface);
	cursor: pointer;
	font-weight: 500;
	line-height: 1.3;
}
button:hover:not(:disabled) { background: var(--bp-hover); }
button:active:not(:disabled) { background: var(--bp-selected); }
button:disabled { cursor: not-allowed; opacity: .6; }
button:not([type]), button[type="submit"], .button-primary { color: white; background: var(--bp-accent); border-color: var(--bp-accent); }
button:not([type]):hover:not(:disabled), button[type="submit"]:hover:not(:disabled), .button-primary:hover:not(:disabled) { background: var(--bp-accent-hover); }
button.button-secondary { color: var(--bp-text); background: var(--bp-surface); border-color: var(--bp-control-border); }
button.button-secondary:hover:not(:disabled) { background: var(--bp-hover); }

.page-header { margin-bottom: var(--bp-space-6); padding-bottom: var(--bp-space-4); border-bottom: 1px solid var(--bp-border); }
.page-header h1 { margin: 0; }
.page-header p { margin: var(--bp-space-2) 0 0; color: var(--bp-text-muted); }
.app-main > .shell-page-header { display: flex; align-items: center; flex-wrap: wrap; min-height: var(--bp-planning-toolbar-height); margin: calc(-1 * var(--bp-space-8)) calc(-1 * var(--bp-space-8)) var(--bp-space-6); padding: var(--bp-space-2) var(--bp-space-8); }
.app-shell:has(.shell-page-header) .sidebar-heading { min-height: var(--bp-planning-toolbar-height); padding-block: var(--bp-space-2); }
.app-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: var(--bp-space-3); margin-bottom: var(--bp-space-4); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: var(--bp-space-3); font-weight: 600; }
.app-main form { display: flex; flex-wrap: wrap; align-items: end; gap: var(--bp-space-3); margin: var(--bp-space-6) 0; padding: var(--bp-space-4) 0; border-top: 1px solid var(--bp-border); }
.app-main form > h2, .app-main form > p { flex-basis: 100%; margin: 0; }
.app-main label:has(input), .form-field { display: flex; flex-direction: column; gap: var(--bp-space-1); flex: 0 1 240px; min-width: 0; }
.app-main label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; flex-basis: auto; padding-block: var(--bp-space-2); }
input:not([type="checkbox"]), select, textarea { min-height: 36px; width: 100%; max-width: 100%; padding: var(--bp-space-2); border: 1px solid var(--bp-control-border); border-radius: var(--bp-radius-md); background: var(--bp-surface); color: var(--bp-text); }
input[type="checkbox"] { accent-color: var(--bp-accent); width: 16px; height: 16px; flex-shrink: 0; }
input:disabled, select:disabled { background: var(--bp-surface-muted); color: var(--bp-text-muted); cursor: not-allowed; }
input:user-invalid { border-color: var(--bp-error); }
.login-page { --bp-accent: #007eaf; --bp-accent-hover: #00658d; --bp-control-border: #d1dee6; --bp-text: #18242e; --bp-text-muted: #405b6d; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--bp-space-6); color: var(--bp-text); }
.login-card { width: 100%; max-width: 428px; padding: 40px; border-block: 1px solid var(--bp-accent); border-radius: 12px; background: #f7fafb; }
.login-brand { display: flex; justify-content: center; margin-bottom: var(--bp-space-8); font-size: 22px; font-weight: 700; }
.login-brand img { display: block; flex-shrink: 0; }
.login-card h1 { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: var(--bp-space-6); }
.auth-form { display: grid; gap: 20px; }
.auth-form label { display: grid; gap: var(--bp-space-1); color: var(--bp-text-muted); font-size: 13px; font-weight: 600; }
.auth-form input { min-height: 46px; background: transparent; font-size: 14px; font-weight: 400; }
.auth-form button { min-height: 46px; font-weight: 700; box-shadow: 0 6px 14px rgb(0 126 175 / 18%); }
@media (max-width: 480px) {
	.login-page { padding: var(--bp-space-4); }
	.login-card { padding: var(--bp-space-8) var(--bp-space-6); }
}
.table-scroll { max-width: 100%; overflow-x: auto; margin: var(--bp-space-4) 0 var(--bp-space-6); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); }
.activity-table { min-width: 860px; table-layout: fixed; }
.activity-table > thead > tr > th:first-child { width: 170px; }
.activity-table > thead > tr > th:nth-child(2) { width: 170px; }
.activity-table > thead > tr > th:nth-child(3) { width: 210px; }
.activity-table > tbody > tr > td { overflow-wrap: anywhere; }
.activity-table .row-detail { display: block; }
.activity-table summary { cursor: pointer; }
.activity-table summary:focus-visible { outline: 2px solid var(--bp-accent); outline-offset: 3px; }
.activity-changes { margin-top: var(--bp-space-3); }
.activity-changes td { white-space: pre-wrap; min-width: 100px; }
.settings-page { max-width: 960px; }
.settings-identity, .settings-section-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--bp-space-3); flex-wrap: wrap; }
.settings-identity { margin-bottom: var(--bp-space-6); }
.settings-identity strong { display: block; overflow-wrap: anywhere; }
.settings-section { padding: var(--bp-space-6); margin-bottom: var(--bp-space-4); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-md); }
.settings-section h2 { margin: 0 0 var(--bp-space-4); }
.settings-section-heading { margin-bottom: var(--bp-space-4); }
.settings-section-heading h2 { margin: 0; }
.app-main .settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bp-space-4); align-items: end; margin: 0; padding: 0; border: 0; }
.settings-form > button { justify-self: start; }
.settings-wide { grid-column: 1 / -1; }
.settings-actions { display: flex; justify-content: flex-end; gap: var(--bp-space-2); }
.account-status { display: inline-block; padding: var(--bp-space-1) var(--bp-space-2); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); color: var(--bp-text-muted); background: var(--bp-surface-muted); font-size: 12px; white-space: nowrap; }
.account-enabled { color: var(--bp-success); background: var(--bp-success-surface); }
@media (max-width: 640px) {
	.app-main .settings-form { grid-template-columns: minmax(0, 1fr); }
	.settings-section { padding: var(--bp-space-4); }
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
caption { padding: var(--bp-space-3); text-align: left; font-weight: 600; color: var(--bp-text); background: var(--bp-surface); border-bottom: 1px solid var(--bp-border); }
th, td { padding: var(--bp-space-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--bp-border); overflow-wrap: break-word; }
th:not(:last-child), td:not(:last-child) { border-right: 1px solid var(--bp-border); }
thead th { background: var(--bp-surface-muted); font-weight: 600; white-space: nowrap; }
tbody th { font-weight: 500; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--bp-surface-muted); }
td { font-variant-numeric: tabular-nums; }
.numeric { text-align: right; white-space: nowrap; }
td button { margin-bottom: var(--bp-space-1); white-space: nowrap; }
.feedback, .conflict-box, #stale-editor { padding: var(--bp-space-3); border: 1px solid currentColor; border-radius: var(--bp-radius-sm); overflow-wrap: anywhere; }
.feedback-error { color: var(--bp-error); background: var(--bp-error-surface); }
.feedback-success { color: var(--bp-success); background: var(--bp-success-surface); }
.conflict-box, #stale-editor { color: var(--bp-warning); background: var(--bp-warning-surface); }
.conflict-box h2 { margin-top: 0; }
.capacity-warning { color: var(--bp-warning); font-weight: 600; }
.capacity-unknown { color: var(--bp-text-muted); }
#planning-freshness { color: var(--bp-text-muted); font-size: 13px; }
dialog { max-width: 560px; width: calc(100% - 32px); max-height: 85dvh; overflow-y: auto; padding: var(--bp-space-6); border: 1px solid var(--bp-control-border); border-radius: var(--bp-radius-lg); color: var(--bp-text); background: var(--bp-surface); }
dialog::backdrop { background: rgb(32 36 43 / 25%); }
dialog h2 { margin-top: 0; }
dialog button { margin: var(--bp-space-1); }
.editor-dialog { position: fixed; inset: 0; margin: auto; padding: 0; width: calc(100% - 32px); max-width: 720px; max-height: calc(100dvh - 32px); }
.editor-dialog-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--bp-space-3); padding: var(--bp-space-3) var(--bp-space-4); border-bottom: 1px solid var(--bp-border); background: var(--bp-surface); }
.editor-dialog-heading h2 { margin: 0; }
.editor-dialog-heading button { min-width: 32px; min-height: 32px; margin: 0; padding: var(--bp-space-1); font-size: 20px; }
.editor-dialog-body { padding: var(--bp-space-4); }
.app-main .editor-dialog form { margin: var(--bp-space-3) 0; padding: var(--bp-space-3) 0; border: 0; border-radius: 0; }
.app-main .editor-dialog .feedback, .app-main .editor-dialog .conflict-box { margin: var(--bp-space-3) 0; }
.app-main .editor-dialog form:first-child { margin-top: 0; border-top: 0; }
.editor-dialog .table-scroll { margin-bottom: var(--bp-space-3); }
.editor-dialog .assignment-context > * { background: var(--bp-selected); }
.editor-dialog .dialog-actions { display: flex; justify-content: flex-end; margin-top: var(--bp-space-4); }
.weekly-hours-capacity { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr); align-items: end; gap: var(--bp-space-3); flex-basis: 100%; min-width: 0; }
.app-main .task-creation-form { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.task-creation-wide, .task-creation-form > p { grid-column: 1 / -1; }
.app-main .task-creation-form label { min-width: 0; }
.task-creation-hint { margin: 0; color: var(--bp-text-muted); font-size: 13px; }

.task-editor-dialog { --bp-border: #dfebfa; --bp-control-border: #b6cee5; border-color: #c7dfff; border-radius: 18px; background: linear-gradient(145deg, #fff, #f4f8ff); box-shadow: 0 12px 36px rgb(45 106 159 / 20%); }
.task-editor-dialog .editor-dialog-heading { padding: 14px 20px; background: #f8fbff; }
.task-editor-dialog .editor-dialog-heading h2 { font-size: 20px; font-weight: 700; }
.task-editor-dialog .editor-dialog-body { padding: 16px; }
.app-main .task-editor-dialog .task-creation-form { margin: 0; padding: 0; gap: 12px; }
.task-form-section { min-width: 0; border: 1px solid #dbe9fc; border-radius: 12px; background: rgb(255 255 255 / 45%); }
.task-form-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; min-height: 36px; padding: 7px 14px; border-radius: 11px; background: linear-gradient(100deg, #eef6ff, #deedff); }
.task-form-section-heading h3 { margin: 0; font-size: 14px; font-weight: 700; }
.task-form-section-body { padding: 12px 14px; }
.task-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; }
.task-form-fields > p { grid-column: 1 / -1; margin: 0; }
.task-editor-dialog label, .task-editor-dialog .form-field, .task-editor-dialog .deadline-field legend { font-size: 13px; }
.task-editor-dialog input:not([type="checkbox"]), .task-editor-dialog select, .task-editor-dialog textarea { background: #fff; box-shadow: 0 1px 2px rgb(45 106 159 / 4%); font-size: 14px; }
.task-editor-dialog textarea { resize: vertical; }
.task-editor-dialog input:disabled, .task-editor-dialog select:disabled { background: var(--bp-surface-muted); }
.task-editor-dialog .task-context { margin-bottom: 12px; }
.task-editor-dialog .task-hours-table { margin-top: 0; }
.task-editor-dialog .task-hours-table thead th { background: transparent; }
.task-hours-value { display: inline-block; padding: 3px 8px; border-radius: 7px; background: #e2f0ff; font-weight: 600; }
.task-hours-logged { background: #e4f5ed; }
.app-main .task-form-reason { padding: 12px 14px; border: 1px solid #dbe9fc; border-radius: 12px; background: #f0f6ff; gap: 6px; }
.task-editor-dialog .dialog-actions { padding-top: 4px; }
.task-editor-dialog .dialog-actions button { margin: 0; }
.task-creation-employees { min-width: 0; }
.task-creation-employee { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(172px, 1fr) 32px; align-items: center; gap: var(--bp-space-2); padding-block: var(--bp-space-2); border-bottom: 1px solid var(--bp-border); }
.task-creation-columns { padding-bottom: var(--bp-space-1); border-bottom: 0; color: var(--bp-text-muted); font-size: 13px; }
.task-creation-person { display: flex; flex-direction: column; align-self: center; min-width: 0; overflow-wrap: anywhere; }
.task-creation-person strong { font-weight: 500; }
.task-creation-remove { min-width: 32px; padding-inline: var(--bp-space-1); }
.creation-capacity { position: relative; display: flex; align-items: center; justify-content: center; min-height: 36px; min-width: 0; padding: var(--bp-space-1) var(--bp-space-2); overflow: hidden; border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); background: var(--bp-surface-muted); color: var(--bp-text-muted); font-size: 12px; text-align: center; }
.creation-capacity-fill { position: absolute; inset: 0 auto 0 0; background: var(--bp-selected); }
.creation-capacity-text { position: relative; color: var(--bp-text); }
.creation-capacity-overbooked { border-color: var(--bp-error); background: var(--bp-error-surface); }
.creation-capacity-overbooked .creation-capacity-fill { background: var(--bp-error-surface); }
.creation-capacity-overbooked .creation-capacity-text { color: var(--bp-error); font-weight: 600; }
.task-creation-add { display: flex; align-items: end; flex-wrap: wrap; gap: var(--bp-space-2); padding-top: var(--bp-space-2); }
.task-creation-add-button { margin-top: var(--bp-space-2); }
.task-context { margin: 0 0 var(--bp-space-4); color: var(--bp-text-muted); font-size: 13px; }
.task-completion { display: grid; gap: var(--bp-space-1); }
.app-main .task-completion label { min-height: 36px; margin: 0; padding: 0; gap: var(--bp-space-2); }
.task-completion input { order: -1; margin: 0; }
.deadline-field legend { margin-bottom: var(--bp-space-1); font-weight: 400; }
.deadline-controls { display: flex; align-items: center; gap: var(--bp-space-2); }
.week-picker { min-width: 0; }
.deadline-controls .week-picker { width: 100%; }
.planning-theme .people-topbar .week-picker-trigger, .week-picker-trigger { background: #fff; }
.week-picker-trigger { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; text-align: left; }
.week-picker-trigger .navigation-icon { width: 18px; height: 18px; }
.week-picker-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-picker-value > span { margin-left: 6px; color: var(--bp-text-muted); font-weight: 400; }
.week-picker-chevron { flex-shrink: 0; width: 16px; height: 16px; }
.week-picker-trigger[aria-expanded="true"] { border-color: var(--bp-accent); box-shadow: 0 0 0 1px var(--bp-accent); }
.week-picker-popover { position: fixed; inset: auto; margin: 0; padding: 16px; border: 1px solid #bad4eb; border-radius: 14px; background: #fff; color: var(--bp-text); box-shadow: 0 8px 24px rgb(45 106 159 / 20%); overflow: auto; }
.week-picker-popover:popover-open { display: flex; flex-direction: column; gap: 14px; }
.week-picker-popover h3 { margin: 0; font-size: 16px; font-weight: 600; }
.week-picker-year { width: 144px; flex: none; }
.week-picker .week-picker-popover .week-picker-year-trigger { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; margin: 0; padding: 0 10px; border: 1px solid var(--bp-control-border); border-radius: var(--bp-radius-md); background: #fff; font-weight: 600; }
.week-picker-year-trigger .navigation-icon { flex-shrink: 0; width: 18px; height: 18px; }
.week-picker-year-trigger .week-picker-chevron { margin-left: auto; }
.week-picker .week-picker-popover .week-picker-years { position: fixed; inset: auto; width: 144px; height: 162px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--bp-control-border); border-radius: 8px; background: #fff; box-shadow: 0 5px 16px rgb(45 106 159 / 16%); overflow-y: auto; overscroll-behavior: contain; }
.week-picker-years option { height: 32px; padding: 6px 10px; background: #fff; color: var(--bp-text); font-size: 14px; }
.week-picker-years option:checked { background: #e4f0ff; color: var(--bp-text); font-weight: 600; }
.week-picker-years option:hover:not(:checked) { background: #f0f3f6; }
.week-picker-list { flex: 1; min-height: 80px; max-height: 304px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--bp-border); padding-top: 6px; }
.week-picker-popover .week-picker-list .week-picker-option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 38px; margin: 0; padding: 6px 10px; border: 0; border-bottom: 1px solid #e7f0f9; border-radius: 0; background: #fff; font-size: 13px; text-align: left; white-space: nowrap; }
.week-picker-list .week-picker-option[aria-selected="true"] { border-radius: 8px; background: #e4f0ff; }
.week-picker-list .week-picker-option:hover:not([aria-selected="true"]) { border-radius: 8px; background: #f0f3f6; }
.week-picker-option .week-picker-current { margin-left: auto; padding: 2px 6px; border-radius: 5px; color: #7a8592; background: #edf0f3; font-size: 11px; font-weight: 400; }
.week-picker-option .week-picker-current + .navigation-icon { margin-left: 0; }
.week-picker-option .week-picker-number { padding: 2px 8px; border-radius: 6px; background: #e4effc; font-weight: 600; }
.week-picker-option[aria-selected="true"] .week-picker-number { color: white; background: var(--bp-accent); }
.week-picker-option > .navigation-icon { width: 16px; height: 16px; margin-left: auto; color: var(--bp-accent); }
.week-picker-popover footer { flex-shrink: 0; padding-top: 12px; border-top: 1px solid var(--bp-border); }
.week-picker-popover .week-picker-clear { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 10px; }

.task-hours-section > .task-completion { display: flex; justify-content: flex-end; margin-block: var(--bp-space-1); }
.task-hours-scope { color: var(--bp-text-muted); font-size: 12px; font-weight: 400; }
.task-hours-table { table-layout: fixed; margin-block: var(--bp-space-2); }
.task-hours-table th, .task-hours-table td { padding: var(--bp-space-2) var(--bp-space-1); vertical-align: middle; border-right: 0; }
.task-hours-table thead th { color: var(--bp-text-muted); font-weight: 400; background: var(--bp-surface); white-space: normal; }
.task-hours-table th:first-child { width: 31%; padding-left: 0; }
.task-hours-table th:last-child { width: 26%; text-align: right; }
.task-hours-table tbody tr:last-child > * { border-bottom: 1px solid var(--bp-border); }
.task-hours-table tfoot > tr > * { background: var(--bp-surface-muted); font-weight: 600; }
.task-hours-table tfoot td { font-variant-numeric: tabular-nums; }
.task-subtask-hours th:first-child { width: 32%; }
.task-subtask-hours th:last-child { width: 14%; }
.task-subtask-hours td:last-child { text-align: right; color: var(--bp-text-muted); }
.task-configuration-total { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-configuration-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: var(--bp-space-1); }
.task-configuration-actions button { margin: 0; }
.editor-dialog .task-creation-form .dialog-actions { flex-wrap: wrap; gap: var(--bp-space-2); margin-top: 0; }
@media (max-width: 480px) {
	.task-form-fields { grid-template-columns: minmax(0, 1fr); }
	.task-editor-dialog .editor-dialog-body { padding: 12px; }
	.task-form-section-body { padding: 12px 10px; }
	.task-form-section-heading { padding-inline: 10px; }
	.task-hours-value { padding-inline: 4px; font-size: 12px; }
	.task-creation-employee { grid-template-columns: minmax(0, 1fr) 80px 32px; }
	.task-creation-employee .creation-capacity { grid-column: 1 / 3; grid-row: 2; }
	.task-creation-employee .task-creation-remove { grid-column: 3; grid-row: 1; }
	.task-creation-columns > :last-child { display: none; }
	.task-configuration-employee.task-creation-columns .task-configuration-total { white-space: normal; }
	.task-hours-table .task-creation-columns > :last-child { display: table-cell; }
	.task-person-hours th:first-child { width: 28%; }
	.task-person-hours th:last-child { width: 29%; }
	.task-person-hours .task-configuration-actions button { padding-inline: var(--bp-space-1); font-size: 12px; }
	.task-subtask-hours { font-size: 12px; }
}

.week-navigation { display: flex; flex-wrap: wrap; gap: var(--bp-space-2); }
.planning-freshness { font-size: 13px; color: var(--bp-text-muted); }
.app-shell:has(.people-page) { display: flex; flex-direction: column; height: 100dvh; min-height: 0; }
.app-main:has(.people-page) { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 0; }
.app-shell:has(.people-page) .sidebar-heading { min-height: var(--bp-sidebar-toolbar-height, var(--bp-planning-toolbar-height)); padding-block: var(--bp-space-2); }
.people-page { --bp-people-info-width: 260px; --bp-week-header-height: 60px; display: flex; flex: 1; flex-direction: column; min-height: 0; }
.people-page.planning-loading { position: relative; }
.planning-loading > fieldset { visibility: hidden; }
.planning-loading > .people-empty { position: absolute; top: 0; left: 0; margin: 0; }
.people-page > fieldset { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.people-topbar { display: flex; flex-shrink: 0; align-items: center; flex-wrap: wrap; gap: var(--bp-space-3); min-height: var(--bp-planning-toolbar-height); padding: var(--bp-space-2) var(--bp-space-4); border-bottom: 1px solid var(--bp-border); }
.people-topbar .page-header { margin: 0; padding: 0; border: 0; }
.people-topbar h1 { font-size: 20px; }
.people-view-label { color: var(--bp-text-muted); font-size: 12px; }
.people-toolbar-controls, .people-week-controls { display: flex; align-items: center; flex-wrap: wrap; gap: var(--bp-space-2); }
.people-toolbar-controls { margin-left: auto; }
.people-topbar input, .people-topbar select, .people-topbar button { min-height: 32px; padding: var(--bp-space-1) var(--bp-space-2); font-size: 12px; }
.people-topbar .week-navigation { gap: var(--bp-space-1); }
.people-topbar .people-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; padding: var(--bp-space-1); }
.people-icon-button span { font-size: 22px; line-height: 1; }
.people-icon-button svg { width: 18px; height: 18px; }
.people-week-count { display: inline-flex; align-items: center; gap: var(--bp-space-1); white-space: nowrap; }
.people-week-count svg { width: 16px; height: 16px; }
.people-page .feedback, .people-page > fieldset > .conflict-box { flex-shrink: 0; margin: var(--bp-space-2) var(--bp-space-4); }
.people-page > fieldset > .feedback-success { position: fixed; right: var(--bp-space-4); bottom: var(--bp-space-4); z-index: 10; width: max-content; max-width: min(420px, calc(100vw - 32px)); margin: 0; pointer-events: none; }
.people-workspace { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scroll-padding-top: var(--bp-week-header-height); scroll-padding-left: var(--bp-people-info-width); margin: 0; border: 0; border-bottom: 1px solid var(--bp-border); border-radius: 0; }
.people-grid { --bp-visible-weeks: 4; --bp-week-width: 168px; min-width: calc(var(--bp-people-info-width) + var(--bp-visible-weeks) * var(--bp-week-width)); table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.people-grid[data-visible-weeks="5"] { --bp-visible-weeks: 5; }
.people-grid[data-visible-weeks="6"] { --bp-visible-weeks: 6; }
.people-grid[data-visible-weeks="7"] { --bp-visible-weeks: 7; }
.people-grid[data-visible-weeks="8"] { --bp-visible-weeks: 8; }
.people-grid[data-visible-weeks="9"] { --bp-visible-weeks: 9; }
.people-grid[data-visible-weeks="10"] { --bp-visible-weeks: 10; }
.people-grid[data-visible-weeks="11"] { --bp-visible-weeks: 11; }
.people-grid[data-visible-weeks="12"] { --bp-visible-weeks: 12; }
.people-grid[data-visible-weeks="13"] { --bp-visible-weeks: 13; }
.people-grid[data-visible-weeks="14"] { --bp-visible-weeks: 14; }
.people-grid[data-visible-weeks="15"] { --bp-visible-weeks: 15; }
.people-grid[data-visible-weeks="16"] { --bp-visible-weeks: 16; }
.people-info-column { width: var(--bp-people-info-width); }
.people-grid th, .people-grid td { padding: var(--bp-space-1) var(--bp-space-2); vertical-align: middle; }
.people-grid th:not(:last-child), .people-grid td:not(:last-child) { border-right-color: var(--bp-border); }
.people-grid .hierarchy-label { position: sticky; left: 0; z-index: 1; width: var(--bp-people-info-width); background: var(--bp-sidebar); padding-left: var(--bp-space-3); box-shadow: 1px 0 var(--bp-border); }
.people-grid thead th { position: sticky; top: 0; z-index: 2; height: var(--bp-week-header-height); vertical-align: top; background: var(--bp-surface); text-align: left; padding: var(--bp-space-2) var(--bp-space-3); }
.people-grid thead .hierarchy-label { z-index: 3; }
.people-grid thead .current-week { background: var(--bp-current-week); box-shadow: inset 0 2px var(--bp-accent); }
.people-header-label { display: flex; align-items: center; gap: var(--bp-space-2); margin-bottom: var(--bp-space-1); }
.people-count { font-size: 11px; font-weight: 400; color: var(--bp-text-muted); }
.people-week-label { display: flex; align-items: center; justify-content: space-between; gap: var(--bp-space-1); font-weight: 600; }
.people-current-label { font-size: 10px; font-weight: 500; color: var(--bp-accent); }
.people-grid .people-employee-row > * { height: 60px; padding-block: var(--bp-space-2); border-top: 2px solid var(--bp-section-border); background: var(--bp-employee-surface); }
.people-employee-name { display: flex; align-items: center; gap: var(--bp-space-2); }
.people-employee-name > div { min-width: 0; }
.people-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--bp-radius-md); font-size: 12px; color: var(--bp-accent); background: var(--bp-allocation); }
.people-employee-name .disclosure-button { max-width: 100%; font-weight: 600; }
.people-employee-name .disclosure-button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.people-grid .people-group-row > * { height: 30px; background: var(--bp-surface-muted); font-weight: 500; font-size: 12px; }
.people-grid .people-project-row > * { height: 32px; font-weight: 500; font-size: 12px; }
.people-grid .people-task-row > * { height: 42px; }
.people-grid .indent-1 { padding-left: 28px; }
.people-grid .indent-2 { padding-left: 40px; }
.people-grid .indent-3 { padding-left: 52px; }
.project-label-actions { display: flex; align-items: center; gap: 4px; }
.project-label-actions > .disclosure-button { min-width: 0; }
.project-label-actions .disclosure-button span { min-width: 0; overflow-wrap: anywhere; }
.project-label-actions .project-settings, .project-label-actions .project-add-subtask { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; flex-shrink: 0; width: 32px; min-height: 32px; padding: 4px; border: 0; background: transparent; box-shadow: none; }
.project-label-actions .project-settings { color: var(--bp-text-muted); }
.project-label-actions .project-add-subtask { color: #727f8e; font-size: 20px; font-weight: 400; }
.project-label-actions .project-settings:hover:not(:disabled), .project-label-actions .project-add-subtask:hover:not(:disabled) { background: var(--bp-hover); color: var(--bp-accent); }
.project-task-name { justify-content: flex-start; align-items: flex-start; }
.project-task-name > .disclosure-button { flex-shrink: 0; margin-block: 4px; }
.project-task-name .task-title { min-width: 0; margin-block: 4px; overflow-wrap: anywhere; }
.project-task-details { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; align-items: center; column-gap: 4px; }
.project-task-details .task-title { max-width: 100%; }
.task-indicators { display: inline-flex; flex-shrink: 0; align-items: center; gap: 2px; min-height: 24px; }
.task-indicators:empty { display: none; }
.planning-warning-icon { position: static; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 20px; min-height: 24px; margin: 0; padding: 2px; border: 0; background: transparent; color: #9b6a00; }
.planning-warning-icon svg { width: 16px; height: 16px; }
.general-warning svg { fill: #fff2bd; }
.planning-warning-icon.completion-indicator { color: #16803c; }
.completion-indicator svg { stroke-width: 3; color: inherit; }
.planning-warning-icon.completion-badge { width: auto; min-height: 22px; gap: 3px; padding: 1px 7px; border: 1px solid #b8e8c5; border-radius: 999px; background: #dcf7e4; font-size: 11px; font-weight: 600; white-space: nowrap; }
.project-assignee-name { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.planning-warning-icon:hover { background: var(--bp-hover); }
.projects-grid .project-task-name .task-title { font-size: 14px; font-weight: 600; }
.projects-grid .people-task-row > th { font-size: 12px; font-weight: 400; }
.projects-grid .project-tree-cell { padding: 0 8px 0 12px; }
.planning-tree-label { --bp-tree-indent: 18px; --bp-tree-junction: 20px; display: flex; min-height: 40px; }
.planning-tree-guides { display: flex; flex-shrink: 0; }
.planning-tree-guide { position: relative; flex: 0 0 var(--bp-tree-indent); width: var(--bp-tree-indent); }
.planning-tree-guide.tree-continues::before, .planning-tree-guide.tree-branch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #c4def4; }
.planning-tree-guide.tree-branch:not(.tree-continues)::before { bottom: auto; height: var(--bp-tree-junction); }
.planning-tree-guide.tree-branch::after { content: ""; position: absolute; left: 50%; right: 0; top: var(--bp-tree-junction); border-top: 1px solid #c4def4; }
.planning-tree-node { position: absolute; z-index: 1; left: calc(50% - 2.5px); top: calc(var(--bp-tree-junction) - 2px); width: 5px; height: 5px; border-radius: 50%; background: #8ab7df; }
.planning-tree-content { flex: 1; min-width: 0; padding-block: 4px; }
.planning-tree-leaf { min-height: 42px; --bp-tree-junction: 21px; }
.planning-tree-leaf .planning-tree-content { align-content: center; padding-left: 24px; }
.project-phase-draft { display: flex; align-items: end; flex-wrap: wrap; gap: var(--bp-space-2); margin-bottom: var(--bp-space-2); }
.app-main .project-phase-draft label { flex: 1; min-width: 0; }
.project-phase-draft button { flex-shrink: 0; }
.project-hours-summary { display: flex; gap: var(--bp-space-4); align-items: center; flex-wrap: wrap; }
.project-hours-summary span, .project-hours-summary strong { display: block; font-variant-numeric: tabular-nums; }
.project-hours-summary span { color: var(--bp-text-muted); font-size: 12px; }
.project-phase-totals th, .project-phase-totals td { padding: var(--bp-space-2); overflow-wrap: anywhere; }
.people-grid tbody .numeric { white-space: normal; }
.person-hours { display: block; font-weight: 600; white-space: nowrap; }
.employee-hours-total { position: relative; display: inline-block; font-weight: 600; white-space: nowrap; outline-offset: 2px; }
.employee-hours-total.hours-over-contract { color: var(--bp-error); }
.employee-hours-total.hours-at-contract { color: var(--bp-success); }
.employee-hours-total::after, .deadline-marker::after, .planning-warning-icon::after { content: attr(data-tooltip); display: none; position: absolute; top: calc(100% + var(--bp-space-1)); right: 0; z-index: 8; width: max-content; max-width: 200px; padding: var(--bp-space-1) var(--bp-space-2); border-radius: var(--bp-radius-sm); background: var(--bp-text); color: var(--bp-surface); white-space: normal; text-align: left; font-size: 12px; font-weight: 400; pointer-events: none; }
.employee-hours-total:hover::after, .employee-hours-total:focus::after, .deadline-marker:hover::after, .deadline-marker:focus::after, .planning-warning-icon:hover::after, .planning-warning-icon:focus::after { display: block; }
.planning-warning-icon::after { box-sizing: border-box; left: 12px; right: auto; width: calc(var(--bp-people-info-width) - 24px); max-width: none; white-space: pre-line; }
.task-week-cell { position: relative; }
.deadline-marker { position: relative; display: inline-flex; flex-shrink: 0; width: 16px; height: 16px; color: #40658a; vertical-align: middle; }
.deadline-marker svg { width: 100%; height: 100%; }
.deadline-cell-marker { position: absolute; left: 16px; top: calc(50% - 8px); }
.people-grid .hierarchy-label:has(.deadline-marker:hover, .deadline-marker:focus, .planning-warning-icon:hover, .planning-warning-icon:focus) { z-index: 2; }
.deadline-marker::after { left: 0; right: auto; }
.deadline-overdue { color: var(--bp-error); }
.deadline-completed { color: var(--bp-text-muted); }
.row-detail { display: block; font-size: 12px; font-weight: 400; color: var(--bp-text-muted); }
.people-grid .row-detail { font-size: 11px; }
.row-detail.capacity-warning { color: var(--bp-warning); }
.task-title { display: block; font-weight: 500; }
.task-label-actions { display: flex; align-items: flex-start; gap: var(--bp-space-1); min-width: 0; }
.task-label-actions .task-title { min-width: 0; overflow-wrap: anywhere; }
.task-order-handle { display: inline-flex; flex: 0 0 24px; align-items: center; justify-content: center; width: 24px; min-height: 26px; padding: 2px; border-color: transparent; background: transparent; color: var(--bp-text-muted); cursor: grab; touch-action: none; user-select: none; }
.task-order-handle svg { width: 14px; height: 18px; pointer-events: none; }
.people-grid .task-order-handle { position: absolute; left: 2px; top: 50%; transform: translateY(-50%); }
.task-order-handle:active { cursor: grabbing; }
.task-order-dragging { opacity: .6; }
[data-order-target="before"] > * { box-shadow: inset 0 2px var(--bp-accent); }
[data-order-target="after"] > * { box-shadow: inset 0 -2px var(--bp-accent); }
[data-order-target="before"] > [scope="row"] { box-shadow: 1px 0 var(--bp-border), inset 0 2px var(--bp-accent); }
[data-order-target="after"] > [scope="row"] { box-shadow: 1px 0 var(--bp-border), inset 0 -2px var(--bp-accent); }
button.task-title { min-height: 24px; margin: 0; padding: 0; border: 0; border-radius: var(--bp-radius-sm); background: transparent; color: var(--bp-text); text-align: left; line-height: 1.5; font-size: inherit; }
button.task-title:hover:not(:disabled) { background: var(--bp-hover); text-decoration: underline; text-underline-offset: 3px; }
.people-page .people-topbar .people-retired-toggle { flex: none; padding: 0; font-size: 12px; }
.people-topbar .people-retired-toggle input { min-height: 0; }
button.disclosure-button { display: flex; align-items: center; gap: var(--bp-space-2); min-height: 24px; padding: 2px 0; border: 0; border-radius: var(--bp-radius-sm); color: var(--bp-text); background: transparent; text-align: left; }
.disclosure-icon { flex-shrink: 0; width: 14px; height: 14px; color: var(--bp-text-muted); }
.disclosure-button[aria-expanded="true"] .disclosure-icon { transform: rotate(90deg); }
button.planning-cell-button { width: 100%; min-height: 32px; margin: 0; padding: var(--bp-space-1) var(--bp-space-2); border: 1px solid transparent; border-left-width: 3px; border-radius: var(--bp-radius-sm); color: var(--bp-text); background: transparent; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 400; }
button.planning-cell-button.has-plan { border-color: var(--bp-allocation-border); border-left-color: var(--bp-accent); background: var(--bp-allocation); }
button.planning-cell-button.has-plan.absence-plan { border-color: var(--bp-absence-border); border-left-color: var(--bp-warning); background: var(--bp-warning-surface); }
button.planning-cell-button.is-empty { color: var(--bp-text-muted); }
button.planning-cell-button.is-empty:hover:not(:disabled) { border: 1px dashed var(--bp-control-border); padding-left: 10px; }
.planning-cell-button:focus-visible { outline-offset: -2px; }
button.context-action { min-height: 26px; padding: 2px 0; border-color: transparent; color: var(--bp-accent); background: transparent; font-size: 12px; }
.people-page form { margin: var(--bp-space-3) var(--bp-space-4); padding: var(--bp-space-3); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); }
.people-empty { padding: var(--bp-space-4); }
.inline-hours-editor { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--bp-text); overflow: visible; pointer-events: none; }
.inline-hours-editor::backdrop { background: transparent; pointer-events: none; }
input.inline-hours-input { position: fixed; pointer-events: auto; min-height: 0; margin: 0; padding: 4px 8px; border: 2px solid var(--bp-accent); border-radius: var(--bp-radius-sm); background: var(--bp-surface); color: var(--bp-text); text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.inline-hours-input:focus-visible { outline-offset: -2px; }
.inline-hours-panel { position: fixed; pointer-events: auto; padding: var(--bp-space-3); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--bp-control-border); border-radius: var(--bp-radius-md); background: var(--bp-surface); box-shadow: 0 4px 16px #20242b20; font-size: 12px; text-align: left; }
.people-page form.inline-hours-form { margin: 0; padding: 0; border: 0; gap: var(--bp-space-2); }
.inline-hours-panel label, .inline-hours-preview { flex-basis: 100%; }
.inline-hours-panel input:not([type="checkbox"]) { min-height: 30px; padding-block: var(--bp-space-1); }
.inline-hours-panel button { min-height: 30px; padding: var(--bp-space-1) var(--bp-space-2); font-size: 12px; }
.inline-hours-panel .feedback { margin: 0 0 var(--bp-space-2); }
.inline-hours-panel .conflict-box { margin: var(--bp-space-2) 0 0; }
.inline-hours-panel h2 { font-size: 14px; }
.inline-hours-hint, .inline-hours-panel .task-creation-hint { margin: 0; color: var(--bp-text-muted); font-size: 11px; }
.inline-hours-panel > .inline-hours-hint { margin-top: var(--bp-space-2); }
.people-logging-toggle[aria-pressed="true"] { border-color: var(--bp-accent); background: var(--bp-allocation); color: var(--bp-accent); }
.people-logging .people-grid { --bp-week-width: 224px; }
.people-week-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: var(--bp-space-1); font-variant-numeric: tabular-nums; }
.people-planned-half, .people-logged-half { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: var(--bp-space-1); border: 1px solid var(--bp-border); border-radius: var(--bp-radius-sm); text-align: right; font-size: 12px; font-weight: 400; }
.people-planned-half { background: var(--bp-surface-muted); }
.people-logged-half { background: var(--bp-logged); border-color: var(--bp-logged-border); }
.people-hours-label { display: block; color: var(--bp-text-muted); font-size: 10px; font-weight: 400; text-align: left; }
.people-week-totals > span { border-color: transparent; background: transparent; font-weight: 500; }
.people-week-totals .people-logged-half { border-left-color: var(--bp-section-border); }
.people-grid button.logging-cell-button { width: 100%; min-height: 32px; margin: 0; padding: var(--bp-space-1); font-size: 12px; }
.logging-cell-button.is-unlogged { background: var(--bp-surface); border-style: dashed; color: var(--bp-text-muted); }
.logging-cell-button:hover:not(:disabled) { border-color: var(--bp-accent); }

.app-shell:has(.planning-theme, .home-page), .login-page { background: #edf8ff url("images/blueplan-waves.svg") center bottom / cover no-repeat; }
.app-shell:has(.planning-theme, .home-page) .app-sidebar { background: rgb(249 252 255 / 45%); }
.app-shell:has(.planning-theme, .home-page) .app-sidebar::before { display: none; }
.planning-theme {
	--bp-border: #e0edf8;
	--bp-control-border: #b6cee5;
	--bp-text: #14243b;
	--bp-text-muted: #4d6885;
	--bp-hover: #edf7ff;
	--bp-selected: #dceeff;
	--bp-allocation: #edf4ff;
	--bp-allocation-border: #b5cef4;
	--bp-employee-surface: #e1f1ff;
	--bp-current-week: #eef5ff;
	--bp-error: #d21d33;
	--bp-success: #007d26;
	color: var(--bp-text);
}
.planning-theme .people-topbar { background: rgb(255 255 255 / 24%); border-bottom-color: transparent; }
.planning-theme .people-topbar h1 { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.planning-theme .people-view-label { font-size: 14px; }
.planning-theme .people-topbar button, .planning-theme .people-topbar select, .planning-theme .people-topbar input:not([type="checkbox"]) { background-color: #fafdff; box-shadow: 0 1px 2px rgb(40 91 130 / 4%); }
.planning-theme .people-topbar .button-primary { background: var(--bp-accent); border-color: var(--bp-accent); color: #fff; }
.planning-theme .people-topbar .button-primary:hover:not(:disabled) { background: var(--bp-accent-hover); }
.planning-theme .week-navigation > button:not(.people-icon-button) { background: #c9f1fc; border-color: #b6e8f6; font-weight: 600; }
.people-grid-surface { display: flex; flex: 1; min-height: 0; min-width: 0; margin: 16px 16px 20px; padding: 12px; border: 1px solid #d4eafa; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgb(28 112 169 / 10%); }
.planning-theme .people-workspace { margin: 0; border: 0; border-radius: 0; background: #fff; }
.planning-theme .people-grid .people-task-row > :last-child { border-right: 1px solid var(--bp-border); }
.planning-theme .people-grid tbody tr.people-task-row:last-child > * { border-bottom: 1px solid var(--bp-border); }
.planning-theme .people-grid tbody tr.people-task-row:last-child > :first-child { border-bottom-left-radius: 8px; border-bottom-color: var(--bp-border); }
.planning-theme .people-grid tbody tr.people-task-row:last-child > :last-child { border-bottom-right-radius: 8px; }
.planning-theme .people-grid .hierarchy-label { background: #fbfdff; }
.planning-theme .people-grid thead th { background: #fff; border-right: 0; box-shadow: none; }
.planning-theme .people-grid thead .people-week-heading + .people-week-heading { border-left: 1px solid var(--bp-border); }
.planning-theme .people-grid thead .current-week { background: #eef5ff; border-radius: 8px 8px 0 0; box-shadow: inset 0 2px var(--bp-accent); }
.planning-theme .people-header-label { font-size: 16px; font-weight: 700; }
.planning-theme .people-count { padding: 0 7px; border-radius: 6px; background: #d2f2ff; color: #174c73; font-size: 12px; font-weight: 600; }
.planning-theme .people-current-label { padding: 1px 6px; border-radius: 5px; background: #d8eaff; color: #184fb6; }
.planning-theme .people-grid .people-employee-row > * { border: 0; border-top: 12px solid #fff; background: var(--bp-employee-surface); background-clip: padding-box; box-shadow: none; }
.planning-theme .people-grid .people-employee-row > :not(:last-child) { box-shadow: inset -1px 0 #bad4eb; }
.planning-theme .people-employee-row > :first-child { border-radius: 10px 0 0 10px; border-top-left-radius: 10px 22px; }
.planning-theme .people-employee-row > :last-child { border-radius: 0 10px 10px 0; border-top-right-radius: 10px 22px; }
.planning-theme .people-employee-row .project-label-actions > .disclosure-button, .planning-theme .people-employee-name .disclosure-button { font-size: 16px; font-weight: 700; }
.planning-theme .people-avatar { background: linear-gradient(145deg, #d3edff, #b9dbff); color: #1354bc; font-size: 15px; font-weight: 700; }
.planning-theme .people-grid .people-group-row > * { height: 34px; background: #f0f7fe; font-weight: 600; }
.planning-theme .people-group-row > :first-child { border-radius: 8px 0 0 8px; }
.planning-theme .people-group-row > :last-child { border-radius: 0 8px 8px 0; }
.planning-theme .people-grid .people-project-row > * { background: #f7fbff; }
.planning-theme .people-grid .people-task-row > * { background: #fff; }
.planning-theme .people-grid .people-task-row > .hierarchy-label { background: #fff; border-bottom-color: var(--bp-border); }
.planning-theme .person-hours, .planning-theme .employee-hours-total, .planning-theme .people-grid .people-group-row > .numeric, .planning-theme .people-grid .people-project-row > .numeric { font-weight: 700; }
.planning-theme .people-grid .indent-2 { padding-left: 64px; }
.planning-theme .people-grid .indent-3 { padding-left: 76px; }
.planning-theme .task-order-handle { left: 32px; color: #40658a; }
.planning-theme .task-title { font-weight: 600; }
.planning-theme button.planning-cell-button.has-plan { border-left-width: 1px; border-color: #b5cef4; background: #edf4ff; box-shadow: inset 2px 0 #86ade6; }
.planning-theme button.planning-cell-button.has-plan.absence-plan { border-color: #e8c47e; background: #fff7e4; box-shadow: inset 2px 0 #b67920; }
.planning-theme button.planning-cell-button:hover:not(:disabled) { background: #e4f0ff; }
.planning-theme button.planning-cell-button.absence-plan:hover:not(:disabled) { background: #fff0cf; }
.planning-theme button.planning-cell-button:focus-visible { outline: 2px solid var(--bp-accent); outline-offset: -2px; }
.planning-theme .people-planned-half { border-color: #ccdff4; background: #f1f7ff; }
.planning-theme .people-week-totals > span { background: transparent; border-color: transparent; font-weight: 700; }
.planning-theme .people-week-totals .people-logged-half { border-left-color: var(--bp-section-border); }
.planning-theme .people-employee-row .people-week-totals .people-logged-half { border-left-color: #cddfeb; }

.planning-theme .projects-grid .project-task-band > * { border-top: 0; border-bottom: 1px solid var(--bp-border); background: #f1f7fd; background-clip: padding-box; }
.projects-grid .project-task-band > :not(:last-child) { border-right: 0; box-shadow: inset -1px 0 var(--bp-border); }
.projects-grid .project-task-band > :last-child { border-right: 0; border-radius: 0 8px 8px 0; }
.planning-theme .projects-grid .project-root-task > * { border-top: 6px solid #fff; background-color: #e9f4ff; }
.projects-grid .project-root-task > :last-child { border-top-right-radius: 8px 14px; }
.projects-grid .project-leaf-open > :last-child { border-bottom-right-radius: 0; }
.planning-theme .projects-grid .project-leaf-open > * { border-bottom: 0; }
.planning-theme .projects-grid .project-assignee-row > *, .planning-theme .projects-grid .project-assignee-row > .hierarchy-label { background: #fbfdff; }
.projects-grid .project-assignee-row > :last-child { border-right: 1px solid var(--bp-border); }
.projects-grid .project-leaf-end > :last-child { border-bottom-right-radius: 8px; }
.planning-theme .projects-grid .project-task-band > .project-tree-cell, .planning-theme .projects-grid .project-assignee-row > .project-tree-cell { background: #fff; border-right: 1px solid var(--bp-border); border-bottom: 0; box-shadow: none; }
.planning-tree-surface { position: absolute; inset: 0 0 0 12px; z-index: -1; display: flex; pointer-events: none; }
.planning-tree-surface-indent { flex: 0 0 var(--bp-tree-indent); }
.planning-tree-surface-fill { flex: 1; min-width: 0; background: #f1f7fd; border-bottom: 1px solid var(--bp-border); border-radius: 8px 0 0 8px; }
.project-root-task .planning-tree-surface-fill { background: #e9f4ff; }
.project-leaf-open .planning-tree-surface-fill { border-bottom: 0; border-bottom-left-radius: 0; }
.project-assignee-row .planning-tree-surface-fill { background: #fbfdff; border-left: 1px solid var(--bp-border); border-bottom: 1px solid var(--bp-border); border-radius: 0; }
.project-leaf-end .planning-tree-surface-fill { border-bottom-left-radius: 8px; }
.planning-theme .projects-grid .project-task-band > td, .planning-theme .projects-grid .project-assignee-row > td { background: #fff; }
.projects-grid .project-task-band .project-summary:not(.is-zero) { display: flex; align-items: center; justify-content: flex-end; min-height: 32px; margin-inline: -8px; padding: 4px 8px; border: 1px solid var(--bp-allocation-border); border-radius: 4px; background: var(--bp-allocation); }
.projects-grid .project-task-band td:has(> .project-summary:not(.is-zero)) + td > .project-summary:not(.is-zero) { border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.projects-grid .project-task-band td:has(+ td > .project-summary:not(.is-zero)) > .project-summary:not(.is-zero) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.projects-grid .project-summary { font-weight: 700; }
.projects-grid .project-summary.is-zero { color: var(--bp-text-muted); font-weight: 400; }
.planning-view-pending .people-page > fieldset { visibility: hidden; }
.projects-page { --bp-people-info-width: 440px; }
.projects-grid { --bp-week-width: 136px; }
.project-task-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding-block: 0 8px; }
.project-task-stats .task-indicators:empty { display: none; }
.project-insights { display: contents; }
.project-insight { display: inline-flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid #d5e3f4; border-radius: 9px; color: var(--bp-text-muted); background: #f3f8fe; font-size: 12px; font-weight: 500; white-space: nowrap; }
.project-insight .navigation-icon { width: 14px; height: 14px; flex-shrink: 0; }
.project-insight-value { color: var(--bp-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.project-insight-value.is-empty { color: inherit; font-weight: 400; }
.project-insight-logged { color: var(--bp-accent); border-color: #cce0ff; background: #e2efff; }
.project-insight-logged .project-insight-value { color: inherit; }
.project-insight.is-over-budget { color: var(--bp-error); border-color: #ffd0d7; background: #fff0f2; }
.project-insight.is-over-budget .project-insight-value { color: inherit; }

@media (max-width: 767px) {
	.app-shell:has(.people-page) .sidebar-heading, .app-shell:has(.shell-page-header) .sidebar-heading { min-height: 0; padding-block: var(--bp-space-3); }
	.app-main > .shell-page-header { margin: calc(-1 * var(--bp-space-6)) calc(-1 * var(--bp-space-4)) var(--bp-space-6); padding-inline: var(--bp-space-4); }
	.app-sidebar { position: sticky; top: 0; width: 100%; max-height: 100dvh; border-bottom: 1px solid transparent; }
	.sidebar-heading { padding: var(--bp-space-3) var(--bp-space-4); }
	.navigation-toggle { display: inline-block; }
	.sidebar-content { display: none; }
	.sidebar-content.is-open { display: flex; }
	.app-navigation { padding-bottom: var(--bp-space-3); }
	.app-main { margin-left: 0; padding: var(--bp-space-6) var(--bp-space-4); }
	.people-page { --bp-people-info-width: 184px; }
	.projects-grid .planning-tree-label { --bp-tree-indent: 10px; }
	.people-topbar { gap: var(--bp-space-2); padding: var(--bp-space-2); }
	.people-toolbar-controls { margin-left: 0; width: 100%; }
	.people-week-controls { display: contents; }
	.people-view-label { margin-left: auto; }
	.people-grid-surface { margin: 8px; padding: 8px; border-radius: 12px; }
	.planning-theme .people-view-label { font-size: 12px; }
	.planning-theme .people-grid .indent-2 { padding-left: 48px; }
	.planning-theme .people-grid .indent-3 { padding-left: 56px; }
	.planning-theme .task-order-handle { left: 22px; }
}
