/* Shared dialog appearance. Individual views keep their content widths and flows. */
body dialog{font-family:inherit;color:var(--text,#27323a);background:#fff;border:1px solid #e3e7e9;border-radius:18px;box-shadow:0 24px 80px #172b2933;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);box-sizing:border-box}
body dialog::backdrop{background:#172b2959;backdrop-filter:blur(3px)}
body dialog :is(input,select,textarea,button,.button){font-family:inherit}
body dialog :is(.floor-dialog-heading,.panel-heading),body dialog>header{align-items:center;gap:16px;border-bottom:1px solid #e7ebe9;padding-bottom:18px;background:#fff;color:var(--text,#27323a)}
body dialog :is(.floor-dialog-heading,.panel-heading)>h2,body dialog>header h2{font-size:22px;font-weight:650;line-height:1.3;margin:0;letter-spacing:-.3px}
body dialog :is(.floor-close,button[aria-label^="Cerrar"],a[aria-label="Cerrar"]){display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 34px;width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#f0f3f1!important;color:#5c6862!important;font-size:24px!important;font-weight:400;line-height:1;text-decoration:none;cursor:pointer;box-shadow:none}
body dialog :is(.floor-close,button[aria-label^="Cerrar"],a[aria-label="Cerrar"]):hover{background:#e3eae6!important;color:#273a30!important}
body dialog :is(.floor-close,button[aria-label^="Cerrar"],a[aria-label="Cerrar"]):focus-visible{outline:2px solid #2e7d5b;outline-offset:3px}
body dialog :is(.floor-dialog-actions,.form-actions,.record-edit-actions){display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding-top:16px;margin-top:18px;border-top:1px solid #e7ebe9}
body dialog :is(.floor-dialog-actions,.form-actions,.record-edit-actions)>.button{width:auto;min-height:40px;border-radius:9px;padding:10px 16px;font-size:14px;font-weight:600;line-height:1.3;margin-top:0}
body dialog :is(.floor-dialog-actions,.form-actions,.record-edit-actions)>:is(.button-delete,.button-danger){order:0;margin-right:auto}
body dialog :is(.floor-dialog-actions,.form-actions,.record-edit-actions)>:is(.button-save,.button-primary){order:1}
body dialog :is(.floor-dialog-actions,.form-actions,.record-edit-actions)>:is(.button-quiet,[data-role-close],[data-user-delete-close]){order:2}
body dialog :is(.button-save,.floor-save-button){background:#2e7d5b;border-color:#2e7d5b;color:#fff}
body dialog :is(.button-delete,.button-danger){background:#fbeaec;border-color:#f2ccd2;color:#b12e47}
body dialog .button-quiet{background:#f1f3f2;border-color:#e1e6e3;color:#46564d}
body dialog :is(label,legend){font-size:14px;line-height:1.45}
body dialog :is(.field-error,[role=alert]){color:#b12e47}
/* Payment outcomes retain their success/error meaning. */
body dialog .payment-result-heading{color:#fff}
@media(max-width:600px){body dialog{border-radius:15px;max-height:calc(100dvh - 20px)}body dialog :is(.floor-dialog-heading,.panel-heading)>h2,body dialog>header h2{font-size:20px}body dialog :is(.floor-dialog-actions,.form-actions,.record-edit-actions){gap:8px}body dialog :is(.floor-dialog-actions,.form-actions,.record-edit-actions)>.button{padding:10px 12px}}
body dialog .payment-result-heading{background:#2e7d5b;color:#fff}
body dialog.payment-outcome-error .payment-result-heading{background:#b91c1c}
body dialog.payment-outcome-pending .payment-result-heading{background:#92400e}
