/* HR attendance module surfaces */
.module-notice { max-width: 1480px; margin: 0 auto 18px; }
.module-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); align-items: start; gap: 18px; margin-bottom: 18px; }
.module-grid-balanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-card { overflow: hidden; }
.module-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 70px; padding: 17px 22px; border-bottom: 1px solid #e9edf2; background: #fff; }
.module-card-head h2 { margin: 3px 0 0; color: #192a3d; font-size: 17px; font-weight: 700; line-height: 1.35; text-align: left; }
.module-count { margin-left: 5px; color: #8390a0; font-size: 13px; font-weight: 600; }
.module-text-link, .module-link { color: var(--gradient-start); font-size: 11px; font-weight: 700; text-decoration: none; }
.module-link { display: inline-block; margin-top: 6px; }
.module-text-link:hover, .module-link:hover { text-decoration: underline; }
.module-form { padding: 20px 22px 0; }
.module-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.module-fields label { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #566579; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.module-fields label small { color: #8a97a6; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.module-fields input, .module-fields select, .module-fields textarea, .module-filters input, .module-filters select, .module-date-filter input { min-width: 0; width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid #d8e1e9; border-radius: 7px; outline: 0; background: #fff; color: #192a3d; font: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; }
.module-fields textarea { resize: vertical; }
.module-fields input:focus, .module-fields select:focus, .module-fields textarea:focus, .module-filters input:focus, .module-filters select:focus, .module-date-filter input:focus { border-color: var(--gradient-start); box-shadow: 0 0 0 3px color-mix(in srgb,var(--gradient-start) 12%,transparent); }
.module-fields .module-span, .module-field-heading { grid-column: 1 / -1; }
.module-field-heading { margin-top: 7px; padding-top: 15px; border-top: 1px solid #edf0f3; color: #263c55; font-size: 12px; font-weight: 700; }
.module-field-heading:first-child { margin-top: 0; padding-top: 0; border: 0; }
.module-actions { display: flex; justify-content: flex-end; margin: 20px -22px 0; padding: 14px 22px; border-top: 1px solid #e9edf2; background: #fafbfd; }
.module-card-body { padding: 20px 22px; }
.module-card-body p { margin: 0 0 16px; color: #66758a; font-size: 12px; line-height: 1.6; }
.module-card-body p:last-child { margin-bottom: 0; }
.module-feature-number { margin-bottom: 12px; color: #183a6d; font-size: 30px; font-weight: 750; line-height: 1.3; }
.module-feature-number span { color: #67778c; font-size: 12px; font-weight: 600; }
.module-table-card { margin-bottom: 18px; }
.module-table-card .table-scroll { padding: 0 12px 12px; }
.module-table { width: 100%; min-width: 740px; border-collapse: collapse; font-size: 11px; text-align: left; }
.module-table th { padding: 12px 10px; color: #67778c; background: #f8fafc; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.module-table td { padding: 13px 10px; border-bottom: 1px solid #edf0f3; color: #314359; vertical-align: top; }
.module-table tbody tr:hover { background: #fbfcfe; }
.module-table td strong, .module-table td small { display: block; }
.module-table td strong { color: #192a3d; font-weight: 700; }
.module-table td small { margin-top: 3px; color: #8b98a7; font-size: 10px; }
.module-table td small a { color: var(--gradient-start); }
.module-row-actions { white-space: nowrap; }
.module-row-actions a, .module-row-actions button { display: inline-block; margin: 0 8px 3px 0; padding: 0; border: 0; background: none; color: var(--gradient-start); font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.module-row-actions form { display: inline; }
.module-row-actions button:hover, .module-row-actions a:hover { text-decoration: underline; }
.module-empty { padding: 24px!important; color: #8794a2!important; text-align: center; }
.module-table-note { margin: 0; padding: 11px 22px 18px; color: #8794a2; font-size: 11px; line-height: 1.5; }
.module-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 13px 22px; border-bottom: 1px solid #edf0f3; background: #fbfcfe; }
.module-filters input, .module-filters select { width: auto; flex: 1 1 155px; }
.module-filters input[type=search] { flex-basis: 230px; }
.module-filters button, .module-date-filter button, .module-export-actions a, .module-export-actions button { min-height: 38px; padding: 8px 15px; border: 0; border-radius: 7px; background: var(--gradient-start); color: #fff; font: inherit; font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; }
.module-filters button:hover, .module-date-filter button:hover, .module-export-actions a:hover, .module-export-actions button:hover { filter: brightness(1.1); }
.module-status { display: inline-block; padding: 5px 8px; border-radius: 5px; background: #edf1f5; color: #5e7085; font-size: 10px; font-weight: 700; white-space: nowrap; }
.module-status.status-active, .module-status.status-present, .module-status.status-checked_in { background: #e5f4eb; color: #28744b; }
.module-status.status-late { background: #fff2dc; color: #a36a13; }
.module-status.status-inactive, .module-status.status-absent, .module-status.status-suspended { background: #fde9e9; color: #af4453; }
.module-status.status-leave { background: #e9efff; color: #4d68b4; }
.module-date-filter { display: flex; align-items: center; gap: 9px; width: max-content; max-width: 100%; margin: 0 0 18px; padding: 9px 12px; border: 1px solid #e1e6ec; border-radius: 8px; background: #fff; }
.module-date-filter label { color: #5e7085; font-size: 11px; font-weight: 700; }
.module-date-filter input { width: 145px; min-height: 35px; }
.module-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.module-stat { min-height: 126px; padding: 18px; }
.module-stat span, .module-stat small { display: block; }
.module-stat span { color: #68798c; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.module-stat strong { display: block; margin: 6px 0; color: #17345c; font-size: 28px; line-height: 1.15; }
.module-stat small { color: #8794a2; font-size: 10px; line-height: 1.4; }
.module-chart { display: flex; align-items: end; justify-content: space-around; gap: 9px; height: 245px; padding: 24px 22px 18px; }
.module-chart-column { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: end; height: 100%; color: #51647a; text-align: center; }
.module-chart-column strong { margin-bottom: 4px; font-size: 10px; }
.module-chart-bar { display: block; width: min(100%, 30px); min-height: 4px; border-radius: 4px 4px 0 0; background: var(--gradient-start); }
.module-chart-column small { margin-top: 7px; font-size: 10px; font-weight: 700; }
.module-chart-column em { display: block; margin-top: 2px; color: #9aa5b2; font-size: 9px; font-style: normal; font-weight: 400; }
.module-subhead { padding: 12px 22px; border-top: 1px solid #edf0f3; color: #66758a; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.module-department-list { padding: 0 22px 18px; }
.module-department-list div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; color: #566579; font-size: 11px; }
.module-department-list strong { color: #233e62; }
.module-report-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.module-report-filters select { flex-basis: 170px; }
.module-export-actions { display: flex; align-items: center; gap: 7px; }
.module-export-actions button { background: #edf2f7; color: var(--gradient-start); }
@media (max-width: 1050px) { .module-grid { grid-template-columns: 1fr; } .module-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .module-grid-balanced { grid-template-columns: 1fr; } .module-stat-grid, .module-report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .module-card-head { padding: 15px; } .module-form { padding: 16px 15px 0; } .module-actions { margin: 16px -15px 0; padding: 13px 15px; } .module-filters { padding: 13px 15px; } }
@media (max-width: 540px) { .module-fields { grid-template-columns: 1fr; } .module-fields .module-span, .module-field-heading { grid-column: 1; } .module-stat-grid { gap: 9px; } .module-stat { padding: 13px; min-height: 105px; } .module-stat strong { font-size: 24px; } .module-date-filter { width: 100%; flex-wrap: wrap; } .module-card-head { align-items: flex-start; flex-wrap: wrap; } .module-export-actions { width: 100%; } .module-export-actions a, .module-export-actions button { flex: 1; text-align: center; } }
@media print { .topbar, .sidebar, .sidebar-edge-toggle, .sidebar-scrim, .header-reveal-button, .module-filters, .module-date-filter, .module-export-actions, .module-form, .module-notice, .module-stat-grid { display: none!important; } .main-content { margin: 0!important; padding: 0!important; background: #fff!important; } .main-content::before { display: none!important; } .page-title { color: #172942!important; min-height: 0; } .page-title h1, .page-title p, .page-eyebrow { color: #172942!important; } .module-card { break-inside: avoid; box-shadow: none!important; } .module-table { min-width: 0; } }
/* Office geofence map */
.office-map-section { min-width: 0; }
.office-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #263c55; font-size: 12px; font-weight: 700; }
.office-map-toolbar span:last-child { flex: none; padding: 5px 9px; border-radius: 6px; background: color-mix(in srgb, var(--gradient-start) 10%, #fff); color: var(--gradient-start); font-size: 11px; }
.office-map-shell { position: relative; height: 320px; overflow: hidden; border: 1px solid #d8e1e9; border-radius: 8px; background: #e8eef2; }
.office-map-shell:fullscreen { height: 100%; width: 100%; border: 0; border-radius: 0; }
#office-map { width: 100%; height: 100%; }
.office-map-fullscreen { position: absolute; z-index: 1100; top: 10px; right: 10px; width: 35px; height: 35px; border: 1px solid #d8e1e9; border-radius: 6px; background: rgba(255,255,255,.96); box-shadow: 0 2px 8px #10243b2b; color: #263c55; font: inherit; font-size: 21px; cursor: pointer; }
.office-map-fullscreen:hover, .office-map-fullscreen:focus-visible { background: #fff; color: var(--gradient-start); }
.office-map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #566579; text-align: center; font-size: 12px; }
.office-map-fallback[hidden], .office-map-fullscreen[hidden] { display: none; }
.office-map-help { margin: 9px 0 0; color: #66758a; font-size: 11px; line-height: 1.5; }
.office-map-shell .leaflet-control-layers input { width: auto; min-width: 0; min-height: 0; padding: 0; margin: 0 5px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; appearance: auto; }
.office-map-shell .leaflet-control-layers { margin-right: 53px; font-family: Poppins, sans-serif; }
.office-map-shell .leaflet-control-layers label { display: block; color: #263c55; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.office-map-shell .leaflet-control-layers-selector { display: inline; }
@media (max-width: 540px) { .office-map-shell { height: 280px; } .office-map-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; } .office-map-shell .leaflet-control-layers { margin-right: 8px; margin-top: 52px; } }
.module-device-reset { padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--gradient-start) 30%, #fff); border-radius: 6px; background: color-mix(in srgb, var(--gradient-start) 8%, #fff); color: var(--gradient-start); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.module-device-reset:hover, .module-device-reset:focus-visible { background: color-mix(in srgb, var(--gradient-start) 15%, #fff); }

/* Employee directory and registration-style editor */
.employee-page-title { align-items: center; }
.employee-add-button, .employee-submit-button, .employee-filter-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 39px; padding: 9px 15px; border: 0; border-radius: 7px;
  color: #fff; background: var(--gradient-start); font: inherit; font-size: 12px; font-weight: 700;
  white-space: nowrap; cursor: pointer;
}
.employee-add-button { background: #ffffffec; color: var(--gradient-start); box-shadow: 0 4px 12px #061a3b24; text-decoration: none; }
.employee-add-button:hover, .employee-add-button:focus-visible { background: #fff; }
.employee-add-button .icon, .employee-submit-button .icon, .employee-filter-button .icon { width: 16px; height: 16px; }
.employee-directory { overflow: hidden; margin-bottom: 18px; }
.employee-directory-head { padding: 18px 21px 14px; }
.employee-directory-head h2 { margin: 3px 0 3px; color: #192a3d; font-size: 18px; font-weight: 700; }
.employee-directory-head p { margin: 0; color: #7b8a9e; font-size: 11px; }
.employee-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 20px; border-top: 1px solid #edf1f4; border-bottom: 1px solid #edf1f4; background: #fbfcfd; }
.employee-search-field, .employee-filter-select { display: flex; align-items: center; gap: 8px; height: 38px; min-width: 0; padding: 0 10px; border: 1px solid #dce4eb; border-radius: 7px; background: #fff; color: #8b9aab; }
.employee-search-field { flex: 2 1 255px; }
.employee-filter-select { flex: 1 1 155px; }
.employee-search-field:focus-within, .employee-filter-select:focus-within { border-color: var(--gradient-start); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gradient-start) 11%, transparent); }
.employee-search-field .icon, .employee-filter-select .icon { width: 16px; height: 16px; flex: none; }
.employee-search-field input, .employee-filter-select select { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #263c55; font: inherit; font-size: 11px; }
.employee-search-field input::placeholder { color: #9aa7b5; }
.employee-filter-button { min-height: 38px; font-size: 11px; }
.employee-clear-filters { padding: 8px 6px; color: #6d7b8c; font-size: 11px; font-weight: 700; text-decoration: none; }
.employee-clear-filters:hover { color: var(--gradient-start); }
.employee-table-wrap { width: 100%; overflow-x: auto; }
.employee-table { width: 100%; min-width: 930px; border-collapse: collapse; text-align: left; }
.employee-table th { padding: 12px 13px; color: #fff; background: color-mix(in srgb, var(--gradient-start) 84%, #29445e); border-bottom: 1px solid #183a5d; font-size: 11px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase; white-space: nowrap; }
.employee-table td { padding: 12px 13px; border-top: 1px solid #e8eef3; color: #374a61; font-size: 12px; font-weight: 400; vertical-align: middle; }
.employee-table tbody tr:nth-child(even) { background: #f8fafc; }
.employee-table tbody tr:hover { background: color-mix(in srgb, var(--gradient-start) 6%, #fff); }
.employee-table th:first-child, .employee-table td:first-child { padding-left: 20px; }
.employee-table th:last-child, .employee-table td:last-child { padding-right: 20px; }
.employee-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.employee-avatar { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 9px; background: color-mix(in srgb, var(--gradient-start) 10%, #fff); color: var(--gradient-start); font-size: 12px; font-weight: 400; }
.employee-person-copy { min-width: 0; }
.employee-person-copy strong { display: block; color: #20344e; font-size: 12px; font-weight: 400; white-space: nowrap; }
.employee-name-link { display: block; color: #20344e; font-size: 12px; font-weight: 400; white-space: nowrap; }
.employee-name-link:hover, .employee-name-link:focus-visible { color: var(--gradient-start); text-decoration: underline; }
.employee-person-copy small { display: block; margin-top: 2px; color: #8392a5; font-size: 10px; white-space: nowrap; }
.employee-cell-primary { display: block; color: #2a405a; font-size: 12px; font-weight: 400; }
.employee-device-state .icon { width: 13px; height: 13px; flex: none; }
.employee-table .module-status { font-size: 11px; font-weight: 400; }
.employee-table .module-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.employee-device-state { display: inline-flex; align-items: center; gap: 5px; color: #8b6b4c; font-size: 11px; font-weight: 400; }
.employee-device-state.is-paired { color: #28744b; }
.employee-actions-heading { text-align: right; }
.employee-action-list { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.employee-action-list form { margin: 0; }
.employee-icon-action { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid #e2e9ef; border-radius: 7px; background: #fff; color: #617690; cursor: pointer; }
.employee-icon-action .icon { width: 15px; height: 15px; }
.employee-icon-action:hover, .employee-icon-action:focus-visible { border-color: color-mix(in srgb, var(--gradient-start) 32%, #fff); background: color-mix(in srgb, var(--gradient-start) 8%, #fff); color: var(--gradient-start); }
.employee-icon-action.is-caution:hover, .employee-icon-action.is-caution:focus-visible { border-color: #e9c5b9; background: #fff1ed; color: #a65a43; }
.employee-empty { padding: 36px 20px!important; text-align: center; color: #8290a1; }
.employee-empty .icon { display: block; width: 26px; height: 26px; margin: 0 auto 8px; color: #9eafbd; }
.employee-empty strong, .employee-empty span { display: block; }
.employee-empty strong { color: #334963; font-size: 13px; font-weight: 400; }
.employee-empty span { margin-top: 3px; font-size: 11px; }
.employee-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 47px; padding: 9px 20px; border-top: 1px solid #edf1f4; color: #7d8b9b; font-size: 10px; }
.employee-pagination { display: flex; align-items: center; gap: 8px; }
.employee-pagination a { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #e2e9ef; border-radius: 6px; color: var(--gradient-start); }
.employee-pagination a:hover { background: #f1f5fa; }
.employee-pagination .icon { width: 14px; height: 14px; }

body.employee-modal-open { overflow: hidden; }
.main-content > .employee-dialog { position: fixed; inset: auto; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); z-index: 100; }
.employee-dialog { width: min(760px, calc(100vw - 28px)); max-height: min(92vh, 850px); padding: 0; border: 1px solid #dfe6ed; border-radius: 11px; background: #fff; box-shadow: 0 25px 70px #1027423f; overflow-y: auto; color: #1d2d40; }
.employee-dialog::backdrop { background: #071b35a8; backdrop-filter: blur(3px); }
.employee-dialog-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 31px; align-items: center; gap: 12px; padding: 19px 23px; background: color-mix(in srgb, var(--gradient-start) 7%, #fff); border-bottom: 1px solid #e5ebf1; }
.employee-dialog-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--gradient-start); }
.employee-dialog-mark .icon { width: 21px; height: 21px; }
.employee-dialog-head h2 { margin: 2px 0 2px; color: #192d45; font-size: 20px; line-height: 1.25; font-weight: 750; }
.employee-dialog-head p { margin: 0; color: #76879b; font-size: 11px; line-height: 1.4; }
.employee-dialog-close { display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid #dce5ec; border-radius: 7px; background: #fff; color: #65778b; cursor: pointer; }
.employee-dialog-close:hover { color: #ac4e5a; background: #fff3f4; }
.employee-dialog-close .icon { width: 15px; height: 15px; }
.employee-dialog-alert { display: flex; gap: 10px; margin: 15px 22px 0; padding: 11px 13px; border: 1px solid #efd1d6; border-radius: 7px; background: #fff3f4; color: #9d4352; font-size: 11px; }
.employee-dialog-alert[hidden] { display: none; }
.employee-dialog-alert .icon { width: 17px; height: 17px; flex: none; }
.employee-dialog-alert strong { display: block; margin-bottom: 3px; }
.employee-dialog-alert ul { margin: 0; padding-left: 16px; }
.employee-dialog-body { padding: 17px 22px 7px; }
.employee-form-section { display: flex; align-items: center; gap: 8px; margin: 14px 0 11px; padding-bottom: 8px; border-bottom: 1px solid #e8eef2; color: var(--gradient-start); font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.employee-form-section:first-child { margin-top: 0; }
.employee-form-section .icon { width: 15px; height: 15px; }
.employee-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.employee-form-grid label { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #536579; font-size: 11px; font-weight: 700; }
.employee-form-grid label small { color: #8a98a8; font-size: 10px; font-weight: 400; }
.employee-form-grid input, .employee-form-grid select { width: 100%; min-width: 0; height: 39px; padding: 8px 10px; border: 1px solid #dce4eb; border-radius: 7px; outline: 0; background: #fff; color: #20344e; font: inherit; font-size: 12px; font-weight: 500; }
.employee-form-grid input::placeholder { color: #a2adba; }
.employee-form-grid input:focus, .employee-form-grid select:focus { border-color: var(--gradient-start); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gradient-start) 13%, transparent); }
.employee-field-wide { grid-column: 1 / -1; }
.employee-dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 22px; border-top: 1px solid #e8eef2; background: #fbfcfd; }
.employee-dialog-footer > span { display: flex; align-items: center; gap: 6px; max-width: 300px; color: #8b99a9; font-size: 10px; line-height: 1.4; }
.employee-dialog-footer > span .icon { width: 15px; height: 15px; flex: none; }
.employee-dialog-footer > div { display: flex; gap: 8px; flex: none; }
.employee-secondary-button { min-height: 39px; padding: 8px 13px; border: 1px solid #d9e2ea; border-radius: 7px; background: #fff; color: #53667d; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.employee-secondary-button:hover { background: #f2f5f8; }
.employee-submit-button { min-height: 39px; font-size: 11px; }
@media (max-width: 760px) {
  .employee-page-title { align-items: flex-start; }
  .employee-table { min-width: 0; }
  .employee-table thead { display: none; }
  .employee-table tbody { display: grid; gap: 10px; padding: 10px; background: #f7f9fb; }
  .employee-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px 0; border: 1px solid #e3eaf0; border-radius: 8px; background: #fff; }
  .employee-table tbody tr:nth-child(even), .employee-table tbody tr:hover { background: #fff; }
  .employee-table td { display: block; min-width: 0; padding: 8px 13px; border: 0; }
  .employee-table td:first-child, .employee-table td:last-child { grid-column: 1 / -1; padding: 10px 13px; }
  .employee-table td:first-child { border-bottom: 1px solid #edf1f4; }
  .employee-table td:last-child { border-top: 1px solid #edf1f4; }
  .employee-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #8b9aac; font-size: 10px; font-weight: 400; letter-spacing: .4px; text-transform: uppercase; }
  .employee-table td:first-child::before, .employee-table td:last-child::before { display: none; }
  .employee-action-list { justify-content: flex-start; }
  .employee-table td.employee-empty { grid-column: 1 / -1; border: 0; }
}
@media (max-width: 550px) {
  .employee-page-title { gap: 12px; }
  .employee-add-button { width: 100%; }
  .employee-directory-head { padding: 15px; }
  .employee-filters { padding: 11px; }
  .employee-search-field { flex-basis: 100%; }
  .employee-filter-select { flex-basis: calc(50% - 5px); }
  .employee-filter-button { flex: 1; }
  .employee-dialog { width: calc(100vw - 16px); max-height: 94vh; }
  .employee-dialog-head { grid-template-columns: 37px minmax(0, 1fr) 30px; gap: 9px; padding: 15px; }
  .employee-dialog-mark { width: 36px; height: 36px; }
  .employee-dialog-head h2 { font-size: 17px; }
  .employee-dialog-head p { display: none; }
  .employee-dialog-body { padding: 12px 15px 4px; }
  .employee-form-grid { grid-template-columns: 1fr; gap: 11px; }
  .employee-field-wide { grid-column: 1; }
  .employee-dialog-footer { align-items: stretch; flex-direction: column; padding: 12px 15px; }
  .employee-dialog-footer > span { max-width: none; }
  .employee-dialog-footer > div { justify-content: flex-end; }
}

/* Employee profile and self-service portal */
.employee-page { background: #f3f5f7; }
.employee-page .top-logo { width: 78px; }
.employee-main { width: min(1220px, 100%); min-height: calc(100vh - var(--header-height)); margin: 0 auto; padding: 30px 24px 48px; }
.employee-top-nav { display: flex; align-items: center; gap: 8px; padding-right: 17px; color: #fff; font-size: 11px; font-weight: 650; }
.employee-top-nav a, .employee-top-nav button { display: inline-flex; align-items: center; min-height: 31px; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; white-space: nowrap; }
.employee-top-nav a:hover, .employee-top-nav button:hover, .employee-top-nav a:focus-visible, .employee-top-nav button:focus-visible { background: #ffffff24; }
.employee-top-nav form { margin: 0; }
.employee-top-identity { display: inline-flex; align-items: center; gap: 7px; margin-left: 5px; padding-left: 11px; border-left: 1px solid #ffffff45; white-space: nowrap; }
.employee-top-identity .profile-avatar { flex: none; }
.employee-portal-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.employee-portal-heading .page-eyebrow { color: var(--gradient-start); }
.employee-portal-heading h1 { margin: 5px 0 4px; color: #1d3048; font-size: clamp(23px, 2.4vw, 30px); line-height: 1.2; font-weight: 750; }
.employee-portal-heading p { margin: 0; color: #77879b; font-size: 12px; }
.employee-portal-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #cde8d6; border-radius: 6px; background: #effaf2; color: #277447; font-size: 11px; font-weight: 700; }
.employee-portal-status span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.employee-portal-notice { margin-bottom: 16px; }
.employee-portal-summary { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.employee-portal-profile { display: flex; align-items: center; gap: 15px; padding: 18px; }
.employee-portal-avatar, .employee-detail-avatar { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 10px; background: color-mix(in srgb, var(--gradient-start) 13%, #fff); color: var(--gradient-start); font-size: 19px; font-weight: 800; }
.employee-portal-profile h2 { margin: 3px 0 2px; color: #1d3048; font-size: 17px; font-weight: 750; text-align: left; }
.employee-portal-profile p { margin: 0; color: #718299; font-size: 11px; }
.employee-portal-code { display: inline-block; margin-top: 8px; color: #8a9aac; font-size: 10px; font-weight: 650; }
.employee-portal-stat { display: flex; align-items: center; gap: 12px; padding: 16px; }
.employee-portal-stat small { display: block; color: #8392a5; font-size: 10px; font-weight: 650; }
.employee-portal-stat strong { display: block; margin-top: 4px; color: #1e344f; font-size: 23px; line-height: 1.2; }
.employee-detail-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: color-mix(in srgb, var(--gradient-start) 9%, #fff); color: var(--gradient-start); }
.employee-detail-icon .icon { width: 18px; height: 18px; }
.employee-portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.employee-portal-card { overflow: hidden; }
.employee-portal-card-head { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 15px 19px; border-bottom: 1px solid #e8edf2; }
.employee-portal-card-head h2 { margin: 0 0 2px; color: #20354e; font-size: 15px; font-weight: 750; line-height: 1.3; text-align: left; }
.employee-portal-card-head p { margin: 0; color: #8a99a9; font-size: 10px; }
.employee-detail-list { margin: 0; padding: 2px 19px 7px; }
.employee-detail-list > div { display: grid; grid-template-columns: minmax(110px, 36%) minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef1f4; }
.employee-detail-list > div:last-child { border-bottom: 0; }
.employee-detail-list dt { color: #8795a5; font-size: 11px; }
.employee-detail-list dd { min-width: 0; margin: 0; color: #243a54; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; }
.employee-detail-list dd a { color: var(--gradient-start); }
.employee-detail-list dd a:hover { text-decoration: underline; }
.employee-portal-table-wrap { width: 100%; overflow-x: auto; }
.employee-portal-table { width: 100%; border-collapse: collapse; text-align: left; }
.employee-portal-table th { padding: 11px 19px; color: #8392a3; background: #fbfcfd; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .35px; }
.employee-portal-table td { padding: 12px 19px; border-top: 1px solid #edf1f4; color: #354a62; font-size: 11px; }
.employee-portal-table tbody tr:hover { background: #fbfcfe; }
.employee-portal-table .employee-portal-empty { padding: 27px 19px; color: #8998a8; text-align: center; }
.employee-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -5px 0 15px; }
.employee-detail-toolbar a, .employee-back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gradient-start); font-size: 11px; font-weight: 700; }
.employee-detail-toolbar .icon, .employee-back-link .icon { width: 14px; height: 14px; }
.employee-detail-toolbar a:hover, .employee-back-link:hover { text-decoration: underline; }
.employee-detail-toolbar a { padding: 7px 10px; border: 1px solid #ffffff5c; border-radius: 6px; background: #102b52b8; color: #fff; }
.employee-detail-toolbar a:hover, .employee-detail-toolbar a:focus-visible { background: #102b52e6; color: #fff; }
.employee-detail-hero { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; padding: 17px 20px; }
.employee-detail-hero h2 { margin: 3px 0 2px; color: #1d3048; font-size: 19px; font-weight: 750; text-align: left; }
.employee-detail-hero p { margin: 0; color: #75869a; font-size: 11px; }
.employee-detail-code { margin-left: auto; padding: 6px 9px; border-radius: 6px; background: #f1f5f8; color: #687b90; font-size: 10px; font-weight: 700; white-space: nowrap; }
.employee-password-card { max-width: 570px; }
.employee-password-alert { margin: 15px 19px 0; }
.employee-password-form { display: grid; padding: 18px 19px 20px; }
.employee-password-form label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #52667d; font-size: 11px; font-weight: 700; }
.employee-password-form label small { color: #8c9aaa; font-weight: 400; }
.employee-password-form input { width: 100%; height: 40px; margin-bottom: 15px; padding: 8px 11px; border: 1px solid #dce4eb; border-radius: 7px; outline: 0; background: #fff; color: #20344e; font: inherit; font-size: 12px; }
.employee-password-form input:focus { border-color: var(--gradient-start); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gradient-start) 13%, transparent); }
.employee-password-form button { justify-self: start; }
@media (max-width: 900px) {
  .employee-portal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-portal-profile { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .employee-portal-grid { grid-template-columns: 1fr; }
  .employee-top-identity > span:last-child { display: none; }
  .employee-main { padding: 22px 15px 36px; }
}
@media (max-width: 540px) {
  .employee-page .top-logo { width: 44px; }
  .employee-page .top-logo-image { max-width: 34px; }
  .employee-page .top-brand { max-width: 100px; margin-left: 0; font-size: 13px; }
  .employee-top-nav { gap: 1px; padding-right: 7px; font-size: 10px; }
  .employee-top-nav a, .employee-top-nav button { padding: 5px; }
  .employee-top-identity { display: none; }
  .employee-portal-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .employee-portal-summary { gap: 9px; }
  .employee-portal-stat { align-items: flex-start; gap: 8px; padding: 12px; }
  .employee-portal-stat .employee-detail-icon { width: 29px; height: 29px; }
  .employee-portal-stat strong { font-size: 19px; }
  .employee-portal-card-head { padding: 13px 15px; }
  .employee-detail-list { padding: 2px 15px 7px; }
  .employee-detail-list > div { grid-template-columns: 1fr; gap: 3px; }
  .employee-portal-table thead { display: none; }
  .employee-portal-table tbody { display: grid; gap: 8px; padding: 10px; }
  .employee-portal-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; border: 1px solid #e5ebf0; border-radius: 7px; }
  .employee-portal-table td { border: 0; padding: 6px 8px; }
  .employee-portal-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: #8c9baa; font-size: 9px; font-weight: 750; text-transform: uppercase; }
  .employee-portal-table .employee-portal-empty { grid-column: 1 / -1; }
  .employee-detail-hero { flex-wrap: wrap; padding: 15px; }
  .employee-detail-code { margin-left: 0; }
}

/* HR employee detail, aligned with the employee directory */
.employee-profile-panel { margin-bottom: 17px; }
.employee-profile-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #e8eef3; background: #fbfcfe; }
.employee-profile-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.employee-profile-avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 9px; background: color-mix(in srgb, var(--gradient-start) 11%, #fff); color: var(--gradient-start); font-size: 15px; font-weight: 500; }
.employee-profile-identity h2 { margin: 2px 0 1px; color: #20344e; font-size: 17px; font-weight: 650; text-align: left; }
.employee-profile-identity p { margin: 0; color: #8291a3; font-size: 11px; }
.employee-profile-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.employee-profile-actions .module-status { margin-right: 5px; font-weight: 400; }
.employee-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.employee-profile-section { min-width: 0; padding: 18px 21px 12px; }
.employee-profile-section + .employee-profile-section { border-left: 1px solid #e8eef3; }
.employee-profile-section-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e8eef3; }
.employee-profile-section-head h3 { margin: 0 0 2px; color: #20344e; font-size: 13px; font-weight: 700; }
.employee-profile-section-head p { margin: 0; color: #8a99a9; font-size: 10px; }
.employee-profile-fields { margin: 0; }
.employee-profile-fields > div { display: grid; grid-template-columns: minmax(110px, 39%) minmax(0, 1fr); gap: 12px; padding: 11px 1px; border-bottom: 1px solid #edf1f4; }
.employee-profile-fields > div:last-child { border-bottom: 0; }
.employee-profile-fields dt { color: #8a98a8; font-size: 11px; font-weight: 400; }
.employee-profile-fields dd { min-width: 0; margin: 0; color: #30445d; font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
.employee-profile-fields dd a { color: var(--gradient-start); }
.employee-profile-fields dd a:hover { text-decoration: underline; }
.employee-history-table { min-width: 620px; }
@media (max-width: 900px) {
  .employee-profile-grid { grid-template-columns: 1fr; }
  .employee-profile-section + .employee-profile-section { border-left: 0; border-top: 1px solid #e8eef3; }
}
@media (max-width: 760px) {
  .employee-profile-head { align-items: flex-start; flex-wrap: wrap; }
  .employee-profile-actions { margin-left: 59px; }
  .employee-history-table { min-width: 0; }
}
@media (max-width: 550px) {
  .employee-profile-head { padding: 15px; }
  .employee-profile-identity h2 { font-size: 15px; }
  .employee-profile-actions { margin-left: 0; }
  .employee-profile-section { padding: 15px; }
  .employee-profile-fields > div { grid-template-columns: 1fr; gap: 3px; }
}

/* Department directory and dialogs */
.department-directory .employee-search-field { flex: 1 1 300px; }
.department-table { min-width: 650px; }
.department-avatar .icon { width: 17px; height: 17px; }
.department-description { display: block; max-width: 690px; color: #50647a; line-height: 1.5; overflow-wrap: anywhere; }
.department-count { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; min-height: 25px; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--gradient-start) 8%, #fff); color: var(--gradient-start); font-size: 11px; font-weight: 500; }
.department-action-disabled { opacity: .4; cursor: not-allowed; }
.department-dialog { width: min(600px, calc(100vw - 28px)); }
.department-dialog .employee-form-grid { grid-template-columns: 1fr; }
.department-dialog .employee-form-grid textarea { width: 100%; min-width: 0; min-height: 106px; padding: 10px; border: 1px solid #dce4eb; border-radius: 7px; outline: 0; background: #fff; color: #20344e; font: inherit; font-size: 12px; font-weight: 500; resize: vertical; }
.department-dialog .employee-form-grid textarea:focus { border-color: var(--gradient-start); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gradient-start) 13%, transparent); }
.department-delete-dialog { width: min(450px, calc(100vw - 28px)); }
.department-delete-mark { background: #bb4e57; }
.department-delete-body { padding: 20px 22px; color: #536579; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.department-delete-body strong { color: #23384f; }
.department-delete-button { background: #b94751; }
.department-delete-button:hover, .department-delete-button:focus-visible { background: #a13a44; }
@media (max-width: 760px) {
  .department-table { min-width: 0; }
}
@media (max-width: 550px) {
  .department-dialog, .department-delete-dialog { width: calc(100vw - 16px); }
  .department-dialog .employee-dialog-footer, .department-delete-dialog .employee-dialog-footer { align-items: stretch; flex-direction: column; }
  .department-dialog .employee-dialog-footer > div, .department-delete-dialog .employee-dialog-footer > div { width: 100%; }
  .department-dialog .employee-dialog-footer button, .department-delete-dialog .employee-dialog-footer button { flex: 1; }
}