/* THRS V14.4 — Employees Luxury Responsive Redesign
 * Layered after Employees V2; visual CSS only. Table data, actions, filters,
 * form validation, permissions, pagination and API requests remain unchanged.
 * Mobile card view uses the existing accessible <table> and data-label fields.
 */
html[data-theme="light"] .thrs-page-employees {
  --lux-paper:#f4f7fc;--lux-panel:#fff;--lux-ink:#132f4c;
  --lux-muted:#4e6781;--lux-line:#d5e0eb;--lux-accent:#9a6b27;
  --lux-shadow:0 12px 34px rgba(12,40,68,.09);
}
html[data-theme="dark"] .thrs-page-employees {
  --lux-paper:#091c30;--lux-panel:#13334f;--lux-ink:#f3f8ff;
  --lux-muted:#c3d4e8;--lux-line:#4c708e;--lux-accent:#f0cc83;
  --lux-shadow:0 15px 37px rgba(0,0,0,.32);
}
html[data-theme] .thrs-page-employees {
  width:100% !important;min-width:0 !important;
  max-width:1680px !important;
  margin-inline:auto !important;
  gap:clamp(14px,1.55vw,22px) !important;
  --lux-radius:19px;
}

/* Signature hero: compact executive masthead + usable command console. */
html[data-theme] .thrs-page-employees .thrs-employee-central-hero {
  min-height:207px !important;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.92fr) !important;
  border-radius:24px !important;
  padding:clamp(23px,2.1vw,34px) clamp(24px,2.85vw,47px) !important;
  gap:clamp(15px,2.1vw,29px) !important;
  box-shadow:0 20px 50px rgba(6,24,45,.23) !important;
  background:
    radial-gradient(ellipse at 94% 0%,rgba(229,178,92,.11),transparent 36%),
    linear-gradient(110deg,#153d61,#092740 62%,#06182b) !important;
}
html[data-theme="dark"] .thrs-page-employees .thrs-employee-central-hero {
  background:
    radial-gradient(ellipse at 91% 0%,rgba(231,178,92,.085),transparent 37%),
    linear-gradient(111deg,#0b2c4a,#071e35 63%,#041426) !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-page-header-copy {
  padding-inline-start:18px !important;
  gap:9px !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-central-hero .page-title {
  font-size:clamp(34px,2.8vw,46px) !important;
  margin:2px 0 3px !important;
  line-height:1.17 !important;
  text-wrap:balance;
}
html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-page-subtitle {
  font-size:13px !important;line-height:1.65 !important;
  max-width:61ch !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-page-header-actions {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:10px !important;
  padding:15px !important;
  border-radius:17px !important;
  align-content:center !important;
  background:rgba(4,21,39,.51) !important;
  border:1px solid rgba(215,230,243,.22) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-central-hero .emp-search-wrap {
  min-height:51px !important;
  border-radius:12px !important;
  background:rgba(246,251,255,.1) !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-central-hero .emp-search-input {
  min-height:49px !important;
  font-size:13px !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-btn {
  width:100% !important;
  min-height:50px !important;
  min-width:0 !important;
  border-radius:12px !important;
  padding-inline:14px !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-page-header-actions:has(> .emp-search-wrap:only-child) {
  max-width:500px !important;
}
/* Filter command station: no clipped native selects or reset action. */
html[data-theme] .thrs-page-employees .thrs-filter-command-bar {
  display:grid !important;
  grid-template-columns:minmax(170px,.8fr) repeat(3,minmax(145px,1fr)) auto !important;
  align-items:center !important;
  gap:11px !important;
  padding:14px clamp(15px,1.5vw,24px) !important;
  min-height:79px !important;
  border-radius:17px !important;
  box-shadow:var(--lux-shadow) !important;
}
html[data-theme] .thrs-page-employees .thrs-filter-command-bar > * {min-width:0 !important;}
html[data-theme] .thrs-page-employees .thrs-filter-title {font-size:13px !important;}
html[data-theme] .thrs-page-employees .thrs-filter-command-bar .form-select {
  font-size:12.5px !important;min-height:46px !important;
  padding-inline:12px 26px !important;
}
html[data-theme] .thrs-page-employees .thrs-clear-filter-btn {min-height:46px !important;}

/* Desktop KPI bento: a distinguished real Total tile + three calm companions. */
html[data-theme] .thrs-page-employees .emp-stats-grid {
  grid-template-columns:minmax(0,1.28fr) repeat(3,minmax(0,1fr)) !important;
  gap:clamp(11px,1.15vw,16px) !important;
}
html[data-theme] .thrs-page-employees .emp-stat-card {
  min-height:147px !important;
  border-radius:18px !important;
  padding:19px !important;
  grid-template-columns:50px minmax(0,1fr) !important;
  gap:5px 12px !important;
  border:1px solid var(--lux-line) !important;
  border-top:3px solid var(--lux-accent) !important;
  box-shadow:var(--lux-shadow) !important;
}
html[data-theme="light"] .thrs-page-employees .emp-stat-card:first-child {
  background:linear-gradient(132deg,#173f63,#092943) !important;
  border-color:#5d809e !important;
  border-top-color:#e8bd70 !important;
}
html[data-theme="dark"] .thrs-page-employees .emp-stat-card:first-child {
  background:linear-gradient(132deg,#1c4a70,#0b2c47) !important;
  border-color:#5e84a2 !important;
  border-top-color:#eac87e !important;
}
html[data-theme] .thrs-page-employees .emp-stat-card:first-child .emp-stat-value,
html[data-theme] .thrs-page-employees .emp-stat-card:first-child .emp-stat-label {
  color:#f4f8ff !important;
}
html[data-theme] .thrs-page-employees .emp-stat-card:first-child .emp-stat-icon {
  background:rgba(232,200,132,.16) !important;
  border-color:rgba(236,206,139,.5) !important;
  color:#f4d999 !important;
}
html[data-theme] .thrs-page-employees .emp-stat-card .emp-stat-icon {
  width:48px !important;height:48px !important;
  border-radius:14px !important;
}
html[data-theme] .thrs-page-employees .emp-stat-card .emp-stat-value {
  font-size:clamp(33px,2.45vw,44px) !important;
  line-height:1.1 !important;
}
html[data-theme] .thrs-page-employees .emp-stat-card .emp-stat-label {
  font-size:12.5px !important;
  line-height:1.4 !important;
}
html[data-theme] .thrs-page-employees .emp-stat-card::before {
  width:125px !important;height:125px !important;
  top:-91px !important;inset-inline-end:-71px !important;
}
html[data-theme] .thrs-page-employees .emp-stat-card::after {
  height:3px !important;opacity:.65 !important;
}

/* Directory board: restrained presentation, more useful rows. */
html[data-theme] .thrs-page-employees .thrs-employee-table-card {
  border-radius:20px !important;
  box-shadow:var(--lux-shadow) !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-table-wrap {
  border-radius:19px 19px 0 0 !important;
  max-height:min(72vh,900px) !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-table {
  min-width:990px !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-table thead th {
  height:57px !important;padding:15px 17px !important;
  font-size:11.5px !important;
  letter-spacing:.042em !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-table tbody tr {height:84px !important;}
html[data-theme] .thrs-page-employees .thrs-employee-table tbody td {
  min-height:83px !important;
  padding:12px 17px !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-avatar {
  width:47px !important;height:47px !important;flex-basis:47px !important;
  border-radius:14px !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-name {
  font-size:14px !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-email {
  max-width:240px !important;
  font-size:11.5px !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-department {font-size:13px !important;}
html[data-theme] .thrs-page-employees .thrs-employee-table-card .pagination-bar {
  gap:10px !important;min-height:72px !important;
  padding:12px 17px !important;
}
html[data-theme] .thrs-page-employees .thrs-employee-table-card .pagination-controls {
  display:flex;align-items:center;gap:5px;max-width:100%;
}
html[data-theme] .thrs-page-employees .thrs-employee-table-card .pagination-size-select {
  min-width:64px !important;
}

/* Employee modal: premium but friction-free on desktops. */
html[data-theme] .thrs-modal-overlay > .employee-edit-modal-card {
  border-radius:23px !important;
  box-shadow:0 30px 86px rgba(0,13,31,.44) !important;
}
html[data-theme] .employee-edit-modal-card .employee-edit-form-pro {
  padding:20px !important;gap:14px !important;
}
html[data-theme] .employee-edit-modal-card .employee-edit-hero {
  min-height:105px !important;padding:19px !important;
}
html[data-theme] .employee-edit-modal-card .employee-form-section {
  padding:19px !important;border-radius:16px !important;
}
html[data-theme] .employee-edit-modal-card .employee-form-grid {gap:14px !important;}
html[data-theme] .employee-edit-modal-card :is(.form-input,.form-select,.form-textarea) {
  min-height:46px !important;
}
html[data-theme] .employee-edit-modal-card .employee-edit-footer {
  position:sticky !important;
  bottom:0 !important;
  z-index:4 !important;
  background:var(--em-card) !important;
  border-top:1px solid var(--em-line) !important;
  box-shadow:0 -9px 24px rgba(5,28,56,.07) !important;
}

/* TABLE -> MOBILE STAFF CARDS. Keep DOM table semantics/keyboard row click,
 * actions and data-label values generated by Table.jsx.
 * Thead is visually clipped, NOT display:none: assistive tech still sees
 * the column headings. No duplicated rows or API fetching.
 */
@media(max-width:820px) {
  html[data-theme] .thrs-page-employees .thrs-employee-table-card {
    padding:0 !important;
    border:0 !important;
    box-shadow:none !important;
    background:transparent !important;
    overflow:visible !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table-wrap {
    width:100% !important;
    max-height:none !important;
    overflow:visible !important;
    background:transparent !important;
    border-radius:0 !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    table-layout:auto !important;
    border:0 !important;
    background:transparent !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table thead {
    position:absolute !important;
    width:1px !important;height:1px !important;
    overflow:hidden !important;clip-path:inset(50%) !important;
    white-space:nowrap !important;
    padding:0 !important;margin:-1px !important;
    border:0 !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:13px !important;
    width:100% !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody tr:not(:has(> .thrs-table-empty-cell)) {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-template-areas:
      "identity identity"
      "work employment"
      "hire hire"
      "actions actions" !important;
    gap:0 12px !important;
    height:auto !important;
    min-height:0 !important;
    width:100% !important;min-width:0 !important;
    border-radius:18px !important;
    overflow:hidden !important;
    border:1px solid var(--lux-line) !important;
    box-shadow:var(--lux-shadow) !important;
    background:var(--lux-panel) !important;
    isolation:isolate;
    transition:box-shadow .18s ease,border-color .18s ease;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody tr:not(:has(> .thrs-table-empty-cell)):hover,
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody tr:not(:has(> .thrs-table-empty-cell)):focus-visible {
    border-color:var(--lux-accent) !important;
    box-shadow:0 16px 38px rgba(12,40,68,.16) !important;
    outline-offset:2px;
  }
  html[data-theme="dark"] .thrs-page-employees .thrs-employee-table tbody tr:not(:has(> .thrs-table-empty-cell)):hover,
  html[data-theme="dark"] .thrs-page-employees .thrs-employee-table tbody tr:not(:has(> .thrs-table-empty-cell)):focus-visible {
    box-shadow:0 16px 38px rgba(0,0,0,.36) !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody td {
    display:block !important;
    height:auto !important;min-height:0 !important;
    width:auto !important;min-width:0 !important;
    padding:12px 15px !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:var(--lux-ink) !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody tr:nth-child(odd) td,
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody tr:nth-child(even) td,
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody tr:hover td {
    background:transparent !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-identity {
    grid-area:identity;
    border-bottom:1px solid var(--lux-line) !important;
    padding:17px !important;
    background:color-mix(in srgb,var(--lux-panel) 80%,var(--lux-paper)) !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-work {grid-area:work;}
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-employment {grid-area:employment;}
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-hire-date {
    grid-area:hire;
    border-top:1px solid var(--lux-line) !important;
    display:flex !important;align-items:center;justify-content:space-between !important;gap:12px !important;
    flex-wrap:wrap !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-actions {
    grid-area:actions;
    border-top:1px solid var(--lux-line) !important;
    padding:10px 14px !important;
    background:color-mix(in srgb,var(--lux-panel) 76%,var(--lux-paper)) !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody td:not(.thrs-employee-col-identity):not(.thrs-employee-col-actions):not(.thrs-table-empty-cell)::before {
    content:attr(data-label);
    display:block !important;
    margin:0 0 7px !important;
    font-size:10px !important;
    font-weight:850 !important;
    line-height:1.35 !important;
    letter-spacing:.07em !important;
    text-transform:uppercase !important;
    color:var(--lux-muted) !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-hire-date::before {
    margin:0 !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-identity-cell {gap:13px !important;}
  html[data-theme] .thrs-page-employees .thrs-employee-name {
    font-size:15px !important;
    line-height:1.35 !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-email {
    max-width:100% !important;
    white-space:normal !important;overflow-wrap:anywhere !important;
    font-size:12px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-department {font-size:13px !important;}
  html[data-theme] .thrs-page-employees .thrs-employee-work-cell {min-width:0;}
  html[data-theme] .thrs-page-employees .thrs-employee-employment-cell {
    display:flex !important;align-items:flex-start !important;
    flex-wrap:wrap !important;gap:6px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-actions {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 46px !important;
    width:100% !important;gap:9px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-actions .action-btn-edit {
    display:flex !important;justify-content:center !important;
    min-height:45px !important;
    font-size:13px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-more-btn {
    width:46px !important;height:45px !important;min-height:45px !important;
    justify-self:end !important;
  }
  /* Preserve real empty/search/error states without forcing them into a grid. */
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody tr:has(> .thrs-table-empty-cell) {
    display:block !important;width:100% !important;
    height:auto !important;min-height:0 !important;
    border:1px solid var(--lux-line) !important;
    border-radius:17px !important;
    background:var(--lux-panel) !important;
    overflow:hidden !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody .thrs-table-empty-cell {
    display:block !important;min-height:150px !important;
    padding:18px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table-card .pagination-bar {
    margin-top:13px !important;
    border:1px solid var(--lux-line) !important;
    background:var(--lux-panel) !important;
    border-radius:16px !important;
    padding:14px !important;
    min-height:0 !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    gap:10px 16px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table-card :is(.pagination-controls,.pagination-info,.pagination-size) {
    max-width:100% !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table-card .pagination-controls {
    flex-wrap:wrap;justify-content:center;
  }
  /* Form portal full screen: fixed header, body scroll, sticky footer. */
  html[data-theme] .thrs-modal-overlay.thrs-modal-overlay-top:has(> .employee-edit-modal-card) {
    padding:0 !important;
    align-items:stretch !important;
    justify-content:stretch !important;
    backdrop-filter:none !important;
  }
  html[data-theme] .thrs-modal-overlay.thrs-modal-overlay-top > .employee-edit-modal-card {
    width:100vw !important;max-width:100vw !important;
    height:100dvh !important;min-height:100dvh !important;
    max-height:100dvh !important;
    border-radius:0 !important;border:0 !important;
    margin:0 !important;
  }
  html[data-theme] .thrs-modal-overlay.thrs-modal-overlay-top > .employee-edit-modal-card > div:first-child {
    flex:0 0 auto !important;
    padding:calc(13px + env(safe-area-inset-top,0px)) 17px 14px !important;
    border-radius:0 !important;
  }
  html[data-theme] .employee-edit-modal-card .employee-edit-modal-body {
    flex:1 1 auto !important;
    min-height:0 !important;
    overflow-y:auto !important;overscroll-behavior:contain !important;
  }
  html[data-theme] .employee-edit-modal-card .employee-edit-form-pro {padding:13px !important;}
  html[data-theme] .employee-edit-modal-card .employee-edit-hero {padding:15px !important;min-height:0 !important;}
  html[data-theme] .employee-edit-modal-card .employee-form-section {padding:15px !important;}
  html[data-theme] .employee-edit-modal-card .employee-form-grid {
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
  }
  html[data-theme] .employee-edit-modal-card .employee-edit-footer {
    margin:0 -13px -13px !important;
    padding:14px 13px calc(14px + env(safe-area-inset-bottom,0px)) !important;
    position:sticky !important;
    bottom:0 !important;
  }
}
@media(min-width:821px) and (max-width:1420px) {
  html[data-theme] .thrs-page-employees .thrs-employee-central-hero {
    grid-template-columns:minmax(0,1fr) !important;
    gap:13px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-page-header-actions {
    max-width:800px !important;
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-btn {
    width:auto !important;min-width:150px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-filter-command-bar {
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  html[data-theme] .thrs-page-employees .thrs-filter-title,
  html[data-theme] .thrs-page-employees .thrs-clear-filter-btn {
    grid-column:1/-1 !important;
  }
}
@media(max-width:1050px) {
  html[data-theme] .thrs-page-employees .emp-stats-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:820px) {
  html[data-theme] .thrs-page-employees {
    gap:13px !important;
    padding-inline:clamp(8px,2vw,14px) !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-central-hero {
    min-height:0 !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:14px !important;
    padding:22px 17px !important;
    border-radius:19px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-page-header-copy {
    padding-inline-start:12px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-central-hero .page-title {
    font-size:clamp(28px,6.3vw,38px) !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-page-header-actions {
    width:100% !important;max-width:none !important;
    grid-template-columns:minmax(0,1fr) !important;
    padding:11px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-central-hero .thrs-btn {width:100% !important;}
  html[data-theme] .thrs-page-employees .thrs-filter-command-bar {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-filter-title,
  html[data-theme] .thrs-page-employees .thrs-clear-filter-btn {grid-column:1/-1 !important;}
  html[data-theme] .thrs-page-employees .emp-stat-card {
    min-height:130px !important;
    padding:15px !important;
    grid-template-columns:45px minmax(0,1fr) !important;
    gap:5px 9px !important;
  }
  html[data-theme] .thrs-page-employees .emp-stat-card .emp-stat-icon {
    width:43px !important;height:43px !important;
  }
  html[data-theme] .thrs-page-employees .emp-stat-card .emp-stat-value {
    font-size:clamp(29px,5.9vw,37px) !important;
  }
}
@media(max-width:500px) {
  html[data-theme] .thrs-page-employees .thrs-filter-command-bar {
    grid-template-columns:minmax(0,1fr) !important;
  }
  html[data-theme] .thrs-page-employees .thrs-filter-title,
  html[data-theme] .thrs-page-employees .thrs-clear-filter-btn {grid-column:auto !important;}
  html[data-theme] .thrs-page-employees .thrs-filter-command-bar .form-select {width:100% !important;}
}
@media(max-width:420px) {
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody tr:not(:has(> .thrs-table-empty-cell)) {
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:"identity" "work" "employment" "hire" "actions" !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-employment {
    border-top:1px solid var(--lux-line) !important;
  }
  html[data-theme] .thrs-page-employees .emp-stat-card {
    padding:12px !important;
  }
  html[data-theme] .thrs-page-employees .emp-stat-card .emp-stat-label {font-size:11px !important;}
}
@media(max-width:355px) {
  html[data-theme] .thrs-page-employees .emp-stats-grid {grid-template-columns:minmax(0,1fr) !important;}
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme] .thrs-page-employees :is(.emp-stat-card,.thrs-employee-table tbody tr),
  html[data-theme] .employee-edit-modal-card :is(button,input,select) {
    transition:none !important;animation:none !important;
  }
}


/* Mobile real Edit action — older THRS media CSS iconized this to 30px
   and hid its text. Restore a full-width, labeled 45px touch target. */
@media(max-width:820px) {
  html[data-theme="light"] .thrs-page-employees .thrs-employee-table tbody .thrs-employee-actions .action-btn-edit,
  html[data-theme="dark"] .thrs-page-employees .thrs-employee-table tbody .thrs-employee-actions .action-btn-edit {
    display:flex !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    height:45px !important;
    padding:9px 13px !important;
    align-items:center !important;
    justify-content:center !important;
    gap:9px !important;
    white-space:nowrap !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody .thrs-employee-actions .action-btn-edit span {
    display:inline !important;
    visibility:visible !important;
    opacity:1 !important;
    font-size:13px !important;
    font-weight:800 !important;
  }
}


/* Final mobile density: older .modern-table-wrap injected 16px padding
   and negative margins even after changing the table to cards. */
@media(max-width:820px) {
  html[data-theme="light"] .thrs-page-employees .thrs-employee-table-card,
  html[data-theme="dark"] .thrs-page-employees .thrs-employee-table-card {
    border:0 !important;
    padding:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }
  html[data-theme="light"] .thrs-page-employees .thrs-employee-table-wrap,
  html[data-theme="dark"] .thrs-page-employees .thrs-employee-table-wrap {
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    width:100% !important;
    max-width:100% !important;
    box-shadow:none !important;
    overflow:visible !important;
  }
}

@media(max-width:820px) {
  html[data-theme="light"] .thrs-page-employees .thrs-employee-table-card,
  html[data-theme="dark"] .thrs-page-employees .thrs-employee-table-card {
    border:0 !important;
    padding:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
  }
  html[data-theme="light"] .thrs-page-employees .thrs-employee-table-wrap,
  html[data-theme="dark"] .thrs-page-employees .thrs-employee-table-wrap {
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    width:100% !important;
    max-width:100% !important;
    box-shadow:none !important;
    overflow:visible !important;
  }
}
/* Arabic-first card metadata when THRS runs in RTL.
   Column headers remain in the semantic table for screen readers. */
@media(max-width:820px) {
  html[dir="rtl"][data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-work::before {
    content:"بيانات العمل" !important;
  }
  html[dir="rtl"][data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-employment::before {
    content:"الحالة الوظيفية" !important;
  }
  html[dir="rtl"][data-theme] .thrs-page-employees .thrs-employee-table tbody td.thrs-employee-col-hire-date::before {
    content:"تاريخ التعيين" !important;
  }
}
/* Tablet table retains scroll, but action controls must be touch-sized. */
@media(min-width:821px) and (max-width:1120px) {
  html[data-theme] .thrs-page-employees .thrs-employee-table {
    min-width:1050px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody .thrs-employee-actions .action-btn-edit {
    width:auto !important;min-width:74px !important;
    min-height:43px !important;
    padding:9px 10px !important;
    display:inline-flex !important;
    align-items:center !important;justify-content:center !important;
    gap:6px !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody .thrs-employee-actions .action-btn-edit span {
    display:inline !important;
  }
  html[data-theme] .thrs-page-employees .thrs-employee-table tbody .thrs-employee-more-btn {
    min-width:43px !important;width:43px !important;
    height:43px !important;min-height:43px !important;
  }
}
