.employee-dashboard {
  display: grid;
  gap: 17px;
  min-width: 0;
}

.employee-day {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
  padding: clamp(17px, 3vw, 35px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-orange);
  background: var(--paper);
}

@media (min-width: 900px) {
  .employee-day {
    grid-template-columns: minmax(0, 1fr) min(55%, 660px);
    min-block-size: 312px;
  }
}

.employee-day-headline { min-width: 0; }

.employee-day-date {
  display: block;
  margin-block-end: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-transform: capitalize;
}

.employee-day h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}

.employee-working-time {
  margin-top: 8px;
  color: var(--steel);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.employee-day-body { margin-top: 17px; }
.employee-day-body .employee-panel-message { padding: 0; }
.employee-day-body .employee-retry { margin: 9px 0 0; }
.employee-day-status { font-size: clamp(17px, 2.3vw, 23px); letter-spacing: -.025em; }
.employee-day-reason { margin-top: 4px; color: var(--muted); font-size: 14px; }
.employee-day-shifts { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }

.employee-day-shift {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid #d8e3ee;
  background: #f8fafc;
  color: #223954;
  font-size: 13px;
}

.employee-shift-hours { font-variant-numeric: tabular-nums; white-space: nowrap; }
.employee-shift-location { color: var(--muted); }
.employee-shift-note { flex-basis: 100%; color: var(--muted); }
.employee-location-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.employee-location-actions .button { min-height: 37px; padding-inline: 9px; font-size: 13px; }
.employee-location-actions .button[aria-pressed='true'] { border-color: var(--steel); background: #e8f1f9; }
.employee-shift-note:not([hidden]) + .employee-location-actions { margin-block-start: 2px; }
.employee-shift-error { flex-basis: 100%; color: #8b2536; }

.employee-day-shortcuts {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  align-self: center;
  justify-self: end;
  gap: 12px;
  width: min(100%, 660px);
}

.employee-day-shortcuts:has(> :nth-child(4)) { width: min(100%, 820px); }
@media (min-width: 900px) {
  .employee-day:has(.employee-day-shortcut:nth-child(4)) {
    grid-template-columns: minmax(0, 1fr) min(62%, 820px);
  }
}
@media (max-width: 600px) {
  .employee-day-shortcuts:has(> :nth-child(4)) {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.employee-day-shortcut {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 110px;
  padding: 14px 16px;
  border: 1px solid #d6e1ed;
  border-radius: 0;
  background: #f7faff;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-align: start;
  cursor: pointer;
}

.employee-day-shortcut:hover { border-color: #a9c4de; background: #edf4fb; }
.employee-day-shortcut-label { overflow-wrap: anywhere; }
.employee-day-shortcut-count {
  color: #385674;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 750;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.employee-day-shortcut-count[data-has-count='true'] { color: var(--navy); }
.employee-day-shortcut[data-shortcut-kind='inbox'] .employee-day-shortcut-count[data-has-count='true'] {
  color: #743d0a;
}

.employee-panel { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
:is(.employee-assignment-sections, .employee-timelines) > .employee-panel { scroll-margin-top: 78px; }
:is(.employee-assignment-sections, .employee-timelines) :is(.employee-panel-title, .pat-heading):focus { outline-offset: -3px; }
.employee-panel-highlighted { border-color: #6595c1; box-shadow: 0 0 0 2px #6595c150; }

@media (prefers-reduced-motion: no-preference) {
  .employee-panel-highlighted { animation: employee-panel-pulse 980ms ease-in-out 180ms; }
  @keyframes employee-panel-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #6595c150; }
    45% { box-shadow: 0 0 0 5px #6595c16b; }
  }
}

@media (721px <= width <= 980px) {
  :is(.employee-assignment-sections, .employee-timelines) > .employee-panel { scroll-margin-top: 124px; }
}

@media (max-width: 720px) {
  :is(.employee-assignment-sections, .employee-timelines) > .employee-panel { scroll-margin-top: 12px; }
}

@media (max-width: 480px) {
  .employee-day-shortcuts { gap: 6px; }
  .employee-day-shortcut { min-height: 92px; padding: 9px 8px; font-size: 12px; }
}
.employee-panel-title { padding: 13px 15px; border-bottom: 1px solid var(--line); font-size: 19px; letter-spacing: -.022em; }
.employee-panel-message { padding: 15px; color: var(--muted); font-size: 14px; }
.employee-retry { margin: 0 15px 12px; }

.employee-timeline-controls {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-bottom: 1px solid var(--line);
}
.employee-timeline-scroll-button { min-width: 40px; min-height: 38px; padding: 0; }
.employee-timeline-scroll-button::before {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(-45deg);
  content: '';
}
.employee-timeline-scroll-button[data-direction='left']::before { transform: rotate(135deg); }
.employee-timeline-window {
  min-width: 92px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.employee-timeline-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #819bb6 #edf2f7;
}
.employee-timelines > .employee-panel { border: 0; }
.employee-timelines > .employee-timeline { display: flow-root; }
.employee-timelines > .employee-assignment-timeline {
  --pat-pad: clamp(14px, 2vw, 26px);
  border-block-start: 1px solid var(--line);
}
.employee-timeline > .employee-panel-title {
  padding-inline: clamp(14px, 2vw, 26px);
}
.employee-timeline > .employee-panel-content {
  min-width: 0;
  margin: clamp(10px, 1.25vw, 16px) clamp(14px, 2vw, 26px) clamp(16px, 2vw, 26px);
}
.employee-timeline .employee-timeline-controls { padding: 0 0 9px; }
.employee-timeline .employee-timeline-empty { padding-inline: 0; border-bottom: 0; }
.employee-timeline .employee-timeline-scroll {
  border: 1px solid var(--line);
  scrollbar-width: none;
}
.employee-timeline .employee-timeline-scroll::-webkit-scrollbar { display: none; }
.employee-timeline .employee-timeline-chart { --employee-timeline-head-height: clamp(44px, 4.2vw, 54px); }
.employee-timeline .employee-timeline-tick { bottom: 11px; font-size: 13px; }
.employee-timeline .employee-timeline-lanes { --employee-timeline-lane-height: clamp(118px, 10.5vw, 136px); }
.employee-timeline .employee-timeline-lanes[data-empty='true'] { --employee-timeline-lane-height: clamp(104px, 10vw, 128px); }
.employee-timeline .employee-timeline-entry > .employee-timeline-card {
  min-height: calc(var(--employee-timeline-lane-height) - 32px);
  padding: 8px 10px;
}
.employee-timeline .employee-timeline-rail { top: calc(var(--employee-timeline-lane-height) - 23px); }

.employee-timeline-scroll:focus-visible { outline-offset: -3px; }
.employee-timeline-chart {
  --employee-timeline-head-height: 37px;
  position: relative;
  isolation: isolate;
  background: #f7f9fb;
}

.employee-timeline-day {
  position: absolute;
  inset-block: 0;
  left: 0;
  border-right: 1px solid #d1dfeb;
  background: #fff linear-gradient(to right, #e1e9f1 1px, transparent 1px) 0 0 / var(--employee-timeline-hour-width) 100%;
  pointer-events: none;
}
.employee-timeline-axis {
  position: relative;
  height: var(--employee-timeline-head-height);
  border-bottom: 1px solid #d1dfeb;
  background: #eef3f8 linear-gradient(to right, #dae5ef 1px, transparent 1px) 0 0 / var(--employee-timeline-hour-width) 100%;
}
.employee-timeline-tick {
  position: absolute;
  left: var(--employee-time-left);
  bottom: 8px;
  padding-inline: 4px;
  color: #415770;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transform: translateX(-50%);
}
.employee-timeline-tick:first-child { transform: none; }
.employee-timeline-tick:last-child { transform: translateX(-100%); }
.employee-work-band {
  position: absolute;
  inset: var(--employee-timeline-head-height) var(--employee-time-right) 0 var(--employee-time-left);
  border-inline: 1px solid #c4d8ed;
  background: #e0edf99c;
}

.employee-timeline-lanes {
  --employee-timeline-lane-height: 94px;
  position: relative;
}
.employee-timeline-lanes[data-empty='true'] { --employee-timeline-lane-height: 44px; }
.employee-timeline-lane {
  height: var(--employee-timeline-lane-height);
  border-bottom: 1px solid #e2e9f0;
}
.employee-timeline-lane:first-child:last-child { border-bottom: 0; }
.employee-timeline-entry {
  position: absolute;
  top: calc(var(--employee-timeline-lane-height) * var(--employee-timeline-lane) + 7px);
}
.employee-timeline-rail {
  position: absolute;
  top: 79px;
  left: 0;
  width: var(--employee-timeline-duration);
  height: 4px;
  border-radius: 4px;
  background: var(--employee-timeline-event-color);
  pointer-events: none;
}

.employee-timeline-card, .employee-timeline-rail {
  --employee-timeline-event-color: #587b9c;
  --employee-timeline-event-ink: #335574;
  --employee-timeline-event-paper: #edf4fb;
  --employee-timeline-event-line: #c8daeb;
}
.employee-timeline-job {
  --employee-timeline-event-color: #a9501e;
  --employee-timeline-event-ink: #71370f;
  --employee-timeline-event-paper: #fff3e7;
  --employee-timeline-event-line: #e9c5a9;
}
.employee-timeline-meeting {
  --employee-timeline-event-color: #416959;
  --employee-timeline-event-ink: #2d5545;
  --employee-timeline-event-paper: #edf7f1;
  --employee-timeline-event-line: #bfdbc9;
}
.employee-timeline-milestone {
  --employee-timeline-event-color: var(--milestone-status-color);
  --employee-timeline-event-ink: var(--milestone-status-text);
  --employee-timeline-event-paper: var(--milestone-status-bg);
  --employee-timeline-event-line: var(--milestone-status-color);
}
.employee-timeline-card {
  display: grid;
  min-width: 0;
  min-height: 67px;
  align-content: start;
  gap: 2px;
  padding: 5px 7px 5px 8px;
  border: 1px solid var(--employee-timeline-event-line);
  border-inline-start: 3px solid var(--employee-timeline-event-color);
  border-radius: 6px;
  background: var(--employee-timeline-event-paper);
  color: var(--navy);
  text-align: start;
  text-decoration: none;
}
.employee-timeline-entry > .employee-timeline-card {
  position: sticky;
  z-index: 3;
  left: 0;
  width: var(--employee-timeline-card-width);
}
.employee-timeline-card:is(button, a):hover .employee-timeline-card-name { text-decoration: underline; text-underline-offset: 2px; }
.employee-timeline-card:focus-visible { outline-offset: -2px; }
.employee-timeline-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 6px;
  color: var(--employee-timeline-event-ink);
  font-size: 11px;
  line-height: 1.3;
}
.employee-timeline-card-kind { font-weight: 750; }
.employee-timeline-card-hours { white-space: nowrap; font-variant-numeric: tabular-nums; }
.employee-timeline-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.19;
}
.employee-timeline-card-note {
  overflow: hidden;
  color: var(--employee-timeline-event-ink);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-milestone-status { color: var(--milestone-status-text); }
.employee-milestone-status::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 4px;
  border-radius: 50%;
  background: var(--milestone-status-color);
  content: "";
}

.employee-timeline-all-day {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 7px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fb;
}
.employee-timeline-all-day > .employee-timeline-card { min-height: 50px; }
.employee-timeline-empty {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.employee-time-indicator {
  position: absolute;
  z-index: 2;
  inset-block: 0;
  pointer-events: none;
}
.employee-time-needle {
  position: absolute;
  top: 1px;
  bottom: 0;
  left: var(--employee-time-left);
  width: 1px;
  background: #a63530;
}
.employee-time-now {
  position: absolute;
  top: 0;
  padding: 1px 4px;
  border-radius: 3px;
  color: white;
  background: #a63530;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.employee-time-needle[data-end='true'] .employee-time-now { transform: translateX(-100%); }

@media (max-width: 480px) {
  .employee-timeline-scroll-button { min-width: 44px; min-height: 44px; }
}

.employee-assignment-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  align-items: start;
  gap: 17px;
  min-width: 0;
}

.employee-assignment-list { margin: 0; padding: 0; list-style: none; }
.employee-assignment { display: grid; gap: 3px; min-width: 0; padding: 10px 15px; }
.employee-assignment + .employee-assignment { border-top: 1px solid #e4eaf0; }
.employee-assignment-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; min-width: 0; }
.employee-assignment-link { width: fit-content; color: var(--navy); font-size: 14px; font-weight: 750; text-underline-offset: 2px; overflow-wrap: anywhere; }
.employee-state { padding: 1px 5px; border: 1px solid #d4dfeb; color: #39516e; background: #f0f5fa; font-size: 11px; font-weight: 700; }
.employee-date-period, .employee-job-project { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.employee-project-timeline { display: grid; gap: 1px; margin-top: 3px; }
.employee-project-progress { display: block; width: 100%; height: 5px; border: 0; background: #e5edf6; color: var(--steel); }
.employee-project-progress::-webkit-progress-bar { background: #e5edf6; }
.employee-project-progress::-webkit-progress-value { background: var(--steel); }
.employee-project-progress::-moz-progress-bar { background: var(--steel); }
.employee-project-points { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
