:root {
  color-scheme: light;
  --ink: #1c2637;
  --muted: #60687a;
  --line: #e0dfe1;
  --surface: #f6f5f2;
  --well: #eeede9;
  --white: #fff;
  --hover: #edf5fd;
  --radius: 12px;
  --side: 300px;
  --settings: 256px;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--surface); color: var(--ink); }
h1, h2, p { margin: 0; }
h1 { font-size: 1.375rem; font-weight: 650; line-height: 1.25; }
h2 { font-size: 1.05rem; font-weight: 650; line-height: 1.32; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid #697de0; outline-offset: 3px; }
.icon { width: 1.17em; height: 1.17em; display: inline-block; flex: 0 0 auto; vertical-align: -.17em; }
.application { min-height: 100dvh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 24px; padding: 8px 24px 8px 8px; }
.sidebar { position: sticky; top: 8px; height: calc(100dvh - 16px); overflow: auto; scrollbar-width: thin;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.brand { display: flex; gap: 8px; align-items: center; font-weight: 720; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; overflow: hidden; background: var(--surface); }
.brand-mark img { display: block; width: 100%; mix-blend-mode: multiply; }
.sidebar nav { margin: 11px 0 0; }
.nav-row { display: flex; gap: 12px; align-items: center; min-height: 49px; padding: 10px 12px; }
.nav-row > .icon:last-child:not(:first-child) { margin-left: auto; width: .9em; }
.nav-row[aria-disabled] { cursor: default; }
.nav-group { border: 1px solid transparent; }
.nav-group[open] { border-color: var(--line); border-radius: var(--radius); background: var(--surface); }
.nav-group[open] > summary .icon:last-child { transform: rotate(180deg); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.subnav { display: grid; gap: 0; margin: 0 12px 8px 20px; border-left: 1px solid var(--line); font-size: .875rem; }
.subnav > * { padding: 7px 12px 7px 19px; }
.subnav [aria-current] { font-weight: 700; border-left: 2px solid var(--ink); margin-left: -1px; }
.workspace { min-width: 0; }
.masthead { display: flex; align-items: center; gap: 23px; min-height: 48px; margin-bottom: 15px; }
.chapter { font-size: 1.375rem; line-height: 1.2; font-weight: 700; }
.top-tabs { display: flex; align-items: stretch; gap: 24px; align-self: stretch; font-size: .875rem; color: var(--muted); }
.top-tabs > * { display: flex; align-items: center; position: relative; white-space: nowrap; }
.top-tabs [aria-current] { color: var(--ink); font-weight: 650; }
.top-tabs [aria-current]::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 24px; height: 2px; background: var(--ink); transform: translateX(-50%); border-radius: 3px; }
.utilities { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.icon-action { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.icon-action:hover { background: var(--well); }
.avatar { display: inline-grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--well); color: #938d83; }
.header-search { display: flex; align-items: center; gap: 6px; margin-inline: auto; width: min(670px, 55%); padding: 0 10px; background: var(--well); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.header-search input { width: 100%; }
.header-search input[type=search] { border: 0; background: transparent; padding: 6px; }
.workspace-body { display: grid; align-items: start; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.screen-config .workspace-body, .screen-editor .workspace-body { grid-template-columns: var(--settings) minmax(0, 1fr); }
.settings-nav { position: sticky; top: 8px; max-height: calc(100dvh - 16px); overflow: auto; }
.settings-nav .nav-row { min-height: 41px; padding-inline: 10px; gap: 9px; }
.settings-nav .subnav { gap: 4px; margin-right: 9px; margin-left: 20px; padding-left: 16px; }
.settings-nav .subnav > * { border: 1px solid transparent; padding: 8px 12px; border-radius: 9px; }
.settings-nav .subnav .selected { background: var(--white); border-color: var(--line); }
main { min-width: 0; padding-bottom: 24px; }
button, .button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  padding: 10px 16px; background: var(--white); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; font-size: .9375rem; font-weight: 600; white-space: nowrap; }
button:hover, .button:hover { background: #eceff2; text-decoration: none; }
.primary, .primary:hover { color: white; border-color: var(--ink); background: var(--ink); }
.primary:hover { background: #334055; }
.button.compact { padding: 6px 12px; font-size: .875rem; border-radius: 12px; }
.button.square { padding-inline: 14px; }
input:not([type=checkbox]):not([type=hidden]), select, textarea { padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); background: white; min-width: 0; max-width: 100%; }
input[type=checkbox] { accent-color: #283952; width: 17px; height: 17px; vertical-align: middle; }
textarea { resize: vertical; }
hr { border: 0; border-top: 1px solid var(--line); }
.search { display: flex; align-items: center; min-height: 48px; margin-bottom: 24px; background: var(--well); border: 1px solid var(--line); border-radius: var(--radius); }
.search > :is(button,a) { display: grid; place-content: center; width: 48px; min-height: 46px; padding: 0; background: transparent; border: 0; }
.search > button { border-right: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); }
.search > a { margin-left: auto; border-left: 1px solid var(--line); }
.search > input[type=search] { flex: 1; border: 0; background: transparent; }
.search > input::-webkit-search-cancel-button { display: none; }
.list-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 16px; color: var(--muted); }
.list-tools strong { color: var(--ink); }
.list-actions { display: flex; gap: 8px; margin-left: auto; }
.pagination { display: flex; }
.pagination > * { padding: 6px 10px; }
.pagination > :first-child { border-radius: 12px 0 0 12px; }
.pagination > :last-child { border-left: 0; border-radius: 0 12px 12px 0; }
.unavailable, .unavailable:hover { color: #939aac; cursor: default; background: var(--white); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: .9375rem; }
thead { background: var(--well); color: #484e5e; font-size: .875rem; }
thead th { font-weight: 540; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
.center { text-align: center; }
.jobs :is(th,td):not(:nth-child(3)) { width: 1%; white-space: nowrap; }
.jobs th[scope=row] { font-weight: 680; min-width: 205px; }
.organization span { display: inline-block; color: #a5a5a6; padding-right: 14px; }
.status-dot { display: inline-block; width: 18px; height: 18px; border: 1px solid; border-radius: 100%; vertical-align: middle; }
.status-dot.missing { border-color: #efa4ac; background: #fce5e5; }
.status-dot.pending { border-color: #e9ba73; background: #fbefd9; }
.status-dot.good { border-color: #77bc9b; background: #dcf5e8; }
.row-menu { position: relative; }
.row-menu > summary { display: grid; place-content: center; width: 26px; height: 30px; }
.row-menu[open] > summary { border-radius: 7px; background: var(--well); }
.row-menu > div { position: fixed; z-index: 2; transform: translateX(calc(-100% + 26px)); display: grid; min-width: 144px; background: white; border: 1px solid var(--line); border-radius: 9px; padding: 5px; box-shadow: 0 6px 16px #191d2720; }
.row-menu a { padding: 6px 9px; }
.empty { display: grid; place-content: center; gap: .4rem; min-height: 177px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); }
.empty a, .back { text-decoration: underline; text-underline-offset: .2em; }
.intro { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 26px; }
.intro p { margin-top: 5px; color: var(--muted); }
.intro .eyebrow { margin: 0 0 5px; font-size: .8125rem; font-weight: 650; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; }
.config-breadcrumb { margin-bottom: 9px; font-size: .875rem; }
.config-tabs { display: flex; gap: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.config-tabs > * { padding: 7px 0; }
.config-tabs [aria-current] { font-weight: 650; border-bottom: 2px solid var(--ink); }
.template-panel { padding: 0 16px 16px; margin: 0; }
.template-panel > summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px 2px; font-weight: 650; }
.template-panel > summary > * { display: flex; gap: 8px; align-items: center; }
.template-panel > summary > a { font-size: .875rem; font-weight: 500; }
.template-panel[open] > summary span .icon { transform: rotate(180deg); }
.template-table :is(th,td):nth-child(2) { min-width: 150px; width: 25%; }
.template-table :is(th,td):nth-child(3) { width: 20%; }
.template-table th:first-child { padding-left: 5%; width: 53%; }
.template-table tbody td[colspan] { padding-left: 15px; }
.add-field { display: inline-flex; font-weight: 600; align-items: center; gap: 5px; }
.job-heading { border-bottom: 1px solid var(--line); padding: 2px 0 18px; margin-bottom: 23px; }
.job-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.job-heading p { color: var(--muted); margin-bottom: 4px; }
.job-heading a:has(.icon) { display: grid; place-items: center; width: 20px; }
.job-heading .button { margin-left: auto; }
.split { display: grid; grid-template-columns: minmax(140px, 18%) minmax(0, 1fr); gap: 16px; }
.section-links { align-self: start; position: sticky; top: 16px; display: grid; gap: 8px; }
.section-links a { padding: 4px 12px; overflow-wrap: anywhere; }
.fields { padding: 16px; background: var(--well); scroll-margin-top: 18px; }
.fields h2 { padding-bottom: 13px; border-bottom: 1px solid var(--line); margin-bottom: 9px; }
.field { display: grid; gap: 7px; margin: 0 0 15px; }
fieldset.field { padding: 0; border: 0; min-width: 0; }
.field label:not(.choice), legend { font-weight: 525; font-size: .875rem; color: var(--muted); }
.field:last-child { margin-bottom: 0; }
.relation { min-height: 4.7rem; }
.relation summary { display: inline-flex; gap: 7px; align-items: center; padding: 9px 14px; border-radius: 9px; }
.relation summary:hover { background: var(--surface); }
.relation select { display: block; min-width: min(260px, 100%); margin-left: 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.choices .choice { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 4px 8px; }
.choice { display: inline-flex; gap: 6px; align-items: center; font-size: .9375rem; }
.rich-editor { border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; background: white; }
.rich-editor textarea { width: 100%; display: block; border: 0; border-radius: 0; }
.format-bar { display: none; align-items: stretch; flex-wrap: wrap; background: var(--surface); border-bottom: 1px solid var(--line); }
.enhanced .format-bar { display: flex; }
.format-bar button, .format-bar select { border: 0; border-radius: 0; min-width: 34px; padding: 5px 8px; background: transparent; }
.format-bar button:hover { background: #e9e8e4; }
.format-bar button:nth-of-type(3n), .format-bar select { border-right: 1px solid var(--line); }
.format-bar [data-command=fullscreen] { margin-left: auto; border-left: 1px solid var(--line); }
.editable { min-height: 180px; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; }
.editable:focus-visible { outline-offset: -2px; }
.rich-editor:fullscreen .editable { height: calc(100dvh - 46px); overflow: auto; }
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.align-justify { text-align: justify; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.editor-actions { position: sticky; bottom: 0; z-index: 1; padding: 14px 8px; margin-top: 0; background: var(--surface); }
.notice { margin-bottom: 14px; border-left: 4px solid #338561; background: #e3f4eb; padding: 8px 12px; }
.notice.error { border-color: #aa3c4f; background: #fbe7ea; }
.required { color: #ac3045; }
.muted { color: var(--muted); font-size: .875rem; }
.narrow { max-width: 640px; }
.preserve { overflow-wrap: anywhere; }
.preserve a { text-decoration: underline; }
.departments { margin: 0; padding-left: 1.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.config-dialog { width: min(calc(100% - 32px), 920px); max-height: 90dvh; border: 0; border-radius: 16px; padding: 0; color: var(--ink); box-shadow: 0 7px 25px #0004; }
.config-dialog::backdrop { background: #262b3656; }
.dialog-title { padding: 20px 32px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.dialog-title h2 { font-size: 1.375rem; }
.dialog-fields { padding: 16px 32px 32px; }
.dialog-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dialog-row.name-order { grid-template-columns: minmax(0, 1fr) minmax(90px, 14%); }
.dialog-row .field:last-child { margin: 0 0 15px; }
.config-dialog .toolbar { background: var(--surface); padding: 22px 32px; margin: 0; }
.toggle input { appearance: none; width: 35px; height: 20px; border-radius: 24px; background: #d4d1ca; cursor: pointer; }
.toggle input::after { content: ""; display: block; margin: 2px; height: 16px; width: 16px; background: white; border-radius: 50%; }
.toggle input:checked { background: #26364f; }
.toggle input:checked::after { transform: translateX(15px); }
@media (max-width: 1530px) {
  :root { --side: 245px; --settings: 225px; }
  .top-tabs { gap: 12px; }
}
@media (max-width: 1130px) {
  :root { --side: 190px; --settings: 180px; }
  .application, .workspace-body { gap: 12px; }
  .masthead { gap: 10px; flex-wrap: wrap; }
  .top-tabs { order: 4; width: 100%; min-height: 30px; overflow: auto; }
  .top-tabs [aria-current]::after { bottom: 0; }
  .sidebar .nav-row, .settings-nav .nav-row { font-size: .9rem; }
  .split { grid-template-columns: 1fr; }
  .section-links { position: static; display: flex; flex-wrap: wrap; gap: 3px; }
}
@media (max-width: 800px) {
  .application { display: block; padding: 8px 12px; }
  .sidebar { position: static; height: auto; margin-bottom: 10px; }
  .sidebar nav { display: none; }
  .screen-config .workspace-body, .screen-editor .workspace-body { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: none; }
  .dialog-fields, .dialog-title, .config-dialog .toolbar { padding-inline: 16px; }
  .dialog-row { gap: 8px; }
}

.employee-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px; }
.employee-card { display: flex; min-height: 152px; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 13px; text-align: center; }
.employee-card:hover { border-color: #a0ade5; text-decoration: none; }
.employee-card :is(strong,span,small) { max-width: 100%; overflow-wrap: anywhere; }
.employee-card small, .employee-card > span:not(.employee-avatar) { color: var(--muted); }
.employee-avatar { display: inline-grid; place-items: center; border-radius: 50%; width: 48px; height: 48px; margin-bottom: 4px;
  background: #e9edf9; color: #40539c; font-weight: 680; }
.employee-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.employee-heading p { color: var(--muted); }
.employee-heading .button { margin-left: auto; }
.profile-data { display: grid; grid-template-columns: auto 1fr; gap: 12px 26px; }
.profile-data dt { color: var(--muted); }
.profile-data dd { margin: 0; overflow-wrap: anywhere; }
.profile-data a { text-decoration: underline; }
.dialog-fields h2 { margin-bottom: 12px; }
.org-scroll { overflow: auto; padding: 8px 12px; }
.org-tree, .org-tree ul { list-style: none; display: flex; align-items: flex-start; justify-content: center; gap: 16px;
  margin: 0; padding: 0; min-width: max-content; }
.org-tree li { display: flex; flex-direction: column; align-items: center; }
.org-tree .employee-card { min-width: 165px; min-height: 122px; max-width: 260px; }
.org-tree ul { border-top: 1px solid #cdcbd0; margin-top: 22px; padding-top: 21px; position: relative; }
.org-tree ul::before, .org-tree ul > li::before { content: ""; position: absolute; width: 1px;
  height: 22px; background: #cdcbd0; top: -22px; left: 50%; }
.org-tree ul > li { position: relative; }
.org-tree ul > li::before { top: -21px; }

.workday-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filters input[type=number] { max-width: 110px; }
.calendar-totals { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; }
.calendar-totals > div { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; }
.calendar-totals dt { color: var(--muted); font-size: .875rem; }
.calendar-totals dd { margin: 0; font-weight: 650; }
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.month { background: white; margin: 0; padding: 14px; }
.month h2 { margin-bottom: 8px; }
.month-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 3px; }
.month-days span { border-radius: 6px; min-height: 26px; display: grid; place-items: center; font-size: .875rem; }
.weekday { color: var(--muted); font-weight: 600; }
.month-days .day-today { outline: 1px solid #647bc8; }
.month-days .day-approved { background: #dff2eb; color: #2c5a4b; }
.month-days .day-pending { background: #f9ebd2; color: #704a20; }
.absence-dialog { max-width: 675px; }
.request-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.request-actions button { padding: 4px 8px; font-size: .8125rem; }

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.menu-toggle { display: none; }
.login-main { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-main form { width: min(420px, 100%); padding: 28px; background: white; }
.login-main img { width: 110px; height: 62px; object-fit: contain; }
.login-main h1 { margin-bottom: 18px; }
.login-main button { width: 100%; }
@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; }
  .sidebar.menu-open nav { display: block; max-height: 55dvh; overflow-y: auto; }
}
.org-root { display: flex; width: fit-content; align-items: center; gap: 11px; padding: 10px 16px;
  margin: 0 auto 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
