.hr-dashboard-page {
  display: grid;
  gap: 18px;
}

.hrd-header,
.hrd-panel,
.hrd-kpi-card,
.hrd-shortcut {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.hrd-header {
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hrd-kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hrd-title {
  margin: 6px 0 8px;
  font-size: 32px;
  line-height: 1.1;
  color: #0f172a;
}

.hrd-subtitle {
  margin: 0;
  color: #64748b;
  max-width: 760px;
}

.hrd-header-meta {
  min-width: 280px;
  display: grid;
  gap: 10px;
}

.hrd-date-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hrd-date-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.hrd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.hrd-kpi-card {
  padding: 18px;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 8px;
}

.hrd-kpi-label {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.hrd-kpi-value {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.hrd-kpi-meta {
  color: #94a3b8;
  font-size: 12px;
}

.hrd-main-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.hrd-panel {
  padding: 20px;
}

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

.hrd-panel-head h2 {
  margin: 0 0 4px;
  color: #0f172a;
}

.hrd-attendance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.hrd-inline-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.hrd-inline-stat span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.hrd-inline-stat strong {
  color: #0f172a;
  font-size: 20px;
}

.hrd-table-wrap {
  overflow: auto;
}

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

.hrd-table th,
.hrd-table td {
  padding: 12px 10px;
  border-top: 1px solid #eef2f7;
  text-align: left;
}

.hrd-table th {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-top: 0;
}

.hrd-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}

.hrd-status-pill.is-danger {
  color: #b91c1c;
  background: rgba(248, 113, 113, .14);
}

.hrd-status-pill.is-warning {
  color: #b45309;
  background: rgba(245, 158, 11, .16);
}

.hrd-mini-calendar {
  margin-bottom: 14px;
}

.hrd-calendar-headline {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.hrd-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.hrd-calendar-weekday {
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  text-align: center;
}

.hrd-calendar-cell {
  min-height: 64px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.hrd-calendar-cell.is-muted {
  background: #f8fafc;
}

.hrd-calendar-cell.is-today {
  border-color: rgba(59,130,246,.35);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,.2);
}

.hrd-calendar-cell.is-holiday {
  background: #f0fdf4;
}

.hrd-calendar-cell.is-absence {
  background: #eff6ff;
}

.hrd-calendar-day {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.hrd-calendar-chips {
  display: grid;
  gap: 4px;
}

.hrd-calendar-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.hrd-calendar-chip.is-holiday {
  color: #15803d;
  background: rgba(34,197,94,.15);
}

.hrd-calendar-chip.is-absence {
  color: #1d4ed8;
  background: rgba(59,130,246,.15);
}

.hrd-upcoming-list {
  display: grid;
  gap: 10px;
}

.hrd-upcoming-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.hrd-upcoming-date {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.hrd-upcoming-copy strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.hrd-upcoming-copy span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.hrd-alert-list {
  display: grid;
  gap: 12px;
}

.hrd-alert-item {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid transparent;
}

.hrd-alert-item.is-danger {
  background: rgba(248, 113, 113, .08);
  border-color: rgba(248, 113, 113, .2);
}

.hrd-alert-item.is-warning {
  background: rgba(245, 158, 11, .10);
  border-color: rgba(245, 158, 11, .22);
}

.hrd-alert-item.is-info {
  background: rgba(59, 130, 246, .08);
  border-color: rgba(59, 130, 246, .18);
}

.hrd-alert-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hrd-alert-copy {
  color: #475569;
  font-size: 13px;
}

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

.hrd-settings-item {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 6px;
}

.hrd-settings-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hrd-settings-item strong {
  color: #0f172a;
  font-size: 15px;
}

.hrd-footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hrd-shortcut {
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
}

.hrd-shortcut.is-placeholder {
  color: #94a3b8;
}

.hrd-empty {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}

@media (max-width: 1180px) {
  .hrd-kpi-grid,
  .hrd-settings-grid,
  .hrd-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hrd-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hrd-kpi-grid,
  .hrd-settings-grid,
  .hrd-footer-links,
  .hrd-attendance-summary {
    grid-template-columns: 1fr;
  }

  .hrd-upcoming-item {
    grid-template-columns: 1fr;
  }

  .hrd-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hrd-header {
    padding: 18px;
  }

  .hrd-panel {
    padding: 16px;
  }
}
