/* Isolated component styles. No theme-wide rules. */
.bsgp-app [hidden],.bsgp-crm [hidden]{display:none!important}
.bsgp-photo-upload-only .bsgp-capture-preview,.bsgp-review-photo-image{aspect-ratio:7/9!important;border-radius:0!important;overflow:hidden;background:repeating-conic-gradient(#e8ebf1 0% 25%,#fff 0% 50%) 50%/20px 20px}
.bsgp-photo-upload-only .bsgp-capture-preview img,.bsgp-review-photo-image img{width:100%;height:100%;object-fit:contain!important;object-position:center!important;border-radius:0!important}
.bsgp-photo-upload-only .bsgp-mini-frame{aspect-ratio:7/9;border-radius:0!important}
.bsgp-pro-photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.bsgp-pro-photo-actions button{flex:1 1 150px;white-space:normal;line-height:1.3;min-height:44px}
[data-pro-upload]{border-top:1px solid #dce2eb;margin-top:14px;padding-top:14px;display:grid;gap:10px}
[data-pro-upload] input[type=file]{max-width:100%;min-width:0;width:100%;font-size:14px}
.bsgp-garment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bsgp-garment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce2eb;padding:12px;border-radius:10px;min-width:0}
.bsgp-garment-row .bsgp-checkline{margin:0!important;min-width:0}.bsgp-garment-row label{min-width:0}.bsgp-garment-row select{width:80px!important;min-height:44px;font-size:16px}
.bsgp-garment-row small{display:block;color:#667387;font-size:12px}
.bsgp-pro-pin-dialog{width:min(430px,calc(100vw - 24px));box-sizing:border-box;border:1px solid #dde3eb;border-radius:16px;padding:24px;color:#172033;background:#fff;font:16px/1.5 Arial,sans-serif;z-index:2147483647}
.bsgp-pro-pin-dialog::backdrop,.bsgp-mask-dialog::backdrop{background:rgba(13,20,40,.72)}
.bsgp-pro-pin-dialog h2{margin:0 0 12px;font-size:23px}.bsgp-pro-pin-dialog label{display:grid;gap:7px;font-weight:700}.bsgp-pro-pin-dialog input{box-sizing:border-box;width:100%;border:1px solid #bac4d4;min-height:46px;border-radius:7px;padding:10px;font-size:16px}.bsgp-pro-pin-dialog form>div{display:flex;gap:10px}.bsgp-pro-pin-dialog button{min-height:44px;padding:10px 16px;border-radius:8px;border:1px solid #17245b;background:#17245b;color:#fff;cursor:pointer}
.bsgp-mask-dialog canvas{touch-action:none;cursor:crosshair;width:100%;height:auto;display:block}
.bsgp-mask-dialog .bsgp-crop-stage{border-radius:0!important;background:repeating-conic-gradient(#dde3ec 0% 25%,#fff 0% 50%) 50%/20px 20px}
.bsgp-mask-dialog [aria-pressed=true]{background:#17245b!important;color:white!important}
.bsgp-mask-dialog input[type=range]{width:100%;min-height:44px}.bsgp-mask-dialog .bsgp-crop-stage{aspect-ratio:7/9}
.bsgp-photo-dialog{max-height:calc(100dvh - 20px);max-width:calc(100vw - 20px)}
.bsgp-photo-dialog button{min-height:44px;white-space:normal}.bsgp-photo-dialog .bsgp-crop-body{min-height:0}
.bsgp-photo-dialog .bsgp-crop-stage{border-radius:0!important}.bsgp-photo-dialog .bsgp-crop-guide{border-radius:0!important}
.bsgp-photo-dialog [data-crop-save],.bsgp-photo-dialog [data-mask-save]{font-weight:700}
.bsgp-crm .bsgp-field textarea{min-height:90px;width:100%;box-sizing:border-box;resize:vertical}
.bsgp-workflow-steps{flex-wrap:wrap}.bsgp-workflow-step small{overflow-wrap:anywhere}
.bsgp-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:680px){.bsgp-garment-list{grid-template-columns:1fr}.bsgp-review-grid{grid-template-columns:1fr!important}.bsgp-pro-photo-actions{display:grid;grid-template-columns:1fr}.bsgp-photo-dialog .bsgp-crop-body{display:flex;flex-direction:column;gap:15px;overflow:visible}.bsgp-photo-dialog .bsgp-crop-preview-column{width:min(270px,100%);margin-inline:auto}.bsgp-photo-dialog{padding:0;overflow:auto}.bsgp-photo-dialog .bsgp-crop-footer{position:sticky;bottom:0;background:#fff;z-index:2;padding:14px}.bsgp-photo-dialog .bsgp-crop-controls{padding-bottom:12px}.bsgp-pro-pin-dialog{padding:20px}}

.bsgp-app .bsgp-progress-caption{margin:0 0 6px;font-size:12px;line-height:1.4;color:#53617a;font-weight:600}

/* v1.7.1: one administrator editor; no employee crop controls. */
.bsgp-image-editor{box-sizing:border-box;width:min(1000px,calc(100vw - 24px));max-width:100%;max-height:calc(100dvh - 24px);padding:0;border:1px solid #dce2ed;border-radius:16px;color:#19243c;background:#fff;box-shadow:0 18px 80px #0c193e66;font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:auto}
.bsgp-image-editor::backdrop{background:rgba(8,17,40,.78)}
.bsgp-image-editor *{box-sizing:border-box;max-width:100%}
.bsgp-image-editor [hidden]{display:none!important}
.bsgp-image-editor button,.bsgp-image-editor input,.bsgp-image-editor select{font:inherit}
.bsgp-image-editor button{min-height:44px;border:1px solid #ccd5e7;background:#f5f7fb;color:#17245b;border-radius:8px;cursor:pointer;padding:9px 13px;line-height:1.3;white-space:normal;font-weight:650}
.bsgp-image-editor button:hover{background:#e9eef8}.bsgp-image-editor button:disabled{opacity:.5;cursor:wait}
.bsgp-image-editor :focus-visible{outline:3px solid #4b76dc;outline-offset:2px}
.bsgp-ie-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:17px 22px;border-bottom:1px solid #e3e8f1;background:#fff}
.bsgp-ie-head span{font-size:12px;color:#67738a}.bsgp-ie-head h2{font-size:23px;line-height:1.2;margin:3px 0;color:#17245b}.bsgp-ie-head button{font-size:25px;min-width:44px;padding:0 10px}
.bsgp-ie-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.92fr);gap:24px;padding:22px;align-items:start}
.bsgp-ie-preview{min-width:0;position:sticky;top:12px}.bsgp-ie-stage{max-height:580px;width:100%;margin:auto;position:relative;background-color:#fff;background-image:linear-gradient(45deg,#e2e6eb 25%,transparent 25%),linear-gradient(-45deg,#e2e6eb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e6eb 75%),linear-gradient(-45deg,transparent 75%,#e2e6eb 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:2px solid #263d75;border-radius:0;overflow:hidden}
.bsgp-ie-stage.is-dark{background-color:#303848;background-image:linear-gradient(45deg,#454e60 25%,transparent 25%),linear-gradient(-45deg,#454e60 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#454e60 75%),linear-gradient(-45deg,transparent 75%,#454e60 75%)}
.bsgp-ie-stage canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none;cursor:crosshair}
.bsgp-ie-preview p{margin:6px 0;font-size:12px;text-align:center;overflow-wrap:anywhere;color:#58637a}
.bsgp-ie-controls{min-width:0}.bsgp-ie-controls p{margin:9px 0 14px;line-height:1.55}.bsgp-ie-controls label{display:block;margin:14px 0 8px;font-size:13px;font-weight:650}.bsgp-ie-controls input[type=range]{display:block;width:100%;min-height:38px;margin:4px 0;accent-color:#17245b}.bsgp-ie-controls select{display:block;width:100%;min-height:44px;background:#fff;border:1px solid #bdc8dd;border-radius:8px;padding:9px 12px}.bsgp-ie-controls small{display:block;font-size:12px;color:#626d82;margin-top:8px}
.bsgp-ie-tabs,.bsgp-ie-tools{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}.bsgp-ie-tabs button{flex:1}.bsgp-ie-tools button{flex:1;min-width:100px}.bsgp-ie-tools button[data-ie-minus],.bsgp-ie-tools button[data-ie-plus]{min-width:44px}
.bsgp-image-editor button[aria-pressed=true]{background:#17245b;color:#fff;border-color:#17245b}.bsgp-ie-wide{width:100%}
.bsgp-ie-note{padding-top:12px;border-top:1px solid #e3e8f1;font-size:12px;color:#647087}
.bsgp-ie-message{border-left:3px solid #536ca3;border-radius:4px;background:#f1f5fb;padding:10px 12px;font-size:13px;overflow-wrap:anywhere}.bsgp-ie-message:empty{display:none}.bsgp-ie-message.is-error{background:#fff0ef;color:#942c28;border-color:#ba4340}
.bsgp-ie-footer{position:sticky;bottom:0;background:#fff;display:flex;justify-content:space-between;gap:12px;padding:14px 22px;border-top:1px solid #dce2ed;z-index:2}.bsgp-ie-footer [data-ie-save]{background:#17245b;border-color:#17245b;color:#fff;min-width:190px}
.bsgp-document-decision{padding:12px 16px;background:#f7f9fc;border-bottom:1px solid #dce3ef;flex:0 0 auto}.bsgp-document-decision [hidden]{display:none!important}.bsgp-document-decision-actions{display:flex;gap:8px;flex-wrap:wrap}.bsgp-document-decision button{min-height:44px;white-space:normal}.bsgp-document-decision .bsgp-approve{background:#136c49!important;color:#fff!important;border-color:#136c49!important}.bsgp-document-decision .bsgp-reject{background:#ac3933!important;color:#fff!important;border-color:#ac3933!important}.bsgp-document-decision textarea{width:100%;resize:vertical;min-height:74px;font:inherit}.bsgp-document-decision [data-document-review-message]{margin:8px 0 0;padding:8px;font-size:13px;line-height:1.45}.bsgp-document-decision [data-document-review-message]:empty{display:none}
.bsgp-garment-row input[data-garment-quantity]{width:86px;min-width:70px;min-height:44px;border:1px solid #cbd5e5;border-radius:7px;padding:8px;font:inherit;background:#fff}.bsgp-garment-row input[data-garment-quantity]:disabled{background:#f0f2f6;color:#858a95}
[data-review-state][data-state=approved]{background:#e4f5ec;color:#126445}[data-review-state][data-state=rejected]{background:#ffeded;color:#a3312b}[data-review-state][data-state=stale]{background:#fff3d9;color:#7b5508}
.bsgp-upload-error{font-size:13px;color:#a3312b;margin:8px 0}.bsgp-invalid-block{outline:2px solid #c94842;outline-offset:3px}
@media(max-width:680px){.bsgp-image-editor{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:12px}.bsgp-ie-head{padding:12px 14px}.bsgp-ie-head h2{font-size:20px}.bsgp-ie-body{display:flex;flex-direction:column;gap:12px;padding:14px}.bsgp-ie-preview{width:100%;position:static}.bsgp-ie-stage{width:auto;max-width:100%;max-height:none;height:auto;max-inline-size:320px}.bsgp-ie-controls{width:100%}.bsgp-ie-footer{padding:12px 14px}.bsgp-ie-footer button{flex:1;min-width:0!important;padding:10px 8px}.bsgp-document-decision{padding:10px}.bsgp-document-decision-actions{display:grid;grid-template-columns:1fr 1fr}.bsgp-document-decision-actions [data-document-edit]{grid-column:1/-1}.bsgp-garment-row{gap:8px;min-width:0}.bsgp-garment-row label{min-width:0;overflow-wrap:anywhere}}

.bsgp-image-editor .bsgp-ie-stage{max-height:none}.bsgp-image-editor .bsgp-ie-stage.is-portrait{width:min(100%,451px);aspect-ratio:7/9!important}
