html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ---------- HCM unified UI helpers ---------- */
.page-title{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-bottom: .75rem;
  color: var(--bs-primary);
}
.page-subtitle{
  color: var(--bs-secondary-color);
  margin-top:-.25rem;
  margin-bottom:1rem;
}
.card.form-card{
  border:0;
  box-shadow: 0 .125rem .5rem rgba(0,0,0,.08);
}
.card.form-card .card-header{
  border-bottom:0;
}
.table.table-ui thead th{
  white-space:nowrap;
}
.validation-summary-errors ul{
  margin-bottom:0;
}

.form-actions{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  justify-content:flex-end;
  margin-top:1rem;
}
.table-responsive{
  border-radius: .75rem;
}
.table thead th{
  white-space:nowrap;
}
.table td, .table th{
  vertical-align: middle;
}
.empty-state{
  padding: 1.25rem;
  border: 1px dashed rgba(0,0,0,.15);
  border-radius: .75rem;
  text-align:center;
}

.page-header { border-bottom: 1px solid rgba(0,0,0,.08); padding-bottom: .75rem; }
.page-title { font-weight: 600; letter-spacing: .2px; }

.hcm-form {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.hcm-form .form-label,
.hcm-form label {
  font-weight: 500;
}

.hcm-form .form-control,
.hcm-form .form-select {
  border-radius: 12px;
}

.hcm-form .btn {
  border-radius: 12px;
}

.validation-summary-errors,
.validation-summary-valid {
  margin-bottom: 1rem;
}

.validation-summary-errors ul { margin-bottom: 0; padding-left: 1.25rem; }

.field-validation-error,
.text-danger.field-validation-error {
  display: block;
  margin-top: .25rem;
}

.input-validation-error {
  border-color: #dc3545 !important;
}

.input-validation-error:focus {
  box-shadow: 0 0 0 .25rem rgba(220,53,69,.15);
}
