@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/font-inter-latin-400-800.woff2?v=286b531113909e29) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/font-tajawal-arabic-400.woff2?v=286b531113909e29) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/font-tajawal-latin-400.woff2?v=286b531113909e29) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/font-tajawal-arabic-500.woff2?v=286b531113909e29) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/font-tajawal-latin-500.woff2?v=286b531113909e29) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/font-tajawal-arabic-700.woff2?v=286b531113909e29) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/font-tajawal-latin-700.woff2?v=286b531113909e29) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/font-tajawal-arabic-800.woff2?v=286b531113909e29) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/font-tajawal-latin-800.woff2?v=286b531113909e29) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-en: Inter, "Segoe UI", sans-serif;
  --font-ar: Tajawal, Tahoma, "Segoe UI", sans-serif;
  color: #17343b;
  background: #f3f8f8;
  font-synthesis: none;
  --forest: #103c45;
  --mint: #74e5a0;
  --muted: #4c656b;
  --line: #d7e6e7;
}
[lang|="en"] { font-family: var(--font-en); }
[lang|="ar"] { font-family: var(--font-ar); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
.preview-access { width: min(100% - 32px, 360px); margin: 12vh auto 0; }
.preview-access form { display: grid; gap: 16px; }
.preview-access input { display: block; width: 100%; margin-top: 6px; }
:is(.workspace-login, .employee-portal) {
  color-scheme: dark;
  color: #e8f4f4;
  --portal-background: #101c21;
  --portal-surface: #192b32;
  --portal-control: #122329;
  --portal-accent: #73c9a6;
  --portal-accent-hover: #8ad7b7;
  --line: #39545c;
  --muted: #acc4c8;
}
.workspace-login {
  display: flex; flex-direction: column; min-height: 100dvh;
  background: radial-gradient(ellipse at 85% 10%, #183b3b, transparent 65%), var(--portal-background);
}
.workspace-login-header { display: flex; justify-content: flex-end; padding: 20px 28px; }
.workspace-login-header button {
  border: 1px solid #ffffff66; border-radius: 8px; background: transparent;
  color: #fff; padding: 6px 12px;
}
.workspace-login-main {
  width: min(484px, calc(100% - 36px)); margin: auto;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line); border-radius: 18px; background: var(--portal-surface);
  box-shadow: 0 18px 45px #07141866;
}
.workspace-login-brand { display: flex; align-items: center; gap: 12px; margin-block-end: 26px; }
.workspace-login-brand h1 { margin: 0; font-size: 32px; color: inherit; }
.workspace-login-main form { gap: 16px; }
.workspace-login-main #search-submit { width: 100%; }
.workspace-login-main #search-status:empty { display: none; }
.workspace-login-main #search-status { margin-block: 16px 8px; }
.workspace-login-main #search-results { display: grid; gap: 8px; }
.workspace-login-main #search-results a { text-decoration: none; }
.workspace-login::after { content: ""; flex: 0 0 32px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #388478; outline-offset: 3px; }
.sidebar {
  position: fixed; inset-block: 0; inset-inline-start: 0; width: 228px; padding: 28px 18px;
  display: flex; flex-direction: column; gap: 26px; background: var(--forest); color: #f2fbfa;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; font-size: 23px; padding: 0 8px; }
.mark {
  flex: 0 0 40px; height: 40px; border-radius: 11px;
  background: #005a60 url("/dawamkom-logo.svg") center / cover no-repeat;
}
.workspace { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #406157; border-radius: 10px; overflow-wrap: anywhere; font-size: 14px; }
.workspace-icon { color: var(--mint); }
nav { display: grid; gap: 5px; }
nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; color: #d2e5da; font-size: 15px; }
nav a span[aria-hidden="true"] { width: 20px; text-align: center; font-size: 20px; line-height: 1; }
nav a:hover, nav a[aria-current] { background: #20535d; color: #fff; }
nav a[aria-current] span[aria-hidden="true"] { color: var(--mint); }
.nav-document-alert {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-inline-size: 24px;
  min-block-size: 24px;
  padding-inline: 6px;
  margin-inline-start: auto;
  border-radius: 999px;
  background: #aa2438;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sidebar-foot { margin-top: auto; color: #c4d9ce; font-size: 13px; }
#approval-dialog { width: min(598px, calc(100% - 24px)); }
.approval-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.approval-step { position: relative; flex: 1 1 124px; min-inline-size: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--dark-surface); cursor: grab; touch-action: none; user-select: none; }
.approval-step label > span { display: block; min-height: 28px; padding-inline-end: 30px; }
.approval-step [data-approval-step="remove"] { position: absolute; top: 5px; left: 5px; }
.approval-step.approval-dragging { z-index: 2; opacity: 0.82; pointer-events: none; }
.approval-step.approval-drop-target { outline: 2px solid var(--mint); }
.approval-direction { color: var(--mint); font-size: 22px; line-height: 1; }
@media (max-width: 480px) {
  .approval-step { flex-basis: 105px; }
}
.dot { display: inline-block; width: 8px; height: 8px; background: var(--mint); border-radius: 50%; margin-inline-end: 6px; }
.shell { margin-inline-start: 228px; }
.super-admin-layout .sidebar { display: none; }
.super-admin-layout .shell { margin-inline-start: 0; }
.super-admin-tiles .settings-tile { align-items: center; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 13px 32px; font-weight: 650; }
.topbar:has(#logout-form:not([hidden])) { gap: 8px; flex-wrap: wrap; }
.management-topbar-actions { display: flex; align-items: center; gap: 10px; }
.management-topbar-actions form { margin: 0; }
#management-notifications { position: relative; display: grid; place-items: center; min-width: 42px; min-height: 42px; }
#management-notification-count { position: absolute; inset-block-start: -5px; inset-inline-end: -5px; border-radius: 12px; padding: 2px 5px; background: var(--mint); color: #12332a; font-size: 11px; }
.management-alert { display: block; padding: 12px 4px; border-block-end: 1px solid var(--line); color: inherit; text-decoration: none; }
.management-alert small { display: block; color: var(--muted); margin-block-start: 4px; }
:root[dir="ltr"] #logout-form { order: -1; }
html.employee-page {
  --employee-header-height: calc(69px + env(safe-area-inset-top));
  color-scheme: dark; background: #14282e;
  scroll-padding-block-start: var(--employee-header-height);
}
.employee-portal { min-height: 100dvh; padding-block-start: var(--employee-header-height); background: linear-gradient(#142b30, var(--portal-background) 340px) var(--portal-background); }
.employee-topbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-block-size: var(--employee-header-height);
  padding: calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: rgb(23 53 60 / 75%); border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  :is(.employee-topbar, .employee-bottom-nav) {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.employee-topbar .brand, .company-access .brand { padding: 0; }
.employee-topbar .brand { flex-shrink: 0; white-space: nowrap; }
.employee-topbar-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.request-filters { display: flex; gap: 16px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-block: 12px 14px; }
.request-filters button { min-height: 42px; padding: 0 2px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; }
.request-filters button[aria-pressed="true"] { border-color: currentColor; color: inherit; font-weight: 700; }
.table-wrap:has(> .requests-overview) { border: 1px solid var(--line); border-radius: 14px; }
.requests-overview { min-width: 690px; background: var(--dark-surface, #fff); }
.requests-overview td { padding-block: 9px; }
.requests-overview small { display: block; margin-block-start: 4px; color: var(--muted); }
.request-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.request-chips span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--dark-surface-2, #f0f3f5); font-size: 12px; }
[data-theme="dark"] .request-chips span { background: #263c44; }
.requests-overview :is(th, td):last-child { width: 1%; }
.request-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.request-row-actions { display: flex; gap: 4px; direction: rtl; }
.request-row-actions .button { display: grid; place-items: center; width: 30px; min-height: 30px; padding: 0; line-height: 1; border-radius: 8px; }
.employee-content {
  width: auto; max-width: 560px; margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.employee-heading { margin-block-end: 16px; }
.employee-home-toolbar { display: flex; justify-content: flex-end; }
.employee-icon-button { display: inline-grid; place-items: center; width: 44px; padding: 0; font-size: 25px; line-height: 1; }
.employee-greeting { font-size: clamp(24px, 6.5vw, 34px); text-align: center; margin: 15px 0 22px; }
.employee-portal .employee-attendance-card { display: grid; gap: 15px; text-align: center; padding: clamp(20px, 6vw, 30px); background: linear-gradient(145deg, #1e3b40, var(--portal-surface)); }
.employee-shift { color: var(--muted); font-size: 16px; font-weight: 650; }
.employee-timer { display: block; font-family: var(--font-en); font-size: clamp(48px, 14vw, 76px); line-height: 1.1; font-variant-numeric: tabular-nums; color: #cae3dc; }
#employee-punch { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; color: #fff; }
.employee-punch-icon { flex: none; object-fit: contain; filter: brightness(0) invert(1); }
.employee-scheduled-periods { list-style: none; margin: 0; padding: 10px 0 2px; border-block-start: 1px solid var(--line); }
.employee-scheduled-periods li { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; }
.employee-scheduled-periods li + li { margin-block-start: 8px; }
.employee-scheduled-periods bdi { color: var(--muted); font-size: 0.875rem; }
.employee-quick-actions { margin-block: 22px; }
.employee-quick-actions header { display: flex; align-items: center; justify-content: space-between; margin-block-end: 12px; }
.employee-quick-actions header h2 { margin: 0; }
.employee-quick-grid { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; }
.employee-quick-grid .button { display: grid; flex: 0 0 calc((100% - 16px) / 3); min-width: 0; box-sizing: border-box; scroll-snap-align: start; justify-items: center; align-content: center; gap: 8px; min-height: 88px; padding: 8px 4px; border-radius: 13px; font-size: clamp(12px, 3.55vw, 15px); }
.employee-quick-grid .button:focus-visible { outline-offset: -3px; }
.employee-portal #employee-calendar-details .employee-daily-punches { display:grid; gap:7px; padding:0; background:transparent; border:0; }
.employee-portal #employee-calendar-details > .employee-section-heading { padding-block-start:10px; }
.employee-portal #employee-calendar-details :is(.employee-section-heading,.employee-daily-total,.employee-day-period) { padding-inline:12px; }
.employee-portal #employee-calendar-details .employee-punch-record { min-height:52px; box-sizing:border-box; padding:10px 13px; border:1px solid var(--line); border-radius:14px; background:var(--portal-surface); }
.employee-portal #employee-calendar-details .employee-punch-record bdi { font-size:12px; }
.employee-portal #employee-calendar-details .employee-punch-record small { color:var(--muted); overflow-wrap:anywhere; }
.employee-quick-grid svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.employee-quick-grid .employee-quick-accent { stroke: #78dfb4; }
.employee-shortcut-dialog form > label { display:flex;align-items:center;gap:10px;min-height:44px;margin:0; }
.employee-shortcut-dialog input[type="checkbox"] { flex:none;width:18px;height:18px;min-height:0;margin:0; }
#employee-document-wallet[hidden] { display: none; }
.employee-wallet ul { list-style: none; padding: 0; margin: 0; }
.employee-wallet-branch { border-block-end: 1px solid var(--line); }
.employee-wallet-branch > summary { cursor: pointer; padding-block: 12px; font-weight: 700; }
.employee-wallet-branch li:last-child { border-block-end: 0; }
.employee-wallet li { display:grid; grid-template-columns:minmax(0,1fr) max-content minmax(92px,1fr); align-items:center; gap:8px; padding-block:12px; border-block-end:1px solid var(--line); }
.employee-portal.shared-wallet-page { padding: max(16px, env(safe-area-inset-top)) 16px 24px; }
#shared-document-wallet { margin:0 auto; max-height:none; }
#shared-document-wallet h1 { margin:0; font-size:1.3rem; }
.employee-wallet strong, .employee-wallet-preview h2 { overflow-wrap: anywhere; }
.employee-wallet-expiry { display:grid; justify-items:center; gap:4px; }
.employee-wallet-expiry-value { display:flex; align-items:center; gap:4px; white-space:nowrap; font-size:.875rem; }
.employee-wallet-expiry-mark { display:inline-grid; place-items:center; inline-size:1rem; block-size:1rem; font-weight:800; }
.employee-wallet-expiry-mark.soon { background:#ffcf57; color:#352600; border-radius:50%; }
.employee-wallet-expiry-mark.expired { color:#dc3545; }
.employee-wallet li .actions { justify-self:end; flex-wrap:nowrap; gap:4px; margin:0; }
.employee-wallet li .button { min-height: 44px; }
.employee-wallet-icon { display:inline-grid;place-items:center;min-width:44px;min-height:44px;flex:none;padding:0; }
.employee-wallet-icon .employee-card-icon { width:24px;height:24px;background:none; }
.employee-sheet.employee-wallet-preview { width:min(100%,720px); overflow:auto; }
.employee-wallet-preview h2 { flex:1;min-width:0; }
.employee-wallet-preview img, .employee-wallet-preview canvas { display:block; inline-size:auto; block-size:auto; max-inline-size:100%; margin-inline:auto; object-fit:contain; }
.employee-wallet-preview img { image-orientation:from-image; }
.employee-sheet { width: min(100%, 500px); max-height: calc(100dvh - 20px); padding: 18px; background: var(--portal-surface); color: inherit; border: 1px solid var(--line); border-radius: 16px; }
.employee-sheet::backdrop { background: #081216b8; }
:is(.employee-sheet header, .employee-back-header) { display: flex; gap: 12px; align-items: center; margin-block-end: 16px; padding-block-end: 12px; border-bottom: 1px solid var(--line); }
:is(.employee-sheet header, .employee-back-header) h2 { margin: 0; }
.employee-back-header { direction: rtl; }
.employee-back-header .employee-icon-button { flex: 0 0 44px; min-height: 44px; }
.employee-sheet .employee-upload { padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.employee-sheet, .employee-sheet form, .employee-sheet label, .employee-sheet input, .employee-sheet select, .employee-sheet textarea { min-inline-size: 0; max-inline-size: 100%; }
#employee-request-dates { display: contents; }
#employee-request-applicant:not([hidden]) { display:grid; gap:14px; }
#employee-request-dates.employee-request-date-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.employee-sheet form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.employee-sheet input[type="date"] { display: flex; align-items: center; inline-size: 100%; height: 44px; box-sizing: border-box; appearance: none; line-height: normal; }
.employee-sheet input[type="date"]::-webkit-date-and-time-value { text-align: start; margin: 0; }
.employee-sheet input[type="date"]::-webkit-datetime-edit { display: inline-flex; align-items: center; padding: 0; }
#employee-leave-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.employee-sheet input[type="file"] { font-size: 14px; }
.employee-profile-summary, .employee-profile-options { display: grid; gap: 12px; }
.employee-profile-summary :is(h2, p), .employee-profile-options dl { margin: 0; }
.employee-profile-summary p { color: var(--muted); font-size: 14px; }
.employee-profile-options summary { cursor: pointer; margin-block: 8px; }
.employee-portal { display: flex; flex-direction: column; }
.employee-content { width: 100%; flex: 1; display: flex; flex-direction: column; }
#employee-dashboard { flex: 1; display: flex; flex-direction: column; padding-block-end: 72px; }
.employee-bottom-nav {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px;
  width: min(100%, 560px); margin-inline: auto;
  padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: rgb(20 40 46 / 75%); border-top: 1px solid var(--line);
}
.employee-bottom-nav::before { content: none; }
.employee-correction-times { min-inline-size: 0; display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.employee-correction-times legend { margin-block-end: 8px; }
#employee-correction-periods, .employee-correction-period { display: grid; gap: 8px; }
.employee-correction-period { min-inline-size: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 0; }
.employee-correction-period legend { padding-inline: 6px; }
.employee-correction-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.employee-correction-option label { display: flex; align-items: center; gap: 8px; margin: 0; }
.employee-correction-option input[type="checkbox"] { width: 19px; min-height: 19px; margin: 0; }
.employee-correction-option input[type="time"] { grid-column: 1 / -1; margin-block-start: 0; }
input.correction-time {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.employee-sheet.employee-time-picker {inset:auto 0 0;margin:0 auto;height:auto;width:min(100%,420px);max-height:90dvh;border-radius:20px 20px 0 0;padding-block-end:max(18px,env(safe-area-inset-bottom));}
.employee-time-picker-fields {position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));direction:ltr;margin-block:12px;}
.employee-time-picker-fields::before {content:"";position:absolute;inset-inline:0;top:66px;height:44px;border-radius:22px;background:var(--portal-control);pointer-events:none;}
.employee-time-wheel {position:relative;height:176px;box-sizing:border-box;padding-block:66px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;text-align:center;mask-image:linear-gradient(transparent,#000 35%,#000 65%,transparent);}
.employee-time-wheel > button {display:block;width:100%;height:44px;padding:0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:23px;scroll-snap-align:center;}
.employee-time-wheel > button.selected {color:var(--text);font-weight:700;}
.employee-time-picker > .primary {width:100%;}
.employee-correction-option p { margin: 0; text-align: left; font-size: 16px; font-weight: 700; color: inherit; font-variant-numeric: tabular-nums; }
.employee-bottom-nav button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 55px; padding: 3px; border: 0; border-radius: 12px; background: transparent; color: inherit; font-size: 13px; }
.employee-bottom-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.employee-bottom-nav .employee-nav-accent { stroke: #78dfb4; }
.employee-bottom-nav button[aria-current="page"] { background: #284b50; color: #d2f5e7; }
.employee-bell { width: 14px; height: 15px; display: inline-block; border: 2px solid currentColor; border-radius: 8px 8px 3px 3px; position: relative; }
.employee-bell::after { position: absolute; content: ''; inset-block-end: -5px; inset-inline-start: 3px; width: 4px; height: 3px; border-radius: 50%; background: currentColor; }
#employee-messages { position: relative; }
#employee-device-count { position: absolute; inset-block-start: 3px; inset-inline-end: 3px; min-width: 15px; padding: 1px 3px; border-radius: 12px; background: var(--mint); color: #12332a; font-size: 10px; font-weight: 800; }
.employee-device-alert { width: 100%; text-align: start; margin-block-end: 8px; }
#employee-toast { position: fixed; z-index: 10; inset-block-start: max(10px, env(safe-area-inset-top)); inset-inline: 12px; width: fit-content; max-width: calc(100% - 24px); margin-inline: auto; padding: 12px 18px; border-radius: 12px; color: #d7fae7; background: #245341; box-shadow: 0 8px 22px #08121680; animation: employee-toast-in 350ms ease-out both; }
@keyframes employee-toast-in { from { opacity: 0; transform: translateY(calc(-100% - 64px)); } to { opacity: 1; transform: translateY(0); } }
#employee-toast[data-tone="error"] { background: #7b302c; color: #fff2ef; }
#employee-toast[data-tone="pending"] { background: var(--portal-surface); color: inherit; border: 1px solid var(--line); }
#employee-toast[data-leaving] { animation: employee-toast-in 350ms ease-in reverse both; }
@media (prefers-reduced-motion: reduce) { #employee-toast, #employee-toast[data-leaving] { animation: none; } }
#employee-requests-history p { padding-block: 10px; border-bottom: 1px solid var(--line); }
.employee-calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block: 12px; }
[dir="rtl"] .employee-calendar-header button span { transform: scaleX(-1); }
.employee-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.employee-calendar-grid small { color: var(--muted); }
.employee-calendar-grid button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: var(--portal-surface); font: inherit; }
.employee-calendar-grid [aria-pressed="true"] { outline: 2px solid var(--portal-accent); outline-offset: -3px; }
.employee-calendar-grid button::after { content: none; }
#employee-requests-history { margin-block-end: 14px; }
.employee-home-requests { margin-block: 16px; min-inline-size: 0; }
.employee-home-tabs { display:flex; gap:4px; }
.employee-home-tabs[hidden] { display:none; }
#employee-home-tabs:not([hidden]) { display:grid; grid-template-columns:repeat(2, minmax(44px, 1fr)); }
#employee-home-tabs > .button { inline-size:72px; block-size:44px; padding-inline:4px; justify-content:center; }
.employee-home-tabs .button { min-height:44px; padding:0 8px; white-space:nowrap; background:transparent; border-color:var(--line); color:inherit; }
.employee-home-tabs .button[aria-pressed="true"] { background: var(--portal-accent); border-color: var(--portal-accent); color: #092b26; }
#employee-team-home section + section { margin-block-start: 24px; }
:is(#employee-team-home, .employee-home-requests) h2 { margin: 0 0 10px; font-size: 20px; }
#employee-team-home ul { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; margin: 0; padding: 0 0 6px; list-style: none; }
.employee-team-card { display: grid; align-content: start; gap: 12px; flex: 0 0 min(400px, 92%); min-width: 0; min-block-size: 114px; scroll-snap-align: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--portal-surface); overflow-wrap: anywhere; }
.employee-team-card:only-child { flex-basis: min(400px, 100%); }
.employee-team-empty { place-content: center; text-align: center; }
.employee-team-card-body { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; }
.employee-team-card-body > div { display: grid; gap: 4px; }
.employee-team-avatar { display: grid; place-items: center; inline-size: 38px; block-size: 38px; border-radius: 50%; background: #27434a; color: var(--portal-accent); }
.employee-team-card-header, .employee-team-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.employee-team-card p, .employee-team-card small { margin: 0; color: var(--muted); }
.employee-team-actions { border-block-start: 1px solid var(--line); padding-block-start: 10px; }
.employee-team-actions .button:first-child { flex: 1; border-color: var(--portal-accent); }
.employee-team-actions .button:last-child { border-color: #ff8b81; color: #ffaaa3; }
.employee-home-approval { min-inline-size:0; inline-size:100%; border:1px solid var(--line); border-radius:15px; background:var(--portal-surface); }
.employee-home-approval > .employee-approval-card { border:0; }
.employee-home-approval > .employee-approval-controls { padding:0 14px 14px; }
.employee-approval-controls .employee-team-actions > .button { flex:1; }
.employee-approval-controls form:not([hidden]) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-block-start:10px; }
.employee-approval-controls label { grid-column:1/-1; }
.employee-approval-controls textarea { display:block; inline-size:100%; font-size:16px; }
.employee-approval-controls [role="status"]:empty { display:none; }
#employee-team-status:empty { display: none; }
#employee-home-requests-list [data-status] { padding: 2px 8px; border-radius: 12px; font-size: 12px; background: #544422; color: #ffe7a7; }
#employee-home-requests-list [data-status="Approved"] { background: #245341; color: #d7fae7; }
#employee-home-requests-list [data-status="Declined"] { background: #562e33; color: #ffd6d6; }
#employee-home-requests-list [data-status="Cancelled"] { background: #34434e; color: #e3edf2; }
#employee-message-list p { border-bottom: 1px solid var(--line); padding-block: 10px; }
.request-attachment { display: inline-block; text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .employee-sheet { margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; overflow-y: auto; border: 0; border-radius: 0; padding-block: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-bottom)); }
}
.employee-heading h1 { font-size: clamp(26px, 7vw, 34px); letter-spacing: normal; }
.employee-content :is(p, dd) { overflow-wrap: anywhere; }
.employee-content p { margin-block-end: 0; }
.employee-content :is(.card, form) > :not([hidden]) + p:not(:empty) { margin-block-start: 10px; }
.employee-content p:empty { display: none; }
.employee-content > form { padding: clamp(16px, 4vw, 24px); border: 1px solid var(--line); border-radius: 14px; }
.employee-content > form, .employee-portal .card { background: var(--portal-surface); }
.employee-content .card { padding: clamp(16px, 5vw, 22px); margin-block-end: 14px; }
.employee-content .card h2 { margin-block-end: 12px; }
.employee-content .button.primary, #employee-refresh { width: 100%; }
.employee-topbar .button, .employee-content .button, .workspace-login-main .button { min-height: 44px; }
.employee-topbar .employee-admin-switch { padding: 6px 9px; font-size: 13px; white-space: nowrap; }
@media (max-width: 750px), (hover: none) and (pointer: coarse) {
  .employee-topbar .employee-admin-switch, .topbar #switch { display: none; }
}
:is(.employee-content, .workspace-login-main) :is(input, select, textarea) { min-height: 44px; font-size: 16px; }
.employee-content textarea { min-height: 92px; resize: vertical; }
.employee-password-rules ul { margin-block: 5px 0; padding-inline-start: 20px; }
.employee-content input { margin-top: 0; }
.employee-content .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.employee-content input[type="date"] { min-inline-size: 0; }
.employee-content dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0 0 14px; }
.employee-content dd { margin: 0; }
#employee-device-list { display: grid; gap: 10px; }
#employee-device-list .actions { align-items: center; }
#employee-device-list strong { flex: 1 1 100%; }
@media (max-width: 359px) {
  .employee-content .fields { grid-template-columns: 1fr; }
}
:is(.workspace-login, .employee-portal) .primary { background: var(--portal-accent); color: #092b26; }
:is(.workspace-login, .employee-portal) .primary:hover:not(:disabled) { background: var(--portal-accent-hover); }
:is(.workspace-login, .employee-portal) .secondary { background: #243e46; border-color: var(--line); color: inherit; }
:is(.workspace-login, .employee-portal) .secondary:hover { background: #2d4d56; }
:is(.workspace-login, .employee-portal) :is(input, select, textarea) { background: var(--portal-control); border-color: var(--line); }
.company-access { padding: 24px 0 0; }
.company-access main { margin: auto; width: min(484px, calc(100% - 36px)); padding: clamp(22px, 5vw, 36px); }
.company-login-logo { display: grid; place-items: center; width: 76px; height: 76px; padding: 6px; background: #fff; border-radius: 13px; overflow: hidden; }
.company-login-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.company-access h1 { overflow-wrap: anywhere; }
main { max-width: 1300px; margin: auto; padding: 32px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 43px); letter-spacing: -.045em; margin-bottom: 8px; }
h2 { font-size: 19px; margin-bottom: 16px; letter-spacing: -.02em; }
p { line-height: 1.5; }
.intro { margin-bottom: 25px; }
.intro p, .hint, .empty { color: var(--muted); }
.hero {
  background: radial-gradient(ellipse at 93% 10%, #286e70, transparent 60%), var(--forest);
  color: white; padding: 29px; border-radius: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hero p:last-child { margin-bottom: 0; color: #dbece3; }
.eyebrow { font-size: 11px; letter-spacing: .14em; font-weight: 750; color: var(--mint); margin-bottom: 10px; text-transform: uppercase; }
.hero > span { border: 1px solid #729382; border-radius: 20px; padding: 7px 12px; font-size: 13px; }
.hero h2 { font-size: 28px; margin-bottom: 5px; }
.punch { margin-bottom: 20px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric, .card { background: white; border: 1px solid var(--line); border-radius: 14px; }
.metric { padding: 18px; display: grid; gap: 7px; }
.metric:hover { border-color: #709784; }
.metric span { font-size: 14px; color: var(--muted); }
.metric strong { font-size: 30px; }
.card { padding: 22px; margin-bottom: 18px; min-width: 0; }
.staff-catalog-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.staff-catalog-columns > .card { min-inline-size: 0; margin-block: 0; }
@media (max-width: 850px) {
  .staff-catalog-columns { grid-template-columns: minmax(0, 1fr); }
}
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px)); gap: 16px; }
#organization-form { display: grid; gap: 16px; }
#organization-form > .button { justify-self: start; }
.organization-logo-layout { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.organization-logo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block: 8px; }
.organization-logo-preview { display: grid; place-items: center; flex: 0 0 98px; width: 98px; height: 98px; overflow: hidden; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.organization-logo { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.workspace-icon.has-logo { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; padding: 3px; border-radius: 9px; overflow: hidden; }
.workspace-logo { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.logo-upload { position: relative; overflow: hidden; cursor: pointer; }
.logo-upload:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }
.logo-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logo-remove { background: transparent; border: 0; color: #c44343; cursor: pointer; }
.settings-tile { display: flex; align-items: flex-start; gap: 12px; min-height: 92px; padding: 16px; background: white; border: 1px solid #a2afa7; border-radius: 8px; }
.settings-tile:hover { border-color: var(--forest); background: #f9fcfa; }
.settings-tile .hint { display: block; margin-top: 4px; }
.settings-icon { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; background: #e0f5ee; color: var(--forest); }
.settings-back { display: inline-block; margin-bottom: 12px; text-decoration: underline; }
.schedule-days { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.schedule-days label { display: flex; align-items: center; gap: 6px; }
.schedule-days input { width: auto; margin: 0; }
.schedule-tabs { display: flex; gap: 16px; border-block-end: 1px solid var(--line); margin-block-end: 18px; }
.schedule-tabs button { border: 0; border-block-end: 2px solid transparent; background: none; padding: 10px 4px; color: var(--muted); }
.schedule-tabs button[aria-pressed="true"] { border-block-end-color: var(--forest); color: var(--forest); font-weight: 700; }
.period-toolbar { display: flex; justify-content: flex-end; margin-block-end: 14px; }
.staff-add-toolbar { justify-content: flex-start; }
.catalog-toolbar { display: flex; margin-block-end: 10px; }
.catalog-toolbar .button { min-height: 28px; padding: 4px 10px; background: #121519; color: #fff; }
.catalog-dialog form { display: grid; gap: 12px; }
:is(#attendance-report-dialog, #absence-report-dialog) { width: min(720px, calc(100% - 24px)); }
:is(#attendance-report-dialog, #absence-report-dialog) fieldset { display: grid; gap: 12px; border: 0; margin: 0; padding: 0; }
:is(#attendance-report-dialog, #absence-report-dialog) legend { margin-block-end: 8px; }
.report-employee-picker { border: 1px solid var(--line); border-radius: 8px; }
.report-employee-picker summary { padding: 10px 12px; cursor: pointer; }
.report-employee-options { display: grid; gap: 8px; max-block-size: 220px; overflow: auto; padding: 10px 12px; border-block-start: 1px solid var(--line); }
:is(#attendance-report-dialog, #absence-report-dialog) .actions { justify-content: end; margin-block-start: 12px; }
:is(#attendance-report-result, #absence-report-result) { margin-block-start: 16px; }
.absence-summary-table { min-width: 900px; }
.absence-summary-table th[scope="colgroup"] { text-align: center; border-inline-end: 1px solid var(--line); }
.attendance-summary-table { min-width: 950px; }
.attendance-summary-table th[scope="colgroup"] { text-align: center; border-inline-end: 1px solid var(--line); }
.attendance-summary-table td { white-space: nowrap; }
.attendance-follow-up-table :is(th, td) { white-space: nowrap; }
.attendance-follow-up-table th[scope="colgroup"] { text-align: center; }
.attendance-follow-up-issue { color: #ff9a9f; }
.report-export-toolbar { justify-content: left; }
.report-export { position: relative; margin-block-end: 12px; }
.report-export summary { display: flex; align-items: center; gap: 6px; list-style: none; background: #111216; color: #fff; cursor: pointer; }
.report-export summary::-webkit-details-marker { display: none; }
.report-export-options {
  position: absolute; z-index: 4; left: 0; top: calc(100% + 6px);
  display: grid; gap: 2px; min-inline-size: 164px; padding: 5px;
  background: var(--dark-surface, #fff); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 20px #0003;
}
.report-export-options button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 7px 10px; border: 0; border-radius: 6px;
  background: transparent; color: inherit; font: inherit; text-align: start;
}
.report-export-options button:is(:hover, :focus-visible):not(:disabled) { background: var(--dark-raised, #edf5f3); }
.report-export-options bdi { color: var(--muted); font-size: .8em; }
.document-wallet { margin-block-start: 16px; }
.document-wallet-table { min-width: 560px; }
.document-expiry-form { display: flex; align-items: center; gap: 8px; }
.document-expiry-form input { margin: 0; }
.notification-preferences { margin: 0; padding: 0; list-style: none; }
.notification-preferences li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.notification-preferences li + li { border-block-start: 1px solid var(--line); }
.notification-preferences .hint { display: block; margin-block-start: 4px; }
.notification-preferences .leave-switch { flex: none; }
.notification-actions { display: flex; align-items: center; gap: 10px; }
.notification-rule { display: grid; gap: 6px; min-inline-size: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.notification-rule p { margin: 0; }
.notification-minutes { display: flex; align-items: center; gap: 8px; }
.notification-minutes input { margin: 0; }
.partners-table :is(th, td):is(:nth-child(5), :nth-child(6)) { text-align: center; }
:is(.partners-table, .staff-directory table) :is(th, td):last-child { text-align: start; width: 1%; }
.activation-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.staff-edit { min-width: 32px; font-size: 16px; line-height: 1; }
@media (min-width: 1100px) {
  :is(.partners-card, .staff-directory):has(:is([data-partner-link], [data-staff-link])) { margin-inline-end: 160px; }
  :is(.partners-card, .staff-directory) > .table-wrap { overflow: visible; }
  .activation-actions { position: relative; }
  .activation-actions :is([data-partner-link], [data-staff-link]) { position: absolute; inset-inline-start: calc(100% + 44px); }
}
.partners-table .badge.green { background: #c8f5d8; color: #174b2b; }
#staff-dialog { width: min(1200px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: 14px; padding: clamp(12px, 2vw, 20px); color: inherit; }
#staff-dialog::backdrop { background: #103c4566; }
#staff-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 16px; }
#staff-dialog h2 { margin: 0; }
.staff-profile-name { background: none; color: inherit; font: inherit; font-weight: 700; border: 0; padding: 5px 0; cursor: pointer; text-align: start; }
.staff-profile-name:is(:hover, :focus-visible) { color: inherit; text-decoration: none; }
.staff-branch-group { border-block-end: 1px solid var(--line); }
.staff-branch-group > summary { cursor: pointer; padding: 18px 8px; }
.staff-branch-group > summary span { display: inline-block; margin-inline-start: 12px; color: var(--muted); font-size: 12px; }
.staff-branch-group[open] > summary { color: var(--mint); }
.staff-profile-tabs { flex-wrap: wrap; }
.staff-profile-tabs a { padding: 10px 4px; color: var(--muted); text-decoration: none; border-block-end: 2px solid transparent; }
.staff-profile-tabs a[aria-current="page"] { color: var(--mint); border-block-end-color: var(--mint); font-weight: 700; }
.staff-profile-content { min-width: 0; }
.staff-profile-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.staff-profile-fields dt { color: var(--muted); }
.staff-profile-fields dd { margin: 5px 0 0; overflow-wrap: anywhere; }
#staff-form > section { border-block-start: 1px solid var(--line); padding-block-start: 14px; }
#staff-form h3 { margin: 0 0 12px; }
#staff-form .fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; gap: 10px 14px; }
#staff-form :is(input, select) { min-height: 42px; }
#staff-form input[type="date"] { color-scheme: light; }
[data-theme="dark"] #staff-form input[type="date"] { color-scheme: dark; }
:is(#role-dialog, .catalog-dialog) { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--line); border-radius: 14px; padding: 20px; color: inherit; }
:is(#role-dialog, .catalog-dialog)::backdrop { background: #103c4566; }
:is(#role-dialog, .catalog-dialog) header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-end: 16px; }
:is(#role-dialog, .catalog-dialog) h2 { margin: 0; }
.role-member { display: flex; align-items: center; gap: 8px; }
.role-member input { width: auto; }
:is([data-staff-role], tr:has([data-job-title])) { cursor: pointer; }
:is([data-staff-role], tr:has([data-job-title])):is(:hover, :focus-within) { background: #e0f5e5; }
[data-theme="dark"] :is([data-staff-role], tr:has([data-job-title])):is(:hover, :focus-within) { background: #285344; }
#period-dialog { inset: 0; margin: 0; margin-inline-start: auto; width: min(100%, 540px); max-width: 100%; height: 100%; max-height: 100%; border: 0; padding: 20px; color: inherit; }
#period-dialog::backdrop { background: #103c4566; }
#period-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#period-dialog h2 { margin: 0; }
.period-overtime-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: end; gap: 12px; }
.period-overtime-fields :is(input, select) { width: 100%; min-width: 0; }
.period-flexible-option { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.period-flexible-option input { width: auto; }
#timed-period-settings { display: grid; gap: 15px; min-inline-size: 0; padding: 0; margin: 0; border: 0; }
.period-window { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.period-window summary { cursor: pointer; font-weight: 700; }
.period-times, .period-fields { display: grid; gap: 10px; }
.period-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-periods-table th:last-child { text-align: end; }
.work-periods-table td:last-child .actions { justify-content: end; }
.period-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-start: 12px; }
.period-fields label { grid-template-rows: 1fr auto; min-width: 0; }
.period-fields input { width: 100%; min-width: 0; height: 44px; }
.period-time-picker { position: relative; margin-block-start: 5px; }
.period-time-picker summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-variant-numeric: tabular-nums; }
.period-time-picker summary::-webkit-details-marker { display: none; }
.period-time-picker summary::after { content: '⌄'; color: var(--muted); }
.period-time-picker:is([open], :hover) summary { border-color: var(--mint); }
.period-time-menu { position: absolute; inset-block-start: calc(100% + 5px); inset-inline-start: 0; z-index: 2; width: min(100%, 180px); min-width: 112px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #192b32; box-shadow: 0 8px 22px #0006; }
.period-time-halves, .period-time-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.period-time-columns { margin-block: 6px; border-block: 1px solid var(--line); }
.period-time-wheel { display: grid; align-content: start; max-height: 154px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.period-time-menu button[data-time-part] { border: 0; border-radius: 5px; padding: 6px 3px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.period-time-menu button[data-time-part]:hover { background: #25454b; }
.period-time-menu button[aria-pressed="true"] { background: var(--mint); color: #102a23; font-weight: 700; }
.period-time-menu > button { width: 100%; }
@media (max-width: 360px) {
  .period-fields { grid-template-columns: 1fr; }
}
.table-wrap {
  max-block-size: min(68dvh, 720px);
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}
.table-wrap > table > thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
  box-shadow: 0 1px 0 var(--line);
}
.table-wrap:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.request-settings-card > .table-wrap { max-block-size: min(55dvh, 560px); }
.request-settings-table { min-width: 0; }
.request-settings-table th:last-child, .request-settings-table td:last-child { width: 90px; text-align: center; }
.request-settings-table thead th { background: var(--dark-raised, #28454e); }


/* Local UX refresh: one table pattern, predictable focus and quieter density. */
.ux-icon { width: 22px; height: 22px; vertical-align: middle; flex: 0 0 auto; }
.button .ux-icon { width:18px; height:18px; }
.ux-list-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block: 14px; }
.ux-list-toolbar input { flex: 1 1 210px; min-width: 0; max-width: 370px; }
.ux-list-toolbar select { width: auto; max-width: 240px; }
.ux-result-count, .ux-save-note, .ux-scope { color: var(--muted); font-size: .85rem; }
.ux-scope { max-width: 240px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 20px; }
.ux-density { margin-block: 0 12px; }
.ux-clickable-row { cursor: pointer; }
.ux-clickable-row:hover, .ux-clickable-row:focus-within { background: color-mix(in srgb, var(--mint) 12%, transparent); }
.ux-no-results { padding: 18px; color: var(--muted); }
.ux-field-error, .ux-action-error { color: #ffb7bc; font-size: .9rem; }
.ux-action-error { padding: 12px; border: 1px solid #b64954; border-radius: 10px; }
[aria-invalid="true"] { border-color: #f9808b !important; }
.ux-unsaved { font-size: .85rem; color: #f6cc83; margin: 8px 0; }
.ux-login-section { margin-block-start: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.ux-login-section summary { cursor: pointer; font-weight: 700; margin-block-end: 12px; }
.ux-bulk-people { max-height: 230px; overflow: auto; }
.ux-bulk-people label { display: flex; align-items: center; gap: 8px; padding: 7px; }
.ux-bulk-periods { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; padding:12px; }
.ux-bulk-periods label.ux-bulk-period { display:flex; flex-direction:row; align-items:center; gap:10px; padding:12px; border:1px solid var(--line); border-radius:10px; cursor:pointer; margin:0; }
.ux-bulk-periods .ux-bulk-period input { flex:none; width:16px; height:16px; margin:0; }
.ux-bulk-period span { display:grid; gap:4px; }
.ux-bulk-period small { opacity:.8; direction:ltr; text-align:start; }
.ux-bulk-period:has(input:checked) { border-color:var(--mint); background:#7bcdb512; }
.ux-bulk-actions { display:flex; justify-content:flex-end; gap:8px; margin-block-start:14px; }
.ux-bulk-preview { max-height: 240px; overflow: auto; margin-block: 12px; }
.ux-bulk-preview ul { padding-inline-start: 22px; }
.table-wrap > table > tbody > tr > :first-child,
.table-wrap > table > thead > tr:last-child > :first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--card, #1a3038); }
.table-wrap > table > thead > tr:last-child > :first-child { z-index: 4; background: var(--line, #28454e); }
.payroll-table-wrap { max-height: 65dvh; }
.payroll-table-wrap .payroll-staff-cell { position: sticky; inset-inline-start: 90px; z-index: 1; background: #1a3038; min-width: 180px; }
.payroll-table tr > :first-child { min-width: 90px; }
.ux-payroll-compact { min-width: 640px; }
.ux-payroll-compact th, .ux-payroll-compact td { white-space: nowrap; }
.ux-request-card { display: block; width: 100%; text-align: start; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-block: 12px; background: #1b3038; color: inherit; cursor: pointer; }
.ux-request-card strong { display: block; }
.ux-request-card small { display: block; color: var(--muted); margin-block-start: 5px; }
.ux-request-timeline { padding-inline-start: 24px; }
.ux-request-timeline li { padding: 10px; border-inline-start: 2px solid var(--line); }
.ux-request-summary { padding: 12px; margin-block: 12px; background: #233f47; border-radius: 12px; }
.ux-attention-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 12px; }
.ux-attention-list a { padding: 15px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.ux-attention-list strong { display: block; font-size: 1.35rem; }
.ux-report-context { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 12px; color: var(--muted); }
.ux-phrase-preview { display: block; font-size: .95rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phrase-editor-row { border-radius: 10px; padding: 10px; }
.phrase-editor-row summary { cursor: pointer; }
#staff-form > button[type="submit"], #staff-form > .primary, #encouragement-settings-form > .actions { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -5px 18px #12242b; margin-block-start: 18px; }
html[data-density="compact"] :is(th,td) { padding-block: 9px; }
html[data-density="compact"] #main h1 { font-size: 2rem; }
html[data-density="compact"] .card { padding-block: 16px; }
button:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
@media (max-width:750px) { .ux-scope { display:none; } .ux-list-toolbar > * { max-width:100%; } .employee-portal button:not(.employee-calendar-day) { min-height:44px; } .ux-request-card { padding:14px; } }
@media print {
  .ux-density, .ux-list-toolbar, .ux-unsaved, .ux-scope { display:none !important; }
  .table-wrap, :is(.partners-card, .staff-directory):has(:is([data-partner-link], [data-staff-link])) .table-wrap { max-height:none !important; max-block-size:none !important; overflow:visible !important; inline-size:auto !important; padding:0 !important; margin:0 !important; }
  .table-wrap :is(thead,th,td) { position:static !important; box-shadow:none !important; }
}
@media print {
  .table-wrap { max-block-size: none; overflow: visible; inline-size: auto; padding: 0; margin: 0; }
  .table-wrap > table > thead { position: static; box-shadow: none; }
}
.daily-attendance-table { min-width: 740px; }
.attendance-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
#attendance-search { width: min(100%, 220px); min-width: 0; }
.attendance-date-controls { display: flex; direction: ltr; align-items: center; gap: 8px; flex-shrink: 0; }
.attendance-date-controls button { border: 0; background: transparent; color: inherit; width: 30px; height: 36px; cursor: pointer; }
.attendance-calendar { display: block; flex: 0 0 160px; width: 160px; margin: 0; }
.attendance-calendar > .date-control { display: flex; width: 100%; min-width: 0; }
.attendance-calendar .date-control-display { position: static; opacity: 1; height: 38px; cursor: text; }
.daily-attendance-table :is(th, td):nth-child(n+4) { text-align: center; white-space: nowrap; }
.attendance-shift { width: fit-content; max-width: 100%; padding: 8px 10px; }
.attendance-shift + .attendance-shift { margin-block-start: 6px; }
.leave-types-table :is(th, td):nth-child(2) { width: 12rem; text-align: center; }
.leave-types-table :is(th, td):last-child { width: 5rem; text-align: center; }
.leave-switch { display: inline-flex; align-items: center; width: 34px; height: 20px; padding: 2px; border: 1px solid var(--muted); border-radius: 999px; background: transparent; }
.leave-switch span { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); }
.leave-switch[aria-checked="true"] { justify-content: flex-end; background: var(--forest); border-color: var(--forest); }
.leave-switch[aria-checked="true"] span { background: white; }
.leave-switch[data-request-preference][aria-busy="true"] { opacity:1; cursor:progress; }
#leave-type-form { margin-top: 18px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { background: #eff5f0; color: #405c4f; font-size: 12px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.staff-roles-table :is(th, td):nth-child(2) { width: 30%; text-align: center; }
.staff-roles-table :is(th, td):last-child { width: 1%; white-space: nowrap; text-align: center; }
td small { display: block; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 20px; white-space: nowrap; background: #edf0ed; color: #44564d; font-size: 12px; font-weight: 650; }
.green { background: #e0f3e5; color: #205337; }
.amber { background: #fff0cc; color: #65460d; }
.red { background: #fde9e4; color: #8a382e; }
.button { min-height: 40px; border-radius: 8px; padding: 8px 13px; border: 1px solid transparent; font-weight: 650; }
.primary { background: #165663; color: white; }
.hero .primary { background: var(--mint); color: var(--forest); }
.secondary { background: #fff; border-color: var(--line); color: var(--forest); }
.secondary:hover { background: #edf5ef; }
.compact { min-height: 33px; padding: 5px 9px; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
form, .fields { display: grid; gap: 15px; }
.fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); }
form h2, form p { margin-bottom: 0; }
form > .button { justify-self: start; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #c2d1c7; border-radius: 8px; background: white; color: inherit; }
textarea { min-height: 86px; resize: vertical; }
.suffix { display: flex; align-items: center; gap: 5px; }
.suffix, input[type="email"] { direction: ltr; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .eyebrow { letter-spacing: normal; }
.filter { max-width: 185px; margin-bottom: 15px; }
.empty { margin-bottom: 0; }
#add-location { margin-block-start: 14px; }
#location-form { margin-block-start: 20px; }
#location-form h3 { margin: 0; }
.location-assignees { min-inline-size: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.location-assignee-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 8px; max-height: 16rem; overflow-y: auto; }
.location-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-block-end: 14px; }
.location-toolbar h2 { margin: 0; }
.attendance-method-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.attendance-method-branches { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.attendance-method-branches [aria-pressed="true"] { border-color: var(--mint); }
.attendance-method-members { max-height: 55dvh; overflow: auto; }
.attendance-method-members > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border-block-end: 1px solid var(--line); }
.attendance-method-members small { display: block; color: var(--muted); }
.organization-overview, .organization-overview-name { display: flex; align-items: center; gap: 12px; }
.organization-overview { justify-content: space-between; flex-wrap: wrap; }
.organization-overview-name h2 { margin: 0; }
.organization-overview-name img { width: 42px; height: 42px; object-fit: contain; }
.organization-overview-metrics { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.organization-overview-metrics div { display: flex; flex-direction: column-reverse; min-width: 92px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; }
.organization-overview-metrics dt { color: var(--muted); font-size: 12px; }
.organization-overview-metrics dd { margin: 0; font-weight: 700; }
.organization-profile summary { cursor: pointer; font-weight: 700; }
.organization-profile[open] summary { margin-block-end: 14px; }
.location-table tbody tr { cursor: pointer; }
.location-table tbody tr:is(:hover, :focus-within) { background: #e0f5e5; }
[data-theme="dark"] .location-table tbody tr:is(:hover, :focus-within) { background: #285344; }
#location-map { position: relative; overflow: hidden; height: clamp(270px, 42vh, 460px); border: 1px solid var(--line); border-radius: 10px; isolation: isolate; }
.toast { position: fixed; bottom: 16px; right: 16px; max-width: min(400px, calc(100vw - 32px)); padding: 13px 17px; border-radius: 9px; background: #173d33; color: white; box-shadow: 0 4px 20px #0003; }
.toast.error { background: #893629; }
.approval-queue-status { bottom: 84px; z-index: 20; }
@media (max-width: 750px) {
  .sidebar { position: static; width: 100%; gap: 12px; padding: 13px; }
  .workspace, .sidebar-foot { display: none; }
  nav { display: flex; overflow-x: auto; }
  nav a { white-space: nowrap; padding: 8px; font-size: 13px; gap: 5px; }
  .shell { margin-inline-start: 0; }
  main, .topbar { padding: 15px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .hero, .card { padding: 16px; }
}

.schedule-week { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-block-end: 14px; }
.schedule-week h2 { margin: 0; }
.weekly-schedule table { min-width: 980px; }
.weekly-schedule td { padding-block: 5px; }
.schedule-cell { display: grid; gap: 4px; min-width: 108px; }
.schedule-add { min-height: 44px; border: 1px solid transparent; border-radius: 8px; background: #f2f6f6; color: var(--muted); font-size: 19px; }
[data-theme="dark"] .schedule-add { background: #20383e; }
.schedule-add.has-periods { min-height: 24px; font-size: 16px; line-height: 1; }
.schedule-add:is(:hover, :focus-visible) { border-color: var(--forest); color: var(--forest); }
[data-theme="dark"] .schedule-add:is(:hover, :focus-visible) { border-color: var(--mint); color: var(--mint); }
:is(.schedule-period, .attendance-shift) { display: grid; gap: 3px; border-radius: 8px; border-inline-start: 4px solid var(--period-color, #8754ac); background: color-mix(in srgb, var(--period-color, #8754ac) 24%, white); color: #172329; }
.period-dot { display: inline-block; width: 0.8em; height: 0.8em; flex: none; margin-inline-end: 0.4em; border-radius: 50%; background: var(--period-color, #8754ac); }
.period-color-picker { border: 1px solid var(--line); border-radius: 8px; }
.period-color-picker summary { padding: 10px 12px; cursor: pointer; }
.period-color-picker .period-dot { margin-inline-start: 0.45em; }
.period-color-palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 8px; padding: 0 12px 12px; }
#period-form .period-color-palette input { appearance: none; display: grid; place-items: center; width: 100%; height: 44px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--period-color); cursor: pointer; }
.period-color-palette input:checked::after { content: "✓"; color: #172329; background: #fff; border-radius: 50%; width: 1.5em; text-align: center; font-weight: 700; }
.period-color-palette input:checked { box-shadow: inset 0 0 0 2px #fff; }
.period-color-palette input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
:is(.schedule-period, .attendance-shift) small { color: inherit; }
.schedule-period { position: relative; min-height: 40px; padding: 4px 6px; gap: 1px; line-height: 1.25; }
.schedule-period small { margin-block-start: 0; font-size: .7rem; }
.schedule-period small bdi { white-space: nowrap; }
.schedule-period-actions .secondary { border-color: currentColor; }
[data-theme="dark"] .schedule-period { --dark-surface: #f8f3fa; --dark-raised: #ffffff; --line: #806d89; }
.schedule-period-actions { display: flex; justify-content: end; align-items: center; gap: 5px; }
.schedule-period-actions .button { min-width: 32px; min-height: 30px; padding: 4px; }
@media (hover: hover) and (pointer: fine) {
  .schedule-period-actions { position: absolute; inset: 0; padding: 6px; border-radius: inherit; background: inherit; opacity: 0; pointer-events: none; }
  .schedule-period:is(:hover, :focus-within) .schedule-period-actions { opacity: 1; pointer-events: auto; }
}
.schedule-options { display: grid; gap: 8px; max-height: 55dvh; overflow: auto; }
.schedule-options label { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.schedule-options input { width: auto; }
.period-branch-toggle { width: 18px; height: 18px; min-height: 0; margin: 0; vertical-align: middle; cursor: pointer; accent-color: var(--mint); }
.work-periods-table td:has(.period-branch-toggle) { text-align: center; }
.schedule-options small { display: block; }
.schedule-assignment-fields { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.schedule-rest-label { font-size: 0.85rem; }
.staff-default-periods { min-width: 0; margin: 12px 0 0; border: 1px solid var(--line); border-radius: 8px; }
.staff-default-periods .schedule-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); max-height: 260px; }
.staff-default-periods .schedule-options label { min-width: 0; min-height: 76px; }
.staff-default-periods .schedule-options label > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.staff-default-periods .schedule-options input { flex: 0 0 auto; min-height: 0 !important; }
.staff-default-periods .schedule-options label:has(input:checked) { border-color: var(--mint); background: #74e5a012; }
#schedule-assignment-error:empty { display: none; }
.period-name, .period-duration { font-size: 16px; }
.period-name { color: inherit; border: 0; background: none; padding: 4px 0; text-decoration: underline; font-weight: 700; text-align: start; }

:root[data-theme="dark"] {
  color-scheme: dark;
  color: #e8f4f4;
  background: #101c21;
  --muted: #acc4c8;
  --line: #39545c;
  --dark-surface: #192b32;
  --dark-raised: #25414a;
}
[data-theme="dark"] :is(.topbar, .metric, .card, .settings-tile, .secondary, input, select, textarea, #period-dialog, #staff-dialog, #role-dialog, .catalog-dialog) {
  background: var(--dark-surface);
  color: inherit;
  border-color: var(--line);
}
[data-theme="dark"] :is(th, .settings-icon, .secondary:hover, .settings-tile:hover) {
  background: var(--dark-raised);
  color: inherit;
}
[data-theme="dark"] :is(.schedule-tabs button[aria-pressed="true"], .period-name) { color: var(--mint); }
[data-theme="dark"] .schedule-tabs button[aria-pressed="true"] { border-block-end-color: var(--mint); }
[data-theme="dark"] .primary:not(.hero .primary) { background: #206876; }
[data-theme="dark"] .badge { background: #34454b; color: #e2ecee; }
[data-theme="dark"] .badge.green { background: #204b3d; color: #b6f1d1; }
[data-theme="dark"] .partners-table .badge.green { background: #c8f5d8; color: #174b2b; }
[data-theme="dark"] .badge.amber { background: #51401f; color: #ffe0a1; }
[data-theme="dark"] .badge.red { background: #553136; color: #ffd2cf; }
[data-theme="dark"] .logo-remove { color: #ffaaa3; }
[data-theme="dark"] :is(input, textarea)::placeholder { color: #a9c2c9; opacity: 1; }

.account-menu { position: relative; font-weight: 400; }
.account-menu > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); font-size: 26px; color: var(--muted); }
.account-identity { display: grid; font-size: 13px; text-align: start; }
.account-identity bdi { color: var(--muted); font-size: 12px; }
.account-dropdown { position: absolute; inset-inline-end: 0; top: calc(100% + 14px); z-index: 100; min-width: 230px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #1b3036); box-shadow: 0 12px 28px #0004; overflow: hidden; }
.account-dropdown > a, .account-dropdown > button, .account-dropdown #language, .account-dropdown #logout-button { display: flex; justify-content: space-between; width: 100%; padding: 14px 16px; color: inherit; background: transparent; text-decoration: none; border: 0; border-radius: 0; text-align: start; font: inherit; cursor: pointer; }
.account-dropdown > * + * { border-block-start: 1px solid var(--line); }
.account-dropdown :is(a, button):hover { background: #7bcdb522; }
.ux-theme-menu { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 16px; }
.ux-theme-switch { flex:none; width:38px; height:22px; padding:2px; border:1px solid var(--line); border-radius:20px; background:#42585c; cursor:pointer; }
.ux-theme-switch > span { display:block; width:16px; height:16px; border-radius:50%; background:#efede5; transform:translateX(0); transition:transform .18s ease; }
.ux-theme-switch[aria-checked="true"] { background:#397b69; }
.ux-theme-switch[aria-checked="true"] > span { transform:translateX(16px); }
[dir="rtl"] .ux-theme-switch[aria-checked="true"] > span { transform:translateX(-16px); }
.ux-theme-switch:focus-visible { outline:2px solid var(--mint); outline-offset:3px; }
/* Compact mobile switches share the same quiet pill and cream thumb. */
.employee-setting-row :is(input.employee-theme-switch,button.employee-biometric-switch) { appearance:none; position:relative; flex:0 0 38px; box-sizing:border-box; width:38px; height:22px; min-height:0; padding:2px; margin:0; border:1px solid #405e63; border-radius:999px; background:#2b464b; box-shadow:none; cursor:pointer; }
.employee-theme-switch::before, .employee-biometric-switch span { content:''; position:absolute; inset-block-start:2px; inset-inline-start:2px; display:block; width:16px; height:16px; border-radius:50%; background:#efede5; transition:transform .18s ease; }
.employee-setting-row input.employee-theme-switch:checked { background:#397b69; }
.employee-theme-switch:checked::before { transform:translateX(16px); }
[dir="rtl"] .employee-theme-switch:checked::before { transform:translateX(-16px); }
.employee-setting-row button.employee-biometric-switch:disabled { opacity:1; cursor:not-allowed; }

[data-profile-avatar] { cursor:pointer; overflow:hidden; }
[data-profile-avatar] img { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
[data-profile-avatar]:focus-visible { outline:2px solid var(--mint); outline-offset:3px; }
[data-theme="light"] .account-dropdown { background: white; }
@media(max-width:600px) { .account-identity { max-width: 145px; overflow-wrap: anywhere; } }

.staff-profile-tabs a[aria-current="page"] { color: var(--forest); border-block-end-color: var(--forest); }
[data-theme="dark"] .staff-profile-tabs a[aria-current="page"] { color: var(--mint); border-block-end-color: var(--mint); }

.staff-directory tbody tr:has(.staff-profile-name) { cursor: pointer; transition: background-color .15s ease; }
.staff-directory tbody tr:has(.staff-profile-name):is(:hover, :focus-within) { background: #73c9a61c; }
.staff-directory tbody tr:is(:hover, :focus-within) > td { background: color-mix(in srgb, var(--mint) 12%, var(--dark-surface, #1b3036)); }
.staff-directory tbody tr:is(:hover, :focus-within) .staff-profile-name { color: inherit; text-decoration: none; }
.staff-profile-name { display: inline-block; min-height: 36px; padding: 8px 0; text-decoration:none; }

.staff-directory:has([data-staff-link]) { margin-inline-end: 170px; }
.staff-directory .table-wrap {
  max-block-size: none;
  overflow-x: auto;
}
.staff-table-layout { position: relative; min-width: 0; }
.staff-activation-rail { position: absolute; inset-inline-start: calc(100% + 42px); top: 0; width: 140px; }
.staff-activation-rail [data-staff-link] { position: absolute; transform: translateY(-50%); white-space: nowrap; background: #e9a52b; border-color: #e9a52b; color: #241800; }
.staff-activation-rail [data-staff-link]:hover { background: #f5bb4b; }
@media(max-width:600px) {
  .staff-directory:has([data-staff-link]) { margin-inline-end: 135px; }
  .staff-activation-rail { inset-inline-start: calc(100% + 28px); width: 120px; }
  .staff-activation-rail [data-staff-link] { padding-inline: 7px; font-size: 11px; }
}

#main .staff-activation-rail button[data-staff-link] { background: #e9a52b; border-color: #e9a52b; color: #241800; }
#main .staff-activation-rail button[data-staff-link]:hover { background: #f5bb4b; }

.staff-leave-entry { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 14px; }
@media(max-width:500px) { .staff-leave-entry { grid-template-columns: 1fr; } }

.leave-policy-option { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; margin-block: 12px; cursor: pointer; }
.leave-policy-option:has(input:checked) { background: #73c9a614; border-color: var(--mint); }
.leave-policy-option span { display: flex; align-items: center; gap: 8px; }
.leave-policy-option input { margin: 0; width: auto; min-height: 0; }
.leave-policy-option small { color: var(--muted); }
#leave-carryover-days { max-width: 250px; }

.employee-leave-tabs { display: flex; gap: 8px; margin-block: 16px; }
.employee-leave-tabs button { flex: 1; padding: 10px 7px; background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 12px; cursor: pointer; }
.employee-leave-tabs button[aria-pressed="true"] { color: #10292b; background: var(--portal-accent); }
.employee-leave-gauge { position: relative; max-width: 320px; margin: 24px auto; }
.employee-leave-gauge svg { display: block; width: 100%; overflow: visible; }
.employee-leave-gauge path { fill: none; stroke-width: 14px; stroke-linecap: round; }
.leave-gauge-track { stroke: var(--line); }
#employee-leave-gauge-value { stroke: var(--portal-accent); transition: stroke-dasharray .2s; }
.employee-leave-gauge > div { position: absolute; bottom: 8%; inset-inline: 0; text-align: center; display: grid; gap: 5px; }
.employee-leave-gauge strong { font-size: 32px; font-weight: 500; }
.employee-leave-gauge small { color: var(--muted); }
.employee-leave-numbers { margin: 0; }
.employee-leave-numbers > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--line); }
.employee-leave-numbers dd { margin: 0; }
#employee-profile-leaves { padding: 0; list-style: none; }
#employee-profile-leaves li { display: grid; gap: 8px; padding: 14px; margin-block: 12px; border: 1px solid var(--line); border-radius: 10px; }
#employee-profile-leaves bdi, #employee-profile-leaves span { font-size: 13px; color: var(--muted); }
.employee-content dl.employee-leave-numbers { display: block; margin: 0; }

.employee-profile-heading { display: flex; align-items: center; gap: 14px; margin-block: 18px; }
.employee-profile-heading h3 { margin: 0; font-size: 20px; }
.employee-profile-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.employee-profile-avatar { width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--portal-surface); }
.employee-profile-avatar svg { width: 32px; height: 32px; fill: var(--muted); }
.employee-profile-tabs { display: flex; gap: 10px; margin-block: 16px 24px; }
.employee-profile-tabs button { border: 1px solid var(--line); border-radius: 9px; background: transparent; color: inherit; font: inherit; padding: 10px 20px; cursor: pointer; }
.employee-profile-tabs button[aria-pressed="true"] { background: var(--portal-accent); border-color: var(--portal-accent); color: #10292b; }
.employee-profile-directory { display: grid; gap: 12px; }
.employee-profile-directory button { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 20px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--portal-surface); color: inherit; text-align: start; font: inherit; cursor: pointer; }
.employee-profile-directory button > span:first-child { display: grid; gap: 8px; }
.employee-profile-directory small { color: var(--muted); font-size: 13px; }
.employee-profile-directory button:hover { border-color: var(--portal-accent); }
.employee-profile-search input { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#employee-leave-gauge-value { stroke: #78dca0; }
#employee-leave-gauge-opening { stroke: #8ca8ff; transition: stroke-dasharray .2s; }
.employee-leave-numbers > div:has(#employee-leave-entitlement) dt::before,
.employee-leave-numbers > div:has(#employee-leave-opening) dt::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 8px; background: #78dca0; }
.employee-leave-numbers > div:has(#employee-leave-opening) dt::before { background: #8ca8ff; }

#employee-profile-leaves li { padding: 20px; border-radius: 16px; background: var(--surface, #192e34); }
#employee-profile-leaves dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0; }
#employee-profile-leaves dl > div { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
#employee-profile-leaves dt { color: var(--muted); flex-shrink: 0; }
#employee-profile-leaves dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
#employee-profile-leaves .employee-leave-status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
#employee-profile-leaves .employee-leave-status-upcoming { background: #f8c8dd; color: #792747; }
#employee-profile-leaves .employee-leave-status-current { background: #a9e9c0; color: #16452a; }
#employee-profile-leaves .employee-leave-status-previous { background: #d2d6df; color: #343b4b; }

.employee-profile-tabs { gap: 8px; }
.employee-profile-tabs button { flex: 1; padding: 10px 8px; min-width: 0; font-size: 13px; }
.employee-settings-list { padding: 4px 20px; }
.employee-settings-list .employee-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 25px 0; margin: 0; width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: inherit; text-align: start; font: inherit; }
.employee-setting-row small { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; }
.employee-setting-row > span[aria-hidden] { font-size: 28px; color: var(--muted); }
.employee-setting-row select { width: auto; max-width: 45%; margin: 0; }
.employee-settings-list .employee-settings-logout { color: #ff827b; border-bottom: 0; cursor: pointer; }
.employee-settings-logout > span[aria-hidden] { color: inherit; }

.employee-settings-list button:not(:disabled) { cursor: pointer; }

.employee-greeting.is-encouragement { font-size: clamp(20px, 5vw, 28px); line-height: 1.55; text-wrap: pretty; }

.phrase-editor-list { max-height: 58vh; overflow-y: auto; padding: 4px; }
.phrase-editor-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-bottom: 12px; border: 1px solid var(--line, #39565e); border-radius: 12px; padding: 12px; }
.phrase-editor-row label:nth-child(-n+2) { grid-column: 1 / -1; }
.phrase-editor-row label:has(input[type=checkbox]) { display: flex; align-items: center; gap: 6px; }
.phrase-editor-row input[type=checkbox] { width: auto; }
.setup-welcome { max-width: 520px; text-align: center; }
.setup-welcome p { line-height: 1.9; margin-block: 20px; }
.setup-overlay { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.setup-shade { position: absolute; background: rgb(0 0 0 / 65%); pointer-events: auto; }
.setup-tip { position: absolute; box-sizing: border-box; max-width: min(280px, calc(100vw - 16px)); padding: 10px 16px; border-radius: 10px; background: #cff7e7; color: #102c2b; font-weight: 700; box-shadow: 0 4px 20px #0005; }
.setup-tip { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: auto; }
.setup-next { align-self: flex-end; min-width: 76px; padding: 7px 16px; }
.setup-highlight { outline: 3px solid #8ce4c5 !important; outline-offset: 4px; border-radius: 10px; }
.setup-skip { position: fixed; bottom: 16px; left: 16px; pointer-events: auto; background: #19323b !important; color: white !important; }

.setup-congratulations::backdrop { background: transparent; backdrop-filter: none; }

.payroll-months { display: grid; gap: 10px; }
.payroll-month { display: flex; align-items: center; gap: 16px; text-align: start; padding: 20px; border: 1px solid var(--line, #39565e); border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.payroll-month strong { flex: 1; }
.payroll-month:hover { border-color: #83c9b3; background: #83c9b30a; }
.payroll-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block: 16px; }
.payroll-heading h1, .payroll-heading h2 { margin: 0; }
#payroll-search { max-width: 380px; }
.staff-profile-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; border-block-end: 1px solid var(--line); margin-block-end: 18px; }
.staff-profile-toolbar .staff-profile-tabs { border: 0; margin: 0; }
.staff-profile-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; padding-block: 4px; }
.staff-profile-actions > button { padding: 5px 9px; }
.staff-profile-menu { position: relative; }
.staff-profile-menu summary { list-style: none; cursor: pointer; font-size: 18px; line-height: 1; padding: 5px 7px; }
.staff-profile-menu summary::-webkit-details-marker { display: none; }
.staff-profile-menu > .card { position: absolute; inset-inline-end: 0; z-index: 5; display: grid; gap: 6px; padding: 8px; min-inline-size: max-content; }
.staff-profile-menu button { text-align: start; }
.catalog-dialog.staff-request-drawer { position: fixed; inset: 0 auto 0 0; margin: 0; inline-size: min(460px, 100%); block-size: 100dvh; max-block-size: 100dvh; max-inline-size: 100%; box-sizing: border-box; border-radius: 0; overflow-y: auto; }
@media (prefers-reduced-motion: no-preference) {
  .staff-request-drawer[open] { animation: staff-request-enter .2s ease-out; }
  @keyframes staff-request-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
}
#payroll-search { max-width: 380px; }
.payroll-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-block: 24px; }
.payroll-summary .card { margin: 0; }
.payroll-summary h2 { font-size: 15px; }
.payroll-summary strong { font-size: clamp(20px,2vw,28px); }
.payroll-positive { color: #7fdab6; }
.payroll-negative { color: #ff939b; }
.payroll-table { width: max-content; min-width: 100%; font-size: 13px; }
.payroll-table th { min-width: 145px; max-width: 290px; white-space: normal; line-height: 1.6; }
.payroll-table td { min-width: 145px; text-align: center; }
.payroll-table .payroll-staff-cell { min-width: 210px; }
.payroll-addition { background: #45c9970b; }
.payroll-deduction { background: #ff849009; }
.payroll-cell-add { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.payroll-cell-add:hover:not(:disabled) { border-color: #83c9b3; background: #83c9b310; }
.payroll-cell-add:disabled { opacity: 1; cursor: default; }
.payroll-cell-add:disabled > span { visibility: hidden; }
.payroll-cell-actions { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.payroll-cell-actions > .payroll-cell-add { padding-inline: 8px; }
.payroll-drawer { position: fixed; inset: 12px auto auto 12px; margin: 0; width: min(460px,calc(100vw - 24px)); max-width: calc(100vw - 24px); height: auto; max-height: calc(100dvh - 24px); padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--dark-surface, #fff); color: inherit; font: inherit; box-shadow: 0 12px 38px #0003; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
.payroll-drawer::-webkit-scrollbar { display: none; }
.payroll-drawer::backdrop { background: #103c4566; }
.payroll-drawer > header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.payroll-drawer .card { margin-block: 12px; padding: 16px; border-radius: 14px; }
.payroll-drawer > header h2 { margin: 0; font-size: 22px; }
.payroll-drawer > header p { margin: 6px 0 0; font-size: 13px; }
.payroll-drawer h3 { margin: 0 0 12px; font-size: 16px; }
.payroll-drawer .payroll-net { font-size: 25px; }
.payroll-drawer .payroll-details { gap: 8px; margin-block-end: 0; font-size: 14px; }
.payroll-drawer .payroll-detail-line { padding: 11px 12px; margin-block: 8px; font-size: 14px; }
.payroll-net { font-size: 29px; }
.payroll-details { display: grid; gap: 14px; }
.payroll-details > div { display: flex; justify-content: space-between; gap: 18px; }
.payroll-details dd { margin: 0; }
.payroll-detail-line { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; margin-block: 10px; background: transparent; border: 1px solid var(--line, #39565e); border-radius: 10px; color: inherit; cursor: pointer; text-align: start; }
.payroll-adjustment-item { padding-block: 16px; border-block-start: 1px solid var(--line, #39565e); overflow-wrap: anywhere; }
.payroll-adjustment-item .button { margin-inline: 8px; }
.payroll-upload { padding: 24px; border: 1px dashed var(--line, #39565e); border-radius: 10px; text-align: center; }
.payroll-upload input { max-width: 100%; }
#payroll-dialog { max-height: 90dvh; overflow-y: auto; }
@media (max-width:750px) { .payroll-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } .payroll-drawer { padding: 16px; } }

.payroll-months-wrap { max-height: 65vh; overflow: auto; border: 1px solid var(--line, #39565e); border-radius: 12px; }
.payroll-months-table { width: 100%; min-width: 620px; }
.payroll-months-table thead { position: sticky; top: 0; z-index: 1; }
.payroll-months-table th { background: #23434c; }
.payroll-months-table td { height: 82px; padding: 14px 20px; vertical-align: middle; }
.payroll-months-table td:first-child { min-width: 260px; }
.payroll-months-table td:not(:first-child), .payroll-months-table th:not(:first-child) { text-align: center; }
.payroll-month-range { display: block; margin-top: 7px; font-size: 12px; }
.payroll-month-filter { display: flex; flex-direction: row; align-items: center; gap: 10px; font-size: 13px; }
.payroll-month-filter select { width: auto; min-width: 145px; }

.payroll-months-table tbody tr { cursor: pointer; transition: background-color 160ms ease; }
.payroll-months-table tbody tr:hover, .payroll-months-table tbody tr:focus-visible { background-color: #31545c; }
.payroll-months-table tbody tr:focus-visible { outline: 2px solid #8ce4c5; outline-offset: -2px; }

.notification-row { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line); }
.notification-row .leave-switch { flex-shrink:0; }
.settings-tile-requests { grid-column: 1 / -1; max-width: 380px; }

/* Soft illuminated controls for the employee mobile interface. */
.employee-portal :is(.button, .employee-calendar-grid button) {
  background-image: linear-gradient(165deg, #ffffff14, transparent 48%, #ffffff08);
  box-shadow: inset 0 1px 0 #ffffff24, inset 0 -1px 0 #ffffff0a, 0 2px 8px #00000018;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.employee-portal .employee-calendar-header .button {
  border-color: #58c6c2;
  box-shadow: inset 0 1px 5px #77e4db26, 0 0 10px #48c9c51c;
}
.employee-portal .employee-calendar-grid button {
  --day-glow: #8ca8b6;
  border-color: color-mix(in srgb, var(--day-glow) 60%, #31454e);
  border-radius: 11px;
  color: #f5fcfa;
  background: linear-gradient(165deg, #ffffff18, transparent 48%),
    linear-gradient(to top, color-mix(in srgb, var(--day-glow) 38%, #172c34), #20313c);
  box-shadow: inset 0 1px 2px #ffffff30, inset 0 -2px 7px color-mix(in srgb, var(--day-glow) 24%, transparent), 0 2px 5px #00000020;
}
.employee-portal .employee-calendar-grid [data-day-status="complete"] { --day-glow: #25cb83; }
.employee-portal .employee-calendar-grid [data-day-status="issue"] { --day-glow: #ed5265; }
.employee-portal .employee-calendar-grid [aria-pressed="true"] {
  outline: 2px solid #aff2dc;
  outline-offset: 2px;
}
.employee-portal :is(.button, .employee-calendar-grid button):focus-visible {
  outline: 2px solid #c5fff0;
  outline-offset: 3px;
}
.employee-portal :is(.button, .employee-calendar-grid button):disabled { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .employee-portal :is(.button, .employee-calendar-grid button) { transition: none; }
}
#role-dialog.branch-role-dialog { width: min(1080px, calc(100% - 32px)); }
.branch-role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.branch-role-panel { padding: 16px; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.branch-role-panel h3 { margin-block-start: 0; }
.branch-role-panel fieldset { min-width: 0; margin-block: 14px; }
.branch-role-person { justify-content: space-between; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.branch-role-person span { display: grid; gap: 5px; }
.branch-role-person input { flex-shrink: 0; }
.management-notification-popup { position: fixed; z-index: 80; top: calc(var(--employee-header-height, 68px) + 8px); left: 16px; width: min(350px, calc(100vw - 32px)); max-height: min(420px, 65dvh); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 16px; color: var(--ink); background: var(--dark-surface, #fff); box-shadow: 0 14px 36px #0004; animation: notification-dropdown .3s ease-out; }
[data-theme="dark"] .management-notification-popup { color: #e8f4f4; background: #192b32; }
.management-notification-popup header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 8px; }
.management-notification-popup h2 { margin: 0; font-size: 1rem; }
.notification-preferences-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
.notification-preferences-columns > .card { margin-block: 0; min-inline-size: 0; }
@media (max-width: 850px) {
  .notification-preferences-columns { grid-template-columns: minmax(0, 1fr); }
}
.notification-display-preferences form { display: grid; gap: 14px; }
.notification-display-preferences input { max-width: 140px; }
@keyframes notification-dropdown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .management-notification-popup { animation: none; } }
.release-update-notice { position: fixed; z-index: 100; left: 18px; bottom: 22px; width: min(310px, calc(100vw - 36px)); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: #17343b; box-shadow: 0 12px 38px #0003; animation: release-slide-in .4s ease-out; }
[data-theme="dark"] .release-update-notice, .employee-portal .release-update-notice { background: #192b32; color: #e8f4f4; border-color: #46656c; }
.release-update-notice p { margin-block: 10px 14px; font-size: .9rem; }
.release-update-close { position: absolute; inset-inline-end: 8px; top: 6px; padding: 4px 8px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.employee-portal .release-update-notice { bottom: calc(86px + env(safe-area-inset-bottom)); }
@keyframes release-slide-in { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .release-update-notice { animation: none; } }

.schedule-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-block-end: 14px; }
.schedule-search { width: min(100%, 360px); }
#schedule-branch { width: min(100%, 264px); }

/* UX refinements after theme rules so frozen cells use the same surfaces. */
.table-wrap > table > tbody > tr > :first-child { background:var(--dark-surface,#fff); }
.table-wrap > table > thead > tr:last-child > :first-child { background:var(--dark-raised,#eaf1ee); }
.payroll-table thead tr:last-child > :nth-child(2) { position:sticky; inset-inline-start:90px; z-index:4; background:var(--dark-raised,#eaf1ee); }
.table-wrap .ux-freeze-two > tbody > tr > :nth-child(2) { position:sticky; inset-inline-start:var(--ux-identity-offset,90px); z-index:1; background:var(--dark-surface,#fff); }
.table-wrap .ux-freeze-two > thead > tr:last-child > :nth-child(2) { position:sticky; inset-inline-start:var(--ux-identity-offset,90px); z-index:4; background:var(--dark-raised,#eaf1ee); }
.staff-activation-rail :is([data-staff-link],[data-partner-link]) { position:absolute; transform:translateY(-50%);white-space:nowrap;background:#e9a52b;border-color:#e9a52b;color:#241800; }
.ux-form-footer { position:sticky; bottom:0; display:flex; gap:10px; flex-wrap:wrap; padding:14px 0; background:var(--dark-surface,#fff);z-index:5;box-shadow:0 -8px 16px #0002; }
.ux-columns { position:relative; margin-block:12px; width:max-content; max-width:100%; }
.ux-column-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px; min-width:min(600px,75vw);max-height:300px;overflow:auto;padding:14px;border:1px solid var(--line);border-radius:12px; }
.ux-column-options label { display:flex; gap:8px;align-items:center; }
.ux-column-options input, .ux-bulk-people input, .ux-list-toolbar input[type=checkbox] { width:auto; }
.ux-danger-menu { display:inline-block; }
.ux-danger-menu[open] { padding:6px;border:1px solid var(--line);border-radius:10px; }
.setup-progress { position:fixed; top:12px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 28px);padding:8px 14px;background:#193b42;color:#e7fff4;border:1px solid #8cd8bf;border-radius:12px;z-index:105;font-size:.85rem;pointer-events:none; }
.ux-tab-count { display:inline-block;min-width:19px;padding:1px 5px;border-radius:10px;background:#73c9a628; }
.request-row-actions .button { width:auto; min-width:68px; padding-inline:9px; white-space:nowrap; }
#staff-form { counter-reset:ux-form-sections; }
.staff-branch-group .staff-branch-no-matches { display:none; }
.staff-branch-group[data-no-filter-matches] .staff-branch-no-matches { display:block; }
.staff-branch-group[data-no-filter-matches] :is(.table-wrap,.staff-table-layout) { display:none; }
#staff-form > section > h3::before { counter-increment:ux-form-sections;content:counter(ux-form-sections) ' · ';color:var(--mint); }
.attendance-toolbar { flex-wrap:wrap; justify-content:flex-start; }
.attendance-toolbar :is(#attendance-search,#attendance-branch) { width:min(100%,220px); margin:0; }
.attendance-toolbar #attendance-branch { width: min(100%, 264px); }
.leave-balance-toolbar :is(input, select) { width: min(100%, 264px); margin: 0; }
.staff-leave-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 14px; align-items: start; }
.staff-leave-layout > * { min-width: 0; }
.staff-leave-summary { margin: 0; }
.staff-leave-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.staff-leave-summary > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.staff-leave-summary > div:last-child { border-bottom: 0; }
.staff-leave-summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.staff-leave-requests td:last-child { white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-leave-requests th select { width: auto; max-width: 100%; font: inherit; }
@media (max-width: 850px) { .staff-leave-layout { grid-template-columns: minmax(0, 1fr); } }
.attendance-sort { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; background: none; color: inherit; font-weight: inherit; }
.attendance-sort[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 3px; }
.attendance-toolbar #ux-attendance-status { width: 185px; max-width: 100%; flex: 0 0 185px; margin: 0; }
.attendance-toolbar #ux-attendance-count { flex: 0 0 100%; font-size: .8rem; }
.attendance-toolbar .attendance-date-controls { margin: 0; }
[dir="rtl"] .attendance-toolbar .attendance-date-controls { flex-direction: row-reverse; }
.attendance-job-filters { display:flex; flex-wrap:wrap; gap:6px; margin-block:0 12px; }
.attendance-job-filters button { display:inline-flex; align-items:center; gap:8px; min-height:32px; padding:5px 10px; border:1px solid var(--line); border-radius:8px; background:transparent; color:inherit; font-size:.8rem; cursor:pointer; }
.attendance-job-filters button small { color:var(--muted); font-size:.75rem; }
.attendance-job-filters button[aria-pressed="true"] { background:var(--forest); border-color:var(--mint); color:#fff; }
.attendance-job-filters button[aria-pressed="true"] small { color:inherit; }
html[data-density] .daily-attendance-table :is(th,td) { padding-block:5px; }
.daily-attendance-table td small { margin-top:2px; }
.daily-attendance-table .attendance-shift { padding:5px 8px; }
.daily-attendance-table .attendance-shift + .attendance-shift { margin-block-start:3px; }
@media(max-width:750px) { .attendance-toolbar #ux-attendance-status { flex-basis:170px; width:170px; } }
@media(max-width:750px){.ux-column-options{min-width:min(300px,75vw);grid-template-columns:1fr}.ux-request-card{min-height:70px}.ux-period-presets select{max-width:100%}}

/* Include frozen cells in the full-row hover. */
html .table-wrap > table > tbody > tr:is(:hover,:focus-within,:focus-visible) > :is(td,th), html .payroll-months-wrap > table > tbody > tr:is(:hover,:focus-within,:focus-visible) > :is(td,th) { background:var(--table-row-hover,#31545c); }
.staff-bank-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.staff-contract-fields { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;gap:16px; }
.staff-contract-fields #contract-custom { grid-column:1/-1; }

.leave-types-collapse > summary { cursor:pointer; font-size:1.1rem; font-weight:700; padding-block:8px; }
.leave-types-collapse[open] > summary { margin-block-end:16px; }

.ux-request-summary:has(.leave-entry-preview) {grid-column:1/-1;}
.leave-entry-preview {margin:12px 0 0;display:grid;gap:8px;}
.leave-entry-preview > div {display:flex;justify-content:space-between;gap:16px;}
.leave-entry-preview dd {margin:0;white-space:nowrap;}

.leave-types-table :is(th,td):first-child {width:auto;text-align:start;}
.leave-types-table :is(th,td):nth-child(2),
.leave-types-table :is(th,td):nth-child(3),
.leave-types-table :is(th,td):nth-child(4) {width:18%;text-align:center;vertical-align:middle;}
.leave-types-table td {padding-block:10px;}

.request-contract-dialog {background:var(--panel,#1b3037);width:min(420px,calc(100% - 32px));padding:22px;border-radius:18px;}
.request-contract-dialog header {position:relative;min-height:38px;padding-left:48px;}
.request-contract-dialog header h2 {font-size:1.1rem;line-height:1.6;}
.request-contract-dialog [data-dismiss] {position:absolute;left:0;top:0;width:34px;height:34px;padding:0;}
.request-contract-dialog fieldset {border:0;padding:0;margin:8px 0;display:grid;gap:10px;}
.request-contract-dialog legend {padding:0;margin-bottom:12px;color:var(--muted);}
.request-contract-dialog .role-member {display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:10px;cursor:pointer;}
.request-contract-dialog .role-member input {margin:0;width:18px;height:18px;}
.request-contract-dialog form > button {justify-self:end;min-width:88px;}

.request-settings-table :is(th,td):first-child {text-align:start;width:auto;}
.request-settings-table :is(th,td):nth-child(2),
.request-settings-table :is(th,td):nth-child(3) {width:20%;text-align:center;vertical-align:middle;}
.request-settings-table td {padding-block:10px;}

/* Shared fallback prevents native browser dialog borders on newly added modals. */
:where(dialog) {background:var(--dark-surface,#192b32);color:inherit;border:1px solid var(--line);border-radius:18px;padding:22px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-shadow:0 18px 60px #0003;}
:where(dialog)::backdrop {background:#07191d88;}
:where(dialog) > header {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;}
:where(dialog) > header h2 {margin:0;}
:where(dialog) > form {display:grid;gap:16px;}

.activation-shortcuts {display:inline-flex;align-items:center;gap:8px;}
.staff-activation-rail .activation-shortcuts {position:absolute;inset-inline-start:0;transform:translateY(-50%);white-space:nowrap;}
#main .activation-shortcuts > button {position:static;transform:none;inset:auto;min-width:48px;}

/* Clear and dismiss controls use the same clickable cursor as buttons. */
button:not(:disabled):not(.approval-step),
input:is([type="button"],[type="submit"],[type="reset"]):not(:disabled),
[role="button"]:not([aria-disabled="true"]) {cursor:pointer;}
button:not(:disabled) :is(svg,path,span) {cursor:inherit;}
input::-webkit-search-cancel-button,
input::-webkit-clear-button {cursor:pointer;}

/* Keep company actions inside their column rather than expanding the table. */
.partners-card:has([data-partner-link]) {margin-inline-end:0;}
.partners-card .table-wrap {max-inline-size:100%;overflow:auto;}
.partners-card .partners-table {table-layout:fixed;min-width:960px;width:100%;}
.partners-card .partners-table :is(th,td) {overflow-wrap:anywhere;}
.partners-card .partners-table :is(th,td):nth-child(1) {width:14%;}
.partners-card .partners-table :is(th,td):nth-child(2) {width:11%;}
.partners-card .partners-table :is(th,td):nth-child(3) {width:19%;}
.partners-card .partners-table :is(th,td):nth-child(4) {width:12%;}
.partners-card .partners-table :is(th,td):nth-child(5) {width:13%;}
.partners-card .partners-table :is(th,td):nth-child(6) {width:7%;}
.partners-card .partners-table :is(th,td):nth-child(7) {width:14%;}
.partners-card .partners-table :is(th,td):nth-child(8) {width:10%;text-align:center;overflow-wrap:normal;}
.partners-card .partners-table td:nth-child(8) bdi {white-space:nowrap;font-variant-numeric:tabular-nums;}
.partners-card .partners-table .badge {white-space:normal;max-width:100%;line-height:1.5;}
.partners-card .activation-actions {flex-wrap:wrap;gap:8px;justify-content:flex-start;}
.partners-card .activation-shortcuts {flex-basis:100%;gap:6px;}
#main .partners-card .activation-shortcuts > button {min-width:0;padding-inline:8px;}
.employee-punch-feedback { margin:14px 0 0; padding:12px 14px; border:1px solid currentColor; border-radius:12px; line-height:1.8; font-weight:600; }
.employee-punch-feedback[data-tone="success"] { color:var(--accent,#80caac); }
.employee-punch-feedback[data-tone="error"] { color:#ffb3ac; }
.employee-punch-feedback[data-tone="pending"] { color:inherit; opacity:.85; }
html[data-theme="light"] .employee-punch-feedback[data-tone="error"] { color:#9f2727; }
html[data-theme="light"] .employee-punch-feedback[data-tone="success"] { color:#216452; }
.employee-salary-toggle { display:flex; align-items:center; gap:8px; margin-block-end:18px; }
.employee-salary-toggle svg { flex-shrink:0; }

/* Keep account restoration calm while the initial data is loading. */
.employee-loading-screen { display:none; }
.employee-loading .employee-loading-screen { position:fixed; inset:0; z-index:10000; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; background:var(--portal-surface,#14282e); color:inherit; }
.employee-loading-screen img { width:88px; height:88px; border-radius:22px; }
.employee-loading-screen strong { font-size:28px; font-weight:750; }
/* The installed app already displays its own branded loader. */
.employee-loading[data-dawamkom-app="true"] .employee-loading-screen > :is(img,strong) { display:none; }
.employee-loading .employee-portal > :not(.employee-loading-screen) { visibility:hidden; }
.session-restoring .workspace-login-main { min-height:100dvh; box-sizing:border-box; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.session-restoring .workspace-login-brand { display:flex; flex-direction:column; align-items:center; gap:18px; }
.session-restoring .workspace-login-brand .mark { flex-basis:auto; width:88px; height:88px; background:#fff url('/apple-touch-icon.png') center / cover no-repeat; border-radius:22px; }
.session-restoring .workspace-login-brand h1 { margin:0; }
.session-restoring .workspace-login-header,.session-restoring .workspace-login-main > :not(.workspace-login-brand) { display:none; }

#employee-leave-balance-summary .employee-leave-numbers dd { flex-shrink: 0; white-space: nowrap; overflow-wrap: normal; }

.attendance-person {border:0;background:none;padding:0;color:inherit;font:inherit;font-weight:700;cursor:pointer;text-align:inherit;}
.daily-attendance-table tbody tr {cursor:pointer;}
.daily-attendance-table tbody tr:hover td {background:var(--forest);}
dialog#attendance-details-dialog {width:min(1050px,calc(100% - 32px));background:var(--dark-surface,#efede5);padding:22px;}
.attendance-details-dialog > header {position:relative;padding-left:44px;}
.attendance-details-dialog > header h2 {font-size:1.2rem;}
.attendance-details-dialog [data-attendance-close] {position:absolute;left:0;top:0;cursor:pointer;}
.attendance-details-layout {display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,1.65fr);gap:22px;}
.attendance-details-layout aside,.attendance-details-layout section {min-width:0;}
.attendance-details-layout h3 {margin:0;}
.attendance-detail-metric {display:flex;justify-content:space-between;align-items:center;gap:18px;border:1px solid var(--line);border-radius:12px;padding:12px;margin-block:10px;}
.attendance-detail-metric strong {text-align:end;font-weight:500;}
.attendance-detail-metric .attendance-shift {margin:0;}
.attendance-detail-tabs {display:flex;gap:8px;padding:5px;border:1px solid var(--line);border-radius:12px;margin-bottom:18px;}
.attendance-detail-tabs button {flex:1;background:none;border:0;cursor:pointer;}
.attendance-detail-tabs [aria-selected="true"] {background:var(--forest);color:white;border-radius:8px;}
.attendance-punch-timeline {list-style:none;margin:0;padding:0 16px;}
.attendance-punch-timeline li {position:relative;border-inline-start:2px solid var(--line);padding:0 20px 24px;}
.attendance-punch-timeline li::before {content:"";position:absolute;inset-inline-start:-7px;top:5px;width:12px;height:12px;border-radius:50%;background:#e8ae40;}
.attendance-punch-timeline .punch-in::before {background:#35b878;}
.attendance-punch-timeline dl {font-size:.85rem;}
.attendance-punch-timeline dl div {display:flex;justify-content:space-between;gap:12px;margin-block:9px;}
.attendance-punch-timeline dt {color:var(--muted);}
.attendance-punch-timeline dd {margin:0;overflow-wrap:anywhere;text-align:end;}
@media(max-width:700px){.attendance-details-layout{grid-template-columns:1fr;}.attendance-details-layout aside .attendance-detail-metric{display:none;}}

.document-reader {border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;gap:10px;}
.document-reader > div > div {display:grid;gap:6px;margin-block:10px;}
.document-reader small {overflow-wrap:anywhere;color:var(--muted);}

.payroll-table :is(th,td) {text-align:center;vertical-align:middle;}
.payroll-group-toggle {border:0;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:5px 8px;}
.payroll-group-toggle > span {display:inline-grid;place-items:center;width:20px;height:20px;border:1px solid currentColor;border-radius:5px;}
.payroll-table.payroll-hide-employee-number :is(.payroll-staff-cell,thead tr:last-child > :nth-child(2)) {inset-inline-start:0;}
.payroll-table [hidden] {display:none !important;}

/* Follow-up workflow */
.follow-up-tabs{flex-direction:row;flex-wrap:wrap}.follow-up-tabs bdi{margin-inline-start:.4rem;opacity:.8}.follow-up-kind{max-width:260px;margin-bottom:1rem;display:block}
.follow-up-create-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-block-end:8px}
.follow-up-table :is(th,td):first-child{white-space:nowrap}
.follow-up-table tbody tr{cursor:pointer}.follow-up-table td{vertical-align:middle}.follow-up-table td small{display:block;max-width:270px;color:var(--muted);font-size:.75rem;line-height:1.5}.follow-up-status{display:inline-block;padding:.2rem .6rem;border-radius:999px;background:var(--surface);white-space:nowrap}.follow-up-status.overdue{background:#713b40;color:#fff}.follow-up-status.completed,.follow-up-resolved{background:#245e4c;color:#e1ffed}.follow-up-status.in-progress{background:#345c71;color:#fff}
.follow-up-dialog{width:min(760px,calc(100vw - 32px));max-height:88dvh;overflow:auto}.follow-up-dialog section{margin-block:1.25rem;padding-block-start:1rem;border-top:1px solid var(--line)}.follow-up-dialog .fields{margin-block:1rem}.follow-up-comment,.follow-up-event{padding:.75rem;margin-block:.5rem;border:1px solid var(--line);border-radius:12px}.follow-up-comment p{white-space:pre-wrap;overflow-wrap:anywhere}.follow-up-dialog time{font-size:.75rem;opacity:.7}.follow-up-resolved{padding:.75rem;border-radius:12px}.follow-up-dialog form{display:grid;gap:.8rem}.follow-up-dialog textarea{width:100%;box-sizing:border-box}

#follow-up-workflow-dialog{width:min(760px,calc(100vw - 32px));max-width:760px;box-sizing:border-box}.follow-up-table .table-action{border:0;background:transparent;color:inherit;font:inherit;padding:0;cursor:pointer;font-weight:700}.follow-up-table tbody tr:hover>td{background:var(--surface)}

.staff-form-pages{display:flex;gap:12px;margin-block:0 20px;flex-wrap:wrap}.staff-form-pages button{flex:1;min-width:180px;padding:12px;border:1px solid var(--line);border-radius:12px;background:transparent;color:inherit;cursor:pointer;font:inherit}.staff-form-pages button[aria-current="step"]{background:var(--primary);border-color:var(--accent);font-weight:700}#staff-form .ux-form-footer{display:flex;gap:10px;align-items:center}#staff-form [hidden]{display:none!important}

/* Keep personal and employment information on the first registration page. */
#staff-form.staff-paged-form{gap:10px}#staff-form.staff-paged-form .staff-form-pages{margin-bottom:0;gap:8px}#staff-form.staff-paged-form .staff-form-pages button{padding:8px 12px}#staff-form.staff-paged-form .staff-form-pages button[aria-current="step"]{background:var(--dark-raised);border-color:var(--mint)}
#staff-form.staff-paged-form>section{padding-top:10px}#staff-form.staff-paged-form h3{margin-bottom:8px}#staff-form.staff-paged-form .fields{gap:8px 12px}#staff-form.staff-paged-form label{gap:4px}#staff-form.staff-paged-form :is(input,select){min-height:38px;padding-block:7px}
#staff-form.staff-paged-form .ux-request-summary{grid-column:1/-1;margin:0;max-width:none;width:auto;padding:8px 12px;font-size:.85rem;line-height:1.5}#staff-form.staff-paged-form .ux-form-footer{padding-block:10px}
@media(min-width:1000px){#staff-form.staff-paged-form .staff-contract-fields{display:contents}#staff-form.staff-paged-form .staff-leave-entry{display:contents}#staff-form.staff-paged-form .staff-contract-fields #contract-custom{grid-column:auto}}
.role-permissions-dialog {width:min(720px,calc(100vw - 24px));}
.role-permissions-dialog fieldset {border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:12px;}
.role-permission-row {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 0;}
.role-permission-row input {width:32px;min-height:20px;margin:0;}
.document-upload-progress {overflow-wrap:anywhere;line-height:1.6;}
.document-expiry-form {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.employee-import-dialog {width:min(1040px,calc(100vw - 24px));}
.employee-import-row {border:1px solid var(--line);border-radius:12px;padding:12px;margin:10px 0;}
.employee-import-row summary {cursor:pointer;font-weight:700;padding:6px;}
.employee-import-row .fields {margin-top:12px;}
.document-upload-progress {white-space:pre-line;}
.nav-follow-up-badge {display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 4px;border-radius:999px;background:#cf3947;color:#fff;font-size:11px;font-weight:700;line-height:1;flex-shrink:0;}
@media(min-width:1000px) and (min-height:700px){
 #staff-form.staff-paged-form .fields {grid-template-columns:repeat(4,minmax(0,1fr));}
 #staff-form.staff-paged-form .schedule-options {grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;overflow:visible;gap:6px;}
 #staff-form.staff-paged-form .schedule-options label {min-height:42px;padding:5px 8px;font-size:12px;}
 #staff-form.staff-paged-form .schedule-options label small {font-size:10px;}
 #staff-dialog:has(.staff-paged-form) header {margin-bottom:8px;}
 #staff-form.staff-paged-form>.hint {margin:0;font-size:12px;}
}
@media(min-width:1000px) and (min-height:700px) and (max-height:850px){
 #staff-dialog:has(.staff-paged-form){padding:12px;}
 #staff-dialog:has(.staff-paged-form) header h2{font-size:20px;line-height:1.3;}
 #staff-form.staff-paged-form{gap:6px;}
 #staff-form.staff-paged-form>section{padding-top:6px;}
 #staff-form.staff-paged-form h3{font-size:14px;line-height:1.3;margin-bottom:5px;}
 #staff-form.staff-paged-form .fields{gap:6px 12px;}
 #staff-form.staff-paged-form label{gap:3px;font-size:12px;line-height:1.3;}
 #staff-form.staff-paged-form :is(input,select){min-height:32px;padding-block:4px;font-size:13px;}
 #staff-form.staff-paged-form .staff-form-pages button{padding:6px 10px;font-size:13px;}
 #staff-form.staff-paged-form .ux-form-footer{padding-block:6px;}
 #staff-form.staff-paged-form .ux-request-summary{padding:6px 10px;font-size:11px;line-height:1.35;}
}
#employee-assigned-tasks-list {display:flex;gap:10px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;margin:0;padding:0 0 6px;list-style:none;}

/* Keep assignment controls visible; secondary discussion/history expand on demand. */
#follow-up-workflow-dialog{width:min(700px,calc(100vw - 32px));padding:18px 22px;max-height:90dvh}
#follow-up-workflow-dialog header{margin-bottom:10px}
#follow-up-workflow-dialog h2{font-size:1.15rem;margin:0}
#follow-up-workflow-dialog>p{margin:8px 0;font-size:.875rem}
#follow-up-workflow-dialog form{gap:8px}
#follow-up-workflow-dialog .fields{margin-block:12px 4px;gap:12px}
#follow-up-workflow-dialog .hint{margin:4px 0;font-size:.8rem}
#follow-up-workflow-dialog [data-details]>.button{justify-self:end}
#follow-up-workflow-dialog .follow-up-extra{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}
#follow-up-workflow-dialog .follow-up-extra>summary{cursor:pointer;font-weight:700;font-size:.9rem}
#follow-up-workflow-dialog .follow-up-extra[open]>summary{margin-bottom:10px}
#follow-up-workflow-dialog textarea{min-height:64px}
@media(max-width:600px){#follow-up-workflow-dialog{padding:16px}#follow-up-workflow-dialog .fields{grid-template-columns:1fr}}

.document-wallet-table .document-expiry-form{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0;width:max-content;max-width:none}
.document-wallet-table .document-expiry-form input[type=date]{flex:0 0 150px;width:150px;min-width:150px;max-width:150px;height:34px;min-height:34px;padding:5px 8px;margin:0;font-size:.8rem;box-sizing:border-box}
.document-wallet-table .document-expiry-form .button{flex:none;white-space:nowrap;min-height:32px;margin:0;padding:5px 9px}
.document-wallet-table .document-expiry-form .hint{flex:none;white-space:nowrap;margin:0;font-size:.72rem;line-height:1.3}

.follow-up-unassigned{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;margin-inline-end:.4rem;border-radius:50%;background:#f5cc78;color:#352400;font-weight:800;font-size:.8rem;line-height:1;vertical-align:middle}
.document-wallet-table .document-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;width:max-content}
.document-wallet-table .document-actions .button{white-space:nowrap;margin:0}
.document-wallet-table .document-actions .ux-icon {width:18px;height:18px;}
.document-wallet-table .document-actions .button {min-width:34px;min-height:34px;padding:6px;}
.document-branch-group {border-block-end:1px solid var(--line);}
.document-branch-group > summary {cursor:pointer;padding:12px 4px;font-weight:700;}
.document-branch-group > summary small {margin-inline-start:6px;color:var(--muted);}
.document-wallet-toolbar {flex-wrap:wrap;}
.document-wallet-toolbar :is(#open-document-upload,#copy-document-wallet) {min-height:34px;padding-block:5px;align-self:center;}
.management-alert-row {display:grid;justify-items:start;}
.management-alert-row .management-alert {width:100%;}
#employee-request-scope,#employee-team-request-filters {margin-block:0 12px;}
#employee-team-request-history {display:grid;gap:8px;}
.employee-portal #employee-own-requests-panel .employee-new-request {width:100%;margin-block:0 12px;}
#employee-messages-dialog {inset-block:auto 0;margin:0 auto;border-end-start-radius:0;border-end-end-radius:0;}
.employee-portal.manager-preview #employee-messages-dialog {
  inset-block:0 auto;
  max-height: min(75dvh, 580px);
  overflow-y:auto;
  border-start-start-radius:0;
  border-start-end-radius:0;
  border-end-start-radius:18px;
  border-end-end-radius:18px;
  padding-block-start:max(20px, env(safe-area-inset-top));
}
#employee-notification-toolbar {grid-template-columns:auto 1fr;align-items:center;}
#employee-notification-toolbar > button {justify-self:end;}
#employee-message-list button.employee-notification-card {width:100%;display:flex;align-items:flex-start;gap:10px;text-align:start;font:inherit;color:inherit;cursor:pointer;}
#employee-message-list .notice-copy {display:grid;gap:4px;flex:1;}
.employee-notice-row {display:flex;align-items:center;gap:8px;}
.employee-notice-row .employee-notification-card {flex:1;min-width:0;}
.employee-notice-row > .employee-notification-read {flex:none;min-height:44px;white-space:nowrap;}
#employee-message-list .notice-copy :is(small,time) {color:var(--muted);}
#employee-message-list .employee-notification-card.is-unread {border-inline-start:1px solid var(--line);}
#employee-message-list .employee-notification-card.is-unread::before {content:"";width:7px;height:7px;margin-top:7px;border-radius:50%;background:var(--portal-accent);flex-shrink:0;}
.document-wallet-toolbar input {max-inline-size:100%;}
.follow-up-assignees{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0 14px}
.follow-up-assignees .button{min-height:32px;margin:0;display:inline-flex;gap:8px;align-items:center}
.follow-up-assignees [aria-pressed=true]{background:var(--accent,#27616b);color:var(--button-text,#fff)}
.follow-up-assignees bdi{font-size:.75rem;opacity:.85}
.row-actions-trigger { min-inline-size:36px; }
.row-actions-menu {
  position:fixed; inset:auto; position-area:block-end span-inline-start; position-try-fallbacks:flip-block, flip-inline;
  margin:4px; padding:6px; border:1px solid var(--line); border-radius:10px;
  background:var(--dark-surface,#fff); color:var(--text); box-shadow:0 8px 24px #0003;
}
.row-actions-menu:popover-open { display:grid; gap:4px; }
.row-actions-menu .button { margin:0; text-align:start; white-space:nowrap; }
@supports not (position-area:block-end) { .row-actions-menu { inset:0; margin:auto; } }
.date-control{position:relative;display:inline-flex;align-items:center;width:100%;min-width:145px;max-width:100%;vertical-align:middle;isolation:isolate}
.date-control>.date-control-display{width:100%;min-width:0;margin:0;padding-inline-end:36px;text-align:center;direction:ltr;font-variant-numeric:tabular-nums}
.date-control>.date-control-native[type=date]{position:absolute!important;inset-inline-end:3px;top:50%;transform:translateY(-50%);width:28px!important;min-width:28px!important;max-width:28px!important;height:30px!important;min-height:30px!important;padding:0!important;margin:0!important;border:0;background:transparent;color:transparent;box-shadow:none;cursor:pointer;z-index:1}
.date-control-native::-webkit-datetime-edit{display:none}.date-control-native::-webkit-calendar-picker-indicator{padding:5px;cursor:pointer}
.document-expiry-form>.date-control{flex:0 0 150px;width:150px}
.date-control>.date-control-native[type=date]{opacity:0;pointer-events:none}
.date-control>.date-control-picker{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:29px;height:30px;min-height:0;padding:0;margin:0;border:0;background:transparent;color:inherit;box-shadow:none;z-index:2;cursor:pointer}
.date-control>.date-control-picker:disabled{cursor:default;opacity:.45}.date-control>.date-control-display{padding-right:36px;padding-left:8px}
.period-weekdays>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.period-weekdays>div>label{display:flex;flex-direction:column;align-items:center;gap:7px;margin:0;padding:9px 3px;border:1px solid var(--line);border-radius:9px;font-size:.8rem;cursor:pointer}
.period-weekdays input{width:16px;height:16px;margin:0;cursor:pointer}
@media(max-width:480px){.period-weekdays>div{grid-template-columns:repeat(4,minmax(0,1fr))}}
dialog.document-expiry-notice{width:min(92vw,520px);max-height:80dvh;border:1px solid var(--line);border-radius:18px;padding:22px;background:var(--panel);color:var(--text);overflow:auto;box-shadow:0 18px 60px #0005}
dialog.document-expiry-notice::backdrop{background:#0008}
.employee-portal dialog.document-expiry-notice{width:min(360px,calc(100vw - 28px));max-height:65dvh}
dialog.document-expiry-notice header{display:flex;align-items:center;justify-content:space-between;gap:12px}
dialog.document-expiry-notice h2{font-size:1.15rem;margin:0}
dialog.document-expiry-notice li{padding-block:10px;line-height:1.7}
/* Approved employee cards and account navigation — shared by the browser and native WebView. */
.employee-card-icon{display:inline-grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:10px;background:var(--portal-control);color:var(--portal-accent)}
.employee-card-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.employee-card-icon svg[viewBox="0 0 24 24"]{stroke-width:1.6}
.employee-card-copy{flex:1;min-width:0;display:grid;gap:5px}.employee-card-copy small,.employee-page-caption,.employee-card-foot,.employee-request-range{color:var(--muted)}
.employee-section-heading,.employee-account-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block-end:12px}
.employee-section-heading h2,.employee-section-heading h3,.employee-account-heading h2{margin:0;font-size:18px}.employee-section-heading button{border:0;background:none;color:var(--portal-accent);font:inherit;font-size:12px;min-height:44px;cursor:pointer}
.employee-own-request-card,.employee-own-request-compact,.employee-approval-card{display:block;width:100%;border:1px solid var(--line);border-radius:15px;padding:14px;background:var(--portal-surface);color:inherit;font:inherit;text-align:start;cursor:pointer}
.employee-own-request-card:focus-visible,.employee-own-request-compact:focus-visible,.employee-approval-card:focus-visible{outline:2px solid var(--portal-accent);outline-offset:2px}
.employee-own-request-card>strong{display:block;font-size:16px;margin:10px 0 6px}.employee-own-request-card>.employee-request-range{display:block;font-size:13px}
.employee-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.employee-card-top .badge{font-size:11px;border-radius:7px;padding:4px 8px}
.employee-card-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-block-start:10px;margin-block-start:12px;font-size:12px}
.employee-card-foot>span:first-child{min-width:0}.employee-card-foot>span:last-child{font-size:21px}.employee-card-foot strong{color:var(--portal-accent);font-size:12px}
.employee-own-request-compact{display:flex;align-items:center;gap:10px;padding:12px}.employee-own-request-compact strong{font-size:14px}.employee-own-request-compact small{font-size:12px}.employee-own-request-compact .badge{font-size:11px;white-space:nowrap}
#employee-home-requests-list,#employee-team-requests,#employee-team-leave,#employee-assigned-tasks-list{display:grid;grid-template-columns:1fr;gap:10px;max-height:none;overflow:visible;padding:0;list-style:none;margin:0}
#employee-home-requests-list>li{padding:0;border:0;background:transparent;width:auto;min-width:0;min-height:0}
#employee-requests-history{display:grid;gap:12px;margin-block:14px} .employee-page-caption{font-size:13px;margin-block:6px 16px}
.employee-request-filters{display:flex;flex-wrap:wrap;gap:8px}.employee-request-filters button{display:flex;align-items:center;gap:8px;min-height:44px;padding:7px 12px;border:1px solid var(--line);border-radius:10px;background:var(--portal-control);color:inherit;font:inherit;font-size:12px;cursor:pointer}.employee-request-filters button[aria-pressed="true"]{border-color:var(--portal-accent);background:var(--portal-surface);color:var(--portal-accent)}.employee-request-filters b{font-variant-numeric:tabular-nums}
.employee-new-request{display:block;position:sticky;bottom:calc(72px + env(safe-area-inset-bottom));width:100%;margin-block:12px;box-shadow:0 2px 12px #0003;font-size:17px}
.employee-empty-state{color:var(--muted);font-size:13px;padding:12px 0;list-style:none}
#employee-calendar-details{background:transparent;border:0;padding:0;margin-top:20px}#employee-calendar-details>.employee-section-heading{margin-bottom:10px}#employee-calendar-details h3{font-size:15px}.employee-daily-punches{padding:0 14px;border:1px solid var(--line);border-radius:15px;background:var(--portal-surface)}.employee-daily-punch{display:flex;align-items:center;gap:10px;padding-block:15px}.employee-daily-punch strong{font-size:14px}.employee-daily-punch small{font-size:11px}.employee-daily-punch bdi{font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}.employee-punch-dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#73c9a6}.employee-daily-punch.departure .employee-punch-dot{background:#ef7883}.employee-daily-total{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-block:13px;font-size:13px}.employee-daily-total strong{color:var(--portal-accent)}.employee-day-period{font-size:12px;margin:8px 0}.employee-correction-link{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;min-height:44px;font:inherit;font-size:12px;background:transparent;color:var(--portal-accent);cursor:pointer}.employee-correction-link .employee-card-icon{width:25px;height:25px;background:none}.employee-correction-link svg{width:23px;height:23px}
.employee-account-heading{margin-bottom:20px}.employee-profile-heading{display:flex;gap:13px;align-items:center;margin-bottom:20px}.employee-profile-heading h3{font-size:22px;margin:0 0 5px}.employee-profile-heading p{margin:0 0 5px;font-size:14px}.employee-profile-heading small{display:block;color:var(--muted);font-size:12px;line-height:1.5}.employee-profile-avatar{width:60px;height:60px;flex-shrink:0;background:var(--portal-control);color:var(--portal-accent)}
.employee-account-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px}.employee-account-shortcuts>button,.employee-account-salary{border:1px solid var(--line);border-radius:15px;background:var(--portal-surface);color:inherit;min-width:0}.employee-account-shortcuts>button,.employee-account-salary>button:first-child{display:grid;justify-items:start;gap:7px;padding:12px;width:100%;border:0;color:inherit;background:transparent;font:inherit;cursor:pointer;text-align:start}.employee-account-shortcuts>button{border:1px solid var(--line);background:var(--portal-surface)}.employee-account-shortcuts strong{font-size:19px;overflow-wrap:anywhere}.employee-account-shortcuts small{font-size:12px;color:var(--muted)}.employee-account-shortcuts .employee-card-icon{background:transparent;width:25px;height:25px}.employee-salary-details-link{border:0;background:transparent;color:var(--portal-accent);font:inherit;font-size:12px;padding:0 12px 9px;cursor:pointer;min-height:28px}
.employee-section-label{font-size:12px!important;font-weight:500;color:var(--muted);margin:20px 0 9px}.employee-account-menu{padding:0 12px;border:1px solid var(--line);border-radius:14px;background:var(--portal-surface)}.employee-account-menu>button{display:flex;align-items:center;gap:9px;min-height:62px;width:100%;text-align:start;font:inherit;border:0;border-bottom:1px solid var(--line);background:none;color:inherit;cursor:pointer;padding:10px 0}.employee-account-menu>button:last-child{border:0}.employee-account-menu>button>span:nth-child(2){flex:1}.employee-account-menu strong,.employee-account-menu small{display:block}.employee-account-menu strong{font-size:14px}.employee-account-menu small{font-size:11px;color:var(--muted);margin-top:4px}
#employee-profile-settings-panel{margin-top:0;padding:0 12px;gap:0;border-radius:14px}#employee-profile-settings-panel .employee-setting-row{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;padding:10px 0;min-height:58px;font-size:14px}#employee-profile-settings-panel .employee-setting-row:last-child{border:0}#employee-profile-settings-panel .employee-setting-row small{font-size:11px}#employee-profile-settings-panel select{width:auto;max-width:120px;min-height:38px;font-size:12px}#employee-profile-settings-panel .employee-settings-logout{justify-content:center;color:#edaba2}.employee-account-help summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-size:14px}.employee-account-help summary::after{content:'‹';color:var(--muted)}.employee-account-help[open] summary::after{content:'⌄'}.employee-account-help>.employee-setting-row{padding-inline:6px!important}
.employee-team-metrics{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);background:var(--portal-surface);border-radius:14px;padding:13px 0;margin:16px 0 20px}.employee-team-metrics>div{display:grid;text-align:center;gap:7px;border-inline-end:1px solid var(--line)}.employee-team-metrics>div:last-child{border:0}.employee-team-metrics strong{font-size:24px;font-variant-numeric:tabular-nums}.employee-team-metrics small{font-size:11px;color:var(--muted)}#employee-team-home>section{margin-top:20px}#employee-team-home h2{font-size:17px;margin:0 0 12px}.employee-request-person{display:flex;align-items:center;gap:8px;font-size:14px}.employee-initial{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--portal-control);border:1px solid var(--line);color:var(--portal-accent);font-size:18px}.employee-approval-date{display:block;margin-block:14px;font-size:16px}.employee-approval-card>small{display:block;font-size:12px;color:var(--muted)}.employee-assigned-task-card{padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--portal-surface);display:grid;gap:9px}.employee-assigned-task-card>strong{font-size:16px}.employee-assigned-task-card>small{font-size:12px;color:var(--muted)}.employee-assigned-task-card>button{width:100%;min-height:44px}.employee-portal .badge.neutral{background:var(--portal-control);color:var(--muted)}
html[data-theme="light"] .employee-card-icon{background:#d8e1d6;color:#337768}html[data-theme="light"] .employee-settings-logout{color:#9f3f38!important}html[dir="ltr"] .employee-card-foot>span:last-child,html[dir="ltr"] .employee-account-menu>button>span:last-child{transform:scaleX(-1)}
.employee-task-actions{display:flex;gap:8px}.employee-task-actions>button{flex:1;min-height:44px}.employee-task-dialog form{display:grid;gap:14px}.employee-task-dialog label{display:grid;gap:8px}.employee-task-dialog form>button{width:100%}
/* Keep legacy directory button rules from stretching the new account overview. */
#employee-profile-all-panel{display:block}.employee-profile-directory .employee-account-shortcuts>button,.employee-profile-directory .employee-account-salary>button:first-child{display:grid;justify-content:start;justify-items:start;align-content:start;padding:12px;gap:7px}.employee-profile-directory .employee-salary-details-link{display:block;padding:0 12px 9px;min-height:30px;border:0;border-radius:0;background:transparent;font-size:12px;color:var(--portal-accent)}.employee-profile-directory .employee-account-menu>button{padding:10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;gap:9px;min-height:60px}.employee-profile-directory .employee-account-menu>button:last-child{border:0}.employee-profile-directory .employee-account-menu>button>.employee-card-icon{display:inline-grid;gap:0}.employee-portal .employee-content .button.employee-new-request{background:linear-gradient(145deg,#397e70,#2f7063);border-color:#6dad95;color:#fff;box-shadow:inset 0 1px 5px #c8f5da18,0 2px 12px #0003}
/* Compact account overview while retaining comfortable touch targets. */
[data-employee-view="profile"]{line-height:1.4}.employee-account-heading{margin-bottom:12px}.employee-profile-heading{margin-top:0;margin-bottom:16px}.employee-profile-heading h3{font-size:20px;line-height:1.3;margin-bottom:3px}.employee-profile-heading p{line-height:1.3;margin:0 0 3px}.employee-profile-heading small{line-height:1.35}.employee-profile-directory .employee-account-shortcuts>button,.employee-profile-directory .employee-account-salary>button:first-child{padding:10px;gap:4px;line-height:1.3}.employee-account-shortcuts strong{line-height:1.25}.employee-account-shortcuts small{line-height:1.3}.employee-profile-directory .employee-salary-details-link{padding-bottom:7px;min-height:24px;line-height:1.3}.employee-section-label{margin-top:14px;margin-bottom:7px}.employee-account-help summary{margin:0;min-height:48px}
.employee-profile-directory .employee-account-menu>button{min-height:56px;padding-block:8px}.employee-section-label{margin-top:10px;margin-bottom:5px}#employee-profile-settings-panel .employee-setting-row{min-height:54px;padding-block:8px}#employee-profile-settings-panel .employee-setting-row strong{font-size:14px;line-height:1.35}#employee-profile-settings-panel .employee-setting-row small{line-height:1.35}
/* Mobile notification inbox: actionable cards, explicit read state. */
#employee-messages-dialog{background:var(--portal-background);padding:20px;max-width:520px}
#employee-messages-dialog>header{display:flex;align-items:center;gap:12px;margin-bottom:18px}
#employee-messages-dialog>header h2{margin:0;flex:1}
#employee-notification-toolbar{display:grid;gap:12px;margin-block:16px}
.employee-notification-filters{display:flex;gap:8px}
.employee-notification-filters button{border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;padding:8px 13px;cursor:pointer}
.employee-notification-filters button[aria-pressed=true]{background:var(--portal-accent);color:#fff}
.employee-notification-read{border:0;background:transparent;color:inherit;font:inherit;font-size:.8rem;cursor:pointer;text-align:start;padding:4px}
#employee-message-list{display:grid;gap:12px}
.employee-notification-card{position:relative;background:var(--portal-surface);border:1px solid var(--line);border-radius:16px;padding:16px;overflow-wrap:anywhere}
.employee-notification-card.is-unread{border-inline-start:3px solid #7fc6ae}
.employee-notification-card.is-read{opacity:.8}
.employee-notification-card>.employee-icon-box{float:inline-end;margin-inline-start:10px}
.employee-notification-card>strong{display:block;margin-bottom:8px}
.employee-notification-card p{margin:6px 0;font-size:.9rem}
.employee-notification-card time{display:block;color:var(--muted,#a5bfc6);font-size:.8rem;margin-block:8px}
.employee-notification-card .employee-task-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
#employee-messages-dialog>header{flex-direction:row-reverse}
#employee-messages-dialog>header h2{text-align:start}
.employee-notification-card p{border:0;padding:0}
.employee-notification-filters button[aria-pressed=true]{color:#103c45}
.employee-portal .employee-calendar-grid button{position:relative}
.employee-portal .employee-calendar-grid [data-day-status="missing"]{--day-glow:#e3ab48}
.employee-missing-flag{position:absolute;top:3px;left:4px;display:grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#edbb60;color:#34280e;font-size:11px;line-height:1;font-weight:800}
.employee-daily-punch.employee-missing-punch{color:#e7b85f;justify-content:space-between}
.home-review-card{display:grid;gap:8px;text-align:start;padding:16px;border:1px solid var(--line);border-radius:12px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.home-review-card:hover{background:var(--ui-hover,var(--dark-raised))}
.home-review-card.urgent{border-inline-start:3px solid #dfaa63}
.home-review-card small{color:var(--muted);font-size:.8rem}
.home-review-dialog{width:min(700px,calc(100vw - 28px));max-height:85dvh}
.home-review-items{list-style:none;margin:0;padding:0;display:grid}
.home-review-items li{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}
.home-review-items li>div{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}
.home-review-items small{color:var(--muted)}
.punch-review-dialog[open] { width:min(760px,calc(100vw - 28px)); display:flex; flex-direction:column; overflow:hidden; }
.punch-review-filters { display:grid; grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)); gap:8px; }
.punch-review-filters .date-control { min-width:0; }
.punch-review-count { margin:10px 0 4px; }
.punch-review-results { min-height:0; overflow:auto; overscroll-behavior:contain; }
.punch-review-results section { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; padding:9px 2px; border-bottom:1px solid var(--line); }
.punch-review-results h3 { font-size:.95rem; margin:0; }
.punch-review-days { display:flex; flex-wrap:wrap; gap:5px; }
.punch-review-days button { direction:ltr; font-variant-numeric:tabular-nums; }
@media(max-width:540px) {
  .punch-review-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .punch-review-filters label:first-child { grid-column:1 / -1; }
}
.home-review-manager-controls {display:flex;align-items:end;flex-wrap:wrap;gap:12px;}
.home-review-manager-controls label {margin:0;}
.home-review-manager-controls label:has(input) {display:flex;align-items:center;gap:8px;align-self:center;}
.home-review-manager-controls label:has(select) {flex:1 1 180px;min-inline-size:0;}
.home-review-manager-form input[type="checkbox"] {width:18px;height:18px;min-height:0;margin:0;flex:none;}
.home-review-manager-form li>div {flex:1;}
/* Period assignment uses compact cards instead of a nested vertical list. */
#schedule-assignment-dialog{width:min(920px,calc(100vw - 32px));padding:20px;}
#schedule-assignment-dialog .schedule-assignment-fields{min-width:0;}
#schedule-assignment-dialog .schedule-assignment-fields .schedule-options{grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:8px;max-height:none;overflow:visible;}
#schedule-assignment-dialog .schedule-assignment-fields .schedule-options label{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;min-height:72px;padding:10px;border-radius:12px;background:var(--ui-surface,var(--dark-surface));}
#schedule-assignment-dialog .schedule-options label>input{min-height:0;width:14px;height:14px;margin:0;accent-color:var(--ui-accent,var(--forest));}
#schedule-assignment-dialog .schedule-assignment-fields .schedule-options label>span:last-child{min-width:0;padding-inline-end:12px;overflow-wrap:anywhere;}
#schedule-assignment-dialog .schedule-options .period-dot{position:absolute;inset-inline-end:10px;top:11px;width:9px;height:9px;}
#schedule-assignment-dialog .schedule-assignment-fields .schedule-options strong{font-size:14px;line-height:1.35;}
#schedule-assignment-dialog .schedule-assignment-fields .schedule-options small{font-size:11px;line-height:1.5;margin-top:5px;}
#schedule-assignment-dialog .schedule-options label:has(input:checked){border-color:var(--mint);background:var(--ui-hover,var(--dark-raised));box-shadow:inset 0 0 0 1px var(--mint);}
#schedule-assignment-dialog .schedule-options label:has(input:focus-visible){outline:2px solid var(--mint);outline-offset:2px;}
#schedule-assignment-dialog form>.schedule-options{max-height:none;overflow:visible;}
#schedule-assignment-dialog #schedule-assignment-form{gap:12px;}
#schedule-assignment-dialog .hint{margin:4px 0;}
@media(max-width:520px){#schedule-assignment-dialog{padding:14px;}#schedule-assignment-dialog .schedule-assignment-fields .schedule-options{grid-template-columns:repeat(2,minmax(0,1fr));}#schedule-assignment-dialog .schedule-assignment-fields .schedule-options label{padding:8px;gap:5px;}}

.role-permissions-dialog .role-permission-group {border:1px solid var(--line);border-radius:10px;margin:6px 0;padding:0 12px;}
.role-permissions-dialog .role-permission-group>summary {cursor:pointer;font-weight:700;padding:10px 0;color:var(--ui-ink,var(--text));}
.role-permissions-dialog .role-permission-group[open]>summary {border-bottom:1px solid var(--line);}
.role-permissions-dialog .role-permission-group .role-permission-row {padding:8px 0;}
.role-permissions-dialog>p.hint,.role-permissions-dialog form>p.hint {font-size:12px;margin:6px 0;}
.role-permissions-dialog {width:min(820px,calc(100vw - 24px));padding:18px;}
.role-permissions-dialog form {display:block;}
.role-permissions-dialog .role-permission-group {margin:4px 0;}
.role-permissions-dialog .role-permission-group>summary {padding:7px 0;font-size:14px;}
.role-permissions-dialog .role-permission-items {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;}
.role-permissions-dialog .role-permission-items .role-permission-row {padding:6px 0;font-size:12px;line-height:1.4;}
.role-permissions-dialog form>button[type=submit] {margin-top:8px;}
@media(max-width:600px){.role-permissions-dialog .role-permission-items {grid-template-columns:1fr;}}
.branch-administrator-picker {border:1px solid var(--line);border-radius:12px;}
.branch-administrator-picker>summary {cursor:pointer;font-weight:700;padding:10px 14px;}
.branch-administrator-picker>.branch-administrator-search {margin:0;padding:8px 14px;border-block-start:1px solid var(--line);}
.branch-administrator-options>label {display:flex;align-items:center;gap:12px;margin:0;padding:8px 14px;border-block-start:1px solid var(--line);cursor:pointer;}
.branch-administrator-options input[type="checkbox"] {flex:none;width:18px;height:18px;min-height:0;margin:0;accent-color:var(--ui-accent,var(--forest));}
.branch-administrator-options [hidden] {display:none;}
.organization-overview-name {gap:12px;}
.employee-team-metric-action { display:grid; gap:7px; padding:0 4px; border:0; background:none; color:inherit; text-align:center; }
.employee-team-metric-action small { text-decoration:underline; text-underline-offset:3px; }
.employee-team-attendance-filters { display:flex; flex-wrap:nowrap; gap:4px; margin-block:10px; overflow-x:auto; }
.employee-team-attendance-filters .button { flex:1 0 auto; white-space:nowrap; padding-inline:6px; font-size:12px; }
.employee-team-attendance-filters .button[aria-pressed="true"] { border-color:var(--portal-accent); background:var(--portal-accent); color:#092b26; }
.employee-present-staff table { width:100%; min-width:0; table-layout:fixed; }
.employee-team-attendance-dates { display:flex; justify-content:space-between; align-items:end; gap:8px; margin-block-end:12px; }
.employee-team-attendance-dates label { flex:1; min-width:0; margin:0; }
.employee-team-attendance-dates input:not(.date-control-native) { display:block; width:100%; min-height:44px; }
.employee-team-attendance-dates button { min-height:44px; }
.employee-present-staff :is(th,td) { padding:8px 6px; overflow-wrap:anywhere; text-align:start; }
.employee-present-staff :is(th,td):last-child { width:30%; text-align:left; }
.employee-present-staff td:last-child bdi { white-space:nowrap; }
.employee-present-staff td:last-child small { margin-top:2px; }
.employee-present-staff td { vertical-align:middle; }
#manager-attendance-tabs:not([hidden]) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; margin-block:12px 16px; }
#manager-attendance-tabs .button { width:100%; min-height:44px; }
#manager-team-attendance { display:grid; gap:12px; }
#manager-team-attendance[hidden] { display:none; }
#manager-team-attendance > div:last-child { overflow-x:auto; }
.employee-punch-shift-hours { font-size:.78em; color:var(--muted); }
.employee-punch-shift-hours bdi { white-space:nowrap; }
.employee-punch-entry + .employee-punch-entry { margin-block-start:6px; padding-block-start:6px; border-block-start:1px solid var(--line); }
.employee-present-staff th.employee-punch-branch { width:auto; text-align:start; padding:0; }
.employee-team-punch-table tbody + tbody .employee-punch-branch { border-block-start:8px solid transparent; background-clip:padding-box; }
.employee-punch-branch-toggle { display:flex; justify-content:space-between; align-items:center; gap:8px; width:100%; min-height:44px; padding:8px 10px; background:transparent; border:0; color:inherit; font:inherit; text-align:start; cursor:pointer; }
.employee-punch-branch-toggle::after { content:'＋'; }
.employee-punch-branch-toggle[aria-expanded="true"]::after { content:'−'; }
.employee-punch-branch-collapsed > tr:not(.employee-punch-branch-header) { display:none; }
.employee-present-staff .employee-team-punch-table { border-collapse:separate; border-spacing:0; }
.employee-present-staff .employee-punch-person-gap > td { height:8px; padding:0; border:0; }
.employee-present-staff .employee-punch-person > td { background:var(--dark-surface-2, var(--portal-surface)); }
.employee-present-staff [data-shift-status="complete"] > td { background:color-mix(in srgb, #4bc687 19%, var(--portal-surface)); }
.employee-present-staff [data-shift-status="absent"] > td { background:color-mix(in srgb, #f26470 20%, var(--portal-surface)); }
.employee-present-staff [data-shift-status="incomplete"] > td { background:color-mix(in srgb, #efbc4e 19%, var(--portal-surface)); }
.employee-punch-person > td:first-child { border-inline-start:2px solid var(--line); }
.employee-punch-person > td:last-child { border-inline-end:2px solid var(--line); }
.employee-punch-person-start > td { border-block-start:2px solid var(--line); }
.employee-punch-person-end > td { border-block-end:2px solid var(--line); }
.employee-punch-person-start > td:first-child { border-start-start-radius:8px; }
.employee-punch-person-start > td:last-child { border-start-end-radius:8px; }
.employee-punch-person-end > td:first-child { border-end-start-radius:8px; }
.employee-punch-person-end > td:last-child { border-end-end-radius:8px; }
.document-expiry-choice { display:flex; align-items:end; gap:8px; }
.document-expiry-choice label { flex:1; min-width:0; margin:0; }
.document-expiry-choice button { flex:none; }
.document-expiry-choice [data-no-expiry][aria-pressed="true"] { border-color:var(--portal-accent, #72cfac); }
.document-expiry-choice input:disabled, .document-expiry-choice .date-control-picker:disabled { opacity:.5; }
.employee-follow-up-tools { display:flex; align-items:end; gap:10px; margin-block-end:12px; }
.employee-follow-up-tools label { flex:1; min-width:0; margin:0; }
.employee-follow-up-tools button, .employee-follow-up .actions button { min-height:44px; }
.employee-follow-up-list { display:grid; gap:10px; }
.employee-follow-up-list article { display:grid; gap:8px; overflow-wrap:anywhere; }
.employee-follow-up-list [data-edit] { justify-self:end; min-height:44px; }
.employee-follow-up form label { display:grid; gap:5px; }
.employee-ticket-confirmation { padding:12px; border-radius:10px; background:#245e4c; color:#e1ffed; margin-block:0 12px; }
.employee-follow-up form :is(input,select,textarea) { font-size:16px; }
.employee-ticket-attachments { display:flex; align-items:end; gap:8px; }
.employee-ticket-attachments label { flex:1; min-width:0; }
.employee-ticket-attachments button { min-height:44px; flex:none; }
.employee-follow-up [data-camera-file] { overflow-wrap:anywhere; }
.employee-quick-grid [data-shortcut-type] { -webkit-touch-callout:none; user-select:none; }
.employee-shortcut-dragging { opacity:.65; cursor:grabbing; }
.employee-shortcut-drop { outline:2px dashed var(--portal-accent); outline-offset:2px; }
.document-reminder-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; gap:10px; }
.document-reminder-row label { min-width:0; margin:0; }
.document-reminder-row :is(input,select) { width:100%; min-width:0; }
.date-control.date-control-text-only > .date-control-display { padding-inline:8px; }
.date-control > .date-control-picker[hidden] { display:none; }
.employee-portal .date-control-calendar-only > .date-control-picker:not([hidden]) {
  inset:0; width:100%; height:100%; transform:none; direction:ltr; justify-content:flex-end; padding-inline:12px;
}
.employee-portal .date-control-calendar-only > .date-control-display { pointer-events:none; }
.date-calendar {
 position:fixed; inset:auto; margin:0; box-sizing:border-box;
 width:min(296px, calc(100vw - 16px)); max-height:calc(100dvh - 16px); overflow:auto;
 padding:12px; border:1px solid var(--line, #48636a); border-radius:12px;
 background:var(--panel, #192a30); color:var(--text, #edf6f6);
 box-shadow:0 8px 24px #0005; font-size:.9rem; direction:ltr;
}
.date-calendar-header { display:grid; grid-template-columns:1fr 4fr 1fr; align-items:center; text-align:center; gap:4px; margin-block-end:6px; }
.date-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; text-align:center; }
.date-calendar-grid > span { font-size:.68rem; padding-block:5px; }
.date-calendar button { min-height:36px; min-width:0; padding:3px; border:1px solid transparent; border-radius:6px; color:inherit; background:transparent; cursor:pointer; }
.date-calendar button:disabled { opacity:.38; cursor:default; }
.date-calendar button:not(:disabled):hover, .date-calendar button[aria-current=date] { border-color:var(--portal-accent, #72cfac); }
.date-calendar button[aria-pressed=true] { background:var(--portal-accent, #72cfac); color:#122623; font-weight:700; }
.date-calendar > button { width:100%; margin-block-start:6px; border-color:var(--line, #48636a); }
.attendance-method-member { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin:0; cursor:pointer; }
.attendance-method-member input[type="checkbox"] { width:20px; height:20px; margin:0; flex:none; }
.follow-up-recurring-toggle { display:flex; align-items:center; gap:8px; }
.follow-up-recurring-toggle input { width:18px; height:18px; margin:0; }

@media (pointer: coarse) {
  html { touch-action: pan-x pan-y; }
  body input:not([type="checkbox"], [type="radio"]), body select, body textarea { font-size: max(16px, 1em); }
}
.approval-row-feedback {
  display: inline-grid;
  place-items: center;
  flex: none;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  font-size: .75rem;
  white-space: nowrap;
}
.staff-salary-disclosure summary { display:flex; align-items:center; gap:8px; color:inherit; cursor:pointer; margin-block-end:10px; }
.staff-salary-disclosure summary[aria-disabled="true"] { cursor:default; }
.staff-salary-disclosure[open] .staff-salary-mask { display:none; }
[data-employee-view="profile"] .employee-account-shortcuts { grid-template-columns:1fr; }
.table-wrap:has(> .requests-overview) { border:0; border-radius:0; background:transparent; }
.requests-overview { min-width:850px; background:transparent; border-collapse:separate; border-spacing:0; }
.requests-overview tbody td { background:var(--dark-surface, #fff); }
.requests-overview tbody tr:hover td { background:var(--line); }
.requests-overview thead th { border-block-start:1px solid var(--line); }
.requests-overview :is(th, td):first-child { border-inline-start:1px solid var(--line); }
.requests-overview thead th:first-child { border-start-start-radius:14px; }
.requests-overview tbody tr:last-child td:first-child { border-end-start-radius:14px; }
.approval-external-controls { display:flex; align-items:center; gap:6px; }
.approval-row-feedback.is-counting {
  background: linear-gradient(#78d6ad35, #78d6ad35) right center / 0 100% no-repeat;
  animation: approval-countdown var(--approval-duration) linear var(--approval-elapsed, 0ms) forwards;
}
@keyframes approval-countdown { to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) {
  .approval-row-feedback.is-counting { animation-timing-function: steps(4, end); }
}
.mobile-attendance-card .employee-greeting { text-align:start; margin-block-end:3px; }
.mobile-attendance-card #manager-preview-date { text-align:start; color:var(--muted); margin-block:0 14px; font-size:13px; }
.employee-portal.mobile-attendance-card .employee-attendance-card { text-align:start; border:0; border-radius:20px; padding:16px; gap:9px; background:linear-gradient(145deg,#193d41,#325e60); }
.mobile-attendance-card #manager-preview-punch-head { display:flex; align-items:center; justify-content:space-between; gap:8px; order:-3; }
.mobile-attendance-card #manager-preview-punch-state { padding:4px 9px; border-radius:16px; background:#ffffff1f; font-size:11px; }
.mobile-attendance-card .employee-timer { order:-2; font-size:38px; font-weight:700; text-align:start; justify-self:start; }
.manager-preview .employee-shift { margin:0; font-size:13px; }
.mobile-attendance-card #manager-preview-punch-totals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0; }
.mobile-attendance-card #manager-preview-punch-totals div { padding:7px; border-radius:11px; background:#ffffff12; min-width:0; }
.mobile-attendance-card #manager-preview-punch-totals dt { color:var(--muted); font-size:10px; }
.mobile-attendance-card #manager-preview-punch-totals dd { margin:3px 0 0; font-weight:700; font-variant-numeric:tabular-nums; }
.manager-preview #manager-preview-summary .employee-team-metrics { gap:9px; border:0; padding:0; background:none; }
.manager-preview #manager-preview-summary .employee-team-metrics>div { padding:9px 4px; border:1px solid var(--line); border-radius:13px; background:var(--portal-surface); }
.manager-preview #manager-preview-attention h2 { font-size:16px; margin:0; }
.manager-preview #manager-preview-attention > div > button { display:flex; align-items:center; gap:10px; width:100%; color:inherit; font:inherit; text-align:start; cursor:pointer; background:var(--portal-surface); border:1px solid var(--line); border-radius:13px; padding:10px; margin-block:7px; }
.manager-preview #manager-preview-attention > div > button>bdi { padding:6px 9px; border-radius:8px; color:#ffd293; background:#503b1f; }
.manager-preview #manager-preview-attention > div > button>span:nth-child(2) { flex:1; }
.manager-preview #manager-preview-attention small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.mobile-attendance-card .employee-home-approval { border:1px solid var(--line); border-radius:15px; background:var(--portal-surface); padding:10px; }
.mobile-attendance-card .employee-home-approval>.employee-approval-card { border:0; padding:4px; background:none; }
.mobile-attendance-card .manager-preview-request-note { padding:8px; border-radius:10px; background:var(--portal-background); }
.manager-preview .employee-team-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.manager-preview .employee-team-actions form { grid-column:1/-1; }
.mobile-attendance-card #employee-bottom-nav [data-employee-page="requests"] { order:1; }
.mobile-attendance-card #employee-bottom-nav [data-employee-page="attendance"] { order:2; }
.mobile-attendance-card #employee-bottom-nav [data-employee-page="profile"] { order:3; }
.manager-preview #manager-team-attendance table,
.manager-preview #manager-team-attendance tbody { display:block; width:100%; }
.manager-preview #manager-team-attendance :is(thead,.employee-punch-person-gap) { display:none; }
.manager-preview #manager-team-attendance .employee-punch-branch-header,
.manager-preview #manager-team-attendance .employee-punch-branch { display:block; width:100%; }
.manager-preview #manager-team-attendance .employee-punch-person { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:8px 0; border:1px solid var(--line); border-radius:14px; background:var(--portal-surface); }
.manager-preview #manager-team-attendance .employee-punch-branch-collapsed > .employee-punch-person { display:none; }
.manager-preview #manager-team-attendance .employee-punch-person td { text-align:start; border:0; padding:9px; overflow-wrap:anywhere; }
.manager-preview #manager-team-attendance .employee-punch-person td:first-child { grid-column:1/-1; border-block-end:1px solid var(--line); font-weight:700; }
.manager-preview #manager-preview-more { order:3; }
.mobile-attendance-card #employee-bottom-nav button[aria-current="page"] { border-radius:0; border-block-start:3px solid var(--portal-accent); background:none; color:var(--portal-accent); }
.mobile-attendance-card #manager-preview-request-search:not([hidden]) { display:block; margin-block:10px 14px; }
.mobile-attendance-card #manager-preview-request-search input { width:100%; }
[data-employee-view="requests"] .employee-requests-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-block-end:12px; }
.employee-requests-heading h2 { margin:0; }
.employee-portal:not(.mobile-attendance-card) #mobile-own-new-request { display:none; }
.employee-portal.mobile-attendance-card #mobile-own-new-request:not([hidden]) { min-height:44px; padding:4px 10px; width:auto; font-size:12px; white-space:nowrap; }
.mobile-attendance-card #employee-team-request-filters button { border-radius:10px; }
.manager-preview #employee-team-request-history { display:grid; gap:10px; }
.manager-preview #employee-team-request-history .employee-own-request-compact { background:none; border:0; }
html[data-theme="dark"] .employee-portal.mobile-attendance-card .employee-attendance-card { background:linear-gradient(145deg,#1b4145,#325e60); }
.manager-preview .employee-team-actions > button.primary { background:#80c8a9; color:#102b26; border-color:#80c8a9; }
.manager-preview #manager-preview-attendance-date:not(:empty) { margin-block:8px 10px; }
.manager-preview #manager-preview-attendance-date .employee-team-attendance-dates { align-items:end; }
.manager-preview .employee-team-attendance-filters .button { border-radius:10px; }
.manager-preview .manager-preview-person { padding:12px; margin-block:10px; background:var(--portal-surface); border:1px solid var(--line); border-radius:15px; }
.manager-preview .manager-preview-person header { display:flex; align-items:center; gap:8px; }
.manager-preview .manager-preview-person header > div { flex:1; }
.manager-preview .manager-preview-person header > span:first-child { display:grid; place-items:center; min-width:34px; height:34px; border-radius:50%; background:var(--portal-control); }
.manager-preview .manager-preview-person small { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.manager-preview .manager-preview-person [data-status] { font-size:10px; border-radius:20px; background:#503b1f; color:#ffd293; padding:4px 7px; }
.manager-preview .manager-preview-person [data-status=present] { background:#244838; color:#a6e6bf; }
.manager-preview .manager-preview-person [data-status=absent] { background:#542e28; color:#ffc0ab; }
.manager-preview .manager-preview-person dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:10px 0 0; }
.manager-preview .manager-preview-person dl > div { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:6px 8px; background:var(--portal-background); border-radius:10px; }
.manager-preview .manager-preview-person dt { color:var(--muted); font-size:11px; }
.manager-preview .manager-preview-person dd { margin:0; font-size:12px; font-weight:700; white-space:nowrap; }
.manager-preview .manager-preview-person-shift + .manager-preview-person-shift { margin-block-start:12px; padding-block-start:10px; border-block-start:1px solid var(--line); }
.mobile-attendance-card .employee-request-person small { display:block; color:var(--muted); margin-block-start:3px; }
.manager-preview .manager-preview-more-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.manager-preview .manager-preview-more-grid button { display:grid; justify-items:start; align-content:center; gap:10px; min-height:100px; padding:14px; border:1px solid var(--line); border-radius:16px; background:var(--portal-surface); color:inherit; font:inherit; text-align:start; cursor:pointer; }
.manager-preview .manager-preview-more-grid svg { width:24px; height:24px; fill:none; stroke:var(--portal-accent); stroke-width:2.5; }

/* Dimensions and surfaces from the supplied manager phone references. */
.employee-portal.manager-preview .employee-content { padding-inline:12px; padding-block-start:12px; }
.employee-portal.mobile-attendance-card .employee-greeting { margin:0 0 2px; font-size:21px; line-height:1.3; }
.employee-portal.mobile-attendance-card #manager-preview-date { margin:0 0 16px; font-size:13px; }
.employee-portal.mobile-attendance-card .employee-attendance-card.card {
  padding:16px; gap:10px; margin:0 0 16px; border-radius:20px;
  background:linear-gradient(135deg,#1b3f43,#315f60); color:#eef7f4;
}
.employee-portal.mobile-attendance-card .employee-attendance-card > p { margin:0; }
.employee-portal.mobile-attendance-card .employee-attendance-card .employee-timer { font-size:34px; line-height:1; }
.employee-portal.mobile-attendance-card .employee-attendance-card .employee-scheduled-periods {
  order:-1; padding:0; border:0; color:#cfe7df; font-size:13px;
}
.employee-portal.mobile-attendance-card .employee-scheduled-periods li { justify-content:start; gap:6px; }
.employee-portal.mobile-attendance-card #employee-punch.button.primary { min-height:54px; border-radius:13px; }
.employee-portal.manager-preview #manager-preview-summary .employee-team-metrics { margin:0 0 16px; }
.employee-portal.manager-preview #manager-preview-summary .employee-team-metrics > div {
  min-height:78px; min-width:0; justify-items:center; align-content:center; text-align:center; gap:5px; padding:9px 2px;
}
.employee-portal.manager-preview #manager-preview-summary .employee-team-metrics strong { order:2; line-height:1; }
.employee-portal.manager-preview #manager-preview-summary .employee-team-metric-action {
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:5px; padding:0;
}
.employee-portal.manager-preview #manager-preview-attention { margin-block:0 14px; }
.employee-portal.manager-preview #employee-team-pending-section { margin-block:14px; }
.employee-portal.mobile-attendance-card .employee-home-approval { padding:12px; }
.employee-portal.mobile-attendance-card .employee-home-approval > .employee-approval-card { padding:0; }
.employee-portal.manager-preview .employee-home-approval > .employee-approval-controls { padding:0; }
.employee-portal.manager-preview .employee-home-approval .employee-approval-date { margin:10px 0 5px; }
.employee-portal.manager-preview .employee-home-approval .employee-team-actions { border:0; padding:0; margin-top:8px; }
.employee-portal.manager-preview .employee-home-approval .employee-team-actions .button.primary {
  background:#80c8a9; border-color:#80c8a9; color:#102b26; border-radius:12px; box-shadow:none;
}
.employee-portal.manager-preview .employee-home-approval .employee-team-actions .button.secondary {
  background:transparent; border-color:var(--line); color:inherit; border-radius:12px; box-shadow:none;
}
.employee-portal.mobile-attendance-card .manager-preview-request-note { margin:8px 0 0; font-size:13px; }
html .employee-portal.mobile-attendance-card [data-employee-view="home"] .employee-attendance-card.card {
  background:linear-gradient(135deg,#1c4145,#315f60) !important;
}
html[data-theme="light"]:not([data-appearance="medium"]) .employee-portal.mobile-attendance-card [data-employee-view="home"] .employee-attendance-card.card {
  background: var(--employee-attendance-light-surface) !important;
  box-shadow: inset 0 0 0 1px #cbd8d0;
  color: #203b39;
}
html[data-theme="light"]:not([data-appearance="medium"]) .mobile-attendance-card :is(
  .employee-attendance-card .employee-timer, .employee-scheduled-periods strong, #manager-preview-punch-state
) { color: #203b39; }
html[data-theme="light"]:not([data-appearance="medium"]) .mobile-attendance-card :is(
  #manager-preview-punch-state, #manager-preview-punch-totals div
) { background: #e8efeb; }
html[data-theme="light"]:not([data-appearance="medium"]) .mobile-attendance-card :is(
  .employee-scheduled-periods bdi, #manager-preview-punch-totals dt, #manager-punch-area:not([hidden])
) { color: #4d6661; }
html[data-theme="light"]:not([data-appearance="medium"]) .mobile-attendance-card #employee-punch.button.primary {
  background: #a5d9c2;
  border-color: #78b4a0;
  color: #173f37;
}
html[data-theme="light"]:not([data-appearance="medium"]) .mobile-attendance-card #employee-punch .employee-punch-icon {
  filter: brightness(0) saturate(100%) invert(19%) sepia(18%) saturate(1207%) hue-rotate(116deg) brightness(91%) contrast(92%);
}
.employee-portal.manager-preview .employee-heading:not(:has(#employee-title:not([hidden]))) { display:none; }
.employee-portal.mobile-attendance-card .employee-attendance-card #employee-shift { display:none; }
.employee-portal.mobile-attendance-card #manager-preview-punch-head strong { font-size:16px; }
.employee-portal.mobile-attendance-card #manager-preview-punch-state { color:#eef7f4; font-weight:700; }
.employee-portal.mobile-attendance-card .employee-attendance-card .employee-timer { color:#eef7f4; }
.employee-portal.mobile-attendance-card .employee-attendance-card .employee-scheduled-periods { margin:0; }
.employee-portal.mobile-attendance-card #manager-preview-punch-totals div { padding:6px 8px; background:#ffffff19; }
.employee-portal.mobile-attendance-card #manager-preview-punch-totals dt { color:#cfe7df; }
.employee-portal.mobile-attendance-card #manager-preview-punch-totals dd { font-size:16px; }
.employee-portal.manager-preview #manager-preview-summary .employee-team-metrics { gap:10px; }
.employee-portal.manager-preview #manager-preview-summary .employee-team-metrics small {
  font-size:0.8125rem;
  font-weight:700;
}
html[lang="ar"] .manager-preview #manager-preview-summary .employee-team-metrics small { white-space:nowrap; }
.mobile-attendance-card #manager-punch-area:not([hidden]) {
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  color:#d0e8e1;
  order:-1;
}
.employee-portal.mobile-attendance-card .employee-attendance-card .employee-scheduled-periods {order:0;}
.mobile-attendance-card #manager-preview-punch-totals {order:1;}
.mobile-attendance-card #employee-punch {order:2;}
.mobile-attendance-card #manager-punch-area::before {
  content:"";
  background:#86dba6;
  border-radius:50%;
  width:8px;
  height:8px;
  flex:none;
}
.manager-preview #employee-messages-dialog[open] {
  animation:manager-notifications-enter 180ms ease-out;
}
@keyframes manager-notifications-enter {
  from {transform:translateY(-100%);}
  to {transform:translateY(0);}
}
@media (prefers-reduced-motion: reduce) {
  .manager-preview #employee-messages-dialog[open] {animation:none;}
}
.manager-preview #employee-message-list {gap:0;}
.manager-preview .employee-notice-row {border-block-end:1px solid var(--line);}
.manager-preview #employee-message-list button.employee-notification-card {
  background:transparent;
  border:0;
  border-radius:0;
  align-items:center;
  padding:12px 0;
}
.manager-notice-avatar {
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--portal-surface);
  width:38px;
  height:38px;
  font-weight:700;
  flex:none;
}
.manager-preview #employee-team-pending-section .employee-section-heading {
  margin-block-end:24px;
}
.manager-preview :is(#employee-team-requests, #manager-preview-attention) .manager-approval-empty {
  display:grid;
  place-items:center;
  min-height:74px;
  padding:16px;
  margin:0;
  border:1px dashed var(--line);
  border-radius:16px;
  background:var(--portal-surface);
  color:var(--muted);
  font-size:14px;
  text-align:center;
}
.employee-portal.manager-preview #manager-preview-attention > div > button { min-height:64px; padding:10px 12px; }
.report-export-toolbar {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--dark-surface);
}
.report-people-toolbar { display: contents; }
.report-export-toolbar #report-branch { inline-size: auto; max-inline-size: 100%; }
.report-export-toolbar :is(button,select,summary) { min-block-size: 40px; }
.report-export-toolbar .report-export { margin-block-end: 0; margin-inline-start: auto; }
.report-export-toolbar .report-export > summary,
.payroll-bank-export > summary { background: var(--primary, #83c9ad); color: #102a26; }
.report-employee-picker, .staff-row-menu { position: relative; }
.report-employee-options, .staff-row-menu > div {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 4px);
  z-index: 5;
  min-inline-size: 170px;
  max-inline-size: min(290px, 80vw);
  background: var(--dark-surface, #182b32);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.staff-row-menu > summary { list-style: none; min-inline-size: 36px; text-align: center; }
.staff-row-menu > div { display: grid; gap: 4px; padding: 6px; }
.staff-row-menu > div button { text-align: start; }
.staff-directory tbody tr:has(.staff-profile-name) { cursor: pointer; }
.manager-team-branch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 10px;
  padding-inline-start: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.manager-team-branch select { flex: 1; min-inline-size: 0; border: 0; background: transparent; }
.report-toolbar-field { display:grid; gap:5px; min-inline-size:0; margin:0; }
.report-toolbar-field > span { color:var(--muted); font-size:.8rem; }
.report-export-toolbar { align-items:end; }
.report-toolbar-field .report-employee-picker summary { display:flex; align-items:center; gap:12px; list-style:none; }
.report-toolbar-field .report-employee-picker summary::after { content:"⌄"; margin-inline-start:auto; }
.staff-directory tbody tr:nth-last-child(-n+2) .staff-row-menu > div {
  inset-block-start: auto;
  inset-block-end: calc(100% + 4px);
}
.side-drawer:is(dialog, #period-dialog, #follow-up-workflow-dialog) {
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  inline-size: min(100vw, max(340px, 25vw));
  max-inline-size: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 18px;
  border: 0;
  border-radius: 0 12px 12px 0;
  overflow: auto;
  background: var(--dark-surface, white);
  color: inherit;
}
.side-drawer[open] { animation: slide-drawer-in .25s ease-out both; }
.side-drawer.side-drawer-closing { animation: slide-drawer-out .25s ease-in both; pointer-events: none; }
.side-drawer::backdrop { background: #103c4566; }
@keyframes slide-drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slide-drawer-out { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .side-drawer[open], .side-drawer.side-drawer-closing { animation: none; }
}
.side-drawer-actions, #period-form > .actions {
  position: sticky;
  inset-block-end: 0;
  display: flex;
  gap: 8px;
  padding-block: 10px;
  background: var(--dark-surface, white);
}
#period-form > .actions { z-index: 1; }
#period-dialog .period-weekdays > div { grid-template-columns: repeat(4,minmax(0,1fr)); }
#period-dialog .period-window { padding: 8px; }
#period-dialog .period-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
#period-dialog .period-fields label { min-inline-size: 0; overflow-wrap: anywhere; }
#follow-up-workflow-dialog .fields { grid-template-columns: 1fr; }
.ux-theme-segments {
  --appearance-position: 2;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  isolation: isolate;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-inline-size: 158px;
}
.ux-theme-segments[data-selected=light] { --appearance-position: 0; }
.ux-theme-segments[data-selected=medium] { --appearance-position: 1; }
.ux-theme-segments::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 3px;
  inset-inline-start: 3px;
  inline-size: calc((100% - 6px) / 3);
  background: color-mix(in srgb,var(--mint) 22%,var(--dark-surface,white));
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translateX(calc(var(--appearance-position) * 100%));
  transition: transform .2s ease-out;
}
.ux-theme-segments:dir(rtl)::before { transform: translateX(calc(var(--appearance-position) * -100%)); }
.ux-theme-segments label { position: relative; text-align:center; padding: 6px; margin: 0; cursor:pointer; }
.ux-theme-segments input { position:absolute; opacity:0; }
.ux-theme-segments label:has(input:checked) { font-weight:700; }
.ux-theme-segments label:has(input:focus-visible) { outline:2px solid var(--mint); border-radius:6px; }
.manager-preview .manager-preview-person[data-attendance-tone] {
  background: color-mix(in srgb,var(--attendance-tone) 13%,var(--portal-surface));
  border-color: color-mix(in srgb,var(--attendance-tone) 36%,var(--line));
}
.manager-preview-person[data-attendance-tone=present] { --attendance-tone:#71c998; }
.manager-preview-person[data-attendance-tone=late] { --attendance-tone:#e6af51; }
.manager-preview-person[data-attendance-tone=incomplete] { --attendance-tone:#e48e67; }
.manager-preview-person[data-attendance-tone=absent] { --attendance-tone:#e17279; }
.manager-preview .manager-preview-person [data-status=incomplete] { background:#633f32; color:#ffd0b4; }
.manager-preview .manager-preview-person [data-status] .manager-attendance-shortfall { color:inherit; font-size:inherit; text-align:center; }
.manager-preview .manager-preview-person .manager-attendance-total { grid-template-columns:repeat(3,minmax(0,1fr)); }
.manager-preview .manager-preview-person .manager-attendance-total > div { flex-wrap:wrap; column-gap:4px; row-gap:2px; }
.manager-preview .manager-preview-person .manager-attendance-day-total {
  grid-template-columns: minmax(0, max-content);
  justify-content: center;
  margin-block: 7px;
}
.staff-directory .table-wrap { max-block-size: none; overflow: auto; padding-block-end: 2px; }
html[data-theme=dark] :is(.side-drawer, .payroll-drawer) {
  --drawer-surface: #2f585d;
  background: var(--drawer-surface);
}
html[data-theme=dark] .side-drawer-actions,
html[data-theme=dark] #period-form > .actions { background: #2f585d; }
#period-dialog #period-form { gap: 8px; }
#period-dialog .period-weekdays label { padding: 4px; min-height: 36px; }
#period-dialog .period-weekdays { padding: 5px; margin: 0; }
#period-dialog :is(#fixed-period-rules,#flexible-period-settings,#period-overtime-settings) { padding: 5px; margin: 0; }
#period-dialog .period-flexible-option { margin: 0; min-height: 35px; padding-block: 5px; }
#period-dialog .period-time-picker summary { min-height: 36px; }
html[data-theme=dark] .side-drawer:is(dialog,#period-dialog,#follow-up-workflow-dialog) {
  background: var(--drawer-surface);
}
#period-dialog .period-weekdays > div { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
#period-dialog .period-weekdays label { font-size: .7rem; padding-inline: 1px; }
#period-dialog .period-weekdays label input { inline-size: 15px; block-size: 15px; }

.weekly-schedule .schedule-week { justify-content: flex-start; }
.schedule-week:dir(rtl) button span { display: inline-block; transform: scaleX(-1); }
.schedule-toolbar { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.schedule-overflow { position: relative; }
.schedule-overflow > summary { list-style: none; cursor: pointer; }
.schedule-overflow > summary::-webkit-details-marker { display: none; }
.schedule-overflow > button { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 0; z-index: 5; white-space: nowrap; }
.schedule-overflow:has(> button:disabled) { display: none; }

.schedule-empty { text-align: center; padding: 22px; }
.schedule-saved { outline: 1px solid var(--mint); }
.schedule-save-status { display: block; color: var(--mint); }
.schedule-grid.today-column-2 tr > :nth-child(2),
.schedule-grid.today-column-3 tr > :nth-child(3),
.schedule-grid.today-column-4 tr > :nth-child(4),
.schedule-grid.today-column-5 tr > :nth-child(5),
.schedule-grid.today-column-6 tr > :nth-child(6),
.schedule-grid.today-column-7 tr > :nth-child(7),
.schedule-grid.today-column-8 tr > :nth-child(8) { box-shadow: inset 0 0 0 100vmax color-mix(in srgb, var(--mint) 9%, transparent); }

#attendance-method-dialog .attendance-method-branches { display: grid; gap: 6px; }
#attendance-method-dialog .attendance-method-branches button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: start; white-space: normal; }
#attendance-method-dialog .attendance-method-branches [aria-pressed="true"] { background: var(--dark-raised, #d8ebe5); }
#attendance-method-dialog .attendance-method-branches small { flex: none; }

.attendance-toolbar { justify-content: space-between; }
.attendance-toolbar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.attendance-toolbar .attendance-date-controls { margin-inline-start: auto; }
.attendance-selection form { display: grid; gap: 12px; margin-top: 16px; }
.attendance-selection .attendance-method-members { max-height: min(42dvh, 450px); }
.attendance-selection .attendance-select-all { padding: 10px 8px; border: 1px solid var(--line); border-radius: 8px; }

.approval-row-feedback.is-sending {
  background: linear-gradient(90deg, transparent, #78d6ad65, transparent) left center / 45% 100% no-repeat;
  animation: approval-sending 1s ease-in-out infinite alternate;
}
@keyframes approval-sending { to { background-position: right center; } }
@media (prefers-reduced-motion: reduce) {
  .approval-row-feedback.is-sending { animation: none; background: #78d6ad30; }
}

.requests-list-toolbar { gap: 8px; }
.requests-list-toolbar > input { flex: 1 1 155px; max-width: 260px; }
.requests-list-toolbar :is(input,select,.button) { margin: 0; min-height: 36px; }
.requests-list-toolbar > [data-queue-visible-approvals] { margin-inline-start: auto; }
.requests-overview :is(th,td):last-child { width: auto; min-width: 100px; border-block-end: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.requests-overview thead th:last-child { background: var(--dark-raised, #eaf1ee) !important; border-start-end-radius: 14px; }
.request-row-actions.approval-row-queued > button[data-decision] { display: none; }
.approval-row-feedback { min-height: 31px; }
.request-forwarded { margin-block-start: 6px; color: var(--mint); }
.request-forwarded small { display: block; color: var(--muted); }

.staff-employment-layout { display: grid; gap: 12px; align-items: start; }
.staff-balance-preview .leave-entry-preview { margin-block-start: 6px; gap: 4px; }
.staff-balance-preview .leave-entry-preview > div { gap: 8px; }
@media (min-width: 1000px) {
  .staff-employment-layout { grid-template-columns: minmax(0, 1fr) minmax(220px, 24%); }
  #staff-form.staff-paged-form .staff-employment-layout > .staff-balance-preview { grid-column: auto; }
}

.requests-overview .request-row-actions { margin-block-start: 6px; }
.requests-overview tbody tr:last-child td:last-child { border-end-end-radius: 14px; }

.request-selection-drawer form { display: grid; gap: 10px; margin-block-start: 14px; }
.request-selection-dates { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.request-selection-drawer .attendance-method-members { max-height: 34dvh; }
.request-selection-drawer :is(select,.date-control) { width: 100%; min-width: 0; }
.requests-list-toolbar [hidden] { display: none; }

.employee-wallet-expiry-badge { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; font-size: .72rem; padding: 4px 7px; }

.period-name-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.employee-calendar-shift { display:grid; gap:4px; padding:12px; margin-block:8px; border-radius:12px; background:var(--portal-surface); border-inline-start:3px solid var(--portal-accent); }
.employee-calendar-shift small,.employee-day-summary span { color:var(--muted); }
.employee-day-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.employee-day-summary > div { display:grid; gap:6px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:var(--portal-surface); font-size:.875rem; }
.employee-day-summary bdi { font-weight:700; }
.employee-day-summary .employee-work-deficit { color:#ef7883; }

@media (max-width: 680px) {
  #employee-calendar-details > .employee-section-heading { margin-block-end: 4px; }
  .employee-calendar-shift {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-around;
    gap: 4px 8px;
    padding: 6px 8px;
    margin-block: 4px;
    border-inline-start: 0;
    font-size: .8125rem;
  }
  .employee-calendar-shift bdi {
    padding-inline: 8px;
    border-inline: 1px solid var(--line);
  }
  .employee-day-summary { gap: 4px; }
  .employee-day-summary > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    gap: 2px 4px;
    padding: 5px 7px;
    font-size: .75rem;
  }
}

.request-settings-columns, .request-settings-group ul {
  display: grid;
  gap: 8px;
}
.request-settings-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-surface, var(--card));
}
.request-settings-group h2 {
  margin: 0;
  padding: 5px 10px;
  text-align: center;
  background: var(--dark-raised, var(--card));
  font-size: .875rem;
}
.request-settings-group ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
  list-style: none;
  margin: 0;
  padding: 0 8px;
}
.request-settings-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 2px 5px;
  border-block-start: 1px solid var(--line);
  font-size: .8125rem;
}
.request-settings-group li > strong { overflow-wrap: anywhere; }
.request-settings-group li > .compact { min-height: 26px; padding: 2px 7px; }
.approval-path-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 3px;
  max-width: 16rem;
  font-size: .6875rem;
}
.approval-path-summary > span:not(.approval-direction) {
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--surface, var(--card));
}
#leave-preferences-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
#leave-preferences-form > .card { margin: 0; }
#leave-preferences-form > :not(.card) { grid-column: 1 / -1; }
#leave-preferences-form > .button { justify-self: start; }
@media (max-width: 860px) {
  .request-settings-group ul, #leave-preferences-form { grid-template-columns: minmax(0, 1fr); }
}


#payroll-notification-settings-form {
  display: grid;
  gap: 12px;
}
#payroll-notification-settings-form fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 4px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
#payroll-notification-settings-form legend {
  padding-inline: 6px;
}
#payroll-notification-settings-form .payroll-notice-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
  margin: 0;
}
#payroll-notification-settings-form .payroll-notice-choice input[type=checkbox] {
  flex: 0 0 auto;
  inline-size: 16px;
  block-size: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.payroll-notice-channels {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
}

.employee-wallet .mobile-wallet-intro { margin-block: 14px; }
.mobile-wallet-intro h2 { margin: 0; font-size: clamp(1.45rem, 6vw, 2rem); }
.mobile-wallet-intro p { margin: 5px 0; overflow-wrap: anywhere; }
.mobile-wallet-intro p:empty { display: none; }
.mobile-wallet-intro p strong { color: var(--warning, #e9b65b); }
.mobile-wallet-toolbar { display: flex; gap: 10px; margin-block: 16px; }
.mobile-wallet-toolbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mobile-wallet-toolbar a .employee-card-icon { width: 20px; height: 20px; background: none; }
.mobile-wallet-panel { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.mobile-wallet-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 12px; }
.mobile-wallet-filters .button { min-height: 38px; border-radius: 10px; }
.mobile-wallet-filters [aria-pressed=true] { background: var(--button-bg, #2a6272); color: white; }
.mobile-wallet-filters small, .employee-wallet summary small { border-radius: 999px; padding: 2px 7px; background: color-mix(in srgb,currentColor 12%,transparent); }
.mobile-wallet-panel input[type=search] { inline-size: 100%; }
.mobile-wallet-results { display: flex; align-items: center; gap: 12px; margin-block: 10px; font-size: .82rem; }
.mobile-wallet-groups { border-block-start: 1px solid var(--line); }
.mobile-wallet-groups summary { display:grid; grid-template-columns: 36px minmax(0,1fr) auto 12px; align-items:center; gap:8px; list-style:none; }
.mobile-wallet-groups summary::-webkit-details-marker { display:none; }
.mobile-wallet-folder { display:grid; place-items:center; border-radius:8px; inline-size:36px; block-size:36px; background:color-mix(in srgb,currentColor 12%,transparent); }
.mobile-wallet-folder svg { inline-size:18px; fill:none; stroke:currentColor; stroke-width:1.5; }
.mobile-wallet-chevron { inline-size:8px; block-size:8px; border-inline-end:2px solid; border-block-start:2px solid; transform:rotate(45deg); }
.mobile-wallet-groups details[open] .mobile-wallet-chevron { transform:rotate(135deg); }
.mobile-wallet-groups li[hidden] { display:none; }

.follow-up-conversation { margin-block: 18px; }
.follow-up-conversation-tabs { display:flex; gap:6px; margin-block-end:14px; }
.follow-up-conversation-tabs [data-follow-tab] { flex:1; min-width:0; padding:9px 3px; border:0; border-block-end:2px solid transparent; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.follow-up-conversation-tabs [data-follow-tab][aria-pressed="true"] { border-block-end-color:var(--portal-accent,#79cbae); font-weight:700; }
.follow-up-messages { display:grid; gap:12px; margin-block:12px; }
.follow-up-message { inline-size:min(85%, 36rem); justify-self:end; overflow-wrap:anywhere; }
.follow-up-message.is-mine { justify-self:start; }
.follow-up-message > strong { display:block; font-size:.8rem; margin:0 6px 4px; }
.follow-up-bubble { padding:10px 12px; border:1px solid var(--line); background:var(--follow-up-incoming,#22363e); border-radius:14px; border-start-end-radius:5px; }
.follow-up-message.is-mine .follow-up-bubble { background:var(--follow-up-outgoing,#244b47); border-start-end-radius:14px; border-start-start-radius:5px; }
.follow-up-message.is-highlighted .follow-up-bubble { outline:2px solid var(--portal-accent,var(--mint)); }
.follow-up-bubble p { white-space:pre-wrap; margin:0; }
.follow-up-bubble time { display:block; text-align:end; font-size:.75rem; margin-block-start:4px; color:var(--muted); }
.follow-up-compose { display:grid; gap:8px; padding-block-start:10px; border-block-start:1px solid var(--line); }
.follow-up-compose textarea { inline-size:100%; }
.follow-up-compose button { justify-self:end; }
.follow-up-timeline:not([hidden]) { margin-inline-start:7px; border-inline-start:1px solid var(--line); padding-inline-start:15px; }
.follow-up-timeline-event { position:relative; display:grid; gap:4px; padding-block-end:13px; }
.follow-up-timeline-event::before { content:''; position:absolute; inset-inline-start:-20px; top:.45em; background:var(--portal-accent,var(--mint)); width:9px; height:9px; border-radius:50%; }
.follow-up-timeline-event small { color:var(--muted); }
.follow-up-change { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 10px; background:var(--portal-control,var(--card)); border-radius:8px; padding:6px 8px; font-size:.85rem; }
.follow-up-message-date { margin:6px 0; text-align:center; color:var(--muted); font-size:.8rem; }

html[data-theme="light"] { --follow-up-incoming:#e2eae5; --follow-up-outgoing:#c9e1d3; }
.follow-up-chat-attachment { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:5px; margin-block-start:8px; padding-block-start:7px; border-block-start:1px solid var(--line); }
.follow-up-chat-attachment bdi { min-inline-size:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.follow-up-chat-attachment .button { white-space:nowrap; }
.follow-up-compose-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:6px; }
.follow-up-compose-row textarea { min-inline-size:0; min-block-size:40px; margin:0; resize:vertical; }
.follow-up-compose-row .button { min-block-size:40px; margin:0; }
#follow-up-workflow-dialog .follow-up-detail-fields { display:grid; grid-template-columns:minmax(0,1.15fr) repeat(2,minmax(0,1fr)); gap:6px; }
.follow-up-dialog .follow-up-detail-fields > label { min-inline-size:0; font-size:.8rem; }
.follow-up-dialog .follow-up-detail-fields :is(select,.date-control) { min-inline-size:0; inline-size:100%; }
.follow-up-dialog .follow-up-detail-fields .date-control-display { min-inline-size:0; padding-inline:3px 25px; font-size:clamp(.65rem,2.8vw,.78rem); }
.follow-up-dialog .follow-up-detail-fields .date-control-picker { inline-size:25px; min-inline-size:25px; padding-inline:3px; }

.attendance-toolbar { justify-content:flex-start; gap:8px 12px; }
.attendance-toolbar #ux-attendance-count { flex:0 0 auto; color:var(--muted); white-space:nowrap; }
.attendance-toolbar .attendance-date-controls { margin:0; }
.attendance-toolbar [data-rejected-punches] { margin-inline-start:auto; white-space:nowrap; }
.report-toolbar-compact { padding:8px 10px; gap:8px; margin-block:8px 10px; flex-wrap:wrap; }
.report-toolbar-compact .report-export { margin-inline-start:0; }
.report-toolbar-compact .ux-report-context { margin:0; margin-inline-end:auto; align-self:center; white-space:nowrap; font-size:.8rem; }
.report-toolbar-compact .ux-columns { margin:0; }
.report-toolbar-compact .ux-column-options { inset-inline-start:auto; inset-inline-end:0; }
.document-wallet-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-block-end:12px; }
.document-wallet-heading h1,.document-wallet-heading .document-wallet-toolbar { margin:0; }
.document-wallet-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-block-end:10px; }
.document-wallet-controls :is(.document-wallet-statuses,.ux-list-toolbar) { flex-wrap:wrap; gap:6px; margin:0; }
.document-wallet-controls .ux-list-toolbar input { inline-size:clamp(150px,18vw,240px); }
@media(max-width:750px) { .attendance-toolbar [data-rejected-punches] { margin-inline-start:0; } }

.follow-up-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:8px 12px; margin-block-end:12px; }
.follow-up-toolbar .follow-up-kind { order:1; flex:0 1 180px; min-inline-size:120px; margin:0; }
.follow-up-toolbar .follow-up-kind select { margin:0; }
.follow-up-toolbar .follow-up-assignees { order:2; flex:1 1 260px; margin:0; min-inline-size:0; }
.follow-up-toolbar .follow-up-create-actions { order:3; display:flex; flex-wrap:wrap; gap:6px; margin:0; margin-inline-start:auto; }
.follow-up-toolbar .follow-up-create-actions .button { margin:0; }
