:root{--blue:#a6c8e8;--pale:#ebf3fb;--green:#e2efd9;--ink:#111b23;--line:#101820;--focus:#1458ac;--muted:#4c5b66;--red:#a52121;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#f1f5f8;font-size:16px;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:2px solid var(--line);background:white;padding:.65rem 1rem;border-radius:3px;min-height:44px;font-weight:600}button:hover{background:var(--pale)}button:disabled{opacity:.6;cursor:default}a{color:#174d83}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}input,select,textarea{min-height:44px;border:1px solid #657783;background:white;border-radius:2px;padding:.6rem;max-width:100%;font-size:1rem}textarea{resize:vertical;min-height:90px}input:disabled,select:disabled{background:#eef1f3}label{display:grid;gap:.4rem;font-weight:600}p{line-height:1.5}h1,h2,h3,p{margin-top:0}h1{font-size:1.5rem}h2{font-size:1.3rem}h3{font-size:1.1rem}[hidden]{display:none!important}.appbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:12px max(20px,env(safe-area-inset-left));max-width:1600px;margin:auto}.brand{display:flex;gap:.6rem;align-items:center;text-decoration:none;color:var(--ink);letter-spacing:.12em;font-size:1rem;font-weight:800}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border:2px solid var(--line);background:var(--blue);letter-spacing:0;font-size:1.3rem}nav{display:flex;gap:6px}nav button{border-color:transparent;background:none;min-height:44px;padding:.6rem .85rem}nav button[aria-current]{background:white;border-color:var(--line)}main{max-width:1600px;padding:0 20px 18px;margin:auto}.frame{background:var(--blue);border:3px solid var(--line);padding:22px}.paper{background:white;border:3px solid var(--line);padding:12px}.sheet-head{display:grid;grid-template-columns:1fr 1fr 1.05fr;align-items:center;gap:15px;margin:3px 0 24px}.sheet-head h1{text-align:center;margin:0;font-size:1.5rem}.sheet-head p{text-align:center;margin:8px 0 0}.office-link{display:inline-block;border:2px solid var(--line);padding:8px 14px;text-decoration:none;font-weight:700;color:var(--ink);min-height:40px}.sheet-pickers{display:grid;gap:8px}.sheet-pickers label{grid-template-columns:105px minmax(0,1fr);align-items:center;gap:8px;font-weight:400}.sheet-pickers select{width:100%;border:0;border-bottom:2px solid var(--line);border-radius:0}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;flex-wrap:wrap}.toolbar h1,.toolbar h2{margin:0}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.primary{background:var(--ink);color:white}.primary:hover{background:#29465f}.quiet{border-color:#657783;font-weight:400}.danger{color:var(--red);border-color:var(--red)}.hint{font-size:.9rem;color:var(--muted);line-height:1.5}.app-footer{display:flex;justify-content:space-between;max-width:1600px;margin:auto;padding:0 22px 20px;gap:12px;font-size:.85rem;color:var(--muted)}#notice{position:sticky;top:0;z-index:10;max-width:1560px;margin:0 auto 12px;padding:12px 18px;background:#fff4d4;border:2px solid #8e651a;line-height:1.5}#notice.error{background:#ffefed;border-color:var(--red)}.starting,.empty{padding:36px 14px;text-align:center}.empty p{color:var(--muted)}.timesheet{border-collapse:collapse;width:100%;table-layout:fixed;border:3px solid var(--line)}.timesheet th,.timesheet td{border:1px solid var(--line);padding:0;text-align:center;height:42px}.timesheet th{font-size:.9rem;font-weight:400;padding:8px 2px;background:var(--green);border-bottom:3px solid var(--line)}.timesheet th:first-child,.timesheet th:last-child{background:#dbeaf8}.timesheet .name-col{width:20%}.timesheet .hours-col{width:7.2%}.timesheet .total-col{width:8%}.timesheet .signature-col{width:21.6%}.timesheet tbody tr:nth-child(even){background:var(--pale)}.timesheet td:first-child,.timesheet td.total-cell,.timesheet td.signature-cell{border-left:3px solid var(--line);border-right:3px solid var(--line)}.timesheet input,.timesheet select{background:transparent;border:0;width:100%;min-width:0;min-height:40px;padding:7px 4px;border-radius:0}.timesheet select{font-size:.9rem}.timesheet input{text-align:center;-moz-appearance:textfield}.timesheet input::-webkit-inner-spin-button{appearance:none}.timesheet .sign-button{border:0;border-radius:0;background:transparent;width:100%;min-height:40px;padding:4px;font-weight:400;font-size:.9rem}.sign-button img{height:32px;max-width:95%;object-fit:contain;vertical-align:middle}.total-cell{font-variant-numeric:tabular-nums;font-weight:600}.sheet-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px}.week-total{font-weight:700}.employee-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.employee-button{text-align:left;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:76px;border:2px solid var(--line);background:white}.employee-button span{display:grid;gap:6px}.employee-button small{font-size:.9rem;font-weight:400;color:var(--muted)}.employee-button .open-label{font-size:.9rem;color:#174d83}.search{width:min(100%,340px)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-section{border:2px solid var(--line);padding:20px;display:grid;align-content:start;gap:14px;background:white}.settings-section h2,.settings-section p{margin:0}.job-list{list-style:none;padding:0;margin:0;display:grid;gap:6px}.job-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #ccd4da;padding:6px 0}.job-list button{font-size:.85rem;min-height:40px;padding:6px 9px}dialog{border:3px solid var(--line);padding:0;background:var(--blue);color:var(--ink);max-width:min(1100px,calc(100vw - 24px));width:1100px;max-height:calc(100dvh - 24px);border-radius:4px}dialog::backdrop{background:rgba(14,29,42,.55)}.dialog-shell{padding:14px}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 12px}.dialog-head h2{margin:0}.close{font-size:1.8rem;line-height:1;width:44px;padding:0}.dialog-body{background:white}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:white;padding:18px;border:2px solid var(--line)}.form-grid .wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;flex-wrap:wrap}.card-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:14px}.info-card{background:var(--blue);border:3px solid var(--line);padding:10px;display:grid;grid-template-columns:1.25fr 1fr;gap:10px;min-height:310px}.info-stack{display:grid;gap:9px}.info-field{border:2px solid var(--line);background:white;padding:9px;text-align:center;overflow-wrap:anywhere;white-space:pre-line}.info-field small{display:block;color:var(--muted);font-size:.8rem;margin-bottom:5px}.info-name{font-size:1.15rem;font-weight:700}.medical-box{text-align:left;min-height:100%;line-height:1.45}.osha-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-content:start}.photo-box{background:var(--blue);border:3px solid var(--line);padding:10px;display:grid;gap:8px;min-width:0}.photo-tile{background:white;border:2px solid var(--line);min-height:130px;display:grid;place-items:center;text-align:center;padding:8px;overflow:hidden;position:relative}.photo-tile img{max-width:100%;max-height:180px;object-fit:contain}.photo-box h3{font-size:.95rem;text-align:center;margin:0}.photo-box button{width:100%;font-size:.9rem;padding:8px;min-height:44px}.photo-buttons{display:grid;gap:6px}.photo-tip{font-size:.8rem;text-align:center;line-height:1.4;margin:0;color:var(--muted)}.file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}.sign-canvas{width:100%;height:200px;display:block;background:white;border:2px solid var(--line);touch-action:none}.sign-instructions{margin:0 0 10px}.signature-type{display:grid;gap:8px;margin-top:12px;background:white;padding:12px;border:2px solid var(--line)}.photo-large{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:auto}.install-help{line-height:1.6}.mobile-only{display:none}.field-error{border:2px solid var(--red)!important;background:#ffefed!important}.save-error{color:var(--red);font-weight:700}.print-only{display:none}.backup-input{display:none}.subtle-link{background:none;border:0;color:#174d83;text-decoration:underline;font-weight:400;padding:4px 8px}.form-error{color:var(--red);font-weight:600;margin:0;padding:10px;background:#ffefed;border:1px solid var(--red)}
.timesheet select{appearance:none;text-align:center}.timesheet .name-cell select{text-align:left}.sheet-pickers select{appearance:none;padding-right:25px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23101b23' stroke-width='2'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat}.print-value{display:none}.photo-tile:focus{outline:3px solid var(--focus);outline-offset:2px}
@media(max-width:380px){.sheet-head>div:first-child{flex-wrap:wrap}.brand{font-size:.72rem}nav button{font-size:.8rem;padding:6px}.timesheet td.hours-cell::before{font-size:.72rem}.sheet-pickers label{grid-template-columns:85px 1fr}}
@media print{.timesheet select,.sheet-pickers select{display:none}.print-value{display:block;padding:3px;font-size:9pt}.timesheet .sign-button:not(:has(img,.typed-signature)){visibility:hidden}.timesheet .name-cell .print-value{text-align:left}}
@media(min-width:1500px){.frame{padding:28px}.timesheet th,.timesheet td{height:44px}}
@media(max-width:1000px){.sheet-head{grid-template-columns:1fr 1fr}.sheet-head h1{grid-column:1/-1;grid-row:1;text-align:left}.card-layout{grid-template-columns:1fr}.osha-pair{max-width:640px}.timesheet .name-col{width:22%}.timesheet .hours-col{width:7.5%}.timesheet .total-col{width:8%}.timesheet .signature-col{width:17.5%}.sheet-head h1{font-size:1.35rem}.timesheet th{font-size:.8rem}.sheet-pickers label{grid-template-columns:95px 1fr}}
@media(max-width:700px){.appbar{padding:10px 10px;gap:5px;align-items:center}.brand{font-size:.8rem;gap:5px;letter-spacing:.06em}.brand-mark{width:29px;height:29px;font-size:1.05rem}nav{gap:0}nav button{padding:7px 8px;font-size:.875rem}main{padding:0 8px 12px}.frame{padding:8px;border-width:2px}.paper{padding:9px;border-width:2px}.sheet-head{display:flex;flex-direction:column;align-items:stretch;margin-bottom:16px;gap:10px}.sheet-head h1{order:-1;text-align:center;font-size:1.2rem}.sheet-head>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}.sheet-head p{margin:0;font-size:.9rem}.office-link{font-size:.85rem;padding:8px}.sheet-pickers label{grid-template-columns:96px 1fr;font-size:.9rem}.sheet-pickers select{font-size:1rem}.toolbar{gap:8px}.toolbar h1,.toolbar h2{font-size:1.25rem}.toolbar button{font-size:.9rem;padding:8px 10px}.timesheet,.timesheet tbody{display:block;border:0}.timesheet colgroup,.timesheet thead{display:none}.timesheet tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:2px solid var(--line);margin-bottom:12px;background:white;overflow:hidden}.timesheet tr:nth-child(even){background:var(--pale)}.timesheet td{display:flex;flex-direction:column;min-width:0;height:auto;border:0;border-top:1px solid var(--line);border-right:1px solid var(--line)}.timesheet td.name-cell{grid-column:1/4;border:0;border-right:2px solid var(--line);background:#dbeaf8;grid-row:1}.timesheet td.total-cell{grid-column:4;grid-row:1;border:0;background:#dbeaf8;justify-content:center;min-height:48px;font-size:1.1rem}.timesheet .total-cell::before{content:'Total';font-size:.75rem;font-weight:400}.timesheet td.hours-cell::before{content:attr(data-day);font-size:.85rem;background:var(--green);padding:5px 0;border-bottom:1px solid var(--line)}.timesheet .hours-cell input{height:48px;font-size:1.15rem}.timesheet td.signature-cell{border-left:0;border-right:0;min-height:78px}.timesheet td.signature-cell::before{content:'Signature';font-size:.8rem;padding-top:5px}.timesheet .sign-button{flex:1;font-size:.85rem}.timesheet select{min-height:50px;font-size:1rem;padding:8px}.timesheet tr.unused-row{display:none}.sheet-bottom{align-items:flex-start;gap:8px;flex-wrap:wrap}.mobile-only{display:inline-flex}.week-total{font-size:.95rem}.app-footer{padding:0 10px 16px;flex-wrap:wrap;font-size:.8rem;gap:4px}.settings-grid{grid-template-columns:1fr;gap:12px}.settings-section{padding:14px}.employee-list{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr;padding:12px}.form-grid .wide{grid-column:auto}.dialog-shell{padding:10px}.info-card{grid-template-columns:1fr;padding:8px}.medical-box{min-height:100px}.card-layout{gap:12px}.photo-box{padding:7px}.photo-tile{min-height:110px}.dialog-head h2{font-size:1.2rem}.form-actions{justify-content:stretch}.form-actions button{flex:1}.search{width:100%}.photo-buttons button{font-size:.85rem}.photo-tip{font-size:.8rem}}
@media print{@page{size:landscape;margin:10mm}body{background:white;color:black;font-size:10pt}.appbar,.app-footer,#notice,.toolbar,.sheet-bottom,dialog,.no-print{display:none!important}main{padding:0;max-width:none}.frame{padding:12px;border:2px solid black;background:var(--blue)!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.paper{padding:8px;border:2px solid black}.sheet-head{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:12px}.sheet-head h1{grid-column:auto;grid-row:auto;font-size:14pt;text-align:center}.sheet-pickers label{grid-template-columns:80px 1fr;font-size:10pt}.sheet-head>div:first-child{display:block}.sheet-head p{font-size:10pt}.office-link{font-size:9pt;min-height:0;padding:4px}.timesheet{display:table;border-collapse:collapse;border:2px solid black;width:100%;table-layout:fixed}.timesheet colgroup{display:table-column-group}.timesheet thead{display:table-header-group}.timesheet tbody{display:table-row-group}.timesheet tr,.timesheet tr.unused-row{display:table-row;border:0;page-break-inside:avoid}.timesheet th,.timesheet td{display:table-cell;height:24px;font-size:9pt;padding:0;border:1px solid black!important;vertical-align:middle}.timesheet td::before{display:none!important}.timesheet th{padding:5px 2px;font-size:9pt}.timesheet .name-col{width:20%}.timesheet .hours-col{width:7.2%}.timesheet .total-col{width:8%}.timesheet .signature-col{width:21.6%}.timesheet td.total-cell{font-size:10pt;background:transparent}.timesheet td.name-cell{background:transparent}.timesheet tr:nth-child(even){background:var(--pale)!important}.timesheet input,.timesheet select,.sheet-pickers select{appearance:none;border:0;min-height:0;height:auto;font-size:9pt;padding:3px;color:black}.timesheet .sign-button{min-height:22px;font-size:9pt;padding:0;color:black}.sign-button img{height:22px}.timesheet td.signature-cell{min-height:0}.timesheet .hours-cell input{height:auto;font-size:9pt}.print-only{display:block}body.print-card main{display:none!important}body.print-card dialog{display:block!important;position:static;max-width:none;width:100%;max-height:none;border:0;padding:0}body.print-card dialog .dialog-head,body.print-card dialog .form-actions,body.print-card dialog .photo-buttons,body.print-card dialog .photo-tip{display:none!important}body.print-card .dialog-shell{padding:0}body.print-card .card-layout{display:grid;grid-template-columns:1.3fr 1fr}body.print-card .info-card{grid-template-columns:1.25fr 1fr}.photo-tile img{max-height:220px}*{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
@media print{html{background:white!important}.timesheet th{font-size:8pt}}
@media screen and (max-width:380px){.brand{font-size:.72rem}nav button{font-size:.8rem;padding:6px}.timesheet td.hours-cell::before{font-size:.72rem}.sheet-pickers label{grid-template-columns:85px 1fr}}

.entry-list{display:grid;gap:10px}.entry-list button{text-align:left}.timesheet .entry-trigger{border:0;border-radius:0;background:transparent;width:100%;min-height:40px;padding:7px 4px;font-size:.9rem;font-weight:400}.timesheet .entry-name{display:flex;align-items:center;justify-content:space-between;text-align:left}.timesheet .entry-trigger:hover{background:#dbeaf8}.timesheet select{padding-right:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='m1 1 3.5 3.5L8 1' fill='none' stroke='%234c5b66'/%3E%3C/svg%3E");background-position:right 4px center;background-repeat:no-repeat}
@media(max-width:700px){.timesheet .entry-trigger{min-height:50px;font-size:1rem}}
@media print{.timesheet .entry-trigger{display:none}.timesheet select{background-image:none}}
.entry-list button{min-width:0;overflow-wrap:anywhere}

.brand-name{display:grid;gap:4px;line-height:1}.brand-name small{font-size:.62em;letter-spacing:.09em}
@media(max-width:380px){.brand{gap:3px;letter-spacing:.03em}.brand-mark{width:25px;height:25px}.brand-name{gap:3px}}

.sheet-version{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 14px}.sheet-version>span:first-child{font-weight:600}.version-options{display:flex;gap:0}.version-options button{min-width:96px;border-radius:0}.version-options button+button{border-left:0}.version-options button[aria-pressed="true"]{background:var(--blue);box-shadow:inset 0 -3px 0 var(--line)}.mode-description{font-size:.9rem;color:var(--muted)}
@media(max-width:420px){.sheet-version{gap:8px}.version-options button{min-width:85px;padding:8px 10px}.mode-description{flex-basis:100%}}

#personal-name-form{padding:18px;border:2px solid var(--line)}
