/* Compact record registries and right-side details — KOVLEON. */
.kv-registry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:16px}
.kv-registry-head h2{margin:0 0 5px;font-size:24px;color:#101828;line-height:1.2}
.kv-registry-head p{margin:0;color:#667085;font-size:12px;line-height:1.55}
.kv-registry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.kv-registry-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 12px}
.kv-registry-search{display:flex;gap:8px;align-items:center;flex:1 1 285px;max-width:580px;min-width:0;border:1px solid #d0d5dd;background:#fff;border-radius:9px;padding:0 11px;color:#667085}
.kv-registry-search:focus-within{border-color:#84adff;box-shadow:0 0 0 3px #d1e9ff}
.kv-registry-search input{height:42px;min-width:0;width:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;font-size:13px;color:#101828;margin:0!important;padding:0!important}
.kv-registry-filter{height:42px;border:1px solid #d0d5dd;border-radius:9px;padding:0 11px;background:#fff;font-size:13px;color:#344054;min-width:150px;max-width:100%}
.kv-registry-count{font-size:12px;color:#667085;margin:0 0 9px}
.kv-registry-table-shell{border:1px solid #e4e7ec;border-radius:12px;overflow:auto;background:#fff}
.kv-registry-table-shell table{width:100%;margin:0;border-collapse:separate;border-spacing:0;min-width:730px;display:table!important;overflow:visible!important;white-space:normal!important}
.kv-registry-table-shell thead{display:table-header-group}
.kv-registry-table-shell tbody{display:table-row-group}
.kv-registry-table-shell tr{display:table-row}
.kv-registry-table-shell th,.kv-registry-table-shell td{display:table-cell;vertical-align:middle;text-align:left;padding:12px 13px;border-bottom:1px solid #edf0f4;font-size:12px;line-height:1.4;background:#fff}
.kv-registry-table-shell th{background:#f7f9fc;color:#667085;font-size:11px;font-weight:700;white-space:nowrap;position:sticky;top:0;z-index:1}
.kv-registry-table-shell tbody tr:last-child td{border-bottom:0}
.kv-registry-table-shell tbody tr.kv-record-row{cursor:pointer;transition:background .12s}
.kv-registry-table-shell tbody tr.kv-record-row:hover td,.kv-registry-table-shell tbody tr.kv-record-row:focus-visible td{background:#f0f6ff}
.kv-registry-table-shell tbody tr.kv-record-row:focus-visible{outline:2px solid #175cd3;outline-offset:-2px}
.kv-registry-name{display:block;font-size:13px;font-weight:750;color:#142740;white-space:normal;overflow-wrap:anywhere}
.kv-registry-sub{display:block;color:#98a2b3;font-size:11px;margin-top:4px;overflow-wrap:anywhere}
.kv-registry-muted{color:#667085}
.kv-registry-table-shell .kv-col-select{width:46px;min-width:46px;padding-left:13px;padding-right:4px}
.kv-registry-table-shell input[type=checkbox]{width:17px;height:17px;min-height:0;cursor:pointer}
.kv-registry-table-shell .kv-col-arrow{width:32px;text-align:right;color:#98a2b3;font-size:20px}
.kv-registry-table-shell .kv-col-amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.kv-registry-table-shell .kv-col-org[hidden]{display:none!important}
.kv-registry-empty{padding:22px;color:#667085;text-align:center;font-size:13px}
.kv-detail-overlay{position:fixed!important;inset:0!important;display:none;z-index:10020!important;padding:0!important;margin:0!important;background:rgba(16,24,40,.52)!important;align-items:stretch!important;justify-content:flex-end!important;overflow:hidden!important}
.kv-detail-overlay.show{display:flex!important}
.kv-detail-panel{width:min(600px,100%)!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:18px 0 0 18px!important;padding:0!important;display:flex!important;flex-direction:column!important;background:#fff;box-shadow:-20px 0 60px rgba(16,24,40,.18);overflow:hidden!important;animation:kvDrawerIn .2s ease-out}
@keyframes kvDrawerIn{from{transform:translateX(28px);opacity:.8}to{transform:translateX(0);opacity:1}}
.kv-detail-top{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:24px 26px 16px;border-bottom:1px solid #e4e7ec;flex-shrink:0}
.kv-detail-top .kv-detail-eyebrow{font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#175cd3}
.kv-detail-top h2{font-size:22px;line-height:1.23;margin:4px 0 5px;overflow-wrap:anywhere}
.kv-detail-top p{font-size:12px;color:#667085;line-height:1.45;margin:0}
.kv-detail-close{width:38px;height:38px;border:1px solid #e4e7ec;border-radius:9px;background:#f8fafc;color:#344054;font-size:24px;line-height:1;cursor:pointer;flex-shrink:0}
.kv-detail-close:hover,.kv-detail-close:focus-visible{background:#eaf2ff;border-color:#84adff}
.kv-detail-scroll{padding:22px 26px 38px;overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}
.kv-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.kv-detail-actions .btn{min-height:38px}
.kv-detail-section{border:1px solid #e4e7ec;border-radius:12px;background:#fff;padding:15px 16px;margin-bottom:13px}
.kv-detail-section h3{font-size:13px;font-weight:750;color:#101828;margin:0 0 12px}
.kv-detail-field{display:grid;grid-template-columns:minmax(110px,36%) minmax(0,1fr);gap:10px;align-items:start;padding:10px 0;border-bottom:1px solid #f0f2f5}
.kv-detail-field:last-child{border-bottom:0}
.kv-detail-field .kv-detail-label{font-size:11px;color:#667085}
.kv-detail-field .kv-detail-value{font-size:13px;color:#344054;overflow-wrap:anywhere;min-width:0;line-height:1.5}
.kv-detail-field .kv-fast-edit{max-width:100%;white-space:normal;text-align:left}
.kv-detail-field .kv-fast-box{display:grid;min-width:0}
.kv-detail-field .kv-fast-box input,.kv-detail-field .kv-fast-box select,.kv-detail-field .kv-fast-box textarea{max-width:100%}
.kv-detail-notes{white-space:pre-wrap}
.kv-detail-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:750}
.kv-detail-status.working{background:#ecfdf3;color:#027a48}
.kv-detail-status.dismissed{background:#fff3e9;color:#b54708}
.kv-detail-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:15px}
.kv-detail-kpis>div{background:#f8fafc;border:1px solid #e4e7ec;border-radius:10px;padding:12px;min-width:0}
.kv-detail-kpis label{display:block;font-size:10px;color:#667085}
.kv-detail-kpis b{font-size:14px;color:#101828;margin-top:5px;display:block;overflow-wrap:anywhere}
.kv-detail-kpis .negative{color:#b42318}
.kv-detail-panel .object-workspace-grid{display:grid;grid-template-columns:1fr!important;gap:13px}
.kv-detail-panel .object-workspace-grid>section{min-width:0}
.kv-detail-panel .object-workspace-actions{display:flex!important;flex-wrap:wrap;gap:7px}
.kv-detail-panel .object-workspace-actions .btn{width:auto!important;flex:1 1 170px}
.kv-detail-panel .object-workspace-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.kv-detail-panel .object-workspace-health{margin:0!important;flex-shrink:0}
.kv-detail-panel .object-workspace-meta{overflow-wrap:anywhere}
.kv-detail-panel .object-workspace-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.kv-detail-panel .object-workspace-kpis>div{grid-column:auto!important}
@media(max-width:767px){
 .kv-registry-head h2{font-size:22px}
 .kv-registry-actions{width:100%}
 .kv-registry-actions>.btn,.kv-registry-actions>label{flex:1 1 auto;justify-content:center}
 .kv-registry-controls{align-items:stretch}
 .kv-registry-search{flex:1 1 100%;max-width:none}
 .kv-registry-filter{flex:1 1 145px}
 .kv-registry-table-shell{overflow:visible;border:0;background:transparent}
 .kv-registry-table-shell table{display:block!important;min-width:0!important}
 .kv-registry-table-shell thead{display:none!important}
 .kv-registry-table-shell tbody{display:grid!important;gap:9px}
 .kv-registry-table-shell tbody tr.kv-record-row{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;border:1px solid #e4e7ec;border-radius:12px;overflow:hidden;padding:9px 12px;background:#fff}
 .kv-registry-table-shell tbody tr.kv-record-row td{display:block!important;border:0!important;padding:3px 5px!important;min-width:0;background:transparent!important}
 .kv-registry-table-shell tbody tr.kv-record-row td.kv-col-select{grid-column:1;grid-row:1/3;width:auto!important;align-self:center}
 .kv-registry-table-shell tbody tr.kv-record-row td.kv-col-primary{grid-column:2;grid-row:1}
 .kv-registry-table-shell tbody tr.kv-record-row td.kv-col-status{grid-column:3;grid-row:1;text-align:right}
 .kv-registry-table-shell tbody tr.kv-record-row td.kv-col-meta{grid-column:2/4;grid-row:2;color:#667085}
 .kv-registry-table-shell tbody tr.kv-record-row td.kv-col-secondary{grid-column:2/4;grid-row:3;font-size:11px;color:#667085}
 .kv-registry-table-shell tbody tr.kv-record-row td.kv-col-amount{grid-column:2/4;grid-row:4;text-align:left}
 .kv-registry-table-shell tbody tr.kv-record-row td.kv-col-org,.kv-registry-table-shell tbody tr.kv-record-row td.kv-col-arrow{display:none!important}
 .kv-registry-table-shell tbody tr.kv-object-record{grid-template-columns:minmax(0,1fr) auto}
 .kv-registry-table-shell tbody tr.kv-object-record td.kv-col-primary{grid-column:1/3}
 .kv-registry-table-shell tbody tr.kv-object-record td.kv-col-meta{grid-column:1/3}
 .kv-registry-table-shell tbody tr.kv-object-record td.kv-col-secondary{grid-column:1/3}
 .kv-registry-table-shell tbody tr.kv-object-record td.kv-col-amount{grid-column:1/3}
 .kv-registry-table-shell tbody tr.kv-object-record td.kv-col-status{grid-column:2}
 .kv-detail-panel{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
 .kv-detail-top{padding:17px 16px 13px}
 .kv-detail-top h2{font-size:20px}
 .kv-detail-scroll{padding:16px 15px 32px}
 .kv-detail-field{grid-template-columns:minmax(90px,34%) minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.kv-detail-panel{animation:none!important}}

/* Supersede older legacy card-table rules, which previously formatted every field vertically. */
.kv-registry-table-shell #employeesTable,.kv-registry-table-shell #objectsTable{display:table!important;width:100%!important;min-width:730px!important;border:0!important;border-collapse:separate!important;white-space:normal!important}
.kv-registry-table-shell #employeesTable thead,.kv-registry-table-shell #objectsTable thead{display:table-header-group!important}
.kv-registry-table-shell #employeesTable tbody,.kv-registry-table-shell #objectsTable tbody{display:table-row-group!important}
.kv-registry-table-shell #employeesTable tr,.kv-registry-table-shell #objectsTable tr{display:table-row!important;border:0!important;border-radius:0!important;padding:0!important}
.kv-registry-table-shell #employeesTable td,.kv-registry-table-shell #objectsTable td{display:table-cell!important;width:auto!important;gap:0!important;justify-content:initial!important;text-align:left!important;vertical-align:middle!important;border:0!important;border-bottom:1px solid #edf0f4!important;padding:12px 13px!important;white-space:normal!important}
.kv-registry-table-shell #employeesTable th,.kv-registry-table-shell #objectsTable th{display:table-cell!important;padding:12px 13px!important}
.kv-registry-table-shell #employeesTable td:before,.kv-registry-table-shell #objectsTable td:before{content:none!important;display:none!important}
.kv-registry-table-shell #employeesTable td.kv-col-org[hidden],.kv-registry-table-shell #objectsTable td.kv-col-org[hidden]{display:none!important}
.kv-registry-table-shell #employeesTable tr:last-child td,.kv-registry-table-shell #objectsTable tr:last-child td{border-bottom:0!important}
.kv-registry-table-shell #employeesTable .kv-col-arrow,.kv-registry-table-shell #objectsTable .kv-col-arrow{text-align:right!important}
.kv-registry-table-shell #objectsTable .kv-col-amount{text-align:right!important}
@media(max-width:767px){
 .kv-registry-table-shell #employeesTable,.kv-registry-table-shell #objectsTable{display:block!important;min-width:0!important}
 .kv-registry-table-shell #employeesTable thead,.kv-registry-table-shell #objectsTable thead{display:none!important}
 .kv-registry-table-shell #employeesTable tbody,.kv-registry-table-shell #objectsTable tbody{display:grid!important;gap:9px!important}
 .kv-registry-table-shell #employeesTable tr.kv-record-row,.kv-registry-table-shell #objectsTable tr.kv-record-row{display:grid!important;border:1px solid #e4e7ec!important;border-radius:12px!important;padding:9px 12px!important}
 .kv-registry-table-shell #employeesTable tr.kv-record-row td,.kv-registry-table-shell #objectsTable tr.kv-record-row td{display:block!important;width:auto!important;border:0!important;padding:3px 5px!important;text-align:left!important}
 .kv-registry-table-shell #employeesTable tr.kv-record-row td.kv-col-status{text-align:right!important}
 .kv-registry-table-shell #employeesTable tr.kv-record-row td.kv-col-org,.kv-registry-table-shell #objectsTable tr.kv-record-row td.kv-col-org,.kv-registry-table-shell #employeesTable tr.kv-record-row td.kv-col-arrow,.kv-registry-table-shell #objectsTable tr.kv-record-row td.kv-col-arrow{display:none!important}
 .kv-registry-table-shell #objectsTable tr.kv-record-row td.kv-col-amount{text-align:left!important}
}
