:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #233b39;
  background: #f4f5f1;
  font-synthesis: none;
  --ink: #233b39;
  --muted: #7b8782;
  --line: #e1e6df;
  --green: #365e50;
  --lime: #d8e8aa;
  --paper: #fff;
  --red: #a8453e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 15px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 550;
  transition: background 0.15s;
}
button:hover {
  background: #f0f3ec;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.primary:hover {
  background: #284a3e;
}
button.danger {
  color: var(--red);
  border-color: #ebc9c5;
}
button.small {
  padding: 7px 10px;
  font-size: 12px;
}
button.text {
  background: transparent;
  border: 0;
  padding: 7px;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d9e0d7;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-size: 14px;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #688c76;
  outline: 2px solid #d9e6d7;
}
label {
  font-size: 12px;
  color: #576d61;
  display: block;
  margin-bottom: 6px;
  font-weight: 550;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  font-weight: 580;
  line-height: 1.2;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.smalltext {
  font-size: 12px;
}
.loading {
  padding: 60px;
  text-align: center;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 30px 20px;
  background: #233f3d;
  color: #c2d0c9;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 31px;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.brand-mark {
  width: 31px;
  height: 31px;
  background: var(--lime);
  color: #233f3d;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 600;
}
.brand small {
  font-size: 10px;
  color: #a7bab0;
  border-left: 1px solid #526b60;
  padding-left: 10px;
  letter-spacing: 1.3px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #91a99e;
  padding: 15px 14px 12px;
}
.nav a {
  color: #c9d5ce;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 3px 0;
  font-size: 13px;
  text-decoration: none;
}
.nav a svg {
  width: 17px;
  height: 17px;
  opacity: 0.85;
  flex-shrink: 0;
}
.nav a:hover {
  background: #304f49;
}
.nav a.active {
  background: var(--lime);
  color: #27433b;
  font-weight: 650;
}
.sidebar-foot {
  margin-top: auto;
  padding: 24px 12px 2px;
  border-top: 1px solid #3e5850;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-foot a {
  color: #b6c8bc;
  font-size: 12px;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: #f8f9f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 14px;
}
.breadcrumb {
  font-size: 12px;
  color: #7a8980;
}
.breadcrumb span {
  color: #344f41;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #e7ecdd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #59704f;
  font-size: 12px;
  font-weight: 700;
}
.user .role {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.page {
  max-width: 1580px;
  margin: auto;
  padding: 35px 38px 50px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #7b8d7f;
  margin-bottom: 9px;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
  line-height: 1.6;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  min-height: 134px;
}
.stat .label {
  font-size: 12px;
  color: #78877c;
  display: flex;
  justify-content: space-between;
}
.stat .value {
  font-size: 35px;
  letter-spacing: -1px;
  margin: 17px 0 8px;
  font-weight: 550;
}
.stat .foot {
  font-size: 10px;
  color: #8c998e;
}
.stat.accent {
  background: var(--lime);
  border-color: var(--lime);
}
.grid2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-header {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0e9;
}
.panel-body {
  padding: 22px;
}
.panel-footer {
  padding: 15px 22px;
  background: #fcfdf9;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.item {
  padding: 17px 22px;
  border-bottom: 1px solid #edf0e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.item:last-child {
  border: 0;
}
.item-title {
  font-size: 13px;
  margin-bottom: 5px;
  font-weight: 550;
}
.item-meta {
  color: #8a958d;
  font-size: 11px;
}
.badge {
  display: inline-block;
  font-size: 10px;
  line-height: 1.4;
  padding: 5px 9px;
  border-radius: 20px;
  background: #eef3e9;
  color: #58724c;
  white-space: nowrap;
}
.badge.warn {
  background: #faf0d9;
  color: #9c772d;
}
.badge.red {
  background: #fae9e5;
  color: #a05c50;
}
.badge.neutral {
  background: #f0f2ee;
  color: #7f8980;
}
.empty {
  padding: 45px 24px;
  text-align: center;
  color: #869187;
  font-size: 13px;
}
.empty svg {
  width: 36px;
  height: 36px;
  opacity: 0.4;
  margin-bottom: 14px;
}
.empty h3 {
  color: #435c4c;
  margin-bottom: 8px;
}
.empty p {
  max-width: 420px;
  margin: 0 auto 18px;
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input[type="search"] {
  max-width: 330px;
  background: #fff;
}
.toolbar select {
  max-width: 220px;
}
.toolbar input[type="month"],
.toolbar input[type="date"] {
  width: 180px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8a958d;
  font-weight: 550;
  background: #fafbf7;
  padding: 14px 20px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #edf0e9;
  vertical-align: middle;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fafcf7;
}
.person {
  display: flex;
  gap: 10px;
  align-items: center;
}
.person .avatar {
  border-radius: 9px;
  flex-shrink: 0;
}
.person strong {
  display: block;
  font-weight: 550;
  margin-bottom: 5px;
}
.person small {
  color: #8a958d;
  font-size: 10px;
}
.row-link {
  color: var(--ink);
}
.note {
  padding: 14px 17px;
  border-radius: 9px;
  background: #edf3e8;
  font-size: 12px;
  line-height: 1.7;
  color: #5c7352;
  margin-bottom: 20px;
}
.note.warn {
  background: #fff5e3;
  color: #917239;
}
.note.error {
  background: #fbeeea;
  color: #994c40;
}
.note ul {
  margin: 8px 0;
  padding-left: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.detail-grid dt {
  font-size: 11px;
  color: #8a958d;
  margin-bottom: 8px;
}
.detail-grid dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.tabs {
  display: flex;
  gap: 22px;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 14px 2px;
  color: #849180;
  white-space: nowrap;
}
.tabs button.active {
  border-bottom: 2px solid var(--green);
  color: var(--green);
}
.timeline {
  border-left: 1px solid #dbe3d6;
  margin-left: 5px;
  padding-left: 24px;
}
.event {
  position: relative;
  padding-bottom: 25px;
  font-size: 12px;
}
.event:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72936a;
  left: -28px;
  top: 5px;
}
.event p {
  font-size: 11px;
  color: #7d8b7e;
  margin-top: 5px;
  white-space: pre-wrap;
}
.attendance th,
.attendance td {
  padding: 6px;
  text-align: center;
  min-width: 32px;
}
.attendance th:first-child,
.attendance td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  text-align: left;
  min-width: 170px;
  z-index: 1;
  padding-left: 15px;
}
.attendance .cell {
  border: 0;
  padding: 6px 4px;
  min-width: 28px;
  font-size: 10px;
  border-radius: 5px;
  color: #7b8780;
  background: #f0f2ec;
}
.attendance .cell.work {
  background: #e1eedb;
  color: #50773d;
}
.attendance .cell.leave {
  background: #e3ecf4;
  color: #4c7290;
}
.attendance .cell.sick {
  background: #fff0d9;
  color: #9e7d3c;
}
.attendance .cell.planned {
  background: #fff4de;
  color: #b38a3b;
}
.attendance .cell.absent,
.attendance .cell.unpaid {
  background: #f8e7e2;
  color: #ab6554;
}
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #839080;
  padding: 18px 22px;
}
.report-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.report-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: white;
}
.report-card p {
  font-size: 12px;
  color: #7f8c80;
  margin: 12px 0 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field.full {
  grid-column: 1/-1;
}
.form-error {
  color: #a04740;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 15px;
  white-space: pre-wrap;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
dialog {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 15px;
  width: min(630px, calc(100vw - 32px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 24px 90px #152c2c30;
}
dialog::backdrop {
  background: #142d2c66;
  backdrop-filter: blur(2px);
}
dialog h2 {
  font-size: 20px;
}
dialog .subtitle {
  margin: -10px 0 22px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-art {
  background: #233f3d;
  color: white;
  position: relative;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.login-art:after {
  content: "";
  width: 500px;
  height: 500px;
  border: 1px solid #b7cc8e35;
  border-radius: 50%;
  position: absolute;
  bottom: -250px;
  right: -140px;
  box-shadow:
    0 0 0 65px #b7cc8e0b,
    0 0 0 130px #b7cc8e08;
}
.login-art .brand {
  position: absolute;
  top: 40px;
  left: 45px;
}
.login-art h1 {
  font-size: 52px;
  letter-spacing: -2px;
  font-weight: 450;
  line-height: 1.17;
  max-width: 490px;
}
.login-art p {
  color: #b7cbbd;
  margin-top: 25px;
  max-width: 340px;
  font-size: 15px;
}
.login-form {
  align-self: center;
  width: min(390px, calc(100% - 64px));
  margin: auto;
}
.login-form h2 {
  font-size: 27px;
}
.login-form .field {
  margin: 20px 0;
}
.login-form button.primary {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
}
.login-footer {
  margin-top: 30px;
  font-size: 11px;
  color: #99a394;
}
.menu-toggle {
  display: none;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #233f3d;
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  box-shadow: 0 8px 35px #0002;
  font-size: 13px;
  z-index: 100;
  display: none;
  max-width: calc(100vw - 32px);
}
.totals {
  font-weight: 650;
  background: #edf4e5;
}
.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.file-input {
  border: 2px dashed #d9e3d2;
  padding: 25px;
  background: #fafcf6;
  border-radius: 12px;
}
.mono {
  font-family: ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.split-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.back {
  display: inline-block;
  font-size: 12px;
  margin-bottom: 18px;
}
.notice-count {
  background: #f3eee0;
  color: #9d824f;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 10px;
}
body.busy button[type="submit"] {
  pointer-events: none;
  opacity: 0.6;
}
@media (min-width: 1600px) {
  .page {
    padding-top: 44px;
  }
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .report-cards {
    grid-template-columns: 1fr 1fr;
  }
  .page {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #13292377;
  }
  .workspace {
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
  .topbar {
    height: 66px;
    padding: 0 16px;
  }
  .breadcrumb {
    display: none;
  }
  .page {
    padding: 24px 16px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
    min-height: 124px;
  }
  .stat .value {
    font-size: 29px;
  }
  .grid2 {
    gap: 0;
  }
  .panel-header,
  .panel-body {
    padding: 17px;
  }
  .report-cards {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    gap: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .login {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-form {
    padding-top: 100px;
  }
  .user .role {
    font-size: 9px;
  }
  .actions {
    width: 100%;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar input[type="search"] {
    max-width: none;
  }
  .toolbar select {
    flex: 1;
    max-width: none;
  }
  .item {
    padding: 16px;
  }
  .tabs {
    gap: 18px;
  }
  dialog {
    padding: 22px;
  }
  .user .name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media print {
  .sidebar,
  .topbar,
  .actions,
  .toolbar,
  button {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .page {
    padding: 0;
  }
  .panel {
    border: 0;
  }
  .table-wrap {
    overflow: visible;
  }
}

.report-card > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  color: #668363;
}
