.business-builder-dialog{width:min(1080px,calc(100% - 24px))!important;height:min(960px,calc(100dvh - 20px))!important;max-width:calc(100% - 24px)!important}.business-builder-dialog #business-form-builder{overflow:auto;min-height:0;flex:1;padding:0 3px 20px;scrollbar-width:thin;scrollbar-color:#8cb498 #eaf5e9}.builder-top h2{font-size:1.25rem;color:#174525}.builder-top p{margin:8px 0 14px}.builder-form-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}.builder-form-choices button{font-size:1rem;min-height:49px;padding:9px;line-height:1.25}.builder-form-choices button[aria-pressed=true]{background:linear-gradient(#e0f8cf,#bfe4b7);border-color:#77ad7e;color:#124d20;box-shadow:0 2px 5px #18522a1c}.builder-view-tabs{display:flex;gap:10px;margin:12px 0}.builder-view-tabs button{flex:1;font-size:1rem;line-height:1.2}.builder-note{background:#fff2c9;border:1px solid #fff;border-radius:13px;padding:12px;color:#695625;font-size:1rem;line-height:1.4;margin:12px 0}.builder-controls{display:grid;grid-template-columns:1fr 1fr;gap:13px}.builder-controls>h3{grid-column:1/-1;margin:8px 0;color:#254f2d}.builder-field-card{padding:15px;min-width:0;border:1px solid #cde0ca;border-radius:16px;background:#fff;display:flex;flex-direction:column;gap:12px;box-shadow:0 3px 6px #2853300a}.builder-field-card>strong{font-size:1rem;color:#31582c}.builder-field-card label{margin:0;gap:7px;font-size:1rem}.builder-lock{font-size:1rem;color:#63765e;background:#f0f6e9;padding:9px;border-radius:9px}.builder-check,.check-field{display:flex!important;align-items:center;justify-content:flex-start;gap:12px!important;min-height:48px;font-size:1rem;line-height:1.35}.builder-check input,.check-field input{width:24px!important;min-width:24px;min-height:24px!important;height:24px;padding:0;accent-color:#12863a;flex-shrink:0}.check-field input{order:-1}.builder-reorder{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto}.builder-reorder button{flex:1;font-size:1rem;padding:8px;min-height:44px;line-height:1.2}.builder-actions{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:9px;position:sticky;top:0;z-index:5;background:#edf8e8;padding:12px 0;box-shadow:0 7px 10px #2a4e2310}.builder-actions button{font-size:1rem;padding:10px 9px;line-height:1.2;min-height:54px}.builder-status{color:#2a6633;font-size:1rem;margin:8px 0}.builder-preview{padding:18px;background:#fff;border:2px solid #e5f1de;border-radius:17px}.builder-preview h3{color:#31572e;margin-bottom:14px}.builder-preview-fields{display:flex;flex-direction:column;gap:12px}.preview-base-field{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border:1px solid #dce8d5;border-radius:12px;background:linear-gradient(#fff,#f9fff4);font-size:1rem}.custom-fields-grid,.form-configured-base{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;min-width:0}.form-configured-base label{margin-bottom:0}.custom-fields-grid{margin:13px 0}.custom-fields-grid:empty{display:none}.custom-field-label{font-size:1rem;min-width:0}.custom-field-label>span,.base-field-caption{font-size:1rem;overflow-wrap:anywhere}.invoice-extra-fields{display:flex;flex-direction:column;gap:13px;flex-shrink:0}.invoice-create-dialog .invoice-extra-fields label{font-size:1rem}.invoice-create-dialog #new-buyer-address{width:100%;min-height:80px;border:1px solid #a8c8af;border-radius:12px;background:white;resize:vertical;font-size:1rem;padding:11px}.invoice-create-dialog .review-extra-values{padding:16px;display:flex;flex-direction:column;gap:12px}.review-extra-values h3{font-size:1rem;color:#365d3a}.review-extra-values .reference-amount-row strong{font-size:1rem;max-width:60%;overflow-wrap:anywhere;text-align:right}.record-custom-values{font-size:1rem;margin:9px 0 0;display:grid;gap:6px;font-weight:400}.record-custom-values>div{display:flex;justify-content:space-between;gap:12px;background:#f3f9ee;border-radius:8px;padding:7px 9px;color:#4d6851}.record-custom-values dt{font-weight:600;flex:1}.record-custom-values dd{margin:0;text-align:right;flex:1;overflow-wrap:anywhere}.item-thumb{width:48px!important;height:48px!important;border-radius:11px;object-fit:cover;background:#f0f5eb;flex-shrink:0;pointer-events:none;vertical-align:middle;float:left;margin:0 11px 6px 0}.product-choice-icon.has-photo{display:grid!important;width:48px;height:48px;padding:0;background:transparent}.product-choice-icon.has-photo .item-thumb{margin:0}.product-photo-panel{padding:16px;background:#f7fff1;border:1px solid #cbe1c5;border-radius:16px;margin:14px 0;display:flex;flex-direction:column;gap:12px;flex-shrink:0}.product-photo-panel h3{font-size:1.08rem;color:#315c32}.product-photo-symbol{height:64px;width:64px;object-fit:cover;border:2px solid #fff;border-radius:13px;box-shadow:0 3px 6px #32673512}.photo-actions{display:flex;gap:9px;flex-wrap:wrap}.photo-actions button{font-size:1rem;flex:1;padding:10px;min-height:49px;line-height:1.2}.photo-status{font-size:1rem;line-height:1.35;color:#446e45}.photo-tool-dialog[open]{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(500px,calc(100vw - 20px));max-width:calc(100vw - 20px);height:min(900px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);padding:18px;border:2px solid #fff;border-radius:22px;display:flex;flex-direction:column;gap:14px;background:radial-gradient(ellipse at top left,#daf4d6,transparent 70%),#f6fff3;color:#1e4129;overflow:auto;box-shadow:0 20px 70px #0c34294d}.photo-tool-dialog::backdrop{background:#0b281bb3;backdrop-filter:blur(3px)}.photo-tool-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.photo-tool-heading h2{font-size:1.18rem;line-height:1.3}.photo-tool-heading button{min-height:44px;font-size:1rem;padding:9px 12px}.photo-crop-canvas{width:100%;height:auto;aspect-ratio:1;max-width:400px;align-self:center;border:3px solid #fff;outline:1px solid #83b38a;border-radius:13px;touch-action:none;cursor:grab;flex-shrink:0}.photo-crop-canvas:active{cursor:grabbing}.crop-sliders{display:grid;gap:11px;flex-shrink:0}.crop-sliders label{font-size:1rem;margin:0}.crop-sliders input{width:100%;min-height:36px;padding:0;accent-color:#07833c;cursor:pointer}.photo-tool-dialog>.primary{flex-shrink:0;position:sticky;bottom:-1px;min-height:54px;border-radius:13px;font-size:1rem;background:linear-gradient(#0a9e45,#006b21);color:#fff;box-shadow:0 3px 9px #194d2725}.photo-tool-dialog>.muted{font-size:1rem;line-height:1.35;flex-shrink:0}.camera-video{width:100%;aspect-ratio:1;object-fit:cover;background:#132519;border-radius:15px;flex-shrink:0}.photo-tool-dialog .photo-status:empty{display:none}
@media(max-width:760px){.builder-controls{grid-template-columns:1fr}.builder-field-card{padding:13px;gap:10px}.builder-form-choices{gap:7px}.builder-form-choices button{min-height:49px;padding:8px 5px;font-size:1rem}.builder-actions{grid-template-columns:1fr 1fr;gap:8px;padding:9px 0}.builder-actions button.primary{grid-column:1/-1;min-height:51px}.builder-actions button{min-height:44px;padding:9px}.custom-fields-grid,.form-configured-base{grid-template-columns:1fr;gap:13px}.builder-note{padding:11px}.business-builder-dialog #business-form-builder{padding-bottom:10px}.photo-tool-dialog[open]{padding:14px;gap:12px}.photo-crop-canvas{max-width:310px}.photo-actions button{min-height:48px;padding:9px}.product-photo-panel{padding:13px}.record-custom-values>div{padding:7px}.builder-top h2{font-size:1.12rem}}
@media(max-width:359px){.builder-form-choices{grid-template-columns:1fr 1fr}.builder-view-tabs button{padding:9px;font-size:1rem}.photo-actions{flex-direction:column}.photo-tool-heading h2{font-size:1rem}.photo-tool-heading button{padding:8px}.photo-crop-canvas{max-width:255px}.builder-preview{padding:12px}}
