.sale-form-admin-page { background: #f4f7f5; color: #183428; }
.sale-form-admin-main { width: min(1540px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 70px; }
.sfa-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.sfa-kicker, .sfa-panel-heading p { margin: 0 0 7px; color: #338357; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.sfa-heading h1 { margin: 0; color: #173d2b; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.05; }
.sfa-heading p:last-child { margin: 10px 0 0; color: #62766b; font-size: 14px; }
.sfa-heading-actions { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.sfa-heading-actions label { display: grid; gap: 6px; color: #62766b; font-size: 12px; font-weight: 700; }
.sfa-heading-actions select { min-width: 190px; max-width: 280px; }
.sale-form-admin-page select, .sale-form-admin-page input[type="text"], .sale-form-admin-page textarea { border: 1px solid #cbd9d0; border-radius: 11px; background: #fff; color: #173d2b; font: inherit; }
.sale-form-admin-page select, .sale-form-admin-page input[type="text"] { min-height: 43px; padding: 9px 12px; }
.sale-form-admin-page textarea { width: 100%; min-height: 75px; padding: 11px 12px; resize: vertical; }
.sale-form-admin-page input:focus-visible, .sale-form-admin-page select:focus-visible, .sale-form-admin-page textarea:focus-visible, .sale-form-admin-page button:focus-visible, .sale-form-admin-page a:focus-visible { outline: 3px solid #80d7a6; outline-offset: 2px; }
.sfa-button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 17px; border-radius: 11px; border: 1px solid #b9d4c2; font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.sfa-button:not(:disabled):hover { transform: translateY(-1px); }
.sfa-button-primary { color: #fff; background: #168048; border-color: #168048; }
.sfa-button-primary:hover { background: #0c6b39; }
.sfa-button-primary:disabled { opacity: .48; cursor: default; }
.sfa-button-secondary { color: #216240; background: #fff; }
.sfa-status { min-height: 24px; margin: 0 0 16px; color: #62766b; font-size: 13px; }
.sfa-status[data-tone="error"] { color: #a0232e; font-weight: 700; }
.sfa-status[data-tone="success"] { color: #146c3d; font-weight: 700; }
.sfa-workspace { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(340px, .72fr); align-items: start; gap: 18px; }
.sfa-workspace[hidden], .sfa-footer-panel[hidden] { display: none !important; }
.sfa-panel, .sfa-footer-panel { background: #fff; border: 1px solid #e2ebe5; border-radius: 22px; box-shadow: 0 10px 34px rgba(15, 49, 29, .05); }
.sfa-panel { min-width: 0; overflow: hidden; }
.sfa-panel-heading { padding: 24px 26px 17px; border-bottom: 1px solid #edf2ee; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.sfa-panel-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; color: #173d2b; }
.sfa-panel-heading > span { color: #7b8a80; font-size: 12px; }
.sfa-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 112px); padding: 20px 26px 24px; }
.sfa-map-column { position: relative; z-index: 2; min-width: 0; }
.sfa-map-column h3 { margin: 0 0 12px; color: #799084; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sfa-nodes { display: grid; gap: 9px; }
.sfa-node { width: 100%; min-height: 68px; padding: 12px 15px; border: 1px solid #d6e6dc; border-radius: 13px; background: #f8fbf9; color: #1c4430; text-align: left; cursor: pointer; transition: border .15s ease, background .15s ease, transform .15s ease; }
.sfa-node:hover { border-color: #49a36e; transform: translateY(-1px); }
.sfa-node strong { display: block; font-size: 14px; line-height: 1.2; }
.sfa-node small { display: block; margin-top: 4px; color: #6b8073; font-size: 11px; line-height: 1.2; }
.sfa-node.is-selected { background: #e8f7ed; border-color: #168048; box-shadow: 0 0 0 2px rgba(22,128,72,.12); }
.sfa-node.is-linked:not(.is-selected) { background: #f2fbf5; border-color: #a4d5b7; }
.sfa-node.is-dimmed { opacity: .52; }
.sfa-node.is-off strong::after { content: " · masqué"; color: #9b7063; font-size: 11px; font-weight: 600; }
.sfa-lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sfa-lines path { fill: none; stroke: #c7d9cd; stroke-width: 1.5; transition: stroke .15s ease, stroke-width .15s ease, opacity .15s ease; }
.sfa-lines path.is-linked { stroke: #1a9a54; stroke-width: 2.5; }
.sfa-lines path.is-dimmed { opacity: .28; }
.sfa-map-note { margin: 0 26px 24px; padding: 13px 15px; border-radius: 11px; color: #61776a; background: #f5f8f5; font-size: 12px; line-height: 1.45; }
.sfa-editor-panel { position: sticky; top: 18px; }
#sfaEditor { padding: 20px 26px 26px; max-height: min(75vh, 850px); overflow: auto; }
.sfa-editor-intro { margin: 0 0 19px; color: #63786b; font-size: 13px; line-height: 1.5; }
.sfa-editor-section { padding: 0 0 19px; margin-bottom: 19px; border-bottom: 1px solid #e8efea; }
.sfa-editor-section:last-child { padding: 0; margin: 0; border: 0; }
.sfa-editor-section h3 { margin: 0 0 12px; color: #173d2b; font-size: 14px; }
.sfa-field { display: grid; gap: 7px; margin-bottom: 12px; color: #42614d; font-size: 12px; font-weight: 700; }
.sfa-field:last-child { margin-bottom: 0; }
.sfa-field input, .sfa-field select { width: 100%; }
.sfa-field small { color: #829187; font-size: 11px; font-weight: 500; }
.sfa-reorder { display: flex; gap: 8px; margin-bottom: 15px; }
.sfa-reorder button, .sfa-reset { min-height: 36px; padding: 7px 11px; border: 1px solid #d0ded4; border-radius: 9px; background: #fff; color: #28543a; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.sfa-reorder button:disabled { opacity: .4; cursor: default; }
.sfa-check { display: flex; gap: 11px; align-items: start; padding: 11px 0; border-bottom: 1px solid #f1f4f1; cursor: pointer; }
.sfa-check:last-child { border: 0; }
.sfa-check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #168048; }
.sfa-check strong { display: block; color: #264b34; font-size: 12px; }
.sfa-check small { display: block; margin-top: 3px; color: #7c8c80; font-size: 11px; line-height: 1.35; }
.sfa-payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.sfa-payment-grid .sfa-check { min-height: 44px; align-items: center; }
.sfa-payment-grid .sfa-check input { margin: 0; }
.sfa-related { display: flex; flex-wrap: wrap; gap: 8px; }
.sfa-related a { padding: 7px 10px; border: 1px solid #cde2d4; border-radius: 8px; color: #197247; background: #f5faf7; font-size: 12px; font-weight: 700; text-decoration: none; }
.sfa-related a:hover, .sfa-footer-panel a:hover { background: #e8f7ed; }
.sfa-inline-link { display: inline-block; margin-top: 9px; color: #197247; font-size: 12px; font-weight: 700; }
.sfa-loan-types { display: grid; gap: 8px; }
.sfa-loan-type { display: flex; align-items: end; gap: 8px; }
.sfa-loan-type .sfa-field { flex: 1; margin: 0; }
.sfa-remove, .sfa-add { min-height: 43px; padding: 8px 11px; border: 1px solid #d0ded4; border-radius: 9px; background: #fff; color: #28543a; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.sfa-remove { color: #a0232e; }
.sfa-add { margin-top: 12px; width: 100%; border-style: dashed; }
.sfa-add:disabled { opacity: .5; cursor: default; }
.sfa-footer-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 21px 26px; }
.sfa-footer-panel h2 { margin: 0; font-size: 16px; }
.sfa-footer-panel p { margin: 4px 0 0; color: #75877b; font-size: 12px; }
.sfa-footer-panel nav { display: flex; flex-wrap: wrap; gap: 8px; }
.sfa-footer-panel a { padding: 9px 11px; border: 1px solid #d7e7db; border-radius: 10px; color: #206b42; font-size: 12px; font-weight: 700; text-decoration: none; }
.sfa-footer-panel a span { margin-left: 8px; }
@media (max-width: 980px) { .sfa-workspace { grid-template-columns: minmax(0, 1fr); } .sfa-editor-panel { position: static; } #sfaEditor { max-height: none; } }
@media (max-width: 720px) { .sale-form-admin-main { width: min(100% - 24px, 600px); padding-top: 20px; } .sfa-heading { align-items: start; flex-direction: column; } .sfa-heading-actions { width: 100%; } .sfa-heading-actions label { flex: 1 1 100%; } .sfa-heading-actions select { width: 100%; max-width: none; } .sfa-heading-actions .sfa-button { flex: 1; } .sfa-panel-heading { padding: 19px; } .sfa-map { gap: 14px; padding: 17px; } .sfa-node { min-height: 72px; padding: 10px; } .sfa-node strong { font-size: 12px; } .sfa-node small { font-size: 10px; } .sfa-lines { display: none; } .sfa-map-note { margin: 0 17px 17px; } #sfaEditor { padding: 18px; } .sfa-footer-panel { align-items: start; flex-direction: column; padding: 19px; } }
