@font-face {
  font-family: Inter;
  src: url("/hris/assets/vendor/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 750;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/hris/assets/vendor/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 750;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #fafafa;
  --surface: #fff;
  --ink: #24211c;
  --accent: #100d0c;
  --muted: #68645b;
  --line: #e3e1db;
  --gold: #ca9c35;
  --gold-soft: #f5edd8;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: Inter, system-ui, sans-serif;
  --heading: "Bricolage Grotesque", Inter, system-ui, sans-serif;
}
body.tkd-ui {
  --tkui-bg: var(--paper);
  --tkui-surface: var(--surface);
  --tkui-ink: var(--ink);
  --tkui-muted: var(--muted);
  --tkui-line: #d8d5ce;
  --tkui-accent: var(--accent);
  --tkui-on-accent: #fff;
  --tkui-soft: #f2f1ee;
  --tkui-radius: .5rem;
  --tkui-font: var(--sans);
  margin: 0;
  font-size: 14px;
  min-width: 280px;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3, p, dl, dd) { margin: 0; }
a { text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; z-index: 12; left: 1rem; top: 1rem; padding: .65rem; background: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.startup { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: .8rem; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; flex: none; }
.brand-type { font: 720 1.03rem/1 var(--sans); letter-spacing: -.065em; white-space: nowrap; }
.brand-type span { font-weight: 440; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.meta { font-size: .875rem; }
.subtle, .meta, .zero { color: var(--muted); }
.tkui-icon { width: 1.125rem; height: 1.125rem; }
.tkui-button svg { width: 1.05rem; height: 1.05rem; }
.tkui-button { min-height: 38px; font-size: .8125rem; }
.tkui-button--outline { background: #fff; }
.hr-btn-sm { min-height: 32px; padding: .35rem .65rem; font-size: .78rem; }
.form-issue { color: #98323a; overflow-wrap: anywhere; }
.tkd-ui .tkui-label { color: var(--ink); font-weight: 600; }
.tkd-ui :is(.tkui-input,.tkui-select,.tkui-textarea) { color: var(--ink); background-color: #fff; border-color: #cdd0cc; border-radius: 8px; }
.tkd-ui .tkui-select {
  appearance: none;
  padding-inline-end: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235e6265' stroke-width='1.6' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  background-size: 1rem;
}

.workspace { min-height: 100svh; display: grid; grid-template-columns: clamp(12rem, 17vw, 14.25rem) minmax(0, 1fr); }
.workspace-main { min-width: 0; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; min-height: 0; padding: 0 .75rem; border-right: 1px solid var(--line); background: #fff; z-index: 4; }
.sidebar-brand { display: flex; align-items: center; min-height: 61px; padding: .5rem .6rem; }
.sidebar-nav { display: grid; align-content: start; gap: .16rem; }
.sidebar > .sidebar-nav { overflow-y: auto; min-height: 0; padding-bottom: .7rem; }
.workspace-label { margin: 1.05rem 0 .38rem; padding: 0 .7rem; color: #625e57; font-size: .69rem; font-weight: 620; letter-spacing: .015em; }
.workspace-label:first-child { margin-top: .85rem; }
.tkd-ui .sidebar-nav .tkui-nav-link { min-height: 40px; gap: .68rem; padding: .54rem .72rem; margin: 0; border-radius: 7px; font-size: .815rem; font-weight: 500; color: #4b4740; }
.tkd-ui .sidebar-nav .tkui-nav-link svg { color: #6b716f; width: 16px; height: 16px; }
.tkd-ui .sidebar-nav .tkui-nav-link[aria-current] { color: var(--accent); background: #f1f0ed; font-weight: 650; }
.tkd-ui .sidebar-nav .tkui-nav-link[aria-current] svg { color: var(--ink); }
.tkd-ui .sidebar-nav .tkui-nav-link[aria-current]:focus-visible { outline-color: var(--gold); }
.topbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .9rem; min-height: 61px; padding: .55rem clamp(1.15rem,2.6vw,2.5rem); background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb, .toolbar { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.breadcrumb { font-size: .765rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb > span { color: var(--muted); }
.breadcrumb strong { font-weight: 580; }
.toolbar .tkui-button { min-height: 35px; padding: .4rem .65rem; font-size: .77rem; white-space: nowrap; }
.top-menu { position: relative; }
.top-menu > summary { cursor: pointer; list-style: none; }
.top-menu > summary::-webkit-details-marker { display: none; }
.top-menu-body { position: absolute; right: 0; top: calc(100% + .55rem); z-index: 4; display: grid; gap: .25rem; width: max-content; min-width: 11rem; max-width: 88vw; padding: .4rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 40px #2026291b; }
.top-menu-body .tkui-button { min-height: 40px; justify-content: flex-start; font-weight: 540; width: 100%; }
.top-menu-body .tkui-button:hover { background: var(--tkui-soft); }
.language-switch { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.language-switch button { min-width: 2.3rem; min-height: 28px; padding: .2rem .43rem; background: transparent; border: 1px solid transparent; border-radius: 6px; color: #68645b; font: 600 .77rem/1 var(--sans); cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--accent); background: #f2f1ee; border-color: #e2ded7; }
.language-switch button:hover:not([aria-pressed="true"]) { background: #e8e9e5; }
.avatar { display: grid; place-items: center; flex: none; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: #eeeadc; color: #655019; font: 660 .77rem/1 var(--sans); }
.account-menu { margin-top: auto; padding-block: .75rem; border-top: 1px solid var(--line); }
.account-menu > summary { min-height: 48px; display: flex; align-items: center; gap: .25rem; padding: .36rem; border-radius: 7px; }
.account-menu > summary:hover { background: var(--paper); }
.account-menu > summary > svg { margin-left: auto; width: 1rem; }
.account-menu .top-menu-body { bottom: calc(100% - .4rem); top: auto; left: 0; right: 0; width: auto; }
.identity { min-width: 0; display: flex; align-items: center; gap: .6rem; }
.identity-copy { min-width: 0; display: grid; }
.identity-copy strong { font-size: .85rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-copy small { font-size: .76rem; color: var(--muted); }
.module-label { padding-top: .95rem; border-top: 1px solid var(--line); }
.sidebar-nav > .tkui-nav-link[aria-current], .nav-module.is-current > summary { box-shadow: inset 3px 0 #bd943c; }
.nav-module { min-width: 0; }
.nav-module > summary { display: flex; align-items: center; gap: .65rem; min-height: 41px; padding: .55rem .72rem; color: #4b4740; font-size: .815rem; font-weight: 520; border-radius: 8px; list-style: none; cursor: pointer; }
.nav-module > summary::-webkit-details-marker { display: none; }
.nav-module > summary > svg { width: 16px; height: 16px; flex: none; color: #6b716f; }
.nav-module > summary > svg:last-child { margin-inline-start: auto; width: 12px; height: 12px; transform: rotate(-90deg); }
.nav-module[open] > summary > svg:last-child { transform: none; }
.nav-module[open] > summary .module-count { display: none; }
.nav-module.is-current > summary { background: #f2f1ee; font-weight: 650; color: var(--ink); }
.nav-module > summary:hover { background: #f5f4f1; }
.module-pages { display: grid; gap: 2px; margin: .23rem .27rem .55rem 1.34rem; padding-inline-start: .55rem; border-inline-start: 1px solid var(--line); }
.tkd-ui .module-pages .tkui-nav-link { min-height: 33px; min-block-size: 33px; gap: .5rem; font-size: .76rem; padding: .38rem .48rem; font-weight: 450; }
.tkd-ui .module-pages .tkui-nav-link svg { width: 14px; height: 14px; }
.breadcrumb a { display: inline-flex; padding: .25rem; }
.breadcrumb a svg { width: 15px; height: 15px; }
.crumb-chevron { flex: none; width: 5px; height: 5px; border-top: 1px solid #a8a398; border-right: 1px solid #a8a398; transform: rotate(45deg); }
.language-globe { margin-inline: .4rem .12rem; color: var(--muted); }
.language-code { display:none; }
.toolbar .utility-search { border: 1px solid var(--line); }
.toolbar .create-menu > summary { border-color: #eeede9; background: #f2f1ee; }
.page-actions > .tkui-button:not(.tkui-button--outline):not(.tkui-button--ghost) { box-shadow: 0 2px 4px #201a1419; }
.mobile-head { display: none; }
.content { width: 100%; max-width: 1460px; margin-inline: auto; padding: clamp(1.4rem, 2.3vw, 2.2rem) clamp(1.1rem,2.6vw,2.5rem) 3.5rem; min-width: 0; }
.content:focus { outline: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.45rem; }
.page-heading h1 { font: 730 clamp(2rem,3.4vw,2.8rem)/1.07 var(--heading); letter-spacing: -.052em; text-wrap: balance; }
.page-heading p { margin-top: .38rem; font-size: .865rem; color: var(--muted); line-height: 1.5; }
.heading-context { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .86rem; margin-bottom: .45rem; }
.heading-context svg { width: 1rem; height: 1rem; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.section-heading { margin: 1.55rem 0 .8rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.section-heading h2 { font: 680 1.45rem/1.15 var(--heading); letter-spacing: -.035em; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem; align-items: start; }

.panel.tkui-card { display: block; max-inline-size: none; min-inline-size: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 2px 5px #20262904; overflow: hidden; }
.panel-spaced { margin-top: 1.1rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem 1rem; padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font: 680 1.22rem/1.16 var(--heading); letter-spacing: -.035em; }
.panel-head p { margin-top: .27rem; font-size: .875rem; color: var(--muted); }
.panel-body { padding: 1.15rem 1.25rem; }
.panel .tkui-table-scroll { max-inline-size: none; border: 0; border-radius: 0; }
.panel .tkui-table { font-size: .9rem; }
.panel .tkui-table :is(th, td) { padding: .84rem 1rem; border-color: var(--line); }
.panel .tkui-table :is(thead, th) { background: #f6f7f4; }
.panel .tkui-table th { font-size: .81rem; font-weight: 620; color: #505655; }
.panel .tkui-table td:first-child { font-weight: 590; }
.panel .tkui-table tbody tr:last-child td { border-bottom: 0; }
.table-context { display: block; margin-top: .1rem; font-size: .815rem; font-weight: 400; color: var(--muted); }
.cell-wrap { min-width: 9rem; white-space: normal; overflow-wrap: anywhere; }
.pair { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.pair > :last-child { min-width: 0; }
.empty.tkui-empty { display: grid; place-items: center; max-inline-size: none; gap: .35rem; margin: 0; padding: 2rem 1rem; border: 0; background: transparent; text-align: center; }
.empty .tkui-empty__title { font-size: 1rem; }
.empty .tkui-empty__body { font-size: .9rem; margin: 0; }
.empty > svg { width: 40px; height: 40px; padding: .58rem; margin-bottom: .3rem; border-radius: 12px; color: #836322; background: var(--gold-soft); }
.tkd-ui .status { white-space: nowrap; font-size: .79rem; min-height: 1.65rem; font-weight: 570; }
.tkd-ui .status[data-tone="good"] { background: #edf5ef; border-color: #d9e8dd; color: #2b593e; }
.tkd-ui .status[data-tone="attention"] { background: #fbf1d8; border-color: #eadbb2; color: #785619; }
.tkd-ui .status[data-tone="negative"] { background: #faeeee; border-color: #ecd4d4; color: #8a393c; }
.search { min-inline-size: 0; width: min(100%,20rem); }
.search .tkui-input { min-height: 39px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.full { grid-column: 1/-1; }
.form-grid :is(input,select,textarea) { min-width: 0; }
.form-grid textarea { resize: vertical; min-height: 5rem; }
#dialog { width: min(100% - 1.5rem,37rem); max-height: calc(100svh - 1.5rem); border-radius: 17px; }
.app-dialog .tkui-dialog-body { padding: 1.4rem; }
.app-dialog .tkui-dialog-body h2 { font: 680 1.65rem/1.15 var(--heading); letter-spacing: -.035em; }
.app-dialog .tkui-dialog-body .form-issue { color: #a62f39; }
.app-dialog .tkui-dialog-actions { padding: .88rem 1.4rem; border-top: 1px solid var(--line); gap: .55rem; }
.app-dialog::backdrop { background: #171d2180; }
.page-search-results { list-style: none; padding: 0; margin: .65rem 0 0; }
.page-search-results .tkui-nav-link { min-height: 42px; gap: .7rem; }
.notices:not(:empty) { position: fixed; z-index: 6; right: 1rem; bottom: 1rem; max-width: min(30rem,calc(100% - 2rem)); padding: .85rem 1rem; color: #fff; background: var(--accent); border-radius: 10px; box-shadow: 0 6px 18px #0e0b0a30; }
.notices[data-tone="error"]:not(:empty) { background: #883a38; }
.payroll-select { display: flex; align-items: end; flex-wrap: wrap; gap: .55rem; }
.notice-inline { padding: .8rem 1rem; background: #fbf3df; color: #674e1c; border: 1px solid #e9d9ac; border-radius: 9px; margin: 0 0 1rem; }
.list-title { font-weight: 650; }
.note-list { padding-inline-start: 1.15rem; margin-block: .35rem 0; }

.auth-page { min-height: 100svh; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); background: #fff; }
.auth-preview { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; min-width: 0; margin: 1rem; padding: clamp(1.4rem,3.4vw,3.5rem); border-radius: 22px; color: white; background: linear-gradient(0deg,#101716eb 0, #1219148a 33%, #161e1810 72%), url("/hris/assets/field-team.webp") 78% center/cover no-repeat, #202629; }
.auth-preview .brand { background: #fffcf4; padding: .42rem .85rem .42rem .52rem; border-radius: 9px; align-self: flex-start; }
.auth-preview .brand img { width: 1.9rem; height: 1.9rem; }
.auth-intro { max-width: 36rem; padding-top: 12rem; }
.auth-intro h1 { font: 570 clamp(2.7rem,5.5vw,5.35rem)/.99 var(--heading); letter-spacing: -.063em; }
.auth-intro h1 span { display: block; color: #f8db95; }
.auth-intro p { margin-top: 1.3rem; color: #eeeae0; max-width: 35ch; }
.auth-form-side { position: relative; display: grid; align-content: center; justify-items: center; padding: 5.5rem 1.4rem; }
.auth-tools { position: absolute; right: clamp(1.25rem,3vw,3rem); top: clamp(1.25rem,3vw,3rem); }
.auth-card { width: min(100%,24rem); }
.auth-card h2 { font: 680 clamp(2rem,3vw,2.75rem)/1.04 var(--heading); letter-spacing: -.055em; }
.auth-card .subtle { margin: .68rem 0 1.6rem; }
.auth-card .tkui-input { min-height: 46px; }
.auth-card form { gap: 1rem; }
.auth-card form .tkui-button { margin-top: .35rem; min-height: 46px; }
.auth-alternate { margin: 1.1rem 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.auth-alternate button { min-height: 36px; padding: 0 .2rem; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width:1050px) { .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width:920px) {
  .workspace { display: block; }
  .sidebar, .breadcrumb { display: none; }
  .topbar { min-height: 60px; padding: .45rem .9rem; gap: .35rem; }
  .mobile-head, .mobile-product { display: inline-flex; align-items: center; gap: .45rem; }
  .mobile-product { gap: .35rem; color: var(--ink); text-decoration: none; font: 730 1.15rem/1 var(--heading); letter-spacing: -.045em; }
  .icon-control { display: grid; place-items: center; width: 39px; height: 42px; border-radius: 8px; }
  .icon-control:hover, .mobile-menu[open] .icon-control { background: var(--tkui-soft); }
  .mobile-menu-body { left: 0; right: auto; width: min(18rem,calc(100vw - 1.8rem)); max-height: calc(100svh - 4rem); overflow: auto; padding: .55rem; }
  .mobile-menu .workspace-label { margin: .7rem 0 .15rem; }
  .mobile-menu .workspace-label:not(:first-child) { margin-top: 1rem; }
  .mobile-account { padding: .65rem .4rem .1rem; margin-top: .5rem; border-top: 1px solid var(--line); }
  .mobile-account .tkui-button { width: auto; margin-top: .3rem; }
  .toolbar { gap: .35rem; }
  .toolbar .tkui-button { min-height: 40px; }
  .language-switch button { min-height: 32px; }
  .content { padding: 1.3rem 1rem 2.5rem; }
  .page-heading { margin-bottom: 1.1rem; gap: .8rem; }
  .page-heading p { font-size: .94rem; }
}
@media (max-width:760px) {
  .auth-page { display: flex; flex-direction: column; }
  .auth-preview { min-height: 14rem; margin: .65rem; padding: 1.15rem; border-radius: 16px; background-position: center, 76% 32%; }
  .auth-preview .brand { padding: .25rem .48rem; }
  .auth-preview .brand img { width: 1.45rem; height: 1.45rem; }
  .auth-preview .brand-type { font-size: .93rem; }
  .auth-intro { padding: 2.5rem 0 0; }
  .auth-intro h1 { font-size: clamp(2.15rem,7vw,3.15rem); }
  .auth-intro p { display: none; }
  .auth-form-side { flex: 1; align-content: start; padding: .45rem 1.4rem 1.8rem; }
  .auth-tools { position: static; justify-self: end; margin-bottom: .55rem; }
}
@media (max-width:510px) {
  .form-grid { grid-template-columns: 1fr; }
  .toolbar .utility-search span, .toolbar .create-menu > summary span { display: none; }
  .toolbar .utility-search, .toolbar .create-menu > summary { width: 39px; padding: 0; }
  .panel-head { padding: 1rem; }
  .panel-body { padding: 1rem; }
  .notices:not(:empty) { bottom: max(1rem,env(safe-area-inset-bottom)); }
}

.avatar { position: relative; overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-tone-0 { background: #e8ecd9; color: #4a572c; }
.avatar-tone-1 { background: #efe1d3; color: #70482a; }
.avatar-tone-2 { background: #e1eaf0; color: #365569; }
.avatar-tone-3 { background: #f3e7c7; color: #71561d; }
.avatar-tone-4 { background: #ebe4ef; color: #624b73; }
.avatar-tone-5 { background: #dcedea; color: #375b55; }
.avatar-editor, .avatar-editor-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.avatar-editor { padding: .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.avatar-editor-fields { flex: 1; min-width: min(100%,12rem); }
.avatar-editor-preview .avatar { width: 48px; height: 48px; }
.avatar-file-button { position: relative; display: inline-flex; cursor: pointer; }
.avatar-file-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.avatar-file-button:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tracking-indicator { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .6rem; border-radius: 20px; background: #e3f2e7; color: #28583a; font-size: .8rem; font-weight: 620; text-decoration: none; }
@media (max-width: 610px) { .tracking-indicator span { display: none; } }

@media (max-width:820px) {
  .language-globe,.language-name { display:none; }
  .language-code { display:inline; }
  .nav-module > summary { min-height:44px; }
  .tkd-ui .mobile-menu .module-pages .tkui-nav-link { min-height:42px; }
}
