:root{--tp-navy:#1f3557;--tp-orange:#d97706;--tp-bg:#f6f7f9;--tp-card:#fff;--tp-border:#dfe3e8;--tp-muted:#667085;--tp-danger:#b42318;--tp-success:#027a48}
*{box-sizing:border-box}
[hidden]{display:none!important}
body.time-pay-page{margin:0;overflow-x:hidden;background:var(--tp-bg);color:#172033;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;padding-bottom:calc(86px + env(safe-area-inset-bottom))}
.tp-shell{max-width:1180px;margin:0 auto;padding:22px 18px 100px}
.tp-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}
.tp-heading h1{margin:0;font-size:30px;line-height:1.1}.tp-heading p{margin:7px 0 0;color:var(--tp-muted);font-weight:700}
.tp-language{min-height:44px;border:1px solid var(--tp-border);border-radius:10px;background:#fff;color:var(--tp-navy);font-weight:900;padding:8px 12px}
.tp-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 0 14px;scrollbar-width:none}.tp-tabs::-webkit-scrollbar{display:none}
.tp-tab{min-height:44px;border:1px solid var(--tp-border);border-radius:999px;background:#fff;color:var(--tp-navy);font-weight:900;padding:9px 14px;white-space:nowrap}
.tp-tab.active{background:var(--tp-navy);border-color:var(--tp-navy);color:#fff}
.tp-panel{display:none}.tp-panel.active{display:block}
.tp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tp-card{background:var(--tp-card);border:1px solid var(--tp-border);border-radius:14px;padding:16px;box-shadow:0 7px 20px rgba(16,24,40,.05)}
.tp-stat span{display:block;color:var(--tp-muted);font-size:13px;font-weight:850}.tp-stat strong{display:block;margin-top:8px;font-size:27px;color:var(--tp-navy)}
.tp-section{margin-top:16px}.tp-section h2{margin:0 0 5px;font-size:20px}.tp-section>p{margin:0 0 14px;color:var(--tp-muted);font-weight:700;line-height:1.45}
.tp-empty{border:1px dashed #cbd2dc;border-radius:12px;padding:18px;color:var(--tp-muted);background:#fbfcfd;font-weight:750;line-height:1.45}
.tp-notice{border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:12px;padding:12px 14px;font-weight:800;line-height:1.45;margin-bottom:14px}
.tp-status{min-height:22px;margin:10px 0;color:var(--tp-muted);font-weight:850}.tp-status.error{color:var(--tp-danger)}.tp-status.success{color:var(--tp-success)}.tp-status.warning{color:#9a3412}
.tp-table-wrap{overflow:auto;border:1px solid var(--tp-border);border-radius:12px;background:#fff}
.tp-table{width:100%;border-collapse:collapse;min-width:760px}.tp-table th,.tp-table td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--tp-border);vertical-align:top}.tp-table th{background:#f8fafc;color:#475467;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.tp-table td{font-size:14px;font-weight:700}
.tp-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.tp-form .full{grid-column:1/-1}
.tp-form label{display:grid;gap:6px;color:#344054;font-size:13px;font-weight:900}.tp-form input,.tp-form select,.tp-form textarea{width:100%;min-height:46px;border:1px solid #cfd4dc;border-radius:10px;background:#fff;color:#172033;font:inherit;padding:9px 11px}.tp-form textarea{min-height:88px;resize:vertical}
.tp-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:0;border-radius:10px;background:var(--tp-navy);color:#fff;font:inherit;font-weight:950;padding:10px 16px}.tp-button.secondary{background:#fff;color:var(--tp-navy);border:1px solid var(--tp-border)}.tp-button.danger{background:#fff1f0;color:var(--tp-danger);border:1px solid #fecdca}.tp-button:disabled{opacity:.55}
.tp-pill{display:inline-flex;border-radius:999px;padding:5px 8px;background:#eef2f6;color:var(--tp-navy);font-size:12px;font-weight:900}
.tp-mobile-clock{max-width:560px;margin:0 auto;text-align:center}.tp-clock-time{font-size:42px;font-weight:950;color:var(--tp-navy);font-variant-numeric:tabular-nums}.tp-clock-date{color:var(--tp-muted);font-weight:850;margin-bottom:18px}.tp-clock-action{width:100%;min-height:64px;border:0;border-radius:15px;background:var(--tp-orange);color:#111827;font-size:20px;font-weight:950}
.tp-worker-name{margin:0 0 8px;color:var(--tp-navy);font-size:20px;font-weight:950}.tp-clock-state{margin:14px 0;color:var(--tp-navy);font-size:18px;font-weight:950}
.tp-assignment{text-align:left;border:1px solid #d6e4ff;border-radius:12px;background:#f5f8ff;padding:14px;margin:16px 0}.tp-assignment span{display:block;color:var(--tp-muted);font-size:12px;font-weight:900;text-transform:uppercase}.tp-assignment strong{display:block;margin-top:5px;font-size:19px}.tp-assignment p{margin:5px 0;color:#475467;font-weight:750}.tp-assignment .tp-button{margin-top:8px;width:100%}
.tp-today-total{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding-top:15px;border-top:1px solid var(--tp-border);font-weight:900}.tp-today-total strong{font-size:20px;color:var(--tp-navy)}
.tp-clock-confirmation{max-width:560px;margin:0 auto;text-align:center;border-color:#abefc6;background:#ecfdf3}.tp-clock-confirmation h2{color:#05603a}.tp-clock-confirmation p{margin:7px 0}.tp-clock-confirmation .tp-button{width:100%;margin-top:14px}
.tp-worker-history{max-width:560px;margin-left:auto;margin-right:auto}.tp-mobile-list.visible{display:grid;gap:9px}.tp-recent-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border:1px solid var(--tp-border);border-radius:11px;padding:12px}.tp-recent-entry div{display:grid;gap:3px}.tp-recent-entry div:nth-child(2){text-align:right}.tp-recent-entry span{color:var(--tp-muted);font-size:12px;font-weight:750}.tp-problem-link{grid-column:1/-1;justify-self:start;border:0;background:transparent;color:var(--tp-navy);font-weight:900;text-decoration:underline;padding:8px 0}
.tp-choice-grid label span{display:grid;gap:3px}.tp-choice-grid small{color:var(--tp-muted);font-weight:700}
.tp-worker-view .tp-tabs{display:none}.tp-worker-view .tp-heading{max-width:560px;margin-left:auto;margin-right:auto}
.tp-clock-action.clock-out{background:#b42318;color:#fff}.tp-clock-secondary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.tp-active-summary{margin:14px 0;padding:14px;border:1px solid #abefc6;border-radius:12px;background:#ecfdf3;color:#05603a;text-align:left;font-weight:800;line-height:1.45}.tp-active-summary strong{display:block;font-size:18px}
.tp-boundary{margin-top:18px;color:var(--tp-muted);font-size:12px;font-weight:750;line-height:1.5}
.tp-dialog{width:min(680px,calc(100% - 24px));max-height:90vh;border:0;border-radius:18px;padding:0;color:#172033;background:#fff;box-shadow:0 24px 80px rgba(16,24,40,.3)}.tp-dialog::backdrop{background:rgba(16,24,40,.55)}
.tp-dialog form{padding:18px;overflow:auto;max-height:90vh}.tp-dialog-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.tp-dialog-heading h2{margin:0;font-size:22px}.tp-dialog-heading p{margin:3px 0 0;color:var(--tp-muted);font-weight:800}.tp-dialog-close{width:44px;height:44px;border:0;border-radius:50%;background:#f2f4f7;color:#344054;font-size:25px}
.tp-manual-dialog{width:min(620px,calc(100% - 24px));max-height:min(760px,calc(100dvh - 32px));overflow:hidden}.tp-manual-dialog form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:min(760px,calc(100dvh - 32px));padding:0;overflow:hidden}.tp-manual-header{padding:16px 18px 13px;border-bottom:1px solid var(--tp-border);background:#fff}.tp-manual-header h2{font-size:20px}.tp-manual-header p{font-size:13px}.tp-manual-body{overflow-y:auto;padding:16px 18px 22px;overscroll-behavior:contain}.tp-manual-form{gap:14px}.tp-manual-form small{color:var(--tp-muted);font-size:12px;font-weight:750}.tp-manual-time-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tp-manual-time-row label,.tp-manual-custom label{display:grid;gap:6px;color:#344054;font-size:13px;font-weight:900}.tp-manual-custom{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px;border:1px solid var(--tp-border);border-radius:11px;background:#f8fafc}.tp-manual-known-worker{min-height:46px;display:flex;align-items:center;border:1px solid #cfd4dc;border-radius:10px;background:#f8fafc;padding:9px 11px;color:var(--tp-navy);font-weight:900}.tp-note-toggle{min-height:44px;border:0;background:transparent;color:var(--tp-navy);font:inherit;font-weight:900;padding:5px 0}.tp-note-toggle+label{margin-top:8px}.tp-manual-validation{min-height:20px;margin-top:10px;color:var(--tp-danger);font-size:13px;font-weight:850}.tp-manual-validation.warning{color:#9a3412}.tp-manual-footer{position:sticky;bottom:0;z-index:2;display:grid;grid-template-columns:minmax(110px,auto) minmax(190px,1fr);align-items:center;gap:14px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--tp-border);background:rgba(255,255,255,.97);box-shadow:0 -8px 24px rgba(16,24,40,.08)}.tp-manual-total{display:grid;gap:2px}.tp-manual-total span{color:var(--tp-muted);font-size:12px;font-weight:850}.tp-manual-total strong{color:var(--tp-navy);font-size:22px;line-height:1.1}.tp-manual-footer .tp-button{width:100%;min-height:50px}.tp-manual-form :focus-visible,.tp-manual-footer :focus-visible,.tp-manual-header :focus-visible{outline:3px solid rgba(217,119,6,.32);outline-offset:2px}
.tp-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:16px 0}.tp-choice-grid label{display:flex;align-items:center;gap:9px;min-height:58px;border:1px solid var(--tp-border);border-radius:12px;padding:11px;font-weight:900}.tp-choice-grid label:has(input:checked){border-color:var(--tp-navy);background:#eef2f6}.tp-choice-grid input{width:20px;height:20px}
.tp-clock-fields{margin-top:12px}.tp-location-consent{margin:15px 0;border:1px solid #bfdbfe;background:#eff6ff;border-radius:12px;padding:12px;color:#1e3a8a;font-weight:750;line-height:1.45}.tp-location-consent p{margin:0 0 10px}.tp-location-consent label{font-weight:900}.tp-location-consent input{width:20px;height:20px;vertical-align:middle}
.tp-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}
.tp-edit-delete{display:flex;justify-content:flex-start;margin-top:16px;padding-top:14px;border-top:1px solid var(--tp-border)}
.tp-filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end;margin:14px 0}.tp-filter-grid>*{min-width:0}.tp-filter-grid label{display:grid;gap:5px;color:var(--tp-muted);font-size:12px;font-weight:900}.tp-filter-grid input,.tp-filter-grid select{width:100%;min-width:0;min-height:44px;border:1px solid var(--tp-border);border-radius:9px;background:#fff;padding:8px 10px;font:inherit}.tp-filter-grid .tp-button{max-width:100%;white-space:normal}
.tp-day-planner{margin-bottom:16px}.tp-day-planner-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}.tp-day-planner-head h2{margin:0 0 5px;font-size:20px}.tp-day-planner-head p{margin:0;color:var(--tp-muted);font-weight:750;line-height:1.45}.tp-day-planner-controls{display:grid;grid-template-columns:minmax(190px,1fr) minmax(220px,1fr);gap:12px;align-items:end}.tp-day-planner-controls label{display:grid;gap:5px;color:var(--tp-muted);font-size:12px;font-weight:900}.tp-day-planner-controls input[type=date]{min-height:46px;border:1px solid var(--tp-border);border-radius:10px;background:#fff;font:inherit;padding:9px 11px}.tp-day-amount{min-width:0;margin:0;padding:8px;border:1px solid var(--tp-border);border-radius:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.tp-day-amount legend{padding:0 5px;color:var(--tp-muted);font-size:12px;font-weight:900}.tp-day-amount label{display:flex;align-items:center;justify-content:center;gap:7px;min-height:38px;border-radius:9px;background:#f8fafc;color:var(--tp-navy);font-size:13px}.tp-day-amount input{width:18px;height:18px}.tp-day-planner-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.tp-day-workers{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px}.tp-day-worker{position:relative;min-height:66px;text-align:left;border:1px solid var(--tp-border);border-radius:12px;background:#fff;color:#172033;padding:11px 42px 11px 12px;font:inherit;transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}.tp-day-worker strong,.tp-day-worker span{display:block}.tp-day-worker strong{font-weight:950;line-height:1.2}.tp-day-worker span{margin-top:4px;color:var(--tp-muted);font-size:12px;font-weight:850}.tp-day-worker::after{content:"";position:absolute;right:12px;top:50%;width:24px;height:24px;border:2px solid #cbd5e1;border-radius:50%;transform:translateY(-50%);background:#fff}.tp-day-worker.selected{border-color:#03543f;background:#047857;color:#fff;box-shadow:0 0 0 3px rgba(4,120,87,.2);transform:translateY(-1px)}.tp-day-worker.selected span{color:#dcfce7}.tp-day-worker.selected::after{content:"✓";display:grid;place-items:center;border-color:#fff;background:#fff;color:#047857;font-size:16px;font-weight:950}.tp-day-save{width:100%;margin-top:8px}
.tp-actions-row{display:flex;justify-content:flex-end;margin:12px 0}.tp-review-list{display:grid;gap:10px}.tp-review-card{border:1px solid var(--tp-border);border-radius:12px;padding:13px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.tp-review-card h3{margin:0;font-size:16px}.tp-review-card p{margin:5px 0;color:var(--tp-muted);font-weight:750}.tp-review-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.tp-review-actions button{min-height:40px;border:1px solid var(--tp-border);border-radius:9px;background:#fff;color:var(--tp-navy);font-weight:900;padding:8px 11px}.tp-review-actions .approve{background:#ecfdf3;color:#027a48;border-color:#abefc6}.tp-review-actions .reject{background:#fff1f0;color:#b42318;border-color:#fecdca}
.tp-daily-review{flex:1 1 100%;display:grid;gap:7px;padding:10px;border:1px solid var(--tp-border);border-radius:11px;background:#f8fafc}.tp-daily-review>strong{font-size:14px}.tp-daily-decision{font-size:13px;color:var(--tp-muted);font-weight:800}.tp-daily-decision.saved{color:var(--tp-success)}.tp-daily-options{display:flex;flex-wrap:wrap;gap:7px}.tp-review-actions .tp-daily-options button{flex:1 1 145px;background:#fff}.tp-review-actions .tp-daily-options button.selected{background:#067647;color:#fff;border-color:#067647;box-shadow:0 0 0 3px rgba(6,118,71,.14)}.tp-review-actions .tp-daily-options button.selected.not-payable{background:#b42318;border-color:#b42318}.tp-review-actions .tp-daily-options button:disabled{cursor:default;opacity:1}
.tp-report-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.tp-report-heading h2{margin:0}.tp-report-heading p{margin:5px 0;color:var(--tp-muted);font-weight:800}.tp-report-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}.tp-report-summary{margin-top:14px}
.tp-print-brand{display:flex;align-items:center;gap:13px;margin-bottom:18px;padding-bottom:15px;border-bottom:3px solid var(--tp-orange)}.tp-print-brand img{width:68px;height:68px;object-fit:contain;border-radius:10px}.tp-print-brand div{display:grid;gap:4px}.tp-print-brand strong{color:var(--tp-navy);font-size:22px}.tp-print-brand span{color:var(--tp-muted);font-size:13px;font-weight:750}
.tp-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
@media(max-width:900px){.tp-shell{padding:18px 14px 105px}.tp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-heading h1{font-size:25px}.tp-form{grid-template-columns:1fr}.tp-form .full{grid-column:auto}.tp-table-wrap{display:none}.tp-mobile-list{display:grid!important;gap:10px}}
@media(max-width:900px){.tp-filter-grid{grid-template-columns:1fr 1fr}.tp-review-card{grid-template-columns:1fr}.tp-review-actions button{flex:1}.tp-actions-row .tp-button{width:100%}}
@media(max-width:900px){.tp-settings-grid{grid-template-columns:1fr}}
@media(max-width:430px){.tp-grid{grid-template-columns:1fr 1fr}.tp-card{padding:13px}.tp-stat strong{font-size:22px}.tp-heading{align-items:center}.tp-heading p{font-size:13px}.tp-tabs{margin-right:-14px;padding-right:14px}}
@media(max-width:600px){.tp-shell{padding-bottom:calc(150px + env(safe-area-inset-bottom))}.tp-manager-view .tp-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-right:0;padding-right:0}.tp-manager-view .tp-tab{width:100%;white-space:normal}.tp-filter-grid{grid-template-columns:1fr}.tp-filter-grid .tp-button{width:100%}.tp-day-planner-head,.tp-day-planner-controls{grid-template-columns:1fr}.tp-day-planner-head{display:grid}.tp-day-planner-head .tp-pill{justify-self:start}.tp-day-amount{grid-template-columns:1fr 1fr}.tp-day-planner-toolbar .tp-button{flex:1}.tp-day-workers{grid-template-columns:1fr}}
@media(max-width:520px){.tp-choice-grid{grid-template-columns:1fr}.tp-dialog{width:100%;max-height:92dvh;margin:auto 0 0;border-radius:18px 18px 0 0}.tp-dialog form{max-height:92dvh;padding-bottom:calc(18px + env(safe-area-inset-bottom))}.tp-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.tp-clock-secondary{grid-template-columns:1fr}.tp-manual-dialog{max-height:calc(100dvh - env(safe-area-inset-top));border-radius:18px 18px 0 0}.tp-manual-dialog form{max-height:calc(100dvh - env(safe-area-inset-top));padding-bottom:0}.tp-manual-header{padding:14px 16px 11px}.tp-manual-body{padding:14px 16px 18px}.tp-manual-form{grid-template-columns:1fr;gap:13px}.tp-manual-footer{padding-left:16px;padding-right:16px}.tp-manual-custom{grid-template-columns:1fr}}
@media(max-width:340px){.tp-manual-time-row{grid-template-columns:1fr}.tp-manual-footer{grid-template-columns:90px minmax(0,1fr);gap:9px}.tp-manual-total strong{font-size:19px}}
.tp-dialog,.tp-dialog *{max-width:100%}body.mobile-shell .tp-manual-header{display:flex}.tp-manual-form,.tp-manual-time-row,.tp-manual-custom{min-width:0}.tp-manual-form input,.tp-manual-form select,.tp-manual-form textarea{width:100%;min-width:0}.tp-manual-time-row label,.tp-manual-custom label{min-width:0}.tp-manual-validation{overflow-wrap:anywhere}
.tp-manual-time-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.tp-manual-form input,.tp-manual-form select,.tp-manual-form textarea{min-width:0;font-size:16px;line-height:1.25}
.tp-mobile-list{display:none}
/* Shared desktop Time layout. Employee-facing mobile clock remains unchanged. */
.tp-eyebrow{display:none}
@media(min-width:901px){
  body.time-pay-page{padding-bottom:0}
  body.time-pay-page .tp-shell{box-sizing:border-box;width:auto;max-width:none;margin:0 0 0 230px;padding:42px 54px 64px}
  body.time-pay-page .tp-eyebrow{display:block;margin-bottom:8px;color:var(--color-brand-accent);font-size:13px;font-weight:800;letter-spacing:.13em}
  body.time-pay-page .tp-heading{margin-bottom:28px}
  body.time-pay-page .tp-heading h1{font-size:38px;letter-spacing:-.025em}
  body.time-pay-page .tp-heading p{font-size:17px;font-weight:500}
  body.time-pay-page .tp-tabs{gap:4px;margin-bottom:22px;padding:5px;border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface);overflow:visible}
  body.time-pay-page .tp-tab{flex:1;border:0;border-radius:var(--radius-md);background:transparent}
  body.time-pay-page .tp-tab.active{background:var(--color-brand-primary);color:#fff}
  body.time-pay-page .tp-card{border-color:var(--color-border);border-radius:var(--radius-lg);box-shadow:none}
  body.time-pay-page .tp-grid{gap:16px}
  body.time-pay-page .tp-stat{padding:20px}
  body.time-pay-page .tp-table-wrap{border-radius:var(--radius-lg)}
  body.time-pay-page .tp-table th{background:var(--color-surface-muted)}
  body.time-pay-page .tp-filter-grid input,body.time-pay-page .tp-filter-grid select{min-height:48px;border-radius:var(--radius-md)}
}
@page{size:landscape;margin:.35in}
@media print{html,body.time-pay-page{height:auto!important;min-height:0!important;background:#fff;padding:0!important}.desktop-app-nav,.bottom-nav,.tp-heading,.tp-tabs,.tp-status,.tp-report-controls,.tp-report-summary,.tp-report-actions,.tp-boundary{display:none!important}.tp-shell,.tp-panel[data-section="reports"],#reportOutput,.tp-print-report{height:auto!important;min-height:0!important;margin:0!important;padding:0!important}.tp-shell{max-width:none}.tp-panel{display:none!important}.tp-panel[data-section="reports"]{display:block!important}#reportOutput{display:block!important}.tp-print-report{border:0;box-shadow:none;break-after:auto;page-break-after:auto}.tp-print-brand{margin-bottom:12px;padding-bottom:10px}.tp-print-brand img{width:54px;height:54px}.tp-report-heading{margin-bottom:10px}.tp-table-wrap.tp-report-table-wrap{display:block!important;overflow:visible;border:0}.tp-table{min-width:0;font-size:9px;table-layout:auto}.tp-table th,.tp-table td{padding:6px 7px}.tp-report-table-wrap th:last-child,.tp-report-table-wrap td:last-child{display:none!important}.tp-report-table-wrap tr{break-inside:avoid;page-break-inside:avoid}.tp-mobile-list{display:none!important}}
