/* HRM Black Olives — force sidebar side by locale (theme RTL rules conflict). */

/* ——— Sidebar metismenu (expand + active) ——— */
.deznav .deznav-scroll {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}
.deznav .metismenu .mm-collapse:not(.mm-show) {
  display: none;
}
.deznav .metismenu .mm-show {
  display: block;
}
[data-sidebar-style="full"][data-layout="vertical"] .deznav .metismenu > li:hover > a,
[data-sidebar-style="full"][data-layout="vertical"] .deznav .metismenu > li.mm-active > a {
  background: var(--primary) !important;
  color: #fff !important;
}
[data-sidebar-style="full"][data-layout="vertical"] .deznav .metismenu > li:hover > a i,
[data-sidebar-style="full"][data-layout="vertical"] .deznav .metismenu > li.mm-active > a i {
  color: #fff !important;
}
.deznav .metismenu ul a:hover,
.deznav .metismenu ul a.mm-active {
  color: var(--primary) !important;
}

/* ——— Brand header (logo above sidebar) ——— */
.nav-header {
  overflow: hidden;
}
.nav-header .brand-logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  padding-inline: 1.25rem !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box;
}
.nav-header .logo-abbr,
.nav-header .brand-logo img.logo-abbr {
  display: block !important;
  flex: 0 0 auto !important;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}
@media only screen and (max-width: 575px) {
  .nav-header .logo-abbr,
  .nav-header .brand-logo img.logo-abbr {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }
}
.nav-header .brand-title {
  display: block !important;
  margin: 0 !important;
  max-width: 11.5rem !important;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #3d9662 !important;
  white-space: normal !important;
  overflow: hidden !important;
}
[data-theme-version="dark"] .nav-header .brand-title {
  color: #3d9662 !important;
}

/* Auth pages */
.auth-brand {
  gap: 0.75rem !important;
}
.auth-brand img.logo-abbr {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  object-fit: contain !important;
}

/* Theme RTL sets right:auto on nav-header — force correct dock side */
html[dir="rtl"] .nav-header,
body[direction="rtl"] .nav-header,
[direction="rtl"] .nav-header {
  left: auto !important;
  right: 0 !important;
  text-align: right !important;
}

html[dir="rtl"] .deznav,
body[direction="rtl"] .deznav,
[direction="rtl"] .deznav {
  left: auto !important;
  right: 0 !important;
}

html[dir="rtl"] .nav-header .brand-logo,
body[direction="rtl"] .nav-header .brand-logo,
[direction="rtl"] .nav-header .brand-logo {
  flex-direction: row !important;
  justify-content: flex-start !important;
  padding-right: 1.25rem !important;
  padding-left: 1.25rem !important;
}

html[dir="rtl"] .nav-header .brand-title,
body[direction="rtl"] .nav-header .brand-title,
[direction="rtl"] .nav-header .brand-title {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html[dir="rtl"] .header,
body[direction="rtl"] .header {
  padding-left: 0 !important;
  padding-right: 18.563rem !important;
}

html[dir="rtl"] .content-body,
body[direction="rtl"] .content-body {
  margin-left: 0 !important;
  margin-right: 18.563rem !important;
}

@media only screen and (max-width: 1400px) {
  html[dir="rtl"] .header,
  body[direction="rtl"] .header {
    padding-right: 18rem !important;
  }
  html[dir="rtl"] .content-body,
  body[direction="rtl"] .content-body {
    margin-right: 18rem !important;
  }
}

@media (max-width: 767px) {
  html[dir="rtl"] .header,
  body[direction="rtl"] .header {
    padding-right: 5rem !important;
  }
  html[dir="rtl"] .content-body,
  body[direction="rtl"] .content-body {
    margin-right: 0 !important;
  }
}

html[dir="ltr"] .nav-header,
body[direction="ltr"] .nav-header,
[direction="ltr"] .nav-header {
  left: 0 !important;
  right: auto !important;
  text-align: left !important;
}

html[dir="ltr"] .deznav,
body[direction="ltr"] .deznav,
[direction="ltr"] .deznav {
  left: 0 !important;
  right: auto !important;
}

html[dir="ltr"] .header,
body[direction="ltr"] .header {
  padding-right: 0 !important;
  padding-left: 18.563rem !important;
}

html[dir="ltr"] .content-body,
body[direction="ltr"] .content-body {
  margin-right: 0 !important;
  margin-left: 18.563rem !important;
}

@media only screen and (max-width: 1400px) {
  html[dir="ltr"] .header,
  body[direction="ltr"] .header {
    padding-left: 18rem !important;
  }
  html[dir="ltr"] .content-body,
  body[direction="ltr"] .content-body {
    margin-left: 18rem !important;
  }
}

@media (max-width: 767px) {
  html[dir="ltr"] .header,
  body[direction="ltr"] .header {
    padding-left: 5rem !important;
  }
  html[dir="ltr"] .content-body,
  body[direction="ltr"] .content-body {
    margin-left: 0 !important;
  }
}

html[dir="rtl"] .cs-updates-panel {
  right: auto;
  left: 0;
}

html[dir="rtl"] .header-right .header-profile > .dropdown-menu.dropdown-menu-end {
  right: auto !important;
  left: 0 !important;
}

html[dir="rtl"] body {
  font-family: "Thmanyah Sans", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* Bootstrap LTR utilities — flip start/end in Arabic */
html[dir="rtl"] .me-auto {
  margin-right: 0 !important;
  margin-left: auto !important;
}
html[dir="rtl"] .ms-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html[dir="rtl"] .form-head,
html[dir="rtl"] .hrm-page-heading {
  text-align: right;
}
html[dir="ltr"] .form-head,
html[dir="ltr"] .hrm-page-heading {
  text-align: left;
}

/* Language toggle — same circular control as notifications / dark mode */
.locale-switcher.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  width: 55px;
  padding: 0;
  color: #3e4954;
  background: transparent;
  border: 1px solid rgba(62, 73, 84, 0.1);
  border-radius: 2rem;
  text-decoration: none !important;
  line-height: 1;
}

.header-right .notification_dropdown .nav-link.locale-switcher {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

@media only screen and (max-width: 1199px) {
  .locale-switcher.nav-link {
    height: 40px;
    width: 40px;
  }
}

.locale-switcher__glyph {
  display: block;
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.locale-switcher__glyph.is-ar {
  font-family: "Thmanyah Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1.45rem;
}

.locale-switcher__glyph.is-en {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

@media only screen and (max-width: 1199px) {
  .locale-switcher__glyph.is-ar {
    font-size: 1.15rem;
  }
  .locale-switcher__glyph.is-en {
    font-size: 0.72rem;
  }
}

[data-theme-version="dark"] .locale-switcher.nav-link {
  color: var(--cs-text, #e2e8f0);
}

/* Table row actions — square icons, rectangular text (Settings → Lookups) */
.tbl-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tbl-btn-icon {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  line-height: 1;
}

.tbl-btn-icon i {
  margin: 0 !important;
  font-size: 0.82rem;
  line-height: 1;
}

.tbl-btn-text {
  min-height: 2rem;
  padding: 0.2rem 0.7rem !important;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.tbl-btn-text i {
  margin-inline-end: 0.35rem;
}

/* Leave Balance promo in the sidebar — whole card is the hit target (RTL-safe) */
a.plus-box.plus-box--link {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
a.plus-box.plus-box--link:hover,
a.plus-box.plus-box--link:focus {
  color: #fff;
}
.plus-box:after {
  pointer-events: none;
}
.plus-box__arrow {
  display: inline-block;
  font-size: 1.625rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}
html[dir="rtl"] .plus-box:after {
  right: auto;
  left: 0;
  transform: scaleX(-1);
}
html[dir="rtl"] .plus-box__arrow {
  transform: scaleX(-1);
}

/* Unified table toolbar — filters / search / export, separate from the card title */
.tbl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tbl-card-head .card-title {
  margin-bottom: 0;
}
.tbl-card-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.tbl-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border, #eee);
  background: #f7f8fa;
  overflow: visible;
  position: relative;
  z-index: 3;
}
.card:has(.tbl-toolbar) {
  overflow: visible;
}
.tbl-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.tbl-toolbar__search {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 320px;
}
.tbl-toolbar__search .tbl-search,
.tbl-toolbar__search .input-group {
  width: 100%;
}
.tbl-toolbar__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}
.tbl-pagination {
  width: 100%;
}
.tbl-pagination-summary {
  unicode-bidi: isolate;
}
.tbl-pagination-summary bdi {
  unicode-bidi: isolate;
  direction: ltr;
}
html[dir="rtl"] .tbl-pagination .pagination li:first-child .page-link,
html[dir="rtl"] .tbl-pagination .pagination li:last-child .page-link {
  transform: scaleX(-1);
}
.table-attendance-daily {
  min-width: 1400px;
}

/* From/To date filters — keep the native date value readable in Arabic */
.tbl-toolbar .tbl-date,
.tbl-toolbar .input-group:has(input[type="date"]) {
  flex-wrap: nowrap;
  width: auto;
  min-width: 15.5rem;
}
.tbl-toolbar .tbl-date .input-group-text,
.tbl-toolbar .input-group:has(input[type="date"]) .input-group-text {
  white-space: nowrap;
  font-size: 0.8rem;
}
.tbl-toolbar input[type="date"],
.tbl-toolbar .form-control[type="date"] {
  min-width: 11rem;
  width: 11rem;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
/* Cover the whole field so the calendar opens on click (theme used left:-20px, which misses the icon in RTL). */
.tbl-toolbar input[type="date"]::-webkit-calendar-picker-indicator,
.tbl-toolbar .form-control[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
html[dir="rtl"] .tbl-toolbar .tbl-date > .input-group-text:first-child,
html[dir="rtl"] .tbl-toolbar .input-group:has(input[type="date"]) > .input-group-text:first-child {
  border-start-start-radius: 0.375rem;
  border-end-start-radius: 0.375rem;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
html[dir="rtl"] .tbl-toolbar .tbl-date > .form-control:last-child,
html[dir="rtl"] .tbl-toolbar .input-group:has(input[type="date"]) > .form-control:last-child {
  border-start-end-radius: 0.375rem;
  border-end-end-radius: 0.375rem;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

/* Toolbar / table dropdowns — full labels, scroll long lists, stay on-screen */
.tbl-toolbar .dropdown-toggle,
.tbl-card-head .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  overflow: visible;
  max-width: none;
  padding-inline: 0.7rem 0.85rem;
}
.tbl-toolbar .dropdown-toggle::after,
.tbl-card-head .dropdown-toggle::after {
  margin: 0;
  flex-shrink: 0;
}
.tbl-toolbar .dropdown,
.tbl-card-head .dropdown {
  position: relative;
  z-index: 4;
}
.tbl-toolbar .dropdown-menu,
.tbl-card-head .dropdown-menu {
  z-index: 1080;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(22rem, 70vh);
  min-width: max(100%, 14rem);
  width: max-content;
  max-width: min(36rem, calc(100vw - 2rem));
}
.tbl-toolbar .dropdown-item,
.tbl-card-head .dropdown-item {
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.45;
  text-align: start;
}
html[dir="rtl"] .tbl-toolbar .dropdown-menu,
html[dir="rtl"] .tbl-card-head .dropdown-menu,
html[dir="rtl"] .card-body .dropdown-menu,
html[dir="rtl"] .tbl-actions .dropdown-menu {
  text-align: right;
}
html[dir="rtl"] .tbl-toolbar .dropdown-menu:not(.dropdown-menu-end),
html[dir="rtl"] .tbl-card-head .dropdown-menu:not(.dropdown-menu-end),
html[dir="rtl"] .card-body .dropdown-menu:not(.dropdown-menu-end),
html[dir="rtl"] .tbl-actions .dropdown-menu:not(.dropdown-menu-end) {
  right: 0 !important;
  left: auto !important;
}
html[dir="rtl"] .tbl-toolbar .dropdown-menu-end,
html[dir="rtl"] .tbl-card-head .dropdown-menu-end {
  left: 0 !important;
  right: auto !important;
}
html[dir="rtl"] .tbl-toolbar .dropdown-menu[data-bs-popper]:not(.dropdown-menu-end),
html[dir="rtl"] .tbl-card-head .dropdown-menu[data-bs-popper]:not(.dropdown-menu-end),
html[dir="rtl"] .card-body .dropdown-menu[data-bs-popper]:not(.dropdown-menu-end) {
  right: 0 !important;
  left: auto !important;
  transform: none !important;
}
html[dir="rtl"] .tbl-toolbar .dropdown-menu-end[data-bs-popper],
html[dir="rtl"] .tbl-card-head .dropdown-menu-end[data-bs-popper] {
  left: 0 !important;
  right: auto !important;
  transform: none !important;
}

/* Dropdown text + caret — readable in Arabic */
html[dir="rtl"] .dropdown-menu {
  text-align: start;
}
html[dir="rtl"] .dropdown-item {
  text-align: start;
}
html[dir="rtl"] .dropdown-toggle::after {
  margin-left: 0;
  margin-right: 0.255em;
}

/*
 * Checkbox menus (columns, filters, etc.):
 * Bootstrap .form-check-input floats left and overlaps Arabic labels.
 */
.cs-check-menu > label,
.dropdown-menu > label:has(> input[type="checkbox"]),
.dropdown-menu .form-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  padding-left: 0;
  padding-right: 0;
  cursor: pointer;
  white-space: nowrap;
  text-align: start;
}
.cs-check-menu > label:last-child,
.dropdown-menu > label:has(> input[type="checkbox"]):last-child,
.dropdown-menu .form-check:last-child {
  margin-bottom: 0;
}
.cs-check-menu label,
.dropdown-menu label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  text-align: start;
}
.cs-check-menu .form-check-input,
.dropdown-menu label > input[type="checkbox"].form-check-input,
.dropdown-menu .form-check .form-check-input {
  float: none !important;
  margin: 0 !important;
  position: static;
  flex: 0 0 auto;
}
html[dir="rtl"] .form-check {
  padding-left: 0;
  padding-right: 1.5em;
}
html[dir="rtl"] .form-check .form-check-input {
  float: right;
  margin-left: 0;
  margin-right: -1.5em;
}
html[dir="rtl"] .cs-check-menu .form-check-input,
html[dir="rtl"] .dropdown-menu label > input[type="checkbox"].form-check-input,
html[dir="rtl"] .dropdown-menu .d-flex .form-check-input {
  float: none !important;
  margin: 0 !important;
}

/* Auth login — RTL-safe card, logical corners, isolated bidi text */
.authincation {
  background:
    radial-gradient(1200px 560px at 80% -8%, rgba(61, 150, 98, 0.14), transparent 52%),
    radial-gradient(720px 380px at 8% 108%, rgba(61, 150, 98, 0.08), transparent 48%),
    #f3f6f4;
}
html[dir="rtl"] .authincation {
  background:
    radial-gradient(1200px 560px at 20% -8%, rgba(61, 150, 98, 0.14), transparent 52%),
    radial-gradient(720px 380px at 92% 108%, rgba(61, 150, 98, 0.08), transparent 48%),
    #f3f6f4;
}
.authincation-content {
  border-radius: 1.15rem;
  box-shadow: 0 18px 48px rgba(45, 80, 58, 0.09);
  overflow: visible;
}
html[dir="rtl"] .auth-form,
body[direction="rtl"] .auth-form {
  direction: rtl;
}
html[dir="rtl"] .auth-field__label,
html[dir="rtl"] .auth-field__hint,
body[direction="rtl"] .auth-field__label,
body[direction="rtl"] .auth-field__hint {
  direction: rtl;
  text-align: right !important;
}
.auth-form {
  position: relative;
}
.auth-form--login {
  padding: 50px;
}
@media (max-width: 575px) {
  .auth-form--login {
    padding: 30px;
  }
}
.auth-form__lang {
  position: absolute;
  top: 0.9rem;
  z-index: 2;
}
html[dir="rtl"] .auth-form__lang,
body[direction="rtl"] .auth-form__lang {
  left: 0.9rem;
  right: auto;
}
html[dir="ltr"] .auth-form__lang,
body[direction="ltr"] .auth-form__lang {
  right: 0.9rem;
  left: auto;
}
.auth-form__lang .locale-switcher.nav-link {
  height: 36px;
  width: 36px;
  background: #f4f6f5;
  border-color: rgba(62, 73, 84, 0.12);
}
.auth-form__lang .locale-switcher__glyph.is-ar {
  font-size: 1.15rem;
}
.auth-form__lang .locale-switcher__glyph.is-en {
  font-size: 0.72rem;
}
.auth-form__brand {
  text-align: center;
  margin-bottom: 1.35rem;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.auth-brand:hover {
  text-decoration: none;
}
.auth-form__title {
  margin: 0 0 1.75rem;
  text-align: center !important;
  font-size: 1.25rem;
  font-weight: 800;
  color: #2c3a33;
  line-height: 1.5;
}
.auth-field {
  margin-bottom: 1.4rem;
}
.auth-field__label {
  display: block;
  text-align: start;
  margin-bottom: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #3e4954;
}
.auth-field__input.form-control {
  height: 52px;
  border-radius: 0.7rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-inline: 0.95rem;
  unicode-bidi: isolate;
}
.auth-field__input--otp {
  letter-spacing: 0.42em;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
}
html[dir="rtl"] .auth-field__input.form-control {
  text-align: right;
}
html[dir="ltr"] .auth-field__input.form-control {
  text-align: left;
}
.auth-field__input.form-control:focus {
  border-color: #3d9662;
  box-shadow: 0 0 0 3px rgba(61, 150, 98, 0.16);
}
.auth-field__hint {
  margin: 0.7rem 0 0;
  text-align: start;
  unicode-bidi: isolate;
  line-height: 1.85;
  font-size: 0.9rem;
  color: #5f6b66;
}
html[dir="rtl"] .auth-field__hint {
  direction: rtl;
}
html[dir="ltr"] .auth-field__hint {
  direction: ltr;
}
.auth-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 0.7rem;
  font-size: 1rem;
}
.auth-submit i,
.auth-submit .spinner-border {
  flex-shrink: 0;
}
.auth-meta {
  margin: 0.7rem 0 0;
  text-align: center;
  unicode-bidi: isolate;
  font-size: 0.82rem;
  color: #6a7570;
  line-height: 1.7;
}
.auth-meta bdi {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
  margin-inline: 0.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.auth-form__link {
  display: block;
  text-align: center;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.auth-footer {
  margin: 1.15rem 0 0;
  text-align: center !important;
  unicode-bidi: isolate;
  font-size: 0.78rem;
  color: #7a8680;
  line-height: 1.7;
}
.auth-footer__year,
.auth-footer__name {
  unicode-bidi: isolate;
  direction: ltr;
  display: inline-block;
}
.auth-footer__name {
  color: #3d9662;
  font-weight: 700;
  text-decoration: none;
}
.auth-footer__name:hover {
  text-decoration: underline;
}
[data-theme-version="dark"] .authincation,
[data-theme-version="dark"] html[dir="rtl"] .authincation {
  background: var(--cs-bg, #101614);
}
[data-theme-version="dark"] .auth-form__title,
[data-theme-version="dark"] .auth-field__label {
  color: var(--cs-text-strong, #e8eee9);
}
[data-theme-version="dark"] .auth-field__hint,
[data-theme-version="dark"] .auth-meta,
[data-theme-version="dark"] .auth-footer {
  color: var(--cs-muted, #9aa8a0);
}
[data-theme-version="dark"] .auth-form__lang .locale-switcher.nav-link {
  background: rgba(255, 255, 255, 0.04);
}

/* Dashboard — interactive ops layout */
.hrm-dash {
  position: relative;
  padding-bottom: 1.5rem;
}
.hrm-dash.is-busy {
  min-height: 12rem;
}
.hrm-dash__busy {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(61, 150, 98, 0.18);
  color: #3d9662;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(45, 80, 58, 0.08);
}
.hrm-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 1.15rem;
}
.hrm-dash-hero__title {
  margin: 0 0 0.2rem;
  font-weight: 800;
  color: #1f2a24;
  font-size: 1.35rem;
  line-height: 1.45;
}
.hrm-dash-hero__sub {
  color: #6a7570;
  font-size: 0.95rem;
}
.hrm-dash-hero__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.hrm-dash-kpis {
  margin-bottom: 0.35rem;
}
.hrm-dash-kpi {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 7.25rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 0;
  box-shadow: 0 10px 28px rgba(45, 80, 58, 0.12);
  text-decoration: none !important;
  color: #fff;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 1;
}
.hrm-dash-kpi::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.35) 0%, rgba(125, 185, 232, 0) 100%);
}
html[dir="rtl"] .hrm-dash-kpi::after {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.35) 0%, rgba(125, 185, 232, 0) 100%);
}
.hrm-dash-kpi--staff {
  background-color: #F46B68;
}
.hrm-dash-kpi--present {
  background-color: #2bc155;
}
.hrm-dash-kpi--action {
  background-color: #ffb800;
}
.hrm-dash-kpi--alert {
  background-color: #369DC9;
}
a.hrm-dash-kpi:hover,
a.hrm-dash-kpi:focus {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(45, 80, 58, 0.18);
  color: #fff;
}
.hrm-dash-kpi__icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.hrm-dash-kpi--present .hrm-dash-kpi__icon,
.hrm-dash-kpi--action .hrm-dash-kpi__icon,
.hrm-dash-kpi--alert .hrm-dash-kpi__icon {
  background: transparent;
  color: #fff;
}
.hrm-dash-kpi__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.hrm-dash-kpi__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.15rem;
}
.hrm-dash-kpi__value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hrm-dash-kpi__hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}
.hrm-dash-kpi__bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.hrm-dash-kpi__bar > span {
  display: block;
  height: 100%;
  background: #fff;
}
.hrm-dash-kpi__pulse {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: hrm-dash-pulse 1.8s ease-out infinite;
}
@keyframes hrm-dash-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.hrm-dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 1.15rem;
}
.hrm-dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(45, 80, 58, 0.1);
  color: #3e4954;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.hrm-dash-chip:hover,
.hrm-dash-chip:focus {
  background: #f4f8f5;
  border-color: rgba(61, 150, 98, 0.28);
  color: #2f7a4e;
  transform: translateY(-1px);
}
.hrm-dash-chip i {
  font-size: 0.78rem;
}
.hrm-dash-chip strong {
  font-variant-numeric: tabular-nums;
}
.hrm-dash-chip.is-hot {
  border-color: rgba(201, 80, 66, 0.28);
  color: #c0392b;
}
.hrm-dash-chip.is-warn {
  border-color: rgba(214, 158, 46, 0.35);
  color: #9a6b10;
}
.hrm-dash-chip.is-info {
  border-color: rgba(45, 122, 168, 0.28);
  color: #1d6fa5;
}
.hrm-dash-chip.is-ok {
  border-color: rgba(61, 150, 98, 0.3);
  color: #2f7a4e;
}
.hrm-dash-card {
  border: 1px solid rgba(45, 80, 58, 0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(45, 80, 58, 0.05);
  overflow: hidden;
}
.hrm-dash-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 0.35rem;
}
.hrm-dash-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hrm-dash-date__nav {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(45, 80, 58, 0.12);
  background: #fff;
  color: #3e4954;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hrm-dash-date__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.hrm-dash-date__nav:not(:disabled):hover {
  border-color: #3d9662;
  color: #3d9662;
}
.hrm-dash-date__input {
  position: relative;
  width: 9.6rem;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
  cursor: pointer;
}
.hrm-dash-date__input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 0;
  cursor: pointer;
}
.hrm-dash-att {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
}
.hrm-dash-ring-wrap {
  position: relative;
  width: 9.5rem;
  height: 9.5rem;
  flex-shrink: 0;
}
.hrm-dash-ring {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}
.hrm-dash-ring__track,
.hrm-dash-ring__seg {
  fill: none;
  stroke-width: 3.4;
}
.hrm-dash-ring__track {
  stroke: #eef2ef;
}
.hrm-dash-ring__seg {
  stroke-linecap: butt;
  transition: stroke-dasharray 0.4s ease;
}
.hrm-dash-ring__seg.is-present { stroke: #3d9662; }
.hrm-dash-ring__seg.is-leave { stroke: #3d9ad6; }
.hrm-dash-ring__seg.is-absent { stroke: #2c3330; }
.hrm-dash-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hrm-dash-ring__center strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1f2a24;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hrm-dash-ring__center span {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #6a7570;
  font-weight: 700;
}
.hrm-dash-att__legend {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.hrm-dash-stat {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  background: #f7f9f7;
  color: inherit;
  text-align: start;
  text-decoration: none !important;
}
button.hrm-dash-stat {
  cursor: pointer;
}
.hrm-dash-stat:hover,
.hrm-dash-stat:focus,
.hrm-dash-stat.is-active {
  border-color: rgba(61, 150, 98, 0.28);
  background: #eef6f1;
  color: inherit;
}
.hrm-dash-stat__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}
.hrm-dash-stat__dot.is-present { background: #3d9662; }
.hrm-dash-stat__dot.is-leave { background: #3d9ad6; }
.hrm-dash-stat__dot.is-absent { background: #2c3330; }
.hrm-dash-stat__label {
  font-size: 0.84rem;
  font-weight: 700;
}
.hrm-dash-stat strong {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.hrm-dash-stat em {
  font-style: normal;
  font-size: 0.75rem;
  color: #6a7570;
  font-variant-numeric: tabular-nums;
}
.hrm-dash-att__foot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}
.hrm-dash-stack {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2ef;
  margin-top: 1.1rem;
}
.hrm-dash-stack > span { display: block; height: 100%; }
.hrm-dash-stack .is-present { background: #3d9662; }
.hrm-dash-stack .is-leave { background: #3d9ad6; }
.hrm-dash-stack .is-absent { background: #2c3330; }
.hrm-dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.hrm-dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 80, 58, 0.1);
  background: #fff;
  color: #3e4954;
  font-size: 0.8rem;
  font-weight: 700;
}
.hrm-dash-tab span {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #eee;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.hrm-dash-tab.is-active {
  background: #3d9662;
  border-color: #3d9662;
  color: #fff;
}
.hrm-dash-tab.is-active span {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.hrm-dash-queue {
  display: flex;
  flex-direction: column;
  max-height: 22rem;
  overflow: auto;
}
.hrm-dash-row,
.hrm-dash-person {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid rgba(45, 80, 58, 0.06);
  text-decoration: none !important;
  color: inherit;
  transition: background 0.12s ease;
}
.hrm-dash-people .hrm-dash-person {
  padding: 0.8rem 1.15rem;
}
.hrm-dash-row:last-child,
.hrm-dash-person:last-child {
  border-bottom: 0;
}
.hrm-dash-row:hover,
.hrm-dash-person:hover {
  background: #f6faf7;
  color: inherit;
}
.hrm-dash-row__body,
.hrm-dash-person__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hrm-dash-row__body strong,
.hrm-dash-person__body strong {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hrm-dash-row__body small,
.hrm-dash-person__body small,
.hrm-dash-person__when small {
  color: #7a8680;
  font-size: 0.74rem;
}
.hrm-dash-avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: #e8f4ec;
  color: #2f7a4e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.hrm-dash-avatar.is-today {
  background: #3d9662;
  color: #fff;
}
.hrm-dash-person__when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
  text-align: end;
}
html[dir="rtl"] .hrm-dash-person__when {
  align-items: flex-start;
}
.hrm-dash-person__bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #eef2ef;
  margin-top: 0.35rem;
  overflow: hidden;
}
.hrm-dash-person__bar > span {
  display: block;
  height: 100%;
  background: #3d9662;
}
.hrm-dash-person__bar.is-warn > span { background: #d69e2e; }
.hrm-dash-person__bar.is-hot > span { background: #c0392b; }
.hrm-dash-empty {
  text-align: center;
  padding: 2.2rem 1rem;
  color: #7a8680;
}
.hrm-dash-empty i {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.55rem;
  color: #3d9662;
}
.hrm-dash-empty.is-compact {
  padding: 1.4rem 1rem;
}
.hrm-dash-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.hrm-dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 80, 58, 0.12);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3e4954;
}
.hrm-dash-pill em {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: #6a7570;
}
.hrm-dash-pill.is-active {
  background: #1f2a24;
  border-color: #1f2a24;
  color: #fff;
}
.hrm-dash-pill.is-active em {
  color: rgba(255, 255, 255, 0.8);
}
.hrm-dash .dropdown-menu {
  z-index: 1080;
  max-height: min(22rem, 70vh);
  overflow-y: auto;
  min-width: max(100%, 14rem);
  width: max-content;
  max-width: min(36rem, calc(100vw - 2rem));
}
.hrm-dash .dropdown-item {
  white-space: normal;
  overflow-wrap: break-word;
  text-align: start;
}

[data-theme-version="dark"] .hrm-dash-hero__title,
[data-theme-version="dark"] .hrm-dash-ring__center strong {
  color: var(--cs-text-strong, #e8eee9);
}
[data-theme-version="dark"] .hrm-dash-hero__sub {
  color: var(--cs-muted, #9aa8a0);
}
[data-theme-version="dark"] .hrm-dash-chip,
[data-theme-version="dark"] .hrm-dash-card,
[data-theme-version="dark"] .hrm-dash-stat,
[data-theme-version="dark"] .hrm-dash-tab,
[data-theme-version="dark"] .hrm-dash-pill,
[data-theme-version="dark"] .hrm-dash-date__nav,
[data-theme-version="dark"] .hrm-dash__busy {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: inherit;
}
[data-theme-version="dark"] .hrm-dash-row:hover,
[data-theme-version="dark"] .hrm-dash-person:hover,
[data-theme-version="dark"] .hrm-dash-stat:hover,
[data-theme-version="dark"] .hrm-dash-stat.is-active {
  background: rgba(61, 150, 98, 0.12);
}
[data-theme-version="dark"] .hrm-dash-ring__track,
[data-theme-version="dark"] .hrm-dash-stack,
[data-theme-version="dark"] .hrm-dash-person__bar {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme-version="dark"] .hrm-dash-ring__track {
  stroke: rgba(255, 255, 255, 0.08);
}

/* Soft panels — employee invite + tenure. Inline hex backgrounds cannot follow dark mode. */
.hrm-invite-card {
  background: #f4faf6;
  border: 1px solid #d7eadf;
}
.hrm-invite-card__title {
  color: #2e7a4e;
}
.hrm-invite-picker {
  background: #fff;
  border: 1px solid #cfe8d9;
}
.hrm-growth-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eef6f1 100%);
  border-color: #d7e8de !important;
}
.hrm-growth-card__title {
  color: #1f2a24;
}
.hrm-growth-rule {
  border-top: 2px solid #d7e8de;
  opacity: 1;
}
.hrm-progress {
  background: #eef1f6;
}

/* Dark mode — this file loads last, so toolbar/thead/panels must be overridden here */
[data-theme-version="dark"] .tbl-toolbar {
  background: var(--cs-elevated, #1d2622);
  border-bottom-color: var(--cs-border, #2e3c36);
}
[data-theme-version="dark"] .table thead,
[data-theme-version="dark"] table.dataTable thead {
  background-color: var(--cs-elevated, #1d2622);
}
[data-theme-version="dark"] .table thead th,
[data-theme-version="dark"] .table thead td,
[data-theme-version="dark"] table.dataTable thead th,
[data-theme-version="dark"] table.dataTable thead td {
  color: var(--cs-muted, #96a89e) !important;
  background-color: var(--cs-elevated, #1d2622) !important;
  border-color: var(--cs-border, #2e3c36) !important;
}
[data-theme-version="dark"] .tbl-toolbar .btn-outline-secondary,
[data-theme-version="dark"] .tbl-toolbar .btn-outline-dark,
[data-theme-version="dark"] .tbl-card-head .btn-outline-secondary {
  background-color: var(--cs-elevated, #1d2622);
  border-color: var(--cs-border, #2e3c36);
  color: var(--cs-text, #dce8e1);
}
[data-theme-version="dark"] .tbl-toolbar .btn-outline-secondary:hover,
[data-theme-version="dark"] .tbl-toolbar .btn-outline-secondary:focus,
[data-theme-version="dark"] .tbl-toolbar .btn-outline-secondary.show,
[data-theme-version="dark"] .tbl-toolbar .show > .btn-outline-secondary.dropdown-toggle,
[data-theme-version="dark"] .tbl-card-head .btn-outline-secondary:hover {
  background-color: var(--cs-hover, #24302b);
  border-color: var(--cs-border-strong, #3d5248);
  color: var(--cs-text-strong, #f2f7f4);
}
[data-theme-version="dark"] .tbl-toolbar .dropdown-menu,
[data-theme-version="dark"] .tbl-card-head .dropdown-menu {
  background-color: var(--cs-elevated, #1d2622);
  border-color: var(--cs-border, #2e3c36);
  color: var(--cs-text, #dce8e1);
}
[data-theme-version="dark"] .tbl-toolbar .dropdown-item,
[data-theme-version="dark"] .tbl-card-head .dropdown-item {
  color: var(--cs-text, #dce8e1);
}
[data-theme-version="dark"] .tbl-toolbar .btn-outline-success {
  background-color: var(--cs-elevated, #1d2622);
  border-color: var(--cs-accent-strong, #3d9662);
  color: var(--cs-accent, #4caf74);
}
[data-theme-version="dark"] .tbl-toolbar .btn-outline-danger {
  background-color: var(--cs-elevated, #1d2622);
  border-color: rgba(229, 115, 115, 0.55);
  color: var(--cs-danger, #e57373);
}
[data-theme-version="dark"] .hrm-invite-card,
[data-theme-version="dark"] .hrm-growth-card {
  background: linear-gradient(180deg, rgba(76, 175, 116, 0.14) 0%, var(--cs-elevated, #1d2622) 100%) !important;
  border-color: var(--cs-border, #2e3c36) !important;
  color: var(--cs-text, #dce8e1);
}
[data-theme-version="dark"] .hrm-invite-card__title {
  color: var(--cs-accent, #4caf74) !important;
}
[data-theme-version="dark"] .hrm-invite-picker {
  background: var(--cs-surface, #171e1b) !important;
  border-color: var(--cs-border, #2e3c36) !important;
}
[data-theme-version="dark"] .hrm-growth-card__title {
  color: var(--cs-text-strong, #f2f7f4) !important;
}
[data-theme-version="dark"] .hrm-growth-rule {
  border-top-color: var(--cs-border, #2e3c36);
}
[data-theme-version="dark"] .hrm-progress {
  background: var(--cs-hover, #24302b);
}
[data-theme-version="dark"] .text-dark {
  color: var(--cs-text-strong, #f2f7f4) !important;
}

