:root {
  color-scheme: light;
  --ink: #112746;
  --muted: #7c6d5c;
  --line: #eadfce;
  --surface: rgba(255, 255, 255, 0.88);
  --shell: #fbf7f1;
  --nav: rgba(255, 255, 255, 0.72);
  --nav-active: #faf3e9;
  --blue: #113e78;
  --green: #3e7c55;
  --amber: #b78a43;
  --red: #a9473f;
  --teal: #356c72;
  --gold: #b9914e;
  --gold-soft: #f4eadb;
  --shadow: 0 12px 34px rgba(27, 33, 45, 0.06);
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(110deg, #fffaf5 0%, #fbf7f1 44%, #ffffff 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  min-height: 36px;
  border-radius: 9px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.76) inset;
}

button:hover {
  border-color: #c8a96d;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.primary {
  background: #fffaf5;
  border-color: #d9c49f;
  color: #9a6f2a;
}

button.success {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

button.danger {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

button.subtle-danger {
  background: #fff;
  color: var(--red);
  border-color: #efc5c5;
}

button.mini {
  min-width: 58px;
  min-height: 28px;
  padding: 0 7px;
}

button.icon {
  width: 36px;
  padding: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.hidden-input {
  display: none;
}

.inline-select {
  min-height: 24px;
  border-radius: 4px;
  padding: 2px 22px 2px 6px;
  font-size: 12px;
}

.dept-select {
  width: 164px;
  min-width: 164px;
  max-width: 164px;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.side-nav {
  background: var(--nav);
  color: var(--ink);
  padding: 22px 18px;
  border-right: 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 0 8px 24px;
}

.brand strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.brand span {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.nav-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.nav-list button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 58px;
  border: 1px solid transparent;
  color: var(--ink);
  background: transparent;
  border-radius: 10px;
  padding: 0 18px;
  box-shadow: none;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.nav-list button.active {
  background: var(--nav-active);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.nav-list button span:first-child {
  color: #8d8172;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 23px;
}

.main {
  min-width: 0;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 0;
}

.collapse-button {
  display: none;
}

.topbar-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}

.topbar-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.role-switch {
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  text-transform: none;
  font-size: 12px;
}

.role-switch select {
  width: auto;
  min-width: 150px;
  min-height: 48px;
  padding: 8px 18px;
}

.content {
  min-height: calc(100vh - 78px);
  margin: 0;
  padding: 22px 36px 30px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.content > h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}

.user-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ddc8a7;
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--serif);
  background: #fffaf5;
}

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
}

.section-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0;
}

.section-body {
  padding: 18px 24px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px 28px 20px 94px;
  background: rgba(255, 255, 255, 0.78);
  position: relative;
  box-shadow: var(--shadow);
}

.metrics-grid {
  margin-bottom: 12px;
}

.metric i,
.section-emblem {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid #e0ccb0;
  border-radius: 999px;
  color: var(--gold);
  font-style: normal;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: #fffaf5;
}

.metric i {
  position: absolute;
  left: 28px;
  top: 29px;
  font-size: 24px;
}

.section-emblem {
  margin-right: 14px;
  vertical-align: middle;
  font-size: 22px;
}

.metric span {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 0;
}

.toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar label {
  min-width: 160px;
}

.actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

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

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--serif);
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: #6d6371;
  background: rgba(255, 250, 245, 0.72);
  font-family: var(--serif);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.timecard-grid {
  font-size: 12px;
  table-layout: auto;
  line-height: 1.2;
}

.timecard-grid th,
.timecard-grid td {
  padding: 4px 8px;
}

.timecard-grid button.mini {
  min-height: 26px;
  padding: 0 9px;
}

.timecard-grid .inline-select {
  min-height: 22px;
  height: 22px;
  padding-top: 0;
  padding-bottom: 0;
}

.timecard-grid th:nth-child(n+6):nth-child(-n+13),
.timecard-grid td:nth-child(n+6):nth-child(-n+13) {
  text-align: right;
  min-width: 48px;
}

.timecard-grid th:nth-last-child(-n+3),
.timecard-grid td:nth-last-child(-n+3) {
  text-align: center;
  width: 74px;
}

.timecard-grid .day-even td {
  background: #fff;
}

.timecard-grid .day-odd td {
  background: rgba(250, 243, 233, 0.58);
}

.timecard-grid tr.lunch td,
.timecard-grid tr.benefit td {
  color: #52606b;
}

.timecard-grid tfoot th {
  background: #edf2f5;
  color: var(--ink);
}

.timecard-controls {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(430px, 1fr) minmax(160px, 1fr);
  align-items: start;
  padding-top: 13px;
  padding-bottom: 13px;
}

.centered-toolbar {
  justify-content: center;
  align-items: end;
}

.nav-stack {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.nav-pair button {
  align-self: end;
  margin-bottom: 0;
  min-width: 34px;
  width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
}

.nav-pair button.nav-arrow {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  width: 40px;
  min-height: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border-color: #e1d1b8;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(27, 33, 45, 0.05), 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.nav-pair button.nav-arrow:hover {
  background: #fffaf5;
  border-color: #c8a96d;
  transform: translateY(-1px);
}

.period-nav label {
  min-width: 250px;
}

.period-nav button,
.period-nav select {
  min-height: 40px;
  height: 40px;
}

.timecard-summary th,
.timecard-summary td {
  text-align: right;
  padding: 7px 14px;
}

.timecard-summary th:first-child,
.timecard-summary td:first-child {
  text-align: left;
}

.timecard-summary tbody tr:nth-child(odd) th,
.timecard-summary tbody tr:nth-child(odd) td {
  background: #fff;
}

.timecard-summary tbody tr:nth-child(even) th,
.timecard-summary tbody tr:nth-child(even) td {
  background: rgba(250, 243, 233, 0.58);
}

.timecard-summary tbody tr:last-child th,
.timecard-summary tbody tr:last-child td {
  font-weight: 700;
}

.action-cell {
  padding-left: 4px;
  padding-right: 4px;
}

.nav-pair {
  display: flex;
  align-items: end;
  gap: 8px;
}

.nav-pair select {
  min-height: 34px;
  height: 34px;
  border-radius: 7px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.nav-pair h2 {
  min-width: 170px;
  text-align: center;
}

.employee-nav label {
  min-width: 220px;
}

.nav-pair.compact {
  gap: 6px;
}

.nav-pair.compact button {
  min-width: 30px;
}

.check-label {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
}

.check-label input {
  width: auto;
  min-height: auto;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f5;
  color: var(--muted);
}

.status.in {
  background: #e5f4ec;
  color: var(--green);
}

.status.out {
  background: #edf1f4;
  color: #52606b;
}

.status.lunch {
  background: #fff2dc;
  color: var(--amber);
}

.status.review {
  background: #ffe8e5;
  color: var(--red);
}

.status.approved {
  background: #e7f3f4;
  color: var(--teal);
}

.note {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
}

.kiosk {
  max-width: 760px;
  margin: 0 auto;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pin-pad button {
  min-height: 60px;
  font-size: 20px;
  font-weight: 750;
}

.kiosk-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kiosk-actions button {
  min-height: 58px;
  font-weight: 750;
}

.kiosk-confirmation {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 28, 36, 0.32);
}

.kiosk-confirmation-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(16, 30, 54, 0.22);
  text-align: center;
}

.kiosk-confirmation-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid #e0ccb0;
  border-radius: 999px;
  color: var(--gold);
  font-size: 30px;
  background: #fff;
}

.kiosk-confirmation-card h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  color: var(--ink);
}

.kiosk-confirmation-card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 17px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.request-row,
.issue-row {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.request-row:first-child,
.issue-row:first-child {
  padding-top: 0;
}

.request-row:last-child,
.issue-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.calendar {
  display: grid;
  grid-template-columns: 120px repeat(7, minmax(130px, 1fr));
  overflow-x: auto;
}

.schedule-calendar {
  grid-template-columns: 120px 48px repeat(7, minmax(130px, 1fr));
}

.calendar.employee-calendar {
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.calendar div {
  min-height: 48px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar div:not(.head):not(.name) {
  cursor: pointer;
}

.calendar div:not(.head):not(.name):hover {
  background: #f0f6fa;
}

.calendar .calendar-blank,
.calendar .calendar-blank:hover {
  cursor: default;
  background: #f8fafc;
}

.employee-calendar div:not(.head) {
  cursor: default;
}

.employee-calendar div:not(.head):hover {
  background: #fff;
}

.calendar .head,
.calendar .name,
.calendar .schedule-hours-cell {
  background: #f7f9fa;
  color: var(--muted);
  font-weight: 750;
}

.schedule-day-head {
  display: grid;
  align-content: center;
  gap: 2px;
}

.schedule-day-head span {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.schedule-day-head strong {
  font-size: 15px;
}

.schedule-hours-head,
.schedule-hours-cell {
  display: grid;
  place-items: center;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 13px;
  white-space: nowrap;
}

.calendar div.schedule-hours-cell {
  color: var(--ink);
  cursor: default !important;
}

.calendar div.schedule-hours-cell:hover {
  background: #f7f9fa !important;
}

.calendar .sunday-head,
.calendar .sunday-closed {
  background: #f3f4f6;
  color: #9a948b;
}

.calendar .sunday-closed .note {
  color: #aaa29a;
}

.schedule-frequency-note {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 24px;
  margin: 0;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 140px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 250, 245, 0.5);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #202326;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  max-width: 360px;
  z-index: 20;
}

dialog {
  width: min(720px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  padding: 0;
  background: #fff;
}

dialog::backdrop {
  background: rgba(32, 35, 38, 0.42);
}

.modal-body {
  padding: 16px;
}

.punch-modal-body {
  display: grid;
  gap: 16px;
}

.punch-modal-grid,
.punch-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.58fr);
  gap: 16px;
  align-items: end;
}

.punch-modal-body label {
  display: grid;
  gap: 6px;
}

dialog input,
dialog select,
dialog textarea {
  background: #fffaf5;
  min-height: 40px;
}

.schedule-dialog {
  width: min(360px, calc(100vw - 28px));
}

.schedule-action-dialog {
  width: min(560px, calc(100vw - 28px));
}

.schedule-modal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 22px;
}

.schedule-modal-body label {
  display: grid;
  gap: 6px;
}

.schedule-modal-body input,
.schedule-modal-body select {
  width: 100%;
  min-height: 40px;
  height: 40px;
  max-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 11px;
  background: #fffaf5;
  color: var(--ink);
  line-height: 1.2;
}

.schedule-modal-body input[type="date"],
.schedule-modal-body input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
}

.schedule-modal-body input:disabled {
  opacity: 0.72;
}

.eop-disclaimer {
  margin: -4px 0 0;
  font-size: 13px;
}

.eop-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  margin-top: -4px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.eop-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  max-height: 16px;
  padding: 0;
  accent-color: #b88945;
}

.schedule-status-hours-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.schedule-status-hours-row input[readonly] {
  text-align: center;
  background: #f7f9fa;
}

.schedule-modal-actions {
  justify-content: flex-start;
  padding-top: 2px;
  padding-bottom: 4px;
}

.schedule-modal-actions button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.schedule-period-section {
  overflow: visible;
}

.schedule-period-section .section-header {
  align-items: flex-start;
  flex-wrap: wrap;
}

.schedule-period-actions {
  flex: 1 1 760px;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 100%;
  padding-right: 0;
  gap: 10px;
}

.schedule-period-actions .period-nav button,
.schedule-period-actions .period-nav select,
.schedule-period-actions .schedule-control-label select,
.schedule-period-actions button.mini {
  min-height: 40px;
  height: 40px;
}

.schedule-period-actions .schedule-control-label {
  min-width: 250px;
}

.schedule-period-actions button.schedule-text-cta,
.schedule-period-actions button.schedule-export-cta,
.schedule-period-actions button.schedule-undo-cta {
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 800;
}

.schedule-period-actions button.schedule-text-cta {
  background: rgba(62, 124, 85, 0.12);
  border-color: rgba(62, 124, 85, 0.3);
  color: #28573b;
  box-shadow: 0 8px 20px rgba(62, 124, 85, 0.08);
}

.schedule-period-actions button.schedule-text-cta:hover {
  background: rgba(62, 124, 85, 0.18);
  border-color: rgba(62, 124, 85, 0.48);
}

.schedule-period-actions button.schedule-export-cta {
  background: rgba(29, 95, 167, 0.11);
  border-color: rgba(29, 95, 167, 0.28);
  color: #174a82;
  box-shadow: 0 8px 20px rgba(29, 95, 167, 0.07);
}

.schedule-period-actions button.schedule-export-cta:hover {
  background: rgba(29, 95, 167, 0.17);
  border-color: rgba(29, 95, 167, 0.44);
}

.schedule-period-actions button.schedule-undo-cta {
  background: rgba(112, 31, 49, 0.12);
  border-color: rgba(112, 31, 49, 0.3);
  color: #6b1f31;
  box-shadow: 0 8px 20px rgba(112, 31, 49, 0.08);
}

.schedule-period-actions button.schedule-undo-cta:hover {
  background: rgba(112, 31, 49, 0.18);
  border-color: rgba(112, 31, 49, 0.46);
}

.schedule-action-body {
  display: grid;
  gap: 14px;
}

.schedule-select-all-link {
  justify-self: start;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d5fa7;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

.schedule-select-all-link:hover {
  color: #163f73;
  background: transparent;
}

.schedule-employee-picker {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fffaf5;
}

.schedule-employee-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.schedule-employee-option:hover {
  background: #f8ecd8;
}

.schedule-employee-option.missing-contact em {
  color: #9b4f3f;
}

.schedule-employee-option.disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.schedule-employee-option.disabled:hover {
  background: transparent;
}

.schedule-employee-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: #b88945;
}

.schedule-employee-option span {
  display: grid;
  gap: 2px;
}

.schedule-employee-option em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.schedule-employee-option small {
  color: var(--muted);
}

.schedule-table-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.schedule-table-actions button.mini {
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.schedule-table-actions button.schedule-text-cta {
  min-width: 190px;
  min-height: 58px;
  height: 58px;
  padding: 0 26px;
  background: #c79a4b;
  border-color: #b88945;
  color: #fffaf5;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(184, 137, 69, 0.24);
}

.schedule-table-actions button.schedule-text-cta:hover {
  background: #b88945;
  border-color: #9a6f2a;
}

@media (max-width: 920px) {
  .schedule-period-actions,
  .schedule-table-actions {
    flex-wrap: wrap;
  }

  .schedule-period-actions {
    padding-right: 0;
  }

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

  .side-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px;
  }

  .brand {
    padding-bottom: 10px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
  }

  .nav-list button {
    grid-template-columns: 1fr;
    justify-items: center;
    font-size: 12px;
  }

  .nav-list button span:first-child {
    display: none;
  }

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .split {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
    padding: 14px;
  }

  .content {
    padding: 14px;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 0.28in;
  }

  body {
    background: #fff;
  }

  .app-shell {
    display: block;
    min-height: 0;
  }

  .side-nav,
  .topbar,
  .actions,
  .toolbar,
  .toast,
  dialog,
  .section:has(#punchDialog),
  .section:has(#scheduleDialog),
  .section-header button,
  .action-cell {
    display: none !important;
  }

  .content {
    padding: 0;
  }

  .section {
    border: 0;
    box-shadow: none;
    margin-bottom: 8px;
    page-break-inside: avoid;
  }

  .section-header {
    padding: 4px 0;
    border-bottom: 1px solid #bbb;
  }

  .section-body {
    padding: 4px 0;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    font-size: 9px;
  }

  th,
  td {
    padding: 2px 4px;
  }

  .timecard-grid th:nth-last-child(-n+3),
  .timecard-grid td:nth-last-child(-n+3) {
    display: none;
  }

.summary-box {
  break-before: avoid;
}
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top, #fff 0, #f7f1e8 58%, #efe4d6 100%);
}

.login-panel {
  width: min(430px, calc(100vw - 12px));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 26px 24px;
  display: grid;
  gap: 18px;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.login-brand .brand-copy {
  display: grid;
  gap: 1px;
  justify-items: center;
  text-align: center;
}

.login-brand img {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
}

.login-brand h1 {
  margin: 0;
  font-family: var(--serif);
  line-height: 1;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.login-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.1;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-help {
  margin-top: -8px;
}

button.text-link {
  min-height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: #1a5f9e;
  font-size: 13px;
  font-weight: 500;
}

button.text-link:hover {
  color: #9a6f2a;
  text-decoration: underline;
}

.login-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.login-actions button {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 10px;
  font-size: 12px;
}

.login-actions button + button {
  margin-left: 14px;
}
