.hrm-page {
  padding: 20px;
  background: #f4f7f8;
  min-height: calc(100vh - 58px);
}

.hrm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hrm-header > * {
  min-width: 0;
}

.hrm-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: #1f2933;
  overflow-wrap: anywhere;
}

.hrm-subtitle {
  color: #60717c;
  font-size: 13px;
  margin-top: 3px;
}

.hrm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hrm-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 8px;
}

.hrm-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d8e2e7;
  border-radius: 8px;
  background: #fff;
  color: #4b5f69;
}

.hrm-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hrm-kpi,
.hrm-panel {
  background: #fff;
  border: 1px solid #dfe8ec;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(28, 45, 56, .05);
}

.hrm-kpi {
  padding: 14px;
  min-width: 0;
}

.hrm-kpi div {
  color: #657780;
  font-size: 13px;
}

.hrm-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 27px;
  color: #1f2933;
}

.hrm-kpi span {
  display: block;
  color: #8796a0;
  font-size: 12px;
  margin-top: 2px;
}

.hrm-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.hrm-panel {
  grid-column: span 6;
  padding: 16px;
}

.hrm-panel-wide {
  grid-column: span 6;
}

.hrm-panel-full {
  margin-bottom: 14px;
}

.hrm-shortcuts-main {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.hrm-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hrm-panel-head h3 {
  font-size: 16px;
  margin: 0;
  color: #26333b;
  font-weight: 800;
}

.hrm-panel-head p {
  margin: 3px 0 0;
  color: #71818a;
  font-size: 12px;
}

.hrm-chart-wrap {
  height: 260px;
}

.hrm-alert-list,
.hrm-list {
  display: grid;
  gap: 8px;
}

.hrm-alert,
.hrm-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7fafb;
  border: 1px solid #e2ebef;
}

.hrm-alert strong,
.hrm-row-item strong {
  color: #26333b;
  font-size: 13px;
}

.hrm-alert span,
.hrm-row-item span {
  color: #657780;
  font-size: 12px;
}

.hrm-badge {
  padding: 4px 8px;
  border-radius: 8px;
  background: #e7f5f2;
  color: #197465;
  font-size: 12px;
  white-space: nowrap;
}

.hrm-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.hrm-shortcuts a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7fafb;
  border: 1px solid #e2ebef;
  color: #26333b;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  min-width: 0;
}

.hrm-shortcuts a i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: #edf2ff;
  color: #4a5b81;
}

.hrm-shortcuts a span {
  overflow-wrap: anywhere;
}

.hrm-shortcuts a:hover {
  border-color: rgba(59, 130, 246, .45);
  color: #33456b;
  background: #f8faff;
}

@media (max-width: 1100px) {
  .hrm-panel,
  .hrm-panel-wide {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .hrm-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hrm-shortcuts-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hrm-page {
    padding: 12px;
  }

  .hrm-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hrm-actions {
    width: 100%;
  }

  .hrm-actions .btn,
  .hrm-date-pill {
    justify-content: center;
    flex: 1 1 145px;
  }

  .hrm-panel {
    padding: 13px;
  }
}

@media (max-width: 520px) {
  .hrm-kpis,
  .hrm-shortcuts-main {
    grid-template-columns: 1fr;
  }

  .hrm-kpi strong {
    font-size: 24px;
  }

  .hrm-chart-wrap {
    height: 220px;
  }

  .hrm-alert,
  .hrm-row-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
