
/* List: Dispatch Hub row with the headset icon */
body.driver-panel .dm-screen .bk-dh-hub-avatar{display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#fffaf3!important;background-image:none!important;color:#073c56!important;border-radius:50%!important}
body.driver-panel .dm-screen .bk-dh-hub-avatar .bk-dh-headset{width:30px;height:30px}
body.driver-panel .dm-screen .bk-dh-hub-pin .bk-dh-hub-avatar{background:#073c56!important;color:#fff!important}
body.driver-panel .dm-screen .bk-dh-hub-pin .bk-dh-headset{width:24px;height:24px}
body.driver-panel .bk-dh-driver-row .u172-inbox-copy small{opacity:.8}

/* Conversation: copied from the admin conversation (bumprkar-admin-mobile-staging-clean, body.mc-clean rules, Nov 29),
   with the admin selectors mapped to the driver screen. Same sizes, colors and spacing. */
/* Pop-up: admin #msg-popup width min(93vw,660px), height calc(100dvh - 28px), corners 24px, white */
body.bk-modal-open.bk-dh-convo-open #liveApp>:not(.dm-screen){display:none!important}
body.bk-modal-open.bk-dh-convo-open #liveApp{top:calc(var(--bk-dh-vt,0px) + var(--bk-dh-vh,100dvh)/2)!important;width:min(93vw,660px)!important;height:calc(var(--bk-dh-vh,100dvh) - 28px)!important;max-height:none!important;padding:0!important;background:#fff!important;border-radius:24px!important;overflow:hidden!important;box-shadow:0 16px 50px #0005!important}
body.bk-modal-open.bk-dh-convo-open #liveApp>.dm-screen.bk-dh-convo{position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;border-radius:0!important}
.dm-screen.bk-dh-convo{display:flex!important;flex-direction:column!important;background:#fff!important;overflow:hidden!important;font-family:inherit}

/* Header (admin .conversation-head) */
body.driver-panel .dm-screen.bk-dh-convo .dm-chat-header.bk-dh-head,.dm-screen.bk-dh-convo .dm-chat-header.bk-dh-head{display:block!important;flex:none!important;padding:0!important;margin:0!important;min-height:0!important;background:#fff!important;border:0!important;box-shadow:none!important;position:static!important}
.bk-dh-convo .bk-dh-top{display:flex;align-items:center;gap:10px;padding:12px 12px 10px;background:#fff}
.bk-dh-convo .bk-dh-back{width:36px;height:36px;min-height:0;flex:none;margin:0;padding:0;border-radius:11px;border:2px solid #063b54;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:none}
.bk-dh-convo .bk-dh-back svg{width:18px;height:18px;stroke:#063b54;stroke-width:2.6;fill:none}
.bk-dh-convo .bk-dh-avatar{width:40px;height:40px;flex:none;border-radius:50%;background:#063b54;color:#fff;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center;margin:0;box-shadow:none;border:0}
.bk-dh-convo .bk-dh-avatar .bk-dh-headset{width:24px;height:24px;color:#fff}
.bk-dh-convo .bk-dh-who{flex:1;min-width:0;line-height:1.15}
body.driver-panel .dm-screen.bk-dh-convo .bk-dh-who h1,.bk-dh-convo .bk-dh-who h1{margin:0!important;padding:0!important;font-size:17px!important;font-weight:800!important;color:#111!important;background:transparent!important;border:0!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;width:auto!important;border-radius:0!important;box-shadow:none!important;line-height:1.15!important}
.bk-dh-convo .bk-dh-who small{display:block;font-size:12.5px;color:#5d6b78;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-dh-convo .bk-dh-call{width:36px;height:36px;flex:none;border-radius:50%;background:#c8dfe9;border:2px solid #063b54;display:flex;align-items:center;justify-content:center;text-decoration:none}
.bk-dh-convo .bk-dh-call svg{width:17px;height:17px;stroke:#063b54;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.bk-dh-convo .bk-dh-close{flex:none;width:auto;min-height:0;height:auto;margin:0;padding:0 2px;border:0;background:transparent;box-shadow:none;font-size:30px;font-weight:700;line-height:1;color:#111}

/* Route strip (admin .mc-route) */
.bk-dh-convo .bk-dh-route{flex:none;margin:0 12px 8px;border:2px solid #5b4636;border-radius:12px;background:#e8e1d6;color:#3a2a1c;padding:7px 10px;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
.bk-dh-convo .bk-dh-route>svg{width:18px;height:18px;stroke:#5b4636;stroke-width:2;fill:none;flex:none}
.bk-dh-convo .bk-dh-route-copy{flex:1;min-width:0;line-height:1.2}
.bk-dh-convo .bk-dh-route-copy strong{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-dh-convo .bk-dh-route-copy small{font-size:12.5px;font-weight:700}
.bk-dh-convo .bk-dh-route-status{flex:none;font-size:11px;font-weight:800;padding:3px 8px;border-radius:7px;background:#063b54;color:#fff}

/* Chat area and bubbles (admin #conversation-history .bubble) */
body.driver-panel .dm-screen.bk-dh-convo .dm-history,.dm-screen.bk-dh-convo .dm-history{flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;overflow-y:auto!important;background:#e4ebf0!important;padding:10px 12px!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:6px!important;border:0!important;border-radius:0!important}
.bk-dh-convo .u172-chat-message{display:flex!important;flex-direction:column!important;align-items:flex-start!important;margin:0!important;padding:0!important}
.bk-dh-convo .u172-chat-message.u172-mine{align-items:flex-end!important}
.bk-dh-convo .u172-chat-message>time{display:none!important}
.bk-dh-convo .u172-bubble{max-width:78%!important;width:auto!important;padding:8px 11px 6px!important;margin:0!important;border-radius:17px 17px 17px 5px!important;background:#fff!important;color:#111!important;font-size:15px!important;line-height:1.3!important;box-shadow:0 1px 2px #0002!important;border:0!important;display:flex!important;flex-direction:column!important}
.bk-dh-convo .u172-mine .u172-bubble{background:#063b54!important;color:#fff!important;border-radius:17px 17px 5px 17px!important;box-shadow:none!important}
.bk-dh-convo .u172-bubble>small{display:block!important;font-size:10.5px!important;font-weight:800!important;color:#063b54!important;opacity:1!important;margin:0 0 1px!important}
.bk-dh-convo .u172-bubble>p{margin:0!important}
.bk-dh-convo .u172-bubble>strong{font-weight:800!important}
.bk-dh-convo .u172-bubble .bk-dh-time{display:block!important;align-self:flex-end!important;font-size:10.5px!important;margin-top:2px!important;color:#5d6b78!important;opacity:1!important}
.bk-dh-convo .u172-mine .u172-bubble *{color:#fff!important}
.bk-dh-convo .bk-dh-older{display:block!important;align-self:center!important;margin:4px auto!important;min-height:30px!important;padding:4px 12px!important;font-size:13px!important;border-radius:12px!important;background:#fff!important;color:#063b54!important;border:1px solid #9bb3bf!important}

/* Quick replies (admin .mc-quick) */
.bk-dh-convo .bk-dh-quick{flex:none;display:flex;gap:6px;padding:6px 10px;background:#e4ebf0;overflow-x:auto;scrollbar-width:none}
.bk-dh-convo .bk-dh-quick button{flex:none;width:auto;min-height:0;height:auto;margin:0;font-size:13px;font-weight:800;color:#fff;background:#5b4636;border:2px solid #5b4636;border-radius:16px;padding:5px 11px;box-shadow:none;white-space:nowrap}

/* Typing bar (admin #message-compose) */
body.driver-panel .dm-screen.bk-dh-convo .dm-bottom,.dm-screen.bk-dh-convo .dm-bottom{flex:none!important;background:#fff!important;backdrop-filter:none!important;border:0!important;padding:0!important;margin:0!important}
.bk-dh-convo .u172-compose{display:flex!important;align-items:flex-end!important;gap:8px!important;padding:8px 10px max(12px,env(safe-area-inset-bottom))!important;margin:0!important;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;position:static!important}
.bk-dh-convo .u172-add-image{width:38px!important;height:38px!important;flex:none!important;border-radius:50%!important;border:2px solid #063b54!important;background:#fff!important;color:#063b54!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:24px!important;font-weight:600!important;margin:0!important;padding:0 0 2px!important;box-shadow:none!important;box-sizing:border-box!important;cursor:pointer}
.bk-dh-convo .u172-add-image input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important}
body.driver-panel .dm-screen.bk-dh-convo .u172-compose-fields,.dm-screen.bk-dh-convo .u172-compose-fields{flex:1!important;min-width:0!important;display:block!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.bk-dh-convo .u172-compose-fields label{display:block!important;margin:0!important;font-size:0!important;color:transparent!important}
.bk-dh-convo .u172-compose-fields .field-dictation-wrap{display:flex!important;align-items:center!important;min-height:40px!important;border:2px solid #063b54!important;border-radius:12px!important;background:#fff!important;padding:0 8px 0 12px!important;margin:0!important;box-shadow:none!important;box-sizing:border-box!important}
body.driver-panel .dm-screen.bk-dh-convo .u172-compose-fields textarea,.dm-screen.bk-dh-convo .u172-compose-fields textarea{flex:1!important;min-width:0!important;border:0!important;background:transparent!important;font-size:15px!important;line-height:1.3!important;padding:8px 0!important;margin:0!important;min-height:0!important;max-height:120px!important;resize:none!important;box-shadow:none!important;outline:none!important;color:#111!important;border-radius:0!important}
body.driver-panel .dm-screen.bk-dh-convo .u172-compose-fields label .field-dictation-button,.dm-screen.bk-dh-convo .u172-compose-fields label:first-child .field-dictation-button{width:30px!important;height:30px!important;min-width:0!important;min-height:0!important;flex:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#063b54!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.bk-dh-convo .u172-compose-fields .field-dictation-button svg{width:19px!important;height:19px!important}
.bk-dh-convo .bk-dh-send{width:40px!important;height:40px!important;min-width:0!important;min-height:0!important;flex:none!important;border-radius:50%!important;background:#08622f!important;border:0!important;margin:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important}
.bk-dh-convo .bk-dh-send svg{width:20px!important;height:20px!important;stroke:#fff!important;stroke-width:2.6!important;fill:none!important;stroke-linecap:round;stroke-linejoin:round}
.bk-dh-convo .u172-compose-files{flex-basis:100%!important;font-size:13px!important}
