:root {
  color-scheme: light;
  --ink: #1d2433;
  --muted: #81889a;
  --line: #edf0f5;
  --surface: #fff;
  --canvas: #f6f8fb;
  --navy: #1d263b;
  --purple: #7257e8;
  --purple-dark: #6245db;
  --green: #1a9b70;
  --shadow: 0 12px 32px rgba(34, 45, 70, .08);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html {
  /* Native 60/120fps hardware-composited scrolling without mouse wheel interpolation lag */
  -webkit-overflow-scrolling: touch;
  overflow-y: scroll;
}
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 14px;  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #bdb0ff; outline-offset: 2px; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 62px; padding: 10px 0 10px; align-items: center; background: #ffffff; border-right: 1px solid #e8eaed; z-index: 6; display: flex; flex-direction: column; box-shadow: 1px 0 3px rgba(0,0,0,0.02); }
.brand { height: 33px; display: flex; align-items: center; gap: 10px; margin: 0 7px 27px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 37px; width: auto; max-width: 100%; display: block; }
.brand-mark { height: 27px; width: 27px; border-radius: 9px; background: linear-gradient(145deg, #866cf5, #6247df); display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-8deg); box-shadow: 0 5px 12px #7658e642; }
.brand-mark span { width: 3px; border-radius: 4px; background: white; transform: rotate(8deg); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .72; }.brand-mark span:nth-child(2) { height: 15px; }.brand-mark span:nth-child(3) { height: 11px; opacity: .85; }
.brand-name { font: 800 21px Manrope, sans-serif; letter-spacing: -1.15px; }.brand-name span { color: var(--purple); }
.workspace-switcher { min-height: 58px; border: 1px solid #eff1f6; border-radius: 11px; display: flex; align-items: center; padding: 9px; gap: 9px; margin-bottom: 28px; box-shadow: 0 2px 5px #1b254008; }
.workspace-icon { flex: 0 0 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #634cda; background: #f0edff; font: 800 13px Manrope; }
.workspace-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }.workspace-copy strong { font-size: 11.5px; font-weight: 700; }.workspace-copy small { color: #949aab; font-size: 10px; }.chevron { color: #9ba1af; font-size: 17px; margin-right: 2px; }
.nav-label { color: #a2a7b4; font-weight: 700; font-size: 9px; letter-spacing: 1.1px; padding: 0 10px; margin-bottom: 9px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { text-decoration: none; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 39px; border: 0; border-radius: 8px; padding: 0 10px; color: #72798a; background: transparent; font-size: 12px; font-weight: 600; text-align: left; }
.nav-item.active { color: var(--purple-dark); background: #f3f0ff; font-weight: 700; }.nav-item:hover:not(.active):not(.coming-soon) { background: #f8f8fb; color: var(--ink); }
.nav-icon { width: 17px; font-size: 16px; color: #9298a8; text-align: center; }.nav-item.active .nav-icon { color: var(--purple); }
.nav-count { margin-left: auto; font-size: 10px; font-weight: 700; color: #7965d5; background: #e8e3ff; border-radius: 12px; padding: 2px 7px; }
.coming-soon { cursor: not-allowed; opacity: .68; }.nav-lock { margin-left: auto; color: #9ea3b0; font-size: 9px; font-weight: 600; background: #f5f6f8; border-radius: 5px; padding: 3px 5px; }
.tools-label { margin-top: 29px; }.sidebar-bottom { margin-top: auto; }
.help-card { height: 58px; border: 1px solid #f0edf9; background: linear-gradient(112deg, #faf9ff, #fff); border-radius: 9px; display: flex; align-items: center; padding: 9px; gap: 8px; margin: 0 1px 13px; }
.help-orb { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; background: #ece8ff; color: var(--purple); font-weight: 800; }.help-card div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }.help-card strong { font-size: 10px; }.help-card span { font-size: 9px; color: #9a9eab; }.help-card .help-arrow { margin-left: auto; font-size: 15px; color: #8882aa; }
.profile-button { height: 53px; padding: 7px 3px; background: transparent; border: 0; border-top: 1px solid var(--line); width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; font: 700 10px Manrope; flex: 0 0 auto; }.avatar-dark { width: 29px; height: 29px; background: #e8e5ff; color: #6750d1; }.profile-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; }.profile-copy strong { font-size: 10px; }.profile-copy small { font-size: 9px; color: #989ead; }.more { color: #9298a5; font-size: 20px; letter-spacing: 2px; }
.main-area { min-height: 100vh; margin-left: 246px; }.topbar { height: 61px; padding: 0 39px; background: #ffffff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 4; transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #969bab; font-size: 11px; }.breadcrumbs strong { color: #343a4a; font-weight: 600; }.crumb-slash { color: #c5c8d1; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }.environment-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e6e2ff; background: #f7f5ff; color: #735fd0; border-radius: 20px; font-size: 8px; letter-spacing: .55px; font-weight: 700; padding: 6px 9px; }.environment-pill i { width: 5px; height: 5px; border-radius: 50%; background: #8a70f3; }.environment-pill.connected { color: #168460; background: #eefaf5; border-color: #d9f2e6; }.environment-pill.connected i { background: #20a47c; }
.icon-button { position: relative; width: 30px; height: 30px; border: 0; background: transparent; color: #788092; font-size: 16px; border-radius: 8px; }.icon-button:hover { background: #f4f5f8; }.notification-button i { position: absolute; top: 5px; right: 6px; height: 5px; width: 5px; border: 1px solid white; background: #ee8c77; border-radius: 50%; }.avatar-top { width: 29px; height: 29px; color: #fff; background: linear-gradient(135deg,#ea9a83,#c86c74); font-size: 9px; }.mobile-menu { display: none; }
.page-content { max-width: 1430px; padding: 31px 39px 18px; margin: 0 auto; }.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 21px; }.eyebrow { color: #9a8bd8; font-weight: 700; font-size: 8px; letter-spacing: 1.15px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: #967df1; }
h1,h2,p { margin: 0; }h1 { font: 700 25px Manrope, sans-serif; letter-spacing: -.85px; color: #222839; }.page-heading p { margin-top: 6px; color: #9298a8; font-size: 11px; }.heading-actions { display: flex; align-items: center; gap: 8px; }
.button { min-height: 34px; border-radius: 7px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; font-weight: 700; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }.button:active { transform: translateY(1px); }.button-secondary { color: #62697a; background: #fff; border-color: #e9ebf1; }.button-secondary:hover { border-color: #cbc5ef; }.button-primary { color: white; background: var(--purple); box-shadow: 0 4px 9px #7358e82c; }.button-primary:hover { background: var(--purple-dark); box-shadow: 0 5px 14px #7358e844; }.button-primary .plus { font-size: 15px; font-weight: 400; }.button-secondary>span { font-size: 14px; }
.auth-button { min-height: 29px; padding: 0 9px; font-size: 9px; }
.notice { padding: 10px 12px; border-radius: 8px; color: #8c4c28; background: #fff6e8; border: 1px solid #ffedcc; font-size: 11px; margin-bottom: 13px; }
.overview-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.metric-card { position: relative; height: 116px; overflow: hidden; border-radius: 10px; background: white; border: 1px solid #eef0f5; padding: 13px 14px; }.metric-top { display: flex; align-items: center; justify-content: space-between; color: #7c8292; font-size: 10px; font-weight: 600; }.metric-icon { width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; }.lavender { color: #745fe0; background: #f0edff; }.mint { color: #1e9b72; background: #e7f8f0; }.peach { color: #dc8765; background: #fff1e9; }.blue { color: #4c87cf; background: #eaf3ff; }.metric-value { font: 700 24px Manrope, sans-serif; margin-top: 8px; letter-spacing: -.9px; }.metric-foot { display: flex; gap: 5px; align-items: center; color: #9b9faf; font-size: 9px; margin-top: 2px; }.metric-neutral { color: #6e7484; font-weight: 600; }.metric-positive { display: flex; align-items: center; gap: 5px; color: #258e6d; font-weight: 600; }.metric-positive i { width: 5px; height: 5px; border-radius: 50%; background: #30b58a; }
.metric-spark { position: absolute; right: 13px; bottom: 15px; height: 22px; display: flex; align-items: flex-end; gap: 3px; opacity: .55; }.metric-spark i { display: block; width: 3px; height: 30%; border-radius: 3px; background: #a899f2; }.metric-spark i:nth-child(2n) { height: 58%; }.metric-spark i:nth-child(3n) { height: 82%; }.metric-spark i:nth-child(5n) { height: 45%; }.spark-green i { background: #65c6a4; }.spark-orange i { background: #edb091; }.spark-blue i { background: #86b1e1; }
.team-insight { display: flex; align-items: center; min-height: 75px; padding: 12px 15px; margin-top: 12px; background: linear-gradient(110deg,#fff 0%,#fffeff 75%,#faf9ff 100%); border: 1px solid #efedf6; border-radius: 10px; }.insight-intro { display: flex; align-items: center; gap: 9px; width: 32%; }.insight-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #f2efff; color: #856be3; font-size: 13px; }.insight-intro strong { font-size: 10px; }.insight-intro p { margin-top: 4px; color: #9a9eab; font-size: 9px; }.insight-divider { height: 33px; border-left: 1px solid #eeedf3; margin: 0 20px 0 5px; }.insight-stat { display: flex; flex-direction: column; gap: 6px; min-width: 185px; }.insight-stat>span { color: #969aaa; font-size: 9px; }.insight-stat>strong { font-size: 9px; font-weight: 700; color: #535a69; }.insight-stat strong i { color: #b2a4e8; font-style: normal; padding: 0 2px; }.insight-divider-short { margin-left: 5px; margin-right: 20px; }.insight-locations { min-width: 113px; }.flag { display: inline-grid; place-items: center; width: 18px; height: 13px; border-radius: 3px; background: linear-gradient(#f4a55d 0 33%,#fff 33% 66%,#4b9a63 66%); color: #3455a1; font-size: 6px; vertical-align: 1px; margin-right: 3px; }.insight-link { border: 0; margin-left: auto; color: #775fe0; background: transparent; font-size: 9px; font-weight: 700; white-space: nowrap; }.insight-link span { font-size: 14px; margin-left: 4px; }
.directory-card { margin-top: 15px; background: #fff; border: 1px solid #eceef3; border-radius: 10px; overflow: hidden; }.directory-header { padding: 15px 16px 13px; display: flex; align-items: center; justify-content: space-between; }.directory-header h2 { font: 700 12px Manrope, sans-serif; letter-spacing: -.15px; }.directory-header p { color: #969baa; font-size: 9px; margin-top: 5px; }.directory-header-actions { display: flex; gap: 8px; align-items: center; }.search-box { height: 31px; width: 211px; display: flex; align-items: center; padding: 0 8px; border: 1px solid #ebedf2; border-radius: 6px; gap: 6px; color: #a0a4b0; }.search-box>span { font-size: 18px; line-height: 1; }.search-box input { width: 100%; min-width: 0; border: 0; outline: none; color: #4d5362; background: transparent; font-size: 9px; }.search-box input::placeholder { color: #afb3bf; }.search-box input:focus-visible { outline: none; }.search-box kbd { white-space: nowrap; border: 1px solid #ebeef3; border-radius: 4px; padding: 2px 4px; color: #a7aab5; background: #fafbfc; font: 8px "DM Sans"; }.filter-button { height: 31px; border: 1px solid #ebedf2; border-radius: 6px; padding: 0 9px; color: #72798a; background: white; font-size: 10px; }.filter-button:hover { background: #faf9ff; border-color: #d8d1f7; }.filter-row { display: flex; align-items: center; gap: 6px; border-top: 1px solid #f1f2f6; padding: 9px 16px; color: #9398a6; font-size: 9px; }.filter-chip { border: 1px solid transparent; border-radius: 12px; padding: 4px 9px; background: #f7f8fa; color: #747b8b; font-size: 9px; }.filter-chip.selected { color: #6d56d9; border-color: #e2dcff; background: #f6f4ff; }
.table-wrap { overflow-x: auto; min-height: 178px; }table { width: 100%; border-collapse: collapse; text-align: left; }thead { background: #fafbfc; }th { height: 34px; color: #9a9eab; font-size: 8px; font-weight: 700; letter-spacing: .58px; white-space: nowrap; }td { height: 47px; color: #586071; font-size: 10px; border-top: 1px solid #f2f3f6; }th:first-child,td:first-child { padding-left: 16px; width: 37px; }th:nth-child(2) { min-width: 225px; }th:nth-child(3) { min-width: 110px; }th:nth-child(4) { min-width: 110px; }th:nth-child(5) { min-width: 110px; }th:last-child,td:last-child { padding-right: 14px; }.check-col input,td input { appearance: none; width: 13px; height: 13px; border: 1px solid #d8dbe4; border-radius: 3px; background: white; vertical-align: middle; cursor: pointer; }.check-col input:checked,td input:checked { background-color: #7257e8; border-color: #7257e8; box-shadow: inset 0 0 0 2px white; }.sort-button { border: 0; color: #b5b8c2; background: none; margin-left: 2px; font-size: 12px; }.employee-cell { display: flex; align-items: center; gap: 9px; }.person-avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; display: grid; place-items: center; color: var(--person-color,#6d58cb); background: var(--person-bg,#f0edff); font: 700 9px Manrope; }.person-copy { display: flex; flex-direction: column; gap: 3px; }.person-copy strong { color: #3e4554; font-size: 10px; font-weight: 700; }.person-copy small { color: #a0a4b0; font-size: 8px; }.status-pill { display: inline-flex; align-items: center; gap: 5px; min-width: 55px; justify-content: center; border-radius: 12px; padding: 4px 7px; color: #208a69; background: #eaf8f1; font-size: 8px; font-weight: 700; }.status-pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #39b48b; }.status-draft { color: #b37623; background: #fff6e8; }.status-draft::before { background: #e6a83e; }.status-on_leave { color: #5478b6; background: #eef4ff; }.status-on_leave::before { background: #7196d2; }.status-separated { color: #8b8f9c; background: #f1f2f5; }.status-separated::before { background: #a8abb4; }.row-id { color: #8c91a0; font: 9px ui-monospace,Consolas,monospace; }.row-more { border: 0; background: transparent; color: #a5a9b4; font-size: 17px; padding: 4px 8px; }.employee-row { cursor: pointer; }.employee-row:hover { background: #fcfbff; }.row-actions-col { width: 45px; }
.table-footer { min-height: 45px; border-top: 1px solid #f0f1f5; display: flex; align-items: center; padding: 0 15px; color: #a0a4b0; font-size: 8px; }.pagination { margin: 0 auto; display: flex; align-items: center; gap: 6px; color: #666c7b; }.pagination button { width: 22px; height: 22px; border: 1px solid #eceef2; border-radius: 5px; background: #fff; color: #a8acb7; font-size: 14px; }.pagination span { display: grid; place-items: center; width: 21px; height: 21px; background: #f2efff; color: #715adb; border-radius: 5px; }.page-size { display: flex; align-items: center; gap: 8px; }.page-size strong { color: #6c7281; border: 1px solid #eceef2; border-radius: 5px; padding: 5px 7px; font-weight: 600; }.page-size strong span { color: #9ea2af; padding-left: 6px; }.empty-state,.loading-state { min-height: 176px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #959aaa; }.empty-illustration { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f3f0ff; color: #7861dd; font-size: 18px; margin-bottom: 8px; }.empty-state strong { color: #53596a; font-size: 11px; }.empty-state p { margin: 5px 0 10px; font-size: 9px; }.empty-state .button { min-height: 27px; font-size: 9px; }.loading-state { flex-direction: row; gap: 8px; font-size: 10px; }.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid #ece8ff; border-top-color: #775ee3; border-radius: 50%; animation: spin .75s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }
.page-footer { display: flex; justify-content: space-between; color: #a6aab5; font-size: 8px; padding: 15px 2px 3px; }.page-footer b { color: #a18eea; font-size: 11px; margin-left: 3px; }
.modal-backdrop,.drawer-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(28,34,50,.38); backdrop-filter: blur(3px); padding: 15px; }.modal { width: min(100%,435px); padding: 21px 23px 19px; background: white; border-radius: 14px; box-shadow: 0 22px 70px #17203b3b; animation: appear .18s ease-out; }.modal-top { display: flex; justify-content: space-between; align-items: center; }.modal-symbol { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; background: #f1eeff; color: #735bdf; }.modal-close,.drawer-close { width: 27px; height: 27px; display: grid; place-items: center; border: 0; border-radius: 7px; background: #f7f8fa; color: #777e8d; font-size: 19px; }.modal-heading { margin: 14px 0 16px; }.modal-heading h2 { font: 700 17px Manrope,sans-serif; letter-spacing: -.4px; }.modal-heading p { max-width: 350px; color: #9096a5; line-height: 1.5; font-size: 10px; margin-top: 5px; }.form-field { display: flex; flex-direction: column; gap: 6px; margin-top: 11px; }.form-field>span { color: #5e6574; font-size: 9px; font-weight: 700; }.form-field>span b { color: #dd7667; }.form-field input,.form-field textarea { border: 1px solid #e7e9ef; border-radius: 6px; height: 35px; padding: 0 10px; color: #454b5b; background: #fff; font-size: 10px; resize: vertical; }.form-field textarea { height: auto; padding-top: 9px; }.form-field input::placeholder,.form-field textarea::placeholder { color: #b2b6c1; }.form-error { color: #b74843; background: #fff1f0; border-radius: 6px; padding: 8px 9px; margin-top: 10px; font-size: 9px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; padding-top: 13px; border-top: 1px solid #f0f1f4; }.modal-actions .button { min-height: 33px; }.modal-actions .button-primary { min-width: 133px; }.settings-modal { width: min(100%,460px); }.settings-note { color: #8a819d; background: #f7f5ff; padding: 9px 10px; border-radius: 6px; font-size: 9px; line-height: 1.45; margin-top: 11px; }
.drawer-backdrop { display: block; padding: 0; }.employee-drawer { position: absolute; right: 0; top: 0; height: 100%; overflow: auto; width: min(100%,380px); background: white; padding: 22px; box-shadow: -12px 0 40px #1d263b25; animation: slidein .2s ease-out; }.drawer-close { margin-left: auto; }.drawer-profile { text-align: center; padding: 14px 0 22px; }.drawer-avatar { margin: 0 auto 12px; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px; background: #f0edff; color: #6952d1; font: 700 18px Manrope; }.drawer-profile h2 { font: 700 17px Manrope; }.drawer-profile>p { color: #9197a6; font-size: 10px; margin-top: 5px; }.drawer-detail { border-top: 1px solid #eff0f4; padding: 13px 1px; display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }.drawer-detail span { color: #969baa; }.drawer-detail strong { color: #454b5a; text-align: right; font-weight: 600; }.drawer-title { margin: 12px 0; color: #a09bab; font-size: 8px; font-weight: 700; letter-spacing: .8px; }.toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: min(400px,calc(100vw - 40px)); transform: translateY(12px); opacity: 0; pointer-events: none; transition: .2s; color: white; background: #252d41; border-radius: 8px; box-shadow: var(--shadow); padding: 11px 14px; font-size: 10px; }.toast.show { transform: translateY(0); opacity: 1; }
@keyframes appear { from { transform: translateY(7px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }@keyframes slidein { from { transform: translateX(14px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
@media (min-width: 1600px) { .page-content { padding-top: 39px; }.overview-grid { gap: 15px; }.metric-card { height: 130px; padding: 16px; }.metric-value { margin-top: 13px; }.directory-card { margin-top: 18px; }.team-insight { min-height: 82px; } }
@media (max-width: 1100px) { .sidebar { width: 215px; }.main-area { margin-left: 215px; }.topbar { padding: 0 25px; }.page-content { padding: 27px 25px 16px; }.insight-intro { width: 30%; }.insight-divider { margin-right: 12px; }.insight-stat { min-width: 155px; }.overview-grid { gap: 9px; }.metric-card { padding: 12px; } }
@media (max-width: 800px) { .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 30px #1d263b17; }.sidebar.open { transform: translateX(0); }.main-area { margin-left: 0; }.mobile-menu { display: block; border: 0; background: transparent; font-size: 16px; color: #687083; }.topbar { padding: 0 17px; justify-content: flex-start; gap: 12px; }.breadcrumbs { margin-right: auto; }.topbar-actions { gap: 8px; }.page-content { padding: 24px 17px 16px; }.overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.team-insight { flex-wrap: wrap; gap: 10px; }.insight-intro { width: 100%; }.insight-divider { display: none; }.insight-stat { min-width: 0; flex: 1; }.insight-link { margin-left: 0; }.environment-pill { font-size: 0; padding: 7px; }.environment-pill i { width: 6px; height: 6px; }.search-box { width: clamp(130px,32vw,211px); } }
@media (max-width: 560px) { .page-content { padding: 20px 11px 13px; }.topbar { height: 54px; padding: 0 11px; }.breadcrumbs { font-size: 10px; gap: 6px; }.topbar-actions { gap: 5px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 15px; }.page-heading h1 { font-size: 23px; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; }.overview-grid { gap: 7px; }.metric-card { height: 105px; padding: 10px; }.metric-top { font-size: 9px; }.metric-icon { width: 20px; height: 20px; }.metric-value { font-size: 21px; }.metric-spark { right: 8px; bottom: 12px; }.team-insight { padding: 11px; }.insight-stat strong { font-size: 8px; }.directory-header { align-items: flex-start; flex-direction: column; gap: 11px; padding: 13px 11px; }.directory-header-actions { width: 100%; }.search-box { width: auto; flex: 1; }.filter-button { white-space: nowrap; }.filter-row { padding: 9px 11px; flex-wrap: wrap; }.filter-row>span { width: 100%; }.table-wrap { margin: 0; }th:first-child,td:first-child { padding-left: 10px; }.table-footer { padding: 0 10px; }.page-size { gap: 4px; }.page-size { font-size: 0; }.page-size strong { font-size: 8px; }.page-footer { padding-top: 12px; }.notice { font-size: 10px; }.modal { padding: 17px; }.modal-actions { flex-wrap: wrap; }.modal-actions .button { flex: 1; }.drawer-profile { padding-top: 25px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }

#leave-page[hidden], #directory[hidden] { display: none; }
.leave-body { padding: 20px; display: grid; gap: 20px; }
.leave-note { margin: 0; color: #5b5870; }
.leave-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.leave-form { display: grid; gap: 10px; align-content: start; }
.leave-field { display: grid; gap: 4px; font-size: 13px; }
.leave-field input[type="text"], .leave-field input[type="date"], .leave-field input[type="number"], .leave-field select { padding: 8px 10px; border: 1px solid #cfcade; border-radius: 8px; font: inherit; }
.leave-field input:focus-visible, .leave-field select:focus-visible { outline: 2px solid #5b3fd1; outline-offset: 1px; }
.leave-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.leave-table th, .leave-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #ece9f5; }
.leave-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Frappe-HR-style workspace icon rail */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sidebar { width: 72px; padding: 14px 0 12px; align-items: center; background: #f7f7f7; border-right: 1px solid #ececec; overflow: visible; }
.brand { margin: 0 0 8px; height: 34px; justify-content: center; }
.brand-logo { height: 32px; width: 32px; object-fit: contain; border-radius: 7px; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; width: 100%; border-top: 1px solid #f1f3f5; padding-top: 8px; }
.rail-item { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #64748b; text-decoration: none; transition: all .15s ease; cursor: pointer; padding: 0; }
.rail-item:hover { background: transparent; color: #334155; }
.rail-item.active { background: transparent; }
.rail-item.coming-soon { opacity: .7; }
.rail-item-dashboard { width: 44px; height: 44px; margin-bottom: 4px; padding: 0; background: transparent !important; box-shadow: none !important; }
.rail-dashboard-container { width: 42px; height: 42px; background: #eff6ff; border: 1.5px solid #dbeafe; border-radius: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(79, 70, 229, 0.12); transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.rail-item-dashboard:hover .rail-dashboard-container { background: #e0e7ff; border-color: #a5b4fc; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22); transform: translateY(-1px); }
.rail-item-dashboard.active .rail-dashboard-container { background: #e0e7ff; border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2), 0 3px 10px rgba(79, 70, 229, 0.22); }
.rail-icon-box { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); background: transparent; border: 1.5px solid transparent; color: #64748b; }
.rail-item:hover .rail-icon-box { background: #f1f5f9; border-color: #e2e8f0; color: #1e293b; transform: translateY(-1px); }
.rail-item.active .rail-icon-box, .rail-item-profile.active .rail-icon-box { background: #eff6ff; border-color: #6366f1; color: #4f46e5; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18), 0 3px 10px rgba(79, 70, 229, 0.2); }
.sp-emoji { font-size: 15px; margin-right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 18px; text-align: center; }
.sp-child-emoji { font-size: 13px; margin-right: 6px; display: inline-flex; align-items: center; justify-content: center; width: 16px; opacity: 0.85; }
.rail-tip { position: absolute; left: 48px; top: 50%; transform: translateY(-50%); background: #1d2433; color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 20; }
.rail-item:hover .rail-tip, .rail-item:focus-visible .rail-tip { opacity: 1; }
.sidebar .profile-button { width: 36px; height: 36px; padding: 0; border: 0; display: grid; place-items: center; background: transparent; }
.main-area { margin-left: 72px; }
.workspace-tabs { display: flex; align-items: center; gap: 4px; padding: 0 39px; height: 44px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.workspace-tabs a, .workspace-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #6b7280; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.workspace-tabs a:hover, .workspace-tabs button:hover { background: #f3f4f6; color: var(--ink); }
.workspace-tabs a.active { background: #f0f0f0; color: var(--ink); }
.workspace-tabs .coming-soon { opacity: .6; }
@media (max-width: 800px) { .sidebar { width: 72px; transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .main-area { margin-left: 0; } .workspace-tabs { padding: 0 11px; } }
@media (max-width: 1100px) { .sidebar { width: 72px; } .main-area { margin-left: 72px; } }
@media (max-width: 800px) { .main-area { margin-left: 0; } }
.setup-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.setup-head h2 { margin: 0; font-size: 16px; } .setup-head p { margin: 4px 0 14px; color: var(--muted); font-size: 12px; }
.setup-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.setup-step { text-align: left; display: flex; flex-direction: column; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; color: var(--ink); }
.setup-step span { color: #6b7280; font-size: 12px; } .setup-step em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--purple-dark); margin-top: auto; }
.setup-step:hover:not(.coming-soon) { background: #f3f4f6; } .setup-step.coming-soon { opacity: .65; } .setup-step.coming-soon em { color: #8b8b8b; }

/* Frappe-style secondary navigation panel */
.side-panel { position: fixed; inset: 0 auto 0 62px; width: 216px; background: #fafbfc; border-right: 1px solid #e8eaed; padding: 10px 8px; z-index: 5; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;  display: flex; flex-direction: column; gap: 2px; box-shadow: 2px 0 8px rgba(0,0,0,0.02); transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease; }
.sp-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 14px; font-size: 16px; color: var(--ink); }
.sp-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #383838; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; text-align: left; }
.sp-item:hover { background: #ececec; }
.sp-item.active { background: #fff; box-shadow: 0 1px 2px #0000001a; font-weight: 600; }
.sp-item.coming-soon { opacity: .75; }
.sp-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.sp-chev { margin-left: auto; color: #8a8a8a; transition: transform .15s; }
.sp-group.open .sp-chev { transform: rotate(90deg); }
.sp-sub { display: flex; flex-direction: column; padding-left: 38px; }
.sp-sub a { padding: 6px 10px; font-size: 13px; color: #555; text-decoration: none; border-radius: 6px; }
.sp-sub a:hover { background: #ececec; }
.main-area { margin-left: 62px; transition: margin-left 0.22s cubic-bezier(0.16, 1, 0.3, 1); min-width: 0; }
.workspace-tabs { display: none; }
.hr-title { padding: 0 39px; height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; background: #fff; }
.setup-card { max-width: 860px; margin: 8px auto 24px; padding: 28px 30px; background: #fafafa; border-radius: 14px; }
.setup-card h2 { margin: 0; font-size: 22px; font-weight: 600; }
.setup-sub { margin: 6px 0 18px; color: #7c7c7c; font-size: 15px; }
.setup-bar { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-bottom: 18px; }
.setup-bar i { height: 4px; border-radius: 2px; background: #e8e8e8; }
.setup-open { display: flex; gap: 14px; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px #0000000f; }
.setup-radio { width: 20px; height: 20px; border: 2px solid #555; border-radius: 50%; flex: none; margin-top: 3px; }
.setup-open-body { flex: 1; }
.setup-open-body h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.setup-open-body p { margin: 0 0 16px; color: #555; line-height: 1.5; }
.setup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sbtn { height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: #f0f0f0; font: inherit; font-size: 15px; cursor: pointer; }
.sbtn-dark { background: #111; color: #fff; font-weight: 600; }
.setup-media { width: 260px; min-height: 150px; border-radius: 8px; background: #f4f6f8; display: grid; place-items: center; text-align: center; padding: 12px; position: relative; }
.setup-media b { font-weight: 600; font-size: 15px; }
.setup-play { position: absolute; inset: auto; width: 48px; height: 48px; border-radius: 50%; background: #222; color: #fff; display: grid; place-items: center; bottom: 14px; }
.setup-list { list-style: none; margin: 8px 0 0; padding: 0; }
.setup-row { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 12px 20px; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.setup-row:hover { background: #f1f1f1; }
.setup-row b { font-weight: 600; font-size: 16px; }
.setup-row span { color: #7c7c7c; font-size: 15px; }
.setup-row.coming-soon { opacity: .7; }
@media (max-width: 800px) { .side-panel { display: none; } .main-area { margin-left: 0; } .workspace-tabs { display: flex; } .setup-open { flex-direction: column; } .setup-media { width: auto; } }
/* Frappe list view */
.frappe-list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.frappe-list-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.fbtn { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: #f3f3f3; font: inherit; font-size: 13px; cursor: pointer; }
.fbtn:hover { background: #e8e8e8; }
.fbtn-primary { background: #171717; color: #fff; }
.fbtn-primary:hover { background: #333; }
.frappe-filter-bar { display: flex; align-items: center; gap: 8px; padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
.frappe-filter-bar .search-box { width: 180px; }
.frappe-filter-bar select { height: 30px; border: 0; border-radius: 8px; background: #f3f3f3; padding: 0 10px; font: inherit; font-size: 13px; width: 160px; }
.filter-spacer { flex: 1; }
.list-count { color: #7c7c7c; font-size: 12px; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding-left: 28px; border-left: 1px solid #e2e2e2; }
.org-tree { border-left: 0; padding: 8px 4px; }
.org-tree li { margin: 8px 0; }
.org-card { display: inline-flex; flex-direction: column; padding: 8px 14px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fff; }
.org-card span { color: #7c7c7c; font-size: 12px; }
/* Frappe-style workspace shell */
body { font-family: Inter, InterVariable, "Segoe UI", system-ui, sans-serif; background: #fff; }
.topbar { height: 56px; padding: 0 24px; background: #fff; backdrop-filter: none; }
.workspace-tabs, .page-heading { display: none !important; }
.sp-head { position: relative; margin-bottom: 6px; }
.sp-ws { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 8px; border: 0; background: transparent; font: inherit; font-size: 15px; cursor: pointer; border-radius: 8px; text-align: left; }
.sp-ws:hover { background: #ececec; }
.sp-ws strong { flex: 1; font-weight: 600; }
.sp-ws-badge { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #1f1f1f; color: #fff; font-size: 12px; font-weight: 700; }
.sp-quick { display: flex; flex-direction: column; margin-bottom: 8px; }
.sp-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.sp-group { display: flex; flex-direction: column; }
.sp-gh span { flex: 1; }
.sp-caret { transition: transform .15s; color: #7c7c7c; }
.sp-caret.open { transform: rotate(90deg); }
.sp-children { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 4px 17px; padding-left: 8px; border-left: 1px solid #dedede; }
.sp-child { height: 30px; font-size: 13.5px; }
.sp-item svg { flex: none; color: #6b6b6b; }
.sp-user { display: flex; align-items: center; gap: 10px; padding: 10px 6px 2px; margin-top: 8px; border-top: 1px solid #ececec; font-size: 13px; }
.sp-user small { display: block; color: #7c7c7c; font-size: 11px; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.setup-bar { display: flex; }
.setup-bar i { flex: 1; }
.setup-bar i.on { background: #171717; }
.fpop-anchor { position: relative; display: inline-block; }
.fmenu, .fpop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 220px; max-height: 340px; overflow: auto; background: #fff; border: 1px solid #e2e2e2; border-radius: 10px; box-shadow: 0 8px 24px #0000001f; padding: 6px; }
.fmenu[hidden], .fpop[hidden] { display: none; }
.fmenu-right { left: auto; right: 0; }
.fmenu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 7px 10px; border: 0; background: transparent; border-radius: 6px; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.fmenu button:hover { background: #f3f3f3; }
.fmenu kbd { color: #8a8a8a; font: inherit; font-size: 11px; }
.fmenu hr { border: 0; border-top: 1px solid #ececec; margin: 4px 0; }
.fpop { min-width: 520px; padding: 12px; }
.fpop-row { display: grid; grid-template-columns: 1.2fr 1.2fr 1.4fr auto; gap: 6px; margin-bottom: 8px; }
.fpop select, .fpop input { height: 30px; border: 1px solid #e2e2e2; border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; background: #f6f6f6; min-width: 0; }
.fl-del { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #7c7c7c; }
.fpop-empty { color: #7c7c7c; font-size: 13px; margin: 4px 2px 10px; }
.fpop-foot { display: flex; justify-content: space-between; align-items: center; }
.fpop-foot button:not(.fbtn) { border: 0; background: transparent; font: inherit; font-size: 13px; color: #555; cursor: pointer; padding: 6px; }
.empty-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.hr-widgets, .generic-page { display: block; }
.hr-widgets[hidden], .generic-page[hidden] { display: none; }
.wsh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.wsh-pad { padding: 0 20px 20px; }
.wsh-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid #ececec; border-radius: 12px; background: #fff; font-size: 13px; color: #555; min-height: 92px; }
.wsh-card strong { font-size: 26px; color: #171717; font-weight: 600; }
.wsh-card p { margin: 0; color: #8a8a8a; }
.wsh-card ul { margin: 0; padding-left: 16px; color: #171717; }
.wsh-chart { grid-column: span 2; min-height: 200px; }
.wsh-list a { color: #555; font-size: 12px; }
.wsh-steps { list-style: none; margin: 0; padding: 0; }
.wsh-open { display: flex; gap: 14px; padding: 16px 20px; border-radius: 12px; background: #f6f6f6; margin-bottom: 4px; }
.wsh-open-body h3 { margin: 0 0 6px; font-size: 18px; }
.wsh-open-body p { margin: 0 0 12px; color: #555; font-size: 14px; }
.wsh-opt { color: #8a8a8a; font-size: 12px; border: 1px solid #e2e2e2; border-radius: 10px; padding: 1px 8px; }
.wsh-dismiss { margin-left: 12px; border: 0; background: transparent; color: #7c7c7c; font: inherit; cursor: pointer; text-decoration: underline; }
@media (max-width: 800px) { .fpop { min-width: 0; width: 92vw; } .wsh-chart { grid-column: auto; } }
.sp-children[hidden], .setup-card[hidden] { display: none; }

/* Employee form */
.ef-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:14px 0;border-bottom:1px solid #e5e7eb}
.ef-tab{background:none;border:0;border-bottom:2px solid transparent;padding:8px 10px;font:inherit;font-size:13px;cursor:pointer;color:#525a65}
.ef-tab[aria-selected=true]{color:#111827;border-bottom-color:#111827;font-weight:600}
.ef-tab:focus-visible{outline:2px solid #4f46e5}
.ef-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.ef-grid textarea,.ef-grid select{width:100%}

.ef-head{display:flex;justify-content:space-between;align-items:center;padding:12px 0}.ef-head h1{display:inline;font-size:20px;margin-right:10px}
.ef-section{padding:14px 0;border-top:1px solid #ebeef0}.ef-section h3{font-size:14px;margin:0 0 10px}
.ef-cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px 24px}
.ef-field label{display:block;font-size:12px;color:#525a65;margin-bottom:4px}.ef-req::after{content:' *';color:#e24c4c}
.ef-field .form-control{width:100%;box-sizing:border-box;border:1px solid #e5e7eb;background:#f4f5f6;border-radius:8px;padding:6px 8px;font:inherit;font-size:13px}.ef-field .form-control:disabled{opacity:.7}.ef-field .form-control:focus{background:#fff;outline:2px solid #4f46e5}
.ef-ns{font-size:11px;color:#8d99a6}.ef-wide{grid-column:1/-1}.ef-check label{display:flex;gap:8px;align-items:center}
.ef-table{border:1px solid #e5e7eb;border-radius:8px;padding:10px}.ef-table-empty{text-align:center;color:#8d99a6;padding:12px}
#ef-page .ef-tabs{list-style:none;padding:0;margin:0}
/* Payroll salary-component catalogue */
.payroll-catalogue .directory-header p { color: #9298a7; font-size: 10px; margin-top: 5px; }
.payroll-component-note { margin: 0; padding: 11px 13px; border: 1px solid #e9e6fb; border-radius: 8px; color: #68627d; background: #faf9ff; font-size: 10px; line-height: 1.55; }
.payroll-component-form { margin: 0 16px 14px; padding: 15px; border: 1px solid #eceef3; border-radius: 9px; background: #fcfcfe; }
.payroll-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.payroll-form-grid label { display: flex; flex-direction: column; gap: 6px; color: #62697a; font-size: 10px; font-weight: 600; }
.payroll-form-grid input, .payroll-form-grid select { min-width: 0; height: 35px; border: 1px solid #e2e5eb; border-radius: 6px; padding: 0 9px; background: #fff; color: #42495a; font: 11px "DM Sans", sans-serif; }
.payroll-form-grid input:focus, .payroll-form-grid select:focus { outline: 2px solid #ded7ff; border-color: #8b78e5; }
.payroll-form-help { margin: 9px 0 0; color: #9398a6; font-size: 9px; }
.payroll-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.payroll-list-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 10px; }
.payroll-table th, .payroll-table td { padding-left: 10px; }
.payroll-type { display: inline-block; padding: 4px 8px; border-radius: 12px; background: #f0edff; color: #6c59bd; font-size: 9px; text-transform: capitalize; }
.payroll-type-deduction { color: #a35d50; background: #fff0eb; }
.payroll-component-error { padding: 12px 16px; color: #ad3e36; font-size: 10px; }
@media (max-width: 700px) { .payroll-form-grid { grid-template-columns: 1fr; } .payroll-component-form { margin-left: 10px; margin-right: 10px; } .payroll-list-tools { padding-left: 10px; padding-right: 10px; } }

/* Payroll salary-structure catalogue */
.payroll-structure-page .directory-header p { color: #9298a7; font-size: 10px; margin-top: 5px; }
.payroll-structure-lines-head { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; color: #414858; font-size: 11px; }
.payroll-structure-line { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(140px, 1fr) 34px; gap: 10px; align-items: end; margin-top: 10px; }
.payroll-structure-line label { display: flex; flex-direction: column; gap: 6px; color: #62697a; font-size: 10px; font-weight: 600; }
.payroll-structure-line input, .payroll-structure-line select { width: 100%; box-sizing: border-box; height: 35px; border: 1px solid #e2e5eb; border-radius: 6px; padding: 0 9px; background: #fff; color: #42495a; font: 11px "DM Sans", sans-serif; }
.payroll-structure-line input:focus, .payroll-structure-line select:focus { outline: 2px solid #ded7ff; border-color: #8b78e5; }
.structure-line-remove { height: 34px; }
.payroll-structure-detail { margin: 8px 16px 18px; border: 1px solid #eceef3; border-radius: 9px; overflow: hidden; }
.payroll-structure-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; background: #faf9ff; }
.payroll-structure-detail-head h3 { margin: 5px 0; color: #303546; font-size: 15px; }
.payroll-structure-detail-head p { margin: 0; color: #777d8b; font-size: 10px; }
.payroll-structure-detail .table-wrap { overflow-x: auto; }
@media (max-width: 700px) { .payroll-structure-line { grid-template-columns: 1fr 1fr 34px; } .payroll-structure-detail { margin-left: 10px; margin-right: 10px; } }
/* Payroll salary-assignment page */
.payroll-assignment-page .directory-header p { color: #9298a7; font-size: 10px; margin-top: 5px; }
.payroll-assignment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.payroll-assignment-grid label { min-width: 0; }
.payroll-assignment-grid label input[type="search"] { height: 34px; border: 1px solid #e2e5eb; border-radius: 6px; padding: 0 9px; font: 11px "DM Sans", sans-serif; }
.payroll-assignment-grid label select { min-width: 0; }
.payroll-assignment-grid .fbtn { align-self: flex-start; }
@media (max-width: 700px) { .payroll-assignment-grid { grid-template-columns: 1fr; } }
/* Payroll run drafts, review snapshots, and server-reported issues */
.payroll-run-page .directory-header p { color: #9298a7; font-size: 10px; margin-top: 5px; }
.payroll-run-page .payroll-component-note { margin: 0; }
.payroll-run-error { margin: 10px 16px; color: #ad3e36; font-size: 10px; }
.payroll-run-paging { display: flex; justify-content: center; padding: 10px; }
.payrun-status { display: inline-flex; border-radius: 12px; padding: 4px 8px; background: #f1f2f5; color: #737989; font-size: 9px; text-transform: capitalize; }
.payrun-draft { background: #fff6e8; color: #9a6b1a; }
.payrun-validated { background: #edf3ff; color: #466aa8; }
.payrun-approved { background: #eaf8f1; color: #208a69; }
.payroll-run-detail { margin: 14px 16px 18px; border: 1px solid #eceef3; border-radius: 9px; overflow: hidden; }
.payroll-run-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px; background: #faf9ff; }
.payroll-run-detail-head h3 { font-size: 12px; margin: 0; }
.payroll-run-detail-head p { color: #9298a7; font-size: 9px; margin: 5px 0 0; }
.payroll-run-detail-head small, .payroll-table small { color: #9298a7; font-size: 8px; }
.payroll-run-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: 8px; padding: 12px; }
.payroll-run-metrics article { padding: 10px; border: 1px solid #eceef3; border-radius: 7px; }
.payroll-run-metrics span { display: block; color: #9298a7; font-size: 9px; }
.payroll-run-metrics strong { display: block; margin-top: 5px; color: #414858; font-size: 12px; overflow-wrap: anywhere; }
.payroll-run-actions { display: flex; gap: 7px; justify-content: flex-end; padding: 0 12px 10px; }
.payroll-run-detail > .payroll-form-help { margin: 0 12px 12px; }
.payroll-run-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); border-top: 1px solid #eceef3; }
.payroll-run-columns section { min-width: 0; padding: 10px; }
.payroll-run-columns section + section { border-left: 1px solid #eceef3; }
.payroll-run-columns h4, #payrun-employee-lines h4 { margin: 2px 0 8px; font-size: 10px; color: #414858; }
.payroll-run-columns .table-wrap { min-height: 0; }
.payroll-run-columns .payroll-table { min-width: 500px; }
#payrun-employee-lines { padding: 12px; border-top: 1px solid #eceef3; }
#payrun-employee-lines .table-wrap { min-height: 0; }
@media (max-width: 800px) { .payroll-run-columns { grid-template-columns: 1fr; }.payroll-run-columns section + section { border-left: 0; border-top: 1px solid #eceef3; } }
@media (max-width: 560px) { .payroll-run-detail { margin: 10px; }.payroll-run-detail-head { flex-direction: column; }.payroll-run-actions { flex-wrap: wrap; }.payroll-run-columns { display: block; } }
.payroll-payslip { margin: 12px; padding: 22px; border: 1px solid #e3e5eb; border-radius: 9px; background: #fff; color: #303546; }
.payroll-payslip-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.payroll-payslip-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #e9eaf0; }
.payroll-payslip-header p, .payroll-payslip-header span, .payroll-payslip-header small { display: block; margin: 0; color: #777d8b; font-size: 10px; }
.payroll-payslip-header h3 { margin: 6px 0; font-size: 17px; }
.payroll-payslip-employee { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 16px 0; }
.payroll-payslip-employee div, .payroll-payslip-totals div { display: flex; flex-direction: column; gap: 4px; }
.payroll-payslip-employee small, .payroll-payslip-totals span { color: #777d8b; font-size: 9px; }
.payroll-payslip-employee strong, .payroll-payslip-totals strong { font-size: 11px; overflow-wrap: anywhere; }
.payroll-payslip-employee span { color: #777d8b; font-size: 9px; }
.payroll-payslip-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; justify-content: end; padding: 14px 0; border-top: 1px solid #e9eaf0; }
.payroll-payslip-disclaimer { margin: 0; padding: 10px; border-radius: 6px; background: #faf9ff; color: #68627d; font-size: 9px; line-height: 1.55; }
@media (max-width: 600px) { .payroll-payslip-employee, .payroll-payslip-totals { grid-template-columns: 1fr; } }
@media print {
  body * { visibility: hidden !important; }
  #payrun-payslip:not([hidden]), #payrun-payslip:not([hidden]) * { visibility: visible !important; }
  #payrun-payslip:not([hidden]) { display: block !important; position: fixed; inset: 0; z-index: 9999; width: auto; margin: 0; padding: 24px; border: 0; border-radius: 0; }
  #payrun-payslip-print { display: none !important; }
  .payroll-payslip-header, .payroll-payslip-employee, .payroll-payslip-totals { break-inside: avoid; }
}

/* Compact refined side panel sub-items & collapse toggle */
.sp-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; font-size: 14px; font-weight: 700; border-bottom: 1px solid #f1f3f5; margin-bottom: 6px; }
.sp-ws { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; font: inherit; font-size: 13.5px; font-weight: 700; color: #0f172a; cursor: pointer; padding: 0; }
.sp-ws-badge { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #0f172a; color: #fff; font-size: 11px; font-weight: 800; }
.sp-collapse-btn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; border: 1px solid #e2e8f0; background: #fff; color: #64748b; cursor: pointer; padding: 0; margin-left: auto; transition: all 0.15s ease; }
.sp-collapse-btn:hover { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }
.sp-item { min-height: 30px; height: auto; padding: 5px 8px; border-radius: 6px; font-size: 12px; gap: 8px; color: #475569; line-height: 1.3; }
.sp-item:hover { background: #f1f5f9; color: #0f172a; }
.sp-item.active { background: #ffffff; color: #4338ca; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.sp-quick { margin-bottom: 4px; }
.sp-quick .sp-item { min-height: 26px; height: auto; font-size: 11.5px; padding: 3px 8px; }
.sp-nav { gap: 3px; }
.sp-gh { font-size: 11.5px; font-weight: 700; color: #475569; min-height: 28px; height: auto; padding: 5px 8px; line-height: 1.3; }
.sp-children { padding-left: 6px; margin: 2px 0 4px 6px; border-left: 1.5px solid #e2e8f0; }
.sp-child { min-height: 26px; height: auto; font-size: 11.5px; padding: 4px 8px; line-height: 1.3; }
.sp-user { margin-top: auto; padding: 8px 6px 2px; border-top: 1px solid #f1f3f5; }
.sp-user strong { font-size: 12px; }
.sp-user small { font-size: 10px; }

/* Super Admin Role Impersonator & Switcher */
.superadmin-switcher-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  border-radius: 9999px;
  padding: 3px 10px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.switcher-crown {
  font-size: 14px;
}

.impersonate-role-select {
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  color: #78350f;
  outline: none;
  cursor: pointer;
  padding-right: 4px;
}

.impersonate-role-select:focus {
  outline: none;
}

.impersonation-notice-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
  color: #ffffff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid #818cf8;
  z-index: 999;
}

.impersonation-return-btn {
  background: #f59e0b;
  color: #0f172a;
  border: none;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.impersonation-return-btn:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

/* User Profile Menu Dropdown */
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.08);
  padding: 8px 0;
  z-index: 1000;
  animation: dropdownFade .15s ease-out;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 8px;
}
.user-menu-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  background: #dcfce7;
  color: #166534;
}
.user-menu-info {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.user-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-role {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
.user-menu-email {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.12s;
  box-sizing: border-box;
}
.user-menu-item:hover {
  background: #f8fafc;
  color: #0f172a;
}
.user-menu-item.user-menu-logout {
  color: #dc2626;
}
.user-menu-item.user-menu-logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.um-icon {
  font-size: 14px;
}

