.hrms-body {
  background: #f6f8fb;
  color: #102033;
}

.hrms-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hrms-shell.single {
  display: flex;
  justify-content: center;
  min-height: 72vh;
  align-items: center;
}

.hrms-sidebar,
.hrms-card,
.hrms-locked-panel {
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.08);
}

.hrms-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 20px;
  padding: 22px;
}

.hrms-brand-block {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b7a75, #11283d);
}

.hrms-brand-block span,
.hrms-kicker,
.hrms-upgrade-list > span {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hrms-brand-block strong {
  font-size: 1.15rem;
}

.hrms-nav,
.hrms-upgrade-list,
.profile-list,
.hrms-action-grid {
  display: grid;
  gap: 10px;
}

.hrms-nav a,
.hrms-upgrade-list a,
.hrms-action-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #31445c;
  background: #f7fafc;
  border: 1px solid transparent;
  font-weight: 700;
}

.hrms-nav a.active,
.hrms-nav a:hover,
.hrms-action-grid a:hover {
  color: #075955;
  background: #e5f6f2;
  border-color: rgba(11, 122, 117, 0.22);
}

.hrms-nav a.locked,
.hrms-action-grid a.locked {
  color: #778397;
  background: #f1f4f7;
}

.hrms-upgrade-list {
  padding-top: 14px;
  border-top: 1px solid #dfe6ef;
}

.hrms-upgrade-list a small,
.hrms-action-grid small,
.hrms-table small {
  display: block;
  color: #607089;
  font-weight: 600;
}

.hrms-main {
  display: grid;
  gap: 22px;
}

.hrms-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 40, 61, 0.98), rgba(11, 122, 117, 0.9)),
    url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hrms-topbar h1,
.hrms-card h2,
.hrms-locked-panel h1,
.employee-login h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.hrms-topbar .hrms-kicker {
  color: #f2b84b;
  margin: 0 0 8px;
}

.hrms-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hrms-stat-grid article {
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dfe6ef;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.hrms-stat-grid span {
  color: #607089;
  font-weight: 700;
}

.hrms-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #075955;
  font-size: 2rem;
  line-height: 1;
}

.hrms-grid {
  display: grid;
  gap: 20px;
}

.hrms-grid.two {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.hrms-card {
  padding: 24px;
  overflow: hidden;
}

.form-card {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

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

.hrms-card label {
  display: grid;
  gap: 7px;
}

.hrms-card input,
.hrms-card textarea,
.hrms-card select,
.employee-login input {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #dfe6ef;
  border-radius: 6px;
  background: #ffffff;
  color: #102033;
  font: inherit;
}

.hrms-card textarea {
  resize: vertical;
}

.hrms-button,
.row-actions button,
.inline-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.hrms-button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0b7a75, #075955);
}

.hrms-button.ghost,
.row-actions button,
.inline-form button {
  color: #075955;
  background: #e5f6f2;
  border: 1px solid rgba(11, 122, 117, 0.18);
}

.hrms-button.full {
  width: 100%;
}

.hrms-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hrms-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hrms-table-wrap {
  overflow-x: auto;
}

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

.hrms-table th,
.hrms-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #dfe6ef;
  text-align: left;
  vertical-align: top;
}

.hrms-table th {
  color: #075955;
  background: #f4f8fb;
  font-size: 0.86rem;
}

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

.row-actions form,
.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions a,
.hrms-table a {
  color: #075955;
  font-weight: 800;
}

.status,
.hrms-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #075955;
  background: #d8f6df;
  font-weight: 800;
  font-size: 0.8rem;
}

.status.pending {
  color: #806018;
  background: #fff1cf;
}

.status.rejected,
.status.inactive {
  color: #8b1f28;
  background: #ffe2e5;
}

.hrms-locked-panel,
.employee-login {
  width: min(620px, 100%);
  padding: 34px;
}

.hrms-locked-panel p,
.employee-login p {
  color: #607089;
}

.hrms-locked-panel strong {
  display: block;
  margin: 18px 0;
  color: #075955;
  font-size: 2rem;
}

.employee-login {
  display: grid;
  gap: 16px;
}

.hrms-alert {
  padding: 12px;
  border-radius: 6px;
  color: #8b1f28;
  background: #ffe2e5;
}

.profile-card {
  text-align: center;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #0b7a75, #f2b84b);
  font-size: 2rem;
  font-weight: 900;
}

.profile-list {
  margin-top: 20px;
  text-align: left;
}

.profile-list span {
  padding: 12px;
  border-radius: 6px;
  background: #f7fafc;
  color: #607089;
}

.profile-list strong {
  display: block;
  color: #102033;
}

@media (max-width: 1080px) {
  .hrms-shell,
  .hrms-grid.two,
  .hrms-stat-grid {
    grid-template-columns: 1fr;
  }

  .hrms-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .hrms-topbar,
  .hrms-table-head,
  .hrms-search {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hrms-card,
  .hrms-sidebar,
  .hrms-locked-panel,
  .employee-login {
    padding: 18px;
  }
}
