:root{--bg:#eef2f6;--surface:#fff;--surface-2:#f6f8fa;--border:#e2e8f0;--border-strong:#cbd5e1;--ink:#1f2733;--text:#334155;--text-muted:#64748b;--primary:#0d6d63;--primary-dark:#0b5a52;--primary-soft:#d5efeb;--danger:#e11d48;--warn:#f59e0b;--shadow:0 1px 2px #0f172a0d, 0 6px 16px #0f172a12;--radius:12px;--radius-sm:8px;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}*{box-sizing:border-box}html,body{min-height:100vh;margin:0;padding:0}body{background:var(--bg)}h1,h2,h3{color:var(--ink);margin:0}input,select,textarea,button{color:var(--ink);font-family:inherit;font-size:1rem}input,select,textarea{color:var(--ink);background:0 0;border:none}input:focus,select:focus,textarea:focus{outline:none}.field input,.field select,textarea.boxed,.shared-bar input{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;padding:.5rem .65rem}.field input:focus,.field select:focus,.shared-bar input:focus,.shared-bar select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.app{max-width:1180px;margin:0 auto;padding:0 1rem 3rem}.app-header{z-index:30;background:var(--bg);border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 0;display:flex;position:sticky;top:0}.brand{align-items:center;gap:.8rem;display:flex}.logo{background:linear-gradient(135deg, var(--primary), var(--primary-dark));color:#fff;width:46px;height:46px;box-shadow:var(--shadow);border-radius:12px;place-items:center;font-weight:800;display:grid}.brand h1{font-size:1.15rem}.subtitle{color:var(--text-muted);margin:.15rem 0 0;font-size:.82rem}.header-actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.save-badge{background:var(--surface-2);border:1px solid var(--border);color:var(--text-muted);border-radius:999px;padding:.3rem .6rem;font-size:.72rem;font-weight:600}.save-badge.saved{color:var(--primary-dark);background:var(--primary-soft);border-color:#0000}.save-badge.saving{color:var(--warn)}.btn{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);border-radius:var(--radius-sm);cursor:pointer;padding:.5rem .9rem;font-size:.85rem;font-weight:600;transition:background .15s,border-color .15s,transform 50ms}.btn:hover{background:var(--surface-2);border-color:var(--primary)}.btn:active{transform:translateY(1px)}.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark)}.btn-danger{color:var(--danger);border-color:#fecdd3}.btn-danger:hover{border-color:var(--danger);background:#fff1f2}.shared-bar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.85rem;margin:1rem 0;padding:1rem;display:grid}.field{flex-direction:column;gap:.3rem;display:flex}.field>span{color:var(--text-muted);font-size:.78rem;font-weight:600}.tabs{z-index:25;background:var(--bg);flex-wrap:wrap;gap:.35rem;margin-bottom:1rem;padding:.5rem 0;display:flex;position:sticky;top:68px}.tab{color:var(--text-muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;padding:.55rem 1rem;font-weight:600;transition:all .15s}.tab:hover{color:var(--ink);background:var(--surface-2)}.tab.active{background:var(--surface);color:var(--primary-dark);border-color:var(--border);box-shadow:var(--shadow)}.tab-pane{display:none}.tab-pane.active{display:block}.sheet{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);color:#000;margin-bottom:1.25rem;padding:1.5rem}.sheet.landscape{overflow:hidden}.sheet-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:.75rem;display:flex}.sheet-head-fields{flex-wrap:wrap;gap:1.25rem;font-size:.9rem;display:flex}.sheet-head-fields b{color:var(--text-muted);font-weight:600}.sheet-title{font-size:1.1rem;font-weight:700}.grid-scroll{-webkit-overflow-scrolling:touch;border:1px solid #000;border-radius:4px;overflow-x:auto}.grid{border-collapse:collapse;table-layout:fixed;width:max-content;min-width:100%;font-size:.8rem}.col-label{width:210px}.col-day{width:34px}.grid th,.grid td{border:1px solid #b9c2cc;padding:0}.grid thead th{z-index:5;background:var(--surface-2);color:var(--text-muted);font-weight:700;position:sticky;top:0}.day-head{text-align:center;font-size:.72rem;padding:.3rem 0!important}.row-head{text-align:left;color:#000;background:var(--surface);white-space:normal;font-size:.78rem;font-weight:600;line-height:1.2;padding:.35rem .5rem!important}.row-head.indent{padding-left:1.2rem!important}.sticky-col{z-index:6;position:sticky;left:0;box-shadow:1px 0 #b9c2cc}thead .sticky-col{z-index:7}.section-row .row-head{background:var(--primary-soft);color:var(--primary-dark);text-transform:uppercase;letter-spacing:.02em;font-size:.72rem;font-weight:700}.section-row .section-note,.subnote-row .section-note{background:var(--primary-soft);color:var(--primary-dark);text-align:left;white-space:normal;padding:.25rem .5rem;font-size:.7rem;font-style:normal}.subnote-row .row-head{background:var(--surface-2);text-transform:none;font-weight:600}.subnote-row td{background:var(--surface-2)}.cell-select,.cell-text{text-align:center;color:#000;background:0 0;border:none;width:100%;padding:.28rem .1rem}.cell-select{appearance:none;cursor:pointer}.cell-select:focus,.cell-text:focus{box-shadow:inset 0 0 0 2px var(--primary);background:#fff}.check-cell{text-align:center;vertical-align:middle}.check-cell input{width:15px;height:15px;accent-color:var(--primary);cursor:pointer;margin:.32rem auto;display:block}.sheet-foot{flex-wrap:wrap;justify-content:space-between;gap:1.5rem 2.5rem;margin-top:1rem;font-size:.85rem;display:flex}.foot-signatures,.foot-review{flex-direction:column;flex:1;gap:.5rem;min-width:260px;display:flex}.sig-line{align-items:baseline;gap:.4rem;display:flex}.sig-line>span{white-space:nowrap;color:#000}.sig-line input{border-bottom:1px solid #000;flex:1;min-width:60px;padding:0 .25rem 1px}.sig-line em{color:var(--text-muted);font-style:normal;font-weight:700}.level-of-care{align-items:center;gap:.75rem;font-weight:600;display:flex}.loc-opt{align-items:center;gap:.25rem;display:flex}.uline-field{align-items:baseline;gap:.4rem;font-size:.9rem;display:flex}.uline-field>span{white-space:nowrap;font-weight:600}.uline-field input{color:#000;border-bottom:1px solid #000;flex:1;min-width:40px;padding:0 .25rem 1px}.uline-field input:focus{border-bottom-color:var(--primary);background:var(--primary-soft)}.uline-field.short input{flex:none;max-width:70px}.invoice-head{border-bottom:2px solid #000;align-items:center;gap:1.5rem;margin-bottom:1rem;padding-bottom:.5rem;display:flex}.invoice-title{text-align:center;flex:1;font-size:1.4rem;font-weight:800;text-decoration:underline}.invoice-top{grid-template-columns:1.1fr 1fr;gap:1.5rem;margin-bottom:1rem;display:grid}.invoice-fields{flex-direction:column;gap:.7rem;display:flex}.invoice-instruction{margin:.25rem 0 0;font-size:.92rem;line-height:1.4}.away-q{margin-bottom:.75rem}.away-q p{margin:0 0 .25rem;font-size:.9rem}.away-row{flex-wrap:wrap;align-items:center;gap:.85rem;font-size:.9rem;display:flex}.circle-one{font-weight:600}.radio-opt,.loc-opt{cursor:pointer}.radio-opt{align-items:center;gap:.25rem;font-weight:600;display:inline-flex}.inline-field{align-items:baseline;gap:.3rem;display:inline-flex}.inline-field input{border-bottom:1px solid #000;width:110px;padding:0 .2rem 1px}.invoice-calendar{border-collapse:collapse;table-layout:fixed;width:100%;margin:.75rem 0 1.25rem}.invoice-calendar th{background:var(--surface-2);border:1px solid #000;padding:.3rem 0;font-size:.76rem}.invoice-calendar td{vertical-align:top;border:1px solid #000;height:64px;padding:2px 3px;position:relative}.invoice-calendar td.empty-day{background:repeating-linear-gradient(45deg,#f1f5f9,#f1f5f9 4px,#e8edf2 4px 8px)}.cal-date{color:#475569;font-size:.72rem;font-weight:700}.cal-initials{text-align:center;color:#000;width:100%;margin-top:.9rem;font-weight:600;display:block}.cal-initials:focus{background:var(--primary-soft)}.invoice-sign{gap:1.5rem;margin-bottom:.6rem;display:flex}.uline-field.wide{flex:2}.invoice-note{background:#fff7cc;margin:1rem 0;padding:.5rem .6rem;font-size:.9rem;line-height:1.35}.office-use{border-top:2px solid #000;padding-top:.5rem}.office-use h3{margin-bottom:.75rem;font-size:.95rem;text-decoration:underline}.office-grid{grid-template-columns:1fr 1fr;gap:1rem 2rem;display:grid}.office-col{flex-direction:column;gap:.6rem;min-width:0;display:flex}.office-levels{flex-wrap:wrap;gap:1.5rem;min-width:0;display:flex}.notes-block{margin-bottom:1rem}.notes-label{margin:0 0 .4rem;font-size:.85rem}.notes-area,.report-other{resize:vertical;color:#000;border:1px solid #000;border-radius:4px;width:100%;padding:.5rem;line-height:1.5}.notes-area:focus,.report-other:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.legend-columns{border:1px solid #000;border-radius:4px;gap:1.5rem;margin-bottom:1rem;padding:.75rem;display:grid}.legend-columns.three{grid-template-columns:repeat(3,1fr)}.legend-columns h3{margin-bottom:.4rem;font-size:.85rem}.code-list{flex-direction:column;gap:.3rem;margin:0;padding:0;list-style:none;display:flex}.code-list li{align-items:center;gap:.45rem;font-size:.82rem;display:flex}.code-list li b{min-width:14px}.other-input{min-width:60px;font-size:inherit;border-bottom:1px solid #000;flex:1;padding:0 .2rem}.grid-title{margin:.5rem 0;font-size:.9rem;font-weight:700}.report-title{text-align:center;flex:1;font-size:1.2rem;font-weight:800;text-decoration:underline}.report-idrow{gap:2rem;margin-bottom:1rem;display:flex}.report-section-title{text-align:center;margin:1rem 0 .5rem;font-size:1rem;font-weight:700}.report-section-title.underline{text-align:left;text-decoration:underline}.report-section-title .subtle{font-size:.82rem;font-weight:600}.report-table{border-collapse:collapse;table-layout:fixed;width:100%;margin-bottom:.85rem}.report-table th,.report-table td{text-align:left;border:1px solid #000;padding:.2rem .4rem;font-size:.85rem}.report-table thead th{background:var(--surface-2);font-weight:700}.report-table th.wk{width:90px}.report-table th.dt{width:110px}.report-table th.dr{width:150px}.report-table td input{color:#000;width:100%}.report-table td input:focus{background:var(--primary-soft)}.report-table.lined td{height:30px}.report-sign{flex-wrap:wrap;align-items:flex-end;gap:1.5rem;margin-top:1.5rem;display:flex}.gate-notice{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);text-align:center;margin:1rem 0;padding:2.5rem 2rem}.gate-notice h2{margin-bottom:.6rem;font-size:1.15rem}.gate-notice p{color:var(--text-muted);max-width:46rem;margin:0 auto;line-height:1.55}.foot-note{color:var(--text-muted);margin:.35rem 0 0;font-size:.75rem}.allowable-days{flex-wrap:wrap;align-items:baseline;gap:.2rem .75rem;font-size:.8rem;display:flex}.allowable-days span{white-space:nowrap}.ts-head{border-bottom:2px solid #000;align-items:center;gap:1.5rem;margin-bottom:1rem;padding-bottom:.6rem;display:flex}.ssss-logo{width:auto;height:62px}.ts-titles{text-align:center;flex:1}.ts-titles h2{font-size:1.25rem;font-weight:800;text-decoration:underline}.ts-titles p{color:var(--text-muted);margin:.15rem 0 0;font-size:.8rem}.ts-fields{flex-wrap:wrap;gap:1.5rem;margin-bottom:1rem;display:flex}.ts-fields .uline-field{flex:1;min-width:200px}.ts-legend{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);gap:.3rem;margin:0 0 1rem;padding:.6rem .85rem;font-size:.85rem;list-style:none;display:grid}.ts-legend b{min-width:1.3rem;display:inline-block}.ssss-cal{border-collapse:collapse;table-layout:fixed;width:100%;margin-bottom:1rem}.ssss-cal td{vertical-align:top;border:1px solid #000;width:14.28%;height:62px;padding:2px 3px;position:relative}.ssss-cal td.empty-day{background:repeating-linear-gradient(45deg,#f1f5f9,#f1f5f9 4px,#e8edf2 4px 8px)}.ts-firedrill h3{margin:.75rem 0 .5rem;font-size:1rem;text-decoration:underline}.ts-firedrill .report-table th[scope=row]{background:var(--surface-2);font-weight:700}.ts-sign{flex-direction:column;gap:.9rem;margin-top:1.5rem;display:flex}.app-footer{text-align:center;margin-top:2rem}.app-footer p{color:var(--text-muted);font-size:.78rem}@media (width<=720px){.invoice-top,.office-grid,.legend-columns.three{grid-template-columns:1fr}.tabs{top:60px}}@page{size:letter portrait;margin:.4in}@media print{:root{--bg:#fff}.no-print{display:none!important}input::placeholder,textarea::placeholder{color:#0000!important}.app{max-width:none;margin:0;padding:0}.tab-pane{display:block!important}.app-main{display:block}.sheet{box-shadow:none;break-before:page;break-inside:avoid;border:none;border-radius:0;margin:0;padding:0;overflow:visible!important}.tab-pane:first-child .sheet:first-child{break-before:avoid}.sheet.landscape{width:7.6in;height:10.1in;position:relative;overflow:hidden}.landscape-inner{transform-origin:50%;flex-direction:column;width:10.1in;height:7.6in;display:flex;position:absolute;top:0;left:0;overflow:hidden;transform:translate(-1.25in,1.25in)rotate(90deg)}.landscape-inner .grid-scroll{flex:auto;min-height:0;border:none!important;overflow:visible!important}.landscape-inner .grid{border:.5pt solid #000;width:100%;height:100%;font-size:7pt}.landscape-inner .col-label{width:128px}.landscape-inner .col-day{width:auto}.landscape-inner .sheet-foot{font-size:8pt}.grid-scroll{border:1px solid #000;overflow:visible!important}.grid{font-size:6.6pt;width:100%!important}.col-label{width:150px}.grid th,.grid td{border:.5pt solid #000!important}.row-head{font-size:6.4pt;padding:1pt 3pt!important}.day-head{font-size:6pt}.section-row .row-head,.section-row .section-note,.subnote-row .row-head,.subnote-row .section-note,.subnote-row td,.invoice-calendar th,.report-table thead th,.grid thead th{-webkit-print-color-adjust:exact;print-color-adjust:exact}.section-row .row-head,.section-row .section-note{background:#dfeeeb!important}.cell-select,.cell-text{font-size:6.4pt;line-height:1;padding:.3pt 0!important}.landscape-inner .sheet-head{flex:none;margin-bottom:3pt}.landscape-inner .sheet-title{font-size:12pt}.landscape-inner .sheet-head-fields{font-size:9pt}.landscape-inner .row-head{font-size:6.8pt;line-height:1.08;padding:0 4pt!important}.landscape-inner .day-head{font-size:6.6pt}.landscape-inner .cell-select,.landscape-inner .cell-text{font-size:6.8pt;line-height:1}.landscape-inner .section-row .row-head,.landscape-inner .section-row .section-note,.landscape-inner .subnote-row .row-head,.landscape-inner .subnote-row .section-note{font-size:7.2pt;line-height:1.15;padding:0 4pt!important}.landscape-inner .check-cell input{width:9pt;height:9pt;margin:auto}.landscape-inner .sheet-foot{flex:none;gap:2pt 1.2rem;margin-top:3pt;font-size:8pt}.landscape-inner .sheet-foot .sig-line input{padding-bottom:0}.landscape-inner .foot-signatures,.landscape-inner .foot-review{gap:3pt;min-width:0}.landscape-inner .notes-block{flex:none;margin-bottom:4pt}.landscape-inner .notes-label{margin-bottom:2pt;font-size:8pt}.landscape-inner .notes-area{min-height:.5in}.landscape-inner .legend-columns{flex:none;gap:.6rem;margin-bottom:4pt;padding:4pt}.landscape-inner .legend-columns h3{margin-bottom:3pt;font-size:8.5pt}.landscape-inner .code-list{gap:2pt}.landscape-inner .code-list li{font-size:8pt}.landscape-inner .grid-title{flex:none;margin:3pt 0;font-size:9pt}.sig-line input,.uline-field input,.inline-field input,.cal-initials{box-shadow:none!important;background:0 0!important}.invoice-note{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff7cc!important}.sheet.invoice{flex-direction:column;height:10.1in;display:flex}.sheet.invoice .invoice-head,.sheet.invoice .invoice-top,.sheet.invoice .away-q,.sheet.invoice .invoice-sign,.sheet.invoice .invoice-note,.sheet.invoice .office-use{flex:none}.sheet.invoice .invoice-top{margin-bottom:.18in}.sheet.invoice .away-q{margin-bottom:.12in}.sheet.invoice .invoice-calendar{flex:auto;margin:.16in 0}.sheet.invoice .invoice-calendar td{height:auto}.sheet.invoice .invoice-sign{margin-bottom:.18in}.sheet.invoice .invoice-note{margin:.16in 0}.sheet.report{flex-direction:column;height:10.1in;display:flex}.sheet.report .invoice-head,.sheet.report .report-idrow,.sheet.report .report-section-title,.sheet.report .report-sign{flex:none}.report-p1 .report-table{flex:none;margin-bottom:.2in}.report-p1 .report-table tbody td,.report-p1 .report-table tbody th{height:.41in}.report-p2 .report-table{flex:none}.report-p2 .report-table.lined td{height:.34in}.report-p2 .report-other{flex:auto;min-height:1in}.sheet.ssss-timesheet{flex-direction:column;height:10.1in;display:flex}.sheet.ssss-timesheet .ts-head,.sheet.ssss-timesheet .ts-fields,.sheet.ssss-timesheet .ts-legend,.sheet.ssss-timesheet .ts-firedrill,.sheet.ssss-timesheet .ts-sign{flex:none}.sheet.ssss-timesheet .ssss-cal{flex:auto;margin:.16in 0}.sheet.ssss-timesheet .ssss-cal td{height:auto}.ssss-cal td.empty-day,.ts-legend,.ts-firedrill .report-table th[scope=row]{-webkit-print-color-adjust:exact;print-color-adjust:exact}.landscape-inner .foot-note{font-size:6.5pt}.landscape-inner .allowable-days{gap:0 6pt;font-size:7pt}.app-footer{display:none}select{text-indent:0}}
