/* ================================================================
   EMBER3DCHAT.CSS — self-contained styling for _PS.Ember3D.GeminiChat.cshtml
   (the #chat-fab bubble + #chat-panel slide-up widget).
   ------------------------------------------------------------------
   Split out of Ember3DTheme.css so the chat widget can be included via
   partial view on ANY page (not just Ember3DTheme.cshtml's standalone
   3D map page) without pulling in that page's much larger, unscoped
   stylesheet (which would both under-style the chat — missing tokens —
   and risk colliding with the host page's own CSS via generic class
   names like .glass/.chip/.icon-btn).

   Every rule here is scoped under #chat-fab/#chat-panel (including the
   --rs-
   --font-
   --radius--tr design tokens, defined locally instead
   of at :root) so this file is safe to load on any page regardless of
   what else that page's CSS defines. Falls back to a light theme by
   default; if the host page sets [data-theme="dark"] on <html> (as
   Ember3DTheme.cshtml does), the dark overrides below still apply.
   ================================================================ */

#chat-fab, #chat-panel {
  --rs-bg:             #FAFAF6;
  --rs-surface:        #FFFFFF;
  --rs-surface-warm:   #F4F2EA;
  --rs-text:           #1A1D21;
  --rs-text-secondary: #565B63;
  --rs-text-muted:     #8A8F98;
  --rs-border:         #E4E1D6;
  --rs-border-strong:  #C9C6B9;
  --rs-accent:         #E8401F;
  --rs-accent-hover:   #D0350F;
  --rs-accent-strong:  #C93511;
  --rs-accent-tint:    #FDEDE8;
  --rs-on-accent:      #FFFFFF;
  --rs-up:             #1E7B47;
  --rs-down:           #C42B2B;
  --rs-down-tint:      #FBEAEA;
  --rs-warn:           #9A6B0B;
  --rs-warn-tint:      #FBF3DF;
  --rs-focus:          0 0 0 2px #FAFAF6, 0 0 0 4px #E8401F;
  --rs-shadow-lg:      0 6px 16px rgba(26,29,33,0.10), 0 18px 48px rgba(26,29,33,0.14);
  --radius-lg: 16px;
  --tr: 0.2s ease-out;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-data: 'Space Mono', ui-monospace, monospace;
}
[data-theme="dark"] #chat-fab, [data-theme="dark"] #chat-panel {
  --rs-bg:             #0E1116;
  --rs-surface:        #151B22;
  --rs-surface-warm:   #1C232C;
  --rs-text:           #F2F1EC;
  --rs-text-secondary: #C9CDD3;
  --rs-text-muted:     #9BA3AD;
  --rs-border:         rgba(255,255,255,0.06);
  --rs-border-strong:  rgba(255,255,255,0.12);
  --rs-accent:         #F0563A;
  --rs-accent-hover:   #F26A50;
  --rs-accent-strong:  #F0563A;
  --rs-accent-tint:    #2B1712;
  --rs-on-accent:      #FFFFFF;
  --rs-up:             #57C785;
  --rs-down:           #F2716A;
  --rs-down-tint:      #2A1414;
  --rs-warn:           #E3B341;
  --rs-warn-tint:      #2A2210;
  --rs-focus:          0 0 0 2px #0E1116, 0 0 0 4px #F0563A;
  --rs-shadow-lg:      none;
}

#chat-fab button, #chat-panel button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }
@keyframes chat-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

#chat-fab { right: 14px; bottom: calc(105px + var(--safe-b)); z-index: 260; width: 56px; height: 56px; border-radius: 50%; background: var(--rs-accent); color: var(--rs-on-accent); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(14,17,22,0.3); transition: background var(--tr); position: fixed; border: 0px; overflow: hidden; }
#chat-fab:hover { background: var(--rs-accent-hover); }
#chat-fab .fab-avatar { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
#chat-fab .fab-badge { position: absolute; top: 5px; right: 5px; background: var(--rs-surface); color: var(--rs-accent-strong); border: 1px solid var(--rs-border-strong); font: 700 8.5px var(--font-data); border-radius: 50px; padding: 3px 6px; }
#chat-fab.has-unread::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--rs-down); border: 2px solid var(--rs-surface); }
#chat-panel { position: fixed; right: 14px; bottom: calc(142px + var(--safe-b)); z-index: 460; width: min(372px, calc(100vw - 20px)); height: min(520px, calc(100svh - 180px)); background: var(--rs-surface); border: 1px solid var(--rs-border-strong); border-radius: var(--radius-lg); box-shadow: var(--rs-shadow-lg); display: flex; flex-direction: column; overflow: hidden; color: var(--rs-text); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity var(--tr), transform var(--tr); }
#chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
/* color/padding/gap set explicitly (not just relied on via inheritance/defaults) —
   ".chat-head"/".chat-body" are common enough class names that a host page can
   legitimately already use them for something unrelated (confirmed collision
   with premier-agent-v2.css's own now-unused chat widget, whose ".chat-head
   { color: var(--cream) }" was winning the cascade for `color` here since this
   rule didn't set it, rendering the title invisible against a similarly light
   background). Being fully explicit on every host-visible property is what
   keeps this widget safe to drop onto ANY page per the file banner above. */
#chat-panel .chat-head { display: flex; align-items: center; gap: 9px; padding: 13px 14px; background: var(--rs-surface-warm); border-bottom: 1px solid var(--rs-border); color: var(--rs-text); }
#chat-panel .chat-avatar { width: 32px; height: 32px; border-radius: 10px; background: var(--rs-accent); display: grid; place-items: center; }
#chat-panel .chat-avatar svg { stroke: var(--rs-on-accent); }
#chat-panel .chat-head b { font-family: var(--font-display); font-weight: 600; display: block; font-size: 14px; }
#chat-panel .chat-head small { color: var(--rs-text-muted); font-size: 11px; display: flex; align-items: center; gap: 4px; }
#chat-panel .online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rs-up); }
#chat-panel .chat-head-actions { margin-left: auto; display: flex; align-items: center; gap: 5px; }
#chat-panel .chat-head-btn { width: 28px; height: 28px; border-radius: 8px; background: var(--rs-surface); border: 1px solid var(--rs-border); color: var(--rs-text-secondary); display: grid; place-items: center; transition: background var(--tr), color var(--tr); }
#chat-panel .chat-head-btn:hover { color: var(--rs-text); }
#chat-panel .chat-head-btn[aria-pressed="true"] { background: var(--rs-accent); color: var(--rs-on-accent); border-color: var(--rs-accent); }
#chat-panel .chat-close { width: 30px; height: 30px; border-radius: 9px; background: var(--rs-surface); border: 1px solid var(--rs-border); color: var(--rs-text-secondary); display: grid; place-items: center; }

/* padding/gap set to 0 explicitly for the same reason as .chat-head above —
   premier-agent-v2.css's dead ".chat-body { padding:18px; gap:12px; }" was
   otherwise bleeding through, since this rule left those two unset. */
#chat-panel .chat-body { flex: 1; display: flex; overflow: hidden; position: relative; padding: 0; gap: 0; }
#chat-sessions-panel { display: none; flex-direction: column; width: 100%; overflow-y: auto; background: var(--rs-bg); padding: 10px; }
#chat-sessions-panel.show { display: flex; }
#chat-panel .chat-sessions-header { font: 600 11px var(--font-ui); text-transform: uppercase; letter-spacing: 1.2px; color: var(--rs-text-muted); padding: 4px 4px 10px; }
#chat-panel .chat-new-session-btn { display: flex; align-items: center; gap: 7px; width: 100%; padding: 9px 12px; border-radius: 10px; background: var(--rs-accent-tint); color: var(--rs-accent-strong); font: 500 12.5px var(--font-ui); margin-bottom: 10px; transition: background var(--tr); }
#chat-panel .chat-new-session-btn:hover { background: var(--rs-surface-warm); }
#chat-panel .chat-session-item { padding: 9px 10px; border-radius: 8px; cursor: pointer; margin-bottom: 3px; transition: background var(--tr); }
#chat-panel .chat-session-item:hover { background: var(--rs-surface-warm); }
#chat-panel .chat-session-item.chat-active-session { background: var(--rs-accent-tint); }
#chat-panel .chat-session-title { font-size: 12.5px; font-weight: 500; color: var(--rs-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chat-panel .chat-session-meta { font-size: 10.5px; color: var(--rs-text-muted); margin-top: 2px; }
#chat-panel .chat-no-sessions { padding: 14px 4px; font-size: 12.5px; color: var(--rs-text-muted); }

#chat-main-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#chat-panel .chat-search-bar { display: none; padding: 8px 12px; border-bottom: 1px solid var(--rs-border); background: var(--rs-surface); flex-shrink: 0; }
#chat-panel .chat-search-bar.show { display: block; }
#chat-panel .chat-search-input { width: 100%; border: 1px solid var(--rs-border); background: var(--rs-bg); border-radius: 8px; height: 32px; padding: 0 10px; font: 400 12.5px var(--font-ui); color: var(--rs-text); outline: none; }
#chat-panel .chat-search-input:focus { box-shadow: var(--rs-focus); }

#chat-log { flex: 1; overflow-y: auto; padding: 13px; display: flex; flex-direction: column; gap: 9px; background: var(--rs-bg); }
#chat-panel .msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; animation: rise 0.25s ease-out; }
#chat-panel .msg.bot { background: var(--rs-surface); border: 1px solid var(--rs-border); border-bottom-left-radius: 5px; color: var(--rs-text); }
#chat-panel .msg.user { background: var(--rs-accent-tint); color: var(--rs-text); align-self: flex-end; border-bottom-right-radius: 5px; }
/* Links the assistant puts in its answers (suburbs, "properties for sale in…", agents, agencies, addresses). */
#chat-panel .msg.bot a { color: var(--rs-accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; font-weight: 500; }
#chat-panel .msg.bot a:hover { color: var(--rs-accent-hover); text-decoration-thickness: 2px; }
#chat-panel .msg.bot a:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; border-radius: 3px; }
#chat-panel .msg-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
#chat-panel .msg.user .msg-meta { flex-direction: row-reverse; }
#chat-panel .msg-copy-btn { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: var(--rs-text-muted); flex-shrink: 0; }
#chat-panel .msg-copy-btn:hover { color: var(--rs-text); background: var(--rs-surface-warm); }
#chat-panel .msg-copy-btn.copied { color: var(--rs-up); }
#chat-panel .msg-time { font-size: 10px; color: var(--rs-text-muted); }
#chat-panel .chat-date-divider { text-align: center; font-size: 10.5px; color: var(--rs-text-muted); margin: 6px 0; text-transform: uppercase; letter-spacing: 0.6px; }
#chat-panel .chat-highlight { background: var(--rs-warn-tint); color: var(--rs-warn); border-radius: 3px; padding: 0 2px; }
#chat-panel .chat-load-more-wrap { display: flex; justify-content: center; margin-top: 8px; }
#chat-panel .chat-load-more-btn { font: 500 12px var(--font-ui); color: var(--rs-accent-strong); background: var(--rs-accent-tint); border-radius: 50px; padding: 7px 14px; transition: background var(--tr); }
#chat-panel .chat-load-more-btn:hover { background: var(--rs-surface-warm); }
#chat-panel .chat-load-more-btn:disabled { opacity: 0.6; cursor: default; }
#chat-panel .chat-page-label { font-size: 10.5px; color: var(--rs-text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.6px; }
/* "Thinking" while a question is being answered: the AI's three-star logo twinkles and the word flashes and fades. */
#chat-panel .chat-typing { display: none; align-items: center; gap: 7px; padding: 9px 13px; color: var(--rs-accent); }
#chat-panel .chat-think-logo { flex: none; }
#chat-panel .chat-think-logo path { transform-box: fill-box; transform-origin: center; animation: chat-think-star 1.4s ease-in-out infinite; }
#chat-panel .chat-think-logo .st2 { animation-delay: 0.25s; }
#chat-panel .chat-think-logo .st3 { animation-delay: 0.5s; }
#chat-panel .chat-think-text { font: 500 13px var(--font-ui); color: var(--rs-text-secondary); animation: chat-think-text 1.4s ease-in-out infinite; }
@keyframes chat-think-star { 0%, 100% { opacity: 0.35; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1); } }
@keyframes chat-think-text { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #chat-panel .chat-think-logo path, #chat-panel .chat-think-text { animation-duration: 2.8s; }
}
#chat-panel .chat-error-toast { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: var(--rs-down-tint); color: var(--rs-down); font-size: 12.5px; }

#chat-chips { display: none; gap: 6px; padding: 8px 13px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
#chat-chips.show { display: flex; }
#chat-chips::-webkit-scrollbar { display: none; }
#chat-chips .chip { flex-shrink: 0; font: 400 11.5px var(--font-ui); color: var(--rs-text-secondary); border: 1px solid var(--rs-border); background: var(--rs-surface); border-radius: 50px; padding: 6px 11px; transition: color var(--tr), border-color var(--tr); cursor: pointer; }
#chat-chips .chip:hover { color: var(--rs-text); border-color: var(--rs-border-strong); }

#chat-panel .chat-input { display: flex; gap: 7px; padding: 11px; border-top: 1px solid var(--rs-border); background: var(--rs-surface); flex-shrink: 0; }
#chat-panel .chat-input textarea { flex: 1; resize: none; border: 1px solid var(--rs-border); background: var(--rs-surface); border-radius: 14px; max-height: 100px; padding: 9px 13px; font: 400 13.5px var(--font-ui); font-family: var(--font-ui); color: var(--rs-text); outline: none; line-height: 1.4; height: unset; min-height: unset; }
[data-theme="dark"] #chat-panel .chat-input textarea { background: var(--rs-surface-warm); }
#chat-panel .chat-input textarea:focus { box-shadow: var(--rs-focus); }
#chat-panel .chat-input button { width: 42px; border-radius: 10px; background: var(--rs-accent); color: var(--rs-on-accent); display: grid; place-items: center; transition: background var(--tr); flex-shrink: 0; align-self: flex-end; height: 42px; }
#chat-panel .chat-input button:hover { background: var(--rs-accent-hover); }

/* Free questions used up (not logged in): the box and send button are completely disabled and the card below sits above them. */
#chat-panel .chat-input.locked textarea { background: var(--rs-surface-warm); color: var(--rs-text-muted); cursor: not-allowed; }
#chat-panel .chat-input.locked button { opacity: 0.4; cursor: not-allowed; background: var(--rs-accent); }
#chat-panel .chat-input.locked button:hover { background: var(--rs-accent); }
#chat-panel .chat-login-gate { display: none; flex-shrink: 0; margin: 4px 11px 2px; padding: 14px 16px; border: 1px solid var(--rs-border); border-radius: 16px; background: var(--rs-surface); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); }
#chat-panel .chat-login-gate.show { display: block; }
#chat-panel .chat-login-gate b { display: block; font: 600 14.5px var(--font-ui); color: var(--rs-text); }
#chat-panel .chat-login-gate p { margin: 4px 0 12px; font: 400 13px var(--font-ui); line-height: 1.45; color: var(--rs-text-secondary); }
#chat-panel .chat-gate-actions { display: flex; gap: 10px; }
#chat-panel .chat-gate-btn { flex: 1; display: block; text-align: center; text-decoration: none; padding: 10px 12px; border-radius: 8px; font: 600 13.5px var(--font-ui); cursor: pointer; transition: background var(--tr), border-color var(--tr); }
#chat-panel .chat-gate-btn.secondary { background: var(--rs-surface); color: var(--RealSearchThemeColor, #ef4f24); border: 1px solid var(--RealSearchThemeColor, #ef4f24); }
#chat-panel .chat-gate-btn.secondary:hover { background: color-mix(in srgb, var(--RealSearchThemeColor, #ef4f24) 8%, var(--rs-surface)); }
/* Join uses the application's theme colour (--RealSearchThemeColor, root.css; a premier agent page sets it to the agent's brand colour), not the chat's own accent. */
#chat-panel .chat-gate-btn.primary { background: var(--RealSearchThemeColor, #ef4f24); color: #fff; border: 1px solid var(--RealSearchThemeColor, #ef4f24); }
#chat-panel .chat-gate-btn.primary:hover { background: color-mix(in srgb, var(--RealSearchThemeColor, #ef4f24) 85%, #000); border-color: color-mix(in srgb, var(--RealSearchThemeColor, #ef4f24) 85%, #000); }

/* Property cards inside chat messages (search_properties tool results) —
   minimal standalone styling for .prop-card so it looks reasonable even
   on a page with no map (Ember3DTheme.css's own richer .prop-card rules
   still take over on the map page itself, since ID selectors here don't
   fight with its class-only .prop-card rules). */
/* Same compact layout as the small property window on the map page (photo on the left, price, address and key facts beside it),
   so more properties fit in view. The same layout is used by the results list and the history list of the map page. */
#chat-panel .prop-card { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--rs-border); border-radius: 12px; background: var(--rs-surface); cursor: pointer; transition: border-color var(--tr); }
#chat-panel .prop-card:hover { border-color: var(--rs-border-strong); }
#chat-panel .prop-img-wrap { position: relative; flex: 0 0 96px; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--rs-surface-warm); }
#chat-panel .prop-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
#chat-panel .prop-badge { position: absolute; top: 5px; left: 5px; max-width: calc(100% - 10px); font: 500 10px var(--font-ui); background: var(--rs-accent-tint); color: var(--rs-accent-strong); border-radius: 5px; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chat-panel .prop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 0; }
#chat-panel .prop-price { font-family: var(--font-data); font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chat-panel .prop-address { font-size: 12.5px; line-height: 1.4; color: var(--rs-text-secondary); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: normal; }
#chat-panel .prop-specs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
#chat-panel .prop-specs .spec { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-data); font-size: 11.5px; color: var(--rs-text-secondary); }
#chat-panel .prop-specs .spec svg { color: var(--rs-text-muted); flex-shrink: 0; }
@media (max-width: 480px) {
  #chat-panel .prop-img-wrap { flex-basis: 82px; width: 82px; height: 82px; }
  #chat-panel .prop-price { font-size: 16px; }
}
@media (max-width: 350px) {
  #chat-panel .prop-img-wrap { flex-basis: 64px; width: 64px; height: 64px; }
  #chat-panel .prop-card { gap: 10px; }
}

/* Running commentary: one small time-stamped line per step the visitor took on the page (searched a place, changed a filter,
   opened a property...). Quieter than the chat bubbles, so the conversation stays easy to read between them. */
#chat-panel .chat-activity { display: flex; align-items: flex-start; gap: 7px; align-self: stretch; padding: 1px 4px; font: 400 11.5px/1.5 var(--font-ui); color: var(--rs-text-muted); animation: rise 0.25s ease-out; }
#chat-panel .chat-activity .ca-ico { flex: none; width: 18px; height: 18px; margin-top: 0; border-radius: 50%; display: grid; place-items: center; background: var(--rs-surface-warm); border: 1px solid var(--rs-border); color: var(--rs-text-secondary); }
#chat-panel .chat-activity[data-type="save"] .ca-ico { color: var(--rs-accent); }
#chat-panel .chat-activity .ca-text { flex: 1; min-width: 0; color: var(--rs-text-secondary); overflow-wrap: anywhere; }
#chat-panel .chat-activity .ca-list { list-style: none; margin: 4px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
#chat-panel .chat-activity .ca-list li { font-size: 11.5px; color: var(--rs-text-secondary); }
#chat-panel .chat-activity .ca-list li:not(:has(button)) { background: var(--rs-surface-warm); border: 1px solid var(--rs-border); border-radius: 50px; padding: 2px 9px; }
#chat-panel .chat-activity .ca-item { font: 400 11.5px var(--font-ui); color: var(--rs-accent-strong); background: var(--rs-accent-tint); border: 1px solid transparent; border-radius: 50px; padding: 2px 9px; cursor: pointer; text-align: left; transition: border-color var(--tr); }
#chat-panel .chat-activity .ca-item:hover { border-color: var(--rs-accent); }
#chat-panel .chat-activity .ca-time { flex: none; font-size: 10px; color: var(--rs-text-muted); padding-top: 1px; }

/* On the map page the question is typed in the "Ask AI" box of the bottom strip (its button sends it), so the chat window itself
   shows only the conversation: its own text box and send button are hidden. */
#chat-panel.chat-dock .chat-input { display: none; }

/* DOCK MODE (the map page: no bubble, the window slides up from just above the bottom button strip; where it sits is set in
   Ember3DTheme.css, next to the small property window). Closed = slid down a little, faded out and out of the tab order;
   open = in place. The same motion in both directions, a little longer on the way in so it settles softly. Using
   `visibility` (not display) is what lets it animate, and keeps buttons inside a closed window from being reachable. */
#chat-panel.chat-dock { border-radius: var(--radius-lg); opacity: 0; transform: translateY(28px); visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.26s ease-in, visibility 0s linear 0.26s; }
#chat-panel.chat-dock.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity 0.26s ease, transform 0.34s cubic-bezier(0.22, 0.8, 0.26, 1), visibility 0s linear 0s; }
@media (prefers-reduced-motion: reduce) {
  #chat-panel.chat-dock, #chat-panel.chat-dock.open { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

@media (max-width: 768px) {
  #chat-fab { bottom: calc(105px + var(--safe-b)); }
  #chat-panel { bottom: calc(262px + var(--safe-b)); height: min(460px, calc(100svh - 300px)); }
}
/* Scoped under #chat-panel (these previously matched any ".msg" on the host
   page, not just this widget's own — an unscoped selector this file's own
   banner comment says it avoids everywhere else). */
#chat-panel .msg table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: #dee2e6;
    font-size: 1rem;
    border-collapse: collapse;
}

#chat-panel .msg table th,
#chat-panel .msg table td {
    padding: 0.5rem 0.5rem;
    background-color: transparent;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #dee2e6;
}

#chat-panel .msg table th {
    text-align: inherit;
    text-align: -webkit-match-parent;
    font-weight: 700;
}

#chat-panel .msg table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

#chat-panel .msg table th {
    color: #fff;
    background-color: #ef4f24;
    border-color: #ef4f24;
}

#chat-panel .msg table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}