@import url("./site-capture.css");
.site-records-workspace{max-width:1250px;margin:0 auto;color:var(--ink,#21201d)}.site-records-workspace [hidden]{display:none!important}.sr-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.sr-heading h2{margin:6px 0 8px;font-family:Georgia,serif;font-size:32px;font-weight:500;color:var(--wine-dark,#4c1114)}.sr-heading p{max-width:680px;margin:0;color:var(--muted,#6b6860);font-size:14px;line-height:1.5}.sr-heading>.primary{flex-shrink:0;min-height:44px}.sr-kind-tabs{display:flex;gap:5px;padding:5px;width:fit-content;max-width:100%;border:1px solid var(--line,#d8d0c0);border-radius:12px;background:#eee7db;margin-bottom:22px}.sr-kind-tabs button{border:0;background:transparent;color:var(--wine-dark,#4c1114);font-size:14px;font-weight:750;padding:12px 20px;border-radius:8px}.sr-kind-tabs button.active{background:#fffdf9;box-shadow:0 2px 5px #4c111414}.sr-message{border:1px solid #bdd8c7;color:#185d3d;background:#eff8f1;border-radius:9px;padding:13px 16px;margin-bottom:18px;font-size:14px;line-height:1.5}.sr-message.error{border-color:#e6b9b3;color:#842529;background:#fff0ed}.sr-list-tools{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:14px;max-width:790px;margin-bottom:20px}.sr-field{display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--ink,#21201d);font-size:13px;font-weight:650}.sr-field>span{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.sr-field input,.sr-field select,.sr-field textarea{width:100%;max-width:100%;min-width:0;min-height:44px;padding:10px 11px;color:var(--ink,#21201d);border:1px solid #cfc5b5;border-radius:8px;background:#fff;font:inherit;font-weight:400;line-height:1.5}.sr-field textarea{resize:vertical;min-height:88px}.sr-field small,.sr-help{font-weight:400;color:var(--muted,#6b6860);font-size:12px;line-height:1.5}.sr-field>span>small{font-size:10px;color:#8a6c43}.sr-field:has(input[type=hidden]){display:none}.sr-record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sr-record-card{display:flex;flex-direction:column;gap:8px;padding:19px;text-align:left;background:#fffdf9;color:var(--ink,#21201d);border:1px solid var(--line,#d8d0c0);border-radius:12px;min-width:0;box-shadow:0 3px 12px #4a2b1508}.sr-record-card:hover{border-color:var(--gold,#d3aa6d);box-shadow:0 4px 18px #4a2b1510}.sr-record-card>strong{font-size:17px;margin-top:3px;overflow-wrap:anywhere}.sr-record-card>span{color:var(--muted,#6b6860);font-size:13px;overflow-wrap:anywhere}.sr-record-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.sr-record-top>b{color:var(--wine,#792424);font-size:12px;overflow-wrap:anywhere}.sr-record-meta{display:flex;flex-wrap:wrap;gap:5px 15px;color:var(--muted,#6b6860);font-size:12px;margin-top:5px}.sr-record-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #ece4d7;padding-top:11px;margin-top:5px;font-size:12px;color:var(--muted,#6b6860)}.sr-record-footer>span{font-weight:750;color:var(--wine,#792424)}.sr-empty{padding:40px 24px;border:1px dashed var(--line,#d8d0c0);border-radius:12px;text-align:center;background:#fffaf2;color:var(--muted,#6b6860)}.sr-empty h3{color:var(--wine-dark,#4c1114);margin:0 0 8px;font-size:18px}.sr-empty p{margin:0;font-size:14px;line-height:1.5}.sr-empty button{display:block;margin:15px auto 0}.sr-detail-heading{display:flex;align-items:center;gap:15px;margin:6px 0 17px}.sr-detail-heading>div{flex:1;min-width:0}.sr-detail-heading h3{margin:4px 0;color:var(--wine-dark,#4c1114);font-size:21px}.sr-detail-heading .eyebrow{overflow-wrap:anywhere}.sr-banner{padding:13px 15px;border:1px solid #e5d7bd;border-radius:9px;background:#fff6e5;color:#795421;font-size:13px;line-height:1.6;margin:12px 0 18px}.sr-banner.sr-success{border-color:#bfd7c6;background:#edf7f0;color:#1a6040}.site-records-workspace form>fieldset{margin:0;padding:0;min-width:0;border:0}.site-records-workspace fieldset:disabled input,.site-records-workspace fieldset:disabled select,.site-records-workspace fieldset:disabled textarea{color:#49443b;background:#f7f4ec;opacity:1;-webkit-text-fill-color:#49443b}.site-records-workspace fieldset:disabled .sr-remove,.site-records-workspace fieldset:disabled [data-sr-add]{display:none}.sr-section{margin:0 0 15px;border:1px solid var(--line,#d8d0c0);background:#fffdf9;border-radius:12px;overflow:hidden}.sr-section>summary{display:flex;align-items:center;gap:12px;padding:17px 19px;list-style:none;cursor:pointer}.sr-section>summary::-webkit-details-marker{display:none}.sr-step{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border:1px solid #d8c4a5;border-radius:50%;background:#fff8eb;color:var(--wine,#792424);font-weight:750;font-size:13px}.sr-section>summary>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}.sr-section>summary b{font-size:16px;color:var(--wine-dark,#4c1114)}.sr-section>summary small{font-size:12px;line-height:1.5;color:var(--muted,#6b6860)}.sr-chevron{font-size:20px;color:var(--wine,#792424);transform:rotate(-90deg);transition:transform .15s}.sr-section[open] .sr-chevron{transform:rotate(0)}.sr-section-body{border-top:1px solid #e9e1d5;padding:20px}.sr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.sr-wide{grid-column:1/-1}.sr-collection{margin-top:20px;min-width:0}.sr-collection:first-child{margin-top:0}.sr-collection-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px}.sr-collection h4{margin:0;color:var(--wine-dark,#4c1114);font-size:14px}.sr-collection-head button{font-size:12px;min-height:40px}.sr-entry{padding:16px;margin-bottom:12px;border:1px solid #e0d6c7;border-radius:9px;background:#fcf9f3;min-width:0}.sr-entry .sr-entry{background:#fffdf9;padding:13px}.sr-entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.sr-entry-head>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.sr-entry-head b{font-size:13px;color:var(--wine-dark,#4c1114)}.sr-entry-head span{font-size:12px;color:var(--muted,#6b6860)}.sr-remove{padding:7px 9px;font-size:11px;min-height:36px;color:#8c3939}.sr-empty-rows{margin:0 0 10px;padding:10px 12px;border-radius:7px;background:#f4efe5;font-size:12px;color:var(--muted,#6b6860)}.sr-inner{border-top:1px solid #e4d9c7;padding-top:11px}.sr-inner summary{font-size:13px;cursor:pointer;color:var(--wine,#792424);font-weight:650}.sr-inner summary span{font-size:11px;font-weight:400;color:var(--muted,#6b6860);margin-left:6px}.sr-inner>.sr-fields{margin-top:12px}.sr-totals{display:flex;flex-wrap:wrap;gap:20px;padding:15px 16px;border-top:1px solid #e2d8c8;background:#f5eee1;border-radius:8px;margin-top:14px}.sr-totals>span{display:grid;gap:4px;font-size:11px;color:var(--muted,#6b6860)}.sr-totals b{font-size:19px;color:var(--wine-dark,#4c1114)}.sr-check{display:flex;gap:10px;align-items:flex-start;line-height:1.5;font-size:13px;color:var(--wine-dark,#4c1114);font-weight:650}.sr-check input{width:19px;height:19px;flex:0 0 19px;accent-color:var(--wine,#792424);margin:0}.sr-disturbance-choice{padding:13px 15px;border:1px solid #e5d5b8;background:#fff8e9;border-radius:8px}.sr-disturbance-choice p{margin:6px 0 0 29px}.sr-save-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#f2eadd;border:1px solid #d7c8b2;border-radius:10px;padding:15px 18px;margin:18px 0 25px}.sr-save-bar>span{font-size:12px;line-height:1.4;color:var(--muted,#6b6860)}.sr-save-bar .primary{min-height:44px;flex-shrink:0}.sr-signoff-section{margin:23px 0;padding:20px;border:1px solid var(--line,#d8d0c0);border-radius:12px;background:#fffdf9}.sr-signoff-section>h3{margin:0;color:var(--wine-dark,#4c1114);font-size:18px}.sr-signoff-section>.sr-help{margin:8px 0 18px}.sr-signatures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.sr-signature{min-width:0}.sr-signature-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.sr-signature-title h4{margin:0;font-size:14px;color:var(--wine-dark,#4c1114)}.sr-signature canvas,.sr-signature-image{display:block;width:100%;height:auto;aspect-ratio:3/1;border:1px solid #cfc5b5;border-radius:8px;margin-top:12px;background:linear-gradient(#fff,#fff) padding-box;touch-action:none;user-select:none;color:#24201c}.sr-signature canvas{background-image:linear-gradient(to bottom,transparent calc(78% - 1px),#ded7ca 78%,transparent calc(78% + 1px));cursor:crosshair}.sr-signature canvas[data-sr-disabled=true]{background-color:#f2eee5;cursor:default}.sr-pad-prompt{font-size:11px;line-height:1.5;color:var(--muted,#6b6860);margin:6px 0 10px}.sr-signature-actions{display:flex;justify-content:space-between;gap:8px}.sr-signature-actions button{font-size:12px;min-height:40px}.sr-dirty-warning{padding:10px 12px;border:1px solid #e4c897;background:#fff5df;border-radius:7px;margin:15px 0 0!important;color:#795421}.sr-final-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin:18px 0}.sr-final-actions a,.sr-final-actions button{min-height:44px}.sr-correction-form{border:1px solid #d7c8b2;background:#fff9ee;border-radius:10px;padding:18px}.sr-correction-form h4{margin:0;font-size:16px;color:var(--wine-dark,#4c1114)}.site-records-workspace button:disabled{opacity:.55;cursor:default}.site-records-workspace summary:focus-visible{outline:3px solid #d3aa6da6;outline-offset:-4px}.site-records-workspace input[type=date],.site-records-workspace input[type=time]{appearance:none;-webkit-appearance:none;min-width:0}.site-records-workspace input[type=date]::-webkit-date-and-time-value,.site-records-workspace input[type=time]::-webkit-date-and-time-value{text-align:left}
@media(max-width:760px){.sr-heading{align-items:flex-start;gap:15px}.sr-heading h2{font-size:28px}.sr-heading p{font-size:13px}.sr-heading>.primary{font-size:12px;padding:10px 12px}.sr-kind-tabs{width:100%}.sr-kind-tabs button{flex:1;padding:11px 8px;font-size:13px}.sr-record-list{grid-template-columns:1fr}.sr-list-tools{grid-template-columns:minmax(0,1fr) 140px;gap:10px}.sr-detail-heading{flex-wrap:wrap;gap:10px}.sr-detail-heading>div{flex-basis:calc(100% - 125px)}.sr-detail-heading h3{font-size:19px}.sr-detail-heading>.tag{margin-left:auto}.sr-section>summary{padding:15px 13px;gap:10px}.sr-section>summary b{font-size:15px}.sr-section-body{padding:15px 13px}.sr-entry{padding:13px 11px}.sr-signatures{grid-template-columns:1fr;gap:24px}.sr-signoff-section{padding:16px 13px}.sr-final-actions{justify-content:stretch}.sr-final-actions>a,.sr-final-actions>button{flex:1;justify-content:center;text-align:center;min-width:130px}.sr-collection-head{align-items:flex-start}.sr-collection-head button{max-width:58%;font-size:11px;padding:8px 9px}.sr-fields{gap:13px 10px}.sr-field{font-size:12px}.sr-field input,.sr-field select,.sr-field textarea{padding:10px 8px;font-size:14px}.sr-save-bar{padding:13px;align-items:stretch;flex-direction:column;gap:10px}.sr-save-bar .primary{width:100%}.sr-signature-actions .primary{flex:1}.sr-record-footer{font-size:11px}.sr-banner{font-size:12px}.sr-step{width:27px;height:27px;flex-basis:27px}.sr-totals{gap:15px}.sr-totals b{font-size:18px}}
@media(max-width:390px){.sr-heading{flex-wrap:wrap}.sr-heading>.primary{width:100%}.sr-list-tools{grid-template-columns:1fr}.sr-fields{grid-template-columns:1fr}.sr-wide{grid-column:auto}.sr-section>summary small{font-size:11px}.sr-detail-heading>div{flex-basis:100%;order:3}.sr-detail-heading>.tag{margin-left:auto}.sr-signature-title{flex-wrap:wrap}}

/* Shared scope also neutralizes the employee app global form rules. */
.site-records-workspace{--wine:#792424;--wine-dark:#4c1114;--gold:#d3aa6d;--line:#d8d0c0;--ink:#21201d;--muted:#6b6860}.site-records-workspace label{margin:0}.site-records-workspace .primary,.site-records-workspace .secondary{width:auto;margin:0;padding:10px 15px;border:1px solid var(--line);border-radius:8px;font-size:13px;font-weight:750;line-height:1.4;text-decoration:none;cursor:pointer}.site-records-workspace .primary{background:var(--wine);border-color:var(--wine);color:white}.site-records-workspace .secondary{background:#fffdf9;color:var(--wine)}.site-records-workspace .button-link{display:inline-flex;align-items:center}.site-records-workspace .tag{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:750;color:#795421;background:#fff0d7}.site-records-workspace .tag.green{background:#e5f4eb;color:#17623f}.site-records-workspace .tag.gray{background:#efede9;color:#605c54}.site-records-workspace .eyebrow{color:var(--wine);text-transform:uppercase;letter-spacing:.08em;font-size:11px;font-weight:800}.site-records-workspace .sr-check input{min-height:19px;padding:0}.site-records-workspace .sr-check{margin:0}.site-records-workspace .sr-remove{font-size:11px;padding:7px 9px;min-height:36px}.site-records-workspace .sr-signature-actions button{font-size:12px}.site-records-workspace .sr-entry-head .sr-remove{color:#8c3939}.site-records-workspace .sr-heading>.primary{min-height:44px}.site-records-workspace .sr-save-bar>.primary{min-height:44px}@media(max-width:760px){.site-records-workspace .sr-save-bar>.primary{width:100%}.site-records-workspace .sr-collection-head>.secondary{font-size:11px;padding:8px 9px}.site-records-workspace .sr-heading>.primary{font-size:12px;padding:10px 12px}}@media(max-width:390px){.site-records-workspace .sr-heading>.primary{width:100%}}

.site-records-workspace .sr-finalize-ack{padding:14px 16px;border:1px solid #d9c7a7;border-radius:9px;background:#fff8e9;font-size:13px;font-weight:500;line-height:1.5}.site-records-workspace .sr-finalize-ack input{margin-top:1px}.site-records-workspace .sr-finalize-ack:has(input:checked){border-color:#a8c7b2;background:#eef7f0}

/* Phone-first capture and a reachable save action. */
.site-records-workspace .sr-field input,.site-records-workspace .sr-field select,.site-records-workspace .sr-field textarea{font-size:16px;min-height:46px}.site-records-workspace button,.site-records-workspace .sr-remove,.site-records-workspace .sr-collection-head button,.site-records-workspace .sr-signature-actions button{min-height:44px}.sr-extra{margin-top:20px}.sr-extra>summary{min-height:44px;display:flex;align-items:center;gap:6px}.sr-extra[open]>summary{margin-bottom:12px}.sr-progress{list-style:none;display:flex;padding:0;margin:0 0 18px;gap:8px;justify-content:space-between}.sr-progress li{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);line-height:1.4}.sr-progress li>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid #d8c4a5;background:#fff8eb;border-radius:50%;flex-shrink:0;color:var(--wine)}.sr-progress .active{color:var(--wine);font-weight:700}.sr-progress .active>span{background:var(--wine);border-color:var(--wine);color:white}.sr-signoff-section>summary{min-height:44px;cursor:pointer;font-size:18px;font-weight:750;color:var(--wine-dark)}.sr-signoff-section[open]>summary{margin-bottom:12px}.sr-save-bar{position:sticky;bottom:12px;z-index:5;box-shadow:0 4px 18px #4c111418}.site-records-workspace details{scroll-margin-top:18px}.site-records-workspace input:focus-visible,.site-records-workspace select:focus-visible,.site-records-workspace textarea:focus-visible,.site-records-workspace button:focus-visible{outline:3px solid #d3aa6d;outline-offset:2px}@media(max-width:760px){.site-records-workspace .sr-save-bar{bottom:calc(12px + env(safe-area-inset-bottom,0px));padding:10px 12px;gap:7px}.site-records-workspace .sr-save-bar>.primary{min-height:48px;font-size:15px}.sr-progress{gap:4px}.sr-progress li{font-size:11px;gap:5px}.sr-progress li>span{width:22px;height:22px}.site-records-workspace .sr-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.site-records-workspace .sr-field:has(input[type=text]),.site-records-workspace .sr-field:has(textarea){grid-column:1/-1}.site-records-workspace .sr-entry-head{gap:6px}.site-records-workspace .sr-heading p{font-size:14px}.site-records-workspace .sr-section>summary small{font-size:12px}.site-records-workspace .sr-check{min-height:44px;align-items:center}.site-records-workspace .sr-check input{width:22px;height:22px;flex-basis:22px}.site-records-workspace .sr-check span{min-width:0}.site-records-workspace .sr-signature-actions button{min-height:46px}}@media(max-width:350px){.site-records-workspace .sr-fields{grid-template-columns:1fr}.sr-progress li{font-size:10px}}@media(prefers-reduced-motion:reduce){.sr-chevron{transition:none}}
