.ps62 {
  --ps62-teal: var(--brand-primary, #087a78);
  --ps62-ink: #203536;
  --ps62-muted: #526769;
  --ps62-line: #d5dfe0;
  --ps62-pale: #edf7f5;
  --ps62-label-width: 224px;
  background: #fff;
  color: var(--ps62-ink);
  font: 13px/1.4 Arial, sans-serif;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  isolation: isolate;
  letter-spacing: 0;
}
.ps62 *, .ps62 *::before, .ps62 *::after { box-sizing: border-box; letter-spacing: 0; }
.ps62 h2, .ps62 h3, .ps62 p { margin: 0; color: inherit; }
.ps62 h2 { font-size: 14px; font-weight: 700; }
.ps62 h3 { font-size: 13px; font-weight: 700; margin: 4px 0 10px; }
.ps62 small { display: block; font-size: 11px; line-height: 1.4; color: var(--ps62-muted); }
.ps62 button, .ps62 input, .ps62 select, .ps62 textarea { font: inherit; color: inherit; margin: 0; box-shadow: none; }
.ps62 button { cursor: pointer; text-transform: none; transform: none; }
.ps62 :is(button, input, select, textarea):disabled { cursor: default; opacity: .58; }
.ps62 :is(button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid #126a9a; outline-offset: 2px; }
.ps62 input:not([type="checkbox"]), .ps62 select, .ps62 textarea {
  width: 100%; min-width: 0; height: 32px; padding: 5px 8px; border: 1px solid #aebfc1; border-radius: 3px; background: #fff;
}
.ps62 input[type="checkbox"] { appearance: auto; width: 16px !important; height: 16px !important; min-width: 16px; min-height: 16px; padding: 0; margin: 0; border-radius: 2px; accent-color: var(--ps62-teal); }
.ps62 input[aria-invalid="true"] { border-color: #a72f38; outline: 1px solid #a72f38; }
.ps62 input[data-ps62-dirty] { background: #fff4d8; border-color: #9a731d; }
.ps62 label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-weight: 400; }
.ps62-icon { display: inline-flex; width: 16px; height: 16px; min-width: 16px; align-items: center; justify-content: center; pointer-events: none; }
.ps62-icon svg { display: block; width: 16px; height: 16px; stroke-width: 1.75; }
.ps62-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--ps62-line); border-radius: 3px; padding: 7px; background: #fff; }
.ps62-command { width: auto; max-width: 100%; padding: 6px 9px; }
.ps62-button span:not(.ps62-icon) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps62-button:hover:not(:disabled) { background: var(--ps62-pale); border-color: #82ada9; }
.ps62 [aria-pressed="true"] { background: var(--ps62-pale); color: #065f5c; border-color: #76aaa4; }
.ps62-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--ps62-teal); overflow-x: auto; scrollbar-width: thin; background: #f4f7f7; }
.ps62-topbar { display: flex; align-items: center; background: #f4f7f7; border-bottom: 2px solid var(--ps62-teal); }
.ps62-topbar .ps62-tabs { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
.ps62-topbar > .ps62-button { margin: 0 8px; }
.ps62-tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 43px; padding: 10px 18px; border: 0; border-right: 1px solid var(--ps62-line); border-radius: 0; background: transparent; white-space: nowrap; font-weight: 600; }
.ps62-tab[aria-selected="true"] { background: var(--ps62-teal); color: #fff; }
.ps62-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-bottom: 1px solid var(--ps62-line); }
.ps62-toolbar > label { flex-direction: row; align-items: center; }
.ps62-toolbar label select { width: 95px; }
.ps62-date-controls { display: flex; align-items: center; gap: 4px; }
.ps62-date-controls input[type="date"] { width: 143px; }
.ps62-toolbar-end { display: flex; gap: 4px; margin-left: auto; }
.ps62-segments { display: flex; flex-wrap: nowrap; gap: 0; }
.ps62-segments .ps62-button { border-radius: 0; margin-left: -1px; }
.ps62-segments .ps62-icon { display: none; }
.ps62-check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; min-height: 28px; cursor: pointer; }
.ps62-check span { min-width: 0; overflow-wrap: anywhere; }
.ps62-section-head { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 5px 12px; background: #f4f7f7; border-bottom: 1px solid var(--ps62-line); }
.ps62-board { --ps62-label-width: 400px; border-bottom: 2px solid #b7ccce; }
.ps62-board-search { width: 230px; max-width: 52%; margin-left: auto; margin-right: 8px; }
.ps62-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: stretch; min-width: 0; }
.ps62-no-sidebar { grid-template-columns: minmax(0, 1fr); }
.ps62-sidebar { display: flex; flex-direction: column; gap: 10px; background: #f8fafa; padding: 12px; border-left: 1px solid var(--ps62-line); min-width: 0; }
.ps62-sidebar > .ps62-command { justify-content: flex-start; height: auto; min-height: 32px; }
.ps62-sidebar > .ps62-command span:not(.ps62-icon) { white-space: normal; text-align: left; overflow-wrap: anywhere; }
.ps62-sidebar h3:not(:first-child) { border-top: 1px solid var(--ps62-line); padding-top: 12px; margin-top: 5px; }
.ps62-search { flex-direction: row !important; align-items: center; gap: 6px; }
.ps62-search input { width: 100%; }
.ps62-filter-list { display: flex; flex-direction: column; gap: 4px; max-height: 230px; overflow-y: auto; }
.ps62-scroll { min-width: 0; max-width: 100%; overflow: auto; scrollbar-width: thin; overscroll-behavior-x: contain; position: relative; }
.ps62-board .ps62-scroll { min-height: 232px; max-height: 320px; }
.ps62-board .ps62-sidebar { max-height: 320px; overflow-y: auto; }
.ps62-timeline { width: max(100%, calc(var(--ps62-label-width) + var(--ps62-days) * var(--ps62-day-width))); }
.ps62-timeline-row { display: grid; grid-template-columns: var(--ps62-label-width) repeat(var(--ps62-days), minmax(0, 1fr)); border-bottom: 1px solid var(--ps62-line); }
.ps62-timeline-header { position: sticky; top: 0; z-index: 5; background: #f4f7f7; min-height: 42px; }
.ps62-sticky { position: sticky; left: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 9px 12px; background: #fff; border-right: 1px solid #b7ccce; }
.ps62-sticky strong, .ps62-sticky span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps62-sticky span { font-size: 11px; color: var(--ps62-muted); }
.ps62-sticky.ps62-label-grid { display: grid; grid-template-columns: 172px 102px 102px; align-items: center; padding: 0 12px; }
.ps62-label-grid > * { padding: 8px 7px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps62-label-grid > :not(:first-child) { border-left: 1px solid var(--ps62-line); padding-left: 8px; }
.ps62-timeline-header .ps62-sticky { background: #f4f7f7; }
.ps62-date { display: flex; align-items: center; justify-content: center; padding: 7px 4px; border-right: 1px solid var(--ps62-line); white-space: nowrap; font-size: 12px; }
.ps62-track { min-width: 0; position: relative; min-height: 64px; }
.ps62-drop-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--ps62-days), minmax(0, 1fr)); }
.ps62-drop-cell { border-right: 1px solid var(--ps62-line); }
.ps62-drop-cell[data-ps62-drag-over] { background: #d0ece7; outline: 2px inset #14796f; }
.ps62-bars { position: relative; display: grid; grid-template-columns: repeat(var(--ps62-days), minmax(0, 1fr)); grid-template-rows: repeat(var(--ps62-lanes), 48px); gap: 4px 0; padding: 5px 0; pointer-events: none; }
.ps62-booking { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; overflow: hidden; background: #dff0ec; color: #174e49; border: 1px solid #93c3b9; border-left: 3px solid #117c70; border-radius: 3px; margin: 0 3px; padding: 5px 7px; text-align: left; pointer-events: auto; }
.ps62-booking:hover { background: #c9e6df; }
.ps62-booking strong, .ps62-booking span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.ps62-booking strong { font-size: 12px; }
.ps62-booking span { font-size: 11px; }
.ps62-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; margin: 0; min-width: 100%; width: max-content; background: #fff; }
.ps62-table :is(th, td) { padding: 8px 10px; border: 0; border-right: 1px solid var(--ps62-line); border-bottom: 1px solid var(--ps62-line); text-align: left; vertical-align: middle; white-space: nowrap; line-height: 1.4; }
.ps62-table th { font-weight: 600; background: #f4f7f7; text-transform: none; }
.ps62-table thead th { height: 50px; position: sticky; top: 0; z-index: 2; }
.ps62-table tbody th { background: #fff; }
.ps62-table :is(th, td) strong { display: block; font-weight: 600; }
.ps62-table tbody tr:hover > :is(td, th) { background: #f7fbfa; }
.ps62-week-table :is(th, td):first-child, .ps62-actual-table :is(th, td):first-child { width: var(--ps62-label-width); min-width: var(--ps62-label-width); max-width: var(--ps62-label-width); position: sticky; left: 0; z-index: 3; overflow: hidden; text-overflow: ellipsis; }
.ps62-week-table thead th:first-child, .ps62-actual-table thead th:first-child { z-index: 4; }
.ps62-week-table :is(th, td):not(:first-child) { min-width: 116px; width: 116px; }
.ps62-table input[type="number"] { width: 78px; text-align: right; height: 31px; padding: 4px 5px; }
.ps62-resource-summary > :is(th, td) { background: #edf5f3 !important; height: 61px; }
.ps62-resource-summary th .ps62-button { vertical-align: middle; background: transparent; border-color: transparent; margin-right: 3px; }
.ps62-resource-summary th > span { vertical-align: middle; }
.ps62-actual-table :is(th, td):not(:first-child) { min-width: 105px; width: 105px; }
.ps62-actual-table :is(th, td):last-child { min-width: 87px; width: 87px; }
.ps62-row-actions { white-space: nowrap; }
.ps62-row-actions .ps62-button { margin-right: 3px; }
.ps62-sheet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--ps62-line); }
.ps62-sheet-meta label { min-width: 190px; }
.ps62-sheet-meta strong { margin-left: auto; }
.ps62-status { padding: 4px 8px; font-size: 12px; background: #edf5f3; border-left: 3px solid var(--ps62-teal); }
.ps62-calendar { min-width: max(100%, calc(58px + var(--ps62-days) * 156px)); }
.ps62-agenda-head, .ps62-agenda-body { display: grid; grid-template-columns: 58px repeat(var(--ps62-days), minmax(0, 1fr)); }
.ps62-agenda-head { position: sticky; top: 0; z-index: 4; background: #f4f7f7; }
.ps62-agenda-head > div { min-height: 42px; padding: 11px 5px; text-align: center; border: 0 solid var(--ps62-line); border-width: 0 1px 1px 0; white-space: nowrap; }
.ps62-agenda-body { padding-bottom: 14px; }
.ps62-hour-labels { position: sticky; left: 0; z-index: 3; background: #fff; height: 672px; }
.ps62-hour-labels span { position: absolute; right: 7px; font-size: 11px; transform: translateY(-6px); }
.ps62-hour-labels span:first-child { transform: none; }
.ps62-agenda-day { position: relative; height: 672px; display: grid; grid-template-rows: repeat(24, 28px); border-right: 1px solid var(--ps62-line); }
.ps62-agenda-slot { display: block; border: 0; border-bottom: 1px dotted #d9e2e2; border-radius: 0; background: transparent; padding: 0; min-height: 0; width: 100%; height: 28px; }
.ps62-agenda-slot:nth-child(2n) { border-bottom-style: solid; }
.ps62-agenda-slot:hover:not(:disabled) { background: var(--ps62-pale); }
.ps62-agenda-day .ps62-booking { position: absolute; margin: 0; z-index: 1; }
.ps62-approvals { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-width: 0; }
.ps62-approval-groups { border-left: 0; border-right: 1px solid var(--ps62-line); }
.ps62-approval-content { min-width: 0; }
.ps62-approval-actions { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--ps62-line); }
.ps62-approval-actions label { flex: 1 1 200px; }
.ps62-review-table { min-width: 950px; width: 100%; }
.ps62-review-table th:nth-child(1) { width: 42px; }
.ps62-review-table th:nth-child(2) { width: 170px; }
.ps62-review-table th:nth-child(3) { width: 250px; }
.ps62-review-table th:nth-child(4) { width: 115px; }
.ps62-review-table th:nth-child(5), .ps62-review-table th:nth-child(6) { width: 75px; }
.ps62-outbox h3 { padding: 14px 12px 0; }
.ps62-outbox .ps62-table { min-width: 580px; width: 100%; }
.ps62-outbox .ps62-table td { white-space: normal; overflow-wrap: anywhere; }
.ps62-outbox .ps62-command { display: flex; margin-top: 8px; max-width: 100%; }
.ps62-empty { color: var(--ps62-muted); padding: 22px 16px !important; font-weight: 400; font-size: 13px; }
.ps62-notice { padding: 9px 12px; border-bottom: 1px solid #acccc6; background: #edf7f2; color: #175e44; }
.ps62-notice[hidden] { display: none; }
.ps62-error { background: #fff0ef; border-color: #e0b2af; color: #922b32; }
.ps62-dialog { width: min(530px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid #9bb6b5; border-radius: 6px; padding: 0; color: var(--ps62-ink); background: #fff; }
.ps62-dialog::backdrop { background: rgb(13 39 39 / 38%); }
.ps62-dialog form { display: grid; gap: 12px; padding: 18px; }
.ps62-dialog h2 { font-size: 17px; margin: 0 0 3px; }
.ps62-dialog fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 0; margin: 0; border: 0; }
.ps62-dialog legend { font-weight: 600; margin-bottom: 6px; }
.ps62-dialog select[multiple] { height: 98px; }
.ps62-dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.ps62-dialog .ps62-km-line { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; }
.ps62-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ps62:fullscreen { width: 100vw; height: 100vh; overflow: auto; padding: 0; }
/* The full application shell owns the viewport; each dense board owns its scroll. */
.main-area:has([data-planning-suite-root]) { height: 100dvh; }
.main-area:has([data-planning-suite-root]) > .topbar { flex-shrink: 0; }
html .content:has([data-planning-suite-root]) {
  display: flex; flex-direction: column; flex: 1; min-height: 0; max-width: none;
  padding: 8px 12px 12px; overflow: hidden;
}
.planning-workplace-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; flex-shrink: 0; }
.planning-workplace-switch h1 { font-size: 18px; margin: 0 auto 0 0; letter-spacing: 0; }
.planning-workplace-switch .btn { min-height: 32px; padding: 6px 10px; font-size: 13px; }
[data-planning-suite-root] { display: flex; flex-direction: column; flex: 1; min-height: 0; min-width: 0; }
[data-planning-suite-root] > .ps62 { display: flex; flex-direction: column; flex: 1; min-height: 0; }
[data-planning-suite-root] .ps62-topbar, [data-planning-suite-root] .ps62-notice { flex-shrink: 0; }
[data-planning-suite-root] .ps62 > [role="tabpanel"] { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; }
[data-planning-suite-root] .ps62-toolbar, [data-planning-suite-root] .ps62-sheet-meta { flex-shrink: 0; }
[data-planning-suite-root] .ps62-board { display: flex; flex-direction: column; flex: 1; min-height: 140px; }
[data-planning-suite-root] .ps62-section-head { flex-shrink: 0; }
[data-planning-suite-root] .ps62-workspace { flex: 1; min-height: 0; }
[data-planning-suite-root] .ps62-scroll, [data-planning-suite-root] .ps62-sidebar { min-height: 0; max-height: none; overflow: auto; }
[data-planning-suite-root] .ps62-approvals { flex: 1; min-height: 0; }
[data-planning-suite-root] .ps62-approval-content { overflow: auto; }
@media (max-width: 850px) {
  .ps62 { --ps62-label-width: 200px; }
  .ps62-workspace { grid-template-columns: minmax(0, 1fr) 190px; }
  .ps62-no-sidebar { grid-template-columns: minmax(0, 1fr); }
  .ps62-tab { padding: 10px 13px; }
  .ps62-approvals { grid-template-columns: 190px minmax(0, 1fr); }
}
@media (max-width: 620px) {
  html .content:has([data-planning-suite-root]) { padding: 6px; }
  .content .planning-workplace-switch { flex-direction: row; flex-wrap: nowrap; }
  .planning-workplace-switch h1 { font-size: 16px; }
  .content .planning-workplace-switch .btn { width: auto; flex: 0 0 auto; padding: 6px; font-size: 12px; }
  .ps62-board { --ps62-label-width: 156px; }
  .ps62-sticky.ps62-label-grid { display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 5px 8px; }
  .ps62-label-grid > *, .ps62-label-grid > :not(:first-child) { border: 0; padding: 0; }
  .ps62-timeline-header .ps62-label-grid > :not(:first-child) { display: none; }
  [data-planning-suite-root] .ps62-workspace:has(.ps62-sidebar) { grid-template-rows: minmax(100px, 1fr) minmax(80px, 1fr); }
  [data-planning-suite-root] .ps62-approvals { overflow: auto; display: block; }
  [data-planning-suite-root] .ps62-approval-groups { max-height: 150px; }
  .ps62-tab { padding: 8px 10px; }
  .ps62-toolbar .ps62-command { padding-inline: 6px; }
  .ps62-workspace, .ps62-approvals { grid-template-columns: minmax(0, 1fr); }
  .ps62-sidebar { border-left: 0; border-top: 1px solid var(--ps62-line); }
  .ps62-board .ps62-sidebar { max-height: 230px; }
  .ps62-approval-groups { border-right: 0; max-height: 210px; overflow: auto; }
  .ps62-toolbar { padding: 8px; gap: 8px; }
  .ps62-date-controls { width: 100%; }
  .ps62-date-controls input[type="date"] { flex: 1 1 auto; width: 120px; }
  .ps62-toolbar-end { margin-left: 0; }
  .ps62-tab { font-size: 12px; }
  .ps62-board .ps62-sticky { position: static; }
}
@media print {
  .ps62-tabs, .ps62-toolbar, .ps62-sidebar, .ps62-row-actions, .ps62-notice, .ps62-dialog, .ps62-sheet-meta select { display: none !important; }
  .ps62-workspace { display: block; }
  .ps62-scroll { overflow: visible; }
  .ps62 { font-size: 10px; --ps62-label-width: 155px; }
  .ps62-table { min-width: 0; width: 100%; table-layout: auto; }
  .ps62-actual-table :is(th, td):not(:first-child) { min-width: 35px; width: auto; padding: 4px; }
  .ps62-table input[type="number"] { width: 47px; border: 0; }
}
