#view-planning2 { --p-vacation: #76dab0; --p-transfer: #83baff; --p-dismissal: #ff9c95; --p-hire: #ddc27c; --p-reserve: #c4acd9; }
.p-heading, .p-commands, .p-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-heading { margin: 0 0 22px; }
.p-heading h3 { font-size: 20px; margin: 0 0 6px; text-transform: capitalize; }
.p-heading > div > span { color: var(--muted); font-size: 12px; }
.p-commands { justify-content: flex-end; flex-wrap: wrap; }
.p-commands svg { width: 16px; height: 16px; }
.p-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 20px 0; margin-bottom: 16px; border-block: 1px solid var(--border); background: rgba(37,44,48,.5); box-shadow: inset 0 1px #ffffff05; }
.p-stat { padding: 0 24px; display: flex; align-items: center; gap: 18px; border-right: 1px solid var(--border); }
.p-stat:last-child { border: 0; }
.p-stat > svg { width: 27px; height: 27px; color: var(--muted); }
.p-stat span { color: var(--muted); font-size: 12px; }
.p-stat strong { display: block; font-size: 28px; margin-top: 3px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.p-stat.vacation strong, .p-stat.vacation svg, .p-kind.vacation { color: var(--p-vacation); }
.p-stat.transfer strong, .p-stat.transfer svg, .p-kind.transfer { color: var(--p-transfer); }
.p-stat.dismissal strong, .p-stat.dismissal svg, .p-kind.dismissal { color: var(--p-dismissal); }
.p-kind.hire { color: var(--p-hire); } .p-kind.reserve { color: var(--p-reserve); }
.p-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.p-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 14px 2px; border-radius: 0; font-size: 13px; }
.p-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.p-tabs button:hover { color: var(--text); }
.p-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-toolbar > select { flex: 1 1 145px; max-width: 230px; }
.p-search { flex: 1.3 1 175px; min-width: 160px; display: flex; align-items: center; gap: 9px; background: #ffffff04; border: 1px solid var(--border); border-radius: 6px; padding-left: 12px; }
.p-search svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.p-search input { width: 100%; min-width: 0; border: 0 !important; background: transparent !important; }
#view-planning2 input, #view-planning2 select { height: 38px; min-width: 0; padding: 8px 10px; background: #ffffff04; border: 1px solid var(--border); color: var(--text); border-radius: 6px; font-size: 12px; }
#view-planning2 select option, .planner-dialog select option { background: #242b30; color: var(--text); }
.p-month-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.p-month-nav input { width: 158px; }
.p-month-nav .icon-button { flex-basis: 30px; width: 30px; }
.p-chevron { display: flex; }
.p-chevron svg { width: 16px; height: 16px; }
.p-chevron.prev { transform: rotate(90deg); } .p-chevron.next { transform: rotate(-90deg); }
.p-subfilters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 16px; }
.p-subfilters > span { font-size: 11px; color: var(--muted); margin-left: auto; }
.p-subfilters label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
#view-planning2 .p-subfilters input, #view-planning2 .p-subfilters select { height: 32px; font-size: 11px; padding: 5px 8px; }
.p-text-button { border: 0; background: transparent; color: var(--accent-2); padding: 6px 0; font-size: 12px; }
.p-timeline { border: 1px solid var(--border); border-radius: 8px; background: rgba(36,43,47,.52); overflow: auto; max-height: 470px; scrollbar-width: thin; box-shadow: inset 0 1px #ffffff09; }
.p-timeline-heading, .p-timeline-row { display: grid; grid-template-columns: 210px minmax(0,1fr); }
.p-timeline-heading { position: sticky; top: 0; z-index: 2; background: #242b2f; border-bottom: 1px solid var(--border); }
.p-timeline-heading > span { padding: 16px 14px; font-size: 12px; display: flex; align-items: center; }
.p-days, .p-track-grid, .p-bars { display: grid; grid-template-columns: repeat(var(--days),minmax(0,1fr)); }
.p-days > span { display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 5px; border-left: 1px solid #ffffff07; font-size: 11px; }
.p-days b { font-weight: 500; } .p-days small { color: var(--muted); font-size: 9px; }
.p-days .weekend b { color: #c6a19e; } .p-days .today { color: var(--accent-2); background: #daa52012; }
.p-timeline-row { border-bottom: 1px solid #ffffff08; }
.p-timeline-row:last-child { border-bottom: 0; }
.p-timeline-row:hover { background: #ffffff03; }
.p-timeline-person { display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; gap: 4px; min-width: 0; }
.p-timeline-person strong { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.p-timeline-person > span { font-size: 10px; color: var(--muted); }
.p-track { position: relative; min-height: 52px; display: flex; align-items: center; }
.p-track-grid { position: absolute; inset: 0; pointer-events: none; }
.p-day-cell { border-left: 1px solid #ffffff06; }
.p-day-cell.weekend, .p-days .weekend { background: rgba(255,200,190,.035); }
.p-day-cell.today { border-left: 1px solid #daa52080; background: #daa52005; }
.p-bars { width: 100%; position: relative; padding: 8px 0; grid-template-rows: repeat(var(--lanes),24px); gap: 4px 0; }
.p-bar { --bar: var(--p-vacation); border: 1px solid color-mix(in srgb,var(--bar) 50%,transparent); border-radius: 4px; background: color-mix(in srgb,var(--bar) 12%,transparent); color: var(--bar); margin: 0 2px; padding: 0 7px; text-align: left; font-size: 10px; font-weight: 650; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p-bar.transfer { --bar: var(--p-transfer); } .p-bar.dismissal { --bar: var(--p-dismissal); } .p-bar.hire { --bar: var(--p-hire); } .p-bar.reserve { --bar: var(--p-reserve); }
.p-bar:hover { background: color-mix(in srgb,var(--bar) 26%,transparent); box-shadow: 0 2px 12px #0003; }
.p-bar.actual { background: color-mix(in srgb,var(--bar) 76%,#172620); color: #0e241b; border-color: transparent; }
.p-bar.point { position: relative; overflow: visible; padding: 0; min-width: 7px; margin-inline: 3px; background: color-mix(in srgb,var(--bar) 60%,#263038); }
.p-bar.point span { position: absolute; left: calc(100% + 7px); top: 50%; transform: translateY(-50%); pointer-events: none; }
.p-bar.point-end span { left: auto; right: calc(100% + 7px); }
.p-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 0; font-size: 10px; color: var(--muted); }
.p-legend > span { display: flex; align-items: center; gap: 6px; }
.p-legend i { width: 8px; height: 8px; border-radius: 2px; }
.p-legend .vacation { background: var(--p-vacation); } .p-legend .transfer { background: var(--p-transfer); } .p-legend .dismissal { background: var(--p-dismissal); } .p-legend .hire { background: var(--p-hire); } .p-legend .reserve { background: var(--p-reserve); }
.p-legend-right { margin-left: auto; } .p-legend .outline { border: 1px solid var(--muted); } .p-legend .filled { background: var(--muted); }
.p-calendar-mobile { display: none; }
.p-upcoming { margin-top: 22px; }
.p-section-title { margin-bottom: 14px; }
.p-section-title h4 { margin: 0; font-size: 15px; font-weight: 650; }
.p-section-title > span { color: var(--muted); font-size: 12px; }
.p-table-wrap { width: 100%; border-block: 1px solid var(--border); }
.p-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 12px; }
.p-table th { color: var(--muted); text-align: left; font-weight: 500; font-size: 11px; background: #ffffff03; padding: 12px 10px; }
.p-table td { padding: 13px 10px; border-top: 1px solid #ffffff08; overflow-wrap: anywhere; line-height: 1.55; }
.p-table th:first-child { width: 14%; } .p-table th:nth-child(2) { width: 21%; } .p-table th:last-child { width: 38px; }
.p-table tr:hover td { background: #ffffff03; }
.p-table .icon-button { height: 28px; min-height: 28px; width: 28px; background: transparent; border: 0; }
.p-table .icon-button svg { width: 14px; height: 14px; }
.p-person-link { padding: 0; border: 0; background: transparent; text-align: left; color: var(--text); font-size: 12px; font-weight: 650; line-height: 1.55; }
.p-person-link:hover { color: var(--accent-2); }
.p-route-arrow { color: var(--faint); padding-inline: 3px; }
.p-kind { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.p-kind svg { width: 14px; height: 14px; flex-shrink: 0; }
.p-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.p-status i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.p-status.approved, .p-status.retained { color: var(--good); } .p-status.done { color: var(--blue); } .p-status.in_progress { color: var(--accent-2); }
.p-warning { display: block; color: var(--accent-2); font-size: 10px; margin-top: 4px; }
.p-empty { text-align: center; padding: 54px 16px; border-block: 1px solid var(--border); background: #ffffff02; }
.p-empty > svg { width: 34px; height: 34px; color: var(--faint); margin-bottom: 12px; }
.p-empty h3 { font-size: 15px; color: var(--muted); font-weight: 500; margin: 0 0 18px; }
.p-history-filters { display: flex; align-items: end; gap: 12px; padding: 18px 0; }
.p-history-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.p-history-filters > span { margin: 0 0 10px auto; color: var(--muted); font-size: 11px; }
.p-history-person { border-bottom: 1px solid var(--border); }
.p-history-person summary { display: flex; align-items: center; gap: 14px; padding: 16px 0; cursor: pointer; list-style: none; }
.p-history-person summary::-webkit-details-marker { display: none; }
.p-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px; background: #ffffff07; color: var(--blue); font-size: 12px; }
.p-history-person summary strong { font-weight: 600; font-size: 13px; }
.p-history-person summary small { display: block; font-size: 11px; margin-top: 5px; color: var(--muted); }
.p-history-count { margin-left: auto; color: var(--muted); font-size: 11px; }
.p-history-person summary svg { width: 16px; height: 16px; } .p-history-person[open] summary svg { transform: rotate(180deg); }
.p-history-person ol { list-style: none; padding: 0 0 16px 48px; margin: 0; }
.p-history-person li { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; border-left: 1px solid #83baff40; padding: 10px 18px 20px; font-size: 12px; }
.p-history-person li time { color: var(--muted); }
.p-history-person li p { color: var(--muted); margin: 5px 0; font-size: 11px; }
.p-budget-total { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 0 26px; border-top: 1px solid var(--border); }
.p-budget-total > div + div { border-left: 1px solid var(--border); padding-left: 24px; }
.p-budget-total > div > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.p-delta { font-variant-numeric: tabular-nums; font-weight: 650; }
.p-delta.saving { color: var(--good); } .p-delta.growth { color: var(--bad); }
.p-budget-total .p-delta { font-size: 27px; }
.p-budget-total p { color: var(--muted); font-size: 12px; margin: 8px 0 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-budget-total p b { color: var(--text); font-weight: 600; }
.p-budget-projects th:first-child { width: 17%; } .p-budget-projects th:nth-child(2) { width: 13%; } .p-budget-projects th:last-child { width: 18%; }
.p-budget-projects tbody th { background: transparent; font-size: 12px; color: var(--text); font-weight: 600; border-top: 1px solid var(--border); }
.p-budget-note { font-size: 10px; line-height: 1.6; color: var(--faint); margin: 12px 0 28px; }
.planner-dialog { color: var(--text); padding: 0; border: 1px solid var(--border-strong); border-radius: 8px; background: rgba(31,38,43,.93); backdrop-filter: blur(36px) saturate(120%); box-shadow: inset 0 1px #ffffff12, 0 30px 120px #0008; width: min(610px,calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto; scrollbar-width: thin; }
.planner-dialog[open] { animation: lf-enter 180ms ease-out; }
.planner-dialog::backdrop { background: rgba(7,11,14,.5); backdrop-filter: blur(5px); }
.p-event-form { padding: 24px; }
.p-event-form header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.p-kicker { font-size: 11px; color: var(--muted); display: block; margin-bottom: 7px; }
.p-event-form h3, .p-bulk h3 { font-size: 19px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.p-event-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.p-type-switch { display: flex; border-bottom: 1px solid var(--border); gap: 5px; margin-bottom: 20px; flex-wrap: wrap; }
.p-type-switch button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 10px 8px; font-size: 12px; color: var(--muted); }
.p-type-switch button.active { color: var(--accent-2); border-bottom-color: var(--accent); }
.p-form-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px 14px; }
.p-wide { grid-column: 1 / -1; }
.p-form-fields label, .p-field { display: grid; gap: 8px; font-size: 11px; color: var(--muted); min-width: 0; }
.p-form-fields input, .p-form-fields select, .p-form-fields textarea { background: rgba(13,19,23,.3); border: 1px solid var(--border-strong); border-radius: 5px; min-width: 0; width: 100%; padding: 10px 11px; font-size: 13px; color: var(--text); min-height: 40px; }
.p-form-fields textarea { resize: vertical; min-height: 80px; }
.p-form-fields input:disabled { opacity: .7; }
.p-employee-context { font-size: 11px; color: var(--muted); line-height: 1.65; margin-top: -6px; }
.p-employee-context span { padding-inline: 4px; color: var(--faint); }
.p-picker { position: relative; }
.p-picker-results { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 3; background: #282f34; border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: 0 12px 30px #0005; max-height: 250px; overflow-y: auto; padding: 5px; }
.p-picker-results[hidden] { display: none; }
.p-picker-results button { display: block; width: 100%; padding: 11px 10px; text-align: left; border: 0; background: transparent; border-radius: 4px; color: var(--text); }
.p-picker-results button:hover, .p-picker-results button[aria-selected="true"] { background: #daa52016; }
.p-picker-results strong { font-size: 12px; font-weight: 650; } .p-picker-results span { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.p-picker-results > p { padding: 6px 12px; }
.p-actual { border-block: 1px solid var(--border); padding: 13px 0; }
.p-actual summary { color: var(--good); cursor: pointer; font-size: 12px; }
.p-actual > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.p-event-form footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.p-event-form footer [data-p-history] { margin-right: auto; }
.p-event-form footer svg { width: 15px; height: 15px; }
.p-form-message:not(:empty), .p-conflicts:not(:empty) { margin-top: 16px; padding: 12px 0; color: var(--bad); font-size: 12px; line-height: 1.6; border-top: 1px solid var(--border); }
.p-conflicts:not(:empty) { color: var(--accent-2); } .p-conflicts p { margin: 3px 0; }
.p-confirm { position: sticky; bottom: 0; padding: 18px 24px; background: #293135; border-top: 1px solid var(--border-strong); box-shadow: 0 -10px 30px #0003; }
.p-confirm p { font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.p-confirm > div { display: flex; justify-content: flex-end; gap: 8px; }
.p-bulk { padding: 24px; } .p-bulk p, .p-bulk li { font-size: 12px; color: var(--muted); line-height: 1.8; }
.p-bulk ul { padding-left: 18px; max-height: 250px; overflow-y: auto; }
.p-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.p-budget-preview { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 15px 0; margin-top: 16px; border-block: 1px solid var(--border); }
.p-budget-preview > span, .p-budget-preview small { color: var(--muted); font-size: 11px; }
.p-budget-preview small { grid-column: 1 / -1; }
.p-budget-preview > strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.p-budget-preview .saving { color: var(--good); } .p-budget-preview .growth { color: var(--bad); }
.p-stats, .p-timeline { background-image: linear-gradient(125deg,rgba(239,248,255,.035),transparent 55%); backdrop-filter: blur(20px) saturate(110%); }
@media (min-width: 1800px) { .p-timeline-heading, .p-timeline-row { grid-template-columns: 270px minmax(0,1fr); } .p-table { font-size: 13px; } .p-timeline-person strong, .p-person-link { font-size: 13px; } .p-bars { grid-template-rows: repeat(var(--lanes),28px); } .p-timeline { max-height: 560px; } }
@media (max-width: 1300px) { .p-toolbar { gap: 8px; } .p-toolbar > select { max-width: none; } .p-month-nav { margin-left: 0; } .p-timeline-heading, .p-timeline-row { grid-template-columns: 175px minmax(0,1fr); } .p-stat { padding-inline: 16px; gap: 12px; } .p-stat strong { font-size: 25px; } .p-stat > svg { width: 23px; } .p-kind svg { display: none; } .p-table td, .p-table th { padding-inline: 7px; } }
@media (max-width: 760px) {
  .p-heading { align-items: flex-start; gap: 8px; margin-bottom: 18px; } .p-heading h3 { font-size: 18px; } .p-heading .p-commands .ghost-button span { display: none; }
  .p-stats { grid-template-columns: 1fr 1fr; row-gap: 22px; } .p-stat:nth-child(2) { border: 0; } .p-stat strong { font-size: 25px; }
  .p-tabs { gap: 16px; overflow-x: auto; } .p-tabs button { white-space: nowrap; font-size: 12px; }
  .p-search { flex-basis: 100%; } .p-month-nav { width: 100%; } .p-month-nav input { flex: 1; width: 100px; }
  .p-subfilters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .p-subfilters > select { width: 100%; max-width: none; } .p-subfilters label { min-width: 0; } .p-subfilters input { width: 100%; }
  .p-heading > div:first-child { flex: 1; min-width: 0; } .p-heading .p-commands { flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
  .p-calendar-desktop { display: none; } .p-calendar-mobile { display: block; }
  .p-table, .p-table tbody { display: block; } .p-table thead { display: none; }
  .p-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .p-table td, .p-table tbody th { display: block; border: 0; padding: 0; min-width: 0; }
  .p-table td::before { content: attr(data-label); display: block; font-size: 10px; color: var(--faint); margin-bottom: 4px; }
  .p-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 1; } .p-person-link { font-size: 14px; }
  .p-table td:last-child:not([data-label]) { display: none; }
  .p-upcoming { display: none; } .p-section-title { align-items: flex-start; flex-wrap: wrap; }
  .p-budget-total { gap: 16px; } .p-budget-total > div + div { padding-left: 16px; } .p-budget-total .p-delta { font-size: 20px; }
  .p-budget-total p { gap: 6px; font-size: 11px; } .p-budget-projects td:nth-child(2) { grid-column: auto; grid-row: auto; } .p-budget-projects tbody th { grid-column: 1 / -1; font-size: 14px; }
  .p-history-filters { flex-wrap: wrap; } .p-history-filters > span { width: 100%; margin: 0; } .p-history-person li { grid-template-columns: 1fr; gap: 8px; } .p-history-person ol { padding-left: 16px; }
  .p-event-form { padding: 20px 16px; } .p-form-fields { gap: 14px 10px; } .p-type-switch button { padding-inline: 5px; font-size: 11px; }
  .p-confirm { padding: 16px; } .p-confirm > div { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .planner-dialog[open] { animation: none; } }
