:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #697586;
  --line: #dedbd2;
  --accent: #126b5c;
  --accent-strong: #0d5348;
  --amber: #b45f06;
  --red: #b42318;
  --blue: #235789;
  --shadow: 0 14px 35px rgba(38, 45, 54, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

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

.sidebar {
  background: #173b35;
  color: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f2c078;
  color: #173b35;
  font-weight: 800;
  font-size: 22px;
}

.brand span,
.sidebar-note span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  margin-top: 2px;
}

.role-nav {
  display: grid;
  gap: 8px;
}

.nav-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-radius: 8px;
  text-align: left;
  padding: 0 14px;
}

.nav-button.active {
  background: white;
  color: #173b35;
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-note strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.main {
  padding: 28px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.page-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
}

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

.panel,
.metric,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.metric {
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title h2 {
  margin: 0;
  font-size: 18px;
}

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

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--accent);
  color: white;
  font-weight: 650;
}

.btn.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

.btn.warning {
  background: var(--amber);
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: #e8f2ef;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.badge.warn {
  background: #fff2d9;
  color: #8a4b08;
}

.badge.red {
  background: #ffe7e3;
  color: var(--red);
}

.kiosk-screen {
  max-width: 760px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  display: grid;
  align-content: center;
}

.kiosk-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.kiosk-clock {
  font-size: 56px;
  font-weight: 800;
  margin: 6px 0 22px;
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-item,
.request-item,
.shift-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.event-item small,
.request-item small,
.shift-item small {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.employee-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #173b35;
  color: white;
  margin-bottom: 18px;
}

.employee-strip select {
  max-width: 280px;
}

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

  .sidebar {
    position: static;
    padding: 16px;
  }

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

  .nav-button {
    text-align: center;
  }

  .sidebar-note {
    display: none;
  }

  .main {
    padding: 16px;
  }

  .grid.two,
  .grid.three,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-head {
    display: block;
  }
}

@media (max-width: 560px) {
  .role-nav {
    grid-template-columns: 1fr;
  }

  .page-head h1 {
    font-size: 27px;
  }

  .kiosk-clock {
    font-size: 40px;
  }

  th,
  td {
    padding: 10px 8px;
  }
}
