@font-face {
  font-family: "IRANSans XV";
  src: url("fonts/IRANSansX-VF.ttf") format("truetype"), local("IRANSans XV"), local("IRANSansXV"), local("IRANSansX");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSansXV";
  src: url("fonts/IRANSansX-VF.ttf") format("truetype"), local("IRANSansXV"), local("IRANSansX");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-muted: #eef3f1;
  --line: #d8e0dd;
  --text: #17211f;
  --muted: #657370;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --danger: #b42318;
  --warning: #a15c07;
  --ok: #18794e;
  --inner-line: #c3d0cc;
  --shadow: 0 18px 44px rgba(18, 37, 34, 0.12);
  --panel-shadow: 0 18px 44px rgba(18, 37, 34, 0.1);
  --inner-shadow: 0 18px 42px rgba(18, 37, 34, 0.15), 0 0 0 1px rgba(18, 37, 34, 0.035);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IRANSansXV", "IRANSans XV", "IRANSansX", "IRANSans", Tahoma, Arial, sans-serif;
  direction: rtl;
  line-height: 1.75;
}

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

.kt-shell {
  min-height: 100vh;
  min-width: 0;
}

.kt-layout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: min(1480px, calc(100% - 32px));
  min-width: 0;
  margin: 24px auto 56px;
}

.kt-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.kt-user-chip {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.kt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.kt-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.kt-sidebar {
  position: sticky;
  top: 24px;
  flex: 0 0 258px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
  box-shadow: var(--panel-shadow);
}

.kt-sidebar-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.kt-sidebar-user {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.kt-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.kt-nav-group {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 38px;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.kt-nav-toggle {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  white-space: nowrap;
  width: 100%;
  justify-content: space-between;
}

.kt-nav-toggle::after {
  content: "▾";
  font-size: 11px;
  transition: transform 0.18s ease;
}

.kt-nav-group.open .kt-nav-toggle::after {
  transform: rotate(180deg);
}

.kt-subnav {
  position: static;
  display: none;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 8px;
  padding-top: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 8px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: #fff;
  box-shadow: none;
}

.kt-nav-group.open .kt-subnav {
  display: grid;
}

.kt-subnav .kt-btn {
  justify-content: flex-start;
  width: 100%;
}

.kt-main {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
}

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

.kt-page-head h1 {
  margin: 0;
  font-size: 24px;
}

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

.kt-grid {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.kt-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.kt-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kt-home-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.kt-home-action {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 116px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  color: var(--text);
  box-shadow: var(--inner-shadow);
}

.kt-home-action strong {
  font-size: 18px;
}

.kt-home-action span {
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 900;
}

.kt-home-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.kt-panel,
.kt-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.kt-panel {
  padding: 18px;
}

.kt-card {
  border-color: var(--inner-line);
  padding: 14px;
  box-shadow: var(--inner-shadow);
}

.kt-panel h2,
.kt-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.kt-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kt-stat strong {
  font-size: 22px;
}

.kt-employer-cost-summary {
  display: grid;
  gap: 16px;
}

.kt-cost-total {
  border-top: 4px solid var(--danger);
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}

.kt-cost-total strong {
  font-size: 30px;
}

.kt-cost-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--inner-shadow);
}

.kt-cost-group .kt-card {
  background: var(--bg);
}

.kt-section-head.compact {
  align-items: flex-start;
  margin-bottom: 14px;
}

.kt-section-head.compact h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.kt-section-head.compact p {
  margin: 0;
}

.kt-start-guide {
  display: grid;
  gap: 16px;
}

.kt-start-copy {
  max-width: 860px;
  color: var(--muted);
}

.kt-journey-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.kt-journey-step {
  position: relative;
  min-width: 0;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--inner-shadow);
}

.kt-journey-step > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.kt-journey-step h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.kt-journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.kt-output-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kt-output-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  border: 1px solid #cfe3dd;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}

.kt-metric {
  position: relative;
  overflow: hidden;
}

.kt-metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
}

.kt-metric.danger::before {
  background: var(--danger);
}

.kt-metric.ok::before {
  background: var(--ok);
}

.kt-metric.warn::before {
  background: var(--warning);
}

.kt-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kt-plan-card {
  min-height: 210px;
}

.kt-plan-card h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.kt-plan-card strong {
  font-size: 24px;
}

.kt-plan-card.ok {
  border-color: #bde8d0;
}

.kt-plan-card.warn {
  border-color: #eed7ad;
}

.kt-plan-card.danger {
  border-color: #f4beb8;
}

.kt-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  margin-top: 6px;
  border: 1px solid #cfe3dd;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  padding: 2px 8px;
  font-size: 12px;
}

.kt-delta.danger {
  border-color: #f4beb8;
  background: #fff0ef;
  color: var(--danger);
}

.kt-delta.ok {
  border-color: #bde8d0;
  background: #eefbf4;
  color: var(--ok);
}

.kt-delta.warn {
  border-color: #eed7ad;
  background: #fff7e8;
  color: var(--warning);
}

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

.kt-bar-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
}

.kt-bar-row > span {
  color: var(--muted);
  font-size: 12px;
}

.kt-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.kt-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.kt-bar-fill.ok {
  background: var(--ok);
}

.kt-bar-fill.warn {
  background: var(--warning);
}

.kt-bar-fill.danger {
  background: var(--danger);
}

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

.kt-insight {
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--inner-shadow);
}

.kt-insight strong {
  display: block;
  margin-bottom: 3px;
}

.kt-insight p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.kt-insight.danger {
  border-color: #f4beb8;
  background: #fff7f6;
}

.kt-insight.ok {
  border-color: #bde8d0;
  background: #f3fcf7;
}

.kt-insight.warn {
  border-color: #eed7ad;
  background: #fffaf0;
}

.kt-module-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
}

.kt-module-card > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #17211f;
  color: #fff;
  font-weight: 900;
}

.kt-module-card p {
  margin: 0;
}

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

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

.kt-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kt-compact-select {
  width: min(360px, 100%);
}

.kt-monthly-filter {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.kt-monthly-comparison-table {
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
}

.kt-monthly-comparison-table thead th {
  padding: 11px 12px;
  background: #e5edf1;
  color: #173447;
  text-align: center;
  white-space: nowrap;
}

.kt-monthly-comparison-table thead th:first-child {
  width: 175px;
}

.kt-monthly-comparison-table thead th:nth-child(2) {
  width: 175px;
}

.kt-monthly-comparison-table thead th:nth-child(3) {
  width: 195px;
}

.kt-monthly-comparison-table thead th:last-child {
  width: 145px;
}

.kt-monthly-company-group + .kt-monthly-company-group tr:first-child > * {
  border-top: 3px solid #b8c9d2;
}

.kt-monthly-company-group tr:nth-child(even) td,
.kt-monthly-company-group tr:nth-child(even) .kt-monthly-metric-name {
  background: #f3f6f8;
}

.kt-monthly-group-start > * {
  border-top: 2px solid #d3dee4;
}

.kt-monthly-company-name {
  padding: 14px;
  border-inline-end: 1px solid #c9d6dd;
  background: #e8f1f2;
  color: #12384a;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  vertical-align: top;
}

.kt-monthly-metric-name {
  padding: 10px 12px;
  background: #f8fafb;
  color: #344b5a;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.kt-monthly-category-name {
  padding: 12px;
  border-inline-end: 1px solid #cfdae0;
  background: #eef3f5;
  color: #294858;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.75;
  text-align: right;
  vertical-align: middle;
}

.kt-monthly-comparison-table td.num,
.kt-monthly-delta-cell {
  padding: 10px 12px;
  text-align: center;
  white-space: nowrap;
}

.kt-monthly-delta-cell .kt-delta {
  margin: 0 auto;
}

.kt-check-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

.kt-check-grid .kt-check {
  min-width: 0;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 8px 10px;
  line-height: 1.8;
}

.kt-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.kt-field span {
  font-size: 12px;
  color: var(--muted);
}

.kt-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.7;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
}

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

input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

.kt-stepper-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 6px;
  align-items: stretch;
}

.kt-stepper-control input {
  text-align: center;
  direction: ltr;
}

.kt-stepper-buttons {
  display: grid;
  gap: 4px;
}

.kt-stepper-buttons button {
  min-height: 19px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.kt-stepper-buttons button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.kt-time-field {
  gap: 7px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(18, 37, 34, 0.06);
}

.kt-time-field .kt-time-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.kt-time-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
}

.kt-time-part {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.kt-time-part small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.kt-time-part input {
  text-align: center;
  direction: ltr;
  min-height: 34px;
  padding-inline: 5px;
  border-color: #c9d8d3;
  background: #fff;
}

.kt-manual-payroll-grid .kt-time-field {
  padding: 7px;
}

.kt-manual-payroll-grid .kt-time-inputs {
  gap: 6px;
}

.kt-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.kt-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: var(--top-red);
  cursor: pointer;
}

.kt-form-grid > .kt-check {
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
  box-shadow: var(--box-halo-soft);
}

.kt-form-grid > .kt-check > span {
  display: grid;
  gap: 5px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.9;
}

.kt-form-grid > .kt-check small {
  display: block;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.9;
}

.kt-feature-check input[type="checkbox"] {
  width: 28px;
  height: 28px;
  margin-top: 3px;
  accent-color: var(--top-red);
}

.kt-feature-check {
  border-color: #f2bbb6;
  background: var(--danger-soft);
}

.kt-check.inline {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
}

.kt-fieldset {
  display: grid;
  min-width: 0;
  gap: 12px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.kt-fieldset legend {
  padding: 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.kt-ops-dashboard .kt-stat,
.kt-period-readiness .kt-stat,
.kt-employer-summary .kt-stat {
  min-height: 112px;
}

.kt-workflow {
  display: grid;
  grid-template-columns: repeat(11, minmax(86px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kt-workflow li,
.kt-quick-start span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  box-shadow: var(--inner-shadow);
}

.kt-workflow li span {
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-size: 12px;
}

.kt-quick-start {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
}

.kt-empty-state {
  display: grid;
  gap: 8px;
  border: 1px dashed var(--inner-line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 18px;
  color: var(--muted);
}

.kt-empty-state strong {
  color: var(--text);
}

.kt-empty-state p {
  margin: 0;
}

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

.kt-company-row {
  display: grid;
  gap: 10px;
  border: 1px solid var(--inner-line);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--inner-shadow);
}

.kt-company-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.kt-company-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.kt-company-meta strong {
  color: var(--accent);
  font-size: 15px;
}

.kt-primary-actions {
  align-items: stretch;
}

.kt-primary-actions > form {
  display: inline-flex;
}

.kt-primary-actions .kt-btn,
.kt-primary-actions button {
  min-width: 150px;
}

.kt-period-flow,
.kt-period-step {
  display: grid;
  gap: 14px;
}

.kt-period-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.kt-step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--text);
  box-shadow: var(--inner-shadow);
}

.kt-step-card strong,
.kt-step-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.kt-step-card strong {
  font-size: 15px;
}

.kt-step-card small {
  color: var(--muted);
  font-size: 12px;
}

.kt-step-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14), var(--inner-shadow);
}

.kt-step-card.active strong {
  color: var(--accent-strong);
}

.kt-step-number {
  display: inline-grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.kt-step-card.ok .kt-step-number {
  background: #eefbf4;
  color: var(--ok);
}

.kt-step-card.warn .kt-step-number {
  background: #fff7e8;
  color: var(--warning);
}

.kt-step-card.danger .kt-step-number {
  background: #fff0ef;
  color: var(--danger);
}

.kt-step-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.kt-step-head h2 {
  margin: 0;
}

.kt-step-head p {
  margin: 2px 0 0;
}

.kt-step-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.kt-step-metrics.compact {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.kt-period-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kt-period-registered-list {
  padding: 12px;
}

.kt-period-registered-list .kt-section-head {
  margin-bottom: 10px;
}

.kt-period-people-table {
  min-width: 960px;
}

.kt-period-people-table th,
.kt-period-people-table td {
  vertical-align: middle;
}

.kt-final-summary-table-panel {
  padding: 0;
  overflow: hidden;
}

.kt-final-summary-table-panel .kt-table-wrap {
  border: 0;
  border-radius: 0;
}

.kt-final-summary-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
  border-collapse: collapse;
}

.kt-final-summary-table th {
  width: 25%;
  padding: 11px 10px;
  border-inline-start: 1px solid var(--line);
  background: #e9eff3;
  color: var(--text);
  font-size: 15px;
  text-align: right;
}

.kt-final-summary-table th:first-child,
.kt-final-summary-table td:first-child {
  border-inline-start: 0;
}

.kt-final-summary-table td {
  padding: 0;
  border-inline-start: 1px solid var(--line);
  vertical-align: top;
}

.kt-final-summary-table dl {
  margin: 0;
}

.kt-final-summary-table dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: #f4f7f9;
}

.kt-final-summary-table dl div:nth-child(even) {
  background: #edf2f5;
}

.kt-final-summary-table dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.kt-final-summary-table dd {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.kt-final-personnel-table table {
  min-width: 1500px;
}

.kt-method-card {
  position: relative;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
}

.kt-method-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.kt-method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.kt-method-step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.kt-inline-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 8px;
}

.kt-manual-period-entry {
  display: grid;
  gap: 8px;
}

.kt-manual-picker-panel {
  padding-block: 12px;
}

.kt-manual-picker-panel .kt-section-head {
  margin-bottom: 0;
}

.kt-manual-picker-panel h2,
.kt-manual-period-form h2 {
  font-size: 18px;
}

.kt-manual-picker-panel .kt-muted,
.kt-manual-period-form .kt-section-head .kt-muted {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.kt-manual-picker {
  align-items: end;
  grid-template-columns: minmax(280px, 520px) auto;
  gap: 8px;
}

.kt-field-action {
  justify-content: end;
}

.kt-manual-payroll-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.kt-manual-payroll-grid .kt-fieldset {
  gap: 7px;
  padding: 9px 10px 10px;
}

.kt-manual-payroll-grid .kt-fieldset legend {
  font-size: 12px;
}

.kt-manual-payroll-grid .kt-form-grid,
.kt-manual-payroll-grid .kt-form-grid.three {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.kt-manual-payroll-grid .kt-field {
  gap: 3px;
}

.kt-manual-payroll-grid .kt-field span {
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kt-manual-payroll-grid input,
.kt-manual-payroll-grid select {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 13px;
}

.kt-manual-payroll-grid .kt-time-field {
  align-self: start;
  grid-column: span 2;
  min-width: 190px;
  gap: 7px;
  padding: 8px 9px;
}

.kt-manual-payroll-grid .kt-time-field .kt-time-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.4;
  overflow: visible;
  text-align: center;
  text-overflow: initial;
  white-space: normal;
}

.kt-manual-payroll-grid .kt-time-part small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  overflow: visible;
  text-align: center;
  text-overflow: initial;
}

.kt-manual-payroll-grid .kt-check-grid {
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 6px;
}

.kt-manual-payroll-grid .kt-check-grid .kt-check {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.4;
}

.kt-manual-payroll-grid .kt-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.kt-manual-period-form .kt-save-row {
  margin-top: 0;
  justify-content: flex-start;
}

.kt-manual-registered-list {
  padding: 10px 12px;
}

.kt-manual-registered-list .kt-table-wrap {
  margin-top: 0;
}

.kt-manual-confirm-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.kt-manual-confirm-box h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.kt-manual-confirm-box p {
  margin: 0;
}

.kt-person-cell {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.kt-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kt-row-actions form {
  display: inline-flex;
}

.kt-row-actions .kt-btn,
.kt-row-actions button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

.kt-report-mini-stats {
  margin-bottom: 14px;
}

.kt-report-table table {
  min-width: 980px;
}

.kt-report-table tfoot td {
  border-top: 2px solid var(--inner-line);
  background: var(--surface-muted);
  font-weight: 900;
}

.kt-step-actions {
  align-items: stretch;
}

.kt-step-actions > form {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
}

.kt-step-actions textarea {
  min-width: min(260px, 100%);
  min-height: 38px;
  resize: vertical;
}

.kt-step-nav {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.kt-issue {
  display: grid;
  gap: 4px;
}

.kt-issue strong {
  color: var(--danger);
}

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

.kt-issue.warn strong {
  color: var(--warning);
}

.kt-import-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.kt-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--inner-shadow);
}

.kt-bulk-bar .kt-muted {
  font-size: 13px;
}

.kt-bulk-apply {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) minmax(140px, 200px) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--inner-shadow);
}

.kt-bulk-apply strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.kt-bulk-apply p {
  margin: 0;
  font-size: 12px;
}

.kt-payroll-items {
  display: grid;
  gap: 14px;
}

.kt-payroll-item-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--inner-shadow);
}

.kt-payroll-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.kt-payroll-person {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.kt-payroll-person strong {
  color: var(--text);
  font-size: 18px;
}

.kt-payroll-person span {
  color: var(--muted);
  font-size: 12px;
}

.kt-payroll-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.kt-payroll-item-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.35fr);
  gap: 12px;
}

.kt-payroll-group {
  align-content: start;
}

.kt-payroll-group:first-child,
.kt-payroll-group:nth-child(4),
.kt-payroll-result {
  grid-column: 1 / -1;
}

.kt-payroll-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.kt-payroll-fields input,
.kt-payroll-fields select {
  min-height: 40px;
}

.kt-payroll-fields .kt-date-field {
  grid-column: span 2;
  grid-template-columns: minmax(90px, 1fr) minmax(120px, 1.2fr) 38px;
}

.kt-date-field {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr) 38px;
  gap: 6px;
  align-items: end;
}

.kt-date-field > span {
  grid-column: 1 / -1;
}

.kt-date-field > button {
  min-width: 38px;
  padding: 0;
}

.kt-tax-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
}

.kt-tax-check {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
}

.kt-payroll-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.kt-payroll-result div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fbfdfc;
  padding: 10px 12px;
}

.kt-payroll-result span {
  color: var(--muted);
  font-size: 12px;
}

.kt-payroll-result strong {
  color: var(--text);
  font-size: 16px;
}

.kt-save-row {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  justify-content: flex-end;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px;
  box-shadow: var(--shadow);
}

.kt-save-row button {
  min-width: 220px;
}

.kt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  margin-top: 12px;
}

.kt-actions > * {
  max-width: 100%;
  min-width: 0;
}

.kt-row-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 180px;
}

.kt-row-actions form {
  display: inline-flex;
}

.kt-row-actions .kt-btn,
.kt-row-actions button {
  min-width: 78px;
}

.kt-btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 100%;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 13px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.kt-btn.secondary,
button.secondary {
  background: #fff;
  color: var(--accent-strong);
}

.kt-btn.light,
button.light {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--text);
}

.kt-btn.danger,
button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

button:disabled,
button[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

.kt-alert {
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--inner-shadow);
}

.kt-alert.success {
  border-color: rgba(24, 121, 78, 0.3);
  background: #eefbf4;
  color: var(--ok);
}

.kt-alert.error {
  border-color: rgba(180, 35, 24, 0.3);
  background: #fff0ef;
  color: var(--danger);
}

.kt-alert.warning {
  border-color: rgba(161, 92, 7, 0.35);
  background: #fff7e8;
  color: var(--warning);
}

.kt-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  box-shadow: var(--inner-shadow);
}

.kt-compact-table table {
  min-width: 560px;
}

.kt-accounting-accounts-table input {
  width: 100%;
  min-width: 140px;
}

.kt-accounting-accounts-table .kt-row-actions {
  min-width: 180px;
}

.kt-accounting-accounts-table form {
  margin: 0;
}

.kt-accounting-defined-panel {
  align-content: start;
}

.kt-accounting-mapping-block,
.kt-accounting-accounts-block {
  display: grid;
  gap: 10px;
}

.kt-accounting-mapping-block {
  margin-top: 10px;
}

.kt-accounting-accounts-block {
  margin-top: 16px;
  border-top: 1px solid var(--inner-line);
  padding-top: 14px;
}

.kt-accounting-mapping-block .kt-section-head,
.kt-accounting-accounts-block .kt-section-head {
  margin-bottom: 0;
}

.kt-accounting-mapping-block h3,
.kt-accounting-accounts-block h3 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 15px;
}

.kt-accounting-mapping-block p,
.kt-accounting-accounts-block p {
  margin: 0;
  font-size: 11px;
}

.kt-accounting-mapping-table {
  min-width: 540px;
}

.kt-accounting-mapping-table td:first-child {
  width: 42%;
  background: var(--surface-muted);
}

.kt-accounting-mapping-table input {
  width: 100%;
  min-width: 220px;
  background: #fff;
}

.kt-inline-form {
  display: inline-grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 260px;
}

.kt-users-layout {
  margin-top: 14px;
}

.kt-user-info-panel {
  display: grid;
  gap: 14px;
  max-width: 940px;
}

.kt-user-info-panel.compact {
  margin-top: 14px;
}

.kt-user-info-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.kt-user-info-head .kt-badge {
  margin-inline-start: auto;
}

.kt-user-avatar {
  display: inline-grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #cfe3dd;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 900;
}

.kt-user-info-head h2 {
  margin: 0;
  font-size: 18px;
}

.kt-user-info-head p {
  margin: 3px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.kt-user-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
}

.kt-user-facts > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 9px 10px;
}

.kt-user-facts span {
  color: var(--muted);
  font-size: 12px;
}

.kt-user-facts strong {
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.kt-billing-panel {
  max-width: 980px;
}

.kt-billing-panel.compact {
  margin-top: 14px;
}

.kt-security-panel {
  max-width: 980px;
}

.kt-security-panel.compact {
  margin-top: 14px;
}

.kt-plan-list {
  display: grid;
  gap: 8px;
}

.kt-plan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.kt-plan-row.active {
  border-color: #bde8d0;
  background: #f4fcf7;
}

.kt-plan-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.kt-plan-row strong {
  font-size: 16px;
}

.kt-plan-row span,
.kt-plan-row small {
  color: var(--muted);
}

.kt-plan-action {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.kt-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kt-feature-strip span {
  min-height: 34px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 6px 10px;
  color: var(--text);
  font-size: 13px;
}

.kt-wide-field {
  grid-column: 1 / -1;
}

.kt-support-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.kt-support-panel {
  max-width: 980px;
}

.kt-support-panel.compact,
.kt-support-layout {
  margin-top: 14px;
}

.kt-support-faq {
  display: grid;
  gap: 8px;
}

.kt-support-faq details {
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.kt-support-faq summary {
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
}

.kt-support-faq p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 0 12px 10px;
  color: var(--muted);
}

.kt-ticket-list {
  display: grid;
  gap: 8px;
}

.kt-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--text);
  text-decoration: none;
}

.kt-ticket-row strong {
  overflow-wrap: anywhere;
}

.kt-ticket-row span {
  color: var(--muted);
  font-size: 12px;
}

.kt-ticket-row em {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-style: normal;
  color: var(--accent-strong);
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 760px;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: var(--surface-muted);
  color: #31413d;
  font-size: 12px;
}

.kt-table-filters th {
  background: #fff;
  padding-top: 7px;
  padding-bottom: 7px;
}

.kt-table-filters input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}

td.num,
th.num {
  text-align: left;
  direction: ltr;
}

.kt-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.kt-section-head h2 {
  margin-bottom: 4px;
}

.kt-slip-board {
  display: grid;
  gap: 16px;
}

.kt-pay-slip {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(18, 37, 34, 0.16), 0 0 0 1px rgba(18, 37, 34, 0.035);
}

.kt-pay-slip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #0f766e, #17211f, #b7791f);
}

.kt-slip-inner {
  padding: 22px;
}

.kt-slip-top,
.kt-slip-netband,
.kt-slip-foot,
.kt-slip-signatures {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.kt-slip-top {
  align-items: flex-start;
  border-bottom: 1px solid #e3ebe8;
  padding: 8px 0 16px;
  margin-bottom: 16px;
}

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

.kt-slip-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #17211f;
  color: #fff;
  font-weight: 900;
}

.kt-slip-brand strong,
.kt-slip-stamp strong {
  display: block;
  font-size: 18px;
}

.kt-slip-brand span,
.kt-slip-stamp span,
.kt-slip-info span,
.kt-slip-netband span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.kt-slip-stamp {
  text-align: left;
}

.kt-slip-stamp .kt-badge {
  margin-top: 6px;
}

.kt-slip-netband {
  align-items: stretch;
  margin-bottom: 14px;
}

.kt-slip-netbox {
  flex: 1 1 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #17211f);
  color: #fff;
  padding: 16px;
}

.kt-slip-netbox span,
.kt-slip-netbox small {
  color: #d9f5ef;
}

.kt-slip-netbox strong {
  display: block;
  font-size: 28px;
  line-height: 1.7;
}

.kt-slip-mini {
  min-width: 190px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 12px;
  box-shadow: var(--inner-shadow);
}

.kt-slip-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.kt-slip-info {
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 9px 10px;
  box-shadow: var(--inner-shadow);
}

.kt-slip-info strong {
  display: block;
  color: var(--text);
}

.kt-slip-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kt-slip-box {
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--inner-shadow);
}

.kt-slip-box h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #e3ebe8;
  background: #f8fbfa;
  font-size: 14px;
}

.kt-slip-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px dashed #d8e0dd;
}

.kt-slip-line:last-child {
  border-bottom: 0;
}

.kt-slip-line span {
  color: var(--muted);
}

.kt-slip-line strong {
  font-weight: 800;
}

.kt-slip-line.total {
  border-top: 1px solid #e3ebe8;
  background: #fbfcfc;
}

.kt-slip-line.total strong {
  color: var(--accent-strong);
}

.kt-slip-foot {
  align-items: stretch;
  margin-top: 14px;
}

.kt-slip-note {
  flex: 1;
  border: 1px solid rgba(161, 92, 7, 0.35);
  border-radius: 8px;
  background: #fff8ea;
  color: #80510c;
  padding: 10px 12px;
  font-size: 12px;
  box-shadow: var(--inner-shadow);
}

.kt-slip-signatures {
  min-width: 300px;
  align-items: flex-end;
  border: 1px dashed var(--inner-line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  box-shadow: var(--inner-shadow);
}

.kt-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 12px;
}

.kt-badge.ok {
  background: #eefbf4;
  color: var(--ok);
}

.kt-badge.warn {
  background: #fff7e8;
  color: var(--warning);
}

.kt-badge.danger {
  background: #fff0ef;
  color: var(--danger);
}

.kt-badge.inactive {
  background: #fff0ef;
  color: var(--danger);
}

.kt-login {
  width: min(420px, calc(100% - 32px));
  margin: 64px auto;
}

.kt-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

@media (max-width: 920px) {
  .kt-grid.two,
  .kt-grid.three,
  .kt-grid.four,
  .kt-home-actions,
  .kt-journey-steps,
  .kt-workflow,
  .kt-quick-start,
  .kt-check-grid,
  .kt-form-grid,
  .kt-form-grid.three,
  .kt-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kt-user-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kt-plan-row {
    grid-template-columns: 1fr;
  }

  .kt-support-tabs {
    justify-content: flex-start;
  }

  .kt-grid.two,
  .kt-grid.three,
  .kt-grid.four,
  .kt-home-actions,
  .kt-journey-steps,
  .kt-period-methods,
  .kt-inline-import,
  .kt-form-grid,
  .kt-form-grid.three,
  .kt-form-grid.two {
    grid-template-columns: 1fr;
  }

  .kt-bar-row {
    grid-template-columns: 1fr;
  }

  .kt-page-head,
  .kt-topbar,
  .kt-section-head,
  .kt-slip-top,
  .kt-slip-netband,
  .kt-slip-foot,
  .kt-slip-signatures {
    align-items: stretch;
    flex-direction: column;
  }

  .kt-slip-info-grid,
  .kt-slip-columns {
    grid-template-columns: 1fr;
  }

  .kt-layout {
    width: min(100% - 20px, 1240px);
    flex-direction: column;
    margin-top: 14px;
  }

  .kt-sidebar {
    position: static;
    flex-basis: auto;
    width: 100%;
    max-height: none;
  }

  .kt-main {
    width: 100%;
  }

  .kt-actions,
  .kt-nav {
    width: 100%;
  }

  .kt-nav-group,
  .kt-subnav {
    width: 100%;
  }

  .kt-nav-group {
    display: grid;
  }

  .kt-subnav {
    position: static;
    min-width: 0;
    max-width: 100%;
    box-shadow: none;
  }

  .kt-nav-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .kt-actions > .kt-btn,
  .kt-actions > button,
  .kt-actions > form,
  .kt-nav > .kt-btn,
  .kt-nav > button,
  .kt-subnav > .kt-btn {
    flex: 1 1 170px;
  }

  .kt-actions > form > button {
    width: 100%;
  }

  .kt-bulk-apply,
  .kt-company-edit,
  .kt-period-steps,
  .kt-step-metrics,
  .kt-step-metrics.compact,
  .kt-payroll-item-grid,
  .kt-payroll-fields,
  .kt-tax-options,
  .kt-payroll-result {
    grid-template-columns: 1fr;
  }

  .kt-payroll-item-header {
    align-items: stretch;
    flex-direction: column;
  }

  .kt-payroll-item-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .kt-main {
    width: 100%;
  }

  .kt-layout {
    width: min(100% - 16px, 1240px);
  }

  .kt-topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .kt-panel {
    padding: 12px;
  }

  .kt-actions > .kt-btn,
  .kt-actions > button,
  .kt-actions > form,
  .kt-nav > .kt-btn,
  .kt-nav > button,
  .kt-subnav > .kt-btn {
    width: 100%;
    flex-basis: 100%;
  }

  .kt-workflow,
  .kt-check-grid,
  .kt-user-facts,
  .kt-quick-start {
    grid-template-columns: 1fr;
  }

  .kt-plan-action {
    grid-template-columns: 1fr;
  }

  .kt-user-info-head {
    align-items: flex-start;
  }

  .kt-ticket-row {
    grid-template-columns: 1fr;
  }

  .kt-ticket-row em {
    grid-row: auto;
    grid-column: auto;
  }

  table {
    min-width: 680px;
  }

  .kt-bulk-apply,
  .kt-payroll-item-card {
    padding: 10px;
  }

  .kt-step-head,
  .kt-step-card {
    align-items: flex-start;
  }

  .kt-date-field {
    grid-template-columns: 1fr;
  }

  .kt-payroll-fields .kt-date-field {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .kt-save-row {
    position: static;
  }

  .kt-save-row button {
    width: 100%;
    min-width: 0;
  }
}

@page {
  size: A4;
  margin: 8mm;
}

@media print {
  body {
    background: #fff;
  }

  .kt-topbar,
  .kt-sidebar,
  .kt-page-head,
  .kt-panel:not(.kt-print-slips),
  .kt-actions,
  .kt-alert {
    display: none !important;
  }

  .kt-main {
    width: 100%;
    margin: 0;
  }

  .kt-print-slips {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .kt-print-slips .kt-section-head {
    display: block;
  }

  .kt-pay-slip {
    break-inside: avoid;
    box-shadow: none;
    margin-bottom: 12mm;
  }

  .kt-slip-inner {
    padding: 16px;
  }

  .kt-slip-netbox {
    background: #fff;
    color: var(--text);
    border: 1px solid #d8e0dd;
  }

  .kt-slip-netbox span,
  .kt-slip-netbox small {
    color: var(--muted);
  }
}

/* Hesabdari.ac visual identity layer */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-tint: #f5ffe9;
  --line: #e2e8f0;
  --inner-line: #e5edf6;
  --text: #01162b;
  --muted: #64748b;
  --accent: #002648;
  --accent-strong: #01162b;
  --accent-soft: rgba(113, 230, 4, 0.15);
  --accent-lime: #71e604;
  --accent-lime-strong: #58b800;
  --shadow: 0 18px 42px rgba(1, 22, 43, 0.10);
  --panel-shadow: 0 1px 3px rgba(1, 22, 43, 0.10), 0 1px 2px rgba(1, 22, 43, 0.06);
  --inner-shadow: 0 1px 3px rgba(1, 22, 43, 0.10), 0 1px 2px rgba(1, 22, 43, 0.05);
}

body {
  background:
    radial-gradient(circle at top right, rgba(113, 230, 4, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 320px);
}

.kt-topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.kt-brand {
  color: var(--accent);
  font-weight: 900;
}

.kt-brand-mark {
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.kt-sidebar,
.kt-panel,
.kt-card,
.kt-fieldset,
.kt-empty-state,
.kt-table-wrap,
.kt-bulk-bar,
.kt-bulk-apply,
.kt-payroll-item-card,
.kt-payroll-result div,
.kt-alert,
.kt-pay-slip,
.kt-slip-mini,
.kt-slip-info,
.kt-slip-box,
.kt-slip-note,
.kt-slip-signatures {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: var(--panel-shadow);
}

.kt-main {
  background: transparent;
}

.kt-sidebar {
  background: rgba(255, 255, 255, 0.96);
}

.kt-sidebar-label,
.kt-page-head h1,
.kt-panel h2,
.kt-card h3,
.kt-section-head h2,
.kt-fieldset legend {
  color: var(--accent);
}

.kt-nav-group {
  border-radius: 12px;
  background: #fff;
}

.kt-nav-group:hover,
.kt-nav-group.open {
  border-color: rgba(113, 230, 4, 0.55);
  background: var(--accent-soft);
}

.kt-nav-toggle {
  color: var(--accent);
  font-weight: 800;
}

.kt-subnav {
  border-color: var(--line);
  border-radius: 0 0 16px 16px;
}

.kt-module-card span,
.kt-brand-mark,
.kt-slip-brand-mark {
  background: var(--accent);
}

.kt-stat strong,
.kt-payroll-result strong,
.kt-slip-line.total strong {
  color: var(--accent);
}

.kt-workflow li span,
.kt-plan-pill,
.kt-badge,
.kt-payroll-result div,
.kt-slip-box h3,
.kt-slip-line.total,
th {
  background: var(--accent-soft);
  color: var(--accent);
}

input,
select,
textarea,
.kt-tax-check {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-lime-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

input[type="checkbox"] {
  accent-color: var(--accent-lime-strong);
}

.kt-btn,
button {
  border-color: var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.kt-btn.secondary,
button.secondary {
  border-color: rgba(113, 230, 4, 0.75);
  background: var(--accent-soft);
  color: var(--accent);
}

.kt-btn.light,
button.light {
  border-color: var(--line);
  background: #fff;
  color: var(--accent);
}

.kt-btn:hover,
button:hover {
  filter: brightness(0.98);
}

.kt-btn.secondary:hover,
button.secondary:hover,
.kt-btn.light:hover,
button.light:hover {
  border-color: var(--accent-lime-strong);
  background: var(--accent-soft);
}

.kt-badge.ok {
  background: rgba(113, 230, 4, 0.15);
  color: var(--accent);
}

.kt-slip-ribbon,
.kt-slip-netbox {
  background: linear-gradient(135deg, var(--accent), #01162b);
}

.kt-table-filters th {
  background: #fff;
}

@media print {
  body {
    background: #fff;
  }

  .kt-pay-slip {
    box-shadow: none;
  }
}

/* Payroll dashboard visual refresh */
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-tint: #eef8f6;
  --line: #dfe5ec;
  --inner-line: #edf1f5;
  --text: #17202a;
  --muted: #667085;
  --accent: #167267;
  --accent-strong: #0f514a;
  --accent-soft: #e7f4f1;
  --indigo: #4753b8;
  --indigo-soft: #eef0ff;
  --amber: #b56a00;
  --amber-soft: #fff5df;
  --danger: #c23b2e;
  --danger-soft: #fff0ee;
  --ok: #1f7a4f;
  --ok-soft: #eaf7f0;
  --warning: #a45f00;
  --shadow: 0 8px 24px rgba(20, 32, 42, 0.08);
  --panel-shadow: 0 1px 2px rgba(20, 32, 42, 0.06), 0 8px 22px rgba(20, 32, 42, 0.05);
  --inner-shadow: 0 1px 2px rgba(20, 32, 42, 0.05);
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0;
}

a {
  color: var(--accent-strong);
}

.kt-layout {
  align-items: flex-start;
  gap: 20px;
  width: min(1540px, calc(100% - 28px));
  margin: 18px auto 44px;
}

.kt-main {
  padding: 2px 0 0;
}

.kt-sidebar {
  top: 18px;
  flex: 0 0 268px;
  max-height: calc(100vh - 36px);
  border-color: var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--panel-shadow);
}

.kt-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 4px 14px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--inner-line);
}

.kt-sidebar-brand > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.kt-sidebar-brand strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kt-sidebar-brand small,
.kt-sidebar-user small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.kt-brand-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.12);
}

.kt-sidebar-label {
  margin: 2px 4px 0;
  color: #98a2b3;
  font-size: 11px;
  letter-spacing: 0;
}

.kt-sidebar-user {
  display: grid;
  gap: 2px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border: 1px solid var(--inner-line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.kt-sidebar-user strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kt-nav {
  gap: 6px;
}

.kt-nav > .kt-btn,
.kt-nav > button,
.kt-nav-toggle,
.kt-subnav .kt-btn {
  justify-content: flex-start;
  min-height: 36px;
  border-radius: 8px;
  text-align: right;
}

.kt-nav > .kt-btn.light,
.kt-nav > .kt-btn.secondary,
.kt-nav-toggle,
.kt-subnav .kt-btn.light {
  border: 0;
  background: transparent;
  color: #344054;
}

.kt-nav > .kt-btn.secondary {
  margin-top: 4px;
  background: var(--danger-soft);
  color: var(--danger);
}

.kt-nav > .kt-btn.light:hover,
.kt-nav-toggle:hover,
.kt-nav-group.open .kt-nav-toggle,
.kt-subnav .kt-btn.light:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.kt-nav-group {
  min-height: auto;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.kt-nav-group:hover,
.kt-nav-group.open {
  background: transparent;
}

.kt-nav-toggle {
  padding: 8px 10px;
  font-size: 13px;
}

.kt-subnav {
  gap: 3px;
  margin: 2px 0 4px;
  padding: 4px 8px 6px 0;
  border: 0;
  border-right: 1px solid var(--inner-line);
  border-radius: 0;
  background: transparent;
}

.kt-subnav .kt-btn {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

.kt-page-head {
  align-items: center;
  min-height: 58px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--inner-line);
}

.kt-page-head h1 {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.45;
}

.kt-page-head p {
  max-width: 760px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.kt-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 3px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.kt-home-head {
  align-items: flex-end;
}

.kt-home-actions {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.kt-home-action {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  color: var(--text);
  box-shadow: var(--panel-shadow);
}

.kt-home-action::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 4px;
  background: var(--accent);
}

.kt-home-action:nth-child(2)::before {
  background: var(--indigo);
}

.kt-home-action:nth-child(3)::before {
  background: var(--amber);
}

.kt-home-action:nth-child(4)::before {
  background: var(--danger);
}

.kt-home-action strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kt-home-action span {
  color: var(--text);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.25;
}

.kt-home-action small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.kt-home-action:hover {
  border-color: #c8d4df;
  transform: translateY(-1px);
}

.kt-home-strip {
  border-color: var(--line);
  background: #fff;
  padding: 12px;
}

.kt-panel,
.kt-card,
.kt-fieldset,
.kt-empty-state,
.kt-table-wrap,
.kt-bulk-bar,
.kt-bulk-apply,
.kt-payroll-item-card,
.kt-payroll-result div,
.kt-alert,
.kt-pay-slip,
.kt-slip-mini,
.kt-slip-info,
.kt-slip-box,
.kt-slip-note,
.kt-slip-signatures,
.kt-cost-group {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.kt-panel {
  padding: 16px;
  background: #fff;
}

.kt-card {
  padding: 14px;
  background: #fff;
  box-shadow: var(--inner-shadow);
}

.kt-panel h2,
.kt-card h3,
.kt-section-head h2,
.kt-fieldset legend {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

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

.kt-stat {
  gap: 5px;
  min-height: 94px;
}

.kt-stat strong {
  color: var(--text);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.35;
}

.kt-metric::before {
  height: 3px;
  background: var(--accent);
}

.kt-metric.danger::before {
  background: var(--danger);
}

.kt-metric.ok::before {
  background: var(--ok);
}

.kt-metric.warn::before {
  background: var(--amber);
}

input,
select,
textarea,
.kt-tax-check {
  min-height: 40px;
  border-color: #d9e1ea;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 114, 103, 0.12);
  outline: none;
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

.kt-field span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.kt-check-grid .kt-check,
.kt-tax-check {
  border-radius: 8px;
  background: var(--surface-muted);
}

.kt-btn,
button {
  min-height: 36px;
  border-color: var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 850;
}

.kt-btn.secondary,
button.secondary {
  border-color: #bedbd6;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.kt-btn.light,
button.light {
  border-color: var(--line);
  background: var(--surface-muted);
  color: #344054;
}

.kt-btn.danger,
button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.kt-btn:hover,
button:hover {
  filter: none;
  box-shadow: 0 4px 12px rgba(20, 32, 42, 0.10);
}

.kt-btn.light:hover,
button.light:hover,
.kt-btn.secondary:hover,
button.secondary:hover {
  border-color: #b9c6d3;
  background: #fff;
}

.kt-alert {
  padding: 10px 12px;
  background: #fff;
  font-size: 13px;
}

.kt-alert.success,
.kt-badge.ok,
.kt-delta.ok {
  border-color: #bfe2cf;
  background: var(--ok-soft);
  color: var(--ok);
}

.kt-alert.error,
.kt-badge.danger,
.kt-badge.inactive,
.kt-delta.danger {
  border-color: #f2b8b0;
  background: var(--danger-soft);
  color: var(--danger);
}

.kt-alert.warning,
.kt-badge.warn {
  border-color: #f2d59a;
  background: var(--amber-soft);
  color: var(--warning);
}

.kt-badge,
.kt-plan-pill,
.kt-payroll-result div,
.kt-slip-box h3,
.kt-slip-line.total {
  border: 1px solid #bedbd6;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.kt-table-wrap {
  overflow-x: auto;
  background: #fff;
  box-shadow: var(--inner-shadow);
}

table {
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--inner-line);
  color: var(--text);
  font-size: 13px;
}

th {
  background: #f7f9fb;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

tbody tr:hover td {
  background: #fbfcfd;
}

.kt-table-filters th {
  background: #fff;
}

.kt-table-filters input {
  min-height: 32px;
  border-radius: 6px;
}

.kt-row-actions {
  gap: 6px;
}

.kt-row-actions .kt-btn,
.kt-row-actions button {
  min-width: 68px;
  min-height: 32px;
  padding: 5px 9px;
  font-size: 12px;
}

.kt-section-head {
  margin-bottom: 12px;
}

.kt-output-list span,
.kt-delta {
  border-color: #d9e1ea;
  background: var(--surface-muted);
  color: #475467;
}

.kt-module-card span,
.kt-journey-step > span,
.kt-slip-brand-mark {
  background: var(--accent);
}

.kt-cost-total {
  border-top-color: var(--danger);
  background: #fff;
}

.kt-cost-group .kt-card {
  background: var(--surface-muted);
}

.kt-slip-ribbon,
.kt-slip-netbox {
  background: var(--accent);
}

@media (max-width: 920px) {
  .kt-layout {
    width: min(100% - 18px, 1240px);
    gap: 14px;
    margin-top: 10px;
  }

  .kt-sidebar {
    top: auto;
    width: 100%;
    max-height: none;
  }

  .kt-sidebar-brand {
    padding-bottom: 10px;
  }

  .kt-home-head,
  .kt-page-head {
    align-items: stretch;
  }

  .kt-home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .kt-layout {
    width: min(100% - 12px, 1240px);
  }

  .kt-panel {
    padding: 12px;
  }

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

  .kt-home-actions {
    grid-template-columns: 1fr;
  }

  .kt-home-action {
    min-height: 108px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .kt-sidebar-brand {
    display: none !important;
  }
}

/* Hybrid identity layer: red workspace bar + dark finance sidebar */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-muted: #f7f9fb;
  --surface-tint: #edf7f5;
  --line: #d9e1e9;
  --inner-line: #e8edf2;
  --text: #111827;
  --muted: #667085;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #e7f5f2;
  --nav-bg: #102838;
  --nav-bg-strong: #0b1e2b;
  --nav-line: rgba(255, 255, 255, 0.10);
  --nav-text: #e9f1f7;
  --nav-muted: #91a4b4;
  --top-red: #df4b43;
  --top-red-strong: #cb3f38;
  --indigo: #5264c8;
  --indigo-soft: #eef1ff;
  --amber: #f3b343;
  --amber-soft: #fff3d8;
  --danger: #dc4a43;
  --danger-soft: #fff0ef;
  --ok: #24a45a;
  --ok-soft: #ecf9f0;
  --warning: #b56a00;
  --shadow: 0 12px 30px rgba(16, 40, 56, 0.08);
  --panel-shadow: 0 1px 2px rgba(16, 40, 56, 0.08), 0 10px 24px rgba(16, 40, 56, 0.05);
  --inner-shadow: 0 1px 2px rgba(16, 40, 56, 0.06);
}

body {
  background: var(--bg);
}

.kt-layout {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  gap: 0;
  align-items: stretch;
}

.kt-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 18px 42px;
}

.kt-sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 272px;
  height: 100vh;
  max-height: 100vh;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-strong) 100%);
  color: var(--nav-text);
  padding: 16px 12px;
  box-shadow: -10px 0 28px rgba(16, 40, 56, 0.12);
}

.kt-sidebar-brand {
  gap: 11px;
  padding: 0 4px 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--nav-line);
}

.kt-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--amber);
  color: #102838;
  font-weight: 950;
  box-shadow: none;
}

.kt-sidebar-brand strong {
  color: #fff;
  font-size: 15px;
}

.kt-sidebar-brand small,
.kt-sidebar-user small {
  color: var(--nav-muted);
}

.kt-sidebar-label {
  margin: 8px 8px 4px;
  color: var(--nav-muted);
}

.kt-sidebar-user {
  margin: 0 0 8px;
  border: 1px solid var(--nav-line);
  background: rgba(255, 255, 255, 0.055);
}

.kt-sidebar-user strong {
  color: #fff;
}

.kt-nav {
  gap: 5px;
}

.kt-nav > .kt-btn,
.kt-nav-toggle,
.kt-subnav .kt-btn {
  justify-content: flex-start;
  color: var(--nav-text);
}

.kt-nav > .kt-btn.light,
.kt-nav > .kt-btn.secondary,
.kt-nav-toggle,
.kt-subnav .kt-btn.light {
  border: 0;
  background: transparent;
  color: var(--nav-text);
}

.kt-nav > .kt-btn.light,
.kt-nav-toggle {
  min-height: 42px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 850;
}

.kt-nav-toggle::after {
  color: var(--nav-muted);
}

.kt-nav > .kt-btn.light:hover,
.kt-nav-toggle:hover,
.kt-nav-group.open .kt-nav-toggle {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.kt-subnav {
  margin: 0 14px 6px 0;
  padding: 4px 10px 5px 0;
  border-right: 1px solid var(--nav-line);
}

.kt-subnav .kt-btn {
  color: var(--nav-muted);
}

.kt-subnav .kt-btn.light:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.kt-nav > .kt-btn.secondary {
  margin-top: 10px;
  background: rgba(223, 75, 67, 0.16);
  color: #ffb8b4;
}

.kt-app-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  margin: 0 -18px 18px;
  padding: 10px 18px;
  background: var(--top-red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(203, 63, 56, 0.20);
}

.kt-app-context {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.kt-app-context-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.kt-app-context span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.kt-app-context strong {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kt-start-guide-trigger {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #f3b51b;
  border-radius: 8px;
  background: #ffd166;
  color: #3d2b00;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(105, 73, 0, 0.26);
  animation: kt-start-guide-attention 1.5s ease-in-out 2;
}

.kt-start-guide-trigger:hover {
  border-color: #e6a600;
  background: #ffe093;
  color: #2c1f00;
  box-shadow: 0 6px 18px rgba(105, 73, 0, 0.32);
}

@keyframes kt-start-guide-attention {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@media (prefers-reduced-motion: reduce) {
  .kt-start-guide-trigger { animation: none; }
}

body.kt-modal-open {
  overflow: hidden;
}

.kt-start-guide-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 31, 43, 0.58);
}

.kt-start-guide-dialog[hidden] {
  display: none;
}

.kt-start-guide-panel {
  width: min(1040px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #b9c9d2;
  border-radius: 8px;
  background: #f2f6f8;
  box-shadow: 0 24px 60px rgba(8, 28, 40, 0.30);
}

.kt-start-guide-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #c8d5dc;
  background: #fff;
}

.kt-start-guide-head h2 {
  margin: 0 0 4px;
  color: #102b3a;
  font-size: 20px;
}

.kt-start-guide-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.kt-start-guide-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid #e8b8b4;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  padding: 0;
  font-size: 23px;
  line-height: 1;
  box-shadow: none;
}

.kt-start-guide-flow {
  display: grid;
}

.kt-start-guide-step {
  display: grid;
  grid-template-columns: 36px minmax(220px, 1fr) minmax(250px, auto);
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid #d2dde3;
  background: #f8fafb;
}

.kt-start-guide-step:nth-child(even) {
  background: #edf3f5;
}

.kt-start-guide-step:last-child {
  border-bottom: 0;
}

.kt-start-guide-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #efbd41;
  border-radius: 7px;
  background: #fff2c7;
  color: #624600;
  font-size: 14px;
  font-weight: 950;
}

.kt-start-guide-step h3 {
  margin: 0 0 3px;
  color: #102b3a;
  font-size: 14px;
}

.kt-start-guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.kt-start-guide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 440px;
}

.kt-start-guide-actions .kt-btn {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 12px;
}

@media (max-width: 860px) {
  .kt-start-guide-step {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .kt-start-guide-actions {
    grid-column: 2;
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .kt-app-context-line {
    flex-wrap: wrap;
  }

  .kt-start-guide-trigger {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .kt-start-guide-dialog {
    padding: 8px;
  }

  .kt-start-guide-panel {
    max-height: calc(100vh - 16px);
  }

  .kt-start-guide-head,
  .kt-start-guide-step {
    padding-inline: 12px;
  }
}

.kt-app-search {
  min-width: 0;
  min-height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 14px;
  font-size: 13px;
}

.kt-app-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.kt-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--top-red-strong);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.kt-top-link.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.kt-open-tabs {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: -18px -18px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 7px 18px;
  box-shadow: 0 8px 18px rgba(16, 40, 56, 0.06);
}

.kt-open-tabs-close-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-inline-end: 10px;
  border: 1px solid #cf3f39;
  border-radius: 7px;
  background: var(--top-red);
  color: #fff;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(230, 75, 69, 0.22);
}

.kt-open-tabs-close-all:hover {
  border-color: var(--top-red-strong);
  background: var(--top-red-strong);
  color: #fff;
  box-shadow: 0 5px 14px rgba(230, 75, 69, 0.28);
}

.kt-open-tabs-close-all:disabled {
  opacity: 0.48;
  cursor: default;
  box-shadow: none;
}

.kt-open-tabs-list {
  display: flex;
  flex: 1 1 auto;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 0;
  scrollbar-width: thin;
}

.kt-open-tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 230px;
  min-height: 35px;
  border: 1px solid #d8e2ea;
  border-bottom-color: #c7d5df;
  border-radius: 8px 8px 0 0;
  background: #f7f9fb;
  color: #344054;
  padding: 7px 9px 7px 11px;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(16, 40, 56, 0.05);
}

.kt-open-tab span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kt-open-tab.active {
  border-color: #f2bbb6;
  border-bottom-color: #fff;
  background: #fff;
  color: var(--top-red-strong);
  box-shadow: inset 0 3px 0 var(--top-red), 0 8px 18px rgba(16, 40, 56, 0.08);
}

.kt-open-tab:hover {
  border-color: #c2d2df;
  background: #fff;
  color: #0b1720;
}

.kt-open-tab-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  min-height: 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7a8795;
  padding: 0;
  font-size: 17px;
  line-height: 1;
  box-shadow: none;
}

.kt-open-tab-close:hover {
  background: var(--danger-soft);
  color: var(--top-red);
  box-shadow: none;
}

.kt-page-head {
  margin: 0 0 16px;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--line);
}

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

.kt-eyebrow {
  color: var(--top-red);
}

.kt-home-actions {
  gap: 12px;
}

.kt-home-action,
.kt-panel,
.kt-card,
.kt-table-wrap,
.kt-fieldset,
.kt-empty-state,
.kt-bulk-bar,
.kt-bulk-apply,
.kt-payroll-item-card,
.kt-payroll-result div,
.kt-alert,
.kt-pay-slip,
.kt-slip-mini,
.kt-slip-info,
.kt-slip-box,
.kt-slip-note,
.kt-slip-signatures,
.kt-cost-group {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}

.kt-panel,
.kt-card,
.kt-home-action,
.kt-table-wrap {
  background: #fff;
}

.kt-home-action {
  min-height: 118px;
  padding: 16px;
}

.kt-home-action::before {
  width: 5px;
  background: var(--top-red);
}

.kt-home-action:nth-child(2)::before {
  background: var(--indigo);
}

.kt-home-action:nth-child(3)::before {
  background: var(--amber);
}

.kt-home-action:nth-child(4)::before {
  background: var(--ok);
}

.kt-home-action span {
  color: #0b1720;
}

.kt-home-strip {
  margin-top: 14px;
  background: #fff;
}

.kt-stat strong,
.kt-payroll-result strong,
.kt-slip-line.total strong {
  color: #0b1720;
}

.kt-badge,
.kt-plan-pill,
.kt-payroll-result div,
.kt-slip-box h3,
.kt-slip-line.total {
  border-color: #cde3de;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.kt-badge.warn,
.kt-alert.warning {
  border-color: #f3d694;
  background: var(--amber-soft);
  color: var(--warning);
}

.kt-badge.danger,
.kt-badge.inactive,
.kt-alert.error,
.kt-delta.danger {
  border-color: #f2bbb6;
  background: var(--danger-soft);
  color: var(--danger);
}

.kt-badge.ok,
.kt-alert.success,
.kt-delta.ok {
  border-color: #bbe3c8;
  background: var(--ok-soft);
  color: var(--ok);
}

.kt-btn,
button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.kt-btn.secondary,
button.secondary {
  border-color: #cde3de;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.kt-btn.light,
button.light {
  border-color: var(--line);
  background: #f7f9fb;
  color: #344054;
}

.kt-btn.danger,
button.danger {
  border-color: var(--top-red);
  background: var(--top-red);
}

input,
select,
textarea,
.kt-tax-check {
  border-color: #d8e0e8;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--top-red);
  box-shadow: 0 0 0 3px rgba(223, 75, 67, 0.13);
}

input[type="checkbox"] {
  accent-color: var(--top-red);
}

th {
  background: #f3f6f8;
  color: #485766;
}

tbody tr:hover td {
  background: #fbfcfd;
}

.kt-cost-total {
  border-top-color: var(--top-red);
}

.kt-metric::before,
.kt-module-card span,
.kt-journey-step > span,
.kt-slip-brand-mark,
.kt-slip-ribbon,
.kt-slip-netbox {
  background: var(--top-red);
}

.kt-metric.ok::before {
  background: var(--ok);
}

.kt-metric.warn::before {
  background: var(--amber);
}

.kt-metric.danger::before {
  background: var(--danger);
}

@media (max-width: 1100px) {
  .kt-app-topbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .kt-app-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 920px) {
  .kt-layout {
    width: 100%;
    margin: 0;
    gap: 0;
  }

  .kt-main {
    padding: 0 10px 32px;
  }

  .kt-sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 0;
  }

  .kt-app-topbar {
    margin: 0 -10px 14px;
    padding: 10px;
  }

  .kt-open-tabs {
    margin: -14px -10px 14px;
    padding: 7px 10px;
  }

  .kt-open-tab {
    max-width: 190px;
  }
}

@media (max-width: 520px) {
  .kt-app-search {
    display: none;
  }

  .kt-app-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .kt-top-link {
    width: 100%;
  }

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

  .kt-open-tab {
    max-width: 160px;
    font-size: 12px;
  }
}

@media print {
  .kt-app-topbar,
  .kt-open-tabs {
    display: none !important;
  }
}

/* Auth forms based on the requested membership/login pattern */
.kt-login {
  position: relative;
  display: grid;
  place-items: center;
  width: min(480px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0;
}

body:has(.kt-login) {
  background:
    radial-gradient(circle at top left, rgba(47, 102, 235, 0.10), transparent 32%),
    linear-gradient(180deg, #f6fbff 0%, #eaf5fb 100%);
}

.kt-auth-home {
  position: absolute;
  top: 24px;
  left: 20px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #687386;
}

.kt-auth-home::before {
  content: "⌂";
  color: #6b7280;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.kt-auth-form {
  position: relative;
  display: grid;
  gap: 16px;
  width: 100%;
  min-height: auto;
  border: 1px solid #d7e4ee;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  padding: 52px 28px 32px;
  box-shadow: 0 24px 60px rgba(45, 84, 117, 0.12);
  backdrop-filter: blur(12px);
}

.kt-auth-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 34%, #f85c63 0 8%, transparent 9%),
    radial-gradient(circle at 48% 28%, #ffd166 0 8%, transparent 9%),
    radial-gradient(circle at 62% 39%, #4cc9f0 0 8%, transparent 9%),
    radial-gradient(circle at 40% 56%, #38b000 0 8%, transparent 9%),
    #4b5563;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(20, 40, 56, 0.18);
}

.kt-auth-form h2 {
  margin: 0 0 12px;
  color: #253142;
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.kt-auth-field {
  position: relative;
  display: block;
  min-width: 0;
}

.kt-auth-field::before {
  position: absolute;
  top: 50%;
  right: 18px;
  z-index: 1;
  width: 24px;
  color: #98a2b3;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
}

.kt-auth-field[data-icon="user"]::before {
  content: "♙";
}

.kt-auth-field[data-icon="mail"]::before {
  content: "✉";
}

.kt-auth-field[data-icon="lock"]::before {
  content: "";
  width: 14px;
  height: 12px;
  border: 2px solid #98a2b3;
  border-radius: 4px;
}

.kt-auth-field[data-icon="lock"]::after {
  content: "";
  position: absolute;
  top: calc(50% - 15px);
  right: 23px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 2px solid #98a2b3;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.kt-auth-field input {
  min-height: 58px;
  border: 1px solid #ccd8e3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #263241;
  padding: 12px 52px 12px 52px;
  font-size: 15px;
  font-weight: 650;
  text-align: right;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.kt-auth-field input::placeholder {
  color: #9aa5b5;
  font-weight: 650;
}

.kt-auth-field input:focus {
  border-color: #2f66eb;
  box-shadow: 0 0 0 4px rgba(47, 102, 235, 0.12);
}

.kt-password-eye {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  transform: translateY(-50%);
}

.kt-password-eye::before {
  content: "";
  width: 18px;
  height: 10px;
  border: 2px solid #98a2b3;
  border-radius: 50%;
}

.kt-password-eye::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #98a2b3;
}

.kt-password-eye.active::before {
  border-color: #2f66eb;
}

.kt-password-eye.active::after {
  background: #2f66eb;
}

.kt-auth-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 2px;
  border: 0;
  border-radius: 16px;
  background: #2f66eb;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(47, 102, 235, 0.22);
}

.kt-auth-submit:hover {
  background: #275bd8;
  box-shadow: 0 18px 36px rgba(47, 102, 235, 0.28);
}

.kt-auth-note {
  margin: 6px 0 0;
  color: #6b7788;
  font-size: 12px;
  line-height: 2;
  text-align: center;
}

.kt-login .kt-alert {
  width: 100%;
  margin: 0;
  border-radius: 16px;
}

@media (max-width: 520px) {
  .kt-login {
    width: min(100% - 18px, 480px);
    padding: 10px 0;
  }

  .kt-auth-form {
    gap: 14px;
    border-radius: 20px;
    padding: 46px 18px 26px;
  }

  .kt-auth-home {
    top: 14px;
    left: 12px;
  }

  .kt-auth-field input {
    min-height: 56px;
    border-radius: 15px;
  }
}

/* Clear box halo layer */
:root {
  --box-border: #cedbe7;
  --box-halo: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 12px 30px rgba(16, 40, 56, 0.11), 0 0 28px rgba(15, 118, 110, 0.07);
  --box-halo-soft: 0 0 0 1px rgba(255, 255, 255, 0.88), 0 8px 22px rgba(16, 40, 56, 0.09), 0 0 20px rgba(223, 75, 67, 0.045);
  --box-halo-strong: 0 0 0 1px rgba(223, 75, 67, 0.10), 0 16px 38px rgba(16, 40, 56, 0.13), 0 0 34px rgba(15, 118, 110, 0.09);
  --dark-box-border: rgba(243, 179, 67, 0.36);
  --dark-box-halo: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0 0 1px rgba(243, 179, 67, 0.13), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.kt-panel,
.kt-card,
.kt-home-action,
.kt-table-wrap,
.kt-fieldset,
.kt-empty-state,
.kt-bulk-bar,
.kt-bulk-apply,
.kt-payroll-item-card,
.kt-payroll-result div,
.kt-alert,
.kt-pay-slip,
.kt-slip-mini,
.kt-slip-info,
.kt-slip-box,
.kt-slip-note,
.kt-slip-signatures,
.kt-cost-group,
.kt-user-info-panel,
.kt-billing-panel,
.kt-security-panel,
.kt-support-panel,
.kt-period-step,
.kt-step-card,
.kt-cost-total {
  border-color: var(--box-border);
  box-shadow: var(--box-halo);
}

.kt-card,
.kt-table-wrap,
.kt-fieldset,
.kt-empty-state,
.kt-alert,
.kt-payroll-result div,
.kt-slip-mini,
.kt-slip-info,
.kt-slip-box,
.kt-slip-note {
  box-shadow: var(--box-halo-soft);
}

.kt-panel:hover,
.kt-card:hover,
.kt-home-action:hover,
.kt-payroll-item-card:hover {
  border-color: #c2d2df;
  box-shadow: var(--box-halo-strong);
}

input,
select,
textarea,
.kt-tax-check,
.kt-check-grid .kt-check,
.kt-inline-form,
.kt-stepper-control input,
.kt-auth-field input {
  border-color: #cbd8e4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.86), 0 6px 16px rgba(16, 40, 56, 0.055);
}

input:focus,
select:focus,
textarea:focus,
.kt-auth-field input:focus {
  box-shadow: 0 0 0 3px rgba(223, 75, 67, 0.13), 0 10px 22px rgba(16, 40, 56, 0.09);
}

.kt-btn,
button,
.kt-top-link {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 18px rgba(16, 40, 56, 0.09);
}

.kt-sidebar-user,
.kt-nav > .kt-btn.light,
.kt-nav-toggle,
.kt-subnav .kt-btn.light {
  border: 1px solid transparent;
}

.kt-sidebar-user {
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: var(--dark-box-halo);
}

.kt-nav > .kt-btn.light:hover,
.kt-nav-toggle:hover,
.kt-nav-group.open .kt-nav-toggle,
.kt-subnav .kt-btn.light:hover,
.kt-nav > .kt-btn.secondary {
  border-color: var(--dark-box-border);
  box-shadow: var(--dark-box-halo);
}

.kt-nav > .kt-btn.light:focus-visible,
.kt-nav-toggle:focus-visible,
.kt-subnav .kt-btn.light:focus-visible {
  border-color: var(--dark-box-border);
  box-shadow: 0 0 0 3px rgba(243, 179, 67, 0.20), var(--dark-box-halo);
  outline: none;
}

.kt-auth-form {
  border-color: #cbdbe8;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92), 0 28px 70px rgba(45, 84, 117, 0.16), 0 0 42px rgba(47, 102, 235, 0.08);
}

/* Employee entry method gate */
.kt-grid.one {
  grid-template-columns: minmax(0, 1fr);
}

.kt-employee-entry-gate {
  display: grid;
  gap: 18px;
}

.kt-entry-company-form {
  max-width: 620px;
}

.kt-entry-mode-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kt-entry-mode-card {
  position: relative;
  display: grid;
  min-height: 220px;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 22px;
  box-shadow: var(--box-halo);
}

.kt-entry-mode-card::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 5px;
  background: var(--accent);
}

.kt-entry-mode-card.bulk::before {
  background: var(--top-red);
}

.kt-entry-mode-card:hover {
  border-color: #c2d2df;
  box-shadow: var(--box-halo-strong);
  transform: translateY(-1px);
}

.kt-mode-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 950;
}

.kt-entry-mode-card.bulk .kt-mode-mark {
  background: var(--danger-soft);
  color: var(--top-red);
}

.kt-entry-mode-card strong {
  color: var(--text);
  font-size: 21px;
  font-weight: 950;
}

.kt-entry-mode-card p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 2;
}

.kt-entry-mode-card em {
  align-self: end;
  width: max-content;
  max-width: 100%;
  border: 1px solid #cde3de;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 7px 12px;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.kt-entry-mode-card.bulk em {
  border-color: #f2bbb6;
  background: var(--danger-soft);
  color: var(--top-red);
}

.kt-employee-manual-head,
.kt-employee-manual-shell,
.kt-employee-list-panel {
  width: min(100%, 1080px);
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.kt-employee-manual-head {
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.kt-employee-manual-head h1 {
  font-size: 21px;
}

.kt-employee-manual-head p {
  margin-top: 2px;
  font-size: 12px;
}

.kt-employee-manual-card {
  padding: 10px;
}

.kt-employee-manual-card h2 {
  margin-bottom: 6px;
  font-size: 16px;
}

.kt-employee-company-switch {
  max-width: 420px;
  margin-bottom: 6px !important;
  gap: 6px;
}

.kt-employee-company-switch .kt-field {
  gap: 3px;
}

.kt-employee-company-switch select {
  min-height: 34px;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 13px;
}

.kt-employee-manual-form {
  display: grid;
  gap: 6px;
}

.kt-employee-manual-form .kt-employee-fieldset {
  gap: 6px;
  padding: 7px 10px;
}

.kt-employee-manual-form .kt-employee-fieldset legend {
  padding-inline: 6px;
  font-size: 12px;
  line-height: 1.3;
}

.kt-employee-manual-form .kt-employee-compact-grid,
.kt-employee-manual-form .kt-employee-compact-grid.kt-form-grid.two {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 6px 8px;
}

.kt-employee-manual-form .kt-field {
  gap: 3px;
}

.kt-employee-manual-form .kt-field span {
  font-size: 11px;
}

.kt-employee-manual-form input,
.kt-employee-manual-form select {
  min-height: 32px;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 13px;
}

.kt-employee-manual-form .kt-check.inline {
  min-height: 32px;
  gap: 6px;
  font-size: 13px;
}

.kt-employee-manual-form .kt-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.kt-employee-manual-actions {
  margin-top: 0;
}

.kt-employee-manual-actions .kt-btn,
.kt-employee-manual-actions button {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 13px;
}

.kt-employee-list-panel {
  padding: 12px;
  margin-top: 10px !important;
}

.kt-employee-list-panel h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.kt-employee-list-panel .kt-bulk-bar {
  margin-bottom: 8px;
}

.kt-employee-list-panel th,
.kt-employee-list-panel td {
  padding: 6px 8px;
  font-size: 12px;
}

.kt-employee-list-panel .kt-table-filters th {
  padding-top: 5px;
  padding-bottom: 5px;
}

.kt-employee-list-panel .kt-table-filters input {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
}

.kt-employee-list-panel .kt-actions {
  gap: 5px;
}

.kt-employee-list-panel .kt-actions .kt-btn,
.kt-employee-list-panel .kt-actions button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.kt-employee-file-picker {
  padding: 14px;
}

.kt-employee-file-picker .kt-form-grid,
.kt-employee-file-picker .kt-form-grid.three {
  grid-template-columns: minmax(220px, 320px) minmax(260px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.kt-employee-file-picker .kt-actions {
  margin-top: 0;
}

.kt-employee-file-summary {
  display: grid;
  gap: 12px;
}

.kt-employee-file-summary .kt-card {
  min-height: 86px;
}

.kt-employee-file-summary .kt-stat strong {
  font-size: 18px;
}

.kt-employee-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.kt-employee-file-section {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
}

.kt-employee-file-section h2 {
  margin-bottom: 0;
  font-size: 17px;
}

.kt-employee-file-table {
  box-shadow: var(--inner-shadow);
}

.kt-employee-file-table table {
  min-width: 0;
  table-layout: fixed;
}

.kt-employee-file-table th,
.kt-employee-file-table td {
  white-space: normal;
  padding: 8px 10px;
  line-height: 1.8;
}

.kt-employee-file-table th {
  width: 34%;
  background: #f8fbfa;
  color: #50635f;
}

.kt-employee-file-table td {
  font-weight: 850;
}

.kt-employee-file-wide-table {
  margin-top: 10px;
}

.kt-employee-file-wide-table table {
  min-width: 920px;
}

.kt-employee-file-wide-table th,
.kt-employee-file-wide-table td {
  padding: 8px 9px;
  font-size: 12px;
}

.kt-employee-file-empty {
  padding: 18px;
  text-align: center;
}

.kt-employer-cost-head {
  min-height: 0;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.kt-employer-cost-head h1 {
  font-size: 20px;
  line-height: 1.35;
}

.kt-employer-cost-head p {
  max-width: 980px;
  margin-top: 0;
  font-size: 11px;
  line-height: 1.55;
}

.kt-employer-cost-head .kt-actions .kt-btn {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 11px;
}

.kt-employer-cost-input {
  padding: 10px 12px;
}

.kt-employer-cost-input .kt-section-head {
  display: none;
}

.kt-employer-cost-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.kt-employer-cost-fields,
.kt-employer-cost-fields.kt-form-grid.three {
  grid-template-columns: minmax(175px, 1.1fr) repeat(2, minmax(190px, 1fr)) repeat(2, minmax(145px, 0.8fr));
  gap: 8px;
}

.kt-employer-cost-input .kt-field {
  gap: 3px;
}

.kt-employer-cost-input .kt-field span {
  font-size: 11px;
}

.kt-employer-cost-input input,
.kt-employer-cost-input select {
  min-height: 32px;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12px;
}

.kt-employer-cost-input .kt-date-field {
  grid-template-columns: minmax(80px, 0.9fr) minmax(105px, 1fr) 30px;
  gap: 5px;
}

.kt-employer-cost-input .kt-date-field > button {
  min-width: 30px;
  min-height: 32px;
}

.kt-employer-cost-actions {
  margin-top: 0;
}

.kt-employer-cost-actions button {
  min-height: 32px;
  white-space: nowrap;
}

.kt-employer-cost-summary {
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kt-employer-cost-summary[style] {
  margin-top: 8px !important;
}

.kt-employer-cost-summary .kt-cost-total {
  grid-column: 1 / -1;
  min-height: 72px;
  padding: 10px 12px;
  border-top-width: 3px;
}

.kt-employer-cost-summary .kt-cost-group:first-of-type {
  grid-column: 1 / -1;
}

.kt-employer-cost-summary .kt-cost-total strong {
  font-size: 22px;
  line-height: 1.25;
}

.kt-employer-cost-summary .kt-cost-total small,
.kt-employer-cost-summary .kt-stat small {
  font-size: 10px;
  line-height: 1.45;
}

.kt-employer-cost-summary .kt-cost-group {
  padding: 10px;
}

.kt-employer-cost-summary .kt-section-head.compact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.kt-employer-cost-summary .kt-section-head.compact h2 {
  margin: 0;
  font-size: 14px;
}

.kt-employer-cost-summary .kt-section-head.compact p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
}

.kt-employer-cost-summary .kt-grid {
  gap: 8px;
}

.kt-employer-cost-summary .kt-card {
  padding: 9px 10px;
}

.kt-employer-cost-summary .kt-stat {
  min-height: 68px;
  gap: 2px;
}

.kt-employer-cost-summary .kt-stat span {
  font-size: 11px;
  line-height: 1.45;
}

.kt-employer-cost-summary .kt-stat strong {
  font-size: 17px;
  line-height: 1.3;
}

@media (max-width: 920px) {
  .kt-entry-mode-board {
    grid-template-columns: 1fr;
  }

  .kt-entry-mode-card {
    min-height: 180px;
  }

  .kt-manual-picker,
  .kt-manual-payroll-grid,
  .kt-manual-payroll-grid .kt-form-grid,
  .kt-manual-payroll-grid .kt-form-grid.three,
  .kt-manual-payroll-grid .kt-check-grid {
    grid-template-columns: 1fr;
  }

  .kt-manual-payroll-grid .kt-time-field {
    grid-column: auto;
    min-width: 0;
  }

  .kt-employee-manual-form .kt-employee-compact-grid,
  .kt-employee-manual-form .kt-employee-compact-grid.kt-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kt-employee-file-picker .kt-form-grid,
  .kt-employee-file-picker .kt-form-grid.three,
  .kt-employee-file-grid {
    grid-template-columns: 1fr;
  }

  .kt-employer-cost-form,
  .kt-employer-cost-fields,
  .kt-employer-cost-fields.kt-form-grid.three {
    grid-template-columns: 1fr;
  }

  .kt-employer-cost-actions button {
    width: 100%;
  }

  .kt-employer-cost-summary .kt-section-head.compact {
    display: grid;
    gap: 2px;
  }
}

@media (max-width: 620px) {
  .kt-employee-manual-head {
    align-items: stretch;
  }

  .kt-employee-company-switch,
  .kt-employee-manual-form .kt-employee-compact-grid,
  .kt-employee-manual-form .kt-employee-compact-grid.kt-form-grid.two {
    grid-template-columns: 1fr;
  }
}

/* Minimal payslip template */
.kt-slip-board {
  display: grid;
  gap: 18px;
}

.kt-pay-slip {
  width: min(100%, 980px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #e4e8ee;
  border-radius: 20px;
  background: #fff;
  color: #121826;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.kt-pay-slip::before {
  display: none;
}

.kt-slip-inner {
  padding: 32px 34px 26px;
}

.kt-slip-rule {
  height: 3px;
  width: 100%;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #121826 0 28%, #e5e9ef 28% 100%);
}

.kt-slip-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.kt-slip-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
}

.kt-slip-logo {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: #121826;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.kt-slip-brand strong {
  display: block;
  color: #121826;
  font-size: 30px;
  line-height: 1.45;
  font-weight: 900;
}

.kt-slip-brand span {
  display: block;
  margin-top: 2px;
  color: #7a8492;
  font-size: 13px;
}

.kt-slip-stamp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 10px;
  width: min(100%, 290px);
}

.kt-slip-stamp {
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  background: #fff;
  text-align: right;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.kt-slip-stamp span,
.kt-slip-info span,
.kt-slip-netband span {
  display: block;
  color: #8a93a0;
  font-size: 12px;
  line-height: 1.7;
}

.kt-slip-stamp strong {
  display: block;
  color: #121826;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 900;
}

.kt-slip-netband {
  display: block;
  margin: 0 0 22px;
}

.kt-slip-netbox {
  position: relative;
  min-height: 184px;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: end;
  border: 0;
  border-radius: 22px;
  background: #121826;
  color: #fff;
  padding: 28px 34px;
  box-shadow: none;
}

.kt-slip-netbox::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -42px;
  width: 58%;
  height: 76%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.kt-slip-netbox span,
.kt-slip-netbox small {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
}

.kt-slip-netbox strong {
  position: relative;
  display: block;
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.25;
  font-weight: 950;
}

.kt-slip-netbox small {
  font-size: 14px;
}

.kt-slip-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 12px;
}

.kt-slip-section-head.compact {
  margin-top: 22px;
}

.kt-slip-section-head h3 {
  margin: 0;
  color: #121826;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 900;
}

.kt-slip-section-head span {
  color: #8a93a0;
  font-size: 12px;
}

.kt-slip-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.kt-slip-info {
  min-height: 64px;
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  background: #fff;
  padding: 10px 13px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.035);
}

.kt-slip-info strong {
  display: block;
  overflow: hidden;
  color: #121826;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kt-slip-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.kt-slip-box {
  overflow: hidden;
  border: 1px solid #e0e6ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.kt-slip-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #e5e9ef;
  background: #f8fafc;
}

.kt-slip-box h3 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #121826;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 900;
}

.kt-slip-box-head span {
  color: #8a93a0;
  font-size: 12px;
  font-weight: 800;
}

.kt-slip-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
}

.kt-slip-table tr.kt-slip-line {
  display: table-row;
}

.kt-slip-table th,
.kt-slip-table td {
  padding: 10px 15px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  color: #121826;
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.kt-slip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.kt-slip-row span {
  color: #121826;
}

.kt-slip-row .num {
  width: auto;
  min-width: 118px;
  color: #121826;
  text-align: left;
  direction: rtl;
  font-weight: 900;
  white-space: nowrap;
}

.kt-slip-table th {
  color: #8a93a0;
  font-size: 12px;
  font-weight: 900;
}

.kt-slip-table td:first-child,
.kt-slip-table th:first-child {
  width: 58%;
}

.kt-slip-table .num {
  width: 42%;
  text-align: left;
  direction: rtl;
  font-weight: 900;
  white-space: nowrap;
}

.kt-slip-table .kt-slip-row .num {
  width: auto;
  min-width: 118px;
  color: #121826;
  flex: 0 0 auto;
}

.kt-slip-line.total td {
  border-top: 1px solid #e0e6ee;
  border-bottom: 0;
  background: #f8fafc;
  color: #121826;
  font-size: 15px;
  font-weight: 950;
}

.kt-slip-line.total .kt-slip-row span,
.kt-slip-line.total .kt-slip-row .num {
  font-size: 15px;
  font-weight: 950;
}

.kt-slip-totals {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 12px;
  margin-top: 16px;
}

.kt-slip-total-card {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #fff;
  padding: 12px 16px;
}

.kt-slip-total-card span {
  color: #8a93a0;
  font-size: 12px;
  font-weight: 800;
}

.kt-slip-total-card strong {
  color: #121826;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 950;
}

.kt-slip-total-card.dark {
  border-color: #121826;
  background: #121826;
}

.kt-slip-total-card.dark span {
  color: rgba(255, 255, 255, 0.72);
}

.kt-slip-total-card.dark strong {
  color: #fff;
}

.kt-slip-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}

.kt-slip-note {
  display: grid;
  gap: 6px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #fff;
  color: #566272;
  padding: 14px 16px;
  box-shadow: none;
}

.kt-slip-note strong {
  color: #8a93a0;
  font-size: 12px;
}

.kt-slip-note span {
  font-size: 12.5px;
  line-height: 2;
}

.kt-slip-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.kt-slip-signatures div {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.kt-slip-signatures span {
  color: #8a93a0;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.kt-slip-signatures b {
  display: block;
  width: 78%;
  height: 1px;
  margin-inline: auto;
  border-bottom: 1px solid #d8dee7;
}

.kt-slip-confidential {
  margin-top: 14px;
  color: #8a93a0;
  font-size: 12px;
  text-align: center;
}

.kt-slip-toolbar {
  width: min(100%, 980px);
  display: flex;
  justify-content: flex-start;
  margin: 0 auto 10px;
}

.kt-slip-print-actions {
  width: min(100%, 980px);
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding-top: 2px;
}

.kt-slip-print-actions button {
  min-width: 110px;
  padding-inline: 20px;
}

@media print {
  .kt-slip-toolbar,
  .kt-slip-print-actions {
    display: none !important;
  }

  html,
  body {
    margin: 0;
    background: #fff !important;
  }

  .kt-shell,
  .kt-layout,
  .kt-main {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .kt-print-slips {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .kt-print-slips .kt-section-head {
    display: none !important;
  }

  .kt-slip-board {
    gap: 0;
  }

  .kt-pay-slip {
    width: 194mm;
    max-width: 194mm;
    height: 281mm;
    margin: 0 auto !important;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .kt-pay-slip:not(:last-of-type) {
    break-after: page;
    page-break-after: always;
  }

  .kt-slip-inner {
    width: 236mm;
    padding: 5mm 6mm;
    transform: scale(0.82);
    transform-origin: top right;
  }

  .kt-slip-rule {
    height: 1.5mm;
    margin-bottom: 4mm;
  }

  .kt-slip-top {
    gap: 6mm;
    margin-bottom: 5mm;
  }

  .kt-slip-brand {
    min-width: 0;
    gap: 4mm;
  }

  .kt-slip-logo {
    flex-basis: 11mm;
    width: 11mm;
    height: 11mm;
    border-radius: 4mm;
    font-size: 9pt;
  }

  .kt-slip-brand strong {
    font-size: 16pt;
    line-height: 1.2;
  }

  .kt-slip-brand span {
    margin-top: 0;
    font-size: 8pt;
  }

  .kt-slip-stamp-grid {
    width: 70mm;
    gap: 2mm;
  }

  .kt-slip-stamp {
    min-height: 13mm;
    padding: 2mm 3mm;
    border-radius: 3mm;
    box-shadow: none;
  }

  .kt-slip-stamp span,
  .kt-slip-info span,
  .kt-slip-netband span {
    font-size: 7.5pt;
    line-height: 1.35;
  }

  .kt-slip-stamp strong {
    font-size: 9pt;
    line-height: 1.35;
  }

  .kt-slip-netband {
    margin-bottom: 5mm;
  }

  .kt-slip-netbox {
    min-height: 28mm;
    border-radius: 5mm;
    background: #121826 !important;
    color: #fff !important;
    padding: 5mm 7mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .kt-slip-netbox::before {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .kt-slip-netbox span,
  .kt-slip-netbox small {
    color: rgba(255, 255, 255, 0.72) !important;
  }

  .kt-slip-netbox strong {
    margin: 1mm 0 2mm;
    font-size: 24pt;
    line-height: 1.15;
  }

  .kt-slip-netbox small {
    font-size: 8.5pt;
  }

  .kt-slip-section-head {
    gap: 4mm;
    margin: 1mm 0 2mm;
  }

  .kt-slip-section-head.compact {
    margin-top: 4mm;
  }

  .kt-slip-section-head h3 {
    font-size: 11pt;
    line-height: 1.25;
  }

  .kt-slip-section-head span {
    font-size: 7.5pt;
  }

  .kt-slip-info-grid {
    gap: 2mm;
  }

  .kt-slip-info {
    min-height: 11mm;
    padding: 1.5mm 2.5mm;
    border-radius: 3mm;
    box-shadow: none;
  }

  .kt-slip-info strong {
    font-size: 8.5pt;
    line-height: 1.25;
  }

  .kt-slip-columns {
    gap: 3mm;
  }

  .kt-slip-box {
    border-radius: 3mm;
  }

  .kt-slip-box-head {
    gap: 2mm;
    padding: 2mm 3mm;
  }

  .kt-slip-box h3 {
    font-size: 10pt;
    line-height: 1.2;
  }

  .kt-slip-box-head span {
    font-size: 7.5pt;
  }

  .kt-slip-table th,
  .kt-slip-table td {
    padding: 1.2mm 2.5mm;
    font-size: 8pt;
    line-height: 1.2;
  }

  .kt-slip-row {
    gap: 2mm;
  }

  .kt-slip-row .num,
  .kt-slip-table .kt-slip-row .num {
    min-width: 25mm;
  }

  .kt-slip-line.total td,
  .kt-slip-line.total .kt-slip-row span,
  .kt-slip-line.total .kt-slip-row .num {
    font-size: 9pt;
  }

  .kt-slip-totals {
    gap: 2mm;
    margin-top: 3mm;
  }

  .kt-slip-total-card {
    min-height: 13mm;
    border-radius: 3mm;
    padding: 2mm 3mm;
  }

  .kt-slip-total-card span {
    font-size: 7.5pt;
  }

  .kt-slip-total-card strong {
    font-size: 12pt;
    line-height: 1.2;
  }

  .kt-slip-foot {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3mm;
    margin-top: 3mm;
  }

  .kt-slip-note {
    gap: 1mm;
    border-radius: 3mm;
    padding: 2mm 3mm;
  }

  .kt-slip-note strong,
  .kt-slip-note span {
    font-size: 7.5pt;
    line-height: 1.4;
  }

  .kt-slip-signatures {
    gap: 2mm;
  }

  .kt-slip-signatures div {
    min-height: 15mm;
    border-radius: 3mm;
    padding: 2mm;
  }

  .kt-slip-signatures span {
    font-size: 7.5pt;
  }

  .kt-slip-confidential {
    margin-top: 2mm;
    font-size: 7pt;
  }

  body.kt-print-a5 .kt-pay-slip {
    width: 136mm;
    max-width: 136mm;
    height: auto;
  }

  body.kt-print-a5 .kt-slip-inner {
    width: auto;
    padding: 4mm;
    transform: none;
  }

  body.kt-print-a5 .kt-slip-rule {
    margin-bottom: 3mm;
  }

  body.kt-print-a5 .kt-slip-top {
    gap: 3mm;
    margin-bottom: 3mm;
  }

  body.kt-print-a5 .kt-slip-logo {
    flex-basis: 9mm;
    width: 9mm;
    height: 9mm;
    border-radius: 3mm;
    font-size: 7pt;
  }

  body.kt-print-a5 .kt-slip-brand strong {
    font-size: 13pt;
  }

  body.kt-print-a5 .kt-slip-brand span {
    display: none;
  }

  body.kt-print-a5 .kt-slip-stamp-grid {
    width: 58mm;
    gap: 1.5mm;
  }

  body.kt-print-a5 .kt-slip-stamp {
    min-height: 10mm;
    padding: 1.2mm 2mm;
  }

  body.kt-print-a5 .kt-slip-netband {
    margin-bottom: 3mm;
  }

  body.kt-print-a5 .kt-slip-netbox {
    min-height: 22mm;
    padding: 4mm 5mm;
  }

  body.kt-print-a5 .kt-slip-netbox strong {
    font-size: 18pt;
  }

  body.kt-print-a5 .kt-slip-section-head.compact,
  body.kt-print-a5 .kt-slip-columns,
  body.kt-print-a5 .kt-slip-foot {
    display: none !important;
  }

  body.kt-print-a5 .kt-slip-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5mm;
  }

  body.kt-print-a5 .kt-slip-info {
    min-height: 9mm;
    padding: 1mm 2mm;
  }

  body.kt-print-a5 .kt-slip-totals {
    grid-template-columns: 1fr;
    gap: 1.5mm;
    margin-top: 3mm;
  }

  body.kt-print-a5 .kt-slip-total-card {
    min-height: 10mm;
    padding: 1.5mm 2mm;
  }

  body.kt-print-a5 .kt-slip-confidential {
    margin-top: 2mm;
  }
}

@media (max-width: 920px) {
  .kt-slip-inner {
    padding: 22px;
  }

  .kt-slip-top {
    display: grid;
    gap: 16px;
  }

  .kt-slip-brand {
    min-width: 0;
  }

  .kt-slip-stamp-grid,
  .kt-slip-info-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kt-slip-columns,
  .kt-slip-totals,
  .kt-slip-foot {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .kt-slip-inner {
    padding: 16px;
  }

  .kt-slip-brand strong {
    font-size: 23px;
  }

  .kt-slip-logo {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .kt-slip-stamp-grid,
  .kt-slip-info-grid,
  .kt-slip-signatures {
    grid-template-columns: 1fr;
  }

  .kt-slip-netbox {
    min-height: 150px;
    padding: 22px;
  }
}

.kt-import-preview-panel {
  background: #f3f6f5;
}

.kt-import-preview-stats {
  margin-bottom: 14px;
}

.kt-import-preview-form,
.kt-import-person-list {
  display: grid;
  gap: 12px;
}

.kt-import-preview-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #c5d5dd;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(0, 38, 72, 0.08);
}

.kt-import-preview-top-actions strong,
.kt-import-preview-top-actions span {
  display: block;
}

.kt-import-preview-top-actions strong {
  color: var(--text);
  font-size: 13px;
}

.kt-import-preview-top-actions span {
  margin-top: 3px;
  color: var(--danger);
  font-size: 11px;
}

.kt-import-preview-top-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.kt-import-person-card {
  overflow: hidden;
  border: 1px solid #cbd8df;
  border-right: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 38, 72, 0.08);
}

.kt-import-person-card.has-warning {
  border-right-color: #c87a12;
}

.kt-import-person-card.has-error {
  border-right-color: #d14343;
}

.kt-import-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #d8e2e7;
  background: #e8f0f4;
}

.kt-import-person-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kt-import-person-identity strong,
.kt-import-person-identity small {
  display: block;
}

.kt-import-person-identity strong {
  color: var(--text);
  font-size: 15px;
}

.kt-import-person-identity small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.kt-import-row-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.kt-import-person-card.has-warning .kt-import-row-number {
  background: #c87a12;
}

.kt-import-person-card.has-error .kt-import-row-number {
  background: #d14343;
}

.kt-import-status {
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: #e3f3ef;
  color: #0b655e;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.kt-import-person-card.has-warning .kt-import-status {
  border-color: #efd3a9;
  background: #fff4df;
  color: #8a5209;
}

.kt-import-person-card.has-error .kt-import-status {
  border-color: #efc0bd;
  background: #fff0ef;
  color: #a52d26;
}

.kt-import-person-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 12px;
}

.kt-import-field {
  min-width: 0;
  gap: 4px;
  border: 1px solid #c8d9e4;
  border-radius: 7px;
  background: #edf4f8;
  padding: 7px;
}

.kt-import-field span {
  color: #345064;
  font-size: 11px;
  font-weight: 900;
}

.kt-import-field input,
.kt-import-field select {
  min-height: 34px;
  border-color: #b8ccd8;
  background: #fff;
  padding: 5px 8px;
  font-size: 13px;
}

.kt-import-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.kt-import-person-messages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 12px;
}

.kt-import-person-messages span {
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 850;
}

.kt-import-person-messages .error {
  background: #fff0ef;
  color: #a52d26;
}

.kt-import-person-messages .warning {
  background: #fff4df;
  color: #8a5209;
}

.kt-import-preview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  bottom: 8px;
  z-index: 3;
  border: 1px solid #cad7de;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px;
  box-shadow: 0 7px 20px rgba(0, 38, 72, 0.12);
  backdrop-filter: blur(8px);
}

.kt-import-preview-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@media (max-width: 1100px) {
  .kt-import-person-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .kt-import-person-head,
  .kt-import-preview-top-actions,
  .kt-import-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .kt-import-status {
    align-self: flex-start;
  }

  .kt-import-person-fields {
    grid-template-columns: 1fr;
  }
}

/* Stronger separation between the page canvas and information boxes. */
@media screen {
  :root {
    --box-surface: #e7edf1;
    --box-surface-strong: #dce5ea;
    --box-surface-border: #b9c8d1;
  }

  body {
    background: #f7f9fb;
  }

  .kt-panel,
  .kt-fieldset,
  .kt-empty-state,
  .kt-bulk-bar,
  .kt-bulk-apply,
  .kt-payroll-item-card,
  .kt-user-info-panel,
  .kt-billing-panel,
  .kt-security-panel,
  .kt-support-panel,
  .kt-period-step,
  .kt-step-card,
  .kt-cost-group {
    border-color: var(--box-surface-border);
    background: var(--box-surface);
  }

  .kt-card,
  .kt-home-action,
  .kt-payroll-result div,
  .kt-slip-mini,
  .kt-slip-info,
  .kt-slip-box,
  .kt-slip-note,
  .kt-import-person-card {
    border-color: #afc0ca;
    background: var(--box-surface-strong);
  }

  .kt-table-wrap {
    border-color: var(--box-surface-border);
    background: #e2e9ed;
  }

  .kt-import-preview-panel {
    background: #e3eaee;
  }

  .kt-import-person-head {
    border-bottom-color: #b5c5ce;
    background: #d2dde4;
  }

  input,
  select,
  textarea,
  .kt-import-field input,
  .kt-import-field select {
    background: #fff;
  }

  .kt-prorated-benefit-input[readonly] {
    border-color: #95bdb3;
    background: #edf7f4;
    color: #075e55;
    font-weight: 900;
  }

  .kt-prorated-benefit-field small {
    color: #41645f;
    font-size: 10px;
    line-height: 1.45;
  }
}

.kt-warning-cell {
  position: relative;
}

.kt-warning-trigger {
  min-height: 28px;
  border: 1px solid #e5b861;
  background: #fff3d8;
  color: #8a5209;
  padding: 4px 10px;
  cursor: pointer;
}

.kt-warning-trigger:hover,
.kt-warning-trigger:focus-visible {
  border-color: #bd7412;
  background: #ffe8b5;
  color: #754304;
  box-shadow: 0 0 0 3px rgba(189, 116, 18, 0.16);
}

.kt-warning-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  background: rgba(1, 22, 43, 0.28);
  padding: 16px;
}

.kt-warning-dialog[hidden] {
  display: none;
}

.kt-warning-dialog-box {
  width: min(440px, 100%);
  max-height: min(460px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid #aebfc9;
  border-radius: 8px;
  background: #e7edf1;
  padding: 14px;
  box-shadow: 0 22px 54px rgba(1, 22, 43, 0.24);
}

.kt-warning-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #bdcbd3;
}

.kt-warning-dialog-head strong,
.kt-warning-dialog-head span {
  display: block;
}

.kt-warning-dialog-head strong {
  color: var(--text);
  font-size: 15px;
}

.kt-warning-dialog-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.kt-warning-dialog-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  border: 1px solid #b7c5cd;
  border-radius: 7px;
  background: #fff;
  color: var(--danger);
  padding: 0;
  font-size: 21px;
  line-height: 1;
}

.kt-warning-dialog-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.kt-warning-dialog-list li {
  position: relative;
  border: 1px solid #e6c27d;
  border-radius: 7px;
  background: #fff5df;
  color: #70440a;
  padding: 9px 34px 9px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.kt-warning-dialog-list li::before {
  content: "!";
  position: absolute;
  top: 9px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #c87a12;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

/* ==========================================================
   Accounting College visual identity — 2026-07-15
   Dark navy, lime accent, white cards, restrained shadows.
   ========================================================== */
:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-muted: #f0f3f4;
  --line: #d9e0e3;
  --inner-line: #cbd5da;
  --text: #0f2938;
  --muted: #62737c;
  --accent: #b9e532;
  --accent-strong: #17384a;
  --college-navy: #0d2939;
  --college-navy-2: #15394c;
  --college-navy-3: #1c465b;
  --college-lime: #b9e532;
  --college-lime-soft: #edf8c9;
  --college-lime-dark: #75970c;
  --danger: #b42318;
  --warning: #9a5a09;
  --ok: #267a4d;
  --shadow: 0 18px 50px rgba(13, 41, 57, 0.10);
  --panel-shadow: 0 12px 34px rgba(13, 41, 57, 0.08);
  --inner-shadow: 0 10px 28px rgba(13, 41, 57, 0.10), 0 0 0 1px rgba(13, 41, 57, 0.03);
}

body {
  background:
    radial-gradient(circle at 92% 0%, rgba(185, 229, 50, 0.08), transparent 23rem),
    #f4f6f7;
  color: var(--text);
}

a {
  color: var(--college-navy-2);
}

.kt-layout {
  gap: 22px;
  width: min(1540px, calc(100% - 36px));
  margin-top: 20px;
}

.kt-sidebar {
  top: 20px;
  flex-basis: 276px;
  max-height: calc(100vh - 40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(185, 229, 50, 0.10), transparent 13rem),
    linear-gradient(180deg, var(--college-navy-2), var(--college-navy));
  padding: 14px;
  box-shadow: 0 22px 54px rgba(13, 41, 57, 0.20);
}

.kt-college-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 3px 14px;
  color: #fff;
}

.kt-college-brand:hover {
  color: #fff;
}

.kt-college-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: var(--college-lime);
  color: var(--college-navy);
  font-size: 23px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(185, 229, 50, 0.18);
}

.kt-college-brand-copy {
  display: grid;
  line-height: 1.5;
}

.kt-college-brand-copy strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.kt-college-brand-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 650;
}

.kt-sidebar-label {
  color: var(--college-lime);
}

.kt-sidebar-user {
  border-bottom-color: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.66);
}

.kt-sidebar-user strong {
  display: block;
  color: #fff;
}

.kt-sidebar .kt-nav {
  gap: 7px;
}

.kt-sidebar .kt-nav-group {
  border-color: rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.kt-sidebar .kt-nav-toggle {
  color: rgba(255, 255, 255, 0.88);
}

.kt-sidebar .kt-nav-toggle:hover,
.kt-sidebar .kt-nav-group.open .kt-nav-toggle {
  color: var(--college-lime);
}

.kt-sidebar .kt-subnav {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(2, 20, 30, 0.22);
}

.kt-sidebar .kt-btn.light,
.kt-sidebar button.light {
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.80);
  box-shadow: none;
}

.kt-sidebar .kt-btn.light:hover,
.kt-sidebar button.light:hover {
  border-color: rgba(185, 229, 50, 0.22);
  background: rgba(185, 229, 50, 0.10);
  color: var(--college-lime);
  transform: none;
}

.kt-sidebar .kt-logout-form .kt-btn.secondary {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.kt-sidebar .kt-logout-form .kt-btn.secondary:hover {
  border-color: rgba(185, 229, 50, 0.28);
  background: rgba(185, 229, 50, 0.13);
  color: var(--college-lime);
}

.kt-app-topbar {
  border: 1px solid var(--line);
  border-right: 5px solid var(--college-lime);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--panel-shadow);
}

.kt-app-context strong,
.kt-page-head h1,
.kt-panel h2,
.kt-card h3,
.kt-fieldset legend {
  color: var(--college-navy);
}

.kt-top-link {
  border-color: var(--college-lime);
  background: var(--college-lime);
  color: var(--college-navy);
  font-weight: 900;
}

.kt-top-link:hover {
  border-color: #a7d01f;
  background: #a7d01f;
  color: var(--college-navy);
}

.kt-top-link.secondary {
  border-color: var(--college-navy-2);
  background: var(--college-navy-2);
  color: #fff;
}

.kt-open-tabs {
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 41, 57, 0.06);
}

.kt-open-tab.active {
  border-color: rgba(185, 229, 50, 0.65);
  background: var(--college-lime-soft);
  color: var(--college-navy);
}

.kt-page-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.kt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--college-lime-dark);
  font-weight: 900;
}

.kt-eyebrow::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--college-lime);
}

.kt-panel,
.kt-card,
.kt-home-action,
.kt-table-wrap,
.kt-fieldset,
.kt-empty-state,
.kt-alert,
.kt-payroll-item-card,
.kt-user-info-panel,
.kt-billing-panel,
.kt-security-panel,
.kt-support-panel,
.kt-period-step,
.kt-step-card,
.kt-cost-group {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--panel-shadow);
}

.kt-panel,
.kt-card,
.kt-home-action,
.kt-table-wrap,
.kt-fieldset {
  border-radius: 14px;
}

.kt-panel:hover,
.kt-card:hover,
.kt-home-action:hover {
  border-color: #c9d4d9;
}

.kt-home-action {
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--college-lime);
  background: #fff;
}

.kt-home-action::after {
  content: "";
  position: absolute;
  left: -22px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(185, 229, 50, 0.08);
}

.kt-home-action span {
  color: var(--college-navy);
}

.kt-btn,
button {
  border-color: var(--college-lime);
  border-radius: 10px;
  background: var(--college-lime);
  color: var(--college-navy);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(117, 151, 12, 0.12);
}

.kt-btn:hover,
button:hover {
  border-color: #a6cf21;
  background: #a6cf21;
  color: var(--college-navy);
}

.kt-btn.secondary,
button.secondary {
  border-color: var(--college-navy-2);
  background: var(--college-navy-2);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 41, 57, 0.12);
}

.kt-btn.secondary:hover,
button.secondary:hover {
  border-color: var(--college-navy-3);
  background: var(--college-navy-3);
  color: #fff;
}

.kt-btn.light,
button.light {
  border-color: #ccd7dc;
  background: #fff;
  color: var(--college-navy-2);
  box-shadow: none;
}

.kt-btn.light:hover,
button.light:hover {
  border-color: var(--college-lime);
  background: var(--college-lime-soft);
  color: var(--college-navy);
}

.kt-btn.danger,
button.danger {
  border-color: #c33c32;
  background: #c33c32;
  color: #fff;
}

input,
select,
textarea,
.kt-import-field input,
.kt-import-field select {
  border-color: #cbd6db;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus,
.kt-import-field:focus-within {
  border-color: #9fc61c;
  box-shadow: 0 0 0 4px rgba(185, 229, 50, 0.18);
}

input[type="checkbox"] {
  accent-color: var(--college-navy-2);
}

.kt-field span,
.kt-time-title {
  color: #294a5a;
}

.kt-table-wrap {
  background: #fff;
}

table {
  background: #fff;
}

th {
  border-color: #294b5c;
  background: var(--college-navy-2);
  color: #fff;
}

td {
  border-color: #e0e6e9;
  background: #fff;
}

tbody tr:nth-child(even) td {
  background: #f8faf9;
}

tbody tr:hover td {
  background: #f3f8e6;
}

.kt-badge {
  border-color: #d5e1a9;
  background: var(--college-lime-soft);
  color: #58730c;
}

.kt-badge.ok,
.kt-alert.success {
  border-color: #b9dec9;
  background: #eef8f2;
  color: #22683f;
}

.kt-badge.warn,
.kt-alert.warning {
  border-color: #efd4a4;
  background: #fff7e8;
  color: #81500b;
}

.kt-badge.danger,
.kt-badge.inactive,
.kt-alert.error {
  border-color: #ecc4c0;
  background: #fff2f1;
  color: #9f2f28;
}

.kt-start-guide-trigger,
.kt-start-guide-number,
.kt-import-row-number {
  border-color: var(--college-lime);
  background: var(--college-lime);
  color: var(--college-navy);
}

.kt-start-guide-panel {
  border-top: 5px solid var(--college-lime);
  background: #fff;
}

/* Authentication */
body:has(.kt-login) {
  background:
    radial-gradient(circle at 20% 12%, rgba(185, 229, 50, 0.20), transparent 18rem),
    radial-gradient(circle at 82% 84%, rgba(185, 229, 50, 0.10), transparent 20rem),
    linear-gradient(145deg, var(--college-navy-2), var(--college-navy));
}

.kt-login {
  width: min(510px, calc(100% - 28px));
}

.kt-auth-home {
  color: rgba(255, 255, 255, 0.82);
}

.kt-auth-home::before {
  color: rgba(255, 255, 255, 0.86);
}

.kt-auth-form {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  padding-top: 34px;
  box-shadow: 0 30px 74px rgba(0, 16, 25, 0.30);
  backdrop-filter: blur(14px);
}

.kt-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.kt-auth-logo {
  width: 62px;
  height: 62px;
  margin: 0;
  border-radius: 17px;
  background: var(--college-lime);
  color: var(--college-navy);
  font-size: 27px;
  box-shadow: 0 12px 25px rgba(117, 151, 12, 0.18);
}

.kt-auth-brand-copy {
  display: grid;
  text-align: right;
  line-height: 1.5;
}

.kt-auth-brand-copy strong {
  color: var(--college-navy);
  font-size: 18px;
  font-weight: 950;
}

.kt-auth-brand-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.kt-auth-form h2 {
  color: var(--college-navy);
  font-size: 22px;
}

.kt-auth-field input {
  border-color: #ccd8dd;
  background: #f9fbfb;
  color: var(--college-navy);
}

.kt-auth-submit {
  min-height: 54px;
  background: var(--college-lime);
  color: var(--college-navy);
}

.kt-auth-note {
  color: #72818a;
}

@media (max-width: 980px) {
  .kt-layout {
    width: min(100% - 20px, 100%);
  }

  .kt-sidebar {
    border-radius: 14px;
  }
}

@media (max-width: 720px) {
  .kt-college-brand {
    margin-bottom: 10px;
  }

  .kt-college-brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .kt-auth-form {
    padding: 28px 18px 24px;
  }

  .kt-auth-brand-copy strong {
    font-size: 16px;
  }
}

@media print {
  body,
  .kt-panel,
  .kt-card,
  .kt-table-wrap,
  table,
  td {
    background: #fff !important;
  }

  th {
    background: #e9eef0 !important;
    color: #111 !important;
  }
}
