@font-face {
  font-family: Inter;
  src: url("vendor/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f4f6f8;
  --surface: #fff;
  --ink: #172c32;
  --muted: #6c7e84;
  --line: #e2e8eb;
  --primary: #116b58;
  --mint: #e5f3ed;
  --cyan: #0b8095;
  --amber: #976916;
  --red: #b74749;
  --shadow: 0 8px 28px #21363c0d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    13px Inter,
    Arial,
    sans-serif;
  letter-spacing: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--primary);
  text-decoration: none;
}
button .lucide {
  flex-shrink: 0;
}
.lucide {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
small {
  font-size: 11px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.mono {
  font-variant-numeric: tabular-nums;
}
.strong {
  font-weight: 600;
}
.positive {
  color: var(--primary);
}
.negative {
  color: var(--red);
}
.nowrap {
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 90;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  position: fixed;
  width: 232px;
  height: 100dvh;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 26px 16px 16px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 28px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand b {
  font-size: 18px;
  font-weight: 700;
}
.brand small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}
.workspace {
  padding: 13px 12px;
  background: #f7f9fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace .company-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #e9f1ee;
  color: var(--primary);
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: #87969c;
  text-transform: uppercase;
  padding: 0 12px;
  margin: 17px 0 8px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #66777e;
  padding: 11px 12px;
  margin: 3px 0;
  border-radius: 5px;
  font-weight: 500;
}
.nav-link:hover {
  background: #f3f7f6;
}
.nav-link.active {
  background: var(--mint);
  color: var(--primary);
  box-shadow: inset 3px 0 var(--primary);
}
.nav-link .count {
  margin-left: auto;
  background: #d3eadd;
  color: #28634e;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 9px 0;
}
.local-indicator {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #658074;
  font-size: 11px;
}
.dot {
  width: 6px;
  height: 6px;
  background: #4c9b77;
  border-radius: 50%;
  display: inline-block;
}
.sidebar-bottom small {
  display: block;
  margin: 7px 0;
  line-height: 1.5;
}
.content {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9edfa;
  color: #536292;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 9px;
}
.user-info small {
  display: block;
  margin-top: 3px;
}
.mobile-menu {
  display: none;
}
.main {
  max-width: 1680px;
  margin: auto;
  padding: 30px 32px 36px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 25px;
}
.page-head p {
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.btn:hover {
  background: #f6f8f9;
}
.btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn.primary:hover {
  background: #0b5848;
}
.btn.danger {
  background: #fff4f4;
  border-color: #efd6d6;
  color: var(--red);
}
.btn.subtle {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn.icon {
  padding: 7px;
  width: 34px;
  min-height: 34px;
}
.btn.sm {
  min-height: 29px;
  padding: 5px 9px;
  font-size: 11px;
}
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: white;
  border-radius: 7px;
  margin-bottom: 24px;
}
.stat {
  padding: 21px 22px;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.stat-label .lucide {
  color: #96aaa6;
}
.stat-value {
  font-size: 26px;
  font-weight: 600;
  margin: 11px 0 8px;
  white-space: nowrap;
  min-height: 32px;
}
.stat-foot {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.stat-foot .badge {
  margin-right: 5px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-body {
  padding: 21px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(270px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.chart-wrap {
  height: 224px;
  padding: 18px 22px 12px;
}
.bar-chart {
  height: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.bar-group {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.bar-group small {
  font-size: 10px;
  padding-bottom: 6px;
}
.bars {
  height: 170px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  justify-content: center;
}
.bar {
  width: 22px;
  max-width: 36%;
  border-radius: 3px 3px 0 0;
  background: #88c8ba;
}
.bar.alt {
  background: #c8dce4;
}
.bar.current {
  background: var(--primary);
}
.chart-legend {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin: 16px 0 0;
}
.legend-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 2px;
  margin-right: 5px;
}
.run-period {
  display: flex;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.run-period b {
  font-size: 17px;
}
.run-period small {
  display: block;
  margin-top: 7px;
}
.progress {
  height: 5px;
  border-radius: 3px;
  background: #edf1ef;
  overflow: hidden;
  margin: 18px 0;
}
.progress span {
  display: block;
  background: var(--primary);
  height: 100%;
}
.check-list {
  display: grid;
  gap: 14px;
  margin: 19px 0;
}
.check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.check-item .lucide {
  color: var(--primary);
  margin-right: 7px;
}
.full {
  width: 100%;
}
.task-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child {
  border-bottom: 0;
}
.task-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #f0f6f4;
  color: var(--primary);
  border-radius: 6px;
  flex-shrink: 0;
}
.task-text {
  flex: 1;
  min-width: 0;
}
.task-text b {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.task-text small {
  display: block;
  margin-top: 5px;
}
.section-space {
  margin-top: 24px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  min-width: 210px;
}
.search-field .lucide {
  position: absolute;
  left: 11px;
  top: 10px;
  color: #7d9298;
}
.search-field input {
  padding-left: 35px;
  width: 100%;
}
.control {
  border: 1px solid #dce4e7;
  border-radius: 5px;
  min-height: 36px;
  padding: 8px 11px;
  background: #fff;
  max-width: 100%;
  font-size: 12px;
}
.control:focus {
  outline: 2px solid #8dc8b9;
  outline-offset: 0;
}
.table-wrap {
  overflow: auto;
}
.table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
}
.table th {
  padding: 12px 20px;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
  color: #7b8d95;
  white-space: nowrap;
}
.table td {
  padding: 14px 20px;
  border-bottom: 1px solid #edf0f2;
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: #fafcfb;
}
.table .right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.employee-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}
.employee-cell b {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.employee-cell small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.employee-cell .avatar {
  width: 31px;
  height: 31px;
  border-radius: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #eef1f4;
  color: #697a83;
  white-space: nowrap;
}
.badge.green {
  background: #e6f3eb;
  color: #307955;
}
.badge.amber {
  background: #fff3d9;
  color: #976916;
}
.badge.red {
  background: #fceded;
  color: #b64e50;
}
.badge.blue {
  background: #e9f3fa;
  color: #397895;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .lucide {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
}
.empty b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 7px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: auto;
}
.tab {
  white-space: nowrap;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 12px 0;
  font-size: 12px;
}
.tab.active {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #f0f7f5;
  border: 1px solid #dcece5;
  color: #4c7666;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff9e9;
  border-color: #f0e4c3;
  color: #85642b;
}
.notice .lucide {
  flex-shrink: 0;
  margin-top: 2px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  min-width: 0;
}
.field .control {
  width: 100%;
  font-weight: 400;
}
.field.span2 {
  grid-column: 1/-1;
}
.field small {
  font-weight: 400;
  line-height: 1.5;
}
.form-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.form-section:first-child {
  padding-top: 0;
}
.form-section h3 {
  margin-bottom: 18px;
}
.form-section:last-child {
  border-bottom: 0;
}
.settings-layout {
  display: grid;
  grid-template-columns: 185px minmax(0, 760px);
  gap: 28px;
}
.settings-nav {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 5px;
}
.settings-nav button {
  padding: 11px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
}
.settings-nav button.active {
  background: #e5efea;
  color: var(--primary);
}
.settings-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px;
}
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 16px 0;
}
.switch-row b {
  font-size: 12px;
  font-weight: 500;
}
.switch-row small {
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
.switch {
  appearance: none;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: #cbd6d9;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.switch:after {
  content: "";
  position: absolute;
  background: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  top: 3px;
  left: 3px;
  transition: left 0.15s;
}
.switch:checked {
  background: var(--primary);
}
.switch:checked:after {
  left: 17px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #17333855;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.modal {
  width: 620px;
  max-width: 100%;
  background: white;
  box-shadow: 0 20px 80px #18373830;
  border-radius: 8px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
}
.modal.wide {
  width: 960px;
}
.modal.drawer {
  border-radius: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 600px;
  margin-left: auto;
}
.modal-backdrop:has(.drawer) {
  padding: 0;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 17px;
}
.modal-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.modal-body {
  padding: 24px;
  overflow: auto;
}
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: #fafcfb;
  border-radius: 0 0 8px 8px;
}
.modal-foot small {
  margin-right: auto;
}
.toast {
  background: #173e33;
  color: #fff;
  border-radius: 5px;
  padding: 13px 17px;
  margin-top: 9px;
  box-shadow: var(--shadow);
  font-size: 12px;
  max-width: 380px;
  line-height: 1.6;
}
.toast.error {
  background: #a24242;
}
#toasts {
  position: fixed;
  bottom: 22px;
  right: 24px;
  z-index: 100;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.profile-head .avatar {
  width: 56px;
  height: 56px;
  font-size: 18px;
}
.profile-head h2 {
  font-size: 20px;
}
.profile-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
  margin: 22px 0;
}
.detail-grid dt {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
}
.detail-grid dd {
  margin: 0;
  font-size: 13px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.report-tile {
  padding: 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  text-align: left;
  min-height: 152px;
}
.report-tile:hover {
  border-color: #93bdae;
  box-shadow: var(--shadow);
}
.report-tile .lucide {
  color: var(--primary);
  width: 23px;
  height: 23px;
}
.report-tile b {
  font-size: 13px;
  font-weight: 550;
}
.report-tile p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.steps {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.step {
  padding: 13px 22px 14px 0;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.step.active {
  color: var(--primary);
  font-weight: 600;
}
.step-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e9eef0;
  font-size: 10px;
}
.step.active .step-number {
  background: var(--mint);
  color: var(--primary);
}
.upload-zone {
  border: 1px dashed #a8c2b9;
  border-radius: 6px;
  background: #f8fbfa;
  padding: 36px 22px;
  text-align: center;
  margin: 18px 0;
}
.upload-zone .lucide {
  width: 30px;
  height: 30px;
  color: var(--primary);
  margin-bottom: 13px;
}
.upload-zone b {
  display: block;
  margin-bottom: 9px;
}
.upload-zone input {
  display: block;
  margin: 20px auto 0;
  max-width: 100%;
  font-size: 12px;
}
.validation-list {
  display: grid;
  gap: 8px;
  font-size: 11px;
  margin: 14px 0;
  color: var(--red);
}
.run-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  background: #edf5f2;
  border: 1px solid #dcebe4;
  border-radius: 6px;
  margin-bottom: 22px;
}
.run-banner h2 {
  font-size: 18px;
}
.run-banner p {
  font-size: 11px;
  color: #688777;
  margin-top: 7px;
}
.payslip {
  max-width: 660px;
  margin: auto;
  background: white;
  border: 1px solid var(--line);
  padding: 34px;
}
.payslip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--primary);
  gap: 20px;
}
.payslip-header h2 {
  font-size: 18px;
}
.payslip-header small {
  display: block;
  margin-top: 7px;
}
.payslip-headline {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.payslip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 22px 0;
}
.payslip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0;
  font-size: 12px;
}
.payslip-row.total {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  font-weight: 600;
}
.payslip-net {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px;
  background: #ecf5f0;
  margin-top: 25px;
  font-weight: 600;
}
.payslip-net b {
  font-size: 22px;
}
.payslip-footer {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 24px;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 19px;
  margin: 10px;
}
.timeline-item {
  margin: 0 0 24px;
  position: relative;
  font-size: 12px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: #96b5a8;
  border-radius: 50%;
  left: -23px;
  top: 5px;
}
.timeline-item small {
  display: block;
  margin-top: 6px;
}
.bottom-note {
  font-size: 10px;
  color: #8a9a9f;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.metric-inline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.metric-inline:last-child {
  border: 0;
}
.metric-inline b {
  font-weight: 550;
}
.employee-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  background: #f6faf7;
  font-size: 12px;
}
.mobile-shade {
  display: none;
}
.check-box {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}
.compact-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}
.error-box {
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.inline-hint {
  padding: 10px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.screen-reader {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn.mobile-menu {
  display: none;
}
@media (min-width: 1600px) {
  .main {
    padding: 34px 44px;
  }
  .topbar {
    padding: 0 44px;
  }
  .chart-wrap {
    height: 252px;
  }
  .bars {
    height: 195px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 206px minmax(0, 1fr);
  }
  .sidebar {
    width: 206px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr);
  }
  .stat {
    padding: 18px 16px;
  }
  .stat-value {
    font-size: 23px;
  }
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table td,
  .table th {
    padding-left: 15px;
    padding-right: 15px;
  }
  .settings-layout {
    gap: 18px;
    grid-template-columns: 150px minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .content {
    grid-column: 1;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 232px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .btn.mobile-menu {
    display: inline-flex;
  }
  .mobile-shade.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #17333850;
    z-index: 29;
  }
  .top-actions {
    gap: 10px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .page-head {
    align-items: flex-start;
  }
  .head-actions {
    justify-content: flex-end;
  }
  .search-field {
    min-width: 180px;
  }
}
@media (max-width: 640px) {
  .crumb-root,
  .breadcrumb > .lucide {
    display: none;
  }
  .topbar > .button-row {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .breadcrumb {
    max-width: 145px;
  }
  .breadcrumb .strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .user-info > div:last-child {
    display: none;
  }
  .top-actions {
    gap: 9px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .main {
    padding: 24px 16px;
  }
  .page-head {
    flex-direction: column;
    gap: 15px;
  }
  .head-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .head-actions .btn {
    flex: 1;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 16px 14px;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-label .lucide {
    width: 14px;
  }
  .stats {
    margin-bottom: 18px;
  }
  .panel-head {
    padding: 16px;
  }
  .panel-body {
    padding: 17px;
  }
  .toolbar {
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }
  .filters {
    width: 100%;
  }
  .search-field {
    width: 100%;
    min-width: 0;
  }
  .filters .control {
    flex: 1;
    min-width: 0;
  }
  .table {
    min-width: 560px;
  }
  .table-footer {
    padding: 13px 16px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    flex-direction: row;
    overflow: auto;
  }
  .settings-nav button {
    white-space: nowrap;
  }
  .settings-sheet {
    padding: 18px;
  }
  .report-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .report-tile {
    padding: 16px;
    min-height: 165px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.span2 {
    grid-column: auto;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal-body {
    padding: 18px;
  }
  .modal-head {
    padding: 17px 18px;
  }
  .modal-foot {
    padding: 13px 18px;
    flex-wrap: wrap;
  }
  .modal-foot small {
    width: 100%;
  }
  .modal.drawer {
    width: 100%;
  }
  .payslip {
    padding: 20px;
  }
  .payslip-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .payslip-header h2 {
    font-size: 16px;
  }
  .steps {
    gap: 8px;
  }
  .step {
    padding-right: 0;
    font-size: 10px;
  }
  .run-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .bottom-note {
    flex-direction: column;
  }
  .detail-grid {
    gap: 18px;
  }
  .tabs {
    gap: 20px;
  }
  .toast {
    max-width: calc(100vw - 32px);
  }
  #toasts {
    right: 16px;
    bottom: 16px;
  }
  .bar-chart {
    gap: 10px;
  }
  .switch-row {
    align-items: flex-start;
  }
  .head-actions .btn.icon {
    flex: 0 0 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: #fff;
  }
  .sidebar,
  .topbar,
  .page-head,
  .toolbar,
  .head-actions,
  .modal-head,
  .modal-foot,
  #toasts,
  .bottom-note,
  .skip-link {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .content {
    display: block;
  }
  .main {
    padding: 0;
  }
  .modal-backdrop {
    position: static;
    display: block;
    background: white;
    padding: 0;
  }
  .modal {
    max-height: none;
    width: 100%;
    box-shadow: none;
    border: 0;
  }
  .modal-body {
    overflow: visible;
    padding: 0;
  }
  .payslip {
    border: 0;
  }
  .table-wrap {
    overflow: visible;
  }
  .table {
    min-width: 0;
    font-size: 10px;
  }
  .table th,
  .table td {
    padding: 8px;
  }
  .panel {
    border: 0;
  }
  .table tr {
    break-inside: avoid;
  }
  body:has(#overlay:not(:empty)) #app {
    display: none;
  }
}
