/* NI Office 3.0.38: unified desktop CRM workspace, based on approved illustration. */
.tke-v338-dashboard{max-width:1680px!important;width:100%;min-width:0;margin:auto;color:#1b1530}
.tke-v338-title{padding:20px 26px;background:#150d30;color:#fff!important;border-radius:15px 15px 0 0;margin:0 0 13px}
.tke-v338-title h1{color:#fff!important;font-size:26px!important;margin:0 0 3px!important}.tke-v338-title p{color:#ddd1f1!important;margin:0!important;font-size:13px}
.tke-v338-dashboard .tke-v330-kpis{margin:12px 0 15px!important}
.tke-v338-workspace{display:grid!important;grid-template-columns:minmax(370px,.88fr) minmax(0,1.24fr);gap:15px;align-items:start}
.tke-v338-left,.tke-v338-right{min-width:0}
.tke-v338-case-panel,.tke-v338-doc-panel,.tke-v338-preview{background:#fff;border:1px solid #dfe0ef;border-radius:13px;overflow:hidden;box-shadow:0 5px 18px #18112b09;margin-bottom:14px}
.tke-v338-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#160e31;color:#fff;padding:15px 17px;min-height:52px;box-sizing:border-box}
.tke-v338-panel-head h2{font-size:17px!important;color:#fff!important;margin:0!important;font-weight:800}
.tke-v338-panel-head p{color:#e4d9f4!important;margin:5px 0 0;font-size:12px}
.tke-v338-count{background:#eee0ff;color:#5415a3;border-radius:40px;padding:5px 12px;font-weight:700;font-size:12px}
.tke-v338-search{padding:13px 14px 6px}
.tke-v338-search input{width:100%;background:white;border:1px solid #d3cfdf;border-radius:8px;padding:11px 12px;color:#16132c;font-size:13px;box-sizing:border-box}
.tke-v338-filters{display:flex;flex-wrap:wrap;gap:5px;padding:4px 13px 12px}
.tke-v338-filters a{font-size:11px;padding:6px 9px;border-radius:20px;background:#f2eefb;color:#4d3e6d;text-decoration:none;font-weight:700}
.tke-v338-filters a.is-active{background:#7926da;color:white}
.tke-v338-table-wrap{overflow-x:auto;max-height:620px;overflow-y:auto}
.tke-v338-cases{border-collapse:collapse;width:100%;font-size:12px;min-width:390px}
.tke-v338-cases th{background:#f8f7fb;color:#54506b;text-align:left;font-size:11px;padding:10px 8px;white-space:nowrap}
.tke-v338-cases td{padding:11px 8px;border-top:1px solid #ecebf3;vertical-align:middle;color:#2b2345;overflow-wrap:anywhere}
.tke-v338-cases td:first-child strong{display:block}
.tke-v338-cases td:first-child small{color:#716d7d;display:block;margin-top:3px}
.tke-v338-cases tr.is-selected{background:#f1e7fd}
.tke-v338-cases tr[hidden]{display:none!important}
.tke-v338-cases td:last-child a{color:#5f13bf;font-weight:800;text-decoration:underline;white-space:nowrap}
.tke-v338-case-pill{background:#efe8fb;color:#5721a2;border-radius:20px;padding:5px 7px;font-size:10px;font-weight:700;white-space:normal}
.tke-v338-doc-panel{padding-bottom:17px}
.tke-v338-doc-panel p{font-size:13px;color:#514b68;padding:0 17px;margin:14px 0}
.tke-v338-doc-panel button{margin:0 17px}
.tke-v338-preview-help{padding:12px 16px;background:#f2edfe;color:#443264;font-size:12px;line-height:1.5}
.tke-v338-preview-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:15px}
.tke-v338-preview-facts>div{border:1px solid #e5e1ef;background:#fcfbfe;border-radius:8px;padding:10px 11px;min-width:0}
.tke-v338-preview-facts small{display:block;font-size:11px;font-weight:750;color:#6b5f7c;margin-bottom:5px}
.tke-v338-preview-facts strong{display:block;font-size:13px;color:#211535;overflow-wrap:anywhere}
.tke-v338-preview-actions{display:flex;gap:9px;flex-wrap:wrap;padding:0 15px 17px}
.tke-v338-preview-actions .tke-btn{min-height:37px;display:inline-flex;align-items:center}
.tke-v338-status{background:#efe7ff;color:#52219d;padding:7px 10px;border-radius:20px;font-size:11px;font-weight:750}
.tke-v338-right .tke-v330-detail{width:100%;max-width:none;margin:0;min-width:0}
.tke-v338-right .tke-v330-detail>.tke-page-title{background:#160d30;padding:13px 17px;border-radius:13px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.tke-v338-right .tke-v330-detail>.tke-page-title h1{font-size:19px!important;color:#fff!important;margin:0!important}
.tke-v338-right .tke-v330-detail>.tke-page-title p,.tke-v338-right .tke-v330-detail>.tke-page-title .tke-eyebrow{color:#e8dff8!important;font-size:12px!important}
.tke-v338-right .tke-v337-contract-layout{display:block!important;margin-top:0}
.tke-v338-right .tke-v337-contract-sidebar{display:none!important}
.tke-v338-right .tke-v337-contract-main{width:100%;min-width:0}
.tke-v338-right .tke-v337-contract-actions{margin-top:0}
.tke-v338-right .tke-v337-contract-main .tke-card-head{background:#160e31!important}
.tke-v338-right .tke-v330-detail-bottom{display:block}
.tke-v338-right .tke-v330-detail-bottom .tke-card{margin-bottom:12px}
.tke-v338-empty{padding:30px;border:1px solid #e4deef;border-radius:11px;background:white;color:#5c5572}
/* All dialogs must remain usable even when global theme CSS is loaded after plugin CSS. */
dialog.tke-v337-dialog{position:fixed!important;inset:0!important;margin:auto!important;border:0!important;z-index:2147483646!important;max-height:88vh!important;overflow:auto!important}
dialog.tke-v337-dialog:not([open]){display:none!important}
dialog.tke-v337-dialog::backdrop{background:rgba(12,8,30,.70)!important}
@media(max-width:1180px){.tke-v338-workspace{grid-template-columns:1fr!important}.tke-v338-table-wrap{max-height:310px}}
@media(max-width:690px){.tke-v338-title{padding:16px}.tke-v338-dashboard .tke-v330-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tke-v338-dashboard .tke-v330-kpi{min-width:0;padding:10px}.tke-v338-workspace{display:block!important}.tke-v338-preview-facts{grid-template-columns:1fr}.tke-v338-right .tke-v330-fields{grid-template-columns:1fr!important}.tke-v338-preview-actions .tke-btn{flex:1 1 auto}.tke-v338-cases{font-size:11px}}
