
:root {
  --thr117-navy:#292574;
  --thr117-navy-2:#201c66;
  --thr117-green:#1fb451;
  --thr117-yellow:#f7c92c;
  --thr117-red:#f13e38;
  --thr117-bg:#f5f7fb;
  --thr117-card:#ffffff;
  --thr117-text:#252352;
  --thr117-muted:#77788d;
  --thr117-line:#e5e7f0;
  --thr117-soft:#f0f1fb;
  --thr117-shadow:0 18px 55px rgba(41,37,116,.14);
}
#thr-v117-mount { position:relative; z-index:999990; }
#thr117-app {
  position:fixed; inset:0; z-index:999994; overflow:auto;
  background:var(--thr117-bg); color:var(--thr117-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
#thr117-app * { box-sizing:border-box; }
.thr117-shell { min-height:100vh; max-width:1500px; margin:0 auto; padding:16px; }
.thr117-top {
  position:sticky; top:0; z-index:20; display:flex; gap:16px; align-items:center; justify-content:space-between;
  padding:14px 16px; background:rgba(255,255,255,.94); backdrop-filter:blur(15px);
  border:1px solid var(--thr117-line); border-radius:26px; box-shadow:0 8px 35px rgba(38,37,83,.08);
}
.thr117-brand { display:flex; align-items:center; min-width:0; gap:12px; }
.thr117-brand-logo { width:148px; height:48px; object-fit:contain; object-position:left center; flex:none; filter:drop-shadow(0 5px 12px rgba(36,34,93,.06)); }
.thr117-brand-copy .thr117-trust-word { margin-left:0!important; padding-left:10px; border-left:1px solid #d8daea; letter-spacing:.08em; }
.thr117-brand-copy strong { display:block; font-size:18px; letter-spacing:.015em; white-space:nowrap; color:#06172f; font-weight:850; }
.thr117-brand-copy > span { color:var(--thr117-muted); font-size:12px; }
.thr117-brand-copy .thr117-trust-word { color:var(--thr117-navy); margin-left:8px; padding-left:10px; border-left:1px solid #d8daea; letter-spacing:.08em; font-size:.82em; }
.thr117-top-actions { display:flex; align-items:center; gap:8px; flex:none; }
.thr117-pill, .thr117-btn {
  border:1px solid var(--thr117-line); background:white; color:var(--thr117-text);
  border-radius:999px; min-height:42px; padding:0 15px; font-weight:700; cursor:pointer;
}
.thr117-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;line-height:1.1}
.thr117-btn .thr150-btn-spinner{width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:thrspin .7s linear infinite;flex:0 0 auto}
.thr150-pin-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}
.thr150-pending-list{display:grid;gap:8px;margin-top:10px}.thr150-pending-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--thr117-line)}.thr150-pending-row:first-child{border-top:0;padding-top:0}
@media(max-width:680px){.thr150-pin-row{grid-template-columns:1fr}.thr150-pin-row .thr117-btn{width:100%}.thr150-pending-row{align-items:stretch;flex-direction:column}.thr150-pending-row .thr117-btn{width:100%}}
.thr117-btn.primary { background:var(--thr117-navy); color:white; border-color:var(--thr117-navy); }
.thr117-btn.green { background:var(--thr117-green); color:white; border-color:var(--thr117-green); }
.thr117-btn.danger { color:#a72727; }
.thr117-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#efeffd; color:var(--thr117-navy); font-weight:800; }
.thr117-nav {
  display:flex; gap:8px; overflow:auto; scrollbar-width:none; margin:14px 0 18px; padding:3px;
}
.thr117-nav::-webkit-scrollbar { display:none; }
.thr117-nav button {
  flex:none; border:1px solid var(--thr117-line); background:white; color:var(--thr117-text);
  padding:11px 16px; border-radius:999px; font-weight:750; cursor:pointer;
}
.thr117-nav button.active { background:var(--thr117-navy); color:white; border-color:var(--thr117-navy); }
.thr117-main { display:block; }
.thr117-page-head { display:flex; align-items:end; justify-content:space-between; gap:18px; padding:14px 2px 18px; }
.thr117-eyebrow { color:#2385a0; font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.thr117-page-head h1 { margin:4px 0 4px; font-size:clamp(34px,5vw,58px); line-height:1; letter-spacing:-.05em; color:var(--thr117-navy); }
.thr117-page-head p { margin:0; color:var(--thr117-muted); max-width:780px; }
.thr117-grid { display:grid; gap:14px; }
.thr117-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
.thr117-card {
  background:var(--thr117-card); border:1px solid var(--thr117-line); border-radius:24px;
  padding:18px; box-shadow:0 8px 28px rgba(38,37,83,.045);
}
.thr117-kpi label { display:block; color:var(--thr117-muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.thr117-kpi strong { display:block; margin-top:8px; color:var(--thr117-navy); font-size:30px; letter-spacing:-.04em; }
.thr117-kpi small { color:var(--thr117-muted); }
.thr117-section { margin-top:14px; }
.thr117-section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.thr117-section-title h2 { margin:0; font-size:19px; color:var(--thr117-navy); }
.thr117-table-wrap { overflow:auto; border:1px solid var(--thr117-line); border-radius:18px; }
.thr117-table { width:100%; border-collapse:collapse; min-width:760px; background:white; }
.thr117-table th { padding:11px 13px; text-align:left; color:var(--thr117-muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; background:#fafaff; border-bottom:1px solid var(--thr117-line); }
.thr117-table td { padding:12px 13px; border-bottom:1px solid #eff0f5; font-size:13px; vertical-align:middle; }
.thr117-table tr:last-child td { border-bottom:0; }
.thr117-name { font-weight:800; color:var(--thr117-text); }
.thr117-sub { color:var(--thr117-muted); font-size:12px; margin-top:2px; }
.thr117-tag { display:inline-flex; align-items:center; min-height:26px; padding:0 9px; border-radius:999px; background:#f1f2f8; color:#55566a; font-size:11px; font-weight:800; }
.thr117-tag.ok { background:#e7f7ed; color:#18733a; }
.thr117-tag.warn { background:#fff5d8; color:#88670e; }
.thr117-tag.bad { background:#fdeaea; color:#9d3232; }
.thr117-toolbar { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.thr117-input, .thr117-select {
  border:1px solid var(--thr117-line); background:white; color:var(--thr117-text);
  border-radius:14px; padding:10px 12px; min-height:42px; outline:none;
}
.thr117-input:focus, .thr117-select:focus { border-color:#aaa9d4; box-shadow:0 0 0 3px rgba(41,37,116,.08); }
.thr117-input.search { min-width:280px; }
.thr117-two { grid-template-columns:1.35fr .65fr; }
.thr117-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.thr117-list { display:grid; gap:9px; }
.thr117-list-item { display:flex; justify-content:space-between; gap:14px; align-items:center; padding:12px 0; border-bottom:1px solid #eff0f5; }
.thr117-list-item:last-child { border-bottom:0; }
.thr117-empty { padding:36px 16px; text-align:center; color:var(--thr117-muted); }
.thr117-loading { position:fixed; inset:0; z-index:1000003; display:grid; place-items:center; background:rgba(245,247,251,.88); backdrop-filter:blur(8px); }
.thr117-spinner { width:42px;height:42px;border-radius:50%;border:4px solid #dddff0;border-top-color:var(--thr117-navy);animation:thrspin .8s linear infinite; }
@keyframes thrspin { to{transform:rotate(360deg)} }
.thr117-toast { position:fixed; right:18px; bottom:76px; z-index:1000004; max-width:360px; padding:13px 15px; border-radius:16px; background:#202052; color:white; box-shadow:var(--thr117-shadow); font-weight:650; }
.thr117-modal { position:fixed; inset:0; z-index:1000002; display:grid; place-items:center; padding:18px; background:rgba(27,25,66,.38); backdrop-filter:blur(8px); }
.thr117-modal-card { width:min(520px,100%); background:white; border-radius:26px; padding:22px; box-shadow:var(--thr117-shadow); }
.thr117-modal-card h3 { margin:0 0 7px; color:var(--thr117-navy); font-size:24px; }
.thr117-modal-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.thr117-statline { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; padding:9px 0; border-bottom:1px solid #eff0f5; }
.thr117-statline:last-child { border-bottom:0; }
.thr117-progress { height:9px; background:#ededf5; border-radius:999px; overflow:hidden; }
.thr117-progress > i { display:block; height:100%; border-radius:999px; background:var(--thr117-green); }
.thr117-callout { border:1px solid #e6e1c9; background:#fffdf2; border-radius:20px; padding:15px; }
.thr117-error { background:#fff0f0; border:1px solid #f5caca; color:#902e2e; border-radius:18px; padding:14px; }
.thr117-mobile-cards { display:none; }

@media (max-width: 980px) {
  .thr117-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .thr117-two, .thr117-three { grid-template-columns:1fr; }
}
@media (max-width: 680px) {
  .thr117-shell { padding:8px; padding-bottom:84px; }
  .thr117-top { border-radius:20px; padding:12px; }
  .thr117-brand-copy strong { font-size:15px; }
  .thr117-brand-copy span { display:none; }
  .thr117-pill { display:none; }
  .thr117-page-head { align-items:flex-start; flex-direction:column; padding:8px 5px 15px; }
  .thr117-page-head h1 { font-size:38px; }
  .thr117-kpis { grid-template-columns:1fr 1fr; gap:9px; }
  .thr117-card { padding:14px; border-radius:20px; }
  .thr117-kpi strong { font-size:24px; }
  .thr117-nav {
    position:fixed; left:8px; right:8px; bottom:7px; z-index:30; margin:0;
    padding:7px; background:rgba(255,255,255,.96); border:1px solid var(--thr117-line); border-radius:22px;
    box-shadow:0 10px 35px rgba(38,37,83,.18);
  }
  .thr117-nav button { flex:1; padding:10px 8px; min-width:76px; font-size:11px; }
  .thr117-nav button span { display:none; }
  .thr117-input.search { min-width:0; width:100%; }
  .thr117-toolbar { width:100%; }
  .thr117-toolbar > * { flex:1; }
  .thr117-table-wrap { display:none; }
  .thr117-mobile-cards { display:grid; gap:9px; }
  .thr117-mobile-row { background:white; border:1px solid var(--thr117-line); border-radius:17px; padding:13px; }
  .thr117-mobile-row .row-top { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
  .thr117-mobile-row .row-meta { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px; color:var(--thr117-muted); font-size:12px; }
}

.thr117-modal-wide { width:min(860px,100%); max-height:min(88vh,900px); overflow:auto; }
.thr117-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
.thr117-form-grid label, .thr117-field-label { display:grid; gap:7px; font-size:12px; font-weight:800; color:var(--thr117-text); }
.thr117-field-label { margin-top:14px; }
.thr117-form-grid .thr117-input, .thr117-form-grid .thr117-select, .thr117-field-label .thr117-input, .thr117-field-label .thr117-select { width:100%; }
.thr117-btn:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width:680px){ .thr117-form-grid { grid-template-columns:1fr; } .thr117-modal-wide { max-height:92vh; } }

.thr117-form-section { margin-top:18px; padding:16px; border:1px solid var(--thr117-line); border-radius:20px; background:#fcfcff; }
.thr117-form-section:first-of-type { margin-top:16px; }
.thr117-check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:12px; }
.thr117-check { display:flex; gap:10px; align-items:flex-start; padding:11px 12px; border:1px solid var(--thr117-line); border-radius:15px; background:white; cursor:pointer; }
.thr117-check input { margin-top:3px; }
.thr117-check span { display:grid; gap:2px; font-size:12px; color:var(--thr117-text); }
.thr117-check small { color:var(--thr117-muted); line-height:1.35; }
.thr117-component-list { display:grid; gap:12px; }
@media (max-width:680px){ .thr117-check-grid { grid-template-columns:1fr; } }

/* TRUST v123 roadmap modules */
.thr117-report-card { text-align:left; cursor:pointer; font:inherit; width:100%; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.thr117-report-card:hover { transform:translateY(-2px); border-color:#c8c7e7; box-shadow:0 12px 34px rgba(38,37,83,.08); }
.thr117-report-card.selected { border-color:#8f8bc8; box-shadow:0 0 0 3px rgba(41,37,116,.07); }
.thr117-chip-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.thr117-card.inner { box-shadow:none; background:#fcfcff; }
.thr117-textarea { border:1px solid var(--thr117-line); background:white; color:var(--thr117-text); border-radius:14px; padding:10px 12px; width:100%; outline:none; resize:vertical; font:inherit; }
.thr117-textarea:focus { border-color:#aaa9d4; box-shadow:0 0 0 3px rgba(41,37,116,.08); }
.thr117-textarea.code { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12px; }
.thr117-field-span { grid-column:1/-1; }
.thr117-btn.danger { border-color:#efc5c5; background:#fff4f4; color:#a32e2e; }
.thr117-btn.danger:hover { background:#ffeaea; }
@media (max-width:680px){
  .thr117-field-span { grid-column:auto; }
  .thr117-chip-row .thr117-btn { width:100%; }
  .thr117-nav { overflow-x:auto; justify-content:flex-start; }
  .thr117-nav button { flex:0 0 64px; min-width:64px; }
}


/* TRUST v123.2 full-theme brand restoration + manager attendance editor */
#thr117-app {
  background:
    radial-gradient(circle at 8% -8%, rgba(247,201,44,.12), transparent 25rem),
    radial-gradient(circle at 98% 2%, rgba(31,180,81,.08), transparent 28rem),
    linear-gradient(180deg,#f8f9fd 0%,#f3f6fb 48%,#eef3f8 100%);
}
.thr117-shell { max-width:1420px; padding:18px 20px 30px; }
.thr117-top {
  border-radius:24px;
  border-color:#e2e5ef;
  box-shadow:0 10px 32px rgba(24,30,79,.07);
}
.thr117-nav { gap:9px; margin-top:16px; }
.thr117-nav button {
  min-height:44px;
  background:rgba(255,255,255,.9);
  box-shadow:0 2px 7px rgba(35,34,87,.025);
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s ease;
}
.thr117-nav button:hover { transform:translateY(-1px); border-color:#cbcce0; box-shadow:0 8px 18px rgba(35,34,87,.06); }
.thr117-nav button.active { background:linear-gradient(135deg,var(--thr117-navy),#37318b); box-shadow:0 8px 18px rgba(41,37,116,.18); }
.thr117-page-head { padding-top:18px; }
.thr117-page-head h1 { color:#282473; }
.thr117-card { border-color:#e3e6ef; box-shadow:0 10px 26px rgba(32,37,77,.035); }
.thr117-kpi { position:relative; overflow:hidden; }
.thr117-kpi:after { content:""; position:absolute; width:72px; height:72px; right:-30px; top:-30px; border-radius:50%; background:rgba(41,37,116,.035); }
.thr117-btn.compact { min-height:34px; padding:0 11px; font-size:12px; }
.thr117-btn.primary { box-shadow:0 7px 16px rgba(41,37,116,.13); }
.attendance-editor .thr117-form-section { background:linear-gradient(180deg,#fcfcff,#f8f9fd); }
.attendance-editor #ae-punch-summary { padding:10px 12px; background:white; border:1px solid var(--thr117-line); border-radius:13px; min-height:38px; }
.attendance-editor textarea { min-height:78px; }
@media(max-width:680px){
  .thr117-shell { padding:8px 8px 88px; }
  .thr117-brand-logo { width:38px; height:38px; }
  .thr117-brand-copy .thr117-trust-word { margin-left:5px; padding-left:7px; }
  .attendance-editor .thr117-modal-actions { position:sticky; bottom:-22px; background:white; padding-top:10px; }
}

.thr117-modal, .thr117-toast, .thr117-loading {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.thr117-modal button, .thr117-modal input, .thr117-modal select, .thr117-modal textarea { font:inherit; }

/* v126 native full-theme auth shell */
.thr117-auth-screen{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 12% 10%,rgba(50,207,104,.10),transparent 28%),radial-gradient(circle at 88% 12%,rgba(41,37,116,.10),transparent 34%),#f5f7fb;color:var(--thr117-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.thr117-auth-card{width:min(470px,100%);background:#fff;border:1px solid var(--thr117-line);border-radius:30px;padding:30px;box-shadow:0 24px 70px rgba(41,37,116,.13)}
.thr117-auth-brand{display:flex;align-items:center;gap:16px;margin-bottom:28px;padding-bottom:22px;border-bottom:1px solid var(--thr117-line)}
.thr117-auth-brand img{width:190px;max-width:55%;height:auto;display:block}.thr117-auth-brand div{display:grid;gap:3px}.thr117-auth-brand b{font-size:20px;color:var(--thr117-navy);letter-spacing:.08em}.thr117-auth-brand span{font-size:12px;color:var(--thr117-muted)}
.thr117-auth-card h1{font-size:36px;line-height:1.03;letter-spacing:-.045em;color:var(--thr117-navy);margin:7px 0 9px}.thr117-auth-card>p{margin:0 0 18px;color:var(--thr117-muted)}
.thr117-auth-form{display:grid;gap:14px}.thr117-auth-form label{display:grid;gap:7px;font-size:12px;font-weight:800;color:var(--thr117-text)}.thr117-auth-form .thr117-btn{margin-top:3px;width:100%;justify-content:center}
.thr117-auth-note{margin-top:18px;background:#f7f8fc;border:1px solid var(--thr117-line);border-radius:16px;padding:12px 14px;color:var(--thr117-muted);font-size:12px;line-height:1.5}
.thr117-link-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:680px){.thr117-brand-logo{width:112px;height:38px}.thr117-brand-copy{display:none}.thr117-top-actions .thr117-link-btn,.thr117-top-actions [data-action="signout"]{display:none}.thr117-auth-card{padding:22px;border-radius:24px}.thr117-auth-brand img{width:170px}.thr117-auth-card h1{font-size:31px}}

/* v126 grouped hover navigation — restored Teras HR interaction pattern */
.thr117-nav{display:flex;gap:8px;overflow:visible;margin:14px 0 18px;padding:3px;align-items:center;position:relative;z-index:25}
.thr117-nav-direct,.thr117-nav-main{appearance:none;border:1px solid var(--thr117-line);background:#fff;color:var(--thr117-text);padding:11px 16px;border-radius:999px;font-weight:800;cursor:pointer;min-height:43px;white-space:nowrap}
.thr117-nav-direct.active,.thr117-nav-group.active>.thr117-nav-main{background:var(--thr117-navy);color:#fff;border-color:var(--thr117-navy)}
.thr117-nav-group{position:relative;flex:none}.thr117-nav-caret{font-size:11px;margin-left:5px;opacity:.7}
.thr117-nav-drop{position:absolute;top:calc(100% + 9px);left:0;width:310px;padding:8px;background:#fff;border:1px solid var(--thr117-line);border-radius:22px;box-shadow:0 24px 60px rgba(28,31,70,.16);opacity:0;visibility:hidden;transform:translateY(-6px);pointer-events:none;transition:.14s ease;z-index:80}
.thr117-nav-drop:before{content:"";position:absolute;left:0;right:0;top:-10px;height:11px}.thr117-nav-drop.right{left:auto;right:0}
.thr117-nav-group:hover>.thr117-nav-drop,.thr117-nav-group:focus-within>.thr117-nav-drop{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.thr117-nav-drop-title{padding:8px 10px 6px;color:#8a8da3;font-size:10px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.thr117-nav-drop button{width:100%;border:0;background:transparent;color:var(--thr117-text);border-radius:15px;padding:11px 12px;text-align:left;display:grid;gap:3px;cursor:pointer;min-height:0}
.thr117-nav-drop button:hover,.thr117-nav-drop button.active{background:#f2f2fb;color:var(--thr117-navy)}.thr117-nav-drop button b{font-size:13px}.thr117-nav-drop button span{font-size:11px;color:var(--thr117-muted);font-weight:600;line-height:1.35}
@media(max-width:760px){.thr117-nav{position:fixed;left:8px;right:8px;bottom:7px;z-index:30;margin:0;padding:7px;background:rgba(255,255,255,.97);border:1px solid var(--thr117-line);border-radius:22px;box-shadow:0 10px 35px rgba(38,37,83,.18);overflow-x:auto}.thr117-nav-direct,.thr117-nav-main{padding:9px 12px;min-height:38px;font-size:11px}.thr117-nav-drop{position:fixed;left:10px!important;right:10px!important;bottom:62px;top:auto;width:auto;max-height:55vh;overflow:auto}.thr117-nav-group:hover>.thr117-nav-drop{opacity:0;visibility:hidden;pointer-events:none}.thr117-nav-group:focus-within>.thr117-nav-drop{opacity:1;visibility:visible;pointer-events:auto}}


/* v126.2 — keep brand row and grouped navigation as one non-overlapping sticky header */
.thr117-header-stack{
  position:sticky;
  top:0;
  z-index:100;
  padding-top:2px;
  background:linear-gradient(180deg,rgba(245,247,251,.98) 0%,rgba(245,247,251,.92) 82%,rgba(245,247,251,0) 100%);
  backdrop-filter:blur(10px);
}
.thr117-header-stack .thr117-top{
  position:relative;
  top:auto;
  z-index:2;
}
.thr117-header-stack .thr117-nav{
  position:relative;
  z-index:3;
  margin:10px 0 16px;
}
@media(max-width:760px){
  .thr117-header-stack{position:sticky;top:0;padding-top:0;background:transparent;backdrop-filter:none}
  .thr117-header-stack .thr117-top{position:relative;z-index:20}
  .thr117-header-stack .thr117-nav{position:fixed;left:8px;right:8px;bottom:7px;top:auto;z-index:30;margin:0}
}


/* TRUST v127 — multi-client switcher + audit Master Data */
.thr127-company-switch{display:flex;align-items:center;gap:8px;padding:5px 8px 5px 12px;border:1px solid #e6e8f0;background:#fff;border-radius:14px;min-width:260px}
.thr127-company-switch>span{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#777b8c}.thr127-company-switch .thr117-select{border:0!important;padding:7px 26px 7px 6px!important;min-width:190px;background-color:transparent!important;font-weight:800;color:#292574}
.thr127-company-static{display:flex;flex-direction:column;padding:7px 12px;border:1px solid #e6e8f0;background:#fff;border-radius:14px}.thr127-company-static span{font-size:10px;font-weight:900;color:#797d8c}.thr127-company-static b{font-size:12px;color:#292574;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thr117-warning-banner{display:flex;gap:12px;align-items:center;margin:0 0 16px;padding:13px 16px;border:1px solid #f4cf73;background:#fff8df;border-radius:14px;color:#775200}.thr117-warning-banner span{font-size:12px}
.thr127-master-scroll{max-height:68vh}.thr127-master-table{min-width:1850px}.thr127-master-table th{position:sticky;top:0;z-index:2;background:#f7f8fb}.thr127-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;letter-spacing:.01em}
.thr127-client-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.thr127-client-card{padding:20px}.thr127-client-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.thr127-client-head h2{margin:4px 0 5px;color:#191c2b}.thr127-client-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.thr127-client-stats>div{background:#f7f8fb;border:1px solid #eceef4;border-radius:12px;padding:11px}.thr127-client-stats span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#7a7e8c;font-weight:800}.thr127-client-stats b{display:block;margin-top:4px;font-size:13px;color:#292574;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thr127-client-actions{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
@media(max-width:1100px){.thr127-company-switch{min-width:210px}.thr127-company-switch .thr117-select{min-width:150px}.thr127-client-grid{grid-template-columns:1fr}}
@media(max-width:760px){.thr127-company-switch{width:100%;min-width:0}.thr127-company-switch .thr117-select{width:100%;min-width:0}.thr127-client-stats{grid-template-columns:1fr 1fr}.thr127-master-table{min-width:1500px}}


/* v127.1 — nav collision + horizontal-scroll cleanup */
html,body{max-width:100%;overflow-x:hidden}
#thr117-app{overflow-x:hidden;overflow-y:auto}
.thr117-shell,.thr117-header-stack,.thr117-top,.thr117-brand,.thr117-top-actions,.thr117-nav{min-width:0;max-width:100%}
@media (min-width:761px){
  .thr117-header-stack{display:grid;grid-template-rows:auto auto;gap:10px}
  .thr117-header-stack .thr117-top{position:relative!important;top:auto!important;margin:0;align-items:center;flex-wrap:wrap}
  .thr117-top-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:100%;margin-left:auto}
  .thr117-header-stack .thr117-nav{
    position:relative!important;inset:auto!important;
    display:flex;flex-wrap:wrap;align-items:center;align-content:flex-start;
    gap:9px;overflow:visible!important;overscroll-behavior-x:none;
    margin:0 0 16px;padding:3px;white-space:normal;
  }
  .thr117-nav-direct,.thr117-nav-main{flex:0 0 auto;max-width:100%}
  .thr117-nav-group{flex:0 0 auto;min-width:0}
}
.thr117-nav{scrollbar-width:none;-ms-overflow-style:none}
.thr117-nav::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
@media (max-width:1180px) and (min-width:761px){
  .thr117-brand-logo{width:132px}
  .thr127-company-switch{min-width:220px}
  .thr127-company-switch .thr117-select{min-width:145px}
  .thr117-top-actions .thr117-btn{min-height:38px;padding:0 12px}
}
@media (max-width:760px){
  .thr117-nav{scrollbar-width:none!important;-ms-overflow-style:none!important}
  .thr117-nav::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
}


/* v127.2 — pilot UAT UX hardening */
.thr117-page-head{min-width:0;flex-wrap:wrap}
.thr117-page-head>div:first-child{min-width:260px;flex:1 1 440px}
.thr117-page-head>.thr117-toolbar{flex:1 1 560px;justify-content:flex-end;min-width:0;max-width:100%}
.thr117-page-head>.thr117-toolbar>*{min-width:0}
.thr127-master-search{flex:2 1 290px;min-width:220px!important}
.thr127-master-filter{flex:1 1 150px;max-width:210px}

.thr117-modal{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.thr117-modal-card{max-width:calc(100vw - 36px);min-width:0;overflow-x:hidden}
.thr117-modal-wide{width:min(920px,calc(100vw - 36px));max-width:920px;max-height:min(90vh,920px);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
.thr117-form-grid{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.thr117-form-grid label,.thr117-field-label{min-width:0}
.thr117-form-grid .thr117-input,.thr117-form-grid .thr117-select,.thr117-field-label .thr117-input,.thr117-field-label .thr117-select{min-width:0;max-width:100%;width:100%}
.thr117-modal-actions{flex-wrap:wrap;position:sticky;bottom:-22px;background:linear-gradient(to bottom,rgba(255,255,255,.78),#fff 24%);padding-top:14px;padding-bottom:2px;z-index:3}
.thr127-client-modal-card{overscroll-behavior:contain}

.thr127-master-scroll{max-height:64vh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}
.thr127-master-table{min-width:1680px;table-layout:auto}
.thr127-master-table th,.thr127-master-table td{padding:9px 10px}
.thr127-master-table td{font-size:12px;line-height:1.35}
.thr127-master-table th:nth-child(1),.thr127-master-table td:nth-child(1){position:sticky;left:0;min-width:92px;max-width:92px;background:#fff;z-index:3}
.thr127-master-table th:nth-child(2),.thr127-master-table td:nth-child(2){position:sticky;left:92px;min-width:220px;background:#fff;z-index:3;box-shadow:8px 0 12px -12px rgba(32,28,102,.45)}
.thr127-master-table thead th:nth-child(1),.thr127-master-table thead th:nth-child(2){background:#f7f8fb;z-index:5}
.thr127-table-empty{display:grid;gap:5px;place-items:center;min-height:160px;text-align:center;color:var(--thr117-muted)}
.thr127-table-empty b,.thr127-empty-card b{color:var(--thr117-text)}
.thr127-table-empty span,.thr127-empty-card span{font-size:12px}
.thr127-empty-card{display:grid;gap:5px}

@media(max-width:980px){
  .thr117-page-head>.thr117-toolbar{justify-content:flex-start;flex-basis:100%}
  .thr127-master-filter{max-width:none}
}
@media(max-width:680px){
  .thr117-modal{padding:10px;place-items:start center}
  .thr117-modal-card,.thr117-modal-wide{max-width:calc(100vw - 20px);width:calc(100vw - 20px);border-radius:20px;padding:17px;max-height:calc(100vh - 20px)}
  .thr117-form-grid{grid-template-columns:1fr}
  .thr117-modal-actions>*{flex:1 1 120px}
  .thr117-page-head>div:first-child{min-width:0;flex-basis:100%}
  .thr117-page-head>.thr117-toolbar{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .thr117-page-head>.thr117-toolbar .thr127-master-search{grid-column:1/-1;min-width:0!important;width:100%}
  .thr117-page-head>.thr117-toolbar .thr127-master-filter{width:100%;max-width:none}
}
.thr117-modal,.thr117-modal *{box-sizing:border-box}


/* v129.5 Universal Eligibility */
.thr130-eligibility{margin:18px 0;padding:18px;border:1px solid #dfe7f1;border-radius:18px;background:#f9fbfd;display:grid;gap:14px}
.thr130-elig-rules{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.thr130-elig-rules.is-hidden{display:none}
.thr130-elig-group{border:1px solid #e2e8f0;background:#fff;border-radius:14px;padding:13px;display:grid;gap:7px;align-content:start}
.thr130-elig-group.full{grid-column:1/-1}
.thr130-elig-group>b{font-size:13px;color:#102d51}
.thr130-elig-group>small{font-size:11px;color:#718198;line-height:1.4}
.thr130-choice-grid{display:flex;flex-wrap:wrap;gap:7px}
.thr130-choice{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid #dbe4ef;border-radius:999px;background:#fff;font-size:11px;color:#233a58;cursor:pointer}
.thr130-choice:hover{border-color:#aebfd3;background:#f7fafc}
.thr130-choice input{width:14px;height:14px;margin:0;accent-color:#173a68}
.thr130-choice:has(input:checked){border-color:#8ab8a5;background:#eef9f4;color:#176c50;font-weight:750}
.thr130-employee-list{max-height:210px;overflow:auto;padding:4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;border-radius:10px}
.thr130-employee-list .thr130-choice{border-radius:10px;justify-content:flex-start}
.thr130-help{margin:0!important}
.thr130-actions{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:760px){.thr130-elig-rules{grid-template-columns:1fr}.thr130-elig-group.full{grid-column:auto}.thr130-employee-list{grid-template-columns:1fr}}

/* v130.8 modal stack hardening: modal < loading < toast */
.thr117-modal{z-index:1000002!important}
.thr117-loading{z-index:1000003!important}
.thr117-toast{z-index:1000004!important}

/* v130.9 audit release hardening */
.thr1309-row-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.thr1309-mobile-actions{display:grid;gap:8px;margin-top:10px}
.thr1309-profile-summary{margin:14px 0}
.thr1309-stale-warning{margin:14px 0}
.thr1302-calc-employee summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center}
.thr1302-calc-employee summary>div:first-child{display:grid;gap:4px;min-width:0}
.thr1302-calc-employee summary small{display:block;color:var(--thr117-muted)}
.thr1302-summary-money{display:grid;grid-template-columns:auto auto;gap:18px;align-items:center;text-align:right;white-space:nowrap}
.thr1302-summary-money span,.thr1302-summary-money b{display:block}
.thr1302-formula{display:grid;gap:0;border:1px solid #e5e8f2;border-radius:16px;overflow:hidden;background:#fff}
.thr1302-formula-row{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(120px,.45fr) minmax(220px,1.35fr);gap:18px;align-items:center;padding:12px 14px;border-bottom:1px solid #edf0f6;line-height:1.35}
.thr1302-formula-row:last-child{border-bottom:0}
.thr1302-formula-row>span{font-weight:750;color:var(--thr117-text)}
.thr1302-formula-row>b{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.thr1302-formula-row>small{display:block;color:var(--thr117-muted);min-width:0}
.thr1302-formula-row.total,.thr1302-formula-row.net{background:#f7f8ff}
.thr1302-formula-row.info{background:#f8fbff}
.thr1302-formula-row.info>b{color:var(--thr117-muted)}
@media(max-width:760px){
  .thr1302-calc-employee summary{grid-template-columns:1fr;gap:9px}
  .thr1302-summary-money{grid-template-columns:1fr 1fr;text-align:left;gap:10px}
  .thr1302-formula-row{grid-template-columns:1fr auto;gap:6px 12px;padding:12px}
  .thr1302-formula-row>small{grid-column:1/-1}
}

/* v131.3 payroll summary reconciliation — Juken-style employee + employer contribution table */
.thr1314-payroll-summary{margin-top:14px;padding:16px}
.thr1314-payroll-summary .thr117-section-title{align-items:center;gap:12px;flex-wrap:wrap}
.thr1314-summary-scroll{margin-top:12px;overflow:auto;max-width:100%;border:1px solid var(--thr117-line);border-radius:15px;scrollbar-gutter:stable both-edges}
.thr1314-summary-table{min-width:2260px;margin:0;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.thr1314-summary-table th,.thr1314-summary-table td{padding:9px 10px;border-right:1px solid #e8eaf1;border-bottom:1px solid #e8eaf1;white-space:nowrap;text-align:right}
.thr1314-summary-table th{background:#f7f8fb;color:#4a4d62;font-size:10px;letter-spacing:.02em;text-transform:none;vertical-align:middle}
.thr1314-summary-table thead tr:first-child th{position:sticky;top:0;z-index:5}
.thr1314-summary-table thead tr:nth-child(2) th{position:sticky;top:43px;z-index:5}
.thr1314-summary-table thead tr:first-child th:nth-child(1),.thr1314-summary-table tbody td:nth-child(1){text-align:center;position:sticky;left:0;z-index:3;background:#fff;min-width:48px}
.thr1314-summary-table thead tr:first-child th:nth-child(2),.thr1314-summary-table tbody td:nth-child(2){text-align:left;position:sticky;left:48px;z-index:3;background:#fff;min-width:105px}
.thr1314-summary-table thead tr:first-child th:nth-child(3),.thr1314-summary-table tbody td:nth-child(3){text-align:left;position:sticky;left:153px;z-index:3;background:#fff;min-width:255px;box-shadow:8px 0 12px -12px rgba(32,28,102,.45)}
.thr1314-summary-table thead tr:first-child th:nth-child(1),.thr1314-summary-table thead tr:first-child th:nth-child(2),.thr1314-summary-table thead tr:first-child th:nth-child(3){background:#f7f8fb;z-index:7}
.thr1314-summary-table .thr1314-group-ee{background:#fff8e8;color:#755314;text-align:center;font-weight:900}
.thr1314-summary-table .thr1314-group-er{background:#eef8f5;color:#17644e;text-align:center;font-weight:900}
.thr1314-summary-table tbody tr:hover td{background:#fbfbfe}
.thr1314-summary-table tbody tr:hover td:nth-child(1),.thr1314-summary-table tbody tr:hover td:nth-child(2),.thr1314-summary-table tbody tr:hover td:nth-child(3){background:#fbfbfe}
.thr1314-summary-total td{font-weight:900;background:#f3f4fa!important;border-top:2px solid #cfd3e2;color:var(--thr117-navy)}
.thr1314-summary-total td:first-child{text-align:left!important}
.thr1314-summary-notes{margin-top:10px;padding:10px 12px;border-radius:12px;background:#f8fafc;border:1px solid #e5e9f0;color:var(--thr117-muted);font-size:11px;line-height:1.5}
.thr1314-summary-notes b{color:var(--thr117-text)}
@media(max-width:680px){.thr1314-payroll-summary{padding:12px}.thr1314-summary-table{min-width:2080px}.thr1314-summary-table th,.thr1314-summary-table td{padding:8px;font-size:10px}.thr1314-summary-table thead tr:first-child th:nth-child(3),.thr1314-summary-table tbody td:nth-child(3){min-width:220px}}

/* v139 — tenant-scoped live multi-user sync */
.thr139-live-sync{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 11px;border:1px solid var(--thr117-line);border-radius:999px;background:#fff;color:var(--thr117-muted);font-size:11px;font-weight:850;white-space:nowrap}
.thr139-live-sync i{width:8px;height:8px;border-radius:50%;background:#22a56b;box-shadow:0 0 0 4px rgba(34,165,107,.09)}
.thr139-live-sync[data-state="syncing"] i,.thr139-live-sync[data-state="connecting"] i{background:#d99016;animation:thr139Pulse 1s infinite;box-shadow:0 0 0 4px rgba(217,144,22,.09)}
.thr139-live-sync[data-state="error"] i,.thr139-live-sync[data-state="offline"] i{background:#d9485f;box-shadow:0 0 0 4px rgba(217,72,95,.09)}
.thr139-live-recalc{margin:14px 0;border-color:#bde8d3;background:#f1fbf6}
@keyframes thr139Pulse{50%{opacity:.35}}
@media(max-width:760px){.thr139-live-sync{height:34px;padding:0 9px}.thr139-live-sync b{display:none}}

/* v139.1 — full-screen Payroll → View Calculation workspace */
.thr139-payroll-calc-shell{
  padding:10px;
  place-items:stretch;
  overflow:hidden;
}
.thr139-payroll-calc-shell .thr1302-calc-modal{
  width:100%;
  max-width:none;
  height:calc(100dvh - 20px);
  max-height:none;
  margin:0;
  padding:20px 22px 16px;
  border-radius:22px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.thr139-payroll-calc-shell .thr1302-calc-modal>.thr142-calc-header{
  position:sticky;
  top:-20px;
  z-index:30;
  margin:-4px -4px 8px;
  padding:14px 4px 12px;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(229,232,242,.9);
}
.thr139-payroll-calc-shell .thr1314-payroll-summary{
  width:100%;
}
.thr139-payroll-calc-shell .thr1314-summary-scroll{
  width:100%;
  max-width:none;
  max-height:min(68vh,760px);
}
.thr139-payroll-calc-shell .thr117-modal-actions{
  bottom:-16px;
  margin-left:-22px;
  margin-right:-22px;
  padding:14px 22px 8px;
  border-top:1px solid rgba(229,232,242,.9);
  box-shadow:0 -14px 26px rgba(31,29,76,.04);
}
@media(max-width:760px){
  .thr139-payroll-calc-shell{padding:0;}
  .thr139-payroll-calc-shell .thr1302-calc-modal{
    width:100vw;
    max-width:100vw;
    height:100dvh;
    max-height:100dvh;
    border-radius:0;
    padding:15px 12px 10px;
  }
  .thr139-payroll-calc-shell .thr1302-calc-modal>.thr142-calc-header{
    top:-15px;
    padding-top:12px;
  }
  .thr139-payroll-calc-shell .thr117-modal-actions{
    bottom:-10px;
    margin-left:-12px;
    margin-right:-12px;
    padding:12px 12px 8px;
  }
}


/* v139.2 — audit-friendly payroll summary: actual worked days + itemized allowances + expandable calculations */
.thr1314-summary-table .thr1392-group-allow{background:#f1f4ff;color:#34358a;text-align:center;font-weight:900}
.thr1314-summary-table th small{font-size:9px;color:#83869a;font-weight:750}
.thr1392-summary-main>td:nth-child(4){text-align:center;font-weight:850;background:#fafbff}
.thr1392-summary-detail-row>td{position:static!important;left:auto!important;min-width:0!important;width:auto!important;text-align:left!important;white-space:normal!important;padding:0!important;background:#fbfcff!important;box-shadow:none!important;border-right:0!important}
.thr1392-summary-detail-row:hover>td{background:#fbfcff!important}
.thr1392-row-details{display:block;border-bottom:1px solid #e6e8f0}
.thr1392-row-details>summary{display:flex;align-items:center;gap:14px;padding:9px 14px 9px 48px;cursor:pointer;color:#373968;font-weight:900;background:#fbfcff;list-style:none}
.thr1392-row-details>summary::-webkit-details-marker{display:none}
.thr1392-row-details>summary:before{content:'＋';width:22px;height:22px;display:grid;place-items:center;border:1px solid #d8dced;border-radius:7px;background:#fff;color:#55579a;font-size:13px;margin-left:-34px}
.thr1392-row-details[open]>summary:before{content:'−'}
.thr1392-row-details>summary small{font-weight:700;color:var(--thr117-muted);font-size:10px}
.thr1392-calc-grid{display:grid;grid-template-columns:repeat(2,minmax(360px,1fr));gap:12px;padding:12px 14px 16px 48px;background:#fff}
.thr1392-calc-grid section{min-width:0;border:1px solid #e4e7f0;border-radius:14px;padding:12px;background:#fff}
.thr1392-calc-grid h4{margin:0 0 8px;color:var(--thr117-navy);font-size:12px}
.thr1392-calc-line{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(180px,1.2fr);gap:4px 12px;padding:8px 0;border-bottom:1px solid #eef0f5;align-items:start}
.thr1392-calc-line:last-child{border-bottom:0}
.thr1392-calc-line>span{font-weight:800;color:#404258}
.thr1392-calc-line>b{font-variant-numeric:tabular-nums;text-align:right;white-space:normal;color:#11131d}
.thr1392-calc-line>small{grid-column:1/-1;color:var(--thr117-muted);line-height:1.45}
.thr1392-calc-line.total{background:#f7f8ff;margin:4px -6px -4px;padding:9px 6px;border-radius:9px;border-bottom:0}
.thr1392-ot-summary>div{display:grid;grid-template-columns:150px 1fr;gap:10px;padding:7px 0;border-bottom:1px solid #eef0f5}
.thr1392-ot-summary>div:last-of-type{border-bottom:0}
.thr1392-ot-summary b{color:#404258}.thr1392-ot-summary span{color:#64677c;line-height:1.45}
.thr1392-daily-ot{margin-top:8px;border-top:1px dashed #d9ddea;padding-top:8px}.thr1392-daily-ot>summary{cursor:pointer;font-weight:850;color:#55579a;font-size:11px}
.thr1392-mini-scroll{overflow:auto;max-height:240px;margin-top:8px;border:1px solid #e6e8f0;border-radius:10px}.thr1392-mini-scroll table{width:100%;border-collapse:collapse;font-size:10px}.thr1392-mini-scroll th,.thr1392-mini-scroll td{padding:7px 8px;border-bottom:1px solid #eef0f5;text-align:left;white-space:nowrap}.thr1392-mini-scroll th{background:#f8f9fc;position:sticky;top:0}
@media(max-width:1000px){.thr1392-calc-grid{grid-template-columns:1fr;padding-left:14px}.thr1392-row-details>summary{padding-left:48px}}
@media(max-width:680px){.thr1392-row-details>summary{align-items:flex-start;flex-direction:column;gap:3px}.thr1392-calc-grid{padding:10px}.thr1392-calc-line{grid-template-columns:1fr}.thr1392-calc-line>b{text-align:left}.thr1392-ot-summary>div{grid-template-columns:1fr;gap:3px}}


/* v142 — certification hotfix: persistent payroll title/actions and audit-safe report preview */
.thr139-payroll-calc-shell .thr142-calc-eyebrow{position:sticky;top:-20px;z-index:32;margin:-20px -4px 0;padding:12px 4px 5px;background:rgba(255,255,255,.98);backdrop-filter:blur(12px)}
.thr139-payroll-calc-shell .thr142-calc-header{top:13px!important;z-index:31;box-shadow:0 8px 18px rgba(31,29,76,.035)}
.thr139-payroll-calc-shell .thr142-calc-header #pcd-close{flex:0 0 auto}
.thr139-payroll-calc-shell .thr117-modal-actions{position:sticky;z-index:35;background:rgba(255,255,255,.98);backdrop-filter:blur(12px)}
@media(max-width:760px){.thr139-payroll-calc-shell .thr142-calc-eyebrow{top:-15px;margin:-15px 0 0;padding:10px 0 4px}.thr139-payroll-calc-shell .thr142-calc-header{top:10px!important;align-items:flex-start}.thr139-payroll-calc-shell .thr142-calc-header h3{font-size:17px}}

/* v142.1 — Attendance → By Employee visual scanning only.
   Weekend colour is presentation-only: it does NOT classify Sat/Sun as Rest Day. */
.thr117-table tbody tr.thr142-att-weekend>td{background:#eef7ff}
.thr117-table tbody tr.thr142-att-al>td{background:#fff9dc}
.thr117-table tbody tr.thr142-att-absent>td{background:#fff0f0}
.thr117-table tbody tr.thr142-att-weekend:hover>td{background:#e5f2ff}
.thr117-table tbody tr.thr142-att-al:hover>td{background:#fff4c4}
.thr117-table tbody tr.thr142-att-absent:hover>td{background:#ffe4e4}
.thr117-mobile-row.thr142-att-weekend{background:#eef7ff;border-color:#d7eafd}
.thr117-mobile-row.thr142-att-al{background:#fff9dc;border-color:#f4e8a4}
.thr117-mobile-row.thr142-att-absent{background:#fff0f0;border-color:#f4caca}

/* v145 — weekly Rest Day roster manager */
.thr145-rest-choice{display:inline-flex;align-items:center;gap:8px;font-weight:800;white-space:nowrap;cursor:pointer}
.thr145-rest-choice input{width:17px;height:17px;accent-color:#292574}
.thr145-rest-actions{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;padding-top:20px}
@media(max-width:720px){.thr145-rest-actions{padding-top:0}.thr145-rest-actions .thr117-btn{flex:1 1 160px}}


/* v146.2 take-home pay summary */
.thr1462-net-summary{margin-top:14px;border:1px solid #dfe3ee;border-radius:16px;background:#fff;overflow:hidden}
.thr1462-net-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 15px 12px;background:linear-gradient(180deg,#fafbff 0%,#fff 100%);border-bottom:1px solid #e7e9f1}
.thr1462-net-head h3{margin:0;color:var(--thr117-navy);font-size:16px}.thr1462-net-head p{margin:4px 0 0;color:var(--thr117-muted);font-size:11px}
.thr1462-net-formula{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:#eef8f5;color:#17644e;font-size:10px;font-weight:900;letter-spacing:.02em}
.thr1462-net-scroll{overflow:auto;max-width:100%;scrollbar-gutter:stable both-edges}
.thr1462-net-table{margin:0;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.thr1462-net-table th,.thr1462-net-table td{padding:9px 10px;border-right:1px solid #e8eaf1;border-bottom:1px solid #e8eaf1;white-space:nowrap;text-align:right}
.thr1462-net-table th{background:#f7f8fb;color:#4a4d62;font-size:10px;position:sticky;top:0;z-index:5}
.thr1462-net-table th:nth-child(1),.thr1462-net-table td:nth-child(1){text-align:center;position:sticky;left:0;z-index:3;background:#fff;min-width:46px}
.thr1462-net-table th:nth-child(2),.thr1462-net-table td:nth-child(2){text-align:left;position:sticky;left:46px;z-index:3;background:#fff;min-width:104px}
.thr1462-net-table th:nth-child(3),.thr1462-net-table td:nth-child(3){text-align:left;position:sticky;left:150px;z-index:3;background:#fff;min-width:235px;box-shadow:8px 0 12px -12px rgba(32,28,102,.45)}
.thr1462-net-table th:nth-child(-n+3){z-index:7;background:#f7f8fb}
.thr1462-net-table td small{display:block;margin-top:2px;color:var(--thr117-muted);font-size:9px;font-weight:700}
.thr1462-net-col{background:#eef8f5!important;color:#17644e!important;font-weight:900}.thr1462-net-col b{font-size:13px}
.thr1462-negative-net .thr1462-net-col{background:#fff0f0!important;color:#a12727!important}.thr1462-negative-net .thr1462-net-col small{color:#a12727}
.thr1462-net-total td{font-weight:900;background:#f3f4fa!important;border-top:2px solid #cfd3e2;color:var(--thr117-navy)}
.thr1462-net-total .thr1462-net-col{background:#dff3ea!important;color:#125a43!important}
.thr1462-net-note{padding:9px 12px;background:#fbfcff;color:var(--thr117-muted);font-size:10.5px;line-height:1.45}.thr1462-net-note b{color:var(--thr117-text)}
.thr1314-full-detail-label{display:flex;align-items:baseline;gap:9px;margin-top:16px;padding:0 2px;color:var(--thr117-text);font-size:11px}.thr1314-full-detail-label span{color:var(--thr117-muted)}
@media(max-width:680px){.thr1462-net-head{flex-direction:column}.thr1462-net-formula{font-size:9px}.thr1462-net-table th,.thr1462-net-table td{padding:8px;font-size:10px}.thr1462-net-table th:nth-child(3),.thr1462-net-table td:nth-child(3){min-width:205px}}


/* v146.4 — owner-only familiar payroll table */
.thr1464-owner-payroll{margin-top:14px;border:1px solid #d8e0ec;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 10px 26px rgba(34,50,93,.045)}
.thr1464-owner-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:14px 16px 12px;background:linear-gradient(180deg,#f7faff 0%,#fff 100%);border-bottom:1px solid #dce4ee}
.thr1464-owner-kicker{font-size:9px;font-weight:950;letter-spacing:.14em;color:#2d619e;margin-bottom:4px}.thr1464-owner-head h3{margin:0;color:#244f86;font-size:17px}.thr1464-owner-head p{margin:4px 0 0;color:var(--thr117-muted);font-size:11px}
.thr1464-owner-formula{flex:0 0 auto;border:1px solid #cfe1d9;background:#edf8f2;color:#176349;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:950;white-space:nowrap}
.thr1464-owner-scroll{overflow:auto;max-width:100%;scrollbar-gutter:stable both-edges}
.thr1464-owner-table{width:100%;border-collapse:separate;border-spacing:0;font-size:11px;font-variant-numeric:tabular-nums;color:#20232e}
.thr1464-owner-table th,.thr1464-owner-table td{padding:8px 9px;border-right:1px solid #cfd6df;border-bottom:1px solid #cfd6df;text-align:right;white-space:nowrap;background:#fff}
.thr1464-owner-table thead th{background:#f8fafc;color:#111;font-weight:900;text-align:center;vertical-align:middle;position:sticky;top:0;z-index:6}
.thr1464-owner-table .thr1464-owner-title-row th{background:#fff;color:#2c5d98;font-size:17px;letter-spacing:.01em;padding:13px 10px;border-bottom:2px solid #4178b8}
.thr1464-owner-table .thr1464-ded-group{font-size:13px;background:#f5f8fc}
.thr1464-owner-table th:nth-child(1),.thr1464-owner-table td:nth-child(1){text-align:center;position:sticky;left:0;z-index:4;min-width:44px}
.thr1464-owner-table th:nth-child(2),.thr1464-owner-table td:nth-child(2){text-align:left;position:sticky;left:44px;z-index:4;min-width:92px}
.thr1464-owner-table th:nth-child(3),.thr1464-owner-table td:nth-child(3){text-align:left;position:sticky;left:136px;z-index:4;min-width:300px;box-shadow:8px 0 12px -12px rgba(32,54,93,.55)}
.thr1464-owner-table thead th:nth-child(-n+3){z-index:9;background:#f8fafc}.thr1464-owner-table .thr1464-owner-title-row th{position:static}
.thr1464-owner-table .thr1464-gross{font-weight:900;background:#f9fbff}.thr1464-owner-table .thr1464-ded{font-weight:900;background:#fffaf1}.thr1464-owner-table .thr1464-net{font-weight:950;background:#eaf7f1;color:#155f48;font-size:12px}.thr1464-owner-table .thr1464-net-headcell{background:#eaf7f1;color:#155f48}
.thr1464-owner-table .thr1464-owner-negative .thr1464-net{background:#fff0f0;color:#a12727}
.thr1464-owner-total td{font-weight:950;background:#eef3fa!important;border-top:2px solid #7f96b1}.thr1464-owner-total .thr1464-net{background:#dcefe7!important;color:#104f3c!important}
.thr1464-owner-note{padding:9px 12px;background:#fbfcfe;color:var(--thr117-muted);font-size:10px;line-height:1.45}
@media(max-width:760px){.thr1464-owner-head{flex-direction:column}.thr1464-owner-formula{white-space:normal}.thr1464-owner-table{font-size:10px}.thr1464-owner-table th:nth-child(3),.thr1464-owner-table td:nth-child(3){min-width:225px}}
/* v146.8 one-shot employee onboarding */
.thr148-onboard-modal{width:min(980px,calc(100vw - 36px));max-width:980px}
.thr148-onboard-section{margin-top:14px}
.thr148-pin-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.thr148-pin-row .thr117-btn{white-space:nowrap}
@media(max-width:680px){.thr148-pin-row{grid-template-columns:1fr}.thr148-pin-row .thr117-btn{width:100%}}
.thr148-onboard-section .thr117-check.full{grid-column:1/-1}

/* v147.0 attendance clear-day actions */
.thr147-att-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.thr147-mobile-att-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.thr147-mobile-att-actions .thr117-btn{width:100%;justify-content:center}
@media(max-width:520px){.thr147-mobile-att-actions{grid-template-columns:1fr}}

/* TRUST v152/v153 Reporting Centre */
.thr152-report-toolbar{display:grid;gap:14px}
.thr152-report-search-row{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.thr152-report-search-wrap{position:relative;flex:1 1 360px;max-width:680px}
.thr152-report-search-wrap .thr117-input{width:100%;padding-left:42px}
.thr152-report-search-icon{position:absolute;left:15px;top:50%;transform:translateY(-52%);font-size:20px;color:var(--thr117-muted);pointer-events:none}
.thr152-report-ranges{display:flex;gap:8px;flex-wrap:wrap}
.thr152-report-categories{padding-top:2px}
.thr152-report-count{margin-top:-2px}
.thr152-selected-report{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin:18px 0 14px;padding:19px 21px;border:1px solid var(--thr117-line);border-radius:20px;background:linear-gradient(135deg,#fff 0%,#fbfbff 100%)}
.thr152-selected-report h2{margin:3px 0 7px;color:var(--thr117-navy);font-size:23px}
.thr152-selected-report p{margin:0;color:var(--thr117-muted);line-height:1.55;max-width:820px}
.thr152-selected-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;color:var(--thr117-muted);font-size:12px;font-weight:800}
.thr152-report-grid{align-items:stretch}
.thr152-report-grid .thr117-report-card{min-height:180px;display:flex;flex-direction:column;gap:9px;padding:19px}
.thr152-report-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.thr152-priority{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;background:#f0effa;color:var(--thr117-navy);font-size:10px;font-weight:900;letter-spacing:.05em}
.thr152-report-grid .thr117-report-card h2{margin:0;color:var(--thr117-navy);font-size:18px;line-height:1.25}
.thr152-report-grid .thr117-report-card p{margin:0;line-height:1.5;flex:1}
.thr152-report-hint{margin-top:auto;padding-top:10px;border-top:1px solid var(--thr117-line);font-size:11px;font-weight:800;color:var(--thr117-muted)}
.thr152-report-empty{grid-column:1/-1}
.thr152-report-summary{margin-top:18px}
.thr152-export-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){
  .thr152-report-search-row,.thr152-selected-report{display:grid;grid-template-columns:1fr}
  .thr152-report-search-wrap{max-width:none;width:100%}
  .thr152-report-ranges,.thr152-export-actions{width:100%}
  .thr152-report-ranges .thr117-btn,.thr152-export-actions .thr117-btn{flex:1 1 auto}
  .thr152-selected-meta{justify-content:flex-start}
}


/* TRUST v148.1 information architecture + AI-ready shell */
.thr1481-current-cycle{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#252061 0%,#17124b 100%);color:#fff;border-radius:24px;padding:22px 24px;box-shadow:0 14px 36px rgba(23,18,75,.14);margin-bottom:18px}.thr1481-current-cycle h2{margin:4px 0 5px;font-size:24px;color:#fff}.thr1481-current-cycle p{margin:0;color:rgba(255,255,255,.74)}.thr1481-current-cycle .thr117-eyebrow{color:#9ff4b9}.thr1481-attention-list{display:grid;gap:9px}.thr1481-attention-row{border:1px solid #e1e6f0;background:#fff;border-radius:15px;padding:14px 15px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;cursor:pointer;color:inherit}.thr1481-attention-row:hover{border-color:#aeb9ce;background:#fbfcff}.thr1481-attention-row span{display:grid;gap:3px}.thr1481-attention-row small{color:#72809b}.thr1481-attention-row strong{color:#252061;white-space:nowrap}.thr1481-all-clear{padding:24px;border:1px dashed #cbd5e8;border-radius:16px;display:grid;gap:5px;text-align:center}.thr1481-all-clear span{color:#72809b}.thr1481-mini-flow{display:grid;gap:8px}.thr1481-mini-flow button{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:11px;border:0;background:#f7f9fd;border-radius:15px;padding:12px 14px;text-align:left;cursor:pointer;color:#151838}.thr1481-mini-flow button:hover{background:#eff3fb}.thr1481-mini-flow button>span{grid-row:1/3;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#252061;color:#fff;font-weight:900}.thr1481-mini-flow button b{align-self:end}.thr1481-mini-flow button small{color:#72809b}.thr1481-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.thr1481-filter-row,.thr1481-export-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.thr1481-filter-row .thr117-input{min-width:260px}.thr1481-filter-row .thr117-select{width:auto;min-width:160px}.thr1481-people-table th,.thr1481-people-table td{vertical-align:top}.thr1481-payroll-stepper{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:18px}.thr1481-pay-step{display:flex;align-items:center;gap:8px;border:1px solid #dfe6f2;background:#fff;border-radius:14px;padding:10px 11px;color:#72809b}.thr1481-pay-step span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#edf1f7;font-weight:900;color:#536079}.thr1481-pay-step.current{border-color:#252061;color:#252061;background:#f5f4ff}.thr1481-pay-step.current span{background:#252061;color:#fff}.thr1481-pay-step.done{border-color:#bfe9cc;color:#087a32;background:#f4fff7}.thr1481-pay-step.done span{background:#32cf68;color:#fff}.thr1481-pay-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.thr1481-pay-workflow .thr117-card{min-height:235px}.thr1481-step-title{display:grid;grid-template-columns:40px 1fr auto;align-items:start;gap:11px;margin-bottom:16px}.thr1481-step-title>span{width:36px;height:36px;border-radius:12px;background:#252061;color:#fff;display:grid;place-items:center;font-weight:900}.thr1481-step-title h2{margin:0;color:#252061;font-size:18px}.thr1481-step-title p{margin:3px 0 0;color:#72809b;font-size:13px}.thr1481-checklist{display:grid;gap:8px}.thr1481-checklist button{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2e7f1;border-radius:13px;background:#fafbfe;padding:11px 12px;cursor:pointer;text-align:left;color:#151838}.thr1481-checklist button:hover{border-color:#b8c3d7;background:#fff}.thr1481-checklist button b{color:#252061}.thr1481-full-btn{width:100%;justify-content:center;margin-top:8px}.thr1481-approval-box{padding-top:4px}.thr1481-submission-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.thr1481-submission-grid .thr117-card{display:flex;flex-direction:column;align-items:flex-start}.thr1481-submission-grid .thr117-card h2{margin:5px 0}.thr1481-submission-grid .thr117-card p{flex:1}.thr1481-report-shell{display:grid;grid-template-columns:185px minmax(260px,340px) minmax(340px,1fr);gap:14px;align-items:start}.thr1481-report-cats,.thr1481-report-list{background:#fff;border:1px solid #dfe6f2;border-radius:20px;padding:14px}.thr1481-report-cats{display:grid;gap:5px;position:sticky;top:142px}.thr1481-report-cats .thr117-eyebrow{padding:7px 9px}.thr1481-report-cats button{border:0;background:transparent;padding:11px 12px;border-radius:12px;text-align:left;font-weight:800;color:#536079;cursor:pointer}.thr1481-report-cats button:hover,.thr1481-report-cats button.active{background:#f0efff;color:#252061}.thr1481-report-list{min-height:430px}.thr1481-report-menu{display:grid;gap:6px;max-height:620px;overflow:auto}.thr1481-report-menu>button{border:1px solid transparent;background:transparent;border-radius:13px;padding:11px 10px;display:flex;justify-content:space-between;gap:8px;text-align:left;cursor:pointer;color:#151838}.thr1481-report-menu>button:hover{background:#f7f9fd}.thr1481-report-menu>button.active{background:#f1f0ff;border-color:#d6d2ff}.thr1481-report-menu span{display:grid;gap:3px}.thr1481-report-menu small{color:#72809b;line-height:1.35}.thr1481-report-menu em{font-size:11px;font-style:normal;font-weight:900;background:#eef2f8;color:#536079;border-radius:999px;padding:5px 7px;height:max-content}.thr1481-report-config-card{position:sticky;top:142px}.thr1481-report-config h2{margin:6px 0 6px;color:#252061}.thr1481-report-config p{color:#72809b;line-height:1.5;margin:0 0 16px}.thr1481-report-config .thr152-report-ranges{margin:12px 0;display:flex;gap:6px;flex-wrap:wrap}.thr117-nav{scrollbar-width:none}.thr117-nav::-webkit-scrollbar{display:none}
@media(max-width:1180px){.thr1481-pay-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}.thr1481-submission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thr1481-report-shell{grid-template-columns:160px 300px minmax(300px,1fr)}}
@media(max-width:900px){.thr1481-current-cycle{align-items:flex-start;flex-direction:column}.thr1481-payroll-stepper{grid-template-columns:repeat(3,minmax(0,1fr))}.thr1481-pay-workflow,.thr1481-submission-grid{grid-template-columns:1fr}.thr1481-report-shell{grid-template-columns:1fr}.thr1481-report-cats{display:flex;overflow:auto;position:static}.thr1481-report-cats .thr117-eyebrow{display:none}.thr1481-report-cats button{white-space:nowrap}.thr1481-report-config-card{position:static}.thr1481-report-list{min-height:auto}.thr1481-report-menu{max-height:none}.thr1481-filter-row .thr117-input{min-width:100%;width:100%}}
@media(max-width:640px){.thr1481-payroll-stepper{grid-template-columns:repeat(2,minmax(0,1fr))}.thr1481-pay-step b{font-size:12px}.thr1481-step-title{grid-template-columns:36px 1fr}.thr1481-step-title>.thr117-tag{grid-column:2}.thr1481-list-toolbar{align-items:stretch;flex-direction:column}.thr1481-filter-row,.thr1481-export-row{width:100%}.thr1481-filter-row .thr117-select,.thr1481-export-row .thr117-btn{flex:1}.thr1481-submission-grid{grid-template-columns:1fr}}
\n\n/* v148.2 product workspaces & entitlement shell */\n.thr1482-workspace-switch,.thr1482-workspace-static{display:flex;align-items:center;gap:9px;padding:7px 10px;border:1px solid #dfe6f2;border-radius:14px;background:#fff;white-space:nowrap}.thr1482-workspace-switch span,.thr1482-workspace-static span{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#72809b;font-weight:900}.thr1482-workspace-switch .thr117-select{min-width:150px;border:0;padding:4px 26px 4px 0;background-color:transparent;font-weight:950}.thr1482-workspace-static b{color:#252061}.thr1482-business-nav{justify-content:flex-start}.thr1482-foundation-note{margin-top:18px;padding:16px 18px;border:1px dashed #aebbd1;border-radius:18px;background:#f8faff;display:grid;gap:6px;color:#34415f}.thr1482-foundation-note b{color:#252061}.thr1482-foundation-note span{font-size:13px;line-height:1.5}.thr1482-package-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:18px}.thr1482-package h2{margin:4px 0 8px;color:#252061}.thr1482-package strong{display:block;font-size:17px;color:#151838}.thr1482-package p{color:#72809b;line-height:1.5}.thr1482-package.selected{border:2px solid #32cf68;box-shadow:0 14px 40px rgba(50,207,104,.12)}.thr1482-plan-card{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px;border-radius:22px;background:linear-gradient(135deg,#252061,#17124b);color:#fff}.thr1482-plan-card h2{margin:4px 0 5px;font-size:30px}.thr1482-plan-card p{margin:0;color:#dce3ff}.thr1482-plan-card .thr117-eyebrow{color:#9fd6ff}.thr1482-flow,.thr1482-queue-steps{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:8px 0}.thr1482-flow span,.thr1482-queue-steps span{padding:9px 12px;border:1px solid #dfe6f2;border-radius:999px;background:#f8faff;color:#252061;font-weight:900}.thr1482-flow i,.thr1482-queue-steps i{font-style:normal;color:#72809b;font-weight:900}.thr1482-empty-table>div{display:grid;grid-template-columns:1.2fr 1.5fr .8fr 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #e4e9f2;color:#252061}.thr1482-empty-table p{padding:28px 0;margin:0;color:#72809b;text-align:center}@media(max-width:1100px){.thr1482-package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.thr1482-package-grid{grid-template-columns:1fr}.thr1482-workspace-switch,.thr1482-workspace-static{width:100%;justify-content:space-between}.thr1482-flow i,.thr1482-queue-steps i{display:none}}\n

/* TRUST v149 Business + e-Invoice */
.thr149-line-row{display:grid;grid-template-columns:minmax(220px,2fr) 90px 130px 100px auto;gap:8px;align-items:center;margin:8px 0}.thr149-line-row .thr117-input{min-width:0}.thr149-business-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.thr149-money-strong{font-weight:900;color:#252061}.thr149-connector-note{border-left:4px solid #f7c21b}
@media(max-width:820px){.thr149-line-row{grid-template-columns:1fr 1fr}.thr149-line-row .bd-desc{grid-column:1/-1}.thr149-line-row .bd-remove{grid-column:1/-1;justify-self:start}}

/* TRUST v150 — e-Invoice control-centre IA */
.thr150-subnav{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:-4px 0 18px;padding:7px;border:1px solid #dfe6f2;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(31,29,76,.035)}
.thr150-subnav button{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#63708b;border-radius:11px;padding:9px 11px;font-weight:850;cursor:pointer}
.thr150-subnav button:hover{background:#f6f7fb;color:#252061}.thr150-subnav button.active{background:#252061;color:#fff}.thr150-subnav button b{display:grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#eef1f7;color:#536079;font-size:10px}.thr150-subnav button.active b{background:rgba(255,255,255,.16);color:#fff}
.thr150-linkbtn{border:0;background:transparent;padding:0;color:#252061;cursor:pointer;text-align:left}.thr150-linkbtn:hover{text-decoration:underline}.thr150-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.thr150-doc-table td{vertical-align:top}
.thr150-attention-list{display:grid;gap:8px}.thr150-attention{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:1px solid #f1d2d7;background:#fff9fa;border-radius:14px;padding:12px 13px;color:#2b3146;text-align:left;cursor:pointer}.thr150-attention:hover{border-color:#e4a8b2;background:#fff}.thr150-attention span{display:grid;gap:3px}.thr150-attention small{color:#7f6670;max-width:660px}.thr150-attention strong{color:#b12c43;white-space:nowrap}
.thr150-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.thr150-quick-actions button{display:grid;gap:3px;border:1px solid #e0e5ef;border-radius:14px;background:#fafbff;padding:12px 13px;text-align:left;color:#252061;cursor:pointer}.thr150-quick-actions button:hover{background:#f2f3ff;border-color:#c8c7e7}.thr150-quick-actions span{font-size:11px;color:#72809b}
.thr150-filter-pills{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 14px}.thr150-filter-pills button{display:flex;gap:7px;align-items:center;border:1px solid #dde4ef;background:#fff;color:#536079;border-radius:999px;padding:8px 11px;font-weight:850;cursor:pointer}.thr150-filter-pills button.active{background:#252061;border-color:#252061;color:#fff}.thr150-filter-pills button b{font-size:10px;min-width:20px;height:20px;display:grid;place-items:center;border-radius:999px;background:#eef1f7;color:#536079}.thr150-filter-pills button.active b{background:rgba(255,255,255,.16);color:#fff}
.thr150-workflow-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.thr150-workflow-line span{padding:10px 12px;border:1px solid #dfe6f2;border-radius:12px;background:#f8faff;color:#252061;font-weight:850}.thr150-workflow-line i{font-style:normal;color:#9aa6bb;font-weight:900}
.thr150-history{display:grid}.thr150-history-row{display:grid;grid-template-columns:14px 1fr auto;align-items:center;gap:11px;border:0;border-bottom:1px solid #edf0f5;background:transparent;padding:12px 4px;text-align:left;color:inherit;cursor:pointer}.thr150-history-row:hover{background:#fafbfe}.thr150-history-row>i{width:10px;height:10px;border-radius:50%;background:#aeb8c8}.thr150-history-row>i.ok{background:#32cf68}.thr150-history-row>i.warn{background:#f03b45}.thr150-history-row span{display:grid;gap:2px}.thr150-history-row small{color:#72809b}.thr150-history-row time{font-size:11px;color:#72809b;white-space:nowrap}
.thr150-line-head,.thr149-line-row{display:grid;grid-template-columns:minmax(185px,1.8fr) 64px 102px 68px 76px 76px 64px minmax(105px,1fr) auto;gap:7px;align-items:center}.thr150-line-head{padding:6px 4px;color:#72809b;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.thr149-line-row{margin:8px 0}.thr149-line-row .thr117-input{min-width:0}
.thr150-detail-modal{z-index:120}.thr150-document-detail{max-width:1180px}.thr150-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.thr150-detail-head h3{margin:4px 0 4px;font-size:26px;color:#252061}.thr150-detail-head p{margin:0}.thr150-detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.8fr);gap:14px;align-items:start}.thr150-detail-grid>section,.thr150-detail-grid>aside{display:grid;gap:12px}.thr150-flat-card{box-shadow:none}.thr150-compliance-card{border:1px solid #cbd7eb;background:linear-gradient(180deg,#fbfcff,#fff);box-shadow:none}.thr150-compliance-card h2{margin:4px 0 0;color:#252061}.thr150-readiness-list{display:grid;gap:7px;margin-top:10px}.thr150-readiness-list>div{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid #e3e8f0;border-radius:12px;background:#fff}.thr150-readiness-list i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:950;background:#edf0f5;color:#758096}.thr150-readiness-list .ok i{background:#e5f8eb;color:#087a32}.thr150-readiness-list .missing{border-color:#f0d5da;background:#fffafb}.thr150-readiness-list .missing i{background:#ffe9ec;color:#bd1f28}.thr150-readiness-list span{display:grid;gap:1px}.thr150-readiness-list small{color:#72809b;font-size:10px}.thr150-compliance-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.thr150-mini-history{display:grid}.thr150-mini-history>div{display:grid;grid-template-columns:12px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f5}.thr150-mini-history>div:last-child{border-bottom:0}.thr150-mini-history i{width:9px;height:9px;margin-top:4px;border-radius:50%;background:#aeb8c8}.thr150-mini-history i.ok{background:#32cf68}.thr150-mini-history i.warn{background:#f03b45}.thr150-mini-history span{display:grid;gap:2px}.thr150-mini-history small{color:#72809b;font-size:10px}
@media(max-width:980px){.thr150-detail-grid{grid-template-columns:1fr}.thr150-line-head{display:none}.thr149-line-row{grid-template-columns:1fr 1fr 1fr}.thr149-line-row .bd-desc{grid-column:1/-1}.thr149-line-row .bd-remove{justify-self:start}}
@media(max-width:680px){.thr150-subnav{flex-wrap:nowrap;overflow:auto}.thr150-subnav button{white-space:nowrap}.thr150-quick-actions{grid-template-columns:1fr}.thr150-history-row{grid-template-columns:12px 1fr}.thr150-history-row time{grid-column:2}.thr150-workflow-line i{display:none}.thr149-line-row{grid-template-columns:1fr 1fr}.thr149-line-row .bd-desc{grid-column:1/-1}.thr149-line-row .bd-remove{grid-column:1/-1}.thr150-detail-head{flex-direction:column}.thr150-detail-head .thr117-btn{align-self:flex-end}}

/* TRUST v151 MyInvois connector */
.thr151-einvoice-select{width:18px;height:18px;accent-color:#2c287d;cursor:pointer}.thr151-einvoice-select:disabled{cursor:not-allowed;opacity:.45}.thr1482-workspace-switch select{cursor:pointer}.thr150-compliance-actions a.thr117-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.thr117-btn:disabled{opacity:.48;cursor:not-allowed}

/* v152 · Draft payroll inline table editing */
.thr152-pay-edit{appearance:none;border:0;border-bottom:1px dashed currentColor;background:transparent;padding:3px 2px;font:inherit;font-weight:700;color:inherit;cursor:text;white-space:nowrap}
.thr152-pay-edit:hover,.thr152-pay-edit:focus{background:rgba(17,24,39,.05);outline:2px solid rgba(17,24,39,.08);outline-offset:2px;border-radius:6px}
.thr152-pay-edit.is-edited{border-bottom-style:solid}
.thr152-pay-edit small{display:block;margin-top:2px;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.58}
.thr152-pay-pencil{font-size:11px;opacity:.55;margin-left:3px}
.thr152-pay-inline-input{min-width:104px!important;width:112px!important;padding:7px 8px!important;font-weight:800!important;text-align:right!important}
.thr152-pay-readonly small,.thr152-pay-calc>small{font-size:9px;opacity:.55;margin-left:3px}
.thr152-pay-calc{background:rgba(17,24,39,.025)}
.thr152-pay-edit-banner{display:flex;gap:12px;align-items:flex-start;margin:14px 0;padding:12px 14px;border:1px solid rgba(17,24,39,.12);border-radius:12px;background:rgba(17,24,39,.025)}
.thr152-pay-edit-banner b{white-space:nowrap}
.thr152-pay-edit-banner span{font-size:12px;line-height:1.55;color:var(--thr-muted,#6b7280)}
.thr152-pay-edit-banner.locked{opacity:.8}
.thr152-edit-hint{display:block;margin-top:2px;font-size:9px;font-weight:600;opacity:.58}
@media (max-width:760px){.thr152-pay-edit-banner{display:block}.thr152-pay-edit-banner b{display:block;margin-bottom:4px}.thr152-pay-inline-input{min-width:92px!important;width:98px!important}}

/* v153 · compact payroll sheet + full inline edit */
.thr153-payroll-summary{overflow:visible}
.thr153-payroll-table-wrap{width:100%;overflow:visible;border:1px solid var(--thr117-line);border-radius:15px;margin-top:12px}
.thr153-payroll-table{width:100%;min-width:0!important;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:11px}
.thr153-payroll-table th,.thr153-payroll-table td{padding:9px 7px;vertical-align:middle;white-space:normal;word-break:break-word}
.thr153-payroll-table th:nth-child(1){width:4%}.thr153-payroll-table th:nth-child(2){width:19%}.thr153-payroll-table th:nth-child(3){width:9%}.thr153-payroll-table th:nth-child(4){width:9%}.thr153-payroll-table th:nth-child(5){width:12%}.thr153-payroll-table th:nth-child(6){width:11%}.thr153-payroll-table th:nth-child(7){width:12%}.thr153-payroll-table th:nth-child(8){width:12%}.thr153-payroll-table th:nth-child(9){width:12%}
.thr153-payroll-main td{border-bottom:0}.thr153-payroll-main:nth-of-type(4n+1){background:#fbfcff}
.thr153-employee{display:table-cell}.thr153-employee b,.thr153-employee small{display:block}.thr153-employee small{margin-top:3px;color:var(--thr117-muted)}
.thr153-payroll-main td:not(.thr153-employee){text-align:right}.thr153-payroll-main td:first-child{text-align:center}
.thr153-payroll-main .thr152-pay-edit{max-width:100%;font-size:11px}
.thr153-payroll-main .thr152-pay-edit small{font-size:8px}
.thr153-net{background:#f4f8f6}.thr153-net b{font-size:12px}
.thr153-payroll-detail>td{padding:0 8px 10px!important;border-top:0!important;background:#fff}
.thr153-full-row{border:1px solid #e6eaf0;border-radius:12px;background:#fafbfe;overflow:hidden}
.thr153-full-row>summary{cursor:pointer;padding:9px 12px;font-size:11px;font-weight:850;color:#252061;list-style-position:inside}
.thr153-full-row[open]>summary{border-bottom:1px solid #e6eaf0;background:#f5f6fb}
.thr153-edit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:10px;padding:10px}
.thr153-edit-grid>section{border:1px solid #e3e8f0;border-radius:12px;background:#fff;padding:10px;min-width:0}
.thr153-edit-grid h4{margin:0 0 8px;color:#252061;font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.thr153-edit-field,.thr153-edit-ref{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid #eef1f5;min-width:0}
.thr153-edit-grid h4+.thr153-edit-field,.thr153-edit-grid h4+.thr153-edit-ref,.thr153-edit-grid h4+.thr153-stat-card{border-top:0}
.thr153-edit-field>span,.thr153-edit-ref>span{font-size:10px;color:#66738c;min-width:0}.thr153-edit-field>.thr152-pay-edit,.thr153-edit-ref>b{flex:none}
.thr153-edit-ref{align-items:flex-start;flex-wrap:wrap}.thr153-edit-ref b{margin-left:auto}.thr153-edit-ref small{width:100%;text-align:right;color:#8791a5;font-size:9px}
.thr153-edit-ref.total{font-weight:850}.thr153-edit-ref.net b{color:#087a32}
.thr153-stat-card{display:grid;gap:6px;padding:8px 0;border-top:1px solid #eef1f5}.thr153-stat-card>div:first-child{display:flex;justify-content:space-between;gap:10px}.thr153-stat-card span,.thr153-stat-card small{font-size:10px;color:#66738c}.thr153-stat-card b{font-size:10px;text-align:right}
.thr153-stat-base{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f8faff;border-radius:9px;padding:6px 8px}.thr153-stat-base small{font-size:9px}.thr153-stat-base .thr152-pay-edit{font-size:10px}
.thr153-empty-mini{padding:8px;border:1px dashed #dfe4ec;border-radius:9px;color:#8791a5;font-size:10px}
.thr153-payroll-total{background:#252061;color:#fff;font-weight:900}.thr153-payroll-total td{text-align:right}.thr153-payroll-total td:first-child{text-align:left}
.thr153-unit-edit{font-variant-numeric:tabular-nums}
.thr153-payroll-summary .thr1392-row-details{margin:10px 0 0}
.thr153-payroll-summary .thr1392-calc-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}

@media(max-width:900px){
  .thr153-payroll-table thead{display:none}
  .thr153-payroll-table,.thr153-payroll-table tbody{display:block;width:100%}
  .thr153-payroll-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid var(--thr117-line);padding:7px}
  .thr153-payroll-main:first-child{border-top:0}
  .thr153-payroll-main td{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:auto!important;text-align:right!important;padding:7px!important;border:0!important}
  .thr153-payroll-main td::before{content:attr(data-label);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;color:#7b879b;text-align:left}
  .thr153-payroll-main .thr153-employee{grid-column:1/-1;align-items:flex-start!important}
  .thr153-payroll-main .thr153-employee::before{margin-top:2px}.thr153-payroll-main .thr153-employee>small{margin-left:auto}
  .thr153-payroll-detail{display:block}.thr153-payroll-detail>td{display:block!important;width:100%;padding:0 7px 9px!important}
  .thr153-payroll-total{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}.thr153-payroll-total td{display:none}.thr153-payroll-total td:first-child,.thr153-payroll-total td:last-child{display:block}.thr153-payroll-total td:first-child{grid-column:1}.thr153-payroll-total td:last-child{grid-column:2;text-align:right}
}
@media(max-width:560px){.thr153-payroll-main{grid-template-columns:1fr}.thr153-edit-grid{grid-template-columns:1fr}.thr152-pay-inline-input{min-width:84px!important;width:92px!important}}

/* v151.6 preview — v147.9 classic payroll table + latest editable engine */
.thr1516-payroll-summary{overflow:visible}
.thr1516-classic-payroll{margin-top:12px}
.thr1516-fit-wrap{overflow-x:hidden;overflow-y:visible;max-width:100%;scrollbar-gutter:auto}
.thr1516-classic-table{width:100%!important;min-width:0!important;table-layout:fixed;font-size:9px}
.thr1516-classic-table th,.thr1516-classic-table td{padding:6px 3px;white-space:normal!important;word-break:normal;overflow-wrap:anywhere;line-height:1.25}
.thr1516-classic-table thead th{position:static!important;min-width:0!important}
.thr1516-classic-table th:nth-child(1),.thr1516-classic-table td:nth-child(1),
.thr1516-classic-table th:nth-child(2),.thr1516-classic-table td:nth-child(2),
.thr1516-classic-table th:nth-child(3),.thr1516-classic-table td:nth-child(3){position:static!important;left:auto!important;min-width:0!important;box-shadow:none!important}
.thr1516-classic-table th:nth-child(1){width:2.6%}.thr1516-classic-table th:nth-child(2){width:5.4%}.thr1516-classic-table th:nth-child(3){width:13%}.thr1516-classic-table th:nth-child(4){width:4.3%}
.thr1516-classic-table th:nth-child(5),.thr1516-classic-table th:nth-child(6),.thr1516-classic-table th:nth-child(7){width:5.2%}.thr1516-classic-table th:nth-child(8){width:6.2%}
.thr1516-classic-table td:nth-child(3){text-align:left;font-weight:750}
.thr1516-classic-table .thr152-pay-edit{font-size:9px;line-height:1.1;padding:2px 3px;white-space:normal;max-width:100%}
.thr1516-classic-table .thr152-pay-edit small{font-size:7px;margin-top:1px}.thr1516-classic-table .thr152-pay-pencil{font-size:8px}
.thr1516-classic-table .thr152-edit-hint{font-size:7px;line-height:1.1;margin-top:2px}
.thr1516-classic-detail>td{padding:0!important;background:#fbfcff!important;border-bottom:1px solid #cfd6df!important}
.thr1516-classic-detail .thr153-full-row{margin:5px 6px 8px}.thr1516-classic-detail .thr153-full-row>summary{font-size:9px;padding:7px 9px}
.thr1516-classic-detail .thr153-edit-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.thr1516-classic-detail .thr153-edit-grid section{padding:8px}.thr1516-classic-detail .thr153-edit-grid h4{font-size:9px}
.thr1516-classic-detail .thr153-edit-field,.thr1516-classic-detail .thr153-edit-ref,.thr1516-classic-detail .thr153-stat-card{font-size:9px}
.thr1516-classic-table .thr1464-owner-title-row th{font-size:15px;padding:10px 6px}
.thr1516-classic-table .thr1464-ded-group{font-size:11px}
@media(max-width:1400px){.thr1516-classic-table{font-size:8px}.thr1516-classic-table th,.thr1516-classic-table td{padding:5px 2px}.thr1516-classic-table .thr152-pay-edit{font-size:8px}.thr1516-classic-detail .thr153-edit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.thr1516-fit-wrap{overflow-x:auto}.thr1516-classic-table{min-width:1320px!important}.thr1516-classic-detail .thr153-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.thr1516-classic-detail .thr153-edit-grid{grid-template-columns:1fr}}

/* v151.7 payroll readiness, visible deductions and global TRUST AI */
.thr1481-pay-step.attention{border-color:#f2d68b;background:#fffaf0;color:#8a6600}.thr1481-pay-step.attention span{background:#f7c21b;color:#4b3a00}
.thr1517-deduction-nav{border-color:#d9cffb!important;background:#faf8ff!important;color:#35298b!important}
.thr1517-deduction-hub{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px;padding:19px 21px;border:1px solid #d9d4f4;border-radius:20px;background:linear-gradient(135deg,#fbfaff 0%,#f5f9ff 100%);box-shadow:0 10px 28px rgba(37,32,97,.06)}
.thr1517-deduction-hub h2{margin:4px 0 6px;color:#252061;font-size:20px}.thr1517-deduction-hub p{margin:0;color:#66748e;line-height:1.5;max-width:900px}.thr1517-deduction-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end;flex:0 0 auto}
.thr1517-ai-root{position:fixed;right:24px;bottom:22px;z-index:9990;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.thr1517-ai-fab{display:flex;align-items:center;gap:9px;border:0;border-radius:999px;background:#252061;color:#fff;padding:13px 18px;box-shadow:0 16px 38px rgba(23,18,75,.28);font-weight:900;cursor:pointer}.thr1517-ai-fab:hover{transform:translateY(-1px);box-shadow:0 18px 42px rgba(23,18,75,.34)}.thr1517-ai-spark{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#32cf68;color:#fff;font-size:13px}
.thr1517-ai-panel{position:absolute;right:0;bottom:58px;width:min(420px,calc(100vw - 32px));max-height:min(680px,calc(100vh - 100px));background:#fff;border:1px solid #dfe6f2;border-radius:24px;box-shadow:0 28px 80px rgba(18,18,57,.26);overflow:hidden}.thr1517-ai-panel[hidden]{display:none}
.thr1517-ai-panel header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 18px 14px;background:linear-gradient(135deg,#252061,#17124b);color:#fff}.thr1517-ai-panel header h3{margin:3px 0 3px;font-size:20px;color:#fff}.thr1517-ai-panel header .thr117-eyebrow{color:#9ff4b9}.thr1517-ai-panel header span{display:block;color:rgba(255,255,255,.7);font-size:12px}.thr1517-ai-panel header>button{border:0;background:rgba(255,255,255,.13);color:#fff;border-radius:12px;width:36px;height:36px;font-size:23px;cursor:pointer}
.thr1517-ai-quick{display:flex;gap:7px;padding:11px 14px;border-bottom:1px solid #edf0f5;overflow:auto}.thr1517-ai-quick button,.thr1517-ai-actions button{border:1px solid #dfe6f2;background:#fff;color:#252061;border-radius:999px;padding:8px 10px;font-weight:800;font-size:12px;white-space:nowrap;cursor:pointer}.thr1517-ai-quick button:hover,.thr1517-ai-actions button:hover{border-color:#ada7dd;background:#f6f4ff}
.thr1517-ai-messages{padding:15px;display:grid;gap:10px;overflow:auto;max-height:360px;background:#fafbfe;min-height:170px}.thr1517-ai-msg{max-width:92%;font-size:13.5px;line-height:1.5}.thr1517-ai-msg>div:first-child{padding:11px 13px;border-radius:16px}.thr1517-ai-msg.user{justify-self:end}.thr1517-ai-msg.user>div:first-child{background:#252061;color:#fff;border-bottom-right-radius:5px}.thr1517-ai-msg.assistant{justify-self:start}.thr1517-ai-msg.assistant>div:first-child{background:#fff;border:1px solid #e2e7f1;color:#28324b;border-bottom-left-radius:5px}.thr1517-ai-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.thr1517-ai-typing{padding:0 15px 10px;background:#fafbfe;color:#72809b;font-size:12px;font-weight:700}.thr1517-ai-panel form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 14px;border-top:1px solid #edf0f5;background:#fff}.thr1517-ai-panel textarea{resize:none;min-height:46px;max-height:100px;border:1px solid #dfe6f2;border-radius:14px;padding:10px 11px;font:inherit;outline:none}.thr1517-ai-panel textarea:focus{border-color:#928bd4;box-shadow:0 0 0 3px rgba(37,32,97,.08)}.thr1517-ai-panel form button{border:0;border-radius:13px;background:#32cf68;color:#fff;font-weight:900;padding:0 15px;cursor:pointer}.thr1517-ai-panel footer{padding:0 14px 13px;color:#8590a7;font-size:10.5px;line-height:1.4;background:#fff}
@media(max-width:900px){.thr1517-deduction-hub{align-items:flex-start;flex-direction:column}.thr1517-deduction-actions{justify-content:flex-start}.thr1517-ai-root{right:14px;bottom:14px}.thr1517-ai-panel{position:fixed;right:12px;bottom:72px;width:calc(100vw - 24px);max-height:calc(100vh - 90px)}}
