:root {
  --bg: #f4f6f2;
  --panel: #ffffff;
  --text: #142018;
  --muted: #637068;
  --line: #d6ddd5;
  --green: #237a4b;
  --green-soft: #dff3e6;
  --red: #b42318;
  --red-soft: #ffe3de;
  --shadow: 0 12px 24px rgba(20, 32, 24, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

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

a {
  color: inherit;
}

.shell-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
}

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

.header-links a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell-main {
  padding: 24px 32px 40px;
  display: grid;
  gap: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs-separator {
  color: #97a39b;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.narrow {
  max-width: 540px;
}

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

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

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

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

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

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

.notice,
.error {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.notice {
  background: var(--green-soft);
  color: var(--green);
}

.error {
  background: var(--red-soft);
  color: var(--red);
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.actions form {
  margin: 0;
}

.actions-left {
  justify-content: flex-start;
}

.wrap {
  flex-wrap: wrap;
}

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

.context-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fbfcfa;
}

.context-card h3 {
  margin-bottom: 8px;
}

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

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

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef2ee;
  text-align: left;
  vertical-align: top;
}

code {
  font-family: Consolas, "Courier New", monospace;
  background: #f4f6f2;
  border-radius: 6px;
  padding: 2px 6px;
}

.year-card + .year-card {
  margin-top: 18px;
}

.year-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.details-stack {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.details-stack p {
  margin-bottom: 0;
}

.checkbox-row {
  display: flex;
  align-items: start;
  gap: 10px;
  font-weight: 400;
}

.checkbox-row input {
  width: auto;
  margin-top: 3px;
}

.employee-context .grid-two {
  margin-top: 10px;
}

.employee-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.employee-tab.active {
  background: var(--green-soft);
  border-color: #9fd0af;
  color: var(--green);
}

@media (max-width: 860px) {
  .shell-header,
  .year-card__header {
    flex-direction: column;
    align-items: start;
  }

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