.kf2{--bg:#f5f7fb;--panel:#fff;--ink:#14243b;--muted:#52647b;--line:#d7e0ec;--blue:#174bc1;--soft:#eaf0ff;--good:#176345;--goodbg:#e4f5eb;--warn:#83520b;--warnbg:#fff0d2;--bad:#a3263b;--badbg:#fce9ec;--nav:#102541;--focus:#225acd;--shadow:0 4px 16px #152b4510;font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);min-height:100vh;display:grid;grid-template-columns:222px minmax(0,1fr);color-scheme:light}
.kf2[data-theme=dark]{--bg:#101b2b;--panel:#18283d;--ink:#f0f5ff;--muted:#b4c4da;--line:#40536d;--blue:#a8c8ff;--soft:#293f61;--good:#b4efd0;--goodbg:#203f35;--warn:#ffe0a1;--warnbg:#453a24;--bad:#ffc0cc;--badbg:#482c39;--nav:#0b1727;--focus:#b7d2ff;--shadow:none;color-scheme:dark}
.kf2 *{box-sizing:border-box}.kf2 h1,.kf2 h2,.kf2 h3,.kf2 p{margin:0}.kf2 h1{font-size:29px;line-height:1.25;letter-spacing:-.04em;font-weight:760}.kf2 h2{font-size:20px;letter-spacing:-.025em}.kf2 h3{font-size:16px}.kf2 button,.kf2 input,.kf2 select,.kf2 textarea{font:inherit}.kf2 button{cursor:pointer}.kf2 :focus-visible{outline:3px solid var(--focus);outline-offset:3px}.kf2 button:disabled{cursor:not-allowed;opacity:1;color:var(--muted);background:var(--bg);border-style:dashed}.kf2 svg{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.kf2 small{font-size:13px;color:var(--muted)}.kf2 .muted{color:var(--muted)}.kf2 .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.kf2 aside.sidebar{background:var(--nav);color:#eaf2ff;padding:25px 13px;display:flex;flex-direction:column;gap:26px;min-width:0}.kf2 .brand{display:flex;align-items:center;gap:11px;padding:0 10px;font-weight:750;font-size:16px;line-height:1.2}.kf2 .brandmark{background:#3464dc;border:1px solid #86a7ff;width:39px;height:42px;display:grid;place-items:center;border-radius:11px;font-size:18px}.kf2 .brand small{display:block;color:#b5c7e0;font-size:11px;letter-spacing:.07em;margin-top:4px}.kf2 .navlabel{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#adbfdb;margin:0 12px 10px;font-weight:700}.kf2 .navitem{border:1px solid transparent;width:100%;display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:9px;color:#c4d3e9;background:transparent;font-size:14px;font-weight:600;text-align:left;margin:2px 0;min-height:44px}.kf2 .navitem:hover{background:#1d3658}.kf2 .navitem[aria-current=page]{background:#254268;border-color:#4a6b99;color:#fff}.kf2 .sidefoot{margin-top:auto;border-top:1px solid #345172;padding:17px 10px 0;font-size:13px;color:#d0dded}.kf2 .sidefoot small{color:#afc0d9;display:block;margin-top:6px}.kf2 .workspace{min-width:0}.kf2 .topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px;background:var(--panel)}.kf2 .company{font-size:14px;font-weight:700}.kf2 .topmeta{color:var(--muted);font-size:12px;margin-top:2px}.kf2 .topright{display:flex;align-items:center;gap:12px}.kf2 .avatar{display:grid;place-items:center;border-radius:50%;background:var(--soft);width:36px;height:36px;font-size:12px;font-weight:750;color:var(--blue)}.kf2 .desktop-role{font-size:12px;color:var(--muted)}.kf2 .mobile-section{display:none}.kf2 main{padding:28px 30px 38px;max-width:1640px;margin:auto}.kf2 .pagehead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.kf2 .pagehead p{color:var(--muted);font-size:14px;margin-top:7px}.kf2 .actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.kf2 .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid var(--line);border-radius:8px;padding:9px 14px;background:var(--panel);color:var(--ink);font-weight:650;font-size:14px;text-decoration:none}.kf2 .btn:hover{background:var(--soft)}.kf2 .btn.primary{background:#1c4dcc;color:#fff;border-color:#1c4dcc}.kf2 .btn.primary:hover{background:#133ca6}.kf2 .btn.link{color:var(--blue);border-color:transparent;background:transparent;padding:8px 0;text-align:left}.kf2 .btn.compact{padding:7px 11px;min-height:38px;font-size:13px}.kf2 .btn.icononly{padding:9px}.kf2 .kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.kf2 .kpi{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:19px 21px;text-align:left;color:var(--ink);box-shadow:var(--shadow)}.kf2 .kpi .label{font-size:13px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}.kf2 .kpi strong{display:block;font-size:28px;font-weight:750;letter-spacing:-.035em;margin:10px 0 5px;font-variant-numeric:tabular-nums}.kf2 .kpi strong em{font-style:normal;font-size:13px;color:var(--muted);letter-spacing:0;font-weight:600}.kf2 .kpi .caption{font-size:12px;color:var(--muted)}.kf2 .grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:20px;align-items:start}.kf2 .card{border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden;min-width:0;margin-bottom:20px}.kf2 .cardhead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 21px;border-bottom:1px solid var(--line)}.kf2 .cardbody{padding:20px 21px}.kf2 .cardbody p{margin:8px 0;color:var(--muted);font-size:14px}.kf2 .count{display:inline-block;padding:2px 8px;border-radius:6px;background:var(--soft);font-size:13px;color:var(--blue);margin-left:8px}.kf2 .queueitem{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px 21px;border-bottom:1px solid var(--line)}.kf2 .queueitem:last-child{border-bottom:0}.kf2 .itemicon{display:grid;place-items:center;width:36px;height:36px;background:var(--soft);color:var(--blue);border-radius:9px}.kf2 .queueitem strong{display:block;font-size:14px;font-weight:650}.kf2 .queueitem small{display:block;margin-top:3px}.kf2 .queueitem .right{text-align:right}.kf2 .money{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}.kf2 .badge{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:4px 8px;font-size:14px;line-height:1.4;font-weight:700;background:var(--soft);color:var(--blue);max-width:100%;white-space:normal}.kf2 .badge.warn{background:var(--warnbg);color:var(--warn)}.kf2 .badge.good{background:var(--goodbg);color:var(--good)}.kf2 .badge.bad{background:var(--badbg);color:var(--bad)}.kf2 .progress{background:var(--line);height:7px;border-radius:20px;margin:14px 0;overflow:hidden}.kf2 .progress span{height:100%;display:block;background:#3464dc}.kf2 .taskline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;font-size:14px;border-bottom:1px solid var(--line)}.kf2 .taskline:last-child{border:0}.kf2 .notice{border:1px solid var(--line);background:var(--soft);color:var(--ink);padding:12px 15px;font-size:13px;border-radius:9px;margin:15px 0}.kf2 .notice.warning{background:var(--warnbg);color:var(--warn)}.kf2 .notice.error{background:var(--badbg);color:var(--bad)}.kf2 .toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 17px}.kf2 .search{min-width:160px;flex:1}.kf2 input,.kf2 select,.kf2 textarea{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-height:43px;max-width:100%;min-width:0}.kf2 input::placeholder,.kf2 textarea::placeholder{color:var(--muted)}.kf2 input[type=checkbox]{accent-color:#225acd;min-height:20px;width:19px;height:19px;flex:none}.kf2 label{font-size:13px;font-weight:650;display:block;color:var(--muted);margin-bottom:6px}.kf2 label input,.kf2 label select,.kf2 label textarea{display:block;width:100%;margin-top:7px;color:var(--ink);font-weight:400}.kf2 label.checkbox{display:flex;align-items:center;gap:9px;color:var(--ink);font-weight:400}.kf2 label.checkbox input{width:19px;margin:0}.kf2 .filters{display:flex;gap:6px;flex-wrap:wrap}.kf2 .filter{border:1px solid transparent;color:var(--muted);background:transparent;padding:8px 12px;border-radius:7px;font-size:13px;min-height:40px;font-weight:600}.kf2 .filter[aria-pressed=true]{border-color:var(--line);color:var(--blue);background:var(--soft)}.kf2 .tablewrap{overflow:auto}.kf2 table{width:100%;border-collapse:collapse;font-size:14px}.kf2 th{text-align:left;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:750;background:var(--bg);padding:13px 18px;border-bottom:1px solid var(--line)}.kf2 td{padding:16px 18px;border-bottom:1px solid var(--line);vertical-align:middle}.kf2 tr:last-child td{border-bottom:0}.kf2 .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.kf2 td small{display:block;margin-top:3px}.kf2 .rowactions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.kf2 .empty{padding:35px;text-align:center;color:var(--muted)}.kf2 .empty strong{display:block;color:var(--ink);font-size:17px;margin-bottom:8px}.kf2 .sectionfoot{font-size:12px;color:var(--muted);margin-top:10px}.kf2 .reconcolumns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.kf2 .matchrow{display:flex;align-items:center;gap:12px;padding:14px 17px;border-bottom:1px solid var(--line)}.kf2 .matchrow>div{flex:1;min-width:0}.kf2 .matchrow strong{font-size:13px}.kf2 .matchrow small{display:block;margin-top:2px}.kf2 .summarystrip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border:1px solid var(--line);border-radius:10px;background:var(--panel);margin-bottom:20px;flex-wrap:wrap}.kf2 .summarystrip strong{display:block;font-size:22px}.kf2 .toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--panel);padding:12px 20px;border-radius:10px;box-shadow:0 5px 30px #0003;z-index:200;max-width:calc(100vw - 28px);font-size:14px}.kf2 .screenstatus:empty{display:none}.kf2 .screenstatus{margin:16px 30px;padding:12px;background:var(--warnbg);color:var(--warn);border-radius:8px;font-size:14px}
.kf2 dialog{position:fixed;width:min(850px,calc(100vw - 32px));max-height:calc(100dvh - 38px);padding:0;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:15px;box-shadow:0 20px 80px #0004;font:inherit;overflow:auto}.kf2 dialog::backdrop{background:#081528b0}.kf2 .dialoghead{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:21px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--panel);z-index:1}.kf2 .dialoghead h2{font-size:22px}.kf2 .dialoghead small{display:block;margin-top:4px}.kf2 .dialogbody{padding:22px 24px}.kf2 .dialogfoot{padding:16px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.kf2 .formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.kf2 .splitview{display:grid;grid-template-columns:.8fr 1.2fr;gap:24px}.kf2 .sourcebox{background:var(--bg);padding:20px;border-radius:11px;border:1px solid var(--line)}.kf2 .sourcebox>strong{font-size:23px;display:block;margin:12px 0}.kf2 .sourcebox p{font-size:13px;color:var(--muted);margin:9px 0}.kf2 .allocation{display:grid;grid-template-columns:minmax(100px,1fr) 115px 35px;gap:8px;align-items:end;margin-bottom:10px}.kf2 .allocation .btn{padding:7px;min-height:43px}.kf2 .allocation label{margin:0}.kf2 .journalrow{display:grid;grid-template-columns:minmax(160px,1fr) 120px 120px 35px;gap:8px;margin-bottom:11px;align-items:end}.kf2 .balancecheck{font-size:13px;background:var(--bg);padding:11px 13px;border-radius:8px;margin:12px 0}.kf2 .balancecheck[data-balanced=true]{background:var(--goodbg);color:var(--good)}.kf2 .dialogerror:empty{display:none}.kf2 .dialogerror{padding:12px;background:var(--badbg);color:var(--bad);border-radius:8px;margin-bottom:15px;font-size:14px}.kf2 pre{white-space:pre-wrap;word-break:break-word;background:var(--bg);padding:16px;border-radius:10px;font:12px/1.6 ui-monospace,monospace}.kf2 .original{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:700}
@media(min-width:1450px){.kf2{grid-template-columns:242px minmax(0,1fr)}.kf2 main{padding:32px 42px}.kf2 .topbar{padding:0 42px}}
@media(max-width:1100px){.kf2{grid-template-columns:194px minmax(0,1fr)}.kf2 main{padding:24px 20px}.kf2 .topbar{padding:0 20px}.kf2 .grid{grid-template-columns:1fr}.kf2 .kpi{padding:17px}.kf2 .kpi strong{font-size:23px}.kf2 .toolbar{align-items:flex-start}}
@media(max-width:760px){.kf2{display:block}.kf2 aside.sidebar{display:none}.kf2 .topbar{height:65px;padding:0 17px;gap:12px}.kf2 .topright{gap:8px}.kf2 .desktop-role,.kf2 .avatar{display:none}.kf2 main{padding:20px 16px 30px}.kf2 .mobile-section{display:block;width:calc(100% - 32px);margin:14px 16px 0;font-weight:650;background:var(--panel)}.kf2 .pagehead{margin-bottom:18px;align-items:flex-start}.kf2 .pagehead h1{font-size:25px}.kf2 .pagehead .actions{justify-content:flex-end}.kf2 .kpis{grid-template-columns:1fr;gap:10px;margin-bottom:18px}.kf2 .kpi{padding:14px 17px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}.kf2 .kpi strong{grid-column:2;grid-row:1 / 3;font-size:24px;margin:0}.kf2 .kpi .label svg{display:none}.kf2 .kpi .caption{margin-top:4px}.kf2 .cardhead,.kf2 .cardbody{padding:17px}.kf2 .queueitem{grid-template-columns:30px minmax(0,1fr) auto;gap:10px;padding:14px 17px}.kf2 .queueitem small{font-size:12px}.kf2 .itemicon{width:30px;height:32px}.kf2 .reconcolumns,.kf2 .splitview{grid-template-columns:1fr}.kf2 .tablewrap{overflow:visible}.kf2 table.responsive,.kf2 table.responsive tbody{display:block}.kf2 table.responsive thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.kf2 table.responsive tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:17px;border-bottom:1px solid var(--line)}.kf2 table.responsive td{border:0;padding:0;min-width:0;overflow-wrap:anywhere}.kf2 table.responsive td[data-label]:before{display:block;content:attr(data-label);font-size:11px;color:var(--muted);text-transform:uppercase;margin-bottom:5px;letter-spacing:.03em}.kf2 table.responsive td.wide{grid-column:1 / -1}.kf2 .rowactions{justify-content:flex-start}.kf2 table.responsive .num{white-space:normal;text-align:left}.kf2 .sourcebox{padding:15px}.kf2 .dialoghead,.kf2 .dialogbody{padding:18px}.kf2 .dialogfoot{padding:15px 18px}.kf2 .formgrid{grid-template-columns:1fr}.kf2 .journalrow{grid-template-columns:1fr 1fr 34px;padding-bottom:13px;border-bottom:1px solid var(--line)}.kf2 .journalrow label:first-child{grid-column:1 / -1}.kf2 .allocation{grid-template-columns:minmax(0,1fr) 100px 30px}.kf2 .screenstatus{margin:12px 16px}.kf2 .topmeta{font-size:11px}.kf2 .summarystrip{padding:15px}.kf2 .search{width:100%;flex-basis:100%}.kf2 .filters{gap:0}.kf2 .filter{padding:8px 9px;font-size:12px}.kf2 .matchrow{padding:12px}.kf2 .matchrow .money{font-size:13px}}
@media(max-width:380px){.kf2 .pagehead{display:block}.kf2 .pagehead .actions{justify-content:flex-start;margin-top:14px}.kf2 .company{font-size:12px}.kf2 .kpi strong{font-size:21px}.kf2 .queueitem{grid-template-columns:28px minmax(0,1fr)}.kf2 .queueitem .right{grid-column:2;text-align:left;display:flex;align-items:center;justify-content:space-between}.kf2 .allocation{grid-template-columns:minmax(0,1fr) 30px}.kf2 .allocation label:first-child{grid-column:1 / -1}.kf2 .allocation input{width:100%}.kf2 .btn{max-width:100%;white-space:normal}}
@media(prefers-reduced-motion:reduce){.kf2 *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Office views: own grid slots, without changing the legacy source queue. */
.kf2 .queueitem.business-item{grid-template-columns:minmax(0,1fr) auto auto;gap:14px}
.kf2 .business-item>div{min-width:0}.kf2 .business-item .badge{justify-self:end;max-width:100%;overflow-wrap:anywhere}
.kf2 .business-shortcuts{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.kf2 .business-shortcuts .btn{min-height:42px;display:block}
.kf2 .business-line{padding:16px;border:1px solid var(--line);border-radius:10px;margin-top:14px;background:var(--bg)}
.kf2 .business-line input,.kf2 .business-line select{max-width:100%;min-width:0}
.kf2 .business-lines{max-width:100%;min-width:0}
.kf2 .business-item small{overflow-wrap:anywhere}
@media(max-width:600px){.kf2 .queueitem.business-item{grid-template-columns:minmax(0,1fr) auto}.kf2 .business-item>div{grid-column:1}.kf2 .business-item>.badge{grid-column:2;grid-row:1}.kf2 .business-item>.btn{grid-column:1/-1;justify-self:start}.kf2 .business-line{padding:12px}}

/* Accountant workflows retain the existing scoped theme tokens. */
.kf2 .sidebar nav{min-height:0;overflow-y:auto}.kf2 .acct-item{flex-wrap:wrap;gap:12px}.kf2 .acct-item>div:first-child{min-width:0;flex:1}.kf2 .acct-item small{overflow-wrap:anywhere}.kf2 .acct-budget-line,.kf2 .acct-forecast-line,.kf2 .acct-reclass-line{padding:12px 0;border-bottom:1px solid var(--border)}.kf2 fieldset{border:1px solid var(--border);border-radius:10px;margin:16px 0;padding:12px;min-width:0}.kf2 .acct-reclass-line label{overflow-wrap:anywhere}.kf2 .acct-item .rowactions{flex-wrap:wrap}.kf2 .acct-item .badge{white-space:normal}@media(max-width:600px){.kf2 .acct-item>.rowactions{width:100%}.kf2 .acct-item .btn{flex:1}.kf2 .acct-budget-line,.kf2 .acct-reclass-line{grid-template-columns:1fr}}
/* Accountant records have no leading icon: give their description the main
   column instead of inheriting the narrow icon column from generic queues. */
.kf2 .queueitem.acct-item{grid-template-columns:minmax(0,1fr) auto auto;gap:16px}
.kf2 .acct-item>.badge{justify-self:end;align-self:center;width:auto}
.kf2 .acct-item>div:first-child{min-width:0}
.kf2 .acct-budget-line,.kf2 .acct-forecast-line,.kf2 .acct-reclass-line,.kf2 fieldset{border-color:var(--line)}
@media(max-width:600px){.kf2 .queueitem.acct-item{grid-template-columns:minmax(0,1fr) auto;gap:12px}.kf2 .acct-item>.rowactions{grid-column:1/-1;justify-content:flex-start}.kf2 .acct-item>.badge{grid-column:2;grid-row:1}.kf2 .acct-item>div:first-child{grid-column:1;grid-row:1}}

/* Immutable original-file controls */
.kf2 .original-list{margin-bottom:1.1rem;overflow-wrap:anywhere}
.kf2 .original-row{display:flex;align-items:center;gap:1rem;padding:.8rem 0;border-bottom:1px solid var(--line)}
.kf2 .original-row>div{min-width:0;flex:1}.kf2 .original-row strong,.kf2 .original-row small{display:block}
.kf2 .original-row small{margin-top:.25rem}.kf2 input[type=file]{max-width:100%;padding:.65rem}
@media(max-width:480px){.kf2 .original-row{align-items:flex-start;flex-direction:column}}

.kf2 .period-controls[hidden],.kf2 .period-controls [hidden],.kf2 [data-period-editor][hidden],.kf2 [data-period-editor] [hidden]{display:none!important}
.kf2 .period-controls .sourcebox small{overflow-wrap:anywhere}.kf2 .period-controls .rowactions{flex-wrap:wrap}.kf2 [data-period-editor] .sourcebox small{overflow-wrap:anywhere}

.kf2 .loan-evidence{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;overflow:auto;padding:16px;border:1px solid var(--line);border-radius:12px;font:inherit}
/* Manual purchasing workpapers only; native reports and financial forms retained. */
.kf2 .purchase-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0}.kf2 .purchase-toolbar .muted{margin-left:auto}.kf2 .purchase-card{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}.kf2 .purchase-card:last-child{border-bottom:0}.kf2 .purchase-card>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}.kf2 .purchase-card h3{font-size:18px;line-height:1.4;margin:0 0 10px}.kf2 .purchase-card p{font-size:13px;line-height:1.65;color:var(--muted);margin:7px 0}.kf2 .purchase-card>.actions{max-width:300px;justify-content:flex-end;flex-wrap:wrap}.kf2 .purchase-line{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:18px;border:1px solid var(--line);border-radius:12px;margin:16px 0;min-width:0}.kf2 .purchase-line legend{padding:0 8px;color:var(--muted);font-weight:750;font-size:13px}.kf2 .purchase-line label{margin:0;min-width:0}.kf2 .purchase-line input{min-width:0;width:100%}.kf2 .purchase-line .btn{justify-self:start;align-self:end}.kf2 .purchase-evidence{white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font:13px/1.7 ui-monospace,SFMono-Regular,monospace}.kf2 [data-purchase-preview]{font-size:14px;line-height:1.7;white-space:pre-wrap}.kf2 [data-purchase-preview][data-valid=true]{background:var(--goodbg);color:var(--good);border-color:var(--good)}.kf2 [data-purchasing-editor] dl{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,2fr);gap:10px 18px;margin:20px 0}.kf2 [data-purchasing-editor] dd{margin:0;color:var(--muted);overflow-wrap:anywhere}.kf2 [data-purchasing-editor][hidden],.kf2 [data-purchasing-editor] [hidden]{display:none!important}@media(max-width:700px){.kf2 .purchase-card{flex-direction:column;gap:16px}.kf2 .purchase-card>.actions{max-width:none;justify-content:flex-start}.kf2 .purchase-toolbar .muted{margin-left:0;flex-basis:100%}.kf2 .purchase-line{grid-template-columns:1fr;padding:15px}.kf2 [data-purchasing-editor] dl{grid-template-columns:1fr}.kf2 [data-purchasing-editor] dd{padding-bottom:10px}}

/* Native workspace: one compact local navigation under the company host. */
.kf2{--bg:#f4f7fa;--panel:#fff;--ink:#172b40;--muted:#526980;--line:#dce5ee;--blue:#1764b2;--soft:#edf2f7;--selected:#eaf3ff;--focus:#1764b2;--shadow:0 1px 3px #172b4008;display:block;min-height:560px;border:1px solid var(--line);border-radius:16px;overflow:clip;font-size:16px;line-height:1.55}
.kf2[data-theme=dark]{--bg:#101b27;--panel:#152332;--ink:#eff5fc;--muted:#afc0d2;--line:#34495e;--blue:#80bcff;--soft:#213449;--selected:#233e5b;--focus:#80bcff;--shadow:none}
.kf2[hidden],.kf2 [hidden]{display:none!important}
.kf2 h1{font-size:25px;line-height:1.25;letter-spacing:-.025em;font-weight:730}
.kf2 h2{font-size:19px;line-height:1.35;letter-spacing:-.015em}
.kf2 h3{font-size:16px;line-height:1.4}
.kf2 small{font-size:14px;line-height:1.5}
.kf2 aside.sidebar{display:block;background:var(--panel);color:var(--ink);padding:0;border-bottom:1px solid var(--line)}
.kf2 .local-navigation{display:flex;align-items:flex-start;gap:8px;padding:10px 14px}
.kf2 .local-navigation>nav{display:flex;flex:1;flex-wrap:wrap;gap:4px;min-width:0}
.kf2 .navitem{display:inline-flex;align-items:center;gap:8px;width:auto;min-height:44px;margin:0;padding:9px 11px;font-size:15px;line-height:1.4;color:var(--muted);border-radius:10px;white-space:nowrap}
.kf2 .navitem:hover{background:var(--soft);color:var(--ink)}
.kf2 .navitem[aria-current=page]{background:var(--selected);border-color:var(--line);color:var(--blue)}
.kf2 .navitem svg{width:18px;height:18px}
.kf2 .more-sections{position:relative;flex:0 0 auto}
.kf2 .more-sections>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--panel);font-size:15px;font-weight:650;cursor:pointer;list-style:none;max-width:230px}
.kf2 .more-sections>summary::-webkit-details-marker{display:none}
.kf2 .more-sections>summary::after{content:'⌄';margin-left:auto;font-size:18px;line-height:1}
.kf2 .more-sections[open]>summary{background:var(--selected);border-color:var(--blue)}
.kf2 .more-sections>nav{position:absolute;right:0;top:calc(100% + 7px);z-index:25;display:grid;gap:3px;width:270px;max-height:min(60vh,420px);overflow:auto;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 35px #101b2720}
.kf2 .more-sections>nav .navitem{width:100%;white-space:normal;text-align:left}
.kf2 .topbar{height:auto;min-height:66px;padding:14px 24px;gap:16px;background:var(--panel)}
.kf2 .company{font-size:16px;line-height:1.4;font-weight:680;overflow-wrap:anywhere}
.kf2 .topmeta{font-size:14px;line-height:1.5;margin-top:3px}
.kf2 .context-state{font-size:14px;color:var(--muted);white-space:nowrap}
.kf2 main{padding:24px;max-width:1500px}
.kf2 .pagehead{margin-bottom:22px;align-items:flex-start}
.kf2 .pagehead p{font-size:15px;line-height:1.55;max-width:72ch;margin-top:7px}
.kf2 .btn,.kf2 .btn.compact{min-height:44px;border-radius:12px;padding:10px 14px;font-size:15px;line-height:1.4;letter-spacing:0}
.kf2 .btn.primary{background:#1764b2;border-color:#1764b2;color:#fff}
.kf2 .btn.primary:hover{background:#115391;border-color:#115391}
.kf2 .btn.link{padding:10px 4px}
.kf2 button:disabled{opacity:1;color:var(--muted);background:var(--soft);border-color:var(--line);border-style:solid}
.kf2 input,.kf2 select,.kf2 textarea{font-size:16px;min-height:46px;border-radius:12px;background:var(--panel);color:var(--ink);border-color:var(--line);line-height:1.5}
.kf2 textarea{min-height:112px;padding:12px;resize:vertical}
.kf2 label{font-size:15px;font-weight:600;color:var(--ink);line-height:1.5}
.kf2 label small,.kf2 .fieldhint{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:5px;line-height:1.5}
.kf2 input[type=checkbox]{min-height:22px;width:22px;height:22px;flex:0 0 auto;accent-color:#1764b2}
.kf2 .checkbox{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font-weight:450}
.kf2 .checkbox input{margin:2px 0 0}
.kf2 .card{border-radius:14px;box-shadow:var(--shadow);margin-bottom:20px}
.kf2 .cardhead{padding:18px 20px;gap:14px;background:var(--panel)}
.kf2 .cardbody{padding:20px}
.kf2 .cardbody p{font-size:15px;line-height:1.6}
.kf2 .kpis{gap:14px}
.kf2 .kpi{padding:20px;border-radius:14px}
.kf2 .kpi .label,.kf2 .kpi .caption{font-size:14px;line-height:1.5}
.kf2 .kpi strong{font-size:28px;line-height:1.2;letter-spacing:-.025em}
.kf2 .notice{background:var(--soft);border-color:var(--line);padding:14px 16px;border-radius:12px;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.kf2 .notice p{margin-top:5px}
.kf2 .badge{padding:5px 9px;border-radius:8px;font-size:14px;font-weight:650;line-height:1.45}
.kf2 .toolbar{gap:12px;margin-bottom:18px;align-items:center}
.kf2 .search{min-height:46px;font-size:16px;background:var(--panel)}
.kf2 .filters{gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--panel);flex-wrap:wrap}
.kf2 .filter{min-height:44px;padding:9px 12px;border-radius:8px;font-size:14px;color:var(--muted);border-color:transparent}
.kf2 .filter[aria-pressed=true]{background:var(--selected);color:var(--blue)}
.kf2 table{font-size:15px;line-height:1.5}
.kf2 th{padding:13px 18px;background:var(--soft);color:var(--muted);font-size:14px;font-weight:650;text-transform:none;letter-spacing:0;white-space:normal}
.kf2 td{padding:16px 18px;vertical-align:top}
.kf2 td strong{font-size:15px}
.kf2 td small{display:block;margin-top:4px;font-size:14px}
.kf2 .rowactions{gap:8px;align-items:flex-start}
.kf2 .empty{padding:30px 22px;line-height:1.6;color:var(--muted);text-align:center}
.kf2 .empty h3,.kf2 .empty strong{display:block;color:var(--ink);font-size:17px;margin-bottom:7px}
.kf2 .empty p{font-size:15px;max-width:60ch;margin:0 auto}
.kf2>.workspace-message{grid-column:1/-1;width:min(100%,760px);margin:56px auto;padding:40px 28px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.kf2 .workspace-message-icon{display:grid;place-items:center;width:50px;height:50px;margin:0 auto 18px;border-radius:14px;color:var(--blue);background:var(--selected)}
.kf2 .workspace-message h2{margin-bottom:10px}
.kf2 .workspace-message[data-loading=true] .workspace-message-icon svg{animation:kms-native-pulse 1.5s ease-in-out infinite}
.kf2 .sectionfoot{font-size:14px;line-height:1.6;color:var(--muted)}
.kf2 dialog{width:min(840px,calc(100vw - 32px));max-height:90vh;max-height:90dvh;padding:0;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 80px #0b162b40}
.kf2 dialog::backdrop{background:#10243c66;backdrop-filter:blur(3px)}
.kf2 .dialoghead{padding:22px 24px 18px;gap:18px;background:var(--panel);border-bottom:1px solid var(--line);align-items:flex-start}
.kf2 .dialoghead h2{font-size:23px;line-height:1.3}
.kf2 .dialoghead small{display:block;margin-top:7px;font-size:15px;line-height:1.5}
.kf2 .dialogbody{padding:22px 24px;max-height:calc(90vh - 180px);max-height:calc(90dvh - 180px);overflow:auto;scrollbar-gutter:stable}
.kf2 .dialogbody>label{margin-top:16px}
.kf2 .dialogbody h3{margin:20px 0 10px}
.kf2 .dialogbody h3:first-child{margin-top:0}
.kf2 .dialogbody p{font-size:15px;line-height:1.6}
.kf2 .dialogfoot{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding:16px 24px;background:var(--panel);border-top:1px solid var(--line)}
.kf2 .dialogfoot .btn{min-height:46px}
.kf2 .dialogerror:empty{display:none}
.kf2 .dialogerror:not(:empty){padding:13px 15px;margin-bottom:16px;border-radius:12px;background:var(--badbg);color:var(--bad);font-size:15px;line-height:1.55}
.kf2 .dialogerror[data-bank-permission-notice]{background:var(--warnbg);color:var(--warn)}
.kf2 .formgrid{gap:16px}
.kf2 .sourcebox,.kf2 .business-line,.kf2 .purchase-line{padding:18px;border-radius:12px;border-color:var(--line);background:var(--bg)}
.kf2 .purchase-line legend{padding:0 7px;font-size:15px;font-weight:650;color:var(--ink)}
.kf2 .purchase-card{padding:18px 0;gap:16px;align-items:flex-start}
.kf2 .purchase-card h3{font-size:17px;margin-bottom:6px}
.kf2 .purchase-card p{margin-top:6px}
.kf2 .purchase-toolbar{gap:10px;margin:18px 0 22px}
.kf2 .purchase-toolbar>.muted{flex-basis:100%;margin-top:4px;font-size:14px}
.kf2 .purchase-evidence,.kf2 .loan-evidence{font-size:15px;line-height:1.65;background:var(--bg);color:var(--ink);border-color:var(--line)}
.kf2 .workflow-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 20px;padding:0}
.kf2 .workflow-steps li{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.kf2 .workflow-steps b{display:grid;place-items:center;width:23px;height:23px;background:var(--soft);color:var(--muted);border-radius:7px;font-size:13px}
.kf2 .workflow-steps [aria-current=step]{border-color:var(--blue);background:var(--selected);color:var(--blue);font-weight:650}
.kf2 .workflow-steps [aria-current=step] b{background:var(--blue);color:var(--panel)}
@keyframes kms-native-pulse{50%{opacity:.4}}
@media(max-width:1100px){.kf2{display:block}.kf2 main{padding:22px}.kf2 .topbar{padding:14px 22px}.kf2 .local-navigation{padding:10px 12px}.kf2 .navitem{padding:9px 10px}}
@media(max-width:760px){.kf2{min-height:460px;border-radius:14px}.kf2 aside.sidebar{display:none}.kf2 .topbar{min-height:68px;padding:14px 16px}.kf2 .company{font-size:16px}.kf2 .topmeta{font-size:14px}.kf2 .context-state{display:none}.kf2 main{padding:20px 16px}.kf2 .mobile-section{display:block;min-height:46px;margin:16px 16px 0;width:calc(100% - 32px);font-size:16px}.kf2 .pagehead h1{font-size:24px}.kf2 .pagehead p{font-size:15px}.kf2 .pagehead .actions{justify-content:flex-start}.kf2 .pagehead{display:block}.kf2 .pagehead .actions:not(:empty){margin-top:14px}.kf2 .kpi{padding:18px}.kf2 .cardhead,.kf2 .cardbody{padding:17px}.kf2 .queueitem{padding:16px 17px}.kf2 table.responsive tr{gap:14px;padding:18px 17px}.kf2 table.responsive td[data-label]:before{font-size:13px;letter-spacing:0;text-transform:none;font-weight:550;margin-bottom:6px}.kf2 .toolbar{align-items:stretch}.kf2 .filters{width:100%;gap:4px}.kf2 .filter{flex:1;min-width:max-content;padding:9px 10px;font-size:14px}.kf2 dialog{width:calc(100vw - 20px);border-radius:16px}.kf2 .dialoghead{padding:20px 18px 16px}.kf2 .dialoghead h2{font-size:22px}.kf2 .dialogbody{padding:18px}.kf2 .dialogfoot{padding:14px 18px}.kf2 .dialogfoot .btn{flex:1 1 auto}.kf2 .purchase-card{display:block}.kf2 .purchase-card .actions{margin-top:14px}.kf2 .purchase-toolbar .btn{flex:1 1 auto}.kf2>.workspace-message{margin:24px auto;padding:32px 20px}.kf2 .workflow-steps{gap:6px}.kf2 .workflow-steps li{font-size:13px;padding:7px 8px;flex:1 1 auto}.kf2 .workflow-steps b{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){.kf2 .workspace-message[data-loading=true] .workspace-message-icon svg{animation:none}}

.kms-host-flagship .kf2 [data-act="theme"]{display:none}
.kf2 .purchase-intro{padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--panel);margin-bottom:18px}
.kf2 .purchase-intro>p{font-size:15px;color:var(--ink);max-width:90ch;line-height:1.6}
.kf2 .purchase-intro .workflow-steps{margin:15px 0 12px}
.kf2 .purchase-intro>small{display:block;font-size:14px;color:var(--muted)}
.kf2 .purchase-status-label{display:flex;align-items:center;gap:9px;flex:0 0 auto;font-size:14px;font-weight:550}
.kf2 .purchase-status-label select{width:auto;min-width:190px;margin:0}
.kf2 .purchase-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.kf2 .source-context{border:1px solid var(--line);border-radius:12px;margin:0 0 20px;background:var(--bg);padding:12px 15px}
.kf2 .source-context>summary{min-height:28px;font-size:15px;font-weight:650;color:var(--ink);cursor:pointer}
.kf2 .source-context dl,.kf2 .dialogbody dl{display:grid;grid-template-columns:minmax(110px,.35fr) minmax(0,1fr);gap:8px 16px;margin:15px 0;font-size:15px}
.kf2 .dialogbody dt{color:var(--muted)}
.kf2 .dialogbody dd{margin:0;overflow-wrap:anywhere;font-weight:500}
@media(max-width:760px){.kf2 .purchase-intro{padding:17px}.kf2 .purchase-filters{display:flex;flex-direction:column;align-items:stretch}.kf2 .purchase-status-label{justify-content:space-between}.kf2 .purchase-status-label select{flex:1;min-width:0}.kf2 .purchase-pagination{align-items:flex-start;flex-direction:column}.kf2 .purchase-pagination .actions{width:100%}.kf2 .purchase-pagination .btn{flex:1}.kf2 .source-context dl,.kf2 .dialogbody dl{grid-template-columns:1fr;gap:3px}.kf2 .dialogbody dd{margin-bottom:10px}}

.kms-access{--ink:#122b43;--muted:#4b6176;--line:#c8d6e3;--brand:#135ba3;--bg:#f4f7fb;--surface:#fff;--notice:#e5f0fc;max-width:1140px;margin:0 auto;padding:clamp(16px,3vw,36px);box-sizing:border-box;background:var(--bg);color:var(--ink);font:16px/1.55 system-ui,-apple-system,sans-serif;overflow-wrap:anywhere}.kms-access *{box-sizing:border-box}.kms-access h1{font-size:clamp(25px,3vw,34px);line-height:1.18;margin:10px 0}.kms-access h2{font-size:21px;line-height:1.3;margin:0 0 14px}.kms-access p{color:var(--muted);margin:10px 0 18px}.kms-access .eyebrow{font-size:12px;font-weight:750;letter-spacing:.09em}.kms-access [role=status]:not(:empty){padding:12px 16px;border:1px solid #9cb8d4;background:var(--notice);border-radius:8px;margin:16px 0}.kms-access form,.kms-access article,.kms-access .access-company{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px;margin:18px 0}.kms-access article>strong,.kms-access article>span,.kms-access article>small,.kms-access .access-company>span{display:block;margin:4px 0}.kms-access small{font-size:14px;color:var(--muted)}.kms-access .access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.kms-access label{display:grid;gap:6px;font-size:15px;font-weight:650}.kms-access input:not([type=checkbox]),.kms-access select,.kms-access textarea{min-width:0;width:100%;padding:11px;border:1px solid #91a6bb;border-radius:6px;font:inherit;background:var(--surface);color:var(--ink)}.kms-access textarea{min-height:100px;font:14px/1.6 ui-monospace,monospace;resize:vertical}.kms-access button{padding:11px 18px;min-height:44px;border:1px solid var(--brand);border-radius:7px;background:var(--brand);color:#fff;font:650 15px/1.4 system-ui;cursor:pointer;margin:8px 8px 0 0;max-width:100%}.kms-access button.secondary{color:var(--ink);background:var(--surface);border-color:#91a6bb}.kms-access :focus-visible{outline:3px solid #af5e00;outline-offset:3px}.kms-access button:disabled{opacity:.65;cursor:default}.kms-access fieldset{border:1px solid var(--line);border-radius:8px;padding:16px;margin:20px 0}.kms-access legend{font-weight:700;padding:0 6px}.kms-access .cap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kms-access .cap-grid label,.kms-access .consent{display:flex;align-items:flex-start;gap:10px;font-weight:500}.kms-access input[type=checkbox]{width:19px;height:19px;margin:3px 0 0;flex-shrink:0}.kms-access .access-grants{padding-left:22px;font-size:15px}.kms-access .access-note{font-size:14px}.kms-access [data-result]:not(:empty){border:2px solid var(--brand);padding:20px;border-radius:8px;margin:18px 0}@media(max-width:600px){.kms-access .access-grid,.kms-access .cap-grid{grid-template-columns:1fr}.kms-access form,.kms-access article{padding:16px}.kms-access .access-grid{gap:0}.kms-access h1{max-width:100%}}

.kms-access[data-theme=dark]{--ink:#edf4fc;--muted:#bdcee1;--line:#647e97;--brand:#1c61a5;--bg:#102132;--surface:#182c40;--notice:#1b3958;color-scheme:dark}

.kms-finance-runtime {min-width:0;max-width:100%;}
.kms-runtime-navigation {display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid #b8c9dd;background:#eef4fb;color:#172e49;font:600 15px/1.4 system-ui,sans-serif;}
.kms-runtime-navigation:empty {display:none;}
.kms-runtime-navigation button,.kms-runtime-notice button {font:inherit;border:1px solid #627c9a;border-radius:7px;background:#fff;color:#172e49;padding:10px 16px;min-height:44px;cursor:pointer;}
.kms-runtime-navigation button:focus-visible,.kms-runtime-notice button:focus-visible {outline:3px solid #155dc2;outline-offset:2px;}
.kms-runtime-notice {padding:32px;max-width:720px;box-sizing:border-box;font:16px/1.6 system-ui,sans-serif;color:#172e49;background:#fff;}
.kms-runtime-notice h2 {font-size:24px;line-height:1.3;}
@media(max-width:500px){.kms-runtime-navigation{padding:8px;gap:8px;}.kms-runtime-notice{padding:20px;}}
/* Embedded status surfaces inherit the host's confirmed theme tokens. */
.kms-runtime-notice{margin:24px auto;padding:30px;max-width:760px;border:1px solid var(--kms-host-line,#dce5ee);border-radius:16px;background:var(--kms-host-panel,#fff);color:var(--kms-host-text,#172b40);font:16px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.kms-runtime-notice h2{font-size:24px;line-height:1.3;margin:0 0 10px;letter-spacing:-.025em}
.kms-runtime-notice p{font-size:16px;line-height:1.65;color:var(--kms-host-muted,#526980);margin:0 0 18px}
.kms-runtime-notice button{min-height:46px;border:1px solid var(--kms-host-line,#dce5ee);border-radius:10px;background:var(--kms-host-panel,#fff);color:var(--kms-host-accent,#1764b2);padding:10px 16px}
.kms-runtime-navigation{border-color:var(--kms-host-line,#dce5ee);background:var(--kms-host-panel,#fff);color:var(--kms-host-text,#172b40);font-size:15px}
.kms-runtime-navigation button{border-color:var(--kms-host-line,#dce5ee);color:var(--kms-host-text,#172b40);background:var(--kms-host-panel,#fff);border-radius:10px}
@media(max-width:500px){.kms-runtime-notice{padding:24px 20px;margin:16px auto}.kms-runtime-notice button{width:100%}}

/* Safari single-select sizing; scope, colors, disabled/focus and visibility stay owned by this component. */
.kf2 select:not([multiple]):not([size]){appearance:none;-webkit-appearance:none;box-sizing:border-box;height:46px;min-height:46px;line-height:1.4;padding-top:10px;padding-bottom:10px;padding-right:42px;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 19px) 50%,calc(100% - 14px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}

.kf2 .cash-toolbar{margin-bottom:16px}
.kf2 .cash-allocation{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,220px);align-items:center;gap:16px;margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:12px}
.kf2 .cash-allocation small{display:block}
.kf2 .cash-allocation input{min-width:0;max-width:100%}
@media(max-width:600px){.kf2 .cash-allocation{grid-template-columns:1fr}}

/* Fit payment dialog actions to their actual wrapped height on narrow screens. */
@media (max-width: 760px) {
  .kf2 dialog[open]:has([data-cash-editor]) {
    display: flex;
    flex-direction: column;
  }
  .kf2 dialog[open]:has([data-cash-editor]) > :is(.dialoghead, .dialogfoot) {
    flex: none;
  }
  .kf2 dialog[open]:has([data-cash-editor]) > .dialogbody {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }
}
