.app-shell {
  display: grid;
  grid-template-columns: 252px 1fr;
  min-height: 100vh;
}

.menu-btn {
  display: none;
  position: relative;
  z-index: 1;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #e9ecf4;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 28px 20px 24px;
  background: linear-gradient(170deg, var(--navy-800), var(--navy-900));
  color: #e9ecf4;
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 31px,
      rgba(255, 255, 255, 0.035) 31px 32px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 31px,
      rgba(255, 255, 255, 0.025) 31px 32px
    );
  pointer-events: none;
}

.sidebar::after {
  content: "\20B1";
  position: absolute;
  right: -34px;
  bottom: -70px;
  font-family: var(--font-display);
  font-size: 13rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

.side-nav {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(233, 236, 244, 0.22) transparent;
}

.side-nav::-webkit-scrollbar {
  width: 6px;
}

.side-nav::-webkit-scrollbar-track {
  background: transparent;
}

.side-nav::-webkit-scrollbar-thumb {
  background: rgba(233, 236, 244, 0.18);
  border-radius: 99px;
}

.side-nav::-webkit-scrollbar-thumb:hover {
  background: var(--brass);
}

.side-group + .side-group {
  margin-top: 14px;
}

.side-group-btn {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 8px 12px;
  border: none;
  background: rgba(15, 26, 48, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7c86a0;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}

.side-group-btn:hover {
  color: #c3cada;
}

.side-group.open .side-group-btn {
  color: var(--brass);
}

.side-caret {
  width: 15px;
  height: 15px;
  flex: none;
  transform: rotate(-90deg);
  transition: transform 0.22s var(--ease);
}

.side-group.open .side-caret {
  transform: rotate(0deg);
}

.side-group-items {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s var(--ease);
}

.side-group.open .side-group-items {
  grid-template-rows: 1fr;
}

.side-group-items > div {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  color: #c3cada;
  font-size: 14.5px;
  font-weight: 500;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.side-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-bottom-color: transparent;
}

.side-link.active {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--brass);
  color: #fff;
}

.sidebar .brand-mark {
  min-width: 0;
  gap: 9px;
  padding-right: 46px;
}

.sidebar .brand-img {
  height: 28px;
  max-width: 72px;
}

.sidebar .brand-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.2;
}

.sidebar .brand-img + .brand-name {
  font-size: 17px;
}

.side-top {
  display: flex;
  align-items: center;
}

.side-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;
  flex: 1 1 auto;
  min-height: 0;
}

.side-close,
.side-backdrop {
  display: none;
}

body.drawer-open {
  overflow: hidden;
}

.sidebar :focus-visible {
  box-shadow: 0 0 0 2px rgba(169, 139, 68, 0.6);
}

.side-user {
  position: relative;
  z-index: 1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex: none;
}

.side-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  border-bottom-color: transparent;
  border-radius: var(--radius-sm);
  color: inherit;
  transition: background 0.15s var(--ease);
}

.side-profile:hover,
.side-profile:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: transparent;
}

.side-profile.active {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--brass);
}

.side-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: rgba(169, 139, 68, 0.2);
  color: #d9c38e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.side-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.side-who {
  flex: 1;
  min-width: 0;
}

.side-user-name {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
  color: #f2f0e9;
  overflow-wrap: anywhere;
}

.side-user-role {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}

.side-go {
  width: 16px;
  height: 16px;
  flex: none;
  color: #7c86a0;
  transition: color 0.15s var(--ease);
}

.side-profile:hover .side-go,
.side-profile:focus-visible .side-go {
  color: #fff;
}

.side-profile.active .side-go {
  display: none;
}

.side-logout {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #c3cada;
  font-size: 13.5px;
  font-weight: 600;
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.side-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.workspace {
  padding: 28px 40px 104px;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.page-head h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.page-head h1 em {
  font-style: italic;
  color: var(--brass-ink);
}

.btn-add {
  width: auto;
  white-space: nowrap;
  background: transparent;
  color: var(--navy-700);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-add:hover {
  background: var(--navy-700);
  color: #fff;
  border-color: var(--navy-700);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.25);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 230px;
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.search-wrap input {
  padding-left: 42px;
  background: var(--surface);
  border-color: #aba695;
  box-shadow: inset 0 1px 3px rgba(28, 37, 54, 0.09);
}

.search-wrap input:focus-visible {
  box-shadow:
    var(--ring),
    inset 0 1px 3px rgba(28, 37, 54, 0.06);
}

.toolbar select {
  width: auto;
  min-width: 170px;
  flex: 0 0 auto;
}

#filter-dept {
  min-width: 210px;
}

.view-tabs {
  display: flex;
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
}

.tab {
  border: none;
  background: transparent;
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}

.tab.on {
  background: var(--navy-700);
  color: #fff;
}

.table-card {
  overflow: hidden;
}

.table-head-row {
  padding: 16px 20px 4px;
}

.count-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}

.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-faint);
}

.pager-size {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.pager-size select {
  width: auto;
  min-width: 72px;
  padding: 5px 8px;
  font-size: 13px;
}

.pager-info {
  margin-left: auto;
  font-weight: 600;
}

.pager-nav {
  display: flex;
  gap: 6px;
}

.pager-nav .row-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cal {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fcfbf9;
  padding: 10px 12px 12px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.cal-nav {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 17px;
  line-height: 1;
  color: var(--navy-700);
}

.cal-nav:hover {
  border-color: var(--navy-700);
}

.cal-dow,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cal-dow span {
  padding: 4px 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-align: center;
}

.cal-grid {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cal-cell {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 40px;
  padding: 3px 2px;
  border: none;
  background: var(--surface);
  font: inherit;
  cursor: pointer;
  transition: filter 0.12s var(--ease);
}

.cal-cell:hover:not(:disabled) {
  filter: brightness(0.95);
}

.cal-num {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.cal-pad {
  background: #faf9f6;
  cursor: default;
}

.cal-rest {
  background: #faf9f6;
}

.cal-rest .cal-num {
  color: var(--ink-faint);
}

.cal-tag {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.cal-cell:disabled {
  cursor: not-allowed;
  background: #f3f1ec;
}

.cal-cell:disabled .cal-num {
  color: var(--line-strong);
}

.cal-cell.on {
  box-shadow: inset 0 0 0 2px var(--navy-700);
}

.cal-note {
  margin-top: 8px;
  min-height: 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.cal-hol {
  background: var(--danger-bg);
}

.cal-hol .cal-num,
.cal-hol .cal-tag {
  color: var(--danger);
}

.cal-susp {
  background: var(--warning-bg);
}

.cal-susp .cal-num,
.cal-susp .cal-tag {
  color: var(--warning);
}

.cal-cell:disabled.cal-hol,
.cal-cell:disabled.cal-susp {
  background: #f3f1ec;
}

.cal-cell:disabled.cal-hol .cal-num,
.cal-cell:disabled.cal-susp .cal-num,
.cal-cell:disabled .cal-tag {
  color: var(--line-strong);
}

.cal-months {
  display: grid;
  gap: 20px;
}
.cal-months.multi {
  grid-template-columns: repeat(var(--cal-span), minmax(0, 1fr));
}

.cal-mtitle {
  display: none;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 8px;
  color: var(--ink-soft);
}
.cal-months.multi .cal-mtitle {
  display: block;
}
.cal-months.multi ~ .cal-head .cal-title {
  font-size: 14px;
}

.cal-range .cal-cell {
  border-radius: 0;
}
.cal-cell.in {
  background: var(--info-bg);
  color: var(--navy-700);
  box-shadow: inset 0 -2px 0 var(--navy-700);
}
.cal-cell.in.edge-a {
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
}
.cal-cell.in.edge-b {
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}
.cal-cell.in.edge-a,
.cal-cell.in.edge-b {
  background: var(--navy-700);
  color: #fff;
}
.cal-cell.in.edge-a .cal-num,
.cal-cell.in.edge-b .cal-num {
  color: #fff;
}

.cal-cell.in.over {
  background: var(--warning-bg);
  box-shadow: inset 0 -2px 0 var(--warning);
}
.cal-cell.in.over.edge-a,
.cal-cell.in.over.edge-b {
  background: var(--warning);
}

.cal-cell.in.skip {
  opacity: 0.55;
  box-shadow: none;
}

.cal-range .cal-cell {
  user-select: none;
}
.cal-note.cal-warn {
  color: var(--warning);
  font-weight: 600;
}

.table-scroll,
.modal-body,
.pick-list,
.picker-table {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.table-scroll::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.pick-list::-webkit-scrollbar,
.picker-table::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

thead th {
  text-align: left;
  padding: 12px 20px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.12s var(--ease);
}

tbody tr:hover {
  background: #faf9f5;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.num-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.num-wrap input {
  flex: 1;
  min-width: 0;
}

.num-unit {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-faint);
  white-space: nowrap;
}

.emp-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-initials {
  display: grid;
  place-items: center;
  background: var(--navy-700);
  color: #ebddb8;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.emp-name {
  font-weight: 600;
}

.emp-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.actions {
  text-align: right;
  white-space: nowrap;
}

.row-btn {
  margin-left: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-700);
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.row-btn:hover {
  border-color: var(--navy-700);
  background: rgba(30, 58, 95, 0.05);
}

.row-btn-warn {
  color: var(--warning);
  border-color: var(--warning-line);
  background: var(--warning-bg);
}

.row-btn-warn:hover {
  border-color: var(--warning);
  background: #f6ead1;
}

.row-btn-danger {
  color: var(--danger);
  border-color: var(--danger-line);
  background: var(--danger-bg);
}

.row-btn-danger:hover {
  border-color: var(--danger);
  background: #f7e2e0;
}

.fdrop {
  position: relative;
  flex: 0 0 auto;
}

.fdrop-btn,
.fdrop-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.fdrop-btn {
  min-width: 190px;
}

.fdrop-btn:hover,
.fdrop.open .fdrop-btn {
  border-color: var(--navy-700);
}

.fdrop-label {
  margin-right: auto;
}

.fdrop-blank .fdrop-label {
  color: var(--ink-faint);
}

.fdrop-count {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.fdrop-caret {
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
  transition: transform 0.16s var(--ease);
}

.fdrop.open .fdrop-caret {
  transform: rotate(180deg);
}

.fdrop-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 26, 48, 0.16);
  animation: fdrop-in 0.14s var(--ease);
}

@keyframes fdrop-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.fdrop-opt {
  border-color: transparent;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.fdrop-opt:hover {
  background: var(--paper);
}

.fdrop-opt.on {
  background: var(--info-bg);
  border-color: var(--info-line);
}

.export-menu {
  position: relative;
  flex: 0 0 auto;
}

.export-menu .export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  white-space: nowrap;
}

.export-caret {
  width: 15px;
  height: 15px;
  transition: transform 0.16s var(--ease);
}

.export-menu.open .export-caret {
  transform: rotate(180deg);
}

.export-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  width: max-content;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 26, 48, 0.16);
  animation: fdrop-in 0.14s var(--ease);
}

.export-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.export-opt:hover,
.export-opt:focus-visible {
  background: var(--paper);
  outline: none;
}

.export-label {
  font-size: 14px;
  font-weight: 600;
}

.export-hint {
  font-size: 12px;
  color: var(--ink-faint);
}

.sk-row td {
  padding-top: 15px;
  padding-bottom: 15px;
}

.sk-row:hover td {
  background: none;
}

.table-msg {
  padding: 30px 16px;
  text-align: center;
  color: var(--ink-faint);
}


.sum-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot-all {
  background: var(--ink-faint);
}

.dot-active {
  background: var(--success);
}

.dot-inactive {
  background: var(--ink-faint);
}

.dot-archived {
  background: var(--danger);
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.segmented button {
  padding: 8px 18px;
  border: none;
  border-left: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.12s var(--ease);
}

.segmented button:first-child {
  border-left: none;
}

.segmented button:hover {
  background: var(--paper);
}

.segmented button.on {
  background: var(--navy-700);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 720px) {
  .segmented {
    display: flex;
    width: 100%;
  }

  .segmented button {
    flex: 1;
    padding: 8px 6px;
  }
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.toolbar-filters .btn,
.toolbar-actions .btn {
  width: auto;
  white-space: nowrap;
}

.toolbar-actions .row-btn {
  margin-left: 0;
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.tab.on .tab-count {
  background: var(--brass);
  color: #fff;
}

.tab-count-warn,
.tab.on .tab-count-warn {
  background: var(--warning);
  color: #fff;
}

.tab-count[hidden] {
  display: none;
}

.action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  bottom: 26px;
  left: 252px;
  right: 0;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100vw - 300px);
  z-index: 40;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    0 10px 30px rgba(15, 26, 48, 0.18),
    0 2px 6px rgba(15, 26, 48, 0.1);
  animation: bar-rise 0.16s var(--ease);
}

@keyframes bar-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 900px) {
  .action-bar {
    left: 0;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 560px) {
  .action-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
  }

  .action-bar .row-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
  }

  .action-bar .row-btn-danger {
    margin-left: 0;
  }

  .action-bar-clear {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .action-bar {
    animation: none;
  }
}

.action-bar .row-btn {
  margin-left: 0;
}

.action-bar .row-btn-danger {
  margin-left: 14px;
}

.action-bar-clear {
  padding: 6px 10px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
}

.action-bar-clear:hover {
  color: var(--ink);
}

tr[data-id] {
  cursor: pointer;
}

tr[data-id]:hover > td {
  background: var(--paper);
}

tr.is-selected > td {
  background: var(--info-bg);
}

tr.is-selected > td:first-child {
  box-shadow: inset 3px 0 0 var(--navy-700);
}

@media (max-width: 720px) {
  tr[data-id]:hover > td,
  tr.is-selected > td {
    background: none;
  }

  tr.is-selected > td:first-child {
    box-shadow: none;
  }

  tbody tr.is-selected {
    background: var(--info-bg);
    box-shadow: inset 3px 0 0 var(--navy-700);
  }
}

.empty-state {
  text-align: center;
  padding: 52px 20px 64px;
}

.empty-peso {
  display: block;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  color: var(--line-strong);
  margin-bottom: 10px;
}

.empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  color: var(--line-strong);
}

.empty-state h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto;
}

.empty-state .empty-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}

.modal {
  margin: auto;
  width: min(940px, calc(100vw - 32px));
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 26, 48, 0.35);
  overflow: hidden;
}

.modal-sm {
  width: min(560px, calc(100vw - 32px));
}

.modal-wide {
  width: min(1180px, calc(100vw - 32px));
}

.modal::backdrop {
  background: rgba(15, 26, 48, 0.55);
  backdrop-filter: blur(3px);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  animation: modalIn 0.28s var(--ease);
}

.modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-head,
.modal-foot {
  flex: none;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.modal-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), #d9c284 55%, transparent);
}

.modal-head h2 {
  font-size: 21px;
}

.modal-x {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-faint);
  transition:
    color 0.15s var(--ease),
    background 0.15s var(--ease);
}

.modal-x:hover {
  color: var(--ink);
  background: rgba(30, 58, 95, 0.07);
}

.modal-body {
  padding: 22px 26px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 22px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

fieldset + fieldset {
  margin-top: 28px;
}

legend {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

legend span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brass-ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 16px;
}

.grid .field {
  margin-bottom: 0;
}

.field.wide {
  grid-column: 1 / -1;
}

.check-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--navy-700);
}

#edit-only {
  display: contents;
}

.photo-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 8px;
  border: 2px solid var(--line);
}

input[type="file"] {
  width: 100%;
  font-size: 13.5px;
  color: var(--ink-soft);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy-700);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}

input[type="file"]::file-selector-button:hover {
  border-color: var(--navy-700);
  background: rgba(30, 58, 95, 0.05);
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.modal-foot .btn {
  width: auto;
  min-height: 44px;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  box-shadow: 0 8px 20px rgba(160, 59, 55, 0.3);
}

.archive-text {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 60;
  padding: 12px 22px;
  border-radius: 99px;
  background: var(--navy-900);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-error {
  background: var(--danger);
}

.face-status {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 10px;
}

.face-current {
  font-size: 13px;
  color: var(--brass-ink);
  margin-bottom: 10px;
}

.modal-face {
  width: min(620px, calc(100vw - 32px));
}

.face-body {
  gap: 18px;
}

.plate-strip {
  display: flex;
  gap: 8px;
}

.plate {
  flex: 1;
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
  justify-items: center;
}

.plate-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  overflow: hidden;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.plate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.plate-thumb em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 18px;
  color: var(--ink-faint);
}

.plate-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plate.pending .plate-thumb {
  border: 2px solid var(--brass);
}
.plate.pending .plate-name {
  color: var(--brass-ink);
}

.plate.saved .plate-thumb {
  border: 2px solid var(--success);
}
.plate.saved .plate-name {
  color: var(--success);
}

.plate.active .plate-thumb {
  box-shadow: 0 0 0 3px rgba(169, 139, 68, 0.28);
}
.plate:hover .plate-thumb {
  border-color: var(--brass);
}
.face-stage {
  display: grid;
  grid-template-columns: 1fr 176px;
  gap: 18px;
  align-items: start;
}

.face-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-900);
}

.face-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.face-oval {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 46%;
  aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(169, 139, 68, 0.9);
  border-radius: 50%;
  pointer-events: none;
  transition:
    border-color 0.25s var(--ease),
    border-style 0.25s var(--ease);
}

.face-frame.bad .face-oval {
  border-style: solid;
  border-color: rgba(214, 122, 122, 0.95);
}

.pose-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfaf7;
}

.pose-step {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

.pose-head {
  width: 74px;
  height: 74px;
  transition: transform 0.35s var(--ease);
}

.pose-head .ph-face,
.pose-head .ph-mouth {
  fill: none;
  stroke: var(--navy-700);
  stroke-width: 2;
  stroke-linecap: round;
}

.pose-head .ph-eye {
  fill: var(--navy-700);
}

.pose-head[data-pose="2"] {
  transform: perspective(220px) rotateY(-26deg);
}
.pose-head[data-pose="3"] {
  transform: perspective(220px) rotateY(26deg);
}
.pose-head[data-pose="4"] {
  transform: perspective(220px) rotateX(-18deg);
}

.pose-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

.face-tips {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.face-tips summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.face-tips ul {
  margin: 10px 0 2px;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.modal-foot .btn {
  white-space: nowrap;
}

.modal-foot .btn-quiet-danger {
  margin-right: auto;
  background: transparent;
  border: 1px solid var(--danger-line);
  color: var(--danger);
}

.modal-foot .btn-quiet-danger:hover {
  background: var(--danger-bg);
}

@media (max-width: 560px) {
  .face-stage {
    grid-template-columns: 1fr;
  }
  .pose-card {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
    gap: 4px 14px;
  }
  .pose-head {
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
  }
  .plate span:last-child {
    display: none;
  }
}

.wiz-rail {
  display: flex;
  align-items: center;
  padding: 16px 26px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wiz-rail::-webkit-scrollbar {
  display: none;
}

.wiz-node {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-faint);
  cursor: default;
}

.wiz-node + .wiz-node::before {
  content: "";
  width: 30px;
  height: 1px;
  margin: 0 13px;
  background: var(--line-strong);
  transition: background 0.25s var(--ease);
}

.wiz-node.done + .wiz-node::before,
.wiz-node.now + .wiz-node::before {
  background: var(--brass);
}

.wiz-num {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.wiz-node.now {
  color: var(--ink);
}
.wiz-node.now .wiz-num {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.wiz-node.done {
  color: var(--ink-soft);
  cursor: pointer;
}
.wiz-node.done .wiz-num {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--brass-ink);
  font-size: 0;
}
.wiz-node.done .wiz-num::after {
  content: "\2713";
  font-size: 13px;
}
.wiz-node.done:hover .wiz-num {
  transform: scale(1.06);
}

.wiz-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wiz-step {
  animation: wizIn 0.26s var(--ease);
}

@keyframes wizIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-foot .btn-back {
  margin-right: auto;
}

@media (max-width: 620px) {
  .wiz-label {
    display: none;
  }
  .wiz-node + .wiz-node::before {
    width: 18px;
    margin: 0 8px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .menu-btn {
    display: grid;
    place-items: center;
    order: 1;
    margin-right: 10px;
  }

  .brand-mark {
    order: 2;
  }

  .sidebar .brand-mark {
    padding-right: 0;
  }


  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
  }

  .sidebar.open {
    z-index: 80;
  }

  .side-top {
    flex: 1;
    min-width: 0;
  }

  .side-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    width: min(78vw, 340px);
    gap: 18px;
    padding: 16px 18px 22px;
    background: linear-gradient(170deg, var(--navy-800), var(--navy-900));
    box-shadow: 8px 0 30px rgba(15, 26, 48, 0.35);
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.22s var(--ease),
      visibility 0s linear 0.22s;
  }

  .sidebar.open .side-drawer {
    transform: none;
    visibility: visible;
    transition: transform 0.22s var(--ease);
  }

  .sidebar.open .side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3;
    background: rgba(15, 26, 48, 0.55);
  }

  .side-close {
    display: grid;
    place-items: center;
    align-self: flex-end;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: transparent;
    color: #e9ecf4;
  }

  .workspace {
    padding: 24px 16px 96px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

.emp-picker {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fcfbf9;
  padding: 12px 14px;
}

.picker-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.picker-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

.picker-table th {
  position: sticky;
  top: 0;
  background: var(--paper);
  text-align: left;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.picker-table th:first-child {
  width: 55%;
}

.picker-table th:last-child {
  width: 45%;
}

.picker-row td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.picker-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.picker-who .avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.picker-who > span:last-child {
  min-width: 0;
}

.picker-row .emp-name,
.picker-row .emp-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-row .picker-plain {
  font-weight: 400;
}

.picker-row:hover td {
  background: rgba(30, 58, 95, 0.05);
}

.picker-row.selected td {
  background: rgba(30, 58, 95, 0.1);
  box-shadow: inset 3px 0 0 var(--navy-700);
}

.picker-empty {
  padding: 14px;
  color: var(--ink-faint);
  text-align: center;
  cursor: default;
}

.emp-picker.disabled .picker-table,
.emp-picker.disabled .picker-search {
  opacity: 0.5;
  pointer-events: none;
}

.pending-dot {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 99px;
  background: var(--brass);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hint-text {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.cur-box {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.cur-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cur-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 4px 22px;
  font-size: 13px;
}

.cur-grid dt {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.cur-grid dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.picker-search input {
  margin: 0 0 12px;
  width: 100%;
}

.picker-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.picker-bar .picker-search {
  flex: 1;
  min-width: 220px;
}

.picker-bar .picker-search input {
  margin: 0;
}

.picker-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.picker-filters .fdrop-btn {
  min-width: 150px;
}

.picker-row td {
  padding: 8px 12px;
}

@media (max-width: 720px) {
  .cal-months.multi {
    grid-template-columns: 1fr;
  }

  .cur-grid {
    grid-template-columns: repeat(2, auto);
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  tbody td {
    border: none;
    padding: 4px 0;
  }

  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
  }

  td[data-label="Employee"]::before {
    display: none;
  }

  td.ghost:not([data-label]) {
    display: none;
  }

  .num {
    text-align: left;
  }

  .actions {
    text-align: left;
    padding-top: 10px;
  }

  .row-btn {
    margin-left: 0;
    margin-right: 8px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-add {
    width: 100%;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar-filters,
  .toolbar-actions {
    justify-content: flex-start;
  }

  .toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .toolbar-filters .btn,
  .toolbar-actions .btn {
    flex: 1;
  }

  .modal {
    width: calc(100vw - 16px);
  }

  .modal-body {
    padding: 18px 16px;
  }

  .modal-head,
  .modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  position: relative;
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 26px;
  height: 2px;
  background: var(--brass);
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--navy-800);
}

.stat-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.stat-link {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}

.stat-go {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 15px;
  height: 15px;
  color: var(--line-strong);
  transition: color 0.15s var(--ease);
}

.stat-link:hover,
.stat-link:focus-visible {
  border-color: var(--navy-700);
  border-radius: var(--radius-lg);
}

.stat-link:focus-visible {
  box-shadow: var(--ring), var(--shadow-sm);
}

.stat-link:hover .stat-go,
.stat-link:focus-visible .stat-go {
  color: var(--navy-700);
}

.stat.on::before {
  left: 0;
  width: 100%;
}

.stat.on .stat-label {
  color: var(--brass-ink);
}

.dot-pending {
  background: var(--warning);
}

.dot-approved {
  background: var(--success);
}

.dot-rejected {
  background: var(--danger);
}

.dot-taken {
  background: var(--navy-600);
}

.dot-cancelled {
  background: var(--ink-faint);
}

@media (max-width: 1040px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.day-chip {
  flex: 1;
  min-width: 64px;
  padding: 9px 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fcfbf9;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
  transition:
    border-color 0.14s var(--ease),
    background 0.14s var(--ease),
    color 0.14s var(--ease);
}

.day-chip::after {
  content: "Rest";
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.day-chip.on::after {
  content: "Work";
}

.day-chip:hover {
  border-color: var(--navy-700);
  color: var(--ink);
}

.day-chip.on {
  border-color: var(--navy-700);
  background: var(--navy-700);
  color: #fff;
}

.table-prompt {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-soft);
}
.table-prompt p { margin: 0; }
.table-prompt .row-btn { width: auto; }
.pager[hidden] { display: none; }

.pager-nav[hidden] {
  display: none;
}

.rail-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  overflow: hidden;
}

.set-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.set-tab {
  text-align: left;
  padding: 11px 14px;
  border: none;
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.set-tab:hover {
  background: rgba(30, 58, 95, 0.05);
  color: var(--ink);
}

.set-tab.on {
  background: rgba(30, 58, 95, 0.08);
  border-left-color: var(--brass);
  color: var(--ink);
  font-weight: 600;
}

.set-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.set-head {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--line);
}

.set-head h2 {
  font-size: 21px;
  margin-bottom: 4px;
}

.set-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.set-foot .btn {
  width: auto;
  min-height: 42px;
}

.set-foot .btn[hidden] {
  display: none;
}

.set-status {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}

.set-status.on {
  color: var(--brass-ink);
}

.set-status.is-error {
  color: var(--danger);
}

@media (max-width: 900px) {
  .rail-card {
    grid-template-columns: 1fr;
  }

  .set-rail {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .set-rail::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .set-tab {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .set-tab.on {
    border-left: none;
    border-bottom-color: var(--brass);
  }

  .set-foot {
    flex-wrap: wrap;
  }

  .set-status {
    flex-basis: 100%;
  }
}

.account-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 40px 20px;
}

.account-shell .brand-name {
  color: var(--navy-900);
}

.account-card {
  width: 100%;
  max-width: 440px;
  padding: 34px 32px;
  text-align: center;
}

.account-card h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  overflow-wrap: anywhere;
}

.account-card p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.bell-btn {
  position: absolute;
  top: 26px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #e8e5dc;
  cursor: pointer;
}

.bell-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.bell-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--brass);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-align: center;
}

.bell-panel {
  position: fixed;
  z-index: 60;
  width: min(340px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.bell-all {
  border: 0;
  background: none;
  padding: 0;
  color: var(--brass-ink);
  font-size: 12.5px;
  cursor: pointer;
}

.bell-all:hover {
  text-decoration: underline;
}

.bell-list {
  overflow-y: auto;
}

.bell-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.bell-item:last-child {
  border-bottom: 0;
}

.bell-item.unread {
  background: var(--info-bg);
}

.bell-item-text {
  min-width: 0;
  flex: 1;
}

.bell-item.is-target {
  cursor: pointer;
  transition: background 0.14s var(--ease), box-shadow 0.14s var(--ease);
}

.bell-item.is-target:hover {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--brass);
}

.bell-item.is-target.unread:hover {
  background: #dfe6f0;
}

.bell-item.is-target:focus-visible {
  outline: none;
  box-shadow: inset 3px 0 0 var(--brass), inset 0 0 0 2px var(--navy-700);
}

.bell-item strong {
  display: block;
  font-size: 13.5px;
}

.bell-item p {
  margin: 2px 0 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.bell-modal-text {
  display: grid;
  gap: 10px;
}

.bell-modal-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.bell-modal-when {
  font-size: 12.5px;
  color: var(--ink-faint);
}

.bell-item time {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.bell-item button {
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 3px 9px;
  font-size: 12px;
  cursor: pointer;
}

.bell-empty {
  margin: 0;
  padding: 26px 14px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
}

@media (max-width: 900px) {
  .bell-btn {
    position: relative;
    top: auto;
    right: auto;
    order: 3;
    margin-left: auto;
  }
}

.pw-card {
  max-width: 400px;
  text-align: left;
}

.pw-card h1 {
  text-align: left;
}

.pw-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.pw-form .field {
  margin-bottom: 0;
}

.pw-out {
  width: 100%;
  margin-top: 12px;
}

.ans-loading {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.ans-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.token-box {
  display: block;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  word-break: break-all;
  user-select: all;
}

.temp-password {
  font-size: 19px;
  letter-spacing: 0.06em;
  text-align: center;
  font-weight: 600;
  word-break: normal;
}

.print-logo:not([hidden]) {
  display: block;
  max-width: 180px;
  max-height: 46px;
  margin-bottom: 6px;
  object-fit: contain;
}

.pw-rules {
  margin: 4px 0 8px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.ts-state {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--ink-soft);
}

.ts-state.ts-on {
  color: var(--success);
}

.ts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ts-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 8px 0;
}

.ts-key code,
.ts-codes code {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.ts-codes {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 24px;
  padding-left: 18px;
}

.ts-steps {
  margin: 0 0 4px;
  padding-left: 18px;
}

.ts-ask {
  margin-top: 12px;
}

.ts-box {
  margin-bottom: 16px;
}

/* the "Read only" pill on Settings, Audit Trail, Kiosk Scans and the tables pages */
.readonly-tag {
  align-self: center;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: var(--paper);
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
