/* KHR 1.7 — 2026 interface refresh */
:root{
  --khr-bg:#f6f4ef;
  --khr-bg-2:#efeee8;
  --khr-surface:#ffffff;
  --khr-surface-soft:#fbfaf7;
  --khr-ink:#172019;
  --khr-ink-2:#27332b;
  --khr-muted:#778078;
  --khr-muted-2:#9ca39c;
  --khr-line:#e9e8e2;
  --khr-line-strong:#dedfd8;
  --khr-green:#183b27;
  --khr-green-2:#245238;
  --khr-green-3:#47745a;
  --khr-green-soft:#eef5ef;
  --khr-gold:#bd9252;
  --khr-gold-soft:#f6eddf;
  --khr-orange:#e8612b;
  --khr-red:#c64d46;
  --khr-red-soft:#fdf0ee;
  --khr-amber:#b97819;
  --khr-amber-soft:#fff5e5;
  --khr-blue:#4c6ea8;
  --khr-blue-soft:#eef3fb;
  --khr-radius-xs:10px;
  --khr-radius-sm:14px;
  --khr-radius:18px;
  --khr-radius-lg:24px;
  --khr-shadow-sm:0 1px 2px rgba(27,42,31,.03),0 8px 24px rgba(27,42,31,.035);
  --khr-shadow:0 1px 2px rgba(22,35,26,.03),0 18px 50px rgba(22,35,26,.06);
  --khr-sidebar:258px;
}

*{box-sizing:border-box}
html{background:var(--khr-bg)}
body.khr-standalone{margin:0!important;background:var(--khr-bg)!important;color:var(--khr-ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
body.khr-standalone a{-webkit-tap-highlight-color:transparent}
body:has(.khr-shell) .site-header,body:has(.khr-shell) header:not(.khr-topbar),body:has(.khr-shell) .site-footer,body:has(.khr-shell) footer:not(.khr-mobile-nav),body:has(.khr-login-page) .site-header,body:has(.khr-login-page) .site-footer{display:none!important}
.khr-shell,.khr-login-page{font-family:inherit;color:var(--khr-ink)}

/* ===== APP SHELL ===== */
.khr-shell{width:100vw;min-height:100dvh;margin-left:calc(50% - 50vw);display:grid;grid-template-columns:var(--khr-sidebar) minmax(0,1fr);background:
  radial-gradient(circle at 80% 0%,rgba(210,191,153,.12),transparent 26rem),
  linear-gradient(180deg,#f9f8f4 0,#f5f4ef 38%,#f3f3ee 100%)}
/* Standalone app page: the shell fills the page itself. 100vw counts the scrollbar, so on long
   pages the whole layout (sidebar included) slid sideways; a stable gutter keeps it still. */
html:has(body.khr-standalone){scrollbar-gutter:stable}
body.khr-standalone .khr-shell{width:100%;margin-left:0}
.khr-workspace{min-width:0;min-height:100dvh}
.khr-sidebar{position:sticky;top:0;height:100dvh;padding:18px 14px 16px;background:
  radial-gradient(circle at 10% 92%,rgba(191,145,78,.12),transparent 13rem),
  linear-gradient(180deg,#173725 0%,#112c1d 100%);color:#fff;display:flex;flex-direction:column;z-index:80;border-right:1px solid rgba(255,255,255,.04)}
.khr-side-brand{display:flex;align-items:center;gap:12px;padding:7px 8px 24px}
.khr-side-brand strong,.khr-mobile-brand strong{font-family:Georgia,"Times New Roman",serif;font-size:22px;line-height:1;letter-spacing:-.45px;font-weight:600;color:#fff}
.khr-side-brand strong span,.khr-mobile-brand strong span{color:#d7b06e}
.khr-side-brand small{display:block;margin-top:5px;letter-spacing:.12em;text-transform:uppercase;color:#91a796}
.khr-sidebar nav{display:flex;flex-direction:column;gap:5px}
.khr-sidebar nav a{position:relative;display:flex;align-items:center;gap:11px;min-height:43px;padding:0 12px;border-radius:13px;color:#b8c8bd;text-decoration:none;font-weight:650;transition:.18s ease}
.khr-sidebar nav a .dashicons{width:18px;height:18px;font-size:18px;color:#9eb1a3;transition:.18s ease}
.khr-sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(1px)}
.khr-sidebar nav a.active{background:#f4ead9;color:#183523;box-shadow:0 9px 20px rgba(5,20,10,.12)}
.khr-sidebar nav a.active .dashicons{color:#9a6c2b}
.khr-sidebar nav a.active:after{content:"";position:absolute;right:10px;width:5px;height:5px;border-radius:50%;background:#bc9152}
.khr-side-foot{margin-top:auto;padding:17px 9px 6px;display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.10)}
.khr-role-dot{width:8px;height:8px;border-radius:99px;background:#7fd38c;box-shadow:0 0 0 4px rgba(127,211,140,.09)}
.khr-side-foot small{display:block;color:#76907f;text-transform:uppercase;letter-spacing:.08em}
.khr-side-foot strong{display:block;margin-top:2px;color:#eaf0eb;font-weight:650}

.khr-topbar{position:sticky;top:0;z-index:60;height:72px;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(249,248,244,.86);backdrop-filter:blur(22px) saturate(140%);border-bottom:1px solid rgba(224,225,217,.8)}
.khr-mobile-brand{display:none;align-items:center;gap:9px}
.khr-top-title{min-width:0}
.khr-top-title small{display:block;margin-bottom:3px;color:#969d96;letter-spacing:.12em;text-transform:uppercase;font-weight:750}
.khr-top-title strong{display:block;line-height:1.2;color:#243028;font-weight:720;letter-spacing:-.2px}
.khr-user-menu{display:flex;align-items:center;gap:10px;min-width:0}
.khr-avatar{display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#224c33,#173924);color:#fff;font-weight:800;box-shadow:0 5px 16px rgba(24,59,39,.14)}
.khr-avatar{width:38px;height:38px;font-size:11px;border:3px solid #fff}

.khr-content{width:100%;max-width:1480px;margin:0 auto;padding:30px 34px 104px}
.khr-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 22px}
.khr-page-header>div:first-child{min-width:0}
.khr-page-header h1{margin:6px 0 5px;font-family:Georgia,"Times New Roman",serif;line-height:1.04;font-weight:500;letter-spacing:-.8px;color:#17241b}
.khr-page-header p{margin:0;color:#7e877f;line-height:1.6}

/* ===== SURFACES / TYPOGRAPHY ===== */
.khr-panel{position:relative;margin:0 0 16px;padding:19px;background:rgba(255,255,255,.91);border:1px solid rgba(228,228,220,.92);border-radius:20px;box-shadow:var(--khr-shadow-sm)}
.khr-panel:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.khr-panel.grow,.grow{flex:1;min-width:0}
.khr-notice{margin:0 0 18px;padding:12px 15px;border:1px solid #d8e8d8;border-radius:13px;background:#f0f7f0;color:#2d693a;font-weight:700;box-shadow:var(--khr-shadow-sm)}
.khr-access-card{max-width:520px;margin:90px auto;padding:26px;border:1px solid var(--khr-line);border-radius:22px;background:#fff;text-align:center;box-shadow:var(--khr-shadow)}

/* ===== KPI / DASHBOARD ===== */

/* ===== TABLES ===== */
.block{display:block!important;margin-top:3px;color:#929a93;}
.error{max-width:360px;color:var(--khr-red)!important;white-space:normal}

/* ===== STATUS / LINKS / BUTTONS ===== */
.khr-status{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-weight:800;white-space:nowrap}
.khr-status.green{background:#eaf6eb;color:#337041}.khr-status.red{background:#fcedeb;color:#aa4540}.khr-status.amber{background:#fff2df;color:#99651a}.khr-status.blue{background:#edf3fb;color:#476aa1}.khr-status.muted{background:#f1f2ef;color:#727a74}
.khr-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:12px;font:inherit;font-weight:800;text-decoration:none;cursor:pointer;transition:.16s ease}
.khr-btn.primary{background:linear-gradient(180deg,#214a31,#173b27);color:#fff;box-shadow:0 7px 17px rgba(24,59,39,.14)}
.khr-btn.primary:hover{transform:translateY(-1px);box-shadow:0 10px 21px rgba(24,59,39,.18)}
.khr-btn.ghost{border-color:#e1e3dc;background:#fff;color:#31543d}.khr-btn.ghost:hover{background:#f8faf7;border-color:#ccd5cd}
.khr-btn.small{min-height:31px;padding:6px 10px;border-radius:9px;}.khr-btn.wide{width:100%}.khr-btn.clock{font-size:13px;padding:14px}

/* ===== FORMS ===== */
.span-2{grid-column:span 2}

/* ===== STAFF HOME ===== */

/* ===== PLATFORM / PERFORMANCE ===== */

/* ===== SCHEDULE ===== */

/* ===== LIVE SESSION FORM ===== */

/* ===== LIVE SESSION CARDS ===== */

/* ===== HISTORY ===== */

/* ===== LOGIN ===== */
.khr-login-page{min-height:100dvh;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(440px,1.1fr);background:#f7f4ed}

/* ===== MOBILE DRAWER / NAV ===== */
.khr-mobile-nav{display:none}.khr-drawer-backdrop{display:none}

/* ===== RESPONSIVE MANAGEMENT ===== */
@media(max-width:1100px){
  :root{--khr-sidebar:220px}
  .khr-content{padding-left:24px;padding-right:24px}
}

@media(max-width:820px){
  .khr-shell{display:block;min-height:100dvh;background:#f5f4ef}
  .khr-sidebar{display:none}
  .khr-topbar{height:62px;padding:0 16px;background:rgba(249,248,244,.92)}
  .khr-mobile-brand{display:flex}.khr-mobile-brand strong{color:#173725}
  .khr-top-title{display:none}.khr-avatar{width:34px;height:34px;border-width:2px}
  .khr-content{max-width:none!important;padding:20px 16px calc(92px + env(safe-area-inset-bottom))}
  .khr-page-header{align-items:flex-start;margin-bottom:18px}.span-2{grid-column:span 2}
  .khr-panel{padding:15px;border-radius:18px}
  .khr-mobile-nav{position:fixed;z-index:100;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);min-height:62px;padding:7px 6px;border:1px solid rgba(220,220,213,.88);border-radius:20px;background:rgba(255,255,255,.93);backdrop-filter:blur(24px) saturate(150%);box-shadow:0 16px 45px rgba(25,40,29,.13)}
  .khr-mobile-nav a,.khr-mobile-nav button{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:0;border-radius:13px;background:transparent;color:#929a94;text-decoration:none;font:inherit;cursor:pointer;min-width:0}
  .khr-mobile-nav a.active,.khr-mobile-nav button.active{background:#edf4ee;color:#1f4a31}.khr-mobile-nav a.active:before{content:"";position:absolute;top:3px;width:18px;height:2px;border-radius:99px;background:#ba8d4d}
  .khr-mobile-nav .dashicons{width:20px;height:20px;font-size:20px}.khr-mobile-nav small{font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .khr-drawer-backdrop{position:fixed;z-index:110;inset:0;display:block;background:rgba(18,26,20,.24);backdrop-filter:blur(2px);opacity:0;visibility:hidden;transition:.18s ease}.khr-drawer-backdrop.open{opacity:1;visibility:visible}
}

/* ===== STAFF: APP-LEVEL MOBILE EXPERIENCE ===== */
@media(max-width:820px){.is-staff .khr-mobile-brand strong{font-family:Georgia,"Times New Roman",serif;}
  .is-staff .khr-content{padding-top:5px;padding-left:14px;padding-right:14px}
  .is-staff .khr-mobile-nav{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));border-radius:21px;min-height:64px}
  .is-staff .khr-mobile-nav a.active{background:transparent;color:#193e29}.is-staff .khr-mobile-nav a.active:after{content:"";position:absolute;top:5px;width:34px;height:34px;border-radius:12px;background:#edf4ee;z-index:-1}.is-staff .khr-mobile-nav a.active:before{display:none}
  .is-staff .khr-page-header.staff{margin-top:3px}
}

@media(max-width:560px){.span-2{grid-column:1/-1}
}

@media(max-width:390px){
  .khr-content{padding-left:11px;padding-right:11px}
}

/* ===== LOGIN MOBILE ===== */
@media(max-width:760px){
  .khr-login-page{display:block;min-height:100dvh;padding:34px 17px;background:linear-gradient(180deg,#173724 0,#173724 34%,#f7f4ed 34%,#f7f4ed 100%)}
}

/* ===== V1.3.1 TYPOGRAPHY SCALE =====
   Improve scanability on high-resolution desktop screens and mobile.
   The layout stays compact, but headings and key labels no longer rely on sub-10px type. */
.khr-side-brand small{font-size:10px}
.khr-sidebar nav a{font-size:13px}
.khr-side-foot small{font-size:9px}
.khr-side-foot strong{font-size:12px}
.khr-top-title small{font-size:10px}
.khr-top-title strong{font-size:18px}
.khr-page-header h1{font-size:38px}
.khr-page-header p{font-size:13px}
.khr-notice{font-size:12px}
.block{font-size:10px!important}
.khr-status{font-size:10px}
.khr-btn{font-size:12px}
.khr-btn.small{font-size:10px}

@media(max-width:820px){
  .khr-mobile-brand strong{font-size:20px}
  .khr-page-header h1{font-size:32px}
  .khr-page-header p{font-size:12px}
  .khr-mobile-nav small{font-size:8.5px}
  .is-staff .khr-page-header.staff h1{font-size:32px}
}

@media(max-width:560px){
  .khr-page-header h1{font-size:30px}
}

@media(max-width:390px){
  .khr-page-header h1{font-size:29px}
}

/* ===== WEEKLY ROSTER V1.4 ===== */

/* modal */
.khr-btn.danger{border-color:#efd5d1;background:#fff6f4;color:#a9433d}
.khr-btn.danger:hover{background:#fdecea}

/* ======================================================================
   V1.5 — STAFF APP REDESIGN
   Staff-facing screens now use a true mobile-app visual hierarchy.
   Management screens intentionally keep the existing workspace system.
   ====================================================================== */
.is-staff{--khr-app-pad:16px;--khr-app-radius:22px;--khr-app-line:#e7e9e4;--khr-app-soft:#f6f7f3;--khr-app-green:#173c28;--khr-app-gold:#b88b4c}
.is-staff .khr-content{max-width:920px}
.is-staff .khr-page-header.staff{align-items:flex-start}
.is-staff .khr-page-header.staff h1{font-family:inherit;font-weight:780;letter-spacing:-1px}
.is-staff .khr-page-header.staff p{max-width:580px}

/* Staff home */

/* Schedule app cards */
.khr-app-empty{padding:38px 20px;border:1px dashed #dfe2dc;border-radius:20px;background:#fbfcf9;text-align:center}.khr-app-empty>span{display:grid;place-items:center;width:46px;height:46px;margin:0 auto 11px;border-radius:15px;background:#eef3ee;color:#4e6d59}.khr-app-empty strong,.khr-app-empty p{display:block}.khr-app-empty strong{font-size:12px}.khr-app-empty p{margin:5px 0 0;color:#929a94;font-size:9px}.khr-app-empty.compact{padding:25px 16px}

/* Staff forms */

/* Bottom navigation: central Live action behaves like a native app primary action. */
@media(max-width:820px){
  body.khr-standalone{background:#f7f7f3!important}
  .is-staff .khr-workspace{min-height:100dvh}
  .is-staff .khr-topbar{height:56px;padding:0 15px;background:rgba(247,247,243,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(230,231,225,.65)}
  .is-staff .khr-mobile-brand{gap:6px}.is-staff .khr-mobile-brand strong{font-size:18px;letter-spacing:-.4px}.is-staff .khr-user-menu{margin-left:auto}.is-staff .khr-avatar{display:grid;width:32px;height:32px;font-size:9px;border:2px solid #fff}
  .is-staff .khr-content{padding:14px 14px calc(100px + env(safe-area-inset-bottom))}

  .is-staff .khr-page-header.staff.khr-app-page-head{margin:0 0 15px;padding:0 1px}.is-staff .khr-page-header.staff.khr-app-page-head h1{margin-top:4px;font-size:27px;font-family:inherit;font-weight:800;letter-spacing:-.9px}.is-staff .khr-page-header.staff.khr-app-page-head p{font-size:9px;line-height:1.45}.is-staff .khr-claim-form>label:nth-of-type(3){grid-column:1/-1}

  .is-staff .khr-mobile-nav.khr-staff-nav{left:10px;right:10px;bottom:calc(9px + env(safe-area-inset-bottom));min-height:68px;padding:7px 5px;border-radius:23px;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.96);border:1px solid rgba(220,224,217,.92);box-shadow:0 18px 46px rgba(20,38,26,.16)}
  .is-staff .khr-mobile-nav.khr-staff-nav a{gap:4px;color:#929b94}.is-staff .khr-mobile-nav.khr-staff-nav a.active{background:transparent;color:#1b4930}.is-staff .khr-mobile-nav.khr-staff-nav a.active:after,.is-staff .khr-mobile-nav.khr-staff-nav a.active:before{display:none}.is-staff .khr-mobile-nav.khr-staff-nav .dashicons{width:19px;height:19px;font-size:19px}.is-staff .khr-mobile-nav.khr-staff-nav small{font-size:7.5px;font-weight:750;overflow:visible}
  .is-staff .khr-mobile-nav.khr-staff-nav .khr-nav-live{transform:translateY(-17px)}.is-staff .khr-mobile-nav.khr-staff-nav .khr-nav-live small{margin-top:1px;color:#46604f}.khr-live-nav-icon{width:48px;height:48px;display:grid;place-items:center;border:4px solid #f7f7f3;border-radius:17px;background:linear-gradient(145deg,#1e4c32,#153923);color:#fff;box-shadow:0 10px 22px rgba(21,57,35,.24)}.khr-live-nav-icon .dashicons{width:21px!important;height:21px!important;font-size:21px!important}.is-staff .khr-mobile-nav.khr-staff-nav .khr-nav-live.active .khr-live-nav-icon{background:linear-gradient(145deg,#bb955a,#9e7439)}
}

/* V1.6 — explicit WordPress account connection */

/* ===== V1.7.1 STAFF LIVE AUTO-SCAN ===== */
.khr-scan-page-head{margin-bottom:14px}.khr-scan-page-head h1{font-size:38px!important;letter-spacing:-1.15px}
.khr-ai-scan-shell{max-width:920px;margin:0 auto}.khr-simple-scan{display:grid;gap:12px}
.khr-simple-upload-panel{padding:16px;border-radius:22px}.khr-simple-upload-panel:before{display:none}.khr-live-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.khr-live-source{overflow:hidden;border:1px solid #e3e6e0;border-radius:19px;background:#fbfcf9}.khr-live-source-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;border-bottom:1px solid #eceee9;background:#fff}
.khr-live-source-brand{display:flex;align-items:center;gap:10px;min-width:0}.khr-live-source-brand strong{font-size:13px;color:#202c24}.khr-live-source-status{padding:5px 8px;border-radius:999px;background:#f1f2ef;color:#89918b;font-size:8px;font-weight:800;white-space:nowrap}.khr-live-source-status.scanning{background:#fff4df;color:#986518}.khr-live-source-status.added{background:#eef1ec;color:#68736a}.khr-live-source-status.ready{background:#e9f5eb;color:#2e6a40}.khr-live-source-status.error{background:#fbeae8;color:#a44a43}
.khr-brand-logo{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px}.khr-brand-logo-tiktok{position:relative;overflow:hidden;background:#101010;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.khr-brand-logo-shopee{background:#ee4d2d;color:#fff}.khr-brand-logo .khr-brand-svg{display:block;width:60%;height:60%;overflow:visible}
.khr-scan-preview{position:relative;min-height:180px;display:grid;place-items:center;overflow:hidden;margin:11px;border:1.5px dashed #d8ddd7;border-radius:15px;background:linear-gradient(145deg,#f8f9f6,#fdfdfb)}.khr-scan-preview-empty{text-align:center;color:#8f9891}.khr-scan-preview-empty .dashicons{display:block;width:29px;height:29px;margin:0 auto 5px;font-size:29px;color:#a8b0aa}.khr-scan-preview-empty strong{display:block;font-size:10px;color:#546057}
.khr-scan-preview.has-image{display:block;min-height:0;height:210px;border-style:solid;background:#111}.khr-scan-preview.has-image img{display:block;width:100%;height:100%;object-fit:contain;background:#111}.khr-scan-remove{position:absolute;right:8px;top:8px;width:31px;height:31px;display:grid;place-items:center;border:0;border-radius:10px;background:rgba(18,25,20,.78);color:#fff;cursor:pointer;backdrop-filter:blur(10px)}.khr-scan-remove .dashicons{width:16px;height:16px;font-size:16px}
.khr-live-summary-form{margin:0}.khr-live-summary-card{padding:18px;border-radius:22px;transition:.18s ease}.khr-live-summary-card.is-hidden{display:none}.khr-live-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.khr-live-summary-head h2{margin:0;color:#1e2b23;font-size:18px;letter-spacing:-.3px}.khr-live-summary-status{padding:6px 9px;border-radius:999px;font-size:8px;font-weight:850}.khr-live-summary-status.scanning{background:#fff4df;color:#996616}.khr-live-summary-status.waiting{background:#f0f1ed;color:#7d867f}.khr-live-summary-status.ready{background:#e9f5eb;color:#2f6d42}.khr-live-summary-status.error{background:#fbeae8;color:#a44a43}
.khr-live-note{display:block;margin-top:13px;color:#39463d;font-size:10px;font-weight:800}.khr-live-note>span{color:#99a09a;font-weight:600}.khr-live-note textarea{width:100%;min-height:82px;margin-top:7px;padding:11px 12px;border:1px solid #dfe3dd;border-radius:13px;background:#fff;color:#253129;font:inherit;font-size:12px;resize:vertical;box-sizing:border-box}.khr-live-note textarea:focus{outline:none;border-color:#9fbaa6;box-shadow:0 0 0 3px rgba(36,82,56,.06)}
.khr-save-detected{margin-top:11px;min-height:48px!important}.khr-save-detected:disabled{opacity:.42;cursor:not-allowed}

@media(max-width:760px){
  .khr-ai-scan-shell{width:100%;max-width:none}.khr-live-upload-grid{grid-template-columns:1fr;}
}

/* ===== V1.7.2 COMPACT STAFF LIVE MOBILE ===== */
@media(max-width:760px){
  .khr-scan-page-head{margin-bottom:8px}
  .khr-scan-page-head h1{font-size:28px!important;letter-spacing:-.75px}
  .khr-simple-scan{gap:8px}

  .khr-simple-upload-panel{padding:8px!important;border-radius:17px!important}
  .khr-live-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .khr-live-source{min-width:0;border-radius:15px}
  .khr-live-source-head{padding:7px 8px;gap:5px}
  .khr-live-source-brand{gap:6px;min-width:0}
  .khr-live-source-brand strong{font-size:11px;line-height:1.1;white-space:nowrap}
  .khr-brand-logo{width:30px;height:30px;border-radius:9px}
  .khr-live-source-status{display:none;padding:3px 5px;font-size:6.5px}
  .khr-live-source-status.scanning,.khr-live-source-status.added,.khr-live-source-status.ready,.khr-live-source-status.error{display:inline-flex}

  .khr-scan-preview{min-height:76px;margin:6px;border-radius:10px}
  .khr-scan-preview-empty .dashicons{width:21px;height:21px;margin-bottom:3px;font-size:21px}
  .khr-scan-preview-empty strong{font-size:8.5px}
  .khr-scan-preview.has-image{height:104px}
  .khr-scan-remove{right:5px;top:5px;width:27px;height:27px;border-radius:8px}
  .khr-scan-remove .dashicons{width:14px;height:14px;font-size:14px}

  .khr-live-summary-card{padding:14px!important;border-radius:17px!important}
  .khr-live-summary-head{margin-bottom:10px}
  .khr-live-summary-head h2{font-size:20px;letter-spacing:-.45px}
  .khr-live-summary-status{padding:5px 8px;font-size:7.5px}

  .khr-live-note{margin-top:10px;font-size:10px}
  .khr-live-note textarea{min-height:64px;margin-top:5px;padding:9px 10px;border-radius:11px;font-size:12px}
  .khr-save-detected{margin-top:9px;min-height:47px!important}
}

@media(max-width:370px){
  .khr-live-upload-grid{gap:6px}
  .khr-live-source-head{padding:6px}
  .khr-live-source-brand{gap:5px}
  .khr-live-source-brand strong{font-size:10px}
  .khr-brand-logo{width:27px;height:27px;border-radius:8px}
  .khr-scan-preview{min-height:68px;margin:5px}
  .khr-scan-preview.has-image{height:92px}
}

/* V1.8.10: camera + gallery/files upload, side-by-side on desktop and phone. */

/* v1.7.4: summary is always visible; scan results update in place */
.khr-live-summary-status.waiting:empty{display:none}

/* v1.7.5: staff Leave & Claims mobile form hardening */
@media(max-width:560px){

  /* Later staff-specific rules used to re-open this to two columns. Keep every
     request field comfortably full-width on a phone. */
  
  .is-staff .khr-leave-form,
  .is-staff .khr-claim-form{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
  
  .is-staff .khr-claim-form>label:nth-of-type(3){grid-column:1/-1!important;min-width:0}

  /* Prevent Safari/iOS date controls from using an intrinsic width wider than the card. */

  /* Native file controls are a common overflow source on small phones. */
}

/* v1.8.0: OpenAI live-session scanner */
.khr-live-scan-message{margin:-2px 0 11px;padding:9px 11px;border:1px solid #f0d2ce;border-radius:12px;background:#fff6f4;color:#95443d;font-size:10px;font-weight:700;line-height:1.4}
.khr-live-scan-message[hidden]{display:none!important}
@media(max-width:680px){
  .khr-live-scan-message{margin:-1px 0 9px;padding:8px 10px;border-radius:10px;font-size:9px}
}

/* ===== V1.8.4 SIMPLE PREVIOUS LIVE ===== */
.khr-live-previous-inline{margin:0 10px 10px;padding:8px;border:1px solid #e1e6df;border-radius:13px;background:#fafbf8;display:grid;gap:7px}
.khr-live-previous-inline[hidden],.khr-live-restart-extra[hidden],.khr-previous-warning[hidden]{display:none!important}
.khr-add-previous-live{min-height:38px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px dashed #cfd7cf;border-radius:10px;background:#fff;color:#46534a;font-size:9px;font-weight:850;cursor:pointer}
.khr-add-previous-live:hover{border-color:#294f38;color:#294f38;background:#f7faf6}
.khr-add-previous-live>span.dashicons{width:14px;height:14px;font-size:14px}
.khr-add-previous-live input{display:none!important}
.khr-live-restart-extra{display:block}
.khr-restart-preview{position:relative;min-width:0;height:56px;display:flex;align-items:center;justify-content:center;gap:5px;overflow:hidden;border:1px solid #d7ddd5;border-radius:10px;background:#fff;color:#7a847d}
.khr-restart-preview>span{width:14px;height:14px;font-size:14px}
.khr-restart-preview>strong{font-size:8px;font-weight:800;white-space:nowrap}
.khr-restart-preview.has-image img{width:100%;height:100%;display:block;object-fit:cover}
.khr-restart-preview .khr-scan-remove{top:4px;right:4px;width:24px;height:24px}
.khr-previous-warning{padding:8px 9px;border:1px solid #ead7b5;border-radius:10px;background:#fffaf0;display:grid;gap:5px;color:#5e5038}
.khr-previous-warning>strong{font-size:9px;font-weight:900;color:#483d2d}
.khr-previous-warning>span{font-size:8px;font-weight:650;line-height:1.35}
.khr-previous-warning>div{display:flex;gap:5px}
.khr-previous-warning button{min-height:30px;padding:0 9px;border:1px solid #d8c59f;border-radius:8px;background:#fff;color:#54482f;font:inherit;font-size:8px;font-weight:850;cursor:pointer}
.khr-previous-warning button:first-child{border-color:#294f38;background:#294f38;color:#fff}
@media(max-width:700px){
  .khr-live-previous-inline{margin:0 6px 6px;padding:6px;border-radius:10px;gap:5px}
  .khr-add-previous-live{min-height:34px;border-radius:8px;font-size:8px}
  .khr-restart-preview{height:45px;border-radius:8px}
  .khr-restart-preview>strong{font-size:7.5px}
  .khr-previous-warning{padding:7px;border-radius:8px;gap:4px}
  .khr-previous-warning>strong{font-size:8px}
  .khr-previous-warning>span{font-size:7.5px}
  .khr-previous-warning button{min-height:28px;padding:0 7px;font-size:7.5px}
}
@media(max-width:430px){
  .khr-live-previous-inline{margin:0 5px 5px;padding:5px}
  .khr-add-previous-live{min-height:32px;font-size:7.5px}
  .khr-restart-preview{height:42px}
}

/* V1.8.5 — station-scoped, compact handovers; respects the V1.8.4 scanner shell. */
.khr-platform-validation{display:grid;gap:7px;margin:8px 0;padding:11px;border:1px solid #ecd9b4;border-radius:11px;background:#fffaf0;color:#5c4c32}
.khr-platform-validation[hidden]{display:none}
.khr-platform-validation strong{font-size:12px}
.khr-platform-validation p{margin:0;font-size:11px;line-height:1.5}
.khr-platform-validation button{justify-self:start}
.khr-validation-help{font-size:10px;color:#72654a}

/* V1.8.6 — simple Auto / Manual switch */
.khr-mode-switch{display:flex;gap:4px;background:#f1f2f4;border-radius:14px;padding:4px;margin-bottom:10px;width:100%;max-width:420px}
.khr-mode-button{flex:1;border:0;border-radius:11px;background:transparent;color:#49505a;padding:12px 18px;font:inherit;font-weight:700;cursor:pointer}
.khr-mode-button.is-active{background:#fff;color:#151515;box-shadow:0 1px 5px rgba(0,0,0,.08)}
.khr-mode-help{font-size:13px;color:#626873;margin:0 0 14px;line-height:1.5}
@media(max-width:1023px){.khr-mode-help{min-height:3em}} /* two lines on phones: Auto / Manual keep the same height */
.khr-manual-fields{padding:10px 0 14px}
.khr-manual-fields[hidden],.khr-simple-upload-panel[hidden]{display:none!important}
.khr-manual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.khr-manual-fields label{display:flex;flex-direction:column;font-size:12px;font-weight:650;color:#4f5560;gap:6px}
.khr-manual-fields input,.khr-manual-fields textarea{width:100%;max-width:100%;box-sizing:border-box;min-width:0;border:1px solid #dfe2e6;border-radius:10px;padding:11px 12px;font:inherit;font-size:14px;background:#fff;color:#151515}
.khr-manual-platforms{display:grid;gap:12px;margin:14px 0}
.khr-manual-platform{border:1px solid #eceef0;border-radius:12px;padding:13px}
.khr-manual-platform-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.khr-manual-reason span{font-weight:400;color:#9a4545}
@media(max-width:580px){.khr-mode-switch{max-width:none}.khr-manual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.khr-manual-grid label:first-child,.khr-manual-grid label:last-child{grid-column:1/-1}.khr-manual-platform-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V1.8.9: compact date/time-only correction for partially read Auto screenshots. */
.khr-auto-time-confirm{margin:11px 0 13px;padding:13px;border-radius:12px;border:1px solid #d9e4d9;background:#f6f9f6;color:#203f30}
.khr-auto-time-confirm[hidden]{display:none!important}
.khr-auto-time-confirm strong{display:block;font-size:13px;margin-bottom:5px}
.khr-auto-time-confirm p{font-size:11px;line-height:1.45;margin:0 0 10px;color:#506357}
.khr-time-confirm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.khr-time-confirm-grid label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;min-width:0}
.khr-time-confirm-grid input{width:100%;min-width:0;box-sizing:border-box;background:white;border:1px solid #d1ded4;border-radius:9px;padding:10px 9px;color:#24392a;font-size:14px;min-height:40px}
.khr-auto-time-confirm small{display:block;margin-top:9px;color:#48664f;font-size:10px;line-height:1.4}
@media(max-width:370px){.khr-time-confirm-grid{grid-template-columns:1fr}}

.khr-live-scan-message.is-info{border-color:#d9e4d9;background:#f4f8f4;color:#345e40}

/* V1.8.12 — Staff Home only: clear, app-style performance-first dashboard.
   All styles are scoped to the home view; management and other HR pages stay intact. */
.khr-tab-home .khr-home-v2{width:100%;max-width:980px;margin:0 auto;color:#18281e}
.khr-tab-home .khr-home-section{margin-top:30px}
.khr-tab-home .khr-home-section:first-of-type{margin-top:0}
.khr-tab-home .khr-home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:15px}
.khr-tab-home .khr-home-section-heading>div{min-width:0}
.khr-tab-home .khr-home-section-heading h2{margin:0;color:#1b3223;font-size:24px;font-weight:800;letter-spacing:-.55px;line-height:1.24}
.khr-tab-home .khr-home-heading-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 10px;border-radius:12px;color:#24583a;font-size:14px;font-weight:750;text-decoration:none;white-space:nowrap}
.khr-tab-home .khr-home-heading-link .dashicons{font-size:17px;width:17px;height:17px}
.khr-tab-home .khr-home-heading-link:hover{background:#e9f0e8}
.khr-tab-home .khr-home-empty-note{margin:13px 0 0;color:#6d796e;font-size:13px;line-height:1.5}
.khr-tab-home .khr-home-v2 a:focus-visible{outline:3px solid #c5943f;outline-offset:3px}

@media(max-width:820px){
  .khr-tab-home .khr-home-v2{padding:1px 0 8px}
  .khr-tab-home .khr-home-section-heading h2{font-size:23px}
  .is-staff.khr-tab-home .khr-mobile-nav.khr-staff-nav small{font-size:11px;line-height:1.2}
  .is-staff.khr-tab-home .khr-mobile-nav.khr-staff-nav a{gap:3px}
}
@media(max-width:540px){
  .khr-tab-home .khr-home-section{margin-top:27px}
  .khr-tab-home .khr-home-section-heading{margin-bottom:12px}
  .khr-tab-home .khr-home-section-heading h2{font-size:22px}
  .khr-tab-home .khr-home-heading-link{font-size:13px;padding:0 4px}
}
@media(max-width:350px){
  .khr-tab-home .khr-home-heading-link{font-size:12px}
}

/* V1.8.36 — one dropdown arrow for every KHR select: a rounded chevron set 16px in from the
   right edge, replacing the browser's default arrow. !important because several older stylesheets
   reset select backgrounds with the `background` shorthand. Logo orange (var(--khr-brand,#ff8625)) for Staff, slate for management. */
.khr-shell select:not([multiple]):not([size]){
  -webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;
  padding-right:46px!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 16px center!important;background-size:16px 16px!important;
}
.khr-shell.is-staff select:not([multiple]):not([size]){
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8625' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E")!important;
}
.khr-shell select::-ms-expand{display:none}

/* V1.8.36 — Company logo (Settings > Company) in place of the KHR wordmark. */
.khr-logo-img{display:block;width:auto;height:auto;object-fit:contain}
.khr-side-brand.has-logo strong{display:block;line-height:0}
.khr-side-brand .khr-logo-img{max-width:150px;max-height:28px}
.khr-mobile-brand.has-logo strong{display:block;line-height:0}
.khr-mobile-brand .khr-logo-img{max-width:120px;max-height:22px}
.khr-auth-logo.has-logo{line-height:0}
.khr-auth-logo .khr-logo-img{max-width:180px;max-height:40px;margin:0 auto}
/* Install app: the account-menu row stays hidden until the browser can install; the iPhone steps. */
/* hidden must beat the menu rows' display:flex!important (Admin and Staff both set it) */
.khr-shell .khr-acct .khr-acct-links .khr-acct-link[hidden]{display:none!important}
/* The Install app row is a <button>: line it up with the <a> rows (left aligned, same font, hand cursor) */
button.khr-acct-link{width:100%;box-sizing:border-box;text-align:left;font-family:inherit;cursor:pointer;-webkit-appearance:none;appearance:none}
.khr-install-dlg{width:min(360px,calc(100vw - 32px));padding:0;border:0;border-radius:24px;background:#fff;color:#1c2228;box-shadow:0 30px 80px -20px rgba(20,24,28,.5)}
.khr-install-dlg::backdrop{background:rgba(20,24,28,.55);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.khr-install-card{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 22px 20px;text-align:center}
.khr-install-card img{width:56px;height:56px;border-radius:14px}
.khr-install-card h2{margin:0;font-size:18px;font-weight:800;line-height:1.3}
.khr-install-card ol{display:flex;flex-direction:column;gap:10px;margin:4px 0 0;padding:0 0 0 20px;color:#3d454d;font-size:14.5px;line-height:1.5;text-align:left}
.khr-install-card p{margin:0;color:#6b737b;font-size:13px;line-height:1.5}
.khr-install-share{display:inline-grid;place-items:center;width:20px;height:20px;border:1.5px solid #0a84ff;border-radius:6px;color:#0a84ff;font-size:12px;font-weight:800;line-height:1;vertical-align:-4px}
.khr-install-ok{width:100%;min-height:48px;margin-top:6px;border:0;border-radius:14px;background:#ff9c40;color:#1c1d1f;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
/* Notifications bell (header, Admin / Manager / Staff): a round button with an unread count, and a list panel. */
.khr-shell .khr-notif{position:relative;display:flex;align-items:center}
.khr-shell .khr-notif-btn{position:relative;display:grid;place-items:center;width:42px;height:42px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#d2d5d8;cursor:pointer;-webkit-tap-highlight-color:transparent}
.khr-shell .khr-notif-btn:hover,.khr-shell .khr-notif.is-open .khr-notif-btn{background:rgba(255,255,255,.08);color:#fff}
.khr-shell .khr-notif-btn .dashicons{width:22px;height:22px;font-size:22px}
.khr-shell .khr-notif-count{position:absolute;top:4px;right:3px;min-width:18px;height:18px;padding:0 5px;border:2px solid #29292b;border-radius:999px;background:#ff8a2a;color:#1c1d1f;font-size:10.5px;font-weight:800;line-height:14px;text-align:center;box-sizing:border-box}
.khr-shell .khr-notif-panel{position:absolute;top:calc(100% + 9px);right:-52px;z-index:185;display:flex;flex-direction:column;width:min(360px,calc(100vw - 24px));max-height:min(520px,72vh);overflow:hidden;border:1px solid #ece9e6;border-radius:18px;background:#fff;color:#1c2228;box-shadow:0 24px 60px -18px rgba(20,24,28,.45)}
.khr-shell .khr-notif-panel[hidden]{display:none}
.khr-shell .khr-notif-panel:not([hidden]){animation:khr-acct-in .16s ease-out}
@media (prefers-reduced-motion:reduce){.khr-shell .khr-notif-panel:not([hidden]){animation:none}}
.khr-shell .khr-notif-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 10px;border-bottom:1px solid #f1eeeb}
.khr-shell .khr-notif-head strong{font-size:15px;font-weight:800}
.khr-shell .khr-notif-head form{margin:0}
.khr-shell .khr-notif-readall{margin:0;padding:4px 0;border:0;background:none;color:var(--khr-brand-deep,#ea580c);font:inherit;font-size:12.5px;font-weight:750;cursor:pointer}
.khr-shell .khr-notif-list{display:flex;flex:1;flex-direction:column;gap:4px;min-height:0;overflow-y:auto;padding:6px;-webkit-overflow-scrolling:touch}
.khr-shell .khr-notif-item{position:relative;display:flex;align-items:flex-start;gap:11px;padding:10px 12px 10px 10px;border-radius:12px;color:inherit;text-decoration:none}
.khr-shell .khr-notif-item:hover{background:#f7f7f8}
.khr-shell .khr-notif-item.is-unread{background:#fff7ef}
.khr-shell .khr-notif-item.is-unread::after{content:"";position:absolute;top:16px;right:12px;width:8px;height:8px;border-radius:50%;background:#ff8a2a}
.khr-shell .khr-notif-ico{flex:0 0 34px;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#fff1e6;color:var(--khr-brand-deep,#ea580c)}
.khr-shell .khr-notif-ico.is-good{background:#e7f6ee;color:#15803d}
.khr-shell .khr-notif-ico.is-bad{background:#fdecec;color:#c62828}
.khr-shell .khr-notif-ico .dashicons{width:17px;height:17px;font-size:17px}
/* Info announcements: the category's colour (same as on Info). */
.khr-shell .khr-notif-ico.khr-tone-brand{background:#fff1e6;color:var(--khr-brand,#ff8625)}
.khr-shell .khr-notif-ico.khr-tone-blue{background:#eaf1fd;color:#2f6fdf}
.khr-shell .khr-notif-ico.khr-tone-amber{background:#fdf5e1;color:#c98a06}
.khr-shell .khr-notif-ico.khr-tone-violet{background:#f2edfc;color:#7a4fd6}
.khr-shell .khr-notif-ico.khr-tone-green{background:#e7f6ee;color:#1f9d5c}
.khr-shell .khr-notif-ico.khr-tone-teal{background:#e3f5f4;color:#0f8f8a}
.khr-shell .khr-notif-text{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0;padding-right:12px}
.khr-shell .khr-notif-text strong{font-size:13.5px;font-weight:800;line-height:1.3}
.khr-shell .khr-notif-text small{display:-webkit-box;overflow:hidden;color:#4b535b;font-size:12.5px;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.khr-shell .khr-notif-text em{color:#9aa1a8;font-size:11.5px;font-style:normal;font-weight:650}
.khr-shell .khr-notif-empty{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0;padding:28px 16px;color:#8a929a;font-size:13px;font-weight:650;text-align:center}
.khr-shell .khr-notif-empty .dashicons{width:28px;height:28px;font-size:28px;color:#22c55e}
.khr-shell .khr-notif-foot{display:flex;flex-direction:column;gap:6px;padding:10px 12px 12px;border-top:1px solid #f1eeeb}
.khr-shell .khr-notif-foot:not(:has(> :not([hidden]))){display:none}
.khr-shell .khr-notif-push{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;margin:0;border:1px solid #fed7aa;border-radius:12px;background:#fff7ef;color:#c2410c;font:inherit;font-size:13.5px;font-weight:800;cursor:pointer}
.khr-shell .khr-notif-push[hidden]{display:none}
.khr-shell .khr-notif-push.is-on{border-color:#e3e5e8;background:#fff;color:#4b535b}
.khr-shell .khr-notif-push:disabled{opacity:.6;cursor:progress}
.khr-shell .khr-notif-push .dashicons{width:18px;height:18px;font-size:18px}
.khr-shell .khr-notif-note{color:#6b737b;font-size:12px;line-height:1.45;text-align:center}
.khr-shell .khr-notif-note[hidden]{display:none}
@media (max-width:767px){
  .khr-shell .khr-notif{position:static}
  .khr-shell .khr-notif-panel{position:fixed;top:calc(64px + env(safe-area-inset-top));left:12px;right:12px;width:auto;max-height:calc(100dvh - 170px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
}
/* Bell panel: "View all notifications" under the latest five. */
.khr-shell .khr-notif-all{display:flex;align-items:center;justify-content:center;gap:4px;padding:11px 12px;border-top:1px solid #f1eeeb;color:var(--khr-brand-deep,#ea580c);font-size:13px;font-weight:800;text-decoration:none}
.khr-shell .khr-notif-all:hover{background:#fff7ef}
.khr-shell .khr-notif-all .dashicons{width:16px;height:16px;font-size:16px}
/* The Notifications page (/notifications). */
.khr-shell .khr-npage{max-width:760px}
.khr-shell .khr-npage-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 14px}
.khr-shell .khr-npage-head h1{margin:0;color:#1c2228;font-size:28px;font-weight:850;letter-spacing:-.02em;line-height:1.15}
.khr-shell .khr-npage-head p{margin:4px 0 0;color:#8a929a;font-size:13.5px;font-weight:650}
.khr-shell .khr-npage-head form{margin:0}
.khr-shell .khr-npage-readall{min-height:40px;margin:0;padding:0 14px;border:1px solid #e3e5e8;border-radius:12px;background:#fff;color:#3d454d;font:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.khr-shell .khr-npage-readall:hover{border-color:#fdba74;color:#c2410c}
.khr-shell .khr-npage-tabs{display:inline-flex;gap:4px;margin:0 0 12px;padding:4px;border-radius:14px;background:#eceef0}
.khr-shell .khr-npage-tabs a{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;border-radius:10px;color:#5b636b;font-size:13.5px;font-weight:750;text-decoration:none}
.khr-shell .khr-npage-tabs a.is-active{background:#fff;color:#1c2228;box-shadow:0 1px 3px rgba(20,24,28,.08)}
.khr-shell .khr-npage-tabs a span{min-width:20px;padding:1px 7px;border-radius:999px;background:rgba(20,24,28,.07);font-size:11.5px;font-weight:800;text-align:center}
.khr-shell .khr-npage-tabs a.is-active span{background:#fff1e6;color:#c2410c}
.khr-shell .khr-npage-list{display:flex;flex-direction:column;gap:4px;padding:6px;border:1px solid #ece9e6;border-radius:18px;background:#fff}
.khr-shell .khr-npage-pager{margin-top:14px}
@media (max-width:767px){
  .khr-shell .khr-npage-head h1{font-size:24px}
  .khr-shell .khr-npage-tabs{display:flex}
  .khr-shell .khr-npage-tabs a{flex:1;justify-content:center}
}
/*
 * The page's outermost background (html) is the header colour on the KHR app page, so pulling the
 * page down past the top (or up past the bottom) shows dark like the header and the bottom bar, not the
 * light page colour. The page itself (body) keeps its own background and fills the screen (100vh, a
 * fixed height: 100dvh changes as Safari's toolbar shrinks and re-lays out the page mid-scroll).
 * The :has(body...) form outranks the Admin and Staff html rules.
 */
html:has(body.khr-standalone .khr-shell){background:#29292b!important}
body.khr-standalone:has(.khr-shell){min-height:100vh}
/* Staff's header slides away on scroll; its background is solid, so the backdrop blur it inherited
   showed nothing but made every slide heavier on iPhones. Off, as on Admin's header. */
.khr-shell.is-staff .khr-topbar{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* The notifications pop-up (shares the Install app dialog's card). */
.khr-push-dlg-ico{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#fff1e6;color:var(--khr-brand-deep,#ea580c)}
.khr-push-dlg-ico .dashicons{width:28px;height:28px;font-size:28px}
.khr-push-dlg-text{margin:0;color:#4b535b!important;font-size:14px!important;line-height:1.55!important}
.khr-push-dlg-msg{color:#6b737b;font-size:12.5px;line-height:1.45}
.khr-push-dlg-msg[hidden]{display:none}
.khr-push-later{width:100%;min-height:44px;margin:0;border:0;background:none;color:#6b737b;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.khr-push-dlg button:disabled{opacity:.6;cursor:progress}
/* The pop-up takes focus itself when it opens, so Safari draws no focus ring around Turn on. */
.khr-push-dlg:focus,.khr-push-dlg button:focus:not(:focus-visible){outline:none}
.khr-push-dlg .khr-install-ok,.khr-push-later{-webkit-appearance:none;appearance:none;box-shadow:none}
/* Pull to refresh in the installed app (assets/js/app.js). */
.khr-ptr{position:fixed;z-index:10000;top:calc(env(safe-area-inset-top,0px) - 40px);left:50%;display:grid;place-items:center;width:38px;height:38px;margin-left:-19px;border-radius:50%;background:#fff;color:#8a9097;box-shadow:0 6px 18px -6px rgba(20,24,28,.35);opacity:0;pointer-events:none;transition:transform .25s ease,opacity .25s ease}
.khr-ptr .dashicons{width:20px;height:20px;font-size:20px}
.khr-ptr.is-ready{color:var(--khr-brand-deep,#ea580c)}
.khr-ptr.is-spinning .dashicons{animation:khr-ptr-spin .8s linear infinite}
@keyframes khr-ptr-spin{to{transform:rotate(360deg)}}
/* Manual entries turned off in Settings: no Auto / Manual switch at all. */
.khr-mode-switch[hidden]{display:none!important}

/* ===== Personal details (KHR_Personal): My Profile for Managers and staff, Admin's Employees > Edit.
   Onboarding: a welcome card with four steps, then four numbered cards (two columns on desktop) and a save
   bar that stays at the bottom on phones. Complete: a summary in the same four cards. ===== */
.khr-shell .khr-pd{--pd-brand:#ff8625;margin:22px 0 0;color:#1c2228}
.khr-shell .khr-pd.is-onboarding{margin-top:6px}
.khr-shell .khr-pd-hero{display:grid;grid-template-columns:auto 1fr;gap:12px 14px;align-items:center;margin-bottom:14px;padding:18px;border:1px solid #fde2c3;border-radius:22px;background:linear-gradient(135deg,#fff7ed 0%,#fff 70%)}
.khr-shell .khr-pd-hero-ico{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:var(--pd-brand);color:#fff;box-shadow:0 8px 18px rgba(255,134,37,.28)}
.khr-shell .khr-pd-hero-ico .dashicons{width:24px;height:24px;font-size:24px}
.khr-shell .khr-pd-hero h2{margin:0;color:#1c2228;font-size:19px;font-weight:800;line-height:1.25}
.khr-shell .khr-pd-hero p{margin:3px 0 0;color:#6b747c;font-size:13px;font-weight:550;line-height:1.4}
.khr-shell .khr-pd-hero p.khr-pd-hero-lock{display:flex;align-items:center;gap:4px;margin-top:5px;color:#1a8a4f;font-size:12px;font-weight:700}
.khr-shell .khr-pd-hero-lock .dashicons{width:14px;height:14px;font-size:14px}
.khr-shell .khr-pd.is-onboarding{margin-bottom:22px}
.khr-shell .khr-pd-card{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0;padding:16px;border:1px solid #ece9e6;border-radius:20px;background:#fff}
.khr-shell .khr-pd-card-head{display:flex;align-items:center;gap:10px}
.khr-shell .khr-pd-card-head h3{flex:1;margin:0;color:#1c2228;font-size:15px;font-weight:800}
.khr-shell .khr-pd-card-ico{color:#c9ced3}
.khr-shell .khr-pd-card-ico .dashicons{width:20px;height:20px;font-size:20px}
.khr-shell .khr-pd-field{display:block;min-width:0;margin:0}
.khr-shell .khr-pd-field>span{display:block;margin:0 0 6px;color:#4b535b;font-size:12.5px;font-weight:700}
.khr-shell .khr-pd :is(input:not([type=file]),select,textarea){display:block;box-sizing:border-box;width:100%;min-width:0;min-height:48px;margin:0;padding:11px 13px;border:1px solid #e3e5e8;border-radius:13px;background:#fafafa;color:#1c2228;font:inherit;font-size:16px;font-weight:550;line-height:1.35;box-shadow:none;outline:none;-webkit-appearance:none;appearance:none;transition:border-color .15s,box-shadow .15s,background .15s}
.khr-shell .khr-pd select{padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238a929a'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:18px}
.khr-shell .khr-pd textarea{min-height:74px;resize:vertical}
.khr-shell .khr-pd ::placeholder{color:#a3aab1;font-weight:500}
.khr-shell .khr-pd :is(input:not([type=file]),select,textarea):focus{border-color:var(--pd-brand);background:#fff;box-shadow:0 0 0 3px rgba(255,134,37,.16)}
.khr-shell .khr-pd-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:10px}
.khr-shell .khr-pd-hint{margin:-2px 0 0;color:#8a929a;font-size:12px;font-weight:600;line-height:1.4}
.khr-shell .khr-pd-upload{position:relative;display:flex;align-items:center;gap:12px;min-width:0;margin:0;padding:12px;border:1.5px dashed #f2cdae;border-radius:16px;background:#fffaf6;cursor:pointer;transition:border-color .15s,background .15s}
.khr-shell .khr-pd-upload:hover,.khr-shell .khr-pd-upload:focus-within{border-color:var(--pd-brand);background:#fff4ea}
.khr-shell .khr-pd-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.khr-shell .khr-pd-upload-ico{position:relative;display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;overflow:hidden;border-radius:12px;background:#fff;color:var(--pd-brand);box-shadow:inset 0 0 0 1px #f6dcc6}
.khr-shell .khr-pd-upload-ico .dashicons{width:24px;height:24px;font-size:24px}
.khr-shell .khr-pd-upload-ico img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.khr-shell .khr-pd-upload-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.khr-shell .khr-pd-upload-text strong{color:#1c2228;font-size:14px;font-weight:750;line-height:1.3;overflow-wrap:anywhere} /* the full title, on two lines if needed */
.khr-shell .khr-pd-upload-text small{color:#8a929a;font-size:12px;font-weight:600;line-height:1.35}
.khr-shell .khr-pd-upload-btn{flex:0 0 auto;padding:7px 13px;border-radius:999px;background:var(--khr-brand-light,#ffe8d6);color:#b8501a;font-size:12.5px;font-weight:800}
.khr-shell .khr-pd-upload.has-file{border-style:solid;border-color:#bfe6cf;background:#f3fbf6}
.khr-shell .khr-pd-upload.has-file .khr-pd-upload-ico{color:#1a8a4f;box-shadow:inset 0 0 0 1px #cdeedb}
.khr-shell .khr-pd-bar{display:flex;flex-direction:column;gap:12px;padding:14px 16px;border:1px solid #ece9e6;border-radius:20px;background:#fff}
.khr-shell .khr-pd-privacy{display:flex;align-items:flex-start;gap:8px;margin:0;color:#6b747c;font-size:12.5px;font-weight:600;line-height:1.4}
.khr-shell .khr-pd-privacy .dashicons{flex:0 0 16px;width:16px;height:16px;margin-top:1px;font-size:16px;color:#1a8a4f}
.khr-shell .khr-pd-actions{display:flex;align-items:center;gap:10px}
.khr-shell .khr-pd-save{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:52px;margin:0;padding:0 22px;border:0;border-radius:15px;background:var(--pd-brand);color:#fff;font:inherit;font-size:15.5px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(255,134,37,.28)}
.khr-shell .khr-pd-save:hover{background:var(--khr-brand-hover,#ef7316)}
.khr-shell .khr-pd-save .dashicons{width:18px;height:18px;font-size:18px}
@media(max-width:400px){.khr-shell .khr-pd-pair{grid-template-columns:1fr}}
@media(min-width:900px){
  .khr-shell .khr-pd{max-width:980px}
  .khr-shell .khr-pd-card{padding:20px}
  .khr-shell .khr-pd-hero{grid-template-columns:auto minmax(0,1fr) minmax(360px,auto);padding:22px 24px}
  .khr-shell .khr-pd-bar{flex-direction:row;align-items:center;justify-content:space-between;padding:16px 20px}
  .khr-shell .khr-pd-actions{flex:0 0 auto}
  .khr-shell .khr-pd-save{flex:0 0 auto;min-width:220px}
}
/* ---- Three-step form (data-khr-pd-wizard) ---- */
/* No outline round the whole field when tapping (staff-dark.css draws one on label:focus-within); the input itself turns orange. */
.khr-shell .khr-pd :is(label,fieldset,.khr-pd-field):focus-within{outline:none!important;outline-offset:0!important}
.khr-shell .khr-pd :is(input,select,textarea):focus-visible{outline:none!important}
.khr-shell .khr-pd :is(input,select,textarea){-webkit-tap-highlight-color:transparent}
.khr-shell .khr-pd :is(input,select,textarea).is-invalid{border-color:#e5484d;background:#fff8f8;box-shadow:0 0 0 3px rgba(229,72,77,.12)}
.khr-shell .khr-pd.is-onboarding{max-width:720px}
.khr-shell .khr-content>.khr-pd.is-onboarding{max-width:720px!important} /* staff desktop sets max-width:none !important on page blocks */
.khr-shell .khr-pd-form{display:flex;flex-direction:column;gap:14px}
.khr-shell .khr-pd-progress{padding:14px 16px 12px;border:1px solid #ece9e6;border-radius:20px;background:#fff}
.khr-shell .khr-pd-progress-top{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.khr-shell .khr-pd-progress-top span{flex:0 0 auto;color:#8a929a;font-size:12px;font-weight:750;letter-spacing:.02em;text-transform:uppercase}
.khr-shell .khr-pd-progress-top strong{min-width:0;color:#1c2228;font-size:16px;font-weight:800}
.khr-shell .khr-pd-bars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.khr-shell .khr-pd-bars li{display:flex;flex-direction:column;gap:6px;min-width:0}
.khr-shell .khr-pd-bars i{position:relative;display:block;height:6px;overflow:hidden;border-radius:999px;background:#f1eeeb}
.khr-shell .khr-pd-bars i::after{content:"";position:absolute;inset:0;width:0;border-radius:inherit;background:var(--pd-brand);transition:width .45s cubic-bezier(.2,.8,.2,1)}
.khr-shell .khr-pd-bars li.is-current i::after{width:50%}
.khr-shell .khr-pd-bars li.is-done i::after{width:100%;background:#34b36b}
.khr-shell .khr-pd-bars span{overflow:hidden;color:#a3aab1;font-size:11.5px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;transition:color .25s}
.khr-shell .khr-pd-bars li.is-current span{color:#c2410c}
.khr-shell .khr-pd-bars li.is-done span{color:#1a8a4f}
.khr-shell .khr-pd-step{display:flex;flex-direction:column;gap:12px}
.khr-shell .khr-pd-form:not(.is-wizard) .khr-pd-progress{display:none}
.khr-shell .khr-pd-form.is-wizard .khr-pd-step{display:none}
.khr-shell .khr-pd-form.is-wizard .khr-pd-step.is-active{display:flex}
.khr-shell .khr-pd-step.from-right{animation:khr-pd-in-right .34s cubic-bezier(.2,.8,.2,1) both}
.khr-shell .khr-pd-step.from-left{animation:khr-pd-in-left .34s cubic-bezier(.2,.8,.2,1) both}
@keyframes khr-pd-in-right{from{opacity:0;transform:translateX(36px)}to{opacity:1;transform:none}}
@keyframes khr-pd-in-left{from{opacity:0;transform:translateX(-36px)}to{opacity:1;transform:none}}
.khr-shell .khr-pd-card-ico.is-lead{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#fff1e6;color:var(--pd-brand)}
.khr-shell .khr-pd-card-ico.is-lead .dashicons{width:18px;height:18px;font-size:18px}
.khr-shell .khr-pd-card-ico.is-green{background:#e7f6ee;color:#1a8a4f}
.khr-shell .khr-pd-review dl{display:flex;flex-direction:column;margin:0}
.khr-shell .khr-pd-review dl>div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-top:1px solid #f3f1ef}
.khr-shell .khr-pd-review dl>div:first-child{border-top:0;padding-top:0}
.khr-shell .khr-pd-review dt{flex:0 0 auto;color:#7a838c;font-size:12.5px;font-weight:650}
.khr-shell .khr-pd-review dd{min-width:0;margin:0;color:#1c2228;font-size:13.5px;font-weight:700;text-align:right;overflow-wrap:anywhere}
.khr-shell .khr-pd-linkbtn{align-self:flex-start;min-height:0;padding:0;border:0;background:none;color:var(--pd-brand);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.khr-shell .khr-pd-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:52px;padding:0 18px;border:1px solid #e3e5e8;border-radius:15px;background:#fff;color:#4b535b;font:inherit;font-size:14.5px;font-weight:750;cursor:pointer}
.khr-shell .khr-pd-back .dashicons{width:18px;height:18px;font-size:18px}
.khr-shell .khr-pd :is(.khr-pd-back,.khr-pd-save,.khr-pd-cancel)[hidden]{display:none!important}
.khr-shell .khr-pd-save{transition:transform .12s ease,background .15s ease,box-shadow .15s ease}
.khr-shell .khr-pd-save:active,.khr-shell .khr-pd-back:active{transform:scale(.97)}
.khr-shell .khr-pd-save.is-busy{opacity:.7;cursor:progress}
.khr-shell .khr-pd-bar{margin-top:0}
@media(max-width:820px){
  .khr-shell .khr-pd.is-onboarding .khr-pd-bar{position:sticky;bottom:calc(10px + env(safe-area-inset-bottom));z-index:5;padding:0;border:0;background:transparent}
  .khr-shell .khr-pd.is-onboarding .khr-pd-privacy{display:none}
  .khr-shell .khr-pd.is-onboarding .khr-pd-back{flex:0 0 auto;box-shadow:0 8px 18px rgba(28,34,40,.08)}
}
@media(min-width:900px){
  .khr-shell .khr-pd.is-onboarding .khr-pd-hero{grid-template-columns:auto minmax(0,1fr)}
  .khr-shell .khr-pd.is-onboarding .khr-pd-actions .khr-pd-save{min-width:200px}
}
@media(prefers-reduced-motion:reduce){
  .khr-shell .khr-pd-step.from-right,.khr-shell .khr-pd-step.from-left{animation:none}
  .khr-shell .khr-pd-bars i::after{transition:none}
}
/* Admin, Employees > Edit. */
.khr-shell .khr-emp-rows strong .khr-app-state.is-missing{background:#fff1e6;color:#c2410c}
/* Personal details still missing (.khr-onboarding): a focused full-screen page on desktop, with only the
   top bar (logo, bell, account) and the form in the middle; no sidebar and no page title. */
.khr-shell.khr-onboarding .khr-content>:is(.khr-page-header,.khr-mhead){display:none!important}
@media(min-width:821px){
  .khr-shell.khr-onboarding{grid-template-columns:minmax(0,1fr)!important}
  .khr-shell.khr-onboarding .khr-sidebar{display:none!important}
  .khr-shell.khr-onboarding .khr-topbar .khr-mobile-brand{display:flex!important}
  .khr-shell.khr-onboarding .khr-topbar .khr-top-title{display:none!important}
  .khr-shell.khr-onboarding .khr-content{padding-top:40px!important;padding-bottom:56px!important}
  .khr-shell.khr-onboarding .khr-content>.khr-pd{width:100%;max-width:720px!important;margin-left:auto!important;margin-right:auto!important}
  .khr-shell.khr-onboarding .khr-pd-hero{padding:24px 26px}
  .khr-shell.khr-onboarding .khr-pd-hero h2{font-size:22px}
}
.khr-shell .khr-pd input[data-khr-pd-upper]{text-transform:uppercase}
.khr-shell .khr-pd input[data-khr-pd-upper]::placeholder{text-transform:none}
@media(max-width:600px){.khr-shell .khr-pd-upload{gap:10px;padding:11px}.khr-shell .khr-pd-upload-ico{flex-basis:46px;width:46px;height:46px}.khr-shell .khr-pd-upload-btn{padding:7px 11px}}

/* ===== My Profile (staff and Managers, details complete): a header card, then three tabs
   (Profile, Personal details, Security). Full width of the page; same look in both apps. ===== */
.khr-shell .khr-prof{--pf-brand:#ff8625;display:flex;flex-direction:column;gap:16px;width:100%;color:#1c2228}
.khr-shell .khr-content>.khr-prof{max-width:none!important;grid-column:1 / -1}
.khr-shell .khr-prof-head{position:relative;overflow:hidden;padding:0;border:1px solid #f3dcc8;border-radius:24px;background:linear-gradient(120deg,#fff1e4 0%,#fff8f2 45%,#fff 100%)}
.khr-shell .khr-prof-head::after{content:"";position:absolute;right:-80px;top:-90px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(255,134,37,.14),rgba(255,134,37,0) 70%);pointer-events:none}
.khr-shell .khr-prof-who{position:relative;z-index:1;padding:22px 24px 20px}
.khr-shell .khr-prof-head .khr-staff-profile-heading{display:flex;align-items:center;gap:18px;margin:0;padding:0;border:0}
.khr-shell .khr-prof-head .khr-photo-form{flex:0 0 auto}
.khr-shell .khr-prof-head .khr-staff-profile-avatar{width:84px!important;height:84px!important;border:3px solid #fff!important;box-shadow:0 8px 22px rgba(28,34,40,.12)}
.khr-shell .khr-prof-head .khr-staff-profile-heading>div{min-width:0}
.khr-shell .khr-prof-head .khr-staff-profile-heading strong{display:block;overflow:hidden;color:#1c2228;font-size:22px;font-weight:800;line-height:1.2;letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap}
.khr-shell .khr-prof-head .khr-staff-profile-heading>div>span{display:block;margin-top:4px;color:#6b747c;font-size:14px;font-weight:650}
.khr-shell .khr-prof-head .khr-photo-actions{margin-top:8px}
.khr-shell .khr-prof-facts{position:relative;z-index:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:0;border-top:1px solid #f3e2d3;background:rgba(255,255,255,.7)}
.khr-shell .khr-prof-facts>div{display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px 24px}
.khr-shell .khr-prof-facts>div+div{border-left:1px solid #f3e2d3}
.khr-shell .khr-prof-facts dt{display:flex;align-items:center;gap:6px;color:#8a929a;font-size:11.5px;font-weight:750;letter-spacing:.02em;text-transform:uppercase}
.khr-shell .khr-prof-facts dt .dashicons{width:14px;height:14px;font-size:14px;color:#c2652a}
.khr-shell .khr-prof-facts dd{margin:0;overflow:hidden;color:#1c2228;font-size:14.5px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.khr-shell .khr-prof-tabs{position:relative;display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:4px;padding:5px;border:1px solid #ece9e6;border-radius:16px;background:#fff}
.khr-shell .khr-prof-tabs a{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:46px;padding:0 10px;border-radius:12px;color:#6b747c;font-size:14px;font-weight:750;text-decoration:none;white-space:nowrap;transition:color .2s ease;-webkit-tap-highlight-color:transparent}
.khr-shell .khr-prof-tabs a span{overflow:hidden;text-overflow:ellipsis}
.khr-shell .khr-prof-tabs a .dashicons{flex:0 0 auto;width:17px;height:17px;font-size:17px}
.khr-shell .khr-prof-tabs a.is-active{color:#c2410c}
.khr-shell .khr-prof-tabs a:focus-visible{outline:2px solid var(--pf-brand);outline-offset:-2px}
.khr-shell .khr-prof-tabs-ink{position:absolute;z-index:0;top:5px;bottom:5px;left:5px;width:0;border-radius:12px;background:#fff1e6;box-shadow:inset 0 0 0 1px #fde2c3;transition:transform .32s cubic-bezier(.2,.8,.2,1),width .32s cubic-bezier(.2,.8,.2,1)}
.khr-shell .khr-prof-tabs:not(.has-ink) a.is-active{background:#fff1e6}
.khr-shell .khr-prof-panel{display:flex;flex-direction:column;gap:16px;min-width:0}
.khr-shell .khr-prof-panel[hidden]{display:none!important}
.khr-shell .khr-prof-panel.is-entering{animation:khr-prof-in .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes khr-prof-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.khr-shell .khr-prof-card{min-width:0;margin:0;padding:20px 22px;border:1px solid #ece9e6;border-radius:20px;background:#fff}
.khr-shell .khr-prof-card h2{margin:0;color:#1c2228;font-size:16px;font-weight:800}
.khr-shell .khr-prof .khr-pd{margin-top:0;max-width:none!important}
.khr-shell .khr-prof-security{display:grid;grid-template-columns:1fr;gap:18px}
.khr-shell .khr-prof-security-ico{display:grid;place-items:center;width:42px;height:42px;margin-bottom:10px;border-radius:13px;background:#fff1e6;color:var(--pf-brand)}
.khr-shell .khr-prof-security-ico .dashicons{width:20px;height:20px;font-size:20px}
.khr-shell .khr-prof-security-text p{margin:6px 0 0;color:#6b747c;font-size:13.5px;font-weight:550;line-height:1.5}
.khr-shell .khr-prof-pw{display:flex;flex-direction:column;gap:12px;margin:0}
.khr-shell .khr-prof-pw label{display:block;margin:0;color:#4b535b;font-size:12.5px;font-weight:700}
.khr-shell .khr-prof-pw label>span{display:block;margin-bottom:6px}
.khr-shell .khr-prof-pw input{display:block;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:11px 13px;border:1px solid #e3e5e8;border-radius:13px;background:#fafafa;color:#1c2228;font:inherit;font-size:16px;font-weight:550;outline:none;box-shadow:none;transition:border-color .15s,box-shadow .15s,background .15s}
.khr-shell .khr-prof-pw input:focus{border-color:var(--pf-brand);background:#fff;box-shadow:0 0 0 3px rgba(255,134,37,.16)}
.khr-shell .khr-prof-pw :is(label,input):focus-within,.khr-shell .khr-prof-pw input:focus-visible{outline:none!important}
.khr-shell .khr-prof-pw .khr-pd-save{display:inline-flex;align-items:center;justify-content:center;min-height:50px;margin-top:4px;padding:0 22px;border:0;border-radius:14px;background:var(--pf-brand);color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(255,134,37,.24)}
@media(max-width:600px){
  .khr-shell .khr-prof-who{padding:18px 16px 16px}
  .khr-shell .khr-prof-head .khr-staff-profile-avatar{width:72px!important;height:72px!important}
  .khr-shell .khr-prof-head .khr-staff-profile-heading strong{font-size:18px;white-space:normal}
  .khr-shell .khr-prof-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .khr-shell .khr-prof-facts>div{padding:12px 16px}
  .khr-shell .khr-prof-facts>div+div{border-left:0}
  .khr-shell .khr-prof-facts>div:nth-child(even){border-left:1px solid #f3e2d3}
  .khr-shell .khr-prof-facts>div:nth-child(n+3){border-top:1px solid #f3e2d3}
  .khr-shell .khr-prof-facts>div:last-child:nth-child(odd){grid-column:1 / -1;border-left:0}
  .khr-shell .khr-prof-tabs a{flex-direction:column;gap:3px;min-height:56px;font-size:11.5px}
  .khr-shell .khr-prof-card{padding:16px}
}
@media(min-width:900px){
  .khr-shell .khr-prof-panel[data-khr-ppanel=profile]:not([hidden]){display:grid;grid-template-columns:minmax(300px,1fr) minmax(0,1.6fr);align-items:start}
  .khr-shell .khr-prof-security{grid-template-columns:minmax(220px,.8fr) minmax(0,1.4fr);gap:32px;padding:26px 28px}
  .khr-shell .khr-prof-pw{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
  .khr-shell .khr-prof-pw label:first-of-type{grid-column:1 / -1}
  .khr-shell .khr-prof-pw .khr-pd-save{grid-column:1 / -1;justify-self:start;min-width:220px}
}
/* ---- My Profile header: Upload / Change photo first; avatars are a small link ---- */
.khr-shell .khr-prof-who{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.khr-shell .khr-prof-head .khr-photo-actions{display:none!important} /* the buttons on the right do it */
.khr-shell .khr-prof-photo-cta{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-end;gap:7px}
.khr-shell .khr-prof-photo-links{display:flex;align-items:center;gap:8px;color:#b3b9bf;font-size:12.5px}
.khr-shell .khr-prof-photo-links form{margin:0}
.khr-shell .khr-prof-link{min-height:0;padding:0;border:0;background:none!important;box-shadow:none!important;color:#7a838c;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.khr-shell .khr-prof-link:hover,.khr-shell .khr-prof-link[aria-expanded=true]{color:#c2410c}
.khr-shell .khr-prof-nudge{position:relative;z-index:1;display:flex;align-items:center;gap:7px;margin:-6px 24px 16px;padding:9px 12px;border:1px dashed #f2cdae;border-radius:12px;background:rgba(255,255,255,.75);color:#9a4a10;font-size:12.5px;font-weight:700}
.khr-shell .khr-prof-nudge .dashicons{width:16px;height:16px;font-size:16px}
.khr-shell .khr-prof-who.no-photo .khr-staff-profile-avatar{box-shadow:0 0 0 3px #fff,0 0 0 5px rgba(255,134,37,.45)!important}
@media(max-width:600px){
  .khr-shell .khr-prof-photo-cta{flex-direction:row;align-items:center;justify-content:space-between;width:100%}
  .khr-shell .khr-prof-nudge{margin:-4px 16px 14px}
}
/* ---- My Profile > Personal details: locked Identity, then cards edited in place ---- */
.khr-shell .khr-pc{display:grid;grid-template-columns:1fr;gap:16px;margin:0}
.khr-shell .khr-pc-card{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0;padding:18px 20px;border:1px solid #ece9e6;border-radius:20px;background:#fff;transition:border-color .2s,box-shadow .2s}
.khr-shell .khr-pc-card.is-editing{border-color:#fde2c3;box-shadow:0 10px 30px rgba(255,134,37,.10)}
.khr-shell .khr-pc-head{display:flex;align-items:center;gap:10px;min-height:34px}
.khr-shell .khr-pc-head h3{flex:1;min-width:0;margin:0;color:#1c2228;font-size:15.5px;font-weight:800}
.khr-shell .khr-pc-ico{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#fff1e6;color:var(--khr-brand,#ff8625)}
.khr-shell .khr-pc-ico.is-lock{background:#f1f3f5;color:#5d666f}
.khr-shell .khr-pc-ico .dashicons{width:18px;height:18px;font-size:18px}
.khr-shell .khr-pc-edit{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:0 13px;border:1px solid #f2cdae;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:12.5px;font-weight:800;text-decoration:none;transition:opacity .15s}
.khr-shell .khr-pc-edit .dashicons{width:14px;height:14px;font-size:14px}
.khr-shell .khr-pc-card.is-editing .khr-pc-edit{opacity:0;pointer-events:none}
.khr-shell .khr-pc-dl{display:flex;flex-direction:column;margin:0}
.khr-shell .khr-pc-dl>div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-top:1px solid #f3f1ef}
.khr-shell .khr-pc-dl>div:first-child{border-top:0;padding-top:2px}
.khr-shell .khr-pc-dl dt{flex:0 0 auto;color:#7a838c;font-size:12.5px;font-weight:650}
.khr-shell .khr-pc-dl dd{min-width:0;margin:0;color:#1c2228;font-size:14px;font-weight:750;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.khr-shell .khr-pc-address{margin:0;color:#1c2228;font-size:14px;font-weight:650;line-height:1.6}
.khr-shell .khr-pc-note{display:flex;align-items:flex-start;gap:6px;margin:2px 0 0;color:#8a929a;font-size:12px;font-weight:600;line-height:1.4}
.khr-shell .khr-pc-note .dashicons{flex:0 0 14px;width:14px;height:14px;margin-top:1px;font-size:14px}
.khr-shell .khr-pc-form{display:none;flex-direction:column;gap:12px;margin:0}
.khr-shell .khr-pc-card.is-editing .khr-pc-view{display:none}
.khr-shell .khr-pc-card.is-editing .khr-pc-form{display:flex;animation:khr-prof-in .26s cubic-bezier(.2,.8,.2,1) both}
.khr-shell .khr-pc-pass.is-hidden{display:none}
.khr-shell .khr-pc-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:2px}
.khr-shell .khr-pc-cancel{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid #e3e5e8;border-radius:13px;background:#fff;color:#4b535b;font-size:14px;font-weight:750;text-decoration:none}
.khr-shell .khr-pc-save{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:110px;padding:0 20px;border:0;border-radius:13px;background:var(--khr-brand,#ff8625);color:#fff;font:inherit;font-size:14.5px;font-weight:800;cursor:pointer;box-shadow:0 6px 16px rgba(255,134,37,.24)}
.khr-shell .khr-pc-save:active,.khr-shell .khr-pc-cancel:active{transform:scale(.97)}
@media(min-width:900px){
  .khr-shell .khr-pc{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch} /* two by two, cards in a row the same height */
}
@media(max-width:600px){
  .khr-shell .khr-prof-who{align-items:flex-start}
  .khr-shell .khr-pc-card{padding:16px}
  .khr-shell .khr-pc-actions>*{flex:1 1 0}
}
@media(prefers-reduced-motion:reduce){.khr-shell .khr-prof-panel.is-entering{animation:none}.khr-shell .khr-prof-tabs-ink{transition:none}}
.khr-shell .khr-pc-dl dt{display:flex;align-items:center;gap:5px}
.khr-shell .khr-pc-lock{display:inline-grid;place-items:center;color:#b3b9bf}
.khr-shell .khr-pc-lock .dashicons{width:13px;height:13px;font-size:13px}
.khr-shell .khr-pc-card .khr-pc-note{margin-top:auto;padding-top:4px}
/* Cancel and Save: the same size, text centred (desktop: two equal buttons on the right; phones: half each). */
.khr-shell .khr-pc-actions>:is(.khr-pc-cancel,.khr-pc-save){box-sizing:border-box;flex:0 0 132px;justify-content:center;align-items:center;min-height:46px;margin:0;padding:0 16px;border-radius:13px;font-size:14.5px;font-weight:800;line-height:1;text-align:center}
.khr-shell .khr-pc-actions>.khr-pc-cancel{border:1px solid #e3e5e8;color:#4b535b}
.khr-shell .khr-pc-actions>.khr-pc-save{border:1px solid transparent}
@media(max-width:600px){.khr-shell .khr-pc-actions>:is(.khr-pc-cancel,.khr-pc-save){flex:1 1 0;min-height:48px}}

/* ===== Admin, Employees > Edit (.khr-ee): the My Profile look with Work / Personal details / Account tabs ===== */
.khr-shell .khr-ee{margin-top:6px}
.khr-shell .khr-ee .khr-prof-who{padding:22px 24px 18px}
.khr-shell .khr-ee .khr-staff-profile-avatar{display:block;overflow:hidden}
.khr-shell .khr-ee .khr-staff-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.khr-shell .khr-ee-pills{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px}
.khr-shell .khr-ee-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px #f1e4d8;color:#4b535b;font-size:12.5px;font-weight:800}
.khr-shell .khr-ee-pill .dashicons{width:15px;height:15px;font-size:15px}
.khr-shell .khr-ee-pill.is-role{color:#c2410c}
.khr-shell .khr-ee-pill i{width:8px;height:8px;border-radius:50%;background:currentColor}
.khr-shell .khr-ee-pill.is-on{color:#1a8a4f}
.khr-shell .khr-ee-pill.is-off{color:#8a929a}
.khr-shell .khr-ee-pill.is-warn{background:#fff7ed;color:#c2410c;box-shadow:inset 0 0 0 1px #fde2c3}
.khr-shell .khr-ee-form{display:block;margin:0}
.khr-shell .khr-ee-form>.khr-prof-panel{gap:14px}
.khr-shell .khr-ee-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.khr-shell .khr-pd .khr-pd-field input:is([type=date],[type=time]),.khr-shell .khr-pd .khr-pd-field input:is([type=date],[type=time])::-webkit-datetime-edit{font-weight:550}
.khr-shell .khr-ee .khr-pd-field>span small{color:#8a929a;font-weight:600}
.khr-shell .khr-ee-help{display:block;margin-top:6px;color:#8a929a;font-size:12px;font-weight:600;line-height:1.4}
.khr-shell .khr-ee-static{display:flex;align-items:center;gap:6px;margin:0;color:#1a8a4f;font-size:14px;font-weight:800}
.khr-shell .khr-ee-static small{color:#8a929a;font-size:12px;font-weight:600}
.khr-shell .khr-ee-pw{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}
.khr-shell .khr-ee-pw .khr-ef-input{position:relative;flex:1 1 220px;min-width:0}
.khr-shell .khr-ee-pw .khr-ef-input input{padding-right:46px}
.khr-shell .khr-ee .khr-ee-pw .khr-ef-eye{position:absolute;top:50%;right:6px;display:grid;place-items:center;width:36px;height:36px;margin:-18px 0 0;padding:0;border:0;border-radius:10px;background:transparent;color:#8a929a;cursor:pointer}
.khr-shell .khr-ee-pw .khr-mbtn{min-height:48px;border-radius:13px}
.khr-shell .khr-ee .khr-ee-pw .khr-ef-input input::placeholder{font-family:"Plus Jakarta Sans","Avenir Next","Segoe UI",sans-serif;font-weight:550}
.khr-shell .khr-ea .khr-emp-alert{max-width:none}
.khr-shell .khr-ea .khr-ea-help{margin-top:-6px}
.khr-shell .khr-ee-bar{display:flex;justify-content:flex-end;gap:10px;padding:14px 16px;border:1px solid #ece9e6;border-radius:18px;background:#fff}
.khr-shell .khr-ee-bar>:is(.khr-pc-cancel,.khr-pc-save){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;margin:0;padding:0 20px;border-radius:13px;font-size:14.5px;font-weight:800;line-height:1}
.khr-shell .khr-ee-bar>.khr-pc-save{min-width:170px;border:1px solid transparent}
.khr-shell .khr-ee-bar>.khr-pc-save .dashicons{width:17px;height:17px;font-size:17px}
.khr-shell .khr-ee .khr-pc-photo>div:first-child{align-items:center;padding-top:10px;border-top:1px solid #f3f1ef}
.khr-shell .khr-ee .khr-pc-photo dd a{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border:1px solid #fde2c3;border-radius:10px;background:#fff7ed;color:#c2410c;font-size:13px;font-weight:800;text-decoration:none}
.khr-shell .khr-ee .khr-pc-photo dd a:hover{border-color:#fbc58e;background:#ffedd5}
.khr-shell .khr-ee .khr-pc-photo dd a .dashicons{width:16px;height:16px;font-size:16px}
.khr-shell .khr-ee .khr-pc-note a{color:#c2410c}
.khr-shell .khr-ee .khr-pc-card .khr-pc-note{margin-top:auto}
@media(max-width:600px){
  .khr-shell .khr-ee .khr-prof-who{padding:18px 16px 16px}
  .khr-shell .khr-ee-grid{grid-template-columns:1fr}
  .khr-shell .khr-ee-bar>*{flex:1 1 0}
}
/* Edit Employee: Delete on the right of the page title. */
.khr-shell .khr-emp-formhead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.khr-shell .khr-ee-delete{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:13px}
.khr-shell .khr-ee-delete .dashicons{width:18px;height:18px;margin:0;font-size:18px}
@media(max-width:600px){.khr-shell .khr-ee-delete{min-height:40px;padding:0 12px;font-size:13px}}

/* Own lists (Live History, My Leave, My Claims): the period filter is at the top; below the list,
   the count / page on the left and the page numbers on the right (stacked and centred on a phone). */
.khr-shell .khr-list-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 0}
.khr-shell .khr-list-foot>.khr-pager.khr-staff-pager{margin:0 0 0 auto}
.khr-shell .khr-list-info{color:#8a929a;font-size:12.5px;font-weight:700;white-space:nowrap}
@media(max-width:600px){
  .khr-shell .khr-list-foot{flex-direction:column;gap:8px}
  .khr-shell .khr-list-foot>.khr-pager.khr-staff-pager{margin:0}
}
/* The filter in a list heading keeps its own text style (not the heading's small grey <span> text). */
.khr-shell :is(.khr-hist-head,.khr-req-head) .khr-range[data-khr-range] .khr-range-chip span{color:inherit;font-size:inherit;font-weight:inherit}
.khr-shell .khr-list-ajax.is-loading{opacity:.55;transition:opacity .15s ease}

/* Staff phone bar with three buttons (part time, no live): three even columns. */
@media(max-width:1023px){.khr-shell.is-staff .khr-mobile-nav.khr-staff-nav.is-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* Bell: which view a notification opens in (Live Host Manager). */
.khr-shell .khr-notif-role{font-style:normal;font-weight:800;color:#c2410c}

/* Live Host Manager: switching view animation (assets/js/app.js). */
.khr-switch-ov{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;background:rgba(20,21,22,.78);opacity:0;transition:opacity .25s ease;will-change:opacity}
.khr-switch-ov.is-on{opacity:1}
.khr-switch-ov.is-off{opacity:0;transition-duration:.4s}
.khr-switch-ov.is-arrived{opacity:1}
.khr-switch-card{display:flex;flex-direction:column;align-items:center;gap:14px;min-width:230px;padding:26px 30px 22px;border-radius:24px;background:#fff;box-shadow:0 24px 60px rgba(0,0,0,.28);transform:scale(.94);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.khr-switch-ov.is-on .khr-switch-card,.khr-switch-ov.is-arrived .khr-switch-card{transform:scale(1)}
.khr-switch-card strong{color:#1c2228;font-family:"Plus Jakarta Sans","Avenir Next","Segoe UI",sans-serif;font-size:15px;font-weight:800}
.khr-switch-flip{position:relative;width:64px;height:64px;perspective:400px}
.khr-switch-face{position:absolute;inset:0;display:grid;place-items:center;border-radius:20px;background:#fff1e4;color:var(--khr-brand,#ff8625);backface-visibility:hidden;-webkit-backface-visibility:hidden;transition:transform .7s cubic-bezier(.6,0,.2,1) .15s}
.khr-switch-face .dashicons{width:30px;height:30px;font-size:30px}
.khr-switch-face.is-to{background:var(--khr-brand,#ff8625);color:#fff;transform:rotateY(180deg)}
.khr-switch-ov.is-on .khr-switch-face.is-from{transform:rotateY(-180deg)}
.khr-switch-ov.is-on .khr-switch-face.is-to,.khr-switch-ov.is-arrived .khr-switch-face.is-to{transform:rotateY(0)}
.khr-switch-ov.is-arrived .khr-switch-face.is-from{transform:rotateY(-180deg);transition:none}
.khr-switch-ov.is-arrived .khr-switch-face.is-to{transition:none}
.khr-switch-bar{display:block;width:140px;height:4px;overflow:hidden;border-radius:999px;background:#f1eeeb}
.khr-switch-bar i{display:block;width:0;height:100%;border-radius:inherit;background:var(--khr-brand,#ff8625);transition:width 1s ease}
.khr-switch-ov.is-on .khr-switch-bar i,.khr-switch-ov.is-arrived .khr-switch-bar i{width:100%}
.khr-switch-ov.is-arrived .khr-switch-bar i{transition:none}
.khr-switch-ov.is-calm *{transition:none!important}

/* Our own icons, used like Dashicons (<span class="dashicons khr-ico-...">): drawn with a mask, so they take
   the text colour and the size of the .dashicons box wherever they are (Info, the bell, forms). */
.dashicons.khr-ico-bag::before{content:"";display:block;width:100%;height:100%;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M8.25 9.5V7.25a3.75 3.75 0 0 1 7.5 0V9.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.1%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M5.6 8h12.8c.86 0 1.57.66 1.64 1.51l.86 10.5A1.85 1.85 0 0 1 19.06 22H4.94a1.85 1.85 0 0 1-1.84-1.99l.86-10.5C4.03 8.66 4.74 8 5.6 8z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M8.25 9.5V7.25a3.75 3.75 0 0 1 7.5 0V9.5%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.1%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M5.6 8h12.8c.86 0 1.57.66 1.64 1.51l.86 10.5A1.85 1.85 0 0 1 19.06 22H4.94a1.85 1.85 0 0 1-1.84-1.99l.86-10.5C4.03 8.66 4.74 8 5.6 8z%22/%3E%3C/svg%3E") center/contain no-repeat}
/* Documents (offer letter): Edit Employee > Documents (Admin) and My Profile > Documents (the employee). */
.khr-shell .khr-doc-card{display:flex;flex-direction:column;grid-column:1 / -1;gap:14px} /* full width (the only card on the tab) */
.khr-shell .khr-doc-file{display:flex;align-items:center;gap:12px;min-width:0;padding:12px;border:1px solid #f1e6dc;border-radius:16px;background:#fffaf6}
.khr-shell .khr-doc-pdf{display:flex;flex:0 0 44px;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:44px;height:52px;border-radius:10px;background:#fdecec;color:#c23b3b;box-shadow:inset 0 0 0 1px #f8d3d3}
.khr-shell .khr-doc-pdf svg{display:block;width:20px;height:20px}
.khr-shell .khr-doc-pdf b{font-size:10px;font-weight:900;line-height:1;letter-spacing:.06em}
.khr-shell .khr-doc-meta{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.khr-shell .khr-doc-meta strong{overflow:hidden;color:#1c2228;font-size:14px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.khr-shell .khr-doc-meta small{color:#8a929a;font-size:12px;font-weight:600}
.khr-shell .khr-doc-actions{display:flex;flex:0 0 auto;align-items:center;gap:8px}
.khr-shell .khr-doc-actions form{margin:0}
.khr-shell .khr-doc-btn{display:inline-flex;align-items:center;gap:6px;min-height:36px;margin:0;padding:0 13px;border:1px solid #fde2c3;border-radius:10px;background:#fff;color:#c2410c;font:inherit;font-size:13px;font-weight:750;text-decoration:none;cursor:pointer}
.khr-shell .khr-doc-btn:hover{border-color:#fbc58e;background:#fff7ed}
.khr-shell .khr-doc-btn .dashicons{width:16px;height:16px;font-size:16px}
.khr-shell .khr-doc-btn.is-primary{border-color:var(--khr-brand,#ff8625);background:var(--khr-brand,#ff8625);color:#fff}
.khr-shell .khr-doc-btn.is-primary:hover{background:var(--khr-brand-deep,#ea580c)}
.khr-shell .khr-doc-btn.is-delete{border-color:#f6d4d4;color:#b42318}
.khr-shell .khr-doc-btn.is-delete:hover{background:#fdf0f0}
.khr-shell .khr-doc-empty{display:flex;align-items:center;gap:8px;margin:0;padding:14px;border-radius:14px;background:#f7f7f8;color:#6b737b;font-size:13.5px;font-weight:650}
.khr-shell .khr-doc-empty>.dashicons{color:#a2a9b0} /* only the document icon on the left; the Upload button keeps its white icon */
.khr-shell .khr-doc-upload{display:flex;flex-direction:column;gap:12px;margin:0}
.khr-shell .khr-doc-list{display:flex;flex-direction:column;gap:10px}
.khr-shell .khr-doc-pickform{margin:0}
.khr-shell .khr-doc-pickform input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none} /* the label opens the picker */
.khr-shell .khr-doc-pickform.is-busy .khr-doc-btn{opacity:.6;pointer-events:none}
.khr-shell .khr-doc-empty>.dashicons{flex:0 0 auto}
.khr-shell .khr-doc-empty>span:not(.dashicons){flex:1;min-width:0}
.khr-shell .khr-doc-empty>span small{display:block;margin-top:2px;color:#a2a9b0;font-size:12px;font-weight:600}
.khr-shell .khr-doc-add{margin:0}
.khr-shell .khr-doc-add>summary{width:max-content;list-style:none}
.khr-shell .khr-doc-add>summary::-webkit-details-marker{display:none}
.khr-shell .khr-doc-add[open]>summary{display:none}
.khr-shell .khr-doc-add>form{padding:14px;border:1px solid #f1e6dc;border-radius:16px;background:#fffaf6}
.khr-shell .khr-doc-addgrid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.3fr);gap:12px}
.khr-shell .khr-doc-pick input[type=file]{display:block;width:100%;height:48px;margin:0;padding:6px;border:1px solid #e3e5e8;border-radius:13px;background:#fff;color:#5d666f;font-size:13px;line-height:34px;cursor:pointer} /* a field like Letter / Effective date */
.khr-shell .khr-doc-pick input[type=file]::file-selector-button{height:34px;margin:0 10px 0 0;padding:0 14px;border:0;border-radius:9px;background:var(--khr-brand,#ff8625);color:#fff;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
.khr-shell .khr-doc-pick input[type=file]:hover::file-selector-button{background:var(--khr-brand-deep,#ea580c)}
@media(max-width:760px){.khr-shell .khr-doc-addgrid{grid-template-columns:minmax(0,1fr)}}
.khr-shell .khr-doc-upload+.khr-pc-note{margin-top:0}
.khr-shell .khr-doc-save{display:flex;justify-content:flex-end}
@media(max-width:600px){
  .khr-shell .khr-doc-file{flex-wrap:wrap}
  .khr-shell .khr-doc-meta{flex-basis:calc(100% - 56px)}
  .khr-shell .khr-doc-actions{width:100%}
  .khr-shell .khr-doc-actions>*{flex:1}
  .khr-shell .khr-doc-actions .khr-doc-btn{justify-content:center;width:100%}
  .khr-shell .khr-doc-save .khr-pc-save{width:100%;justify-content:center}
}
/* Edit Employee: when Personal details or Documents is open, the Work / Account form is empty; hide it so it
   does not add a second gap under the tabs (every tab then starts 16px under them). */
.khr-shell .khr-ee>.khr-ee-form:not(:has(>.khr-prof-panel:not([hidden]))){display:none}
/* A card marked hidden (e.g. Leave for Part time on Add / Edit Employee) stays hidden whatever its display. */
.khr-shell .khr-pc-card[hidden]{display:none!important}
/* A KHR form that was refused: the reason on the same page, above the form (app.js). */
.khr-form-error{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:12px 14px;border:1px solid #fecaca;border-radius:14px;background:#fef2f2;color:#991b1b;font-size:14px;line-height:1.45;text-align:left}
.khr-form-error>svg{flex:0 0 20px;width:20px;height:20px;margin-top:1px;color:#dc2626}
.khr-form-error strong{display:block;margin-bottom:2px;color:#7f1d1d;font-weight:800}
.khr-form-toast{position:fixed;z-index:100001;top:calc(12px + env(safe-area-inset-top));left:50%;width:min(440px,calc(100% - 32px));transform:translateX(-50%);box-shadow:0 16px 40px -16px rgba(0,0,0,.35)}
/* My Profile > Account (Admin): username shown but fixed; the password line is full width */
.khr-shell .khr-prof-acc input[readonly]{background:#f1f2f4;color:#7a8188;cursor:default}
.khr-shell .khr-prof-pw label small{color:#98a0a7;font-weight:600}
@media(min-width:900px){.khr-shell .khr-prof-acc label.is-wide{grid-column:1 / -1}}
/* The logo in the sidebar / phone top bar goes to Home (staff) or Dashboard */
.khr-brand-home{display:block;line-height:0;border-radius:6px}
.khr-brand-home:focus-visible{outline:2px solid var(--khr-brand,#ff8625);outline-offset:4px}
