/* Shared Workshop milestone/customer-message dialog. Header and footer never scroll. */
.workshop-created-dialog{width:min(780px,calc(100vw - 24px));max-height:min(80dvh,calc(100dvh - 20px));margin:auto;padding:0;border:1px solid var(--optical-theme-border,#c9dfe0);border-radius:12px;color:var(--z-text,#1f2937);background:var(--z-surface,#fff);font:14px/1.35 Inter,"Segoe UI",sans-serif;box-sizing:border-box;overflow:hidden}
.workshop-created-dialog[open]{display:flex;flex-direction:column}.workshop-created-dialog::backdrop{background:#17343c66}
.workshop-created-dialog>header{display:flex;gap:9px;align-items:center;padding:8px 14px;flex:none;background:var(--optical-theme-success-soft,#e7f6f2)}
.workshop-created-dialog header>div{min-width:0;flex:1}.workshop-created-dialog h2{font-size:17px;line-height:1.3;margin:0;overflow-wrap:anywhere}.workshop-created-dialog header p{margin:2px 0 0;font-size:12px}
.created-check{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#16975d;color:#fff;font-size:21px;flex:none}
.workshop-created-dialog :is(button,a){min-height:32px;border:1px solid var(--optical-theme-border,#c9dfe0);border-radius:6px;padding:6px 10px;background:var(--z-surface,#fff);color:inherit;font:inherit;cursor:pointer;box-sizing:border-box}
.workshop-created-dialog header button{margin-left:auto;flex:none;width:30px;min-height:30px;padding:2px;font-size:21px;background:transparent}
.workshop-created-dialog .created-body{padding:9px 14px;min-height:0;overflow-y:auto;overflow-x:hidden;flex:0 1 auto;overscroll-behavior:contain}
.created-summary{padding:8px 10px;background:var(--optical-theme-info-soft,#f5f8fb);border:1px solid var(--optical-theme-border,#dce7ed);border-radius:8px}
.created-number>span{font-size:12px;color:var(--z-text-muted)}.created-number-main{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.created-number strong{font-size:24px;line-height:1.25;overflow-wrap:anywhere;color:var(--z-text,#102b45)}.created-number small{padding:2px 7px;border-radius:5px;background:var(--optical-theme-success-soft,#e7f6f2);color:var(--optical-theme-success,#087d52);font-size:11px}
.created-facts{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:5px 12px;margin:6px 0}.created-facts>div,.created-payment-row>div{min-width:0}.created-summary dt{font-size:11px;color:var(--z-text-muted,#52687b)}.created-summary dd{margin:1px 0 0;font-weight:650;overflow-wrap:anywhere;font-size:13px}
.created-payment-row{display:flex;gap:8px 16px;flex-wrap:wrap;margin:6px 0 0;padding-top:6px;border-top:1px solid var(--optical-theme-border,#dce7ed)}.created-payment-row>div{flex:1 1 120px}.created-payment-row dd{font-size:14px;font-variant-numeric:tabular-nums}
.created-message-heading{font-weight:650;margin-top:7px;font-size:13px}.created-message-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:4px 0}.created-stage-label{display:flex;align-items:center;gap:6px;font-size:12px;flex:1 1 290px;min-width:0}.created-stage-label select{width:100%;min-width:0;flex:1;max-width:none;height:32px}
.created-template-tabs{display:flex;gap:5px;flex:none}.workshop-created-dialog .created-template-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:4px 9px;font-size:12px;font-weight:600}.created-template-tabs [aria-selected=true]{background:var(--optical-theme-success-soft,#e0f2ed);border-color:var(--z-primary,#0f766e);color:var(--z-primary,#07594f);box-shadow:inset 0 -2px var(--z-primary,#0f766e)}
.workshop-created-dialog .created-tab-icon{width:16px;height:16px;max-width:16px;max-height:16px;flex:0 0 16px;display:block}.created-message{display:block;margin:0}.created-template-label{font-size:11px;color:var(--z-text-muted)}
.workshop-created-dialog .created-message textarea{display:block;box-sizing:border-box;width:100%;height:88px;min-height:88px;max-height:88px;overflow-y:auto;resize:none;margin-top:2px;padding:6px 8px;border:1px solid var(--optical-theme-border,#c9dfe0);border-radius:6px;background:var(--z-surface,#fff);color:var(--z-text,#1f2937);font:400 13px/19px Inter,"Segoe UI",sans-serif}
.created-sms-count{display:block;font-size:11px;line-height:1.3;margin-top:3px;color:var(--z-text-muted)}
.created-message-actions{display:grid;grid-template-columns:.8fr .8fr 1.4fr;gap:6px;margin-top:7px}.workshop-created-dialog .created-message-actions :is(button,a){display:flex;flex-direction:column;justify-content:center;text-align:center;min-height:38px;padding:5px 8px;font-size:12px;line-height:1.3;overflow-wrap:anywhere}.created-message-actions small{display:block;font-size:10px;font-weight:400;margin-top:2px}
.workshop-created-dialog .created-whatsapp,.workshop-created-dialog .created-continue{background:#0f766e;color:#fff;border-color:#0f766e;text-align:center;text-decoration:none}.workshop-created-dialog button:disabled{opacity:.55;cursor:not-allowed}
.workshop-created-dialog>footer{display:flex;gap:8px;flex-wrap:wrap;flex:none;position:relative;z-index:1;padding:8px 14px;border-top:1px solid var(--optical-theme-border,#dce7ed);background:var(--z-surface,#fff)}.created-continue{margin-left:auto}.workshop-created-dialog footer button{font-size:12px;white-space:normal}
.created-error{color:var(--optical-theme-danger,#b42318);margin:5px 0;font-size:12px}.workshop-created-dialog :focus-visible{outline:2px solid var(--z-primary);outline-offset:2px}
/* The modal is the success confirmation; errors and warnings are never hidden. */
body:has(#workshop-created-dialog[open]) .zn-toast-success{display:none}
@media(max-width:600px){.workshop-created-dialog{max-height:calc(100dvh - 16px);width:calc(100vw - 16px)}.created-facts{grid-template-columns:1fr 1fr}.created-message-toolbar{gap:5px}.created-stage-label{flex-basis:100%}.created-payment-row>div{flex-basis:90px}.workshop-created-dialog .created-body{padding:8px 10px}.created-message-actions{grid-template-columns:1fr 1fr}.created-message-actions .created-whatsapp{grid-column:1/-1}.workshop-created-dialog h2{font-size:16px}}
@media(max-height:600px){.workshop-created-dialog{max-height:calc(100dvh - 16px)}}
@media(max-width:420px){.created-facts{gap:5px 8px}.created-number strong{font-size:21px}.created-payment-row dd{font-size:12px}.created-stage-label{align-items:flex-start;flex-direction:column}.workshop-created-dialog footer .created-continue{margin-left:auto;max-width:75%}}
