/*! Copyright (c) 2026 StickerMint LLC. All rights reserved. Proprietary software. See LICENSE.txt. Third-party components retain their respective licenses. */
.proof-delete-button{color:#ad3d4e}
/* The merchant reviews artwork and edits the same proof case in a wide workspace. */
#modal[open]:has(.proof-detail-workspace){display:flex;flex-direction:column;width:min(1180px,calc(100vw - 36px));max-width:none;height:min(760px,calc(100dvh - 36px));max-height:calc(100dvh - 36px);overflow:visible;margin:auto}
#modal:has(.proof-detail-workspace) .dialog-head{padding:16px 20px;flex-shrink:0;gap:16px;min-height:64px}
#modal:has(.proof-detail-workspace) .dialog-head h2{font-size:21px;overflow-wrap:anywhere}
#modal:has(.proof-detail-workspace) .close-modal{min-width:40px;min-height:40px}
#modal:has(.proof-detail-workspace) .dialog-body{padding:18px 20px 0;min-height:0;flex:1;display:flex}
.proof-detail-workspace{min-width:0;min-height:0;flex:1;display:flex;flex-direction:column}
.proof-detail-grid{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px}
.proof-detail-artwork{position:relative;min-height:0;border:1px solid var(--line);border-radius:12px;background-color:#e9edf2;background-image:conic-gradient(#f3f5f8 25%,transparent 0 50%,#f3f5f8 0 75%,transparent 0);background-size:24px 24px}
.proof-detail-artwork>span{position:absolute;left:12px;top:12px;padding:6px 9px;border-radius:6px;background:#fffffff2;font-size:11px;font-weight:600}
.proof-detail-artwork img{position:absolute;left:20px;top:44px;width:calc(100% - 40px);height:calc(100% - 64px);object-fit:contain;filter:drop-shadow(0 7px 10px #17305220)}
.proof-detail-summary{min-width:0;font-size:12px}
.proof-detail-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.proof-detail-customer{display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere;margin-bottom:16px}
.proof-detail-customer strong{font-size:15px}.proof-detail-customer a{color:var(--blue);text-decoration:none}.proof-detail-customer small{font-size:10px}
.proof-detail-specs{margin:0;display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:12px}.proof-detail-specs dt{font-size:10px;color:var(--muted);margin-bottom:4px}.proof-detail-specs dd{margin:0;font-size:12px;font-weight:600;overflow-wrap:anywhere}.proof-detail-specs .proof-detail-total{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line)}.proof-detail-total dt{font-size:12px;color:var(--ink);margin:0}.proof-detail-specs .proof-detail-total dd{font-size:26px;letter-spacing:-.5px}
.proof-detail-feedback{margin:0 0 10px;padding:12px;font-size:12px}.proof-detail-feedback p{margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.proof-detail-explanation{margin:8px 0;font-size:11px}.proof-detail-message{padding:10px 12px;background:#f5f8fc;border-radius:8px;margin-top:10px}.proof-detail-message p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.proof-detail-history{font-size:11px;margin-top:12px}.proof-detail-history summary{cursor:pointer;color:var(--blue)}.proof-detail-history p{white-space:pre-wrap;overflow-wrap:anywhere}
.proof-detail-footer{border-top:1px solid var(--line);padding:14px 0 10px;margin-top:16px;flex-shrink:0}.proof-detail-footer .inline-actions{align-items:center;gap:8px}.proof-detail-footer .button{min-height:42px}.proof-detail-footer .button.danger{margin-left:auto}
@media(max-height:720px) and (min-width:761px){#modal:has(.proof-detail-workspace) .dialog-head{padding:10px 18px;min-height:56px}#modal:has(.proof-detail-workspace) .dialog-body{padding:14px 18px 0}.proof-detail-grid{gap:20px}.proof-detail-customer{margin-bottom:10px}.proof-detail-status{margin-bottom:10px}.proof-detail-specs{gap:8px}.proof-detail-specs .proof-detail-total{padding:10px 0}.proof-detail-feedback{padding:10px}.proof-detail-footer{margin-top:12px;padding-top:10px}.proof-detail-message{padding:8px 10px;margin-top:8px}}
@media(max-width:760px){#modal[open]:has(.proof-detail-workspace){width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);border-radius:14px}#modal:has(.proof-detail-workspace) .dialog-head{padding:10px 14px;min-height:56px}#modal:has(.proof-detail-workspace) .dialog-head h2{font-size:18px}#modal:has(.proof-detail-workspace) .dialog-body{padding:12px 14px 0}.proof-detail-grid{grid-template-columns:1fr;grid-template-rows:minmax(100px,1fr) auto;gap:12px}.proof-detail-summary{font-size:11px}.proof-detail-customer{margin-bottom:10px;gap:2px}.proof-detail-customer strong{font-size:13px}.proof-detail-status{margin-bottom:8px}.proof-detail-specs{gap:8px}.proof-detail-specs .proof-detail-total{padding:8px 0}.proof-detail-specs .proof-detail-total dd{font-size:23px}.proof-detail-feedback{padding:9px;font-size:11px;margin-bottom:8px}.proof-detail-explanation{margin:6px 0;font-size:10px}.proof-detail-message{padding:7px 9px;margin-top:7px}.proof-detail-artwork img{left:12px;top:26px;width:calc(100% - 24px);height:calc(100% - 38px)}.proof-detail-artwork>span{top:6px;left:7px;font-size:10px;padding:4px 7px}.proof-detail-footer{margin-top:12px;padding:10px 0 9px}.proof-detail-footer .inline-actions{gap:7px}.proof-detail-footer .button{font-size:11px;padding:9px 10px;min-height:40px}.proof-detail-footer .button.danger{margin-left:0}.proof-detail-footer [data-revise-proof]{flex-basis:100%;font-size:12px}}
.proof-detail-summary{line-height:1.45}.proof-detail-explanation.small{font-size:11px!important;line-height:1.45}.proof-detail-status>.small{font-size:10px!important}.proof-detail-message p{line-height:1.4}

/* Keep the proof actions together at the lower right, in keyboard order. */
.proof-detail-grid{grid-template-rows:minmax(0,1fr)}.proof-detail-footer{display:flex;flex-direction:column;align-items:flex-end;background:#fff;position:relative}.proof-detail-footer .inline-actions{width:100%;justify-content:flex-end;gap:8px}.proof-detail-footer .button{font-size:12px;min-height:44px;padding:10px 15px;line-height:1.5}.proof-detail-footer .button.danger{margin-left:0}
@media(max-height:620px) and (min-width:761px){.proof-detail-customer{flex-direction:row;flex-wrap:wrap;gap:3px 8px}.proof-detail-customer small{flex-basis:100%}.proof-detail-footer{margin-top:10px;padding-top:10px}}
@media(max-width:760px){.proof-detail-grid{grid-template-rows:minmax(100px,1fr) auto}.proof-detail-footer .button{font-size:11px;padding:9px 10px;min-height:40px}.proof-detail-footer [data-revise-proof]{flex-basis:auto}.proof-detail-footer .inline-actions{gap:7px}}

/* Matching action buttons share one baseline, including while hovered. */
.proof-detail-footer .button{flex:0 0 176px;width:176px;height:44px;min-height:44px;margin:0;padding:10px 15px;border-radius:10px;font-size:12px!important;font-weight:650;line-height:1.5;box-shadow:none;transform:none}.proof-detail-footer .button:hover{transform:none;box-shadow:none}
@media(max-width:760px){.proof-detail-footer .button,.proof-detail-footer [data-revise-proof]{flex:0 0 160px;width:160px;height:40px;min-height:40px;padding:9px 10px;font-size:11px!important}}

/* Footer actions stay compact as forwarding and merchant revisions are added. */
.proof-detail-footer>.inline-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.proof-detail-footer>.inline-actions>.button{flex:0 1 auto;min-width:0;padding:10px 14px;white-space:nowrap}
.proof-detail-footer .proof-forward-form[hidden]{display:none}
.proof-forward-form{margin-top:14px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff)}
.proof-forward-form h3{font-size:15px;margin:0 0 6px}
.proof-forward-form>p{margin:0 0 12px}
.proof-forward-form fieldset{display:grid;grid-template-columns:1fr 1fr;gap:14px;border:0;padding:0;margin:0;min-width:0}
.proof-forward-form .field{margin:0;min-width:0}
.proof-forward-form .field input{width:100%;min-width:0}
.proof-forward-form .proof-forward-status{margin:10px 0}
.proof-forward-form .proof-forward-status:empty{display:none}
.proof-forward-form>.inline-actions{justify-content:flex-end;margin-top:12px}
#modal:has(.proof-forward-form:not([hidden])) .dialog-body{overflow-y:auto}
#modal:has(.proof-forward-form:not([hidden])) .proof-detail-grid{flex:1 0 220px}
@media(max-width:760px){.proof-detail-footer>.inline-actions>.button{flex:1 1 calc(50% - 8px);font-size:12px;padding:10px 8px;white-space:normal}.proof-forward-form{padding:12px}.proof-forward-form fieldset{grid-template-columns:1fr;gap:10px}.proof-forward-form input{font-size:16px}}

/* Match the stable reference printed in the customer proof email. */
.proof-number-cell{width:1%;white-space:nowrap}
.proof-number{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.035em;white-space:nowrap}

/* Combined quote composer */
.quote-list-row{padding:12px 0;border-bottom:1px solid #ddd}#modal:has(#quote-compose){width:min(900px,calc(100vw - 32px));max-width:900px}#quote-compose [data-quote-items]{display:grid;gap:14px}#quote-compose [data-quote-items] .panel{padding:14px;margin:0}#quote-compose [data-quote-error]{color:#a34320}#quote-compose select{max-width:100%}

.quote-compose-preview{display:block;width:100%;height:150px;object-fit:contain;background:#eef1f5;border-radius:9px;margin:12px 0}

.proof-detail-workspace .quote-artworks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px}.proof-detail-workspace .quote-artwork{padding:14px;border:1px solid #dde6f1;border-radius:10px;min-width:0}.proof-detail-workspace .quote-artwork h3{overflow-wrap:anywhere}

#modal:has(.proof-collection-detail) .dialog-body{display:block;overflow-y:auto;overscroll-behavior:contain;padding-bottom:0}
.proof-collection-detail{display:block;min-height:100%;height:auto}
.proof-collection-detail .quote-artwork img{display:block;width:100%;height:180px;object-fit:contain;background:#f3f6fa;border-radius:8px}
.proof-collection-detail .proof-detail-footer{position:sticky;bottom:0;background:white;z-index:1;padding-bottom:16px}
