/* v3.0.40 – compact readable Contract CRM. */
.tke-v340-dashboard{max-width:1710px!important}
.tke-v340-dashboard .tke-v338-title{padding:12px 19px!important;margin-bottom:8px!important}
.tke-v340-dashboard .tke-v338-title h1{font-size:22px!important}
.tke-v340-dashboard .tke-v330-kpis{margin:8px 0 11px!important;gap:10px!important}
.tke-v340-dashboard .tke-v330-kpi{min-height:66px!important;padding:9px 12px!important}
.tke-v340-dashboard .tke-v330-kpi strong{font-size:23px!important}
.tke-v340-dashboard .tke-v338-workspace{grid-template-columns:minmax(370px,.93fr) minmax(0,1.25fr)!important;gap:12px!important}
.tke-v340-dashboard .tke-v338-table-wrap{max-height:415px}
.tke-v340-dashboard .tke-v338-doc-panel p{margin:9px 0 12px!important}
.tke-v340-dashboard .tke-v338-doc-panel{margin-bottom:8px!important}
.tke-v340-dashboard .tke-v338-right .tke-page-title{margin-bottom:7px!important;padding:10px 15px!important}
.tke-v340-dashboard .tke-v338-right .tke-page-title h1{font-size:18px!important}
.tke-v340-dashboard .tke-v338-right .tke-page-title a{display:none!important}
.tke-v340-dashboard .tke-v338-right .tke-v337-contract-actions{margin:0 0 8px!important;padding:7px 9px!important;gap:6px!important}
.tke-v340-dashboard .tke-v338-right .tke-v337-contract-actions .tke-btn{padding:7px 10px!important;min-height:33px!important;font-size:11px!important}
.tke-v340-essentials{border:1px solid #e0dbea;border-radius:11px;background:white;overflow:hidden;margin-bottom:8px}
.tke-v340-essentials-head{display:flex;gap:10px;align-items:center;justify-content:space-between;background:#160d31!important;color:white!important;padding:10px 14px}
.tke-v340-essentials-head strong,.tke-v340-essentials-head small{color:white!important;-webkit-text-fill-color:white!important}
.tke-v340-essentials-head strong{font-size:14px}.tke-v340-essentials-head small{font-size:10px;opacity:.8}
.tke-v340-essential-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px}
.tke-v340-essential-grid>div{background:#faf9ff;border:1px solid #e6e0f1;border-radius:8px;padding:9px 10px;min-width:0}
.tke-v340-essential-grid>div.is-key{background:#f1e8fc;border-color:#cbb5ea}
.tke-v340-essential-grid small{display:block;font-weight:700;font-size:10px;color:#675976;margin:0 0 4px}
.tke-v340-essential-grid strong{font-size:12px;color:#201331;font-weight:800;overflow-wrap:anywhere;line-height:1.28}
.tke-v340-essential-grid .is-key strong{font-size:17px}
.tke-v340-more{background:white;border:1px solid #e2ddec;border-radius:9px;margin-bottom:9px;overflow:hidden}
.tke-v340-more>summary{cursor:pointer;list-style:none;padding:10px 13px;color:#5e25a3;font-size:12px;font-weight:800;display:flex;justify-content:space-between;align-items:center}
.tke-v340-more>summary::-webkit-details-marker{display:none}
.tke-v340-more[open]>summary{border-bottom:1px solid #e6dfef}
.tke-v340-more-body{padding:9px 11px}
.tke-v340-more-body>.tke-v337-topfacts{margin:0 0 8px!important}
.tke-v340-more-body>.tke-card{margin:0!important}
.tke-v340-dashboard .tke-v338-right .tke-v330-form{padding:11px!important}
.tke-v340-dashboard .tke-v330-form>.tke-card-head{margin:-11px -11px 9px!important;padding:10px 14px!important}
.tke-v340-dashboard .tke-v330-form .tke-v330-fields{padding:0!important;gap:7px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.tke-v340-dashboard .tke-v330-form .tke-v330-fields>label,.tke-v340-dashboard .tke-v330-form .tke-v330-fields>div{padding:7px 8px!important;gap:4px!important}
.tke-v340-dashboard .tke-v330-form .tke-v330-fields input,.tke-v340-dashboard .tke-v330-form .tke-v330-fields select{min-height:34px;padding:7px 8px!important;font-size:12px!important;width:100%;box-sizing:border-box}
.tke-v340-dashboard .tke-v330-form .tke-v330-fields span,.tke-v340-dashboard .tke-v330-form .tke-v330-fields small{font-size:10px!important}
.tke-v340-dashboard .tke-v330-outcome{padding:7px 2px!important;margin:0!important}
.tke-v340-dashboard .tke-v330-outcome>div{gap:8px!important;margin-top:6px!important}
.tke-v340-dashboard .tke-v330-outcome label{font-size:11px}
.tke-v340-dashboard .tke-v330-memo{margin-top:5px!important}
.tke-v340-dashboard .tke-v330-memo textarea{margin-top:4px!important;min-height:64px;max-height:125px;resize:vertical}
.tke-v340-dashboard .tke-v330-buttons{gap:7px!important;margin:9px 0 2px!important}
.tke-v340-dashboard .tke-v330-buttons .tke-btn{padding:8px 11px!important;font-size:11px}
.tke-v340-dashboard .tke-v330-detail-bottom{margin:8px 0!important;gap:8px!important}
.tke-v340-dashboard .tke-v330-detail-bottom>.tke-card{padding:11px!important}
/* Dialog headers rendered outside .tke-v340-dashboard: use global scoped class. */
dialog.tke-v337-dialog .tke-v337-dialog-head,dialog.tke-v337-dialog .tke-v337-dialog-head *{color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important}
dialog.tke-v337-dialog .tke-v337-dialog-head h2,dialog.tke-v337-dialog .tke-v337-dialog-head h3{color:#fff!important}
dialog.tke-v337-dialog .tke-v337-dialog-head small{color:#efe3fc!important;-webkit-text-fill-color:#efe3fc!important}
dialog.tke-v337-dialog .tke-v337-dialog-close{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#30244e!important;border:1px solid #77638f!important}
@media(max-width:1340px){.tke-v340-dashboard .tke-v338-workspace{grid-template-columns:minmax(330px,.84fr) minmax(0,1.16fr)!important}.tke-v340-dashboard .tke-v330-form .tke-v330-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:1120px){.tke-v340-dashboard .tke-v338-workspace{grid-template-columns:1fr!important}.tke-v340-essential-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.tke-v340-essential-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tke-v340-dashboard .tke-v330-form .tke-v330-fields{grid-template-columns:1fr!important}}
@media(max-width:420px){.tke-v340-essential-grid{grid-template-columns:1fr}.tke-v340-essentials-head small{display:none}}
