/* Contracts: calm, compact and responsive with a readable document surface. */
.ct-manual-upload{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:8px;background:#faf6f9}.ct-manual-upload>label{display:block;font-size:14px;margin-bottom:12px}.ct-manual-upload input[type=file]{display:block;max-width:100%;width:100%;font:inherit;font-size:13px;line-height:1.7;color:var(--ink)}.ct-manual-upload input[type=file]::file-selector-button{min-height:44px;padding:10px 16px;margin-right:12px;border:1px solid var(--line);border-radius:5px;background:#fffdfd;color:var(--ink);font:inherit;cursor:pointer}.ct-manual-upload .form-note{margin:12px 0 0;overflow-wrap:anywhere}.ct-manual-upload [role=status]:empty{display:none}.ct-job-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.ct-job-heading-actions>.text-btn{min-height:44px}.ct-pdf-document{display:flex;align-items:flex-start;gap:20px;padding:24px;border:1px solid var(--line);border-radius:8px;background:#faf6f9}.ct-pdf-document>div{min-width:0}.ct-pdf-document h3{font-size:19px;margin:0 0 12px;overflow-wrap:anywhere}.ct-pdf-document p{font-size:13px;line-height:1.7;margin:7px 0;overflow-wrap:anywhere}.ct-pdf-icon{display:grid;place-items:center;min-width:48px;height:60px;border:1px solid #bda1c8;border-radius:5px;color:var(--purple);font:12px var(--mono);background:#f1eaf3}.ct-manual{background:#eee6ec;color:#664b61}
@media(max-width:620px){.ct-manual-upload{padding:16px}.ct-job-heading-actions{width:100%;justify-content:flex-start}.ct-job-heading-actions>.btn{flex:1}.ct-pdf-document{gap:14px;padding:18px 14px}.ct-pdf-document h3{font-size:16px}.ct-pdf-icon{min-width:40px;height:52px}}
.ct-draft-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.ct-draft-actions button{min-height:44px;font-size:13px}.ct-draft-actions>.text-btn{color:var(--muted);padding:8px 0}.ct-draft-actions>.btn{white-space:normal;text-align:center}.ct-wizard[inert]{opacity:.75}
@media(max-width:420px){.ct-draft-actions{gap:10px}.ct-draft-actions>.btn{flex:1;padding:12px 10px}.ct-draft-actions>.text-btn{max-width:38%;text-align:left}}
.ct-mode-job{margin:0 0 18px;color:var(--muted);font-size:14px;overflow-wrap:anywhere}.ct-mode-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ct-mode-choices>button{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;padding:22px 18px;border:1px solid var(--line);border-radius:8px;background:#faf6f9;color:var(--ink);font:inherit;cursor:pointer;min-width:0;min-height:112px}.ct-mode-choices>button:hover{border-color:var(--purple);background:#f1e7ee}.ct-mode-choices>button:focus-visible{outline:2px solid var(--purple);outline-offset:3px}.ct-mode-choices strong{display:block;font-size:16px;font-weight:500}.ct-mode-choices small{display:block;font-size:13px;line-height:1.6;color:var(--muted);margin-top:8px}.ct-mode-description{margin:0;line-height:1.8;font-size:15px}.ct-mode-choices>button>span:last-child{color:var(--purple);font-size:22px;flex-shrink:0}
@media(max-width:600px){.ct-mode-choices{grid-template-columns:1fr}.ct-mode-choices>button{min-height:98px;padding:18px 16px}}
.ct-page .page-head{align-items:center}.ct-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:20px}.ct-notice{background:#f4ede4;border:1px solid #e7d5bc;border-radius:8px;padding:16px 20px;margin-bottom:22px;color:#725c3a;line-height:1.7}.ct-notice p{margin:3px 0 0;font-size:13px}.ct-notice.ct-ready{background:#eef3ed;border-color:#cfdfce;color:#486447}.ct-count{border:1px solid var(--line);padding:5px 10px;border-radius:20px}.ct-empty{padding:30px 12px;text-align:center;max-width:460px;margin:auto}.ct-empty>span{font-size:32px;color:var(--purple);display:block;margin-bottom:18px}.ct-empty p{color:var(--muted);line-height:1.8}.ct-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 0;border-top:1px solid var(--line)}.ct-row:first-of-type{border-top:0}.ct-row>div:first-child{min-width:0}.ct-row p{margin:7px 0 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere;line-height:1.6}.ct-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.ct-signature-preview{padding:14px;background:#fff;border-bottom:1px solid var(--line);margin:12px 0 20px;min-height:85px;display:flex;align-items:center;justify-content:center;overflow:hidden}.ct-signature-preview img{max-width:100%;max-height:110px;object-fit:contain}.ct-typed-signature{font-family:Georgia,serif;font-style:italic;font-size:32px;overflow-wrap:anywhere}.ct-stylist>strong{font-weight:500}.ct-dialog{width:min(900px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:1px solid var(--line);border-radius:12px;padding:0;color:var(--ink);background:var(--white);box-shadow:0 20px 90px #281b3a33;overflow:auto;overscroll-behavior:contain}.ct-dialog::backdrop{background:#281c2d70;backdrop-filter:blur(3px)}.ct-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:15px;padding:25px 30px;background:#f9f5f8;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.ct-dialog-head h2{margin:8px 0 0;font-size:25px}.ct-dialog-head button{min-width:40px;min-height:40px}.ct-dialog-body{padding:28px 30px}.ct-dialog button:disabled{cursor:not-allowed;opacity:.5}.ct-dialog input,.ct-dialog textarea,.ct-dialog select{font-size:15px}.ct-dialog .ct-body-input{min-height:250px;line-height:1.8;font-size:15px}.ct-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.ct-footer .btn{min-height:46px}.ct-steps{display:flex;gap:16px;color:var(--muted);font-size:12px;margin-bottom:25px;flex-wrap:wrap}.ct-steps .active{color:var(--purple);font-weight:600}.ct-template-choices{display:grid;grid-template-columns:1fr 1fr;gap:15px}.ct-template-choices>button{text-align:left;background:#fcf9fb;border:1px solid var(--line);padding:24px;border-radius:7px;color:var(--ink);display:grid;gap:13px}.ct-template-choices>button:hover{border-color:var(--purple);background:#f4edf3}.ct-template-choices span{font-size:13px;color:var(--muted);line-height:1.7}.ct-template-choices small{color:var(--purple);margin-top:6px}.ct-editor-section{border:1px solid var(--line);border-radius:8px;padding:20px;margin:10px 0 24px;background:#faf6f9}.ct-editor-section h3{font-size:15px;font-weight:500;margin-bottom:20px}.ct-item{display:grid;grid-template-columns:minmax(0,1fr) 80px 140px 26px;gap:10px;align-items:center}.ct-item label{margin-bottom:10px}.ct-item .text-btn{padding:0;font-size:25px;margin-top:9px}.ct-travel{max-width:220px;margin-top:18px}.ct-total{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:17px;margin-top:18px}.ct-total strong{font-size:20px;font-weight:500;white-space:nowrap}.ct-contract-meta{display:flex;justify-content:space-between;gap:15px;font-size:11px;color:var(--muted);margin-bottom:22px;overflow-wrap:anywhere}.ct-send-panel{background:#f8f2f7;border:1px solid var(--line);border-radius:8px;padding:24px;margin-top:28px}.ct-send-panel p{font-size:13px;line-height:1.8}.ct-consent{display:flex;align-items:flex-start;gap:10px;line-height:1.7;font-size:14px!important;margin-top:22px}.ct-consent input{margin-top:5px!important;flex-shrink:0;width:18px!important;height:18px;min-height:18px!important}.ct-job-section{border:1px solid var(--line);border-radius:7px;background:#faf6f9;padding:20px;margin:22px 0;display:flex;align-items:center;justify-content:space-between;gap:20px}.ct-job-section h3{font-size:17px;margin:9px 0}.ct-job-section p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}.ct-job-section .btn{flex-shrink:0}.ct-signed{background:#e9f1e7!important;color:#466b44!important}.ct-sent,.ct-sending{background:#fbf1db!important;color:#80682d!important}.ct-send_failed{background:#fae6e6!important;color:#944444!important}.ct-cancelled{background:#eee!important;color:#777!important}.ct-error{padding:12px;border:1px solid #edc6cb;background:#fff5f5;border-radius:5px;line-height:1.6}.ct-dialog pre{white-space:pre-wrap;font:inherit;line-height:1.7}
@media(max-width:820px){.ct-grid{grid-template-columns:1fr}.ct-dialog input,.ct-dialog textarea,.ct-dialog select{font-size:16px}.ct-page .page-head{flex-wrap:wrap}.ct-dialog{width:calc(100% - 18px);max-height:calc(100dvh - 18px)}.ct-dialog-head{padding:18px}.ct-dialog-body{padding:20px 18px}.ct-dialog .form-grid{grid-template-columns:1fr}.ct-dialog .wide{grid-column:auto}.ct-row{align-items:flex-start}.ct-actions{align-items:flex-end;flex-direction:column}.ct-template-choices{grid-template-columns:1fr}.ct-job-section{align-items:stretch;flex-direction:column}.ct-stylist{order:-1}}
@media(max-width:540px){.ct-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 26px;padding:10px 0;border-top:1px solid var(--line)}.ct-item label:first-child{grid-column:1/-1}.ct-item .text-btn{grid-column:3}.ct-editor-section{padding:15px}.ct-footer{flex-direction:column-reverse;align-items:stretch}.ct-footer .btn{width:100%}.ct-dialog-head h2{font-size:22px}.ct-send-panel{padding:18px}.ct-steps{gap:8px;font-size:11px}.ct-total strong{font-size:18px}.ct-row{flex-direction:column;gap:10px}.ct-actions{flex-direction:row;align-items:center;justify-content:space-between;width:100%}}
@media print{body:has(.ct-dialog[open])>*:not(.ct-dialog){display:none!important}.ct-dialog[open]{display:block!important;position:static;width:100%;max-width:none;height:auto;max-height:none;border:0;box-shadow:none;overflow:visible}.ct-dialog-head,.ct-dialog .ct-footer,.ct-dialog .ct-send-panel,.ct-contract-meta{display:none!important}.ct-dialog-body{padding:0}.ct-dialog::backdrop{display:none}.cs-document{box-shadow:none!important;border:0!important;padding:0!important}}

body:has(.ct-dialog[open]){overflow:hidden}


.ct-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ct-header-actions .btn{min-height:44px}@media(max-width:540px){.ct-header-actions{width:100%}.ct-header-actions .btn{flex:1;white-space:normal}}

/* One prefilled contract, with products available throughout editing. */
.ct-all-contracts{margin-bottom:30px}.ct-all-contracts h2 .ct-count{font-size:12px;font-weight:500;vertical-align:middle;margin-left:7px}.ct-setup-heading{margin:30px 0 18px}.ct-setup-heading h2{font-size:21px;margin:0 0 8px}.ct-setup-heading p{font-size:13px;color:var(--muted);line-height:1.7;margin:0}.ct-prefill-note{margin-top:0}.ct-template-select{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,1fr);gap:18px;align-items:center;margin-bottom:18px}.ct-template-select label{margin:0}.ct-template-select p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}.ct-edit-details{border:1px solid var(--line);border-radius:8px;margin:0 0 20px;padding:0 18px;background:#fff}.ct-edit-details>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;padding:17px 0;list-style:none}.ct-edit-details>summary::-webkit-details-marker{display:none}.ct-edit-details>summary:after{content:'⌄';font-size:20px;color:var(--purple)}.ct-edit-details>summary>span:first-child{flex:1;min-width:0}.ct-edit-details>summary strong{display:block;font-size:15px;font-weight:600;overflow-wrap:anywhere}.ct-edit-details>summary small{display:block;margin-top:6px;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}.ct-edit-label{font-size:12px;color:var(--purple)}.ct-edit-details[open]>summary{border-bottom:1px solid var(--line);margin-bottom:18px}.ct-edit-details[open]>summary:after{content:'⌃'}.ct-edit-details[open]{padding-bottom:16px}.ct-products-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.ct-products-heading h3{margin:0}.ct-products-heading .form-note{margin:0;font-size:12px}.ct-item{grid-template-columns:minmax(0,1fr) 65px 115px 95px 24px;gap:10px}.ct-line-total{align-self:center;min-width:0;margin-bottom:8px}.ct-line-total span{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-bottom:13px}.ct-line-total strong{display:block;font-size:12px;white-space:nowrap;font-weight:500}.ct-price-missing{grid-column:1/-1;font-size:12px;color:#895b24;margin:0 0 14px;line-height:1.6}.ct-price-missing[hidden]{display:none}.ct-add-products{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding-top:16px;border-top:1px solid var(--line);margin-top:10px}.ct-add-products label{flex:1 1 240px;margin:0}.ct-add-products .btn{min-height:44px;white-space:nowrap}.ct-add-products .text-btn{padding:10px 0;min-height:44px}.ct-total small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.ct-standard-signature{font-size:12px;color:var(--muted);line-height:1.8;margin-top:18px}.ct-standard-signature strong{font-weight:600;color:var(--ink)}.ct-job-section{display:block}.ct-job-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.ct-job-history{margin-top:20px;border-top:1px solid var(--line);max-height:420px;overflow:auto}.ct-job-history .ct-row{padding:16px 0}.ct-job-history .ct-row strong{font-size:13px}.ct-job-history .ct-row p{font-size:11px}
@media(max-width:820px){.ct-stylist{order:initial}.ct-job-heading{align-items:flex-start}.ct-template-select{grid-template-columns:1fr;gap:7px}.ct-edit-details{padding:0 14px}.ct-products-heading{align-items:flex-start;flex-direction:column;gap:5px}.ct-job-history .ct-actions{align-items:flex-end}.ct-job-history .ct-row{align-items:flex-start}.ct-item{grid-template-columns:minmax(0,1fr) 65px 100px 85px 22px}}
@media(max-width:620px){.ct-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 14px;padding:12px 0;border-top:1px solid var(--line)}.ct-item label:first-child{grid-column:1/-1}.ct-item label:nth-of-type(2){grid-column:1;grid-row:2}.ct-item label:nth-of-type(3){grid-column:2;grid-row:2}.ct-item .text-btn{grid-column:2;grid-row:3;justify-self:end;min-width:44px;min-height:44px;margin-top:0}.ct-line-total{grid-column:1;grid-row:3;margin-bottom:0}.ct-line-total span{margin-bottom:4px}.ct-line-total strong{white-space:normal;overflow-wrap:anywhere}.ct-edit-label{display:none}.ct-add-products{align-items:stretch}.ct-add-products label{flex-basis:100%}.ct-add-products .btn{flex:1}.ct-add-products .text-btn{width:100%;text-align:left}.ct-job-heading{flex-direction:column;align-items:stretch}.ct-job-history .ct-row{flex-direction:column}.ct-job-history .ct-actions{align-items:center;flex-direction:row}.ct-total{align-items:flex-start}.ct-total strong{font-size:16px;white-space:normal;text-align:right;max-width:60%}}

/* Product search stays in the product-name field of each editable line. */
.ct-product-field{position:relative;min-width:0;align-self:start}.ct-product-field>label{display:block}.ct-product-suggestions{position:absolute;z-index:5;top:calc(100% - 6px);left:0;width:min(420px,calc(100vw - 90px));min-width:100%;border:1px solid #d9c9dc;border-radius:8px;background:#fff;box-shadow:0 12px 30px #3921421f;padding:8px;box-sizing:border-box}.ct-product-suggestions[hidden]{display:none}.ct-product-suggestions [role=listbox]{max-height:250px;overflow:auto;overscroll-behavior:contain}.ct-product-search-note,.ct-product-own{font-size:11px;line-height:1.6;color:var(--muted);margin:4px 7px 8px}.ct-product-own{border-top:1px solid var(--line);padding-top:8px;margin-bottom:3px}.ct-product-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:12px 10px;min-height:48px;text-align:left;border:0;border-radius:5px;background:white;color:var(--ink);cursor:pointer;font:inherit}.ct-product-option:hover,.ct-product-option[aria-selected=true]{background:#f2eaf3}.ct-product-option:focus-visible{outline:2px solid var(--purple);outline-offset:-2px}.ct-product-option>span:first-child{min-width:0}.ct-product-option strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.ct-product-option small{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}.ct-product-option-price{white-space:nowrap;font-size:12px;color:var(--purple);flex-shrink:0}.ct-add-products p{font-size:12px;color:var(--muted);line-height:1.7;margin:0;flex:1 1 230px}.ct-add-products{align-items:center}
@media(max-width:620px){.ct-item>.ct-product-field{grid-column:1/-1;grid-row:1}.ct-item>label.ct-item-quantity{grid-column:1;grid-row:2}.ct-item>label.ct-item-price{grid-column:2;grid-row:2}.ct-product-suggestions{width:100%;min-width:0}.ct-product-suggestions [role=listbox]{max-height:220px}.ct-product-option{gap:10px;padding:11px 8px}.ct-add-products p{flex-basis:100%}}

/* Saved assignment lines start as a compact price summary. */
.ct-item{display:block;padding:0;border:0}.ct-item-details{border-bottom:1px solid var(--line)}.ct-item-summary,.ct-travel-details>summary{display:flex;align-items:center;gap:12px;min-height:60px;padding:13px 0;list-style:none;cursor:pointer}.ct-item-summary::-webkit-details-marker,.ct-travel-details>summary::-webkit-details-marker{display:none}.ct-item-summary>span:first-child{flex:1;min-width:0}.ct-item-summary-name{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.ct-item-summary-detail{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:5px}.ct-item-summary-total{font-size:14px;font-weight:500;text-align:right;white-space:nowrap}.ct-edit-icon{color:var(--purple);border:1px solid #decfe2;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;background:#fff}.ct-item-summary:hover .ct-edit-icon,.ct-travel-details>summary:hover .ct-edit-icon{background:#eee4f0}.ct-item-summary:focus-visible,.ct-travel-details>summary:focus-visible{outline:2px solid var(--purple);outline-offset:3px;border-radius:4px}.ct-item-details[open]>.ct-item-summary{border-bottom:1px solid var(--line);margin-bottom:14px}.ct-item-fields{display:grid;grid-template-columns:minmax(0,1fr) 65px 115px 95px 24px;gap:10px;align-items:center;padding-bottom:14px}.ct-travel-details>summary{min-height:52px}.ct-travel-details>summary>span:first-child{flex:1;font-size:13px}.ct-travel-details>summary>strong{font-size:14px;font-weight:500}.ct-travel-details .ct-travel{margin:0 0 14px;max-width:240px}.ct-total{margin-top:6px}.ct-add-products{margin-top:20px;padding-top:0;border-top:0}.ct-autosave{flex:1;font-size:12px;line-height:1.6;color:var(--muted);min-width:0}.ct-autosave .text-btn{margin-left:8px}.ct-autosave [hidden]{display:none!important}
@media(max-width:820px){.ct-item-fields{grid-template-columns:minmax(0,1fr) 65px 100px 85px 22px}}
@media(max-width:620px){.ct-item-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 14px}.ct-item-fields>.ct-product-field{grid-column:1/-1;grid-row:1}.ct-item-fields>label.ct-item-quantity{grid-column:1;grid-row:2}.ct-item-fields>label.ct-item-price{grid-column:2;grid-row:2}.ct-item-summary{gap:10px}.ct-item-summary-name{font-size:13px}.ct-item-summary-total{font-size:13px;white-space:normal;max-width:40%;overflow-wrap:anywhere}.ct-item-summary-detail{font-size:11px}.ct-edit-icon{width:30px;height:30px}.ct-autosave{width:100%}}

/* Four authoring steps; completed sections stay compact and can be reopened. */
.ct-wizard-step{border:1px solid var(--line);border-radius:9px;background:#fff;margin-bottom:12px}.ct-step-heading{display:flex;align-items:center;gap:13px;width:100%;padding:17px 18px;border:0;border-radius:9px;background:#faf7fa;text-align:left;color:var(--ink);font:inherit;cursor:pointer}.ct-step-heading>span:last-child{min-width:0;flex:1}.ct-step-heading strong{display:block;font-size:15px;font-weight:500}.ct-step-heading small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}.ct-step-index{display:flex;align-items:center;justify-content:center;width:29px;height:29px;flex-shrink:0;border:1px solid #d8c7dd;border-radius:50%;font-size:12px;color:var(--purple);background:#fff}.ct-wizard-step[data-active=true]{border-color:#bda1c8}.ct-wizard-step[data-active=true]>.ct-step-heading{background:#f0e7f2}.ct-wizard-step[data-active=true] .ct-step-index{background:var(--purple);border-color:var(--purple);color:#fff}.ct-wizard-step[data-complete=true] .ct-step-index{color:#466b44;border-color:#c4d7c1;background:#edf4eb}.ct-step-panel{padding:22px 20px}.ct-step-panel[hidden]{display:none!important}.ct-step-panel>.ct-editor-section{margin:0;padding:0;border:0;background:transparent}.ct-step-panel>.ct-edit-details{margin-top:18px}.ct-step-panel>.ct-customer-card{margin-top:0;margin-bottom:0}.ct-step-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.ct-step-actions>.btn:last-child{margin-left:auto;min-height:44px}.ct-wizard>.ct-autosave{margin:12px 2px 0;min-height:0}.ct-wizard #ct-review-content .ct-contract-meta{display:none}.ct-wizard #ct-review-content .cs-document{padding:25px 20px}.ct-customer-card .ct-edit-label{display:inline!important;white-space:nowrap;font-size:12px}.ct-step-heading:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
@media(max-width:620px){.ct-step-heading{padding:14px 13px;gap:10px}.ct-step-heading strong{font-size:14px}.ct-step-heading small{font-size:11px}.ct-step-panel{padding:18px 13px}.ct-step-panel .ct-edit-details{padding-right:12px;padding-left:12px}.ct-step-panel .ct-editor-section{padding:0}.ct-step-actions{align-items:stretch}.ct-step-actions .btn{white-space:normal}.ct-customer-card>summary{flex-wrap:wrap;gap:10px}.ct-customer-card>summary>span:first-child{flex-basis:100%}.ct-customer-card>summary:after{margin-left:auto}.ct-wizard #ct-review-content .cs-document{padding:20px 13px}.ct-wizard #ct-review-content .ct-send-panel{padding:16px 13px}}

.ct-item-confirm{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:12px;padding-top:6px}.ct-item-confirm .btn{min-height:44px}.ct-item-error{margin:0;flex:1;font-size:12px;line-height:1.6}.ct-item-error[hidden]{display:none}
.ct-item-fields>label.ct-item-vat{grid-column:1/-1;grid-row:auto;max-width:320px;margin:0}.ct-item-vat select{min-height:44px}
.ct-total-vat{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:8px;color:var(--muted);font-size:12px}.ct-total-vat strong{text-align:right;font-weight:500}
@media(max-width:620px){.ct-item-confirm{flex-direction:column;align-items:stretch}.ct-item-confirm .btn{width:100%}.ct-item-error{width:100%}}

/* Keep product browsing stable while the mobile keyboard is closed or opening. */
.cd-product-name{position:relative}.cd-product-results{position:absolute;z-index:5;top:100%;left:0;right:0}
@media(max-width:820px){
 .admin-site .ct-dialog{margin:9px auto}.admin-site .cd-dialog{margin:8px auto}
 .admin-site .ct-dialog::backdrop,.admin-site .cd-dialog::backdrop{backdrop-filter:none}
 .admin-site .cd-footer{backdrop-filter:none;background:#fffdfd}
 .ct-product-suggestions{width:100%;min-width:0}
 .ct-product-suggestions [role=listbox],.admin-site .cd-product-results{max-height:min(250px,35svh)}
}

/* The live draft uses the same document as signing, alongside the editor on wide screens. */
.ct-dialog-head-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.ct-preview-trigger{font-size:13px;min-height:44px;white-space:normal}
.ct-preview-trigger[hidden],.ct-live-preview-pane[hidden]{display:none!important}
.ct-editor-layout,.ct-editor-column{min-width:0}
.ct-live-preview-pane{min-width:0;border:1px solid var(--line);border-radius:9px;background:#f7f3f7;overflow:hidden}
.ct-live-preview-head{padding:18px 22px;border-bottom:1px solid var(--line);background:#f5eff6;flex-shrink:0}
.ct-live-preview-head h3{margin:0;font-size:16px;font-weight:500;color:var(--ink)}
.ct-live-preview-head p{margin:6px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
#ct-live-preview-content{min-height:0;padding:18px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#ct-live-preview-content:focus-visible,.ct-preview-document:focus-visible{outline:2px solid var(--purple);outline-offset:-3px}
#ct-live-preview-content .cs-document{margin:0;padding:26px 22px;box-shadow:0 5px 18px #3921420a}
.ct-preview-dialog{width:min(920px,calc(100% - 20px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);font:inherit;box-shadow:0 20px 90px #281b3a33;overflow:hidden;overscroll-behavior:contain}
.ct-preview-dialog[open]{display:flex;flex-direction:column}
.ct-preview-dialog::backdrop{background:#281c2d90}
.ct-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-shrink:0;padding:22px 24px;border-bottom:1px solid var(--line);background:#f9f5f8}
.ct-preview-head h2{margin:0;font:500 20px var(--mono);line-height:1.4}
.ct-preview-head p{margin:8px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.ct-preview-head button{flex-shrink:0;min-width:44px;min-height:44px}
.ct-preview-document{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:24px;background:#f7f3f7;scrollbar-gutter:stable}
.ct-preview-document .cs-document{margin:0;padding:28px}
.ct-preview-document.ct-saved-pdf{padding:0;overflow:hidden;scrollbar-gutter:auto}
.ct-saved-pdf iframe{display:block;width:100%;height:100%;border:0}
.ct-saved-pdf-actions{display:flex;justify-content:flex-end;padding:10px 16px;border-top:1px solid var(--line);background:var(--white)}
.ct-saved-pdf-actions[hidden]{display:none}
.ct-saved-pdf-actions .btn{min-height:44px}
.ct-review-pdf{display:none;margin-bottom:16px}
.ct-review-pdf .btn{min-height:44px}
.pwa-standalone .ct-review-pdf{display:block}
@media(max-width:820px),(display-mode:standalone){.ct-review-pdf{display:block}}
.ct-review-pdf-navigation{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;margin-bottom:10px;text-align:center;font-size:12px}
.ct-review-pdf-navigation .btn{min-width:0;min-height:44px;padding:7px;font-size:12px;white-space:normal}
.ct-review-pdf-navigation .btn:first-child{justify-self:start}
.ct-review-pdf-navigation .btn:last-child{justify-self:end}
.ct-review-pdf-canvas{display:block;width:100%;max-width:780px;height:auto;margin:auto;background:white;border:1px solid var(--line)}
.ct-compact-pdf .ct-review-pdf{display:block;border:1px solid var(--line);border-radius:9px;padding:12px;background:#f7f3f7;max-width:640px;margin:0 auto 20px;overflow:hidden}
.ct-compact-pdf #ct-review-content:has(.ct-review-pdf)>.cs-document{display:none}
.ct-review-pdf-content{min-width:0;min-height:0}
.ct-page-pdf{scrollbar-gutter:auto}
.ct-page-pdf .ct-review-pdf-canvas{width:100%;max-width:100%;height:clamp(220px,52dvh,560px);object-fit:contain}
.ct-page-pdf .ct-review-pdf-navigation{position:sticky;top:0;background:#f7f3f7;z-index:1}
.ct-review-pdf .ct-saved-pdf-actions{padding:10px 0 0;margin-top:10px;background:transparent}
@media(min-width:1200px){
 .ct-dialog.ct-live-editor[open]{display:flex;flex-direction:column;width:min(1600px,calc(100% - 40px));height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);overflow:hidden}
 .ct-live-editor .ct-dialog-head{position:static;flex-shrink:0;padding:20px 26px}
 .ct-live-editor .ct-dialog-body{flex:1;min-height:0;padding:22px}
 .ct-live-editor .ct-editor-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:22px;height:100%}
 .ct-live-editor .ct-editor-column{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:8px;scrollbar-gutter:stable}
 .ct-live-editor .ct-live-preview-pane{display:flex;flex-direction:column;min-height:0}
 .ct-live-editor .ct-item-fields{grid-template-columns:minmax(0,1fr) 60px 100px 74px 24px;gap:8px}
 .ct-live-editor .ct-line-total strong{white-space:normal;overflow-wrap:anywhere}
 .ct-live-editor .ct-step-panel{padding:20px 16px}
 .ct-live-editor .ct-item-summary-total{max-width:35%;white-space:normal}
}
@media(max-width:620px){
 .ct-dialog-head:has(.ct-preview-trigger:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:14px 12px}
 .ct-dialog-head:has(.ct-preview-trigger:not([hidden]))>.ct-dialog-head-actions{display:contents}
 .ct-dialog-head:has(.ct-preview-trigger:not([hidden])) .ct-preview-trigger{grid-column:1/-1;grid-row:2;width:100%;margin:0}
 .ct-dialog-head:has(.ct-preview-trigger:not([hidden])) [data-ct="close"]{grid-column:2;grid-row:1;align-self:start}
 .ct-preview-dialog{width:calc(100% - 14px);height:calc(100dvh - 14px);max-height:calc(100dvh - 14px);margin:7px auto}
 .ct-preview-head{padding:18px 16px;gap:10px}
 .ct-preview-head h2{font-size:18px}
 .ct-preview-document{padding:12px}
 .ct-preview-document .cs-document{padding:20px 14px}
}
@media print{
 .ct-compact-pdf #ct-review-content:has(.ct-review-pdf)>.cs-document{display:block!important}
 .ct-live-preview-pane,.ct-preview-trigger,.ct-live-preview-head,.ct-saved-pdf-actions,.ct-review-pdf{display:none!important}
 .ct-editor-layout,.ct-editor-column{display:block!important;height:auto!important;overflow:visible!important}
 body:has(.ct-preview-dialog[open])>*:not(.ct-preview-dialog){display:none!important}
 body:has(.ct-preview-dialog[open]) .ct-preview-dialog[open]{display:block!important;position:static;width:100%;height:auto;max-height:none;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible}
 .ct-preview-head{padding:0 0 14px;background:white}
 .ct-preview-head button{display:none!important}
 .ct-preview-document{display:block;padding:0;background:white;height:auto;overflow:visible}
 .ct-preview-document .cs-document{padding:0;box-shadow:none}
}
@media print{
 .ct-draft-actions,.ct-autosave,.ct-step-heading,.ct-step-actions{display:none!important}
 .ct-wizard-step:not([data-active="true"]){display:none!important}
 .ct-wizard-step{border:0!important;background:transparent!important;margin:0!important}
 .ct-step-panel{padding:0!important}
}

/* Text-only settings for the fixed contract appendix. */
.ct-withdrawal-card{margin-top:24px}
.ct-withdrawal-layout,.ct-withdrawal-fields,.ct-withdrawal-preview-pane{min-width:0}
.ct-withdrawal-fields{display:grid;gap:18px}
.ct-withdrawal-fields label{min-width:0}
.ct-withdrawal-fields textarea{min-height:110px;resize:vertical}
.ct-withdrawal-preview-pane{margin-top:26px;padding:20px;background:#f7f3f7;border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}
.ct-withdrawal-preview-pane>h3{margin:0 0 16px;font-size:16px;font-weight:500}
#ct-withdrawal-preview{min-width:0}
#ct-withdrawal-preview .cs-document{margin:0;padding:26px 22px;box-shadow:0 5px 18px #3921420a}
@media(min-width:1200px){
 .ct-dialog.ct-withdrawal-editor{width:min(1500px,calc(100% - 40px))}
 .ct-withdrawal-layout:has(form){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:30px;align-items:start}
 .ct-withdrawal-layout:has(form) .ct-withdrawal-preview-pane{margin-top:0;position:sticky;top:112px;max-height:calc(100dvh - 160px);overflow:auto;overscroll-behavior:contain}
}
@media(max-width:620px){
 .ct-withdrawal-preview-pane{padding:12px}
 #ct-withdrawal-preview .cs-document{padding:20px 14px}
 .ct-withdrawal-fields input,.ct-withdrawal-fields textarea{width:100%;min-width:0}
}
@media print{
 .ct-withdrawal-editor #ct-withdrawal-form,.ct-withdrawal-editor .ct-dialog-body>.form-note,.ct-withdrawal-preview-pane>h3{display:none!important}
 .ct-withdrawal-layout{display:block!important}
 .ct-withdrawal-preview-pane{position:static!important;max-height:none!important;overflow:visible!important;margin:0;padding:0;background:white;border:0}
 #ct-withdrawal-preview .cs-document{padding:0;box-shadow:none}
}

.ct-manual-progress{display:flex;align-items:center;gap:12px;margin:12px 0;color:var(--purple,#715368);font-size:13px}.ct-manual-progress[hidden]{display:none}.ct-manual-progress progress{width:100%;height:10px;accent-color:var(--purple,#715368)}.ct-manual-progress span{min-width:3.2em;text-align:right}
