body {
  margin: 0;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #e5edf1;
  color: #182b34;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 58px;
  background: #20323c;
  color: #fff;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 20px rgba(24, 43, 52, .16);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #b7d8e6;
  color: #20323c;
}

.demo-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid rgba(253, 230, 138, .38);
  border-radius: 999px;
  background: rgba(146, 64, 14, .3);
  color: #fef3c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
}

.user-welcome {
  color: #d9e2ec;
  white-space: nowrap;
}

.nav-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.nav-mode-toggle:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .3);
}

.user-info a {
  text-decoration: none;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #356b5a;
  color: #fff;
  font-weight: 800;
}

.header-action:hover {
  background: #2b5a4b;
}

.container {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 58px);
}

.sidebar {
  position: sticky;
  top: 58px;
  z-index: 30;
  width: 286px;
  flex-shrink: 0;
  height: calc(100vh - 58px);
  background: #f4f8f9;
  border-right: 1px solid #c8d7df;
  box-shadow: 10px 0 26px rgba(24, 43, 52, .04);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #d5e1e7;
  background: #eaf2f5;
}

.sidebar-head strong {
  display: block;
  margin-top: 3px;
  color: #182b34;
  font-size: 15px;
}

.sidebar-eyebrow {
  display: block;
  color: #697586;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sidebar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #b7e4c7;
  border-radius: 999px;
  background: #edfff5;
  color: #276749;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f855a;
}

.sidebar-scroll {
  height: calc(100% - 65px);
  overflow-y: auto;
  padding: 10px 10px 18px;
}

.sidebar-section {
  padding: 6px 0;
}

.sidebar-section + .sidebar-section {
  border-top: 1px solid #dce7ec;
}

.sidebar-section-account {
  margin-top: 8px;
}

.sidebar-link {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #344054;
  text-decoration: none;
  padding: 7px 10px 7px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.sidebar-link > i:first-child {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8f0f3;
  color: #52606d;
  font-size: 14px;
}

.sidebar-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sidebar-link-meta {
  color: #9aa4b2;
  font-size: 11px;
}

.sidebar-link:hover {
  background: #eaf4f7;
  border-color: #c4dce8;
  color: #17637d;
  transform: translateX(2px);
}

.sidebar-link:hover > i:first-child {
  background: #d6eaf2;
  color: #17637d;
}

.sidebar-link.active {
  background: #dff0f6;
  border-color: #b7d3df;
  color: #15556d;
  box-shadow: inset 3px 0 0 #2c7a8f;
}

.sidebar-link.active > i:first-child {
  background: #2c7a8f;
  color: #fff;
}

.sidebar-link-danger {
  color: #9b2c2c;
}

.sidebar-link-danger > i:first-child {
  background: #f9ecef;
  color: #be123c;
}

.sidebar-scrim {
  display: none;
}

.top-navigation {
  display: none;
  position: sticky;
  top: 58px;
  z-index: 35;
  width: 100%;
  background: #f8fbfc;
  border-bottom: 1px solid #c8d7df;
  box-shadow: 0 8px 20px rgba(24, 43, 52, .08);
}

.top-navigation-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 52px;
  padding: 0 14px;
}

.top-nav-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.top-nav-category,
.top-nav-direct {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 17px;
  border: 0;
  background: transparent;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.top-nav-category::after,
.top-nav-direct::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: -1px;
  left: 13px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.top-nav-category:hover,
.top-nav-direct:hover,
.top-nav-group.active .top-nav-category,
.top-nav-direct.active {
  color: #15556d;
  background: #eef6f8;
}

.top-nav-group.active .top-nav-category::after,
.top-nav-direct.active::after {
  background: #2c7a8f;
}

.top-nav-category > i {
  color: #64748b;
  font-size: 10px;
  transition: transform .16s ease;
}

.top-nav-direct > i {
  color: #527180;
  font-size: 13px;
}

.top-nav-group.open .top-nav-category > i,
.top-nav-group:hover .top-nav-category > i,
.top-nav-group:focus-within .top-nav-category > i {
  transform: rotate(180deg);
}

.top-nav-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 60;
  min-width: 292px;
  padding: 10px;
  border: 1px solid #c8d7df;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}

.top-nav-dropdown-wide {
  width: min(570px, calc(100vw - 28px));
}

.top-nav-group:nth-last-child(-n+2) .top-nav-dropdown {
  right: 0;
  left: auto;
}

.top-nav-group.open .top-nav-dropdown,
.top-nav-group:hover .top-nav-dropdown,
.top-nav-group:focus-within .top-nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.top-nav-dropdown-title {
  padding: 4px 7px 9px;
  color: #7b8794;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.top-nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.top-nav-dropdown-wide .top-nav-dropdown-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
}

.top-nav-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.top-nav-link > i:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #edf3f5;
  color: #52606d;
}

.top-nav-link:hover,
.top-nav-link.active {
  border-color: #c4dce8;
  background: #eaf4f7;
  color: #15556d;
}

.top-nav-link.active > i:first-child {
  background: #2c7a8f;
  color: #fff;
}

.top-nav-link-meta {
  color: #94a3b8;
  font-size: 10px;
}

@media (min-width: 1181px) {
  html[data-nav-mode="top"] .container {
    display: block;
  }

  html[data-nav-mode="top"] .top-navigation {
    display: block;
  }

  html[data-nav-mode="top"] .sidebar,
  html[data-nav-mode="top"] .sidebar-scrim {
    display: none;
  }

  html[data-nav-mode="top"] .content {
    width: auto;
  }
}

.menu-title {
  margin: 8px 8px 6px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: #7b8794;
  letter-spacing: 0;
}

.content {
  flex: 1;
  padding: 20px;
  min-width: 0;
  background: #e5edf1;
}

.card {
  background: #f7fafb;
  border-radius: 8px;
  border: 1px solid #c8d7df;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(24, 43, 52, .035);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #c1d0d9;
  box-sizing: border-box;
  font-size: 13px;
  background: #f8fbfc;
  color: #182b34;
}
textarea {
  min-height: 60px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.form-col {
  flex: 1;
  min-width: 220px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-primary,
.btn-secondary {
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.btn-primary {
  background: #20323c;
  color: #fff;
}
.btn-secondary {
  background: #f8fbfc;
  border-color: #c1d0d9;
  color: #182b34;
}

.table-wrap {
  border-radius: 8px;
  border: 1px solid #c8d7df;
  overflow-x: auto;
  background: #f7fafb;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead {
  background: #20323c;
  color: #fff;
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid #d8e3e9;
  font-size: 13px;
}
tbody tr:nth-child(even) {
  background: #eef5f7;
}

/* GSTR-7 report */
.gstr7-page {
  color: #182b34;
}

.gstr7-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.gstr7-eyebrow {
  margin: 0 0 3px;
  color: #2c6f82;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.gstr7-page-header h1 {
  margin: 0;
  color: #182b34;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
}

.gstr7-page-header h1 span {
  color: #526672;
  font-size: 14px;
  font-weight: 700;
}

.gstr7-page-description {
  margin: 4px 0 0;
  color: #526672;
  font-size: 13px;
  line-height: 1.5;
}

.gstr7-record-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 82px;
  padding: 9px 12px;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  background: #f7fafb;
  color: #526672;
  font-size: 12px;
  white-space: nowrap;
}

.gstr7-record-count strong {
  color: #20323c;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.gstr7-filter-card {
  display: grid;
  grid-template-columns: minmax(175px, .9fr) minmax(150px, .8fr) 125px minmax(330px, 1.5fr);
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  background: #f7fafb;
  box-shadow: 0 5px 14px rgba(24, 43, 52, .035);
}

.gstr7-filter-card label {
  margin-bottom: 5px;
  color: #465963;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.gstr7-filter-card select,
.gstr7-filter-card input[type="number"] {
  min-height: 36px;
  padding: 7px 10px;
  border-color: #b9cbd4;
  background: #fff;
  font-size: 13px;
}

.gstr7-filter-card select:focus,
.gstr7-filter-card input[type="number"]:focus {
  border-color: #2c7a8f;
  outline: 3px solid rgba(44, 122, 143, .15);
}

.gstr7-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.gstr7-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.gstr7-button:focus-visible {
  outline: 3px solid rgba(44, 122, 143, .24);
  outline-offset: 2px;
}

.gstr7-button-primary {
  background: #20323c;
  color: #fff;
}

.gstr7-button-primary:hover {
  background: #15252d;
}

.gstr7-button-secondary {
  border-color: #b9cbd4;
  background: #fff;
  color: #20323c;
}

.gstr7-button-secondary:hover {
  border-color: #8da5b1;
  background: #eef4f6;
}

.gstr7-button-export {
  background: #28704e;
  color: #fff;
}

.gstr7-button-export:hover {
  background: #205c40;
}

.gstr7-report-card {
  overflow: hidden;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  background: #f7fafb;
  box-shadow: 0 6px 16px rgba(24, 43, 52, .04);
}

.gstr7-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #c8d7df;
  background: #f7fafb;
}

.gstr7-table-heading h2 {
  margin: 0;
  color: #20323c;
  font-size: 15px;
  font-weight: 750;
}

.gstr7-table-heading p {
  margin: 2px 0 0;
  color: #566873;
  font-size: 12px;
}

.gstr7-table-wrap {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.gstr7-table {
  min-width: 1050px;
  color: #263a44;
}

.gstr7-table thead {
  background: #20323c;
}

.gstr7-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 10px;
  border-bottom: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.gstr7-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #dbe5ea;
  font-size: 12.5px;
  line-height: 1.4;
  vertical-align: top;
}

.gstr7-table tbody tr:nth-child(even) {
  background: #f1f6f8;
}

.gstr7-table tbody tr:hover {
  background: #e7f1f4;
}

.gstr7-table .gstr7-number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.gstr7-gstin {
  color: #344b56;
  font-size: 12px !important;
  letter-spacing: .02em;
  white-space: nowrap;
}

.gstr7-remarks {
  min-width: 190px;
  color: #526672;
}

.gstr7-table tfoot th,
.gstr7-table tfoot td {
  padding: 10px;
  border-top: 2px solid #82aebc;
  border-bottom: 0;
  background: #deedf1;
  color: #17323d;
  font-size: 12.5px;
  font-weight: 800;
}

.gstr7-table tfoot th {
  text-align: right;
}

.gstr7-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  border-top: 1px solid #dbe5ea;
  background: #fff;
  color: #526672;
  font-size: 13px;
}

.gstr7-empty-state i {
  color: #2c7a8f;
}

/* Unit fund surrender */
.surrender-page {
  color: #182b34;
}

.surrender-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.surrender-kicker {
  margin: 0 0 3px;
  color: #2c6f82;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.surrender-page-header h1 {
  margin: 0;
  color: #182b34;
  font-size: 22px;
  line-height: 1.25;
}

.surrender-page-header > div:first-child > p:last-child {
  margin: 4px 0 0;
  color: #526672;
  font-size: 13px;
}

.surrender-total-card {
  min-width: 210px;
  padding: 11px 14px;
  border: 1px solid #b8d7c6;
  border-radius: 8px;
  background: #eff8f3;
}

.surrender-total-card span,
.surrender-total-card small {
  display: block;
  color: #4d6658;
  font-size: 11px;
  font-weight: 700;
}

.surrender-total-card strong {
  display: block;
  margin: 2px 0;
  color: #185c3d;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.surrender-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.surrender-alert-success {
  border-color: #a7d7bb;
  background: #edf9f2;
  color: #185c3d;
}

.surrender-alert-error {
  border-color: #efb7b7;
  background: #fff1f1;
  color: #8a2323;
}

.surrender-alert ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.surrender-panel {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  background: #f7fafb;
  box-shadow: 0 6px 16px rgba(24, 43, 52, .04);
}

.surrender-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid #d5e1e7;
}

.surrender-panel-heading h2 {
  margin: 0;
  color: #20323c;
  font-size: 15px;
}

.surrender-panel-heading p {
  margin: 3px 0 0;
  color: #566873;
  font-size: 12px;
}

.surrender-fy-filter label {
  margin-bottom: 4px;
  color: #465963;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.surrender-fy-filter > div {
  display: flex;
  gap: 6px;
}

.surrender-fy-filter select {
  min-width: 145px;
  min-height: 34px;
  padding: 6px 9px;
  background: #fff;
  font-size: 12.5px;
}

.surrender-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.surrender-button:focus-visible,
.surrender-select-head:focus-visible {
  outline: 3px solid rgba(44, 122, 143, .24);
  outline-offset: 2px;
}

.surrender-button-secondary {
  border-color: #b9cbd4;
  background: #fff;
  color: #20323c;
}

.surrender-button-secondary:hover {
  background: #eaf2f5;
}

.surrender-button-danger {
  background: #a72b2b;
  color: #fff;
}

.surrender-button-danger:hover {
  background: #8d2222;
}

.surrender-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.surrender-table-wrap {
  overflow-x: auto;
  background: #fff;
}

.surrender-availability-table {
  min-width: 900px;
}

.surrender-availability-table thead {
  background: #20323c;
}

.surrender-availability-table th {
  padding: 9px 10px;
  color: #fff;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.surrender-availability-table td {
  padding: 9px 10px;
  font-size: 12.5px;
  vertical-align: middle;
}

.surrender-availability-table td strong,
.surrender-availability-table td small {
  display: block;
}

.surrender-availability-table td small {
  margin-top: 2px;
  color: #61737d;
  font-size: 11px;
}

.surrender-availability-table tbody tr {
  transition: background .15s ease, box-shadow .15s ease;
}

.surrender-availability-table tbody tr:hover {
  background: #eaf3f6;
}

.surrender-availability-table tbody tr.is-selected {
  background: #e2f2e9;
  box-shadow: inset 4px 0 #28704e;
}

.surrender-money {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.surrender-available {
  color: #17603e;
  font-weight: 850;
}

.surrender-select-cell {
  width: 1%;
  text-align: right;
}

.surrender-select-head {
  padding: 6px 10px;
  border: 1px solid #8fb6c2;
  border-radius: 6px;
  background: #f4fafb;
  color: #215f70;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.surrender-select-head:hover {
  background: #dcecf1;
}

.surrender-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  background: #fff;
  color: #526672;
  text-align: center;
}

.surrender-empty-state i {
  margin-bottom: 7px;
  color: #2d805a;
  font-size: 22px;
}

.surrender-empty-state strong {
  color: #263d47;
  font-size: 13px;
}

.surrender-empty-state span {
  margin-top: 3px;
  font-size: 12px;
}

.surrender-form {
  padding: 14px;
  background: #fff;
}

.surrender-field {
  display: block;
  margin: 0;
}

.surrender-field > span {
  display: block;
  margin-bottom: 5px;
  color: #465963;
  font-size: 12px;
  font-weight: 750;
}

.surrender-field select,
.surrender-field input {
  min-height: 38px;
  border-color: #b9cbd4;
  background: #fff;
  font-size: 13px;
}

.surrender-field select:focus,
.surrender-field input:focus {
  border-color: #2c7a8f;
  outline: 3px solid rgba(44, 122, 143, .15);
}

.surrender-source-field select {
  font-weight: 700;
}

.surrender-source-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.surrender-source-summary[hidden] {
  display: none;
}

.surrender-source-summary > div {
  padding: 9px 11px;
  border: 1px solid #d7e2e7;
  border-radius: 7px;
  background: #f5f9fa;
}

.surrender-source-summary span,
.surrender-source-summary strong {
  display: block;
}

.surrender-source-summary span {
  color: #61737d;
  font-size: 11px;
}

.surrender-source-summary strong {
  margin-top: 2px;
  color: #233b45;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.surrender-source-summary .is-available {
  border-color: #b8d7c6;
  background: #eff8f3;
}

.surrender-source-summary .is-available strong {
  color: #185c3d;
}

.surrender-form-grid {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(180px, .7fr) minmax(280px, 1.6fr);
  gap: 12px;
  margin-top: 12px;
}

.surrender-field small {
  display: block;
  margin-top: 4px;
  color: #61737d;
  font-size: 11px;
}

.surrender-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dbe5ea;
}

.surrender-form-actions p {
  margin: 0;
  color: #526672;
  font-size: 12px;
}

.surrender-form-actions p i {
  margin-right: 4px;
  color: #2c7a8f;
}

/* GSTIN verification feedback */
#gst_field_wrap {
  position: relative;
}

.gstin-lookup-status {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  background: #f4f8fa;
  color: #344b56;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 5px 12px rgba(24, 43, 52, .06);
}

.gstin-lookup-status[hidden] {
  display: none;
}

.gstin-lookup-icon {
  display: inline-flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dcebf0;
  color: #246579;
}

.gstin-lookup-copy {
  min-width: 0;
  flex: 1;
}

.gstin-lookup-copy strong,
.gstin-lookup-copy small {
  display: block;
}

.gstin-lookup-copy strong {
  color: #233b45;
  font-size: 12.5px;
}

.gstin-lookup-copy small {
  margin-top: 2px;
  color: #526672;
  font-size: 11.5px;
}

.gstin-lookup-status.is-searching {
  border-color: #a9cbd6;
  background: #eef7fa;
}

.gstin-lookup-status.is-success {
  border-color: #a7d7bb;
  background: #edf9f2;
}

.gstin-lookup-status.is-success .gstin-lookup-icon {
  background: #d4f0df;
  color: #1f704a;
}

.gstin-lookup-status.is-success .gstin-lookup-copy strong {
  color: #185c3d;
}

.gstin-lookup-status.is-error {
  border-color: #efb7b7;
  background: #fff1f1;
}

.gstin-lookup-status.is-error .gstin-lookup-icon {
  background: #fbdcdc;
  color: #a72b2b;
}

.gstin-lookup-status.is-error .gstin-lookup-copy strong {
  color: #8a2323;
}

.gstin-lookup-status.is-warning {
  border-color: #e5c675;
  background: #fff8e6;
}

.gstin-lookup-status.is-warning .gstin-lookup-icon {
  background: #f7e8b9;
  color: #855d0d;
}

.gstin-lookup-status.is-warning .gstin-lookup-copy strong {
  color: #76500a;
}

.gstin-lookup-retry {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #c69c36;
  border-radius: 6px;
  background: #fff;
  color: #6f4b08;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.gstin-lookup-retry:hover {
  background: #fff1c9;
}

.gstin-lookup-retry:focus-visible {
  outline: 3px solid rgba(170, 118, 15, .22);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .surrender-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .surrender-remarks-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .surrender-page-header,
  .surrender-panel-heading,
  .surrender-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .surrender-page-header h1 {
    font-size: 20px;
  }

  .surrender-total-card {
    min-width: 0;
  }

  .surrender-fy-filter > div,
  .surrender-fy-filter select {
    width: 100%;
  }

  .surrender-source-summary,
  .surrender-form-grid {
    grid-template-columns: 1fr;
  }

  .surrender-remarks-field {
    grid-column: auto;
  }

  .surrender-button-danger {
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .gstr7-filter-card {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .gstr7-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .gstr7-page-header {
    align-items: flex-start;
  }

  .gstr7-page-header h1 {
    font-size: 20px;
  }

  .gstr7-page-description {
    max-width: 42ch;
  }

  .gstr7-record-count {
    padding: 7px 9px;
  }

  .gstr7-filter-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .gstr7-filter-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .gstr7-button {
    flex: 1 1 auto;
  }
}

.footer {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  padding: 10px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-readonly-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 18px;
  border-bottom: 1px solid #d5b56d;
  background: #fff6dc;
  color: #654b16;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.demo-readonly-notice i { color: #8c6513; }

@media (max-width: 720px) {
  .demo-readonly-notice { padding-inline: 10px; font-size: 11px; }
}

.employee-page {
  padding: 22px;
  background: #e5edf1;
  color: #182b34;
  font-family: Arial, sans-serif;
}

.employee-page a {
  color: inherit;
}

.employee-page-header,
.employee-detail-hero,
.employee-panel {
  background: #f7fafb;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(24, 43, 52, 0.04);
}

.employee-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px;
  margin-bottom: 18px;
  border: 1px solid #c8d7df;
  border-left: 5px solid #2c7a8f;
  background: #f7fafb;
}

.employee-header-copy {
  max-width: 720px;
}

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

.employee-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.employee-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d8e3ef;
  border-radius: 999px;
  background: #eef5f7;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.employee-hero-badges i {
  color: #2563eb;
}

.employee-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.employee-page h1,
.employee-page h2 {
  margin: 0;
  color: #0f172a;
  letter-spacing: 0;
}

.employee-page h1 {
  font-size: 30px;
  line-height: 1.15;
}

.employee-page h2 {
  font-size: 17px;
  line-height: 1.25;
}

.employee-page p {
  margin: 6px 0 0;
  color: #64748b;
  line-height: 1.45;
}

.employee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.employee-btn:hover {
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.employee-btn-primary {
  background: #1f2937;
  color: #fff;
}

.employee-page .employee-btn-primary {
  color: #fff;
}

.employee-btn-primary:hover {
  background: #0f172a;
}

.employee-btn-accent {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.employee-page .employee-btn-accent {
  color: #fff;
}

.employee-btn-accent:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.employee-btn-secondary {
  background: #eef5f7;
  border-color: #c1d0d9;
  color: #182b34;
}

.employee-page .employee-btn-secondary {
  color: #1e293b;
}

.employee-btn-secondary:hover {
  background: #eef2f7;
  border-color: #94a3b8;
}

.employee-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.employee-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px;
  background: #f7fafb;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(24, 43, 52, 0.035);
}

.employee-stat-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 17px;
}

.employee-stat-icon-blue {
  color: #1d4ed8;
  background: #dbeafe;
}

.employee-stat-icon-green {
  color: #047857;
  background: #d1fae5;
}

.employee-stat-icon-amber {
  color: #b45309;
  background: #fef3c7;
}

.employee-stat-icon-slate {
  color: #334155;
  background: #e2e8f0;
}

.employee-stat-label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.employee-stat-card strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
}

.employee-panel {
  padding: 20px;
  margin-bottom: 16px;
}

.employee-directory-panel {
  overflow: hidden;
}

.employee-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.employee-panel-header p {
  font-size: 13px;
}

.employee-directory-header {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e8eef5;
}

.employee-directory-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 210px) minmax(170px, 230px) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  background: #f7f9fc;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
}

.employee-field {
  min-width: 0;
  margin: 0;
}

.employee-field span {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.employee-field select {
  min-height: 40px;
  border-radius: 8px;
  border-color: #cbd5e1;
  color: #1e293b;
  font-weight: 700;
}

.employee-field select:focus,
.employee-search:focus-within {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: #60a5fa;
}

.employee-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(540px, 100%);
  padding: 6px;
  border: 1px solid #c1d0d9;
  border-radius: 8px;
  background: #f8fbfc;
}

.employee-directory-tools .employee-search {
  min-width: 0;
}

.employee-search > i {
  color: #64748b;
  margin-left: 6px;
}

.employee-search input[type="text"] {
  flex: 1;
  min-width: 180px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 4px;
}

.employee-search input[type="text"]:focus {
  outline: none;
}

.employee-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 35;
  max-height: 340px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.employee-search-results[hidden] {
  display: none;
}

.employee-search-result {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #1e293b;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.employee-search-result:hover,
.employee-search-result.is-active {
  background: #e8f1f5;
}

.employee-search-result:focus-visible {
  outline: 2px solid #2c7a8f;
  outline-offset: -2px;
}

.employee-search-result-avatar {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dcebf0;
  color: #245f70;
  font-size: 11px;
  font-weight: 900;
}

.employee-search-result-copy {
  min-width: 0;
  flex: 1;
}

.employee-search-result-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.employee-search-result-name {
  overflow: hidden;
  color: #172b35;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-search-result-id {
  flex: 0 0 auto;
  color: #5d6e78;
  font-size: 11px;
  font-weight: 700;
}

.employee-search-result-meta {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #5d6e78;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-search-empty {
  padding: 14px 12px;
  color: #526672;
  font-size: 12.5px;
  text-align: center;
}

.employee-clear-search,
.employee-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  text-decoration: none;
}

.employee-clear-search {
  color: #64748b;
}

.employee-clear-search:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.employee-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.employee-count-badge,
.employee-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.employee-count-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.employee-chip {
  background: #eef5f7;
  color: #475569;
  border: 1px solid #c8d7df;
}

.employee-chip i {
  color: #2563eb;
}

.employee-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #c8d7df;
  border-radius: 8px;
  background: #f7fafb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.employee-table {
  min-width: 780px;
  background: #f7fafb;
}

.employee-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 13px 14px;
  background: #0f172a;
  color: #fff;
  border-bottom: 1px solid #0f172a;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.employee-table th:nth-child(4) {
  text-align: right;
}

.employee-table td {
  padding: 14px;
  color: #334155;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

.employee-table tbody tr {
  transition: background .15s ease, box-shadow .15s ease;
}

.employee-table tr:last-child td {
  border-bottom: 0;
}

.employee-table tbody tr:hover {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #2563eb;
}

.employee-table small,
.employee-document-row small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 2px;
}

.employee-table-primary {
  display: block;
  color: #0f172a;
  font-weight: 800;
}

.employee-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
}

.employee-identity img,
.employee-identity > span,
.employee-profile-avatar img,
.employee-profile-avatar span {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #dbe3ed;
}

.employee-identity > span,
.employee-profile-avatar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 900;
}

.employee-identity strong {
  display: block;
  color: #0f172a;
}

.employee-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.employee-id-pill,
.employee-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.employee-id-pill {
  background: #f1f5f9;
  color: #475569;
}

.employee-status-ready {
  background: #dcfce7;
  color: #166534;
}

.employee-status-partial {
  background: #fef3c7;
  color: #92400e;
}

.employee-status-needs {
  background: #fee2e2;
  color: #991b1b;
}

.employee-service-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.employee-service-active,
.employee-service-retiring-this-month {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.employee-service-pay-held,
.employee-service-suspended,
.employee-service-subsistence {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fed7aa;
}

.employee-service-no-pay,
.employee-service-retired,
.employee-service-deceased,
.employee-service-transferred-out,
.employee-service-archived,
.employee-service-inactive {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.employee-money-cell {
  text-align: right;
}

.employee-money {
  display: inline-block;
  color: #0f766e;
  font-weight: 900;
  white-space: nowrap;
}

.employee-action-cell {
  width: 86px;
  text-align: center;
}

.employee-icon-link {
  margin: 0 auto;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.employee-icon-link:hover {
  background: #dbeafe;
  transform: translateX(2px);
}

.employee-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 150px;
  color: #64748b;
  text-align: center;
}

.employee-empty-state i {
  color: #94a3b8;
  font-size: 26px;
}

.employee-empty-state strong {
  color: #1e293b;
}

.employee-empty-state-small {
  min-height: 86px;
  padding: 12px;
}

.employee-empty-panel {
  min-height: 260px;
}

.employee-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.employee-back-link:hover {
  color: #1d4ed8;
}

.employee-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin-bottom: 16px;
  border-top: 4px solid #047857;
}

.employee-profile-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.employee-profile-avatar img,
.employee-profile-avatar span {
  width: 74px;
  height: 74px;
  font-size: 22px;
}

.employee-profile-heading p {
  font-size: 15px;
}

.employee-profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.employee-profile-metrics div {
  min-height: 70px;
  padding: 12px;
  background: #eef5f7;
  border: 1px solid #c8d7df;
  border-radius: 8px;
}

.employee-profile-metrics span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.employee-profile-metrics strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.3;
}

.employee-alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  border: 1px solid;
  font-weight: 700;
}

.employee-alert-success {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.employee-alert-error {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.employee-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.employee-detail-grid .employee-panel {
  margin-bottom: 0;
}

.employee-panel-wide {
  grid-column: 1 / -1;
}

.employee-detail-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.employee-detail-list div {
  min-height: 70px;
  padding: 12px;
  background: #eef5f7;
  border: 1px solid #c8d7df;
  border-radius: 8px;
}

.employee-detail-list dt {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.employee-detail-list dd {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.employee-form {
  display: grid;
  gap: 12px;
}

.employee-form label {
  margin: 0;
}

.employee-form label span {
  display: block;
  margin-bottom: 5px;
}

.employee-form input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #c1d0d9;
  border-radius: 8px;
  box-sizing: border-box;
  background: #f8fbfc;
  font-size: 13px;
}

.employee-list-stack {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.employee-document-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
}

.employee-document-row:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.employee-document-row > i:first-child {
  color: #2563eb;
  font-size: 17px;
}

.employee-document-row > i:last-child {
  color: #94a3b8;
  font-size: 12px;
}

.employee-document-row strong {
  display: block;
  color: #0f172a;
}

.employee-table-compact {
  min-width: 420px;
}

.employee-inline-link {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.employee-inline-link:hover {
  text-decoration: underline;
}

.employee-muted {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .header {
    padding: 0 12px;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .nav-mode-toggle,
  .top-navigation {
    display: none !important;
  }

  .logo span:last-child {
    max-width: 56vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-welcome {
    display: none;
  }

  .container {
    display: block;
    min-height: calc(100vh - 58px);
  }

  .sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    bottom: 0;
    width: min(88vw, 318px);
    height: calc(100vh - 58px);
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 58px 0 0;
    z-index: 25;
    background: rgba(15, 23, 42, .48);
  }

  body.sidebar-open .sidebar-scrim {
    display: block;
  }

  .content {
    padding: 14px;
  }
}

@media (max-width: 1180px) {
  .nav-mode-toggle {
    display: none;
  }

  .employee-stat-grid,
  .employee-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-detail-hero,
  .employee-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .employee-directory-tools {
    grid-template-columns: 1fr 1fr;
  }

  .employee-directory-tools .employee-search {
    grid-column: 1 / -1;
  }

  .employee-directory-tools .employee-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .container {
    display: block;
  }

  .sidebar {
    width: min(88vw, 318px);
  }

  .employee-page-header,
  .employee-panel-header,
  .employee-profile-heading {
    flex-direction: column;
  }

  .employee-page-header {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .employee-header-actions {
    justify-content: stretch;
    width: 100%;
  }

  .employee-header-actions .employee-btn {
    flex: 1 1 180px;
  }

  .employee-page-header,
  .employee-detail-hero,
  .employee-panel {
    padding: 14px;
  }

  .employee-directory-tools {
    grid-template-columns: 1fr;
  }

  .employee-directory-tools .employee-search {
    grid-column: auto;
  }

  .employee-search {
    min-width: 0;
  }

  .employee-search input[type="text"] {
    flex-basis: calc(100% - 42px);
  }

  .employee-search .employee-btn {
    width: 100%;
  }

  .employee-search-results {
    max-height: 280px;
  }

  .employee-stat-grid,
  .employee-profile-metrics,
  .employee-detail-list {
    grid-template-columns: 1fr;
  }

  .employee-table {
    min-width: 640px;
  }
}
