:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #172033;
  --muted: #687084;
  --line: #dfe3ea;
  --primary: #1476ff;
  --primary-dark: #075ed4;
  --danger: #c93535;
  --ok-bg: #e8f7ef;
  --ok: #168348;
  --warn-bg: #fff4dc;
  --warn: #9a6200;
  --idle-bg: #edf1f7;
  --idle: #53627a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  height: 60px;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand {
  color: var(--text);
  font-weight: 700;
}

nav {
  display: flex;
  gap: 16px;
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px;
}

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

h1, h2, p {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 6px;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.panel, .employee-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 20px;
}

.narrow {
  max-width: 640px;
}

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

label {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
}

.button:hover {
  text-decoration: none;
}

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

.button.primary:hover {
  background: var(--primary-dark);
}

.button.danger {
  color: var(--danger);
}

.button.full {
  display: flex;
  width: 100%;
}

.actions {
  display: flex;
  gap: 10px;
}

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

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

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.empty {
  color: var(--muted);
  text-align: center;
}

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

.badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  white-space: nowrap;
}

.badge-completed {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge-active, .badge-opened, .badge-jumped {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge-pending, .badge-expired, .badge-cancelled {
  background: var(--idle-bg);
  color: var(--idle);
}

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

.meta-grid div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 72px;
  padding: 12px;
}

.meta-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.url-line {
  margin: 18px 0 0;
  overflow-wrap: anywhere;
}

.employee-card {
  margin: 42px auto;
  max-width: 520px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 8px;
}

.employee-status {
  margin: 18px 0;
}

.hint {
  font-size: 13px;
  margin: 14px 0 0;
  text-align: center;
}

@media (max-width: 760px) {
  .topbar, .page-head, .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    height: auto;
    padding: 16px;
  }

  main {
    padding: 16px;
  }

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

  table {
    display: block;
    overflow-x: auto;
  }
}

