/* Same controls on desktop and mobile, with a separate image viewing layer. */
.usage-photo-picker{min-width:0;margin:0;padding:14px;border:1px solid #dce7e2;border-radius:14px;background:#f9fcfa}
.usage-photo-picker legend{padding:0 5px}.usage-photo-picker legend .bi-block>small{font-size:14px;font-weight:750;color:#143d35}
.usage-photo-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.modal-body .form-grid>label{margin:0}.modal-body .form-grid{gap:12px}
.usage-photo-choices .photo-choice{margin:0;min-height:64px;align-self:stretch;font-size:13px}
.photo-choice{position:relative;min-height:58px;padding:10px 8px;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:3px;border:1px solid #bed9cb;border-radius:11px;background:#fff;color:#176b55;text-align:center;cursor:pointer;overflow:hidden}
.photo-choice input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.photo-choice .bi-block>span{font-size:11px}.photo-choice .bi-block>small{font-size:14px;font-weight:750;color:#16543f}.photo-choice:focus-within{outline:2px solid #2a9e7c;outline-offset:2px}
.usage-info{padding:14px;min-width:0}.usage-info b{font-size:14px;line-height:1.5;max-height:none}.usage-info span{font-size:12px}.usage-info small{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.usage-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.transfer-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;padding:9px 10px;margin:9px 0 0;border:1px solid #bfdacc;border-radius:10px;background:#edf7f1;color:#1d6950;cursor:pointer;text-align:center}
.transfer-button .bi-block>span{font-size:10px;font-weight:500}.transfer-button .bi-block>small{font-size:13px;font-weight:750;color:#1d6950}
.usage-action-row>button{width:100%;min-width:0;margin:0;min-height:46px;padding:8px;font-size:12px}.usage-action-row .return-button small{font-size:12px;opacity:1}
.usage-history-body .transfer-button,.stock-report-card>.transfer-button{width:100%}
.transfer-summary{display:flex;flex-direction:column;gap:8px;padding:16px;margin-bottom:18px;border-radius:13px;background:#edf6f1;color:#244d3c}.transfer-summary b{font-size:18px}.transfer-summary span{font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.modal-body .field-help{font-size:12px;line-height:1.8}.modal-body .form-grid label>.bi-block>small{font-size:13px}.modal-body .modal-submit{min-height:48px;font-size:13px;line-height:1.6}
.transfer-history{margin-top:22px;border-top:1px solid #dfe8e1;padding-top:14px}.transfer-history summary{cursor:pointer;font-size:13px;font-weight:700;color:#536f60}.transfer-history article{padding:12px 0;border-bottom:1px solid #e9efea}.transfer-history b{font-size:13px}.transfer-history small{display:block;margin-top:7px;color:#6a7c70;font-size:11px}.transfer-history p{font-size:12px;line-height:1.7}
.tool-photo-viewer{position:fixed;z-index:1000;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#0e1918;color:#f0f6f3;padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(14px,env(safe-area-inset-left))}
.tool-photo-viewer[hidden]{display:none}.tool-photo-viewer header{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 8px;max-width:1400px;width:100%;margin:auto}.tool-photo-viewer header strong{font-size:16px}.tool-photo-viewer header small{display:block;font-size:11px;color:#adbfba;margin-top:3px}
.tool-photo-viewer header button{flex-shrink:0;min-width:88px;min-height:44px;padding:10px 16px;border:1px solid #6b8179;border-radius:10px;background:#273f36;color:white;font-size:15px;cursor:pointer}.tool-photo-stage{display:flex;align-items:center;justify-content:center;min-height:0;overflow:auto;padding:8px}.tool-photo-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain;touch-action:pan-x pan-y pinch-zoom}.tool-photo-viewer footer{text-align:center;font-size:12px;color:#bacac4;line-height:1.6;padding:14px 8px}
@media(min-width:721px){.modal{align-items:center;padding:24px}.modal-sheet{border-radius:22px;max-height:calc(100dvh - 48px)}.modal-handle{display:none}.active-usage-list{flex-wrap:wrap}.usage-card{flex:1 1 330px;max-width:calc(50% - 5px);grid-template-columns:108px minmax(0,1fr)}.usage-photo{width:108px}.modal-sheet header{align-items:center}.modal-sheet header button{height:44px;min-width:44px}.modal-body{padding:22px 24px 26px}.form-grid{gap:16px}}
@media(min-width:721px){#checkoutForm{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}#checkoutForm>label:nth-of-type(1),#checkoutForm>label:nth-of-type(4),#checkoutForm>label:last-of-type,#checkoutForm>.usage-photo-picker,#checkoutForm>.modal-submit{grid-column:1/-1}}
@media(max-width:720px){.usage-card{flex-basis:94%;grid-template-columns:94px minmax(0,1fr)}.usage-photo{width:94px}.usage-info{padding:12px}.usage-info b{font-size:13px}.usage-info small{font-size:10px}.usage-action-row{gap:7px}.usage-action-row>button{padding:7px 4px}.usage-action-row .bi-block>span{font-size:9px}.usage-action-row .bi-block>small{font-size:12px}.usage-photo-choices{gap:8px}.tool-photo-viewer header{padding:12px 2px}.tool-photo-viewer footer{font-size:11px}.modal-sheet{max-height:calc(100dvh - 16px)}.modal-sheet header button{height:44px;min-width:44px;flex-shrink:0}}
