.cd-toolbar{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.cd-modal{position:fixed;inset:0;z-index:170;background:rgba(18,33,53,.38);display:flex;align-items:center;justify-content:center;padding:26px;font-size:14px;color:#243449}.cd-shell{background:#fff;width:min(1050px,100%);height:min(850px,calc(100dvh - 52px));border-radius:14px;box-shadow:0 18px 60px rgba(20,37,60,.2);display:flex;flex-direction:column;overflow:hidden}.cd-header{padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e3e9ef;flex:none}.cd-header h2{font-size:20px;margin:0}.cd-header p{font-size:12px;color:#758397;margin:4px 0 0}.cd-body{padding:18px 24px 22px;overflow:auto;flex:1;min-height:0}.cd-modal .cd-button{border:1px solid #ced9e5;background:#fff;color:#31465f;min-height:32px;padding:6px 12px;border-radius:7px;font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap;cursor:pointer;width:auto}.cd-modal .cd-button:hover{background:#edf4fc;border-color:#9fbce0}.cd-modal .cd-button:disabled{opacity:.48;cursor:not-allowed}.cd-modal button:focus-visible,.cd-modal input:focus-visible,.cd-modal select:focus-visible,.cd-modal textarea:focus-visible{outline:2px solid #387cbd;outline-offset:2px}.cd-modal input,.cd-modal select,.cd-modal textarea{box-sizing:border-box;font:inherit;border:1px solid #ccd7e3;border-radius:7px;background:#fff;color:#243449;padding:8px 10px;min-height:36px;width:100%;margin:0}.cd-modal textarea{line-height:1.65;resize:vertical}.cd-modal input:disabled,.cd-modal select:disabled,.cd-modal textarea:disabled{background:#f4f6f9}.cd-list-top,.cd-editor-top,.cd-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.cd-list-top h3,.cd-section-title h3{margin:0;font-size:15px}.cd-actions,.cd-source-links,.cd-preview-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cd-preview-actions,.cd-source-links{margin:14px 0}.cd-list-filters{display:grid;grid-template-columns:160px minmax(220px,1fr);gap:10px;max-width:600px}.cd-muted{font-size:12px;color:#758397;line-height:1.7}.cd-message{margin:12px 24px 0;padding:10px 12px;background:#eef5fc;border-radius:7px;font-size:13px;line-height:1.6;flex:none}.cd-error{color:#ad3939!important}.cd-message.cd-error,.cd-notice.cd-error{background:#fff3f1}.cd-notice{padding:11px 13px;border:1px solid #e8d7aa;border-radius:7px;background:#fffaf0;color:#795d25;font-size:13px;line-height:1.7;margin:0 0 16px}.cd-notice p{margin:5px 0 8px}.cd-table-wrap{overflow-x:auto;border:1px solid #e2e8ef;border-radius:9px}.cd-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.cd-table th{background:#f5f8fc;color:#66788f;font-weight:500;font-size:12px}.cd-table th,.cd-table td{padding:12px 13px;border-bottom:1px solid #e8edf3;vertical-align:middle}.cd-table tr:last-child td{border-bottom:0}.cd-table td:last-child,.cd-table th:last-child{position:sticky;right:0;background:#fff;white-space:nowrap}.cd-table th:last-child{background:#f5f8fc}.cd-table strong{font-size:13px;font-weight:600;display:block;min-width:170px}.cd-table small{display:block;font-size:12px;color:#758397;margin-top:5px}.cd-empty{text-align:center;padding:40px!important;color:#758397}.cd-badge{font-size:12px;background:#edf3f9;color:#45627f;padding:5px 8px;border-radius:5px;white-space:nowrap}.cd-save-state{font-size:12px;color:#628071;text-align:right}.cd-steps{display:flex;padding:0 0 15px;gap:8px;border-bottom:1px solid #e4eaf1;margin-bottom:18px}.cd-steps .cd-button{flex:1;border-color:#e4eaf1;color:#77899d;background:#f8fafc;min-height:38px}.cd-steps .cd-button[aria-current]{background:#e9f2fd;border-color:#aac8eb;color:#215e9d;font-weight:600}.cd-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px}.cd-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;margin:0}.cd-field>span{font-weight:500;color:#455b72}.cd-field small{font-size:12px;color:#8491a1;line-height:1.5}.cd-wide{grid-column:1/-1}.cd-contact-details,.cd-history{margin:18px 0;border-top:1px solid #e5ebf1;padding-top:14px}.cd-contact-details summary,.cd-history summary{cursor:pointer;color:#597087;font-size:13px}.cd-contact-details .cd-grid{margin-top:14px}.cd-footer{display:flex;justify-content:space-between;gap:14px;border-top:1px solid #e3eaf1;margin-top:22px;padding-top:16px}.cd-footer>.cd-actions:last-child>.cd-button:last-child,.cd-sign-form button[type=submit],.cd-template-layout button[type=submit]{background:#2c6ead;border-color:#2c6ead;color:#fff}.cd-payment{margin-top:20px;padding-top:18px;border-top:1px solid #e4eaf1}.cd-payment-lines>[data-cd-payment]{display:grid;grid-template-columns:minmax(130px,1fr) repeat(2,minmax(130px,150px)) 120px auto;gap:8px;align-items:center;margin:8px 0}.cd-preview{display:block;width:100%;height:540px;border:1px solid #d9e2ec;border-radius:8px;background:#f6f7f9}.cd-summary{display:flex;gap:12px;flex-wrap:wrap;padding:12px;background:#f7f9fc;border-radius:8px;color:#5a6f85;font-size:13px}.cd-confirm{position:absolute;inset:0;background:rgba(25,39,56,.28);display:flex;align-items:center;justify-content:center;padding:24px;z-index:2}.cd-confirm section{background:#fff;border-radius:12px;padding:24px;max-width:520px;box-shadow:0 12px 40px #24344930}.cd-confirm h3{margin:0 0 12px;font-size:17px}.cd-confirm p{line-height:1.7;font-size:13px}.cd-sign-form{padding:18px;margin-top:18px;border:1px solid #b9cde2;background:#f7fbff;border-radius:8px}.cd-sign-form h3{font-size:16px;margin:0 0 12px}.cd-sign-form p{font-size:13px;color:#56718c}.cd-check{display:flex;align-items:flex-start;gap:8px;font-size:13px;margin:16px 0;line-height:1.7}.cd-check input{width:16px!important;min-height:16px;height:16px;margin-top:3px!important;flex:none}.cd-template-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:22px}.cd-template-layout aside{border-right:1px solid #e3eaf1;padding-right:15px}.cd-template-item{display:block;text-align:left;padding:12px 8px;border:0;border-bottom:1px solid #e3eaf1;background:#fff;width:100%;cursor:pointer;color:#455b72;font-size:13px}.cd-template-item small{display:block;margin-top:5px;font-size:11px;color:#8491a1}.cd-template-layout form>details{margin-top:14px;font-size:12px}.cd-placeholders{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px 0}.cd-placeholders span{font-size:12px;overflow-wrap:anywhere}.cd-placeholders code{display:block;color:#49739a;margin-top:4px}.cd-template-layout textarea{font-family:inherit;font-size:13px}.cd-history p{line-height:1.7;font-size:12px}
@media(max-width:760px){.cd-modal{padding:8px}.cd-shell{height:calc(100dvh - 16px)}.cd-header{padding:14px 16px}.cd-body{padding:14px 16px}.cd-grid{gap:14px;grid-template-columns:1fr}.cd-wide{grid-column:auto}.cd-save-state{max-width:180px}.cd-steps .cd-button{font-size:12px;padding:8px 5px}.cd-payment-lines>[data-cd-payment]{grid-template-columns:1fr 1fr}.cd-template-layout{grid-template-columns:1fr}.cd-template-layout aside{border-right:0;border-bottom:1px solid #e3eaf1;padding-bottom:12px}.cd-list-filters{grid-template-columns:140px 1fr}.cd-preview{height:450px}}

.cd-modal ~ .bf-modal{z-index:180}
.cd-modal .cd-row-actions{gap:6px;flex-wrap:nowrap}
.cd-list-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:8px 0}.cd-list-summary>.cd-muted{margin:0}.cd-list-summary>.business-list-sort{margin:0}.cd-list-summary>.business-list-sort select{width:190px;min-height:32px;font-size:12px}

.cd-payment-lines>[data-cd-payment]>.cd-button{align-self:end;min-height:36px}.cd-payment-lines>[data-cd-payment]:not(:has([name$=".invoiceDate"])){grid-template-columns:minmax(130px,1fr) 155px 140px auto}.cd-footer{position:sticky;bottom:-22px;z-index:1;background:#fff;margin-left:-24px;margin-right:-24px;padding:14px 24px}.cd-modal .cd-body>.cd-editor-top{margin-top:0}
@media(max-width:768px){.cd-list-page .cd-table{min-width:680px}.cd-list-page .cd-table td:last-child{z-index:1}.cd-list-page .cd-table th:last-child{z-index:2}}
