.kyc-page{--kyc-blue:#1767ef;--kyc-ink:#153260;--kyc-muted:#75869d;color:var(--kyc-ink);max-width:1700px;margin:0 auto;padding:2px 0 24px}.kyc-page svg{width:20px;height:20px;flex-shrink:0}.kyc-page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px}.kyc-page-title{display:flex;align-items:center;gap:14px}.kyc-page-title>span{display:grid;place-items:center;width:49px;height:49px;border-radius:13px;background:#e8f1ff;color:var(--kyc-blue)}.kyc-page-title>span svg{width:27px;height:27px}.kyc-page h1{font-size:25px;margin:0 0 7px}.kyc-page-title p{font-size:13px;color:var(--kyc-muted);margin:0}.kyc-page-header .actions{display:flex;gap:9px;align-items:center}.kyc-page-header .actions button{white-space:nowrap}.kyc-page-header button.active{color:var(--kyc-blue);background:#edf4ff;border-color:#b6d0fa}.kyc-page-header button span{display:inline-block;margin-left:5px;padding:1px 7px;background:#e8eff9;border-radius:10px;font-size:11px}.kyc-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.kyc-editor{display:block!important;background:transparent!important;border:0!important;padding:0!important;margin:0!important}.kyc-card{background:#fff;border:1px solid #e0e8f3;border-radius:13px;box-shadow:0 3px 12px #234b7c04;padding:24px;margin-bottom:20px}.kyc-section-title{display:flex;align-items:flex-start;gap:11px;margin-bottom:22px}.kyc-section-title>span{color:var(--kyc-blue);line-height:1;margin-top:1px}.kyc-section-title h2{font-size:16px;margin:0;line-height:1.4}.kyc-section-title p{font-size:12px;color:var(--kyc-muted);line-height:1.6;margin:6px 0 0}.kyc-source-grid,.kyc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px}.kyc-source-control{position:relative;min-width:0}.kyc-source-control label,.kyc-field>span{display:block;font-size:13px;color:#345074;margin:0 0 9px}.kyc-source-control small{display:block;font-size:11px;color:#8998ac;margin-top:8px}.kyc-lookup-wrap{position:relative;display:flex;align-items:center}.kyc-lookup-wrap>svg{position:absolute;left:12px;color:#8299b5;width:17px;height:17px;pointer-events:none}.kyc-page input,.kyc-page textarea{box-sizing:border-box;width:100%;border:1px solid #d3dfef;border-radius:7px;min-height:39px;color:#294569;background:#fff;font-size:13px;padding:9px 11px;outline:none}.kyc-page input:focus,.kyc-page textarea:focus{border-color:#7daaf5;box-shadow:0 0 0 3px #1767ef0a}.kyc-page input:disabled,.kyc-page textarea:disabled{background:#f8fafc;color:#8b98a9;cursor:not-allowed}.kyc-page input::placeholder,.kyc-page textarea::placeholder{color:#a2afc0}.kyc-lookup-wrap input{padding-left:37px;padding-right:32px}.kyc-lookup-wrap>button{position:absolute;right:4px;width:28px;height:28px;min-height:28px;padding:0!important;border:0!important;background:transparent!important;color:#8093ab;font-size:19px}.kyc-source-options{position:absolute;z-index:35;top:68px;left:0;right:0;max-height:250px;overflow-y:auto;background:white;border:1px solid #d8e4f5;border-radius:8px;box-shadow:0 8px 26px #234b7c1f;padding:5px}.kyc-source-options[hidden]{display:none}.kyc-source-options button{display:block;width:100%;white-space:normal;text-align:left;line-height:1.5;font-size:12px;padding:9px 10px;background:white;border:0;border-radius:5px;color:#345074}.kyc-source-options button:hover,.kyc-source-options button:focus{background:#eef5ff;color:#1767ef}.kyc-source-options p{padding:8px;font-size:12px;color:#8190a6}.kyc-source-state{display:flex;align-items:center;gap:8px;margin-top:20px;padding:10px 12px;background:#f7f9fc;border-radius:6px;color:#8795a9;font-size:12px}.kyc-source-state svg{width:16px;height:16px}.kyc-source-state.is-linked{color:#2d8264;background:#eff9f4}.kyc-field{display:block;margin:0!important;min-width:0}.kyc-wide{grid-column:1/-1}.kyc-form-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid #e0e8f3;padding:16px 22px;border-radius:11px}.kyc-form-footer button{min-width:126px;flex-shrink:0}.kyc-status{font-size:12px;color:#638078;line-height:1.6}.kyc-status.is-error{color:#c94949}.kyc-side{position:sticky;top:18px}.kyc-progress-card{padding:25px 22px}.kyc-progress-icon{display:grid;place-items:center;color:#1767ef;background:#edf4ff;border-radius:11px;width:42px;height:42px;margin-bottom:15px}.kyc-progress-card h2{font-size:16px;margin:0 0 25px}.kyc-progress-card ol{padding:0;margin:0;list-style:none}.kyc-progress-card li{position:relative;display:flex;gap:12px;padding-bottom:26px;color:#94a1b3}.kyc-progress-card li:not(:last-child):after{content:'';position:absolute;left:11px;top:29px;width:1px;bottom:5px;background:#e3eaf4}.kyc-progress-card li>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:11px;background:#f0f3f8;flex-shrink:0}.kyc-progress-card li strong{font-size:13px;line-height:24px;font-weight:500}.kyc-progress-card li p{font-size:11px;line-height:1.7;margin:5px 0 0}.kyc-progress-card li.is-current{color:#1767ef}.kyc-progress-card li.is-current>span{background:#eaf2ff}.kyc-progress-card li.is-done{color:#34856a}.kyc-progress-card li.is-done>span{background:#e9f8f0}.kyc-export-disabled{width:100%;background:#f1f4f9!important;color:#95a3b5!important;border-color:#e3e9f2!important;cursor:not-allowed}.kyc-template-note{font-size:11px;line-height:1.8;color:#8a99ad;margin:13px 0 0}.kyc-draft-summary{padding:20px 22px}.kyc-draft-summary h3{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:#768aa5;margin:0 0 13px}.kyc-draft-summary h3 svg{width:17px;height:17px}.kyc-draft-summary>strong{font-size:14px;font-weight:500}.kyc-draft-summary p{font-size:11px;color:#8a99ad;line-height:1.7;margin:8px 0 0}.kyc-drafts-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.kyc-draft-search{display:flex;align-items:center;gap:9px;min-width:300px}.kyc-draft-search>svg{color:#6b8cbb}.kyc-draft-search button{flex-shrink:0}.kyc-drafts table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #dbe6f5;border-radius:9px;overflow:hidden;font-size:12px}.kyc-drafts th,.kyc-drafts td{padding:14px 13px;text-align:center;border-bottom:1px solid #e1e9f5;border-right:1px solid #e1e9f5}.kyc-drafts th{background:#edf4ff;color:#315887;font-weight:500}.kyc-drafts th:last-child,.kyc-drafts td:last-child{border-right:0}.kyc-drafts tr:last-child td{border-bottom:0}.kyc-drafts td strong{font-size:12px;font-weight:500;display:block}.kyc-drafts td small{font-size:10px;color:#96a3b4;display:block;margin-top:5px}.kyc-drafts td .actions{display:flex;justify-content:center;gap:7px;white-space:nowrap}.kyc-empty{padding:48px 20px!important;color:#8797ad}.kyc-loading{padding:60px 25px;text-align:center;color:#8495ae;font-size:14px}.kyc-loading button{display:block;margin:20px auto 0}.kyc-confirm-dialog{width:min(450px,90vw);border:1px solid #dce5f1;border-radius:14px;padding:27px;color:#1d3b65;box-shadow:0 18px 60px #102e602b}.kyc-confirm-dialog::backdrop{background:#11264766}.kyc-confirm-dialog h2{font-size:18px;margin:0 0 15px}.kyc-confirm-dialog p{font-size:13px;line-height:1.8;color:#7b8da5;margin:0 0 24px}.kyc-confirm-dialog .actions{display:flex;justify-content:flex-end;gap:10px}@media(max-width:1150px){.kyc-editor-layout{grid-template-columns:minmax(0,1fr) 245px;gap:15px}.kyc-card{padding:20px}.kyc-page-header{align-items:flex-start}.kyc-page-header .actions{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:900px){.kyc-editor-layout{grid-template-columns:1fr}.kyc-side{position:static;display:grid;grid-template-columns:2fr 1fr;gap:15px}.kyc-source-grid,.kyc-fields{grid-template-columns:1fr}.kyc-page-header{flex-wrap:wrap}.kyc-drafts-toolbar{flex-wrap:wrap}}

/* Reset the legacy global aside skin without changing the CRM navigation. */
.kyc-page .kyc-side{background:transparent;color:inherit;padding:0;width:auto;height:auto;min-height:0;border:0;box-shadow:none}

/* Word document fields are scoped to the KYC screen. */
.kyc-page .kyc-optional-tag{display:inline-block;color:#8492a6;font-size:11px;font-weight:400;margin-left:5px}
.kyc-page .kyc-reuse-panel{margin-top:22px;padding:17px 18px;background:#f6f9ff;border:1px solid #e0e9f7;border-radius:9px}
.kyc-page .kyc-reuse-panel>label{display:block;font-size:13px;color:#345074;margin-bottom:10px}
.kyc-page .kyc-reuse-actions{display:flex;align-items:center;gap:12px}
.kyc-page .kyc-reuse-actions select{min-width:0;flex:1}
.kyc-page .kyc-reuse-actions button{flex-shrink:0;min-height:39px;white-space:nowrap}
.kyc-page .kyc-reuse-panel>small{display:block;color:#7d8ca2;font-size:11px;line-height:1.8;margin-top:9px}
.kyc-page .kyc-source-field>span{color:#2563a2}
.kyc-page .kyc-optional-field>span{color:#ad4949}
.kyc-page .kyc-field-note,.kyc-page .kyc-optional-note{font-size:12px;line-height:1.8;color:#75869d;margin:0 0 18px}
.kyc-page .kyc-optional-note{color:#a45353}
.kyc-page .kyc-field>small{display:block;font-size:11px;line-height:1.7;color:#7a8ca2;margin-top:7px}
.kyc-page select{box-sizing:border-box;width:100%;min-height:39px;border:1px solid #d3dfef;border-radius:7px;background:#fff;color:#294569;font-size:13px;padding:9px 11px;outline:none}
.kyc-page select:focus{border-color:#7daaf5;box-shadow:0 0 0 3px #1767ef0a}
.kyc-page select:disabled{background:#f8fafc;color:#8b98a9;cursor:not-allowed}
.kyc-page .kyc-member{border:1px solid #dfe8f4;border-radius:10px;padding:18px;margin-bottom:16px;background:#fcfdff}
.kyc-page .kyc-member-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.kyc-page .kyc-member-heading h3{font-size:14px;margin:0;color:#29496e}
.kyc-page .kyc-member-heading button{font-size:12px;padding:6px 10px}
.kyc-page .kyc-member-roles{display:flex;flex-wrap:wrap;gap:12px 24px;border:0;padding:0;margin:0;min-width:0}
.kyc-page .kyc-member-roles legend{font-size:13px;color:#2563a2;margin-bottom:10px;padding:0}
.kyc-page .kyc-check{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.6;margin:0;cursor:pointer}
.kyc-page .kyc-check input{width:17px;height:17px;min-height:17px;padding:0;margin:0;flex:0 0 17px;accent-color:#1767ef}
.kyc-page .kyc-check input:disabled{cursor:default}
.kyc-page .kyc-details{border-top:1px solid #e6edf7;margin-top:20px;padding-top:15px}
.kyc-page .kyc-card>.kyc-details{border-top:0;margin-top:0;padding-top:0}
.kyc-page .kyc-details summary{font-size:13px;font-weight:500;color:#365578;cursor:pointer;line-height:1.8}
.kyc-page .kyc-details[open] summary{margin-bottom:17px}
.kyc-page .kyc-details summary:focus-visible{outline:2px solid #7daaf5;outline-offset:4px;border-radius:3px}
.kyc-page .kyc-beneficiary-details summary{color:#2f7c60}
.kyc-page .kyc-type-warning{font-size:12px;line-height:1.7;color:#9a6d25;background:#fff8e9;border-radius:6px;margin:15px 0 0;padding:10px 12px}
.kyc-page .kyc-member-actions{display:flex;flex-wrap:wrap;gap:10px}
.kyc-page .kyc-export-list{display:grid;gap:10px}
.kyc-page .kyc-export-list>button{display:block;width:100%;text-align:left;padding:12px 13px;background:#f2f7ff;border:1px solid #bfd5f5;color:#245b9d;border-radius:8px;white-space:normal;line-height:1.6}
.kyc-page .kyc-export-list>button strong{display:block;font-size:13px;font-weight:500}
.kyc-page .kyc-export-list>button span{display:block;font-size:11px;margin-top:5px;color:#5f7eaa}
.kyc-page .kyc-export-list>button:hover:enabled{background:#e7f0ff;border-color:#80afea}
.kyc-page .kyc-export-list>button:disabled{background:#f5f7fa;border-color:#e0e6ef;color:#8999ae;cursor:not-allowed}
.kyc-page .kyc-export-list>button:disabled span{color:#8c9caf}
@media(max-width:600px){
  .kyc-page .kyc-side{display:block}
  .kyc-page .kyc-member{padding:14px 12px}
  .kyc-page .kyc-form-footer{align-items:stretch;flex-direction:column;gap:10px}
  .kyc-page .kyc-form-footer button{width:100%}
  .kyc-page .kyc-member-heading{align-items:flex-start}
}
