/* Employee screens to the design boards 32 to 39 (owner, 22 November 2026).
   Loaded after orbit-theme.css. Only the employee pages use these classes;
   the heading band, headline cards, tabs and data grid come from the theme.
   Colours follow the theme variables so Light, Dark, Paper, Classic and
   Match my device all stay readable. */

/* ---------- Page body: the table card fills the screen, never the page ---------- */
.emp-board .emp-tab-body:empty,
.emp-board .emp-tab-wait {
  min-height: 120px;
}
.emp-board .with-side {
  align-items: stretch;
}
.emp-board .with-side > .card {
  min-width: 0;
}
/* The screen height in the page's own units (--zi undoes the app's fit to
   window zoom, as in the theme), less the band, cards, tabs, toolbar and
   the note under the table. */
@media (min-width: 1101px) {
  html[data-look] .emp-board .with-side > .card .dg-frame {
    max-height: max(160px, calc(100vh * var(--zi, 1) - 494px)) !important;
    overflow: auto;
  }
}

/* ---------- Side panel ---------- */
.emp-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.emp-side > .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.emp-side-foot {
  margin-top: auto;
  padding-top: 6px;
}
.emp-side-foot > .btn {
  width: 100%;
  justify-content: center;
}
.emp-sp-note,
a.emp-sp-note {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
}
.emp-sp-note > strong {
  font-weight: 700;
}
.emp-sp-ico {
  display: inline-flex;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--ink-3, #5b6b88);
}
.emp-sp-ico svg {
  width: 16px;
  height: 16px;
}
/* Label and figure on one line, the bar underneath (as on the boards). */
html[data-look] .sp2-bar.emp-sp-bar {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "l v"
    "t t";
  row-gap: 5px;
}
.emp-sp-bar > span:first-child {
  grid-area: l;
}
.emp-sp-bar > strong {
  grid-area: v;
}
.emp-sp-bar > .sp2-track {
  grid-area: t;
}
html[data-look] .emp-sp-bar .sp2-fill.green {
  background: #14a06a;
}
.sp2-row.plain strong {
  font-weight: 500;
  color: var(--ink-3, #5b6b88);
}
html[data-theme="dark"] .sp2-row.plain strong {
  color: #a9bbe0;
}
/* Days of the week in a side panel (timesheets). */
.emp-day-row {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: baseline;
}
.emp-dow {
  font-weight: 650;
}
.emp-day-t {
  font-size: 12.5px;
}
/* Numbered steps (new claim). */
.emp-steps {
  list-style: none;
  counter-reset: emp-step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.emp-steps li {
  counter-increment: emp-step;
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.emp-steps li::before {
  content: counter(emp-step);
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--blue-50, #e8f1ff);
  color: var(--blue, #0a4fc4);
}
html[data-theme="dark"] .emp-steps li::before {
  background: rgba(63, 169, 245, 0.18);
  color: #9fd2ff;
}
/* Your week as small columns (roster). */
html[data-look] .emp-week-cols {
  height: 104px;
}

/* ---------- My details (board 38) ---------- */
.emp-details-layout {
  align-items: stretch;
}
.emp-details-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}
.emp-details-nav button .badge {
  flex: none;
}
.emp-details-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.emp-details-pane {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.emp-details-pane > .card,
.emp-details-pane > div > .card {
  margin: 0;
}
.emp-details-pane > .card:only-child {
  flex: 1;
}
.emp-details-foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.emp-details-foot[hidden],
.emp-details-foot:not(:has(.btn)) {
  display: none;
}
/* Contact and bank in two columns, label over value, as on the board. */
.emp-dl2 .dl.dl-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0;
}
.emp-dl2 .dl-flow > .dl-pair {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 0 !important;
  padding: 0 !important;
  min-width: 0;
}
.emp-dl2 dt {
  font-size: 12.5px;
  color: var(--ink-3, #5b6b88);
  font-weight: 500;
}
.emp-dl2 dd {
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}
html[data-theme="dark"] .emp-dl2 dt {
  color: #a9bbe0;
}
/* Emergency contacts sit inside Contact and bank, without a second card. */
.emp-contacts {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #e6ecf5);
}
html[data-look] .emp-contacts .card {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
}
html[data-look] .emp-contacts .card-head {
  padding: 0 0 6px !important;
  border: 0 !important;
  background: transparent !important;
}
html[data-look] .emp-contacts .card-body {
  padding: 0 !important;
}

/* ---------- Home (board 32) ---------- */
html[data-look] .emp-orbit-grid.emp-home3 {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
}
.emp-home3 > .card {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.emp-home3 > .card > .card-body {
  flex: 1;
}
.emp-chart-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line, #e6ecf5);
}
.emp-chart-foot > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.emp-home-leave > .card-body,
.emp-home-week > .card-body {
  display: flex;
  flex-direction: column;
}
.emp-home-clock {
  margin-top: auto;
}
/* Clock in and out as a strip at the foot of the Leave card. */
.emp-home-clock > .card,
.emp-home-clock .card {
  margin: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  background: var(--surface-2, #f3f6fb) !important;
  border: 0 !important;
}
.emp-home-clock .card-head {
  display: none !important;
}
.emp-home-clock .card-body {
  padding: 8px 12px !important;
}
.emp-home-clock .btn {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}
html[data-theme="dark"] .emp-home-clock .card {
  background: rgba(255, 255, 255, 0.05) !important;
}
.emp-notes {
  gap: 6px !important;
}
.emp-home-week > .card-body {
  gap: 10px !important;
}
html[data-look] .emp-home3 .orb-bars {
  height: calc(100vh * var(--zi, 1) - 700px);
  min-height: 96px;
  max-height: 190px;
}
.emp-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}
.emp-note > span:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.emp-note:hover strong {
  text-decoration: underline;
}
.emp-home-sign {
  margin-top: auto;
}
@media (max-width: 1100px) {
  html[data-look] .emp-orbit-grid.emp-home3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  html[data-look] .emp-home3 > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 700px) {
  html[data-look] .emp-orbit-grid.emp-home3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .emp-dl2 .dl.dl-flow {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Other pages ---------- */
.emp-extra > .card {
  margin: 0;
}
.emp-year dl {
  max-width: 560px;
}
/* The set-up row under Home takes no room when it has nothing in it. */
@media (min-width: 701px) {
  html[data-look] .emp-home .emp-orbit-low:not(:has(.card:not(.install-card))) {
    display: none;
  }
}
/* Coming up: no taller than the pay panel beside it; more items scroll
   inside it instead of running under the cards (22 November 2026). */
html[data-look] .emp-orbit .orbit-row {
  align-items: stretch;
}
html[data-look] .emp-orbit .orbit-row > .orb-needs {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
html[data-look] .emp-orbit .orb-needs .orb-glass-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
