.kv-wrap{max-width:1150px;margin:22px auto;padding:24px;border-radius:14px;background:var(--surface,#fff);color:var(--text,#183252);border:1px solid var(--border,#d8e2ec)}.kv-head,.kv-toolbar,.kv-actions,.kv-tabs{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.kv-tabs{justify-content:flex-start;margin:15px 0}.kv-head h1{font-size:22px;margin:0}.kv-toolbar h2{font-size:22px;margin:12px 0}.kv-btn{background:var(--surface,#fff);color:var(--text,#17365b);border:1px solid var(--border,#cbd9e8);padding:9px 12px;border-radius:8px;cursor:pointer;font:inherit}.kv-btn.selected,.kv-btn:hover{background:var(--primary,#17365b);color:#fff}.kv-btn:disabled{opacity:.35;cursor:not-allowed}.kv-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(200px,1.25fr) 34px 34px 34px 86px;align-items:center;gap:7px;border-top:1px solid var(--border,#e4ebf2);padding:8px 0}.kv-row input:not([type=checkbox]),.kv-form input,.kv-form select{min-width:0;width:100%;padding:9px;border:1px solid #cbd9e8;border-radius:7px;background:#fff;color:#172e4b}.kv-row .kv-btn{padding:7px 4px}.kv-row label{white-space:nowrap;font-size:13px}.kv-panel{margin-top:16px;padding:16px;border:1px solid var(--border,#d8e2ec);border-radius:10px}.kv-choice{margin:5px}.kv-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.kv-form label{display:flex;flex-direction:column;gap:6px}.kv-form .kv-actions,.kv-form p{grid-column:1/-1}.kv-actions{justify-content:flex-end;margin-top:18px}.kv-msg{font-size:12px;opacity:.8}.kv-custom{--wl-accent:var(--primary,#17365b)}@media(max-width:780px){.kv-wrap{padding:14px;margin:8px}.kv-row{grid-template-columns:minmax(0,1fr) 36px 36px 36px 82px}.kv-row strong{grid-column:1/-1}.kv-row input:not([type=checkbox]){grid-column:1}.kv-form{grid-template-columns:1fr}}

/* KPI V2: direct accessible create modal, responsive and theme-aware */
body.kv-modal-open{overflow:hidden}.kv-modal-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(8,24,42,.57);display:flex;align-items:center;justify-content:center;padding:18px;overflow-y:auto}.kv-modal-dialog{background:var(--surface,#fff);color:var(--text,#183252);width:min(760px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;box-shadow:0 20px 65px rgba(0,0,0,.24);margin:0}.kv-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.kv-modal-head h3{margin:0;font-size:20px}.kv-modal-head button{font-size:22px;min-width:40px}.kv-modal-dialog .kv-form{grid-template-columns:repeat(2,minmax(0,1fr))}.kv-modal-dialog .kv-form .kv-actions{justify-content:flex-end}.kv-modal-dialog .kv-form input:focus,.kv-modal-dialog .kv-form select:focus{outline:2px solid var(--primary,#17365b);outline-offset:1px}@media(max-width:600px){.kv-modal-overlay{padding:8px;align-items:flex-start}.kv-modal-dialog{width:100%;max-height:calc(100dvh - 16px);padding:14px}.kv-modal-dialog .kv-form{grid-template-columns:1fr}.kv-modal-dialog .kv-form .kv-actions{justify-content:flex-start}}
