/**
 * HRIS Enterprise / Data-Dense layer (2026-10-13).
 *
 * Loaded LAST in index.html. It is the single source of truth for density,
 * shape and chrome; earlier overlay files only supply tokens and bug fixes.
 * Rules are prefixed with `html body` so they win over the overlay files
 * and over AntD's own two-class selectors without piling on specificity hacks.
 *
 * Principles: neutral surfaces, one restrained accent (indigo), 32px controls,
 * ~32px table rows, 1px borders, 4-6px radii, no gradients, no glow, no
 * hover lift, color never the only signal.
 */

:root {
  --d-primary: #4f46e5;
  --d-primary-hover: #4338ca;
  --d-primary-soft: #eef2ff;
  --d-text: #111827;
  --d-text-2: #374151;
  --d-muted: #6b7280;
  --d-border: #e5e7eb;
  --d-border-strong: #d1d5db;
  --d-bg: #f3f4f6;
  --d-surface: #ffffff;
  --d-subtle: #f9fafb;
  --d-sider: #111827;
  --d-sider-hover: rgba(255, 255, 255, 0.06);
  --d-sider-active: rgba(255, 255, 255, 0.1);
  --d-radius: 4px;
  --d-radius-lg: 6px;
  --d-control-h: 32px;
  --d-font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Re-point the shared tokens so older overlay rules follow the dense theme. */
  --hris-bg: var(--d-bg);
  --hris-border: var(--d-border);
  --hris-border-strong: var(--d-border-strong);
  --hris-text: var(--d-text);
  --hris-text-secondary: var(--d-text-2);
  --hris-text-muted: var(--d-muted);
  --hris-sidebar: var(--d-sider);
  --hris-sider: var(--d-sider);
  --hris-radius-sm: var(--d-radius);
  --hris-radius: var(--d-radius);
  --hris-radius-lg: var(--d-radius-lg);
  --hris-shadow: none;
  --hris-header-h: 48px;
}

/* ——— Base ——— */
html body,
html body #root {
  font-family: var(--d-font) !important;
  font-size: 13px;
  color: var(--d-text);
  background: var(--d-bg) !important;
}
html body .ant-layout,
html body .ant-layout-content {
  background: var(--d-bg) !important;
}
html body .ant-layout-sider,
html body .ant-layout-header,
html body .ant-table-thead > tr > th,
html body .ant-btn,
html body .ant-card {
  /* Decorative gradients from the bundle CSS and older overlays. */
  background-image: none !important;
}
html body .ant-card,
html body .ant-card:hover,
html body .ant-btn,
html body .ant-btn:hover {
  transform: none !important;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s !important;
}

/* ——— Page titles ——— */
html body .ant-layout-content h1,
html body .ant-layout-content h2.ant-typography,
html body .ant-layout-content h1.ant-typography {
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  margin: 0 0 12px !important;
  color: var(--d-text) !important;
}
html body .ant-layout-content h3.ant-typography,
html body .ant-layout-content h4.ant-typography {
  font-size: 16px !important;
  font-weight: 600 !important;
}
html body .ant-layout-content h5.ant-typography {
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* ——— Layout chrome ——— */
html body .ant-layout-header {
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 16px !important;
  background: var(--d-surface) !important;
  border-bottom: 1px solid var(--d-border) !important;
  box-shadow: none !important;
}
html body .ant-layout-header .ant-avatar {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 15px !important;
}
html body .ant-layout-content {
  padding: 16px !important;
}
@media (min-width: 1280px) {
  html body .ant-layout-content {
    padding: 20px 24px !important;
  }
}

/* ——— Sidebar ——— */
html body .ant-layout-sider,
html body .ant-layout-sider-children,
html body .ant-layout-sider .ant-menu,
html body .ant-drawer .ant-menu-dark,
html body .ant-drawer-content:has(.ant-menu-dark) {
  background: var(--d-sider) !important;
}
html body .ant-layout-sider {
  border-right: 1px solid #1f2937;
}
html body .ant-layout-sider .ant-menu-item,
html body .ant-drawer .ant-menu-item {
  height: 34px !important;
  line-height: 34px !important;
  margin: 1px 8px !important;
  width: calc(100% - 16px) !important;
  border-radius: var(--d-radius) !important;
  font-size: 13px !important;
  color: #d1d5db !important;
}
html body .ant-layout-sider .ant-menu-item .ant-menu-title-content,
html body .ant-layout-sider .ant-menu-item .ant-menu-title-content a,
html body .hris-embed-item .ant-menu-title-content {
  font-weight: 500 !important;
  color: inherit !important;
}
html body .ant-layout-sider .ant-menu-item:not(.ant-menu-item-selected):hover {
  background: var(--d-sider-hover) !important;
  color: #ffffff !important;
}
html body .ant-layout-sider .ant-menu-item-selected,
html body .ant-drawer .ant-menu-item-selected {
  background: var(--d-sider-active) !important;
  color: #ffffff !important;
  box-shadow: inset 2px 0 0 #818cf8 !important;
}
html body .ant-layout-sider .ant-menu-item-group-title,
html body .ant-drawer .ant-menu-item-group-title {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  color: #6b7280 !important;
  padding: 12px 16px 4px !important;
}
html body .ant-layout-sider .ant-menu-item-divider {
  border-color: #1f2937 !important;
  margin: 6px 12px !important;
}

/* ——— Cards ——— */
html body .ant-card {
  border: 1px solid var(--d-border) !important;
  border-radius: var(--d-radius-lg) !important;
  box-shadow: none !important;
  background: var(--d-surface) !important;
}
html body .ant-card-head {
  min-height: 44px !important;
  padding: 0 16px !important;
  border-bottom: 1px solid var(--d-border) !important;
  background: var(--d-surface) !important;
}
html body .ant-card-head-title,
html body .ant-layout-content > div > .ant-card:first-child > .ant-card-head .ant-card-head-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 0 !important;
}
html body .ant-card-body {
  padding: 16px !important;
}
html body .ant-card-small > .ant-card-body {
  padding: 12px !important;
}

/* ——— Buttons ——— */
html body .ant-btn {
  height: var(--d-control-h) !important;
  padding: 0 12px !important;
  border-radius: var(--d-radius) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
html body .ant-btn.ant-btn-lg {
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
}
html body .ant-btn.ant-btn-sm {
  height: 24px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
}
html body .ant-btn-icon-only,
html body .ant-btn.ant-btn-icon-only {
  width: var(--d-control-h) !important;
  padding: 0 !important;
}
html body .ant-btn-icon-only.ant-btn-sm {
  width: 24px !important;
}
html body .ant-btn-primary:not(.ant-btn-dangerous):not(:disabled) {
  background: var(--d-primary) !important;
  border-color: var(--d-primary) !important;
  color: #ffffff !important;
}
html body .ant-btn-primary:not(.ant-btn-dangerous):not(:disabled):hover {
  background: var(--d-primary-hover) !important;
  border-color: var(--d-primary-hover) !important;
}
html body .ant-btn-default:not(:disabled) {
  background: var(--d-surface) !important;
  border: 1px solid var(--d-border-strong) !important;
  color: var(--d-text-2) !important;
}
html body .ant-btn-default:not(:disabled):hover {
  border-color: var(--d-primary) !important;
  color: var(--d-primary) !important;
}
html body .ant-btn-link,
html body .ant-btn-text {
  height: auto !important;
}
html body .ant-table .ant-btn-text,
html body .ant-table .ant-btn-link {
  height: 24px !important;
  padding: 0 6px !important;
}

/* ——— Form controls ——— */
html body .ant-input,
html body .ant-input-affix-wrapper,
html body .ant-input-number,
html body .ant-picker,
html body .ant-select-single:not(.ant-select-customize-input) .ant-select-selector,
html body .ant-select-multiple .ant-select-selector {
  min-height: var(--d-control-h) !important;
  border: 1px solid var(--d-border-strong) !important;
  border-radius: var(--d-radius) !important;
  font-size: 13px !important;
  box-shadow: none !important;
  background: var(--d-surface) !important;
}
html body .ant-input:not(textarea),
html body .ant-input-affix-wrapper,
html body .ant-picker,
html body .ant-input-number,
html body .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
  height: var(--d-control-h) !important;
}
html body .ant-input-affix-wrapper,
html body .ant-picker {
  padding: 0 10px !important;
}
html body .ant-input:not(textarea):not(.ant-input-affix-wrapper > .ant-input) {
  padding: 0 10px !important;
}
html body .ant-input-affix-wrapper-lg,
html body .ant-input-lg,
html body .ant-picker-large,
html body .ant-select-lg .ant-select-selector {
  height: 36px !important;
  min-height: 36px !important;
  font-size: 14px !important;
}
html body .ant-select-single .ant-select-selector .ant-select-selection-item,
html body .ant-select-single .ant-select-selector .ant-select-selection-placeholder {
  line-height: 30px !important;
}
html body .ant-input-affix-wrapper > input.ant-input,
html body .ant-input-number-input {
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
html body .ant-input:hover,
html body .ant-input-affix-wrapper:hover,
html body .ant-picker:hover,
html body .ant-select:not(.ant-select-disabled):hover .ant-select-selector {
  border-color: #9ca3af !important;
}
html body .ant-input:focus,
html body .ant-input-focused,
html body .ant-input-affix-wrapper-focused,
html body .ant-picker-focused,
html body .ant-select-focused .ant-select-selector {
  border-color: var(--d-primary) !important;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15) !important;
}
html body textarea.ant-input {
  padding: 6px 10px !important;
}
html body .ant-input-search .ant-input-group-addon .ant-btn {
  height: var(--d-control-h) !important;
  border-radius: 0 var(--d-radius) var(--d-radius) 0 !important;
}
html body .ant-input-search.ant-input-search-large .ant-input-group-addon .ant-btn {
  height: 36px !important;
}
html body .ant-form-item {
  margin-bottom: 14px !important;
}
html body .ant-form-item-label {
  padding-bottom: 4px !important;
}
html body .ant-form-item-label > label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--d-text-2) !important;
  height: auto !important;
}

/* ——— Tables ——— */
html body .ant-table {
  font-size: 13px !important;
  border-radius: var(--d-radius-lg) !important;
}
html body .ant-table-wrapper .ant-table-container {
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius-lg);
}
html body .ant-table-thead > tr > th,
html body .ant-table-thead > tr > td {
  background: var(--d-subtle) !important;
  color: var(--d-muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 10px !important;
  border-bottom: 1px solid var(--d-border) !important;
  position: static;
}
html body .ant-table-thead > tr > th::before {
  display: none !important;
}
html body .ant-table-tbody > tr > td {
  padding: 6px 10px !important;
  border-bottom: 1px solid #f0f1f3 !important;
  color: var(--d-text) !important;
  background: var(--d-surface);
  transition: none !important;
}
html body .ant-table-tbody > tr:nth-child(even) > td {
  background: var(--d-surface) !important;
}
html body .ant-table-tbody > tr:hover > td,
html body .ant-table-tbody > tr.ant-table-row:hover > td {
  background: #f5f7ff !important;
}
html body .ant-table-tbody > tr.ant-table-row-selected > td {
  background: var(--d-primary-soft) !important;
}
html body .ant-table-small .ant-table-tbody > tr > td {
  padding: 4px 8px !important;
}
html body .ant-table-wrapper .ant-table-pagination.ant-pagination {
  margin: 10px 0 0 !important;
}
html body .ant-empty-normal {
  margin: 20px 0 !important;
}
html body .ant-empty-normal .ant-empty-image {
  height: 32px !important;
}

/* ——— Pagination ——— */
html body .ant-pagination .ant-pagination-item,
html body .ant-pagination .ant-pagination-prev,
html body .ant-pagination .ant-pagination-next {
  min-width: 28px !important;
  height: 28px !important;
  line-height: 26px !important;
  border-radius: var(--d-radius) !important;
}
html body .ant-pagination .ant-pagination-item-active {
  background: var(--d-primary) !important;
  border-color: var(--d-primary) !important;
}
html body .ant-pagination .ant-pagination-item-active a {
  color: #ffffff !important;
}

/* ——— Tags / badges ——— */
html body .ant-tag {
  border-radius: 3px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  padding: 0 6px !important;
  margin-inline-end: 4px !important;
}

/* ——— Tabs ——— */
html body .ant-tabs-nav {
  margin-bottom: 12px !important;
}
html body .ant-tabs-tab {
  padding: 8px 0 !important;
  font-size: 13px !important;
}
html body .ant-tabs-tab + .ant-tabs-tab {
  margin-left: 20px !important;
}
html body .ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--d-primary) !important;
  font-weight: 600 !important;
}
html body .ant-tabs-ink-bar {
  background: var(--d-primary) !important;
}
/* Horizontal tabs only: vertical (left/right) tabs take their height from AntD. */
html body .ant-tabs-top .ant-tabs-ink-bar,
html body .ant-tabs-bottom .ant-tabs-ink-bar {
  height: 2px !important;
}

/* ——— Statistic / dashboard cards ——— */
html body .ant-statistic-title {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--d-muted) !important;
  margin-bottom: 2px !important;
}
html body .ant-statistic-content {
  font-size: 22px !important;
  font-weight: 600 !important;
}
html body .ant-layout-content .ant-row > .ant-col > .ant-card > .ant-card-body > div[style] {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* ——— Modals / drawers / dropdowns ——— */
html body .ant-modal .ant-modal-content {
  border-radius: var(--d-radius-lg) !important;
  padding: 0 !important;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.18) !important;
}
html body .ant-modal .ant-modal-header {
  padding: 12px 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--d-border) !important;
  border-radius: var(--d-radius-lg) var(--d-radius-lg) 0 0 !important;
}
html body .ant-modal .ant-modal-title {
  font-size: 15px !important;
  font-weight: 600 !important;
}
html body .ant-modal .ant-modal-body {
  padding: 16px !important;
}
html body .ant-modal .ant-modal-footer {
  padding: 10px 16px !important;
  margin: 0 !important;
  border-top: 1px solid var(--d-border) !important;
}
html body .ant-modal .ant-modal-close {
  top: 10px !important;
}
html body .ant-drawer .ant-drawer-header {
  padding: 12px 16px !important;
}
html body .ant-dropdown .ant-dropdown-menu,
html body .ant-select-dropdown {
  border-radius: var(--d-radius-lg) !important;
  padding: 4px !important;
}
html body .ant-dropdown .ant-dropdown-menu-item,
html body .ant-select-item {
  min-height: 30px !important;
  font-size: 13px !important;
  border-radius: var(--d-radius) !important;
}

/* ——— Alerts / messages ——— */
html body .ant-alert {
  border-radius: var(--d-radius) !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
}
html body .ant-message-notice-content {
  border-radius: var(--d-radius) !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
}

/* ——— Injected dashboard attendance card follows the same density ——— */
html body #hris-dashboard-attendance-card {
  padding: 10px 14px !important;
  border-radius: var(--d-radius-lg) !important;
  margin-bottom: 12px !important;
}
html body #hris-dashboard-attendance-card .hris-att-card__icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: var(--d-radius) !important;
  background-size: 18px !important;
}
html body #hris-dashboard-attendance-card .hris-att-card__btn {
  height: var(--d-control-h);
  padding: 0 14px !important;
  border-radius: var(--d-radius) !important;
  font-size: 13px !important;
}

/* ——— Cookie banner: compact strip, not a floating card ——— */
html body #hris-cookie-banner {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px solid #1f2937 !important;
  padding: 8px 16px !important;
  align-items: center !important;
  font-size: 12px !important;
}
html body #hris-cookie-banner button {
  padding: 6px 10px !important;
  font-size: 12px !important;
  border-radius: var(--d-radius) !important;
}

/* ——— Phones ——— */
@media (max-width: 600px) {
  html body .ant-layout-content {
    padding: 12px !important;
  }
  html body .ant-card-body {
    padding: 12px !important;
  }
  html body .ant-layout-content h1,
  html body .ant-layout-content h2.ant-typography {
    font-size: 18px !important;
  }
}

/* =====================================================================
   Login: plain enterprise sign-in (no gradient, no glow)
   ===================================================================== */
html body.hris-route-login,
html body.hris-route-login #root {
  background: var(--d-bg) !important;
}
html body.hris-route-login #root .ant-app > div {
  background: var(--d-bg) !important;
  align-items: flex-start !important;
  padding: 96px 16px 64px !important;
  min-height: 100vh;
}
html body.hris-route-login .ant-card {
  max-width: 380px !important;
  border-radius: var(--d-radius-lg) !important;
  border: 1px solid var(--d-border) !important;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04) !important;
  overflow: visible !important;
}
html body.hris-route-login .ant-card::before,
html body.hris-route-login .ant-card::after {
  display: none !important;
}
html body.hris-route-login .ant-card-body {
  padding: 28px 28px 24px !important;
}
html body.hris-route-login .ant-card-body > div:first-child {
  text-align: left !important;
  margin-bottom: 20px !important;
}
html body.hris-route-login h2.ant-typography {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--d-text) !important;
  margin: 0 0 4px !important;
}
html body.hris-route-login .ant-typography-secondary {
  font-size: 13px !important;
  color: var(--d-muted) !important;
}
/* Visible field labels (the bundle only ships placeholders). */
html body.hris-route-login #login .ant-form-item:nth-of-type(1)::before,
html body.hris-route-login #login .ant-form-item:nth-of-type(2)::before {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--d-text-2);
  margin-bottom: 4px;
}
html body.hris-route-login #login .ant-form-item:nth-of-type(1)::before {
  content: "Username or email";
}
html body.hris-route-login #login .ant-form-item:nth-of-type(2)::before {
  content: "Password";
}
html body.hris-route-login #login .ant-form-item {
  margin-bottom: 14px !important;
}
html body.hris-route-login #login .ant-form-item:nth-of-type(3) {
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}
html body.hris-route-login .ant-input-affix-wrapper {
  height: 36px !important;
  border-radius: var(--d-radius) !important;
  border: 1px solid var(--d-border-strong) !important;
  background: var(--d-surface) !important;
}
html body.hris-route-login .ant-input-prefix {
  color: #9ca3af !important;
  margin-inline-end: 8px !important;
}
html body.hris-route-login .ant-btn-primary {
  height: 36px !important;
  border-radius: var(--d-radius) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
html body.hris-route-login #hris-back-roles {
  display: none !important;
}

#hris-public-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--d-surface);
  border-bottom: 1px solid var(--d-border);
  font-family: var(--d-font);
}
#hris-public-topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--d-text);
  text-decoration: none;
  margin-right: auto;
}
#hris-public-topbar .brand-mark,
#hris-public-topbar .hris-anim-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  display: block;
  object-fit: cover;
  flex: none;
}
#hris-public-topbar .hris-anim-mark {
  display: inline-flex;
  box-shadow: 0 4px 14px rgba(45, 26, 77, 0.2);
}
#hris-public-topbar a.nav {
  font-size: 13px;
  font-weight: 500;
  color: var(--d-text-2);
  text-decoration: none;
}
#hris-public-topbar a.nav:hover {
  color: var(--d-primary);
}
#hris-public-topbar a.cta {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--d-radius);
  background: var(--d-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
#hris-public-topbar a.cta:hover {
  background: var(--d-primary-hover);
}
#hris-public-topbar a:focus-visible {
  outline: 2px solid var(--d-primary);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  #hris-public-topbar {
    padding: 0 12px;
    gap: 12px;
  }
  #hris-public-topbar .brand-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html body.hris-route-login #root .ant-app > div {
    padding-top: 76px !important;
  }
  html body.hris-route-login .ant-card-body {
    padding: 20px !important;
  }
}

/* =====================================================================
   Public careers landing (/ and /jobs)
   ===================================================================== */
html body.hris-route-careers #root .ant-layout {
  background: var(--d-bg) !important;
  padding-top: 52px;
}
html body.hris-route-careers #root .ant-layout-content {
  max-width: 1200px !important;
  padding: 0 24px 32px !important;
}
#hris-careers-head {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 12px;
  font-family: var(--d-font);
}
#hris-careers-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  color: var(--d-text);
}
#hris-careers-head p {
  margin: 0;
  font-size: 13px;
  color: var(--d-muted);
}
/* The SPA's own top card holds search + a Login button; the top bar now owns
   sign-in, so the card becomes a plain search row. */
html body.hris-route-careers .ant-layout-content > .ant-card:first-child {
  border: 0 !important;
  background: transparent !important;
  margin-bottom: 12px !important;
}
html body.hris-route-careers .ant-layout-content > .ant-card:first-child > .ant-card-body {
  padding: 0 !important;
}
html body.hris-route-careers .ant-layout-content > .ant-card:first-child .ant-btn-primary:not(.ant-input-search-button) {
  display: none !important;
}
html body.hris-route-careers .ant-input-search {
  max-width: 420px !important;
}
html body.hris-route-careers .ant-layout-content > .ant-row {
  min-height: 0 !important;
}
html body.hris-route-careers .ant-layout-content > .ant-row .ant-card {
  max-height: none !important;
  min-height: 360px;
}
html body.hris-route-careers .ant-empty {
  padding: 32px 16px !important;
}
@media (max-width: 600px) {
  #hris-careers-head {
    padding: 16px 12px 8px;
  }
  html body.hris-route-careers #root .ant-layout-content {
    padding: 0 12px 24px !important;
  }
  html body.hris-route-careers .ant-layout-content > .ant-row .ant-card {
    min-height: 0;
    margin-bottom: 12px;
  }
}

/* ——— Sidebar brand block: compact logo + name row ——— */
html body .ant-layout-sider #hris-company-logo-overlay,
html body .ant-layout-sider [id$="-logo-overlay"] {
  width: 56px !important;
  height: 56px !important;
  margin: 0 auto 8px !important;
  border-radius: var(--d-radius-lg) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-size: 18px !important;
}
/* Collapsed sidebar (80px wide): keep the logo inside the rail. */
html body .ant-layout-sider-collapsed [id$="-logo-overlay"] {
  width: 40px !important;
  height: 40px !important;
}
html body .ant-layout-sider [data-hris-brand-title="1"] {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

/* ——— Tables: names stay on one line; row actions are quiet icons ——— */
html body .ant-table-tbody > tr > td a,
html body .ant-table-tbody > tr > td .ant-btn-link > span {
  white-space: nowrap !important;
}
html body .ant-table .ant-btn-dangerous.ant-btn-primary:not(:disabled),
html body .ant-table .ant-btn-dangerous.ant-btn-variant-solid:not(:disabled) {
  background: transparent !important;
  border-color: transparent !important;
  color: #dc2626 !important;
  box-shadow: none !important;
}
html body .ant-table .ant-btn-dangerous.ant-btn-primary:not(:disabled):hover {
  background: #fef2f2 !important;
}
html body .ant-table .ant-btn-icon-only {
  width: 28px !important;
  height: 28px !important;
}

/* ——— Careers header spans the content column ——— */
#hris-careers-head {
  width: 100%;
  box-sizing: border-box;
  align-self: center;
}

/* Clickable name cells are spans with inline `color: blue; underline`. */
html body .ant-table-tbody > tr > td span[style*="cursor: pointer"] {
  white-space: nowrap !important;
  color: var(--d-primary) !important;
  text-decoration: none !important;
  font-weight: 500;
}
html body .ant-table-tbody > tr > td span[style*="cursor: pointer"]:hover {
  text-decoration: underline !important;
}
html body [style*="color: blue"] {
  color: var(--d-primary) !important;
}
/* Any solid danger button inside a table row becomes a quiet red icon. */
html body .ant-table .ant-btn-dangerous:not(.ant-btn-text):not(.ant-btn-link):not(:disabled) {
  background: transparent !important;
  border-color: transparent !important;
  color: #dc2626 !important;
}
html body .ant-table .ant-btn-dangerous:not(.ant-btn-text):not(.ant-btn-link):not(:disabled):hover {
  background: #fef2f2 !important;
}

/* Text/link-variant danger buttons are icons or words, never solid blocks
   (an older overlay rule filled every .ant-btn-dangerous). */
html body .ant-btn-dangerous.ant-btn-variant-text:not(:disabled),
html body .ant-btn-dangerous.ant-btn-text:not(:disabled),
html body .ant-btn-dangerous.ant-btn-variant-link:not(:disabled),
html body .ant-btn-dangerous.ant-btn-link:not(:disabled) {
  background: transparent !important;
  border-color: transparent !important;
  color: #dc2626 !important;
}
html body .ant-btn-dangerous.ant-btn-variant-text:not(:disabled):hover,
html body .ant-btn-dangerous.ant-btn-text:not(:disabled):hover {
  background: #fef2f2 !important;
}

/* Role Accounts panel (assets/hris-inapp-role-accounts.js) */
html body .hra-input,
html body .hra-select {
  height: var(--d-control-h) !important;
  min-height: var(--d-control-h) !important;
  padding: 0 10px !important;
  border: 1px solid var(--d-border-strong) !important;
  border-radius: var(--d-radius) !important;
  font-size: 13px !important;
}
html body .hra-btn,
html body .hra-tab {
  height: var(--d-control-h) !important;
  padding: 0 12px !important;
  border-radius: var(--d-radius) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
html body .hra-card {
  border-radius: var(--d-radius-lg) !important;
  box-shadow: none !important;
  padding: 16px !important;
}
html body .hra-note,
html body .hra-msg {
  border-radius: var(--d-radius) !important;
  padding: 8px 12px !important;
}
html body .hra-label {
  font-size: 12px !important;
  font-weight: 600 !important;
}
