.dc-workspace { min-width: 0; }
.dc-workspace label { display: grid; gap: 7px; min-width: 0; }
.dc-workspace input, .dc-workspace select, .dc-workspace textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.dc-workspace .dc-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 16px 0; }
.dc-actions label { flex: 1 1 260px; }
.dc-records { display: grid; gap: 16px; margin-top: 20px; }
.dc-record { border: 1px solid #d7e2ed; border-radius: 12px; padding: 18px; min-width: 0; }
.dc-record-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.dc-record h3 { margin: 0 0 6px; }
.dc-record small { overflow-wrap: anywhere; }
.dc-alert { padding: 12px 15px; background: #fff5dc; border: 1px solid #e8c979; border-radius: 8px; margin: 12px 0; }
.dc-decrease { background: #fff0ed; border-color: #d38d7f; }
.dc-parties { padding-left: 20px; line-height: 1.7; }
.dc-editor { border: 1px solid #d7e2ed; border-radius: 14px; padding: 24px; margin: 24px 0; background: #f5f7fa; color: #24374d; }
.dc-editor-head { margin-bottom: 24px; }
.dc-editor-head h3 { margin: 0 0 8px; font-size: 20px; }
.dc-editor-head p { margin: 0; color: #5c6d80; line-height: 1.6; }
.dc-editor-head .dc-editor-email { margin-top: 12px; font-size: 13px; overflow-wrap: anywhere; }
.dc-editor-email strong { font-weight: 600; color: #344b63; }
.dc-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr); gap: 20px; align-items: start; }
.dc-editor-data, .dc-editor-settings { display: grid; gap: 20px; min-width: 0; }
.dc-editor .dc-section { margin: 0; padding: 20px; border: 1px solid #dce4ed; border-radius: 10px; background: #fff; min-width: 0; box-sizing: border-box; }
.dc-editor fieldset.dc-section { padding-top: 14px; }
.dc-editor .dc-section > legend { padding: 0 7px; margin-left: -7px; color: #263f59; font-size: 15px; font-weight: 700; }
.dc-editor details > summary { cursor: pointer; font-weight: 700; color: #263f59; font-size: 15px; line-height: 1.5; }
.dc-editor .dc-section-hint { margin: 0 0 18px; color: #6a7889; font-size: 13px; line-height: 1.6; }
.dc-editor details[open] > summary { margin-bottom: 14px; }
.dc-optional { font-size: 12px; font-weight: 400; color: #788597; margin-left: 8px; }
.dc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.dc-editor .dc-partner-fields { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 16px; }
.dc-editor .dc-field { grid-column: span 6; align-content: start; }
.dc-editor .dc-field-short { grid-column: span 4; }
.dc-editor .dc-field-long { grid-column: span 8; }
.dc-editor .dc-field-wide { grid-column: 1 / -1; }
.dc-editor label > span:first-child { font-size: 13px; font-weight: 600; line-height: 1.5; }
.dc-editor input, .dc-editor select, .dc-editor textarea { min-height: 44px; padding: 10px 12px; border: 1px solid #cbd6e2; border-radius: 7px; background: #fff; color: #24374d; font: inherit; font-size: 14px; box-shadow: none; }
.dc-editor input:focus, .dc-editor select:focus, .dc-editor textarea:focus { outline: 2px solid #257b95; outline-offset: 2px; border-color: #257b95; }
.dc-editor .dc-option { margin: 3px 0 0; }
.dc-editor .dc-option-hint { margin: 14px 0 0; }
.dc-editor .dc-company-address { margin: 0 0 20px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.dc-editor .dc-company-address strong { font-weight: 600; }
.dc-signers-list { display: grid; gap: 22px; }
.dc-editor .dc-signer { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.dc-editor .dc-signer legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #52657a; line-height: 1.6; }
.dc-editor .dc-additional, .dc-editor .dc-rates { margin-top: 20px; }
.dc-table-wrap { max-width: 100%; overflow: auto; margin: 18px 0; }
.dc-editor .dc-table-wrap { margin: 0; }
.dc-table-wrap table { border-collapse: collapse; width: 100%; min-width: 650px; }
.dc-table-wrap th, .dc-table-wrap td { padding: 11px 12px; border: 1px solid #dce4ed; text-align: left; white-space: nowrap; font-size: 13px; }
.dc-table-wrap caption { text-align: left; font-weight: 700; margin-bottom: 14px; color: #263f59; }
.dc-table-wrap th { background: #f2f5f9; }
.dc-editor .dc-rates > .dc-section-hint { margin: 14px 0 0; }
.dc-editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #d7e2ed; }
.dc-editor-footer > p { margin: 0; color: #6a7889; font-size: 13px; }
.dc-editor-footer .dc-actions { margin: 0; }
.dc-required { color: #b43e3e; }
.dc-field-control { position: relative; display: block; min-width: 0; }
.dc-editor .is-invalid input, .dc-editor .is-invalid select { border-color: #bd4b4b; background: #fff8f7; }
.dc-editor .is-invalid > span:first-child { color: #9d3636; }
.dc-field-tooltip { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; max-width: 100%; box-sizing: border-box; padding: 8px 11px; border: 1px solid #edc5c5; border-radius: 7px; background: #fff1f0; color: #8c3030; font-size: 12px; font-weight: 400; line-height: 1.5; box-shadow: 0 4px 12px #24374d18; pointer-events: none; }
.dc-editor .is-invalid:hover .dc-field-tooltip, .dc-editor .is-invalid:focus-within .dc-field-tooltip { display: block; }
.dc-workspace textarea { resize: vertical; }
.dc-workspace .btn-secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: normal; }
.dc-workspace [readonly] { background: #edf1f5; color: #4d6178; }
@media (max-width: 1150px) { .dc-editor-layout { grid-template-columns: minmax(0, 1fr); } .dc-editor-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (max-width: 700px) { .dc-editor-settings { grid-template-columns: minmax(0, 1fr); } .dc-editor .dc-field, .dc-editor .dc-field-short, .dc-editor .dc-field-long { grid-column: span 6; } }
@media (max-width: 600px) {
 .dc-record-head { display: grid; } .dc-record, .dc-editor { padding: 14px; } .dc-editor .dc-section { padding: 16px; } .dc-editor fieldset.dc-section { padding-top: 12px; }
 .dc-editor-layout, .dc-editor-data, .dc-editor-settings { gap: 16px; } .dc-fields, .dc-editor .dc-partner-fields { grid-template-columns: minmax(0, 1fr); }
 .dc-editor .dc-field, .dc-editor .dc-field-short, .dc-editor .dc-field-long, .dc-editor .dc-field-wide { grid-column: 1; } .dc-editor-footer { align-items: stretch; flex-direction: column; }
 .dc-editor-footer .dc-actions { display: grid; grid-template-columns: 1fr; } .dc-actions > * { max-width: 100%; } .dc-workspace .section-head { align-items: start; gap: 12px; flex-wrap: wrap; }
}

[data-distributor-projects] .fin-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:18px}[data-distributor-projects] .fin-card{min-width:0}[data-distributor-projects] .fin-offer-information dd{white-space:pre-wrap;overflow-wrap:anywhere}

.referral-invite-type { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; padding: 14px 16px; border: 1px solid #dce4ed; border-radius: 10px; }
.referral-invite-type legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: #52657a; }
.referral-invite-type label { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 12px; border: 1px solid #dce4ed; border-radius: 7px; font-size: 14px; cursor: pointer; }
.referral-invite-type label:has(:checked) { background: #eaf4f7; border-color: #43879a; color: #18596d; }
.referral-invite-type input { width: 17px; height: 17px; margin: 0; }
