/* TIM HEBAT REV5.11 — Payroll Preflight Check, mobile-first. Scoped entirely to THPP. */
.thpp-root,.thpp-root *,[data-thpp-launch],[data-thpp-launch] *{box-sizing:border-box}
.thpp-root{position:fixed;inset:0;z-index:2147483150;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233148}
.thpp-scrim{position:absolute;inset:0;background:rgba(10,22,39,.67);backdrop-filter:blur(4px)}
.thpp-panel{position:absolute;inset:3vh max(12px,calc((100vw - 960px)/2));display:flex;flex-direction:column;max-height:94dvh;background:#f8fafc;border:1px solid #eff1f6;border-radius:24px;overflow:hidden;box-shadow:0 35px 100px rgba(20,23,43,.32)}
.thpp-head{padding:24px 28px;background:linear-gradient(118deg,#5b1f33,#872133 56%,#233858);display:flex;justify-content:space-between;gap:14px;color:#fff}
.thpp-head span{font-size:10px;letter-spacing:.16em;color:#f8e0e1;font-weight:850}
.thpp-head h2{font-size:26px;letter-spacing:-.04em;margin:9px 0 7px;line-height:1.15;color:#fff}.thpp-head p{font-size:13px;color:#f6e0e4;margin:0;line-height:1.45}
.thpp-close{flex:none;width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.15);color:#fff;display:grid;place-items:center;cursor:pointer}
.thpp-content{overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}.thpp-inner{padding:18px 21px 26px}
.thpp-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;align-items:end;gap:10px;margin-bottom:14px}
.thpp-toolbar label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#52627a;min-width:0}
.thpp-toolbar input,.thpp-toolbar select{background:#fff;border:1px solid #d8e0ea;border-radius:11px;color:#27364d;height:44px;min-width:0;padding:0 12px;font-family:inherit;font-size:13px;width:100%}
.thpp-toolbar button,.thpp-issues-head button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;border:1px solid #dbcbd0;border-radius:11px;color:#872b40;font-family:inherit;font-weight:800;font-size:12px;cursor:pointer;padding:9px 13px}
.thpp-status{display:flex;gap:14px;align-items:center;padding:18px;background:#fff;border:1px solid #e1e7ee;border-radius:18px;margin-bottom:12px}
.thpp-status-icon{flex:none;width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:#f9e6e9;color:#90253b}.thpp-status.ready .thpp-status-icon{background:#dcf3e7;color:#168053}.thpp-status.ongoing .thpp-status-icon{background:#fff3dc;color:#a56827}
.thpp-status small{font-size:11px;color:#5a6b83;font-weight:750}.thpp-status strong{display:block;font-size:19px;color:#7c2336;line-height:1.25;margin:4px 0;font-weight:850}.thpp-status.ready strong{color:#146c4a}.thpp-status.ongoing strong{color:#8a591f}.thpp-status p{font-size:11px;color:#68768a;line-height:1.5;margin:0}
.thpp-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:24px}.thpp-stat-grid>div{background:#fff;border:1px solid #e3e9f0;border-radius:15px;padding:14px 12px;min-width:0}.thpp-stat-grid span{font-size:11px;font-weight:750;color:#66758b;display:block;min-height:28px}.thpp-stat-grid strong{font-size:26px;line-height:1.05;letter-spacing:-.04em;color:#26374f;font-weight:850;display:block;margin-top:6px}
.thpp-section-title{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:14px 0 12px}.thpp-section-title h3{font-size:18px;color:#233149;letter-spacing:-.02em;margin:0 0 5px}.thpp-section-title p{font-size:12px;line-height:1.4;color:#68778c;margin:0}
.thpp-units{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}
.thpp-unit-card{background:#fff;border:1px solid #dfe6ee;border-radius:16px;padding:14px;min-width:0}.thpp-unit-head{display:flex;justify-content:space-between;gap:10px;align-items:start;margin-bottom:12px}.thpp-unit-head strong{font-size:14px;line-height:1.4;color:#27334c}.thpp-unit-head small{display:block;color:#8290a2;font-size:11px;margin-top:3px}.thpp-unit-head span{font-size:10px;line-height:1.25;font-weight:800;padding:5px 8px;border-radius:8px;text-align:center;white-space:nowrap}.thpp-unit-head span.blocked{background:#ffebed;color:#932838}.thpp-unit-head span.ongoing{background:#fff3d9;color:#8b5a1d}.thpp-unit-head span.ready{background:#e5f6ed;color:#15774d}
.thpp-gate-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;border-top:1px solid #edf0f4;padding-top:10px;margin-bottom:8px}.thpp-gate-mini span{font-size:11px;color:#64738a;min-width:0;overflow-wrap:anywhere}.thpp-gate-mini b{color:#334259}
.thpp-blockers{display:grid;gap:4px}.thpp-blockers span{display:flex;align-items:center;gap:5px;color:#973b49;font-size:11px;line-height:1.4}.thpp-blockers span.ok{color:#19764e}
.thpp-issues-head{margin-top:26px}.thpp-issues-head button{flex:none}.thpp-issues-head button:disabled{opacity:.55;cursor:default}
.thpp-filters{display:flex;gap:7px;overflow-x:auto;padding:3px 0 10px}.thpp-filters button{padding:9px 13px;border:1px solid #dfe5ed;border-radius:999px;background:#fff;color:#526177;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}.thpp-filters button.active{background:#792a3c;border-color:#792a3c;color:#fff}
.thpp-search{display:flex;gap:9px;align-items:center;border:1px solid #dfe5ed;border-radius:11px;background:#fff;padding:0 12px;margin-bottom:13px;color:#738197}.thpp-search input{width:100%;height:42px;border:0;background:transparent;outline:0;min-width:0;font-family:inherit;font-size:13px;color:#293851}
.thpp-issues{display:grid;gap:9px}.thpp-issue{display:flex;gap:11px;align-items:flex-start;background:#fff;border:1px solid #dce3ec;border-left:4px solid #cb9550;padding:14px;border-radius:14px}.thpp-issue.blocker{border-left-color:#b93348}.thpp-item-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:none;color:#973447;background:#f7e8ec}.thpp-issue.review .thpp-item-icon{color:#8b642e;background:#fff2df}
.thpp-item-content{min-width:0;flex:1}.thpp-issue-top{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:5px}.thpp-issue-top>span{font-size:11px;color:#66778e;font-weight:800;text-transform:uppercase}.thpp-issue-top em{font-style:normal;font-size:10px;font-weight:850;border-radius:7px;padding:4px 7px;background:#fef0df;color:#90662d}.thpp-issue-top em.blocker{background:#ffebed;color:#a12e40}
.thpp-item-content strong{display:block;color:#27374d;font-size:14px;line-height:1.45}.thpp-item-content p{font-size:12px;color:#5d6d81;line-height:1.52;margin:4px 0 9px;overflow-wrap:anywhere}.thpp-meta{display:flex;gap:13px;color:#758399;font-size:11px;margin-bottom:9px}.thpp-item-content button{background:#fff5f5;color:#80253a;border:1px solid #ead3d6;border-radius:9px;min-height:36px;padding:7px 11px;display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;cursor:pointer}
.thpp-empty,.thpp-loading,.thpp-error{border:1px dashed #dbe3ec;background:#fff;padding:35px 20px;text-align:center;border-radius:16px;display:grid;justify-items:center;gap:10px;color:#697c8a;font-size:13px}.thpp-empty strong,.thpp-error strong{color:#283c4f}.thpp-empty p,.thpp-error p{font-size:12px;color:#6c7b8d;margin:0;line-height:1.6}.thpp-error button{padding:10px 14px;border:0;border-radius:10px;background:#802438;color:#fff;cursor:pointer}.thpp-note{font-size:11px;line-height:1.7;color:#6d7b90;margin:15px 0 0}.thpp-note.warning{color:#925927}
.thpp-menu-tile{min-height:62px!important;display:flex!important;align-items:center!important;gap:10px!important;text-align:left!important;padding:10px 12px!important;border:1px solid #e0e6ef!important;border-radius:14px!important;background:#fff!important;color:#26364e!important;font-family:inherit!important;font-size:13px!important;font-weight:750!important;cursor:pointer!important}.thpp-menu-tile svg{flex:none;color:#86273a}
.thpp-sidebar-item{width:100%;min-height:43px;display:flex;align-items:center;gap:9px;border:0;border-radius:10px;background:#fff0f2;color:#8a2739;padding:9px 12px;text-align:left;font-size:13px;font-weight:800;cursor:pointer}.thpp-admin-tile{background:#fff;border:1px solid #e0e6ee;padding:14px;border-radius:12px;display:flex;align-items:center;gap:9px;color:#80283c;font-size:13px;font-weight:800;cursor:pointer}.thpp-workspace-tile{background:#fff;border:1px solid #e3e7ef;border-radius:12px;min-height:44px;padding:10px 12px;display:flex;align-items:center;gap:8px;color:#812b41;font-size:13px;font-weight:800;cursor:pointer}
body.thpp-open{overflow:hidden!important}.thpp-root button:focus-visible,.thpp-root input:focus-visible,.thpp-root select:focus-visible,[data-thpp-launch]:focus-visible{outline:3px solid #d8a45e;outline-offset:2px}
@media(max-width:979px){.thpp-panel{inset:auto 0 0;max-height:96dvh;border-radius:24px 24px 0 0}.thpp-head{padding:20px 16px}.thpp-head h2{font-size:22px}.thpp-inner{padding:13px 12px calc(22px + env(safe-area-inset-bottom))}.thpp-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.thpp-toolbar button{grid-column:1/-1}.thpp-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thpp-units{grid-template-columns:1fr}.thpp-status strong{font-size:15px}.thpp-status{padding:13px;gap:10px}.thpp-status-icon{width:39px;height:39px}.thpp-section-title h3{font-size:17px}.thpp-issues-head{align-items:start}.thpp-issues-head button{padding:8px 10px;font-size:11px}}
@media(max-width:360px){.thpp-head{padding:18px 13px}.thpp-head h2{font-size:20px}.thpp-toolbar{grid-template-columns:1fr}.thpp-toolbar button{grid-column:auto}.thpp-issues-head{flex-wrap:wrap}.thpp-gate-mini{gap:5px}.thpp-unit-head{flex-wrap:wrap}}
@media(min-width:980px){.thpp-menu-tile{display:none!important}}
@media(prefers-reduced-motion:reduce){.thpp-root *{scroll-behavior:auto!important;transition:none!important}}
