/**
 * IGF HR – global theme aligned with CRM (igf-ems).
 * Colors: #00573C (green), #BFA253 (gold); fonts: Josefin Sans, Poppins.
 */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600&display=swap');

:root {
  --hr-primary: #00573C;
  --hr-accent: #BFA253;
  --hr-bg: #EDEDED;
  --hr-panel: #F8F5F0;
  --hr-text: #333;
  --hr-muted: #777777;
}

body {
  font-family: 'Poppins', sans-serif !important;
  color: var(--hr-text);
  margin: 0;
  min-height: 100vh;
}

/* Buttons – match CRM */
.btn-warning,
.btn-warning:focus {
  color: #ffffff !important;
  background-color: var(--hr-accent) !important;
  border: 0 !important;
  border-radius: 10px;
  font-family: 'Josefin Sans', sans-serif !important;
}

.btn-warning:hover:not(:disabled) {
  color: #ffffff !important;
  background-color: var(--hr-primary) !important;
}

.btn-primary,
.btn-primary:focus {
  background-color: var(--hr-primary) !important;
  border-color: var(--hr-primary) !important;
  border-radius: 10px;
  font-family: 'Josefin Sans', sans-serif !important;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--hr-accent) !important;
  border-color: var(--hr-accent) !important;
}

.btn-outline-primary {
  border-color: var(--hr-primary);
  color: var(--hr-primary);
  border-radius: 10px;
}

.btn-outline-primary:hover {
  background-color: var(--hr-primary);
  color: #fff;
}

/* Form controls – match CRM */
.form-control,
.form-select {
  background-color: var(--hr-bg) !important;
  border: 2px solid #fff !important;
  border-radius: 10px;
  color: var(--hr-muted);
  font-family: 'Josefin Sans', sans-serif;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--hr-accent) !important;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(191, 162, 83, 0.25);
}

.form-label {
  font-family: 'Josefin Sans', sans-serif;
  color: var(--hr-text);
}

/* Links */
a {
  color: var(--hr-accent);
}

a:hover {
  color: var(--hr-primary);
}

/* Page title */
.hr-page-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  color: var(--hr-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--hr-bg);
}

/* Page header row (title + actions) – full-width line */
.hr-page-header {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--hr-bg);
}
.hr-page-header .hr-page-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Manage public holidays modal – keep table text on one line */
.hr-public-holidays-table .hr-ph-date,
.hr-public-holidays-table .hr-ph-day,
.hr-public-holidays-table .hr-ph-name-en,
.hr-public-holidays-table .hr-ph-name-fr {
  white-space: nowrap;
}
.hr-public-holidays-table .hr-ph-date { min-width: 180px; }
.hr-public-holidays-table .hr-ph-day { min-width: 44px; }
.hr-public-holidays-table .hr-ph-name-en { min-width: 200px; }
.hr-public-holidays-table .hr-ph-name-fr { min-width: 140px; }
.hr-public-holidays-table .hr-ph-actions { min-width: 140px; }
