/* Additional tender-card fields, stage policies, and compact mobile editor. */
.tcf-drawer-field-catalog{display:grid;gap:10px;min-width:0}.tcf-drawer-field-catalog [hidden]{display:none!important}.tcf-drawer-field-catalog .tcf-catalog-search{margin:0}.tcf-drawer-field-catalog .tcf-config-note{margin:0 0 3px}.tcf-drawer-field-catalog .tcf-group-tools{margin:0}.tcf-drawer-field-group .tcf-group-fields{gap:13px;padding:2px 12px 14px}.tcf-drawer-field-group fieldset{min-width:0;margin:0;padding:0;border:0}.tcf-drawer-field-preview{display:grid;gap:4px;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff;overflow-wrap:anywhere}.tcf-drawer-field-preview b{font-size:11px}.tcf-drawer-field-preview small{color:var(--muted);font-size:9px}.tcf-drawer-field-preview>span{font-size:11px;white-space:pre-wrap;max-height:140px;overflow:auto}
.tcf-catalog-search{display:grid;gap:7px;margin:14px 0 8px;font-size:11px;font-weight:700}.tcf-catalog-search>span{display:flex;align-items:center;gap:5px;min-width:0}.tcf-catalog-search input{box-sizing:border-box;width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-weight:400}.tcf-catalog-search input:focus-visible{outline:2px solid #8da97c;outline-offset:2px}.tcf-catalog-search .icon-btn{flex:none}.tcf-search-count{margin:0;color:var(--muted);font-size:10px;line-height:1.5}.tcf-group-tools{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:3px}.tcf-group-tools .btn{white-space:normal}.tcf-field-group{min-width:0;border:1px solid var(--line);border-radius:9px;background:#f9fbf7}.tcf-field-group>summary{display:flex;align-items:center;gap:9px;padding:12px;cursor:pointer;list-style:none;color:#425a3c;font-size:12px;font-weight:800}.tcf-field-group>summary::-webkit-details-marker{display:none}.tcf-field-group>summary>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.tcf-field-group>summary>svg{width:14px;height:14px;flex:none;transform:rotate(-90deg)}.tcf-field-group[open]>summary>svg{transform:rotate(0)}.tcf-field-group>summary:focus-visible{outline:2px solid #8da97c;outline-offset:2px;border-radius:8px}.tcf-group-count{flex:none;padding:3px 7px;border-radius:12px;background:#e8efe2;color:#577149;font-size:10px}.tcf-group-fields{display:grid;gap:7px;padding:0 8px 8px}.tcf-fields-list [hidden]{display:none!important}.tcf-archive-row b{overflow-wrap:anywhere}
@media(max-width:700px){.tcf-catalog-search input{font-size:16px}.tcf-field-group>summary{padding:11px 10px}.tcf-group-fields{padding:0 6px 6px}}
.tcf-system-field-note{margin:10px 0 0;padding:9px 10px;border-left:3px solid #aeb9a7;border-radius:0 6px 6px 0;background:#f6f8f4;color:#687566;font-size:10px;line-height:1.55}
.tcf-settings-grid{align-items:start}.tcf-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}.tcf-section-head>div{min-width:0}.tcf-section-head h3{margin:0;font-size:15px}.tcf-section-head p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.55}.tcf-fields-list{min-width:0}.tcf-stage-context{display:flex;align-items:center;gap:8px;margin:0 0 13px;padding:10px 11px;border:1px solid #dce8d2;border-radius:8px;background:#f6faf1;color:#506c45;font-size:10px;line-height:1.5}.tcf-stage-context svg{width:14px;height:14px;flex:none}.tcf-field-list{display:grid;gap:8px}.tcf-field-row{display:flex;align-items:stretch;gap:6px;border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.tcf-field-row.is-selected{border-color:#a7c58e;background:#f7fbf3;box-shadow:0 0 0 2px #a7c58e2b}.tcf-field-select{display:flex;align-items:flex-start;gap:10px;flex:1;min-width:0;padding:12px;border:0;background:transparent;text-align:left;cursor:pointer}.tcf-field-select:hover .tcf-field-copy b{color:#527641}.tcf-field-index{display:grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:#eef3ea;color:#67825b;font-size:9px;font-weight:800}.tcf-field-copy{min-width:0}.tcf-field-copy b,.tcf-field-copy small{display:block}.tcf-field-copy b{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.tcf-field-copy small{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.45;overflow-wrap:anywhere}.tcf-field-copy code,.tcf-archive-row code,.tcf-config-formula code{padding:1px 4px;border-radius:3px;background:#edf1eb;color:#5d7159;font-size:9px}.tcf-field-actions{display:flex;align-items:center;gap:3px;padding:7px 7px 7px 0}.tcf-field-actions .btn{min-height:26px;padding:0 7px}.tcf-empty-list{padding:16px;border:1px dashed #cfd9c8;border-radius:8px;color:var(--muted);font-size:11px;line-height:1.65}.tcf-archive{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.tcf-archive summary{cursor:pointer;font-size:11px;font-weight:800;color:#687566}.tcf-archive summary span{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:5px;border-radius:9px;background:#edf1eb;font-size:9px}.tcf-archive-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf0eb}.tcf-archive-row>div{min-width:0}.tcf-archive-row b,.tcf-archive-row small{display:block}.tcf-archive-row b{font-size:11px}.tcf-archive-row small{margin-top:3px;color:var(--muted);font-size:9px}.tcf-field-editor{min-width:0}.tcf-field-form{margin:0}.tcf-config,.tcf-stage-rules{grid-column:1/-1;padding:14px 15px;border:1px solid #e0e8da;border-radius:9px;background:#fcfdfb;min-width:0}.tcf-config>header,.tcf-stage-rules>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.tcf-config header b,.tcf-stage-rules header b{display:block;color:#4b6244;font-size:11px}.tcf-config header small,.tcf-stage-rules header small{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.5}.tcf-check-row{display:flex;flex-wrap:wrap;gap:12px 16px}.tcf-config-note{margin:10px 0 0;color:var(--muted);font-size:9px;line-height:1.55}.tcf-option-list{display:grid;gap:7px}.tcf-option-row{display:grid;grid-template-columns:minmax(100px,.75fr) minmax(130px,1fr) minmax(120px,.75fr) 28px;gap:7px;align-items:end;padding:8px;border:1px solid #e5ebe1;border-radius:7px;background:#fff}.tcf-option-row label{display:grid;gap:4px;color:#73806f;font-size:9px}.tcf-option-row input,.tcf-stage-hint input,.tcf-card-stage-select select{width:100%;min-width:0;padding:8px 9px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-size:11px}.tcf-option-row .icon-btn{width:28px;height:28px;border:1px solid #eadcd7;color:#a3655a}.tcf-config-parent,.tcf-config-mask,.tcf-config-formula{grid-column:1/-1;min-width:0}.tcf-config-formula>small{display:block;margin:7px 0 0;color:var(--muted);font-size:9px;line-height:1.6}.tcf-stage-rule-list{display:grid;gap:8px}.tcf-stage-rule{display:grid;grid-template-columns:minmax(150px,.85fr) auto minmax(180px,1fr);gap:12px;align-items:center;padding:11px;border:1px solid #e2eae0;border-radius:8px;background:#fff;transition:border-color .15s,background .15s}.tcf-stage-rule.is-focus{border-color:#a3c787;background:#f7fbf2}.tcf-stage-rule.is-required{border-left:3px solid #d0934b}.tcf-stage-rule.is-hidden-stage{opacity:.72}.tcf-stage-rule-title{display:flex;align-items:flex-start;gap:8px;min-width:0}.tcf-stage-rule-title .dot{margin-top:4px}.tcf-stage-rule-title b,.tcf-stage-rule-title small{display:block}.tcf-stage-rule-title b{font-size:11px;overflow-wrap:anywhere}.tcf-stage-rule-title small{margin-top:3px;color:var(--muted);font-size:9px}.tcf-stage-rule-toggles{display:flex;flex-wrap:wrap;gap:8px 10px}.tcf-stage-hint{display:grid;gap:4px;color:#73806f;font-size:9px}.tcf-stage-fields-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px!important;padding:18px 22px!important;background:linear-gradient(100deg,#f7fbf4,#fff)}.tcf-stage-fields-entry>div{min-width:0}.tcf-stage-fields-entry h3{margin:3px 0 0;font-size:15px}.tcf-stage-fields-entry p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.tcf-stage-fields-entry .eyebrow{font-size:9px;color:#668857;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.tcf-card-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.tcf-card-summary-head>div{display:flex;align-items:center;gap:8px;min-width:0}.tcf-card-summary-head small{color:var(--muted);font-size:9px}.tcf-card-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.tcf-card-summary-grid dl{min-width:0;margin:0;padding:10px;border:1px solid #e7ece3;border-radius:7px;background:#fff}.tcf-card-summary-grid dl.is-missing{border-color:#e4c18d;background:#fffaf2}.tcf-card-summary-grid dt{color:var(--muted);font-size:9px;line-height:1.4}.tcf-card-summary-grid dd{margin:5px 0 0;font-size:11px;font-weight:800;line-height:1.45;overflow-wrap:anywhere}.tcf-card-summary-grid small{display:block;margin-top:4px;color:#7f8c7a;font-size:9px;line-height:1.5}.tcf-more-fields{display:block;margin-top:9px;color:var(--muted);font-size:9px}.tcf-required-mark{display:inline-flex;align-items:center;margin-left:3px;padding:1px 4px;border-radius:4px;background:#f8ead7;color:#9a6b31;font-size:8px;font-weight:800;vertical-align:middle;white-space:nowrap}.tcf-missing-note{display:flex;align-items:flex-start;gap:9px;margin:0 0 13px;padding:10px 11px;border:1px solid #ead0a8;border-radius:8px;background:#fff9f0;color:#8c6332}.tcf-missing-note svg{width:15px;height:15px;flex:none;margin-top:1px}.tcf-missing-note b,.tcf-missing-note span{display:block}.tcf-missing-note b{font-size:10px}.tcf-missing-note span{margin-top:3px;font-size:10px;line-height:1.5}.tcf-card-panel{margin:0}.tcf-card-panel .panel-head{align-items:flex-start}.tcf-card-panel .panel-head small{display:block;margin-top:4px;color:var(--muted);font-size:10px;font-weight:400}.tcf-card-form{padding:18px 20px}.tcf-card-stage-select{display:flex;align-items:end;gap:14px;margin-bottom:16px;padding:12px;border:1px solid #e1e9db;border-radius:8px;background:#f9fbf7}.tcf-card-stage-select label{display:grid;gap:5px;min-width:190px;color:#64715f;font-size:9px;font-weight:800}.tcf-card-stage-select p{margin:0;color:var(--muted);font-size:10px;line-height:1.6}.tcf-card-form-grid{gap:14px}.tcf-card-field{position:relative;min-width:0}.tcf-card-field.is-missing>.field,.field.tcf-card-field.is-missing{padding:9px;border:1px solid #e8c78d;border-radius:8px;background:#fffaf3}.tcf-card-field .field{margin:0}.tcf-card-label{display:block;margin-bottom:7px;color:#455143;font-size:11px;font-weight:800}.tcf-boolean{display:flex;align-items:center;gap:8px;min-height:36px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:11px}.tcf-boolean input{width:16px;height:16px;accent-color:#668d4a}.tcf-field-hint{display:flex;align-items:flex-start;gap:5px;margin:5px 0 0;color:#778373;font-size:9px;line-height:1.45}.tcf-field-hint svg{width:12px;height:12px;flex:none;margin-top:1px}.tcf-board-missing{display:flex;align-items:center;gap:5px;margin-top:9px;padding:6px 8px;border-radius:6px;background:#fff3df;color:#976a34;font-size:9px;font-weight:800}.tcf-board-missing svg{width:12px;height:12px}.kn-card-fields .tcf-card-value-missing{padding:5px 6px;border-radius:5px;background:#fff4e4}.kn-card-fields .tcf-card-value-missing dd{color:#9d6a31}.tcf-card-panel .form-actions{margin-bottom:0}
@media(max-width:1050px){.tcf-card-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tcf-stage-rule{grid-template-columns:minmax(130px,.8fr) minmax(180px,1fr);align-items:start}.tcf-stage-hint{grid-column:1/-1}.tcf-option-row{grid-template-columns:minmax(100px,.75fr) minmax(130px,1fr) 28px}.tcf-option-row [data-tcf-option-parent]{grid-column:1/3}.tcf-option-row .icon-btn{grid-column:3;grid-row:1}}
@media(max-width:700px){.tcf-section-head,.tcf-stage-fields-entry,.tcf-card-summary-head{align-items:stretch;flex-direction:column}.tcf-section-head>.btn,.tcf-stage-fields-entry>.btn,.tcf-card-summary-head>.btn{width:100%;justify-content:center}.tcf-field-actions{align-items:flex-end;flex-direction:column}.tcf-field-actions .btn{width:100%;justify-content:center}.tcf-option-row{grid-template-columns:1fr 28px}.tcf-option-row label{grid-column:1}.tcf-option-row [data-tcf-option-parent]{grid-column:1}.tcf-option-row .icon-btn{grid-column:2;grid-row:1}.tcf-stage-rule{grid-template-columns:1fr}.tcf-stage-rule-toggles{padding-left:22px}.tcf-card-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tcf-card-form{padding:14px}.tcf-card-stage-select{align-items:stretch;flex-direction:column}.tcf-card-stage-select label{min-width:0}.tcf-card-panel .panel-head{gap:12px;flex-wrap:wrap}.tcf-card-panel .panel-head .btn{width:100%;justify-content:center}}
@media(max-width:430px){.tcf-card-summary-grid{grid-template-columns:1fr}.tcf-field-row{align-items:flex-start}.tcf-field-select{padding:10px}.tcf-field-actions{padding:7px}.tcf-stage-rule{padding:10px}.tcf-stage-rule-toggles{padding-left:0}.tcf-stage-hint input{font-size:16px}.tcf-option-row input,.tcf-card-stage-select select{font-size:16px}}


/* Explicit stage routing and the compact board-card drawer. */
.tcf-stage-selection-note{display:inline-flex;align-items:center;min-height:25px;margin:0 0 10px;padding:4px 8px;border-radius:6px;font-size:9px;font-weight:800}.tcf-stage-selection-note.is-empty{background:#fff4e5;color:#99652c}.tcf-stage-selection-note.is-ready{background:#edf7e9;color:#4c7541}.tcf-stage-selection-missing [data-tcf-stage-rules-editor]{border-color:#e5bf82;background:#fffdf8}.tcf-stage-rule.is-hidden-stage{background:#fafbf9}.tcf-stage-rule.is-hidden-stage .tcf-stage-hint{opacity:.62}
.tcf-compact-card{position:relative;min-width:0}.tcf-compact-card.has-attention{border-color:#e9d0aa;box-shadow:0 2px 8px #8e642410}.tcf-card-main{display:block;min-width:0}.tcf-card-main h3{overflow-wrap:anywhere}.tcf-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;padding-top:8px;border-top:1px solid var(--line)}.tcf-card-indicators,.tcf-card-actions{display:flex;align-items:center;gap:5px;min-width:0}.tcf-card-footer .tcf-card-indicator{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 29px;box-sizing:border-box;width:29px;height:29px;padding:0;gap:0;line-height:1;border-radius:7px}.tcf-card-footer .tcf-card-indicator>.icon{display:block;flex:none;width:16px;height:16px;margin:0}.tcf-card-indicator.is-missing{background:#fff1df;color:#a66b2e}.tcf-card-indicator.is-approval{background:#f9e9e5;color:#a95549}.tcf-card-indicator b{position:absolute;right:-4px;top:-5px;display:grid;place-items:center;min-width:14px;height:14px;padding:0 3px;border:1px solid #fff;border-radius:8px;background:#9a692e;color:#fff;font-size:8px;line-height:1}.tcf-card-actions .icon-btn,.tcf-card-actions .btn{display:inline-grid;place-items:center;width:29px;min-width:29px;height:29px;min-height:29px;padding:0;border-radius:7px}.tcf-card-actions .btn{gap:0}.tcf-card-actions .btn svg,.tcf-card-actions .icon-btn svg{width:14px;height:14px}.tcf-card-actions .btn{border:1px solid var(--line);background:#fff}.tcf-card-actions .btn:hover,.tcf-card-actions .icon-btn:hover{border-color:#a7bf99;background:#f4f8f0}.tcf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tcf-drawer-overlay{justify-content:flex-end!important;padding:0!important;background:#102a2d47}.tcf-drawer{display:flex;flex-direction:column;width:min(570px,100vw)!important;max-width:100%!important;height:100dvh;max-height:none!important;margin:0;border-radius:16px 0 0 16px;overflow:hidden;animation:tcf-drawer-in .18s ease-out}.tcf-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:23px 24px 18px;border-bottom:1px solid var(--line);background:#fff}.tcf-drawer-head .eyebrow{display:block;color:#6f8766;font-size:9px}.tcf-drawer-head h2{margin-top:4px;font-size:20px}.tcf-drawer-head .icon-btn{flex:none}.tcf-drawer-body{flex:1;min-height:0;padding:20px 22px 28px;overflow:auto;background:#fbfcfa}.tcf-drawer-context{display:flex;align-items:flex-start;gap:9px;margin-bottom:14px;padding:12px;border:1px solid #e0e9db;border-radius:9px;background:#fff}.tcf-drawer-context>.dot{width:8px;height:8px;margin-top:5px;flex:none}.tcf-drawer-context div{display:grid;gap:2px;min-width:0}.tcf-drawer-context b{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.tcf-drawer-context small{font-size:9px;line-height:1.45}.tcf-drawer .tcf-card-form{padding:0}.tcf-drawer .tcf-card-form-grid{gap:13px}.tcf-drawer .form-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;margin:20px -22px 0;padding:14px 22px;background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 18px #132b2f09}.tcf-drawer .form-actions .btn{min-width:112px}.tcf-drawer-approval{display:flex;align-items:flex-start;gap:9px;margin:0 0 14px;padding:11px;border:1px solid #d8e6d3;border-radius:8px;background:#f8fbf6;color:#56734d}.tcf-drawer-approval.is-missing{border-color:#e8c3b6;background:#fff9f7;color:#965a4c}.tcf-drawer-approval>svg{width:16px;height:16px;flex:none;margin-top:2px}.tcf-drawer-approval>div{display:grid;gap:2px;min-width:0;flex:1}.tcf-drawer-approval b{font-size:10px}.tcf-drawer-approval span{font-size:9px;line-height:1.5}.tcf-drawer-approval .btn{flex:none;min-height:27px;padding:4px 8px;font-size:10px}@keyframes tcf-drawer-in{from{transform:translateX(28px);opacity:.6}to{transform:translateX(0);opacity:1}}
@media(max-width:700px){.tcf-drawer{width:100vw!important;border-radius:0}.tcf-drawer-head{padding:18px 16px}.tcf-drawer-body{padding:16px 14px 24px}.tcf-drawer .form-actions{bottom:0;margin:18px -14px 0;padding:12px 14px}.tcf-drawer .form-actions .btn{flex:1;min-width:0}.tcf-drawer-approval{align-items:center;flex-wrap:wrap}.tcf-drawer-approval .btn{margin-left:25px}.tcf-stage-selection-note{display:flex}.tcf-card-footer{margin-top:9px}}
@media(prefers-reduced-motion:reduce){.tcf-drawer{animation:none}}

/* Keep independently saved stage elements clear of the field form footer. */
.tcf-drawer .tcf-drawer-form+.kd-card-elements{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
