.pto-page { --pto-approved: #84d9b8; --pto-pending: #edcd89; --pto-holiday: #d2b9fa; }
.pto-view-controls { margin-top: -10px; }
.pto-view-controls .report-meta { margin: 0; }
.pto-period-label { margin-top: -15px; margin-bottom: 18px; }
.pto-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 0 0 25px; }
.pto-summary > div { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px 16px; min-width: 0; }
.pto-summary dt { display: flex; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); }
.pto-summary dt svg { width: 15px; height: 15px; flex: none; }
.pto-summary dd { margin: 13px 0 8px; font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.5px; overflow-wrap: anywhere; }
.pto-summary > div:first-child dd { color: var(--pto-approved); }
.pto-summary > div:last-child dd { font-size: 19px; letter-spacing: -.2px; line-height: 1.5; }
.pto-summary small { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; }
.pto-notice { display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid #3d4d67; border-radius: 8px; padding: 17px 20px; background: #1b2638; margin-bottom: 22px; }
.pto-notice > div { display: flex; align-items: flex-start; gap: 12px; }
.pto-notice svg { color: #aac9ff; width: 21px; height: 21px; flex: none; }
.pto-notice strong { font-size: 13px; }
.pto-notice p { color: #b4c2d7; font-size: 12px; line-height: 1.6; margin: 4px 0 0; }
.pto-notice button { flex: none; }
.pto-calendar-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 24px 0 30px; }
.pto-calendar-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 19px 20px; }
.pto-eyebrow { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.pto-calendar-heading h2 { font-size: 21px; font-weight: 550; }
.pto-calendar-heading .actions { gap: 3px; }
.pto-calendar-heading .date-control { width: 157px; }
.pto-calendar-scroll { overflow-x: auto; }
.pto-calendar { min-width: 600px; }
.pto-weekday-row, .pto-calendar-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.pto-weekday-row > div { padding: 12px 13px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--border); }
.pto-day { min-height: 118px; padding: 9px 6px 8px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); min-width: 0; }
.pto-day:last-child { border-right: 0; }
.pto-day-top { display: flex; justify-content: space-between; gap: 3px; align-items: center; padding: 0 4px 7px; }
.pto-day-top > span { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 50%; font-variant-numeric: tabular-nums; }
.pto-day-top small { font-size: 9px; color: #a5c3ff; }
.pto-today .pto-day-top > span { background: #386ad1; color: white; font-weight: 600; }
.pto-today { background: #1d2534; }
.pto-outside { background: #14161b; }
.pto-outside .pto-day-top > span { color: #727986; }
.pto-events { display: flex; flex-direction: column; gap: 4px; }
button.pto-event { display: flex; gap: 5px; justify-content: flex-start; min-height: 24px; border: 0; padding: 4px 6px; font-size: 10px; line-height: 1.35; border-radius: 4px; text-align: left; width: 100%; }
.pto-event-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pto-event-short { display: none; }
.pto-event-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.pto-event.pto-approved { background: #203c34; color: var(--pto-approved); }
.pto-event.pto-pending { background: #3c3424; color: var(--pto-pending); border-left: 2px dashed #b19455; }
.pto-event.pto-approved:hover { background: #2b4b40; }
.pto-event.pto-pending:hover { background: #4b402a; }
.pto-holiday-event { display: flex; align-items: flex-start; gap: 5px; width: 100%; min-height: 28px; padding: 5px 6px; border: 0; border-left: 2px solid #b690ed; border-radius: 4px; background: #332943; color: var(--pto-holiday); text-align: left; line-height: 1.4; font-size: 10px; }
.pto-holiday-event:hover { background: #453656; }
.pto-holiday-marker { flex: none; }
.pto-holiday-marker svg { width: 11px; height: 11px; vertical-align: -1px; }
.pto-holiday-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.pto-holiday-short { display: none; }
button.pto-more { justify-content: flex-start; color: var(--muted); font-size: 10px; background: transparent; border: 0; min-height: 23px; padding: 3px 7px; }
.pto-calendar-footer { border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 20px; color: var(--muted); font-size: 11px; }
.pto-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.pto-legend span { display: inline-flex; gap: 7px; align-items: center; }
.pto-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pto-legend .pto-approved { color: var(--pto-approved); }
.pto-legend .pto-pending { color: var(--pto-pending); }
.pto-legend .pto-holiday-key { color: var(--pto-holiday); }
.pto-legend .pto-holiday-key i { border-radius: 1px; }
.pto-month-holidays { border-top: 1px solid var(--border); padding: 16px 20px; }
.pto-month-holidays h3 { font-size: 12px; font-weight: 550; margin-bottom: 8px; }
.pto-month-holidays ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; }
.pto-month-holidays button { width: 100%; min-height: 38px; display: flex; justify-content: flex-start; gap: 12px; border: 0; border-radius: 4px; background: transparent; padding: 8px 0; text-align: left; font-size: 12px; line-height: 1.5; }
.pto-month-holidays button:hover { background: #292333; }
.pto-month-holidays time { color: var(--pto-holiday); flex: 0 0 50px; font-variant-numeric: tabular-nums; }
.pto-month-holidays button > span { overflow-wrap: anywhere; }
.pto-month-holidays small { margin-left: auto; color: var(--muted); font-size: 10px; flex-shrink: 0; }
.pto-holiday-detail > svg { color: #d2b9fa; width: 25px; height: 25px; margin-bottom: 14px; }
.pto-holiday-detail h3 { font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.pto-holiday-detail > p { margin-top: 10px; line-height: 1.6; }
.pto-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; font-size: 11px; white-space: nowrap; background: #2d3039; color: #b8bdc8; }
.pto-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pto-status.pto-approved { background: #203c34; color: #84d9b8; }
.pto-status.pto-pending { background: #3c3424; color: #edcd89; }
.pto-status.pto-declined { background: #3d2930; color: #eda3b3; }
.pto-balances .toolbar .report-meta, .pto-requests .toolbar .report-meta { margin: 5px 0 0; }
.pto-balances td, .pto-requests td { vertical-align: middle; }
.pto-balances td strong, .pto-requests td strong { font-size: 12px; font-weight: 550; }
.pto-table-actions .actions { justify-content: flex-end; flex-wrap: wrap; }
.pto-table-actions { text-align: right; }
.pto-table-actions button { font-size: 11px; min-height: 34px; padding: 7px 10px; }
.pto-table-actions svg { width: 14px; height: 14px; }
.pto-request-note { color: var(--muted); max-width: 320px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.pto-pagination { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; padding: 10px 0; }
.pto-policy { display: flex; gap: 12px; padding: 22px 0 0; margin-top: 30px; border-top: 1px solid var(--border); color: var(--muted); }
.pto-policy > span { flex: none; }
.pto-policy svg { width: 18px; height: 18px; }
.pto-policy strong { color: #cdd3dd; font-weight: 550; font-size: 12px; }
.pto-policy p { font-size: 12px; line-height: 1.7; margin: 6px 0 0; }
.pto-workweek { display: flex; flex-wrap: wrap; gap: 8px; margin: 19px 0; border: 0; padding: 0; }
.pto-workweek legend { font-size: 12px; margin-bottom: 9px; }
.pto-workweek label { display: flex; flex-direction: row; align-items: center; gap: 5px; font-size: 12px; border: 1px solid var(--border); border-radius: 5px; padding: 8px; margin: 0; }
.pto-workweek input { width: 15px; height: 15px; margin: 0; min-height: 0; }
.pto-workweek:disabled { opacity: .7; }
.pto-policy-preview { padding: 13px 15px; background: #202936; border: 1px solid #35435b; border-radius: 6px; margin: 16px 0; font-size: 12px; line-height: 1.6; }
.pto-policy-preview strong { font-size: 13px; }
.pto-policy-preview p { color: #b2bed1; margin: 4px 0 0; }
.pto-detail-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pto-detail { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; margin-top: 24px; }
.pto-detail dt { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.pto-detail dd { margin: 0; font-size: 13px; line-height: 1.6; }
.pto-detail-note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; color: #bec5d2; margin-top: 8px; }
.pto-allocations p { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; line-height: 1.6; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pto-allocations strong { white-space: nowrap; font-weight: 550; }
.pto-day-list { display: flex; flex-direction: column; gap: 8px; }
.pto-day-list button { justify-content: space-between; text-align: left; }
.pto-contact-note { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); margin: -8px 0 22px; font-size: 12px; line-height: 1.6; }
.pto-contact-note svg { width: 17px; height: 17px; margin-top: 2px; flex: none; }
.pto-contact-note p { min-width: 0; overflow-wrap: anywhere; }
.pto-contact-note strong { color: #ccd5e4; font-weight: 500; }
.pto-contact-missing { color: #d6c49b; }
dialog.pto-email-dialog { width: min(720px,calc(100vw - 32px)); }
.pto-email-dialog-body > .note { margin-bottom: 16px; }
.pto-email-toggle { margin: 16px 0 8px; }
.pto-email-delivery { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 10px 0; }
.pto-email-warning { color: #e6c385; font-size: 11px; max-width: 240px; white-space: normal; line-height: 1.5; }
.pto-email-detail-state { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 9px 0 6px; }
.pto-email-detail-state svg { width: 15px; height: 15px; color: var(--muted); }
.pto-email-detail .pto-email-warning { max-width: none; }
.pto-email-settings-actions { display: flex; gap: 13px; align-items: center; margin-top: 14px; }
.pto-email-settings-feedback, .pto-email-feedback { color: #84d9b8; font-size: 12px; line-height: 1.5; }
.pto-email-section { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 20px; }
.pto-email-section > .note { margin: 7px 0 14px; }
.pto-email-recipients { list-style: none; padding: 0; margin: 12px 0 0; }
.pto-email-recipients li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 12px; }
.pto-email-recipients strong { font-weight: 500; }
.pto-email-recipients span { color: var(--muted); overflow-wrap: anywhere; text-align: right; min-width: 0; }
.pto-email-contact-form { margin-top: 16px; }
.pto-email-contact-form label { margin-bottom: 7px; display: flex; justify-content: space-between; gap: 12px; }
.pto-contact-state { font-size: 10px; font-weight: 400; text-align: right; }
.pto-email-contact-controls { display: flex; align-items: center; gap: 9px; }
.pto-email-contact-controls input { flex: 1; min-width: 0; font-size: 12px; }
.pto-email-contact-controls button { flex: none; font-size: 12px; }
.pto-email-feedback:empty { display: none; }
.pto-email-feedback { margin-top: 6px; }
.pto-email-contact-unavailable { margin: 17px 0; font-size: 12px; }
.pto-email-queue { border-top: 1px solid var(--border); padding-top: 17px; margin: 22px 0 10px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.pto-email-queue strong { color: #d7deea; font-size: 13px; font-weight: 550; }
@media (max-width: 1250px) { .pto-summary { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .pto-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .pto-summary > div { padding: 15px 13px; }
  .pto-summary dd { font-size: 23px; }
  .pto-summary dt { font-size: 10px; }
  .pto-summary small { font-size: 10px; }
  .pto-notice { align-items: stretch; flex-direction: column; padding: 15px; gap: 12px; }
  .pto-calendar-heading { align-items: stretch; flex-direction: column; padding: 15px 12px; gap: 12px; }
  .pto-calendar-heading .actions { justify-content: space-between; flex-wrap: nowrap; gap: 1px; }
  .pto-calendar-heading .date-control { width: 142px; min-width: 95px; flex: 1; padding-inline: 7px; }
  .pto-calendar-heading button { padding-inline: 8px; }
  .pto-calendar-heading .icon { width: 32px; flex: none; }
  .pto-calendar { min-width: 0; }
  .pto-weekday-row > div { padding: 11px 2px; text-align: center; font-size: 10px; }
  .pto-day { min-height: 81px; padding: 5px 2px; }
  .pto-day-top { justify-content: center; padding: 0 0 4px; }
  .pto-day-top > span { width: 22px; height: 22px; font-size: 11px; }
  .pto-day-top small { display: none; }
  button.pto-event { min-height: 24px; padding: 4px 2px; justify-content: center; gap: 3px; font-size: 10px; }
  .pto-event-name { display: none; }
  .pto-event-short { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pto-event-dot { width: 4px; height: 4px; }
  .pto-holiday-event { align-items: center; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 1px; font-size: 8px; line-height: 1.3; }
  .pto-holiday-name { display: none; }
  .pto-holiday-short { display: inline; }
  .pto-holiday-marker svg { width: 10px; height: 10px; }
  .pto-month-holidays { padding: 13px 12px; }
  .pto-month-holidays ul { grid-template-columns: 1fr; }
  .pto-month-holidays button { gap: 9px; flex-wrap: wrap; }
  .pto-month-holidays button > span { flex: 1; min-width: 0; }
  .pto-month-holidays small { margin-left: 59px; flex-basis: calc(100% - 59px); }
  .pto-more-label { display: none; }
  button.pto-more { justify-content: center; padding: 3px 2px; }
  .pto-calendar-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px; }
  .pto-balances .table-wrap, .pto-requests .table-wrap { border: 0; overflow: visible; background: transparent; }
  .pto-balances table, .pto-balances tbody, .pto-requests table, .pto-requests tbody { display: block; width: 100%; min-width: 0; }
  .pto-balances thead, .pto-requests thead { display: none; }
  .pto-balances tr, .pto-requests tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 1px solid var(--border); background: var(--surface); border-radius: 7px; margin-bottom: 12px; padding: 5px; }
  .pto-balances td, .pto-requests td { border: 0; display: block; padding: 10px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .pto-balances td:first-child, .pto-requests td:first-child, .pto-table-actions, .pto-balances td[colspan] { grid-column: 1 / -1; }
  .pto-balances td[data-label]::before, .pto-requests td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
  .pto-table-actions .actions { justify-content: flex-start; }
  .pto-table-actions { text-align: left; }
  .pto-balances .person, .pto-balances .person > div, .pto-requests .person, .pto-requests .person > div { min-width: 0; }
  .pto-balances .person strong, .pto-requests .person strong { white-space: normal; }
  .pto-view-controls .filter-select { width: 100%; max-width: none; }
  .pto-detail { grid-template-columns: 1fr; gap: 15px; }
  .pto-email-recipients li { flex-direction: column; gap: 5px; }
  .pto-email-recipients span { text-align: left; }
  .pto-email-contact-form label { flex-direction: column; gap: 3px; }
  .pto-contact-state { text-align: left; }
  .pto-email-contact-controls { flex-wrap: wrap; }
  .pto-email-contact-controls input { flex-basis: 100%; }
  .pto-email-queue { gap: 13px; }
}
