/* Approved consultation workbench: preserved history + append-only composer. */
.floating-window.db-detail-drawer .window-body{overflow:hidden!important}
.floating-window.db-detail-drawer .db-consult-layout{height:100%;min-height:0;display:flex;flex-direction:column;position:relative;color:#303a48;font-size:12px}
.db-consult-layout [hidden]{display:none!important}
.db-consult-pager{position:absolute;right:15px;top:13px;display:flex;align-items:center;gap:7px;color:#87909e;font-size:11px}
.db-consult-pager button{border:0;background:transparent;padding:2px 5px;font-size:18px;line-height:20px;color:#68778c}
.db-consult-pager button:disabled{opacity:.3;cursor:default}
.db-consult-identity{display:flex;align-items:center;gap:14px;min-height:81px;padding:12px 16px 10px;border-bottom:1px solid #edf0f4}
.db-consult-identity>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.db-consult-identity h3{margin:0;font-size:20px;font-weight:650;line-height:1.25;color:#283447}
.db-consult-identity>div>a{font-size:16px;letter-spacing:.15px;color:#4c617d;text-decoration:none}
.db-consult-identity a:hover{text-decoration:underline}
.db-consult-call{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:5px 13px;border:1px solid #547ba9;border-radius:5px;background:#5b7fae;color:white!important;font-size:12px;text-decoration:none!important}
.db-consult-info-link{align-self:flex-end;margin-left:auto;white-space:nowrap;border:0;background:transparent;color:#778598;font-size:11px;padding:5px 0}
.db-consult-controls{display:grid;grid-template-columns:minmax(110px,1fr) minmax(95px,1fr) minmax(182px,1.5fr);gap:10px;padding:10px 16px 12px;background:#fafbfc;border-bottom:1px solid #edf0f4}
.db-consult-controls label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#788294;min-width:0}
.floating-window.db-detail-drawer .db-consult-controls select,.floating-window.db-detail-drawer .db-consult-controls input{width:100%;min-width:0;max-width:none;height:29px;min-height:29px;padding:3px 7px;font-family:inherit;font-size:12px;color:#485367;background:#fff;border:1px solid #dfe5ed;border-radius:4px;box-sizing:border-box}
.floating-window.db-detail-drawer .db-consult-controls select[data-db-status]{color:#6b5c83;background:#f8f6fb;border-color:#e4dfed}
.db-consult-context{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;padding:10px 16px;color:#737e8f;border-bottom:1px solid #edf0f4;line-height:1.4}
.db-consult-context strong{font-size:12px;font-weight:600;color:#4c596b;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.db-consult-context>span{font-size:11px}
.db-consult-context small{flex-basis:100%;font-size:10px;color:#8b95a4}
.floating-window.db-detail-drawer .db-consult-layout>.db-detail-tabs{position:static;flex-shrink:0;padding:0 16px;gap:25px;border-bottom:1px solid #e6ebf1;min-height:35px}
.floating-window.db-detail-drawer .db-consult-layout>.db-detail-tabs button{font-size:12px;min-height:35px;padding:7px 0;background:transparent;border:0;border-bottom:2px solid transparent;color:#8993a2;border-radius:0}
.floating-window.db-detail-drawer .db-consult-layout>.db-detail-tabs button.active{color:#4e719e;border-bottom-color:#6386b6;font-weight:600}
.db-consult-panels{flex:1;min-height:0;overflow:hidden}
.db-consult-contact{height:100%;min-height:0;display:flex;flex-direction:column}
.db-consult-log{flex:1;min-height:70px;overflow:auto;overscroll-behavior:contain;padding:12px 16px 10px;scrollbar-width:thin}
.db-consult-log>header h4{margin:0 0 12px;font-size:12px;font-weight:600}
.db-consult-log>header small{font-weight:400;color:#929baa;margin-left:5px;font-size:10px}
.db-consult-entry{display:grid;grid-template-columns:85px minmax(0,1fr);gap:12px;padding:8px 0 12px;border-bottom:1px solid #f0f2f6;margin-bottom:8px}
.db-consult-entry time{font-size:10px;line-height:1.7;color:#8b95a4;overflow-wrap:anywhere}
.db-consult-entry strong{font-size:11px;color:#557198;font-weight:600}
.db-consult-entry p{margin:5px 0 0;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#485467}
.db-consult-legacy{border:1px solid #e5eaf0;border-radius:5px;padding:10px 12px;background:#fbfcfd}
.db-consult-legacy header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.db-consult-legacy strong{font-size:11px;font-weight:600;color:#5c687a}
.db-consult-legacy header span{font-size:9px;background:#eef2f7;border-radius:3px;padding:3px 5px;color:#8190a4}
.db-consult-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;color:#687489;margin:7px 0}
.db-consult-legacy summary{color:#71849d;font-size:10px;cursor:pointer;list-style:none}
.db-consult-legacy details[open] summary{margin-bottom:8px}
.db-consult-legacy pre{font-family:inherit;font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#485467}
.db-consult-composer{flex-shrink:0;border-top:1px solid #e7ecf2;padding:11px 16px 0;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.db-consult-composer>label{font-size:12px;font-weight:600;color:#4d596b}
.db-consult-composer>small{font-size:10px;color:#9aa3af;align-self:center}
.db-consult-composer textarea{grid-column:1/-1;width:100%;box-sizing:border-box;resize:none;min-height:0;height:94px;padding:10px;border:1px solid #dfe6ef;border-radius:5px;font-family:inherit;font-size:12px;line-height:1.65;color:#3f4d62;background:#fff;outline:none}
.db-consult-composer textarea::placeholder{color:#a5adba}
.db-consult-composer textarea:focus{border-color:#8da5c6;box-shadow:0 0 0 2px #688bbf0c}
.db-consult-feedback{grid-column:1/-1;color:#b04d4d;font-size:11px;margin:0;line-height:1.5}
.db-consult-feedback:empty{display:none}
.db-consult-composer footer{grid-column:1/-1;display:flex;align-items:center;gap:7px;min-height:43px;border-top:1px solid #edf0f5;margin:1px -16px 0;padding:6px 16px;background:#fafbfc}
.db-consult-composer footer>span{margin-right:auto;font-size:10px;color:#9aa4b3}
.db-consult-composer footer button{min-height:29px;padding:5px 12px;font-family:inherit;font-size:11px;border:1px solid #dfe5ee;border-radius:4px;background:#fff;color:#7b8798}
.db-consult-composer footer .primary{background:#5b7fae;border-color:#5b7fae;color:#fff}
.db-consult-composer button:disabled{opacity:.5;cursor:wait}
.db-consult-scroll{height:100%;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:16px;scrollbar-width:thin}
.floating-window.db-detail-drawer .db-consult-scroll .db-detail-section{margin:0 0 18px;padding:0}
.db-consult-scroll .db-detail-section>dl:not(.db-detail-info){display:grid;grid-template-columns:110px minmax(0,1fr);gap:9px 12px;font-size:12px;line-height:1.65}
.db-consult-scroll dt{color:#8c96a5}
.db-consult-scroll dd{margin:0;overflow-wrap:anywhere}
.db-consult-customer-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.db-consult-customer-actions button{font-size:11px;padding:6px 10px;border:1px solid #dfe5ee;background:#fafbfc;border-radius:4px;color:#65758c}
@media(max-width:1050px){.db-consult-controls{grid-template-columns:minmax(90px,1fr) minmax(80px,1fr) minmax(172px,1.4fr);gap:7px}.db-consult-info-link{font-size:10px}.db-consult-identity{gap:11px}}
@media(max-height:700px){.db-consult-identity{min-height:67px;padding-top:8px;padding-bottom:8px}.db-consult-controls{padding-top:7px;padding-bottom:8px}.db-consult-context{padding-top:7px;padding-bottom:7px}.db-consult-composer textarea{height:72px}}
@media(max-width:500px){.db-consult-controls{grid-template-columns:1fr 1fr}.db-consult-controls label:last-child{grid-column:1/-1}.db-consult-composer>small{font-size:9px}.db-consult-identity h3{font-size:18px}.db-consult-identity>div>a{font-size:14px}.db-consult-identity{gap:8px}.db-consult-info-link{display:none}.db-consult-pager{top:8px}}

.floating-window.db-detail-drawer [data-db-detail-panel="contact"]{padding:0}
body:has(.db-detail-drawer:not(.minimized) .db-consult-layout) #calc-launch{display:none}
.floating-window.db-detail-drawer .db-consult-layout>.db-detail-tabs button.active::after{display:none}

.db-vehicle-shortcut{margin-left:auto;padding:2px 0;border:0;background:transparent;font-size:11px;color:#6582a7;cursor:pointer}.db-vehicle-view>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.db-vehicle-view h4{margin:0;font-size:14px;color:#45546a}.db-vehicle-view>header p{margin:5px 0 0;color:#8a95a4;font-size:11px}.db-vehicle-view>header>span{font-size:10px;white-space:nowrap;color:#8897aa;background:#f2f5f9;border-radius:4px;padding:3px 6px}.db-vehicle-section{margin-top:20px}.db-vehicle-section h5{font-size:12px;font-weight:600;margin:0 0 9px;color:#56667d}.db-vehicle-section>.muted{font-size:11px;line-height:1.6}.db-vehicle-note{border:1px solid #e5eaf1;border-radius:5px;padding:12px;margin-top:10px;background:#fbfcfd}.db-vehicle-note h6{font-size:10px;color:#8491a3;margin:0 0 8px;font-weight:500}.db-vehicle-note pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:12px;color:#4c5a70;line-height:1.75;margin:0}.db-vehicle-opportunity{border-bottom:1px solid #edf0f5;padding:10px 0;font-size:12px}.db-vehicle-opportunity span{margin-left:10px;font-size:11px;color:#8a95a5}.db-vehicle-opportunity p{font-size:11px;color:#8a95a5;margin:5px 0 0}@media(max-width:550px){.floating-window.db-detail-drawer .db-consult-layout>.db-detail-tabs{gap:14px}.floating-window.db-detail-drawer .db-consult-layout>.db-detail-tabs button{font-size:11px}}
