.pqr-chat-shell {
  --pqr-forest: #145442;
  --pqr-mint: #dff4ec;
  --pqr-canvas: #eef3f1;
  display: grid;
  grid-template-columns: minmax(350px, 400px) minmax(390px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: min(820px, calc(100vh - 138px));
  height: min(820px, calc(100dvh - 138px));
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #d8e2de;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 48, 40, .09);
  position: relative;
}
.pqr-chat-shell.quick-open { grid-template-columns: minmax(330px, 380px) minmax(390px, 1fr) minmax(250px, 300px); }
.pqr-chat-quick[hidden] { display: none; }

body.pqr-chat-view-active { overflow: hidden; }
body.pqr-chat-view-active #app { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.pqr-chat-view-active main { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding: 0; }
body.pqr-chat-view-active main > .topbar { display: none; }
body.pqr-chat-view-active #pqr-chat { height: 100%; min-height: 0; overflow: hidden; }
body.pqr-chat-view-active .pqr-chat-shell { width: 100%; height: 100%; min-height: 0; max-height: none; border-width: 0; border-radius: 0; box-shadow: none; }

@media (min-width: 901px) {
  body.pqr-chat-view-active #app > .sidebar {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.pqr-chat-view-active #app > .sidebar > .nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 231, 235, .55) transparent;
  }
  body.pqr-chat-view-active #app > .sidebar > .nav::-webkit-scrollbar { width: 7px; }
  body.pqr-chat-view-active #app > .sidebar > .nav::-webkit-scrollbar-track { background: transparent; }
  body.pqr-chat-view-active #app > .sidebar > .nav::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(217, 231, 235, .42); }
}

.pqr-chat-conversations,
.pqr-chat-quick {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pqr-chat-conversations { border-right: 1px solid #dfe7e4; }
.pqr-chat-quick { border-left: 1px solid #dfe7e4; }

.pqr-chat-side-head,
.pqr-chat-active-head,
.pqr-chat-quick-head {
  min-height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4ebe8;
}

.pqr-chat-side-head { justify-content: space-between; }
.pqr-chat-side-head > div,
.pqr-chat-quick-head > div { display: grid; gap: 3px; min-width: 0; }
.pqr-chat-side-head strong,
.pqr-chat-quick-head strong { font-size: 16px; }
.pqr-chat-side-head span,
.pqr-chat-quick-head span { color: #718078; font-size: 12px; }
.pqr-chat-total-unread { display: inline-grid; min-width: 23px; height: 23px; place-items: center; margin-left: 5px; padding: 0 6px; border-radius: 999px; background: #18a874; color: #fff !important; font-size: 11px !important; font-variant-numeric: tabular-nums; vertical-align: 1px; }
.pqr-chat-total-unread[hidden] { display: none; }
.pqr-chat-connection.connected { color: #147957; }
.pqr-chat-connection.error { color: #bf3f3b; }

.pqr-chat-icon-btn,
.pqr-chat-quick-toggle,
.pqr-chat-mobile-back {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #d7e1dd;
  border-radius: 11px;
  background: #fff;
  color: #315047;
  font-size: 20px;
  cursor: pointer;
}
.pqr-chat-icon-btn:hover,
.pqr-chat-quick-toggle:hover { background: #edf7f3; border-color: #a8c9bc; }
.pqr-chat-quick-toggle { display: grid; place-items: center; background: #fff9dd; border-color: #e8dca2; }
.pqr-chat-quick-toggle svg { width: 23px; height: 23px; fill: #e3ad00; }
.pqr-chat-quick-toggle[aria-expanded="true"] { background: #fff0ac; border-color: #cc9e16; }

.pqr-chat-search {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin: 12px;
  padding: 0 12px;
  border: 1px solid #dce6e2;
  border-radius: 12px;
  background: #f5f8f7;
}
.pqr-chat-search span { color: #708079; font-size: 20px; }
#pqrChatType, #pqrChatLabelFilter { display: block; flex-shrink: 0; width: calc(100% - 24px); min-height: 36px; margin: 0 12px 12px; padding: 7px 10px; border: 1px solid #dce6e2; border-radius: 10px; background: #f5f8f7; color: #315047; font: inherit; font-size: 12px; }
#pqrChatType:focus-visible, #pqrChatLabelFilter:focus-visible { outline: 2px solid #54a487; outline-offset: 2px; }
.pqr-chat-filter-note { flex-shrink: 0; margin: -5px 14px 10px; color: #7b6841; font-size: 10px; line-height: 1.35; }
.pqr-chat-search input {
  min-width: 0;
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
}

.pqr-chat-sync { flex-shrink: 0; padding: 7px 12px 8px; border-bottom: 1px solid #dce6e2; background: #f1faf6; color: #406258; font-size: 10px; }
.pqr-chat-sync[hidden] { display: none; }
.pqr-chat-sync > div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.pqr-chat-sync progress { width: 100%; height: 5px; display: block; overflow: hidden; border: 0; border-radius: 999px; accent-color: #19a675; }
.pqr-chat-filter-chips { display: flex; flex-shrink: 0; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.pqr-chat-filter-chips::-webkit-scrollbar { display: none; }
.pqr-chat-filter-chips button { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #dce6e2; border-radius: 999px; background: #fff; color: #465b53; font: inherit; font-size: 11px; cursor: pointer; }
.pqr-chat-filter-chips button.active { border-color: #a7d8c5; background: #dff4ec; color: #0d6a4b; font-weight: 750; }
.pqr-chat-filter-chips span { font-variant-numeric: tabular-nums; }
.pqr-chat-hidden-filter { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }

.pqr-chat-list,
.pqr-chat-messages,
.pqr-chat-quick-list { overflow: auto; overscroll-behavior: contain; }
.pqr-chat-list { flex: 1; min-height: 0; }
.pqr-chat-conversation {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #eef2f0;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.pqr-chat-conversation:hover { background: #f5faf8; }
.pqr-chat-conversation.active { background: #e5f4ee; box-shadow: inset 3px 0 var(--pqr-forest); }
.pqr-chat-avatar {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #cde8de;
  color: #145442;
  font-weight: 800;
  text-transform: uppercase;
}
.pqr-chat-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pqr-chat-conversation strong,
.pqr-chat-conversation p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqr-chat-conversation strong { font-size: 14px; align-self: end; }
.pqr-chat-conversation p { grid-column: 2 / 4; margin: 2px 0 0; color: #6c7b74; font-size: 12px; }
.pqr-chat-conversation time { color: #89948f; font-size: 11px; }
.pqr-chat-conversation-meta { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.pqr-chat-pinned { flex-shrink: 0; font-size: 12px; line-height: 1; }
.pqr-chat-group-label { color: #397361; font-weight: 700; }
.pqr-chat-conversation .pqr-chat-unread {
  justify-self: end;
  min-width: 23px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #18a874;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pqr-chat-main {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--pqr-canvas);
  background-image: radial-gradient(rgba(30, 87, 68, .055) 1px, transparent 1px);
  background-size: 18px 18px;
}
.pqr-chat-empty {
  margin: auto;
  max-width: 440px;
  padding: 32px;
  text-align: center;
  color: #5f7169;
}
.pqr-chat-empty-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: #dceee7;
  color: #176147;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
}
.pqr-chat-empty h2 { margin: 0 0 8px; color: #23342e; font-size: 21px; }
.pqr-chat-empty p { margin: 0; line-height: 1.55; }
.pqr-chat-active { min-height: 0; min-width: 0; height: 100%; flex: 1; display: flex; flex-direction: column; }
.pqr-chat-active[hidden] { display: none; }
.pqr-chat-active-head { background: rgba(255, 255, 255, .96); }
.pqr-chat-active-head .pqr-chat-avatar { grid-row: auto; width: 42px; height: 42px; }
.pqr-chat-active-copy { min-width: 0; display: grid; gap: 3px; flex: 1; }
.pqr-chat-active-copy strong,
.pqr-chat-active-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqr-chat-active-copy span { color: #6d7b75; font-size: 12px; }
.pqr-chat-live { display: inline-flex; align-items: center; gap: 6px; color: #387563; font-size: 12px; }
.pqr-chat-live i { width: 8px; height: 8px; border-radius: 50%; background: #27b47d; box-shadow: 0 0 0 4px #dff4ec; }
.pqr-chat-customer-toggle { min-height: 38px; flex: 0 0 auto; padding: 0 12px; border: 1px solid #bcd8cd; border-radius: 11px; background: #edf8f3; color: #145b43; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.pqr-chat-customer-toggle:hover, .pqr-chat-customer-toggle[aria-expanded="true"] { border-color: #63ad90; background: #d8f1e6; }
.pqr-chat-customer-toggle:disabled { opacity: .48; cursor: not-allowed; }
.pqr-chat-mobile-back { display: none; }
.pqr-chat-management { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; gap: 6px 10px; position: relative; z-index: 3; padding: 7px 14px; border-bottom: 1px solid #dce5e1; background: #f8fbf9; }
.pqr-chat-pin-tools { display: flex; gap: 4px; }
.pqr-chat-management button, .pqr-chat-label-menu summary { padding: 5px 8px; border: 1px solid #d7e1dd; border-radius: 7px; background: #fff; color: #315047; font: inherit; font-size: 11px; cursor: pointer; }
.pqr-chat-management button:disabled { opacity: .5; cursor: not-allowed; }
.pqr-chat-pin-tools button[aria-pressed="true"] { border-color: #93bba8; background: #e3f3eb; }
.pqr-chat-label-menu { position: relative; }
.pqr-chat-label-menu summary { list-style: none; }
.pqr-chat-label-menu summary::-webkit-details-marker { display: none; }
.pqr-chat-label-popover { position: absolute; top: calc(100% + 7px); left: 0; width: min(300px, 76vw); max-height: 280px; overflow: auto; padding: 10px; border: 1px solid #d7e1dd; border-radius: 10px; background: #fff; box-shadow: 0 8px 22px rgba(22,55,44,.16); }
.pqr-chat-label-popover p { margin: 0 0 8px; color: #63756b; font-size: 11px; line-height: 1.4; }
#pqrChatLabelOptions { display: flex; flex-wrap: wrap; gap: 6px; }
.pqr-chat-selected-labels { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.pqr-chat-label-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 200px; padding: 3px 7px; border: 1px solid #dce6e2; border-radius: 999px; background: #fff; color: #315047; font-size: 10px; overflow-wrap: anywhere; }
.pqr-chat-label-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #91b5a4; }
.pqr-chat-management-status { flex-basis: 100%; color: #566c5f; font-size: 11px; line-height: 1.3; }
.pqr-chat-management-status.error { color: #9e3530; }

.pqr-chat-notice {
  flex-shrink: 0;
  padding: 9px 15px;
  border-bottom: 1px solid #e4d3a8;
  background: #fff7dd;
  color: #7b5a13;
  font-size: 12px;
  line-height: 1.4;
}
.pqr-chat-notice.error { border-color: #f0c4c2; background: #fff0ef; color: #9e3530; }
.pqr-chat-notice.success { border-color: #bfe0d2; background: #e9f7f1; color: #126347; }

.pqr-chat-messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px clamp(14px, 3vw, 38px);
}
.pqr-chat-day {
  flex-shrink: 0;
  align-self: center;
  margin: 7px 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  color: #65736d;
  font-size: 11px;
  box-shadow: 0 1px 3px rgba(25, 55, 45, .08);
}
.pqr-chat-bubble {
  flex-shrink: 0;
  align-self: flex-start;
  max-width: min(78%, 580px);
  padding: 8px 10px 6px;
  border-radius: 5px 14px 14px 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 53, 44, .14);
}
.pqr-chat-bubble { position: relative; }
.pqr-chat-reply-action { position: absolute; top: 4px; right: -34px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d5e1dc; border-radius: 50%; background: rgba(255,255,255,.96); color: #416157; box-shadow: 0 2px 8px rgba(22,55,44,.12); opacity: 0; cursor: pointer; transition: opacity .12s ease; }
.pqr-chat-bubble.mine .pqr-chat-reply-action { right: auto; left: -34px; }
.pqr-chat-bubble:hover .pqr-chat-reply-action,
.pqr-chat-reply-action:focus-visible { opacity: 1; }
.pqr-chat-cancel-evidence-action { margin: 6px 0 1px; border: 1px solid #d8b9a3; border-radius: 999px; padding: 4px 8px; background: #fff8f2; color: #8b4a22; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.pqr-chat-cancel-evidence-action:hover { border-color: #bd7a4d; background: #fff0e3; }
.pqr-chat-quoted { display: grid; gap: 2px; margin-bottom: 6px; padding: 6px 8px; border-left: 3px solid #27a879; border-radius: 6px; background: rgba(20,84,66,.075); color: #576b63; font-size: 11px; }
.pqr-chat-quoted strong { color: #176b50; }
.pqr-chat-quoted span { max-height: 2.8em; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.pqr-chat-bubble.mine { align-self: flex-end; border-radius: 14px 5px 14px 14px; background: #d7f3e7; }
.pqr-chat-bubble.local-sending { opacity: .82; }
.pqr-chat-bubble.local-sent { opacity: .94; }
.pqr-chat-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.42; }
.pqr-chat-sender { display: block; margin-bottom: 4px; color: #277258; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.pqr-chat-bubble footer { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 3px; color: #728079; font-size: 10px; }
.pqr-chat-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.pqr-chat-reaction { display: inline-flex; align-items: center; padding: 2px 6px; border: 1px solid #d9e6df; border-radius: 999px; background: #fff; font-size: 12px; line-height: 1.35; }
.pqr-chat-reaction.mine { border-color: #68ad90; background: #edf9f3; }
.pqr-chat-history { align-self: center; flex-shrink: 0; padding: 8px 12px; border: 1px solid #cbdad4; border-radius: 10px; background: #fff; color: #145442; cursor: pointer; }
.pqr-chat-history:disabled { opacity: .65; cursor: wait; }
.pqr-chat-media { display: inline-flex; gap: 7px; align-items: center; margin-top: 7px; border: 0; border-radius: 8px; padding: 7px 9px; background: rgba(20,84,66,.1); color: #145442; font-size: 12px; font-weight: 750; cursor: pointer; }
.pqr-chat-bubble.with-image { width: min(78%, 340px); }
.pqr-chat-image { width: 100%; aspect-ratio: 4 / 3; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; overflow: hidden; margin-bottom: 7px; border-radius: 8px; background: rgba(20,84,66,.065); color: #61766b; }
.pqr-chat-image > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; cursor: zoom-in; }
.pqr-chat-image > span { padding: 12px; text-align: center; font-size: 12px; line-height: 1.4; }
.pqr-chat-image .pqr-chat-media { margin: 0 10px 10px; }
.pqr-chat-bubble.with-audio { width: min(78%, 390px); }
.pqr-chat-bubble.with-video { width: min(78%, 430px); }
.pqr-chat-playable { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; margin-bottom: 7px; border-radius: 8px; background: rgba(20,84,66,.065); color: #61766b; overflow: hidden; }
.pqr-chat-playable > span { padding: 12px; text-align: center; font-size: 12px; line-height: 1.4; }
.pqr-chat-playable .pqr-chat-media { margin: 0 10px 10px; }
.pqr-chat-audio { min-height: 58px; background: transparent; }
.pqr-chat-audio > audio { width: 100%; height: 44px; }
.pqr-chat-video { min-height: 180px; aspect-ratio: 16 / 9; background: #101512; }
.pqr-chat-video > video { width: 100%; height: 100%; max-height: 430px; object-fit: contain; background: #101512; }
.pqr-chat-scroll { position: absolute; right: 18px; bottom: 85px; border: 1px solid #cbdad4; border-radius: 999px; padding: 8px 12px; background: #fff; color: #315047; box-shadow: 0 4px 16px rgba(22,55,44,.14); cursor: pointer; }

.pqr-chat-composer {
  display: flex;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  align-items: flex-end;
  gap: 9px;
  padding: 11px 14px;
  border-top: 1px solid #dce5e1;
  background: rgba(255,255,255,.96);
}
.pqr-chat-reply-draft { display: flex; flex-shrink: 0; align-items: stretch; gap: 8px; padding: 7px 14px; border-top: 1px solid #dce5e1; background: #f6faf8; }
.pqr-chat-reply-draft[hidden] { display: none; }
.pqr-chat-reply-draft > div { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 5px 9px; border-left: 3px solid #27a879; background: #fff; }
.pqr-chat-reply-draft strong { color: #176b50; font-size: 11px; }
.pqr-chat-reply-draft span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #66776f; font-size: 11px; }
.pqr-chat-reply-draft button { width: 32px; border: 0; background: transparent; color: #596a63; font-size: 22px; cursor: pointer; }
.pqr-chat-attach { width: 38px; height: 44px; flex: 0 0 auto; border: 1px solid #d7e1dd; border-radius: 11px; background: #fff; color: #315047; font-size: 20px; cursor: pointer; }
.pqr-chat-attach:disabled { opacity: .5; cursor: not-allowed; }
.pqr-chat-image-draft { display: flex; flex-shrink: 0; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid #dce5e1; background: #f6faf8; }
.pqr-chat-image-draft[hidden] { display: none; }
.pqr-chat-image-draft img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 7px; object-fit: contain; background: #e6eee9; }
.pqr-chat-image-draft > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pqr-chat-image-draft strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #315047; font-size: 12px; }
.pqr-chat-image-draft span { color: #63756b; font-size: 11px; line-height: 1.35; }
.pqr-chat-image-draft button { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid #d7e1dd; border-radius: 8px; background: #fff; color: #5b6c62; font-size: 22px; cursor: pointer; }
.pqr-chat-image-draft button:disabled { opacity: .5; cursor: wait; }
.pqr-chat-composer textarea {
  min-width: 0;
  min-height: 44px;
  max-height: 132px;
  flex: 1;
  resize: none;
  overflow-y: auto;
  border: 1px solid #d3ded9;
  border-radius: 13px;
  padding: 11px 13px;
  outline: none;
  font: inherit;
  line-height: 1.35;
}
.pqr-chat-composer textarea:focus { border-color: #54a487; box-shadow: 0 0 0 3px rgba(53,184,135,.13); }
.pqr-chat-slash-menu { position: absolute; bottom: calc(100% + 7px); left: 14px; right: 14px; z-index: 8; display: flex; flex-direction: column; max-height: min(340px, 45vh); border: 1px solid #d7e5de; border-radius: 14px; background: #fff; box-shadow: 0 8px 30px rgba(22,55,44,.2); overflow: hidden; }
.pqr-chat-slash-menu[hidden] { display: none; }
.pqr-chat-slash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; padding: 11px 14px; border-bottom: 1px solid #e4ede8; background: #f6faf8; }
.pqr-chat-slash-head strong { color: #176b50; font-size: 13px; }
.pqr-chat-slash-head span { color: #718078; font-size: 10px; }
.pqr-chat-slash-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.pqr-chat-slash-option { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4px 12px; width: 100%; border: 0; border-bottom: 1px solid #eef3f0; padding: 11px 14px; background: #fff; color: #24453a; text-align: left; font: inherit; cursor: pointer; }
.pqr-chat-slash-option:hover, .pqr-chat-slash-option[aria-selected="true"] { background: #e9f6ef; box-shadow: inset 3px 0 #27a879; }
.pqr-chat-slash-option strong { font-size: 13px; color: #147452; overflow-wrap: anywhere; }
.pqr-chat-slash-title { align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; text-align: right; }
.pqr-chat-slash-preview { grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: #66796f; font-size: 12px; line-height: 1.4; }
.pqr-chat-slash-status { flex-shrink: 0; padding: 8px 14px; color: #718078; font-size: 11px; border-top: 1px solid #e4ede8; background: #fbfdfc; }
@media (max-width: 760px) {
  .pqr-chat-slash-menu { left: 8px; right: 8px; max-height: min(300px, 40dvh); }
  .pqr-chat-slash-option { gap: 4px 8px; padding: 12px; }
  .pqr-chat-slash-head span { display: none; }
}
.pqr-chat-send,
.pqr-chat-primary,
.pqr-chat-new-quick {
  border: 0;
  border-radius: 10px;
  background: var(--pqr-forest);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
.pqr-chat-send { flex-shrink: 0; min-height: 44px; padding: 0 17px; }
.pqr-chat-send:disabled { opacity: .5; cursor: not-allowed; }

.pqr-chat-quick-head { justify-content: space-between; }
.pqr-chat-quick-head .pqr-chat-icon-btn { display: inline-grid; place-items: center; }
.pqr-chat-provider-note { margin: 12px 14px; padding: 11px; border-radius: 10px; background: #f4f7f6; color: #64736d; font-size: 11px; line-height: 1.45; }
.pqr-chat-new-quick { margin: 0 14px 12px; padding: 10px; }
.pqr-chat-quick-list { flex: 1; padding: 0 10px 14px; }
.pqr-chat-quick-card { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; padding: 11px; border: 1px solid #e0e7e4; border-radius: 11px; margin-bottom: 8px; background: #fff; text-align: left; cursor: pointer; }
.pqr-chat-quick-card:hover { border-color: #9dc7b7; background: #f6fbf9; }
.pqr-chat-quick-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pqr-chat-quick-card code { color: #15805c; font-size: 11px; }
.pqr-chat-quick-card p { grid-column: 1 / 3; display: -webkit-box; overflow: hidden; margin: 1px 0 0; color: #68766f; font-size: 11px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pqr-chat-quick-edit { border: 0; background: transparent; color: #547069; font-size: 12px; cursor: pointer; }
.pqr-chat-quick-form { padding: 2px 14px 14px; overflow: auto; }
.pqr-chat-quick-form[hidden] { display: none; }
.pqr-chat-quick-form label { display: grid; gap: 5px; margin: 0 0 10px; color: #51615a; font-size: 11px; font-weight: 750; }
.pqr-chat-quick-form input,
.pqr-chat-quick-form textarea { width: 100%; border: 1px solid #d7e1dd; border-radius: 9px; padding: 9px; outline: 0; font: inherit; }
.pqr-chat-shortcut { display: flex; align-items: center; border: 1px solid #d7e1dd; border-radius: 9px; padding-left: 10px; }
.pqr-chat-shortcut input { border: 0; padding-left: 3px; }
.pqr-chat-quick-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 7px; }
.pqr-chat-primary,
.pqr-chat-secondary,
.pqr-chat-danger { border-radius: 8px; padding: 8px 10px; cursor: pointer; font-weight: 700; }
.pqr-chat-secondary { border: 1px solid #d3ded9; background: #fff; color: #3f564d; }
.pqr-chat-danger { border: 1px solid #efc8c6; background: #fff3f2; color: #b43e39; }
.pqr-chat-loading { padding: 24px 14px; color: #718078; font-size: 13px; text-align: center; }

.pqr-chat-lightbox { position: fixed; z-index: 2000; inset: 0; display: grid; grid-template-rows: auto minmax(0,1fr); background: rgba(13,24,20,.92); color: #fff; }
.pqr-chat-lightbox[hidden] { display: none; }
.pqr-chat-lightbox header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; background: rgba(18,36,30,.94); }
.pqr-chat-lightbox header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqr-chat-lightbox header button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 27px; cursor: pointer; }
.pqr-chat-lightbox > div { min-height: 0; display: grid; place-items: center; padding: 18px; }
.pqr-chat-lightbox img { max-width: 96vw; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; }

.pqr-chat-customer-backdrop { position: absolute; z-index: 28; inset: 0; border: 0; background: rgba(15, 35, 29, .22); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.pqr-chat-customer-panel { position: absolute; z-index: 30; top: 0; right: 0; bottom: 0; width: min(430px, calc(100% - 72px)); min-width: 330px; display: flex; flex-direction: column; border-left: 1px solid #d8e5df; background: #f7faf8; box-shadow: -18px 0 44px rgba(18, 52, 41, .2); transform: translateX(105%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
.pqr-chat-shell.customer-open .pqr-chat-customer-backdrop { opacity: 1; pointer-events: auto; }
.pqr-chat-shell.customer-open .pqr-chat-customer-panel { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.pqr-chat-customer-head { min-height: 72px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #dce7e2; background: #fff; }
.pqr-chat-customer-head > div { min-width: 0; display: grid; gap: 3px; }
.pqr-chat-customer-head strong { color: #213c32; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqr-chat-customer-head span { color: #6d7e76; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqr-chat-customer-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 15px; }
.pqr-customer-empty { display: grid; justify-items: center; gap: 10px; margin: 9vh auto 0; max-width: 310px; padding: 24px; text-align: center; }
.pqr-customer-empty-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: #ddf2e8; color: #17654b; font-size: 26px; }
.pqr-customer-empty h3 { margin: 0; color: #263d35; font-size: 17px; }
.pqr-customer-empty p { margin: 0 0 4px; color: #65766e; font-size: 12px; line-height: 1.5; }
.pqr-customer-primary, .pqr-customer-secondary { min-height: 38px; border-radius: 10px; padding: 8px 13px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.pqr-customer-primary { border: 0; background: #145442; color: #fff; }
.pqr-customer-secondary { border: 1px solid #cbdad4; background: #fff; color: #315047; }
.pqr-customer-primary:disabled, .pqr-customer-secondary:disabled { opacity: .55; cursor: wait; }
.pqr-customer-search { display: grid; gap: 12px; }
.pqr-customer-search-intro { margin: 0; color: #607169; font-size: 12px; line-height: 1.45; }
.pqr-customer-search-box { display: flex; gap: 7px; padding: 7px; border: 1px solid #d3e0da; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(24, 66, 52, .07); }
.pqr-customer-search-box input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 5px 7px; font: inherit; font-size: 13px; }
.pqr-customer-results { display: grid; gap: 8px; }
.pqr-customer-result { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; padding: 12px; border: 1px solid #dbe5e1; border-radius: 12px; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.pqr-customer-result:hover { border-color: #81b9a3; background: #f3faf7; box-shadow: 0 5px 16px rgba(22, 79, 58, .08); }
.pqr-customer-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #23473a; font-size: 13px; }
.pqr-customer-result span { color: #687970; font-size: 11px; }
.pqr-customer-result b { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #17654b; font-size: 17px; }
.pqr-customer-status { padding: 10px 11px; border-radius: 10px; background: #edf4f1; color: #50665c; font-size: 11px; line-height: 1.45; }
.pqr-customer-status.error { border: 1px solid #efc9c6; background: #fff1f0; color: #993b36; }
.pqr-customer-profile { display: grid; gap: 13px; }
.pqr-customer-profile-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; padding: 15px; border-radius: 15px; background: linear-gradient(135deg, #174f40, #23755a); color: #fff; box-shadow: 0 9px 24px rgba(20, 84, 66, .16); }
.pqr-customer-profile-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 17px; }
.pqr-customer-profile-card p { grid-column: 1; margin: 0; color: rgba(255,255,255,.78); font-size: 11px; }
.pqr-customer-profile-card button { grid-column: 2; grid-row: 1 / 3; align-self: center; border: 1px solid rgba(255,255,255,.38); border-radius: 9px; padding: 7px 9px; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.pqr-customer-kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.pqr-customer-kpi { padding: 11px; border: 1px solid #dce7e2; border-radius: 12px; background: #fff; }
.pqr-customer-kpi span { display: block; color: #708078; font-size: 10px; }
.pqr-customer-kpi strong { display: block; margin-top: 4px; color: #214b3b; font-size: 21px; }
.pqr-customer-filter { width: 100%; border: 1px solid #d7e3dd; border-radius: 10px; padding: 9px 11px; outline: 0; background: #fff; font: inherit; font-size: 12px; }
.pqr-customer-filter:focus { border-color: #66ac91; box-shadow: 0 0 0 3px rgba(50, 157, 116, .12); }
.pqr-customer-section { display: grid; gap: 8px; }
.pqr-customer-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pqr-customer-section-head h4 { margin: 0; color: #334c42; font-size: 13px; }
.pqr-customer-section-head span { padding: 3px 7px; border-radius: 999px; background: #dfede7; color: #35614f; font-size: 10px; font-weight: 800; }
.pqr-customer-card { overflow: hidden; border: 1px solid #dce6e1; border-radius: 13px; background: #fff; }
.pqr-customer-card summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; padding: 12px; list-style: none; cursor: pointer; }
.pqr-customer-card summary::-webkit-details-marker { display: none; }
.pqr-customer-card summary strong { color: #244a3b; font-size: 13px; }
.pqr-customer-card summary > span { color: #61736a; font-size: 11px; }
.pqr-customer-card summary > b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #17654b; font-size: 12px; }
.pqr-customer-card[open] summary { border-bottom: 1px solid #e5ece8; background: #f5faf8; }
.pqr-customer-card-body { display: grid; gap: 10px; padding: 11px 12px 13px; }
.pqr-customer-cancellation { display: grid; gap: 9px; padding: 14px; border: 1px solid #dfd1c4; border-radius: 15px; background: linear-gradient(145deg,#fff,#fff8f2); box-shadow: 0 6px 18px rgba(91,56,29,.06); }
.pqr-customer-cancellation > strong { color: #573d2b; font-size: 14px; }
.pqr-customer-cancellation > p { margin: 0; color: #77665a; font-size: 10px; line-height: 1.45; }
.pqr-customer-cancel-evidence { display: grid; gap: 3px; padding: 9px 10px; border: 1px dashed #d7bda9; border-radius: 10px; background: #fff; color: #775741; }
.pqr-customer-cancel-evidence.ready { border-style: solid; border-color: #72ad94; background: #eef8f3; color: #235d46; }
.pqr-customer-cancel-evidence b { font-size: 10px; }
.pqr-customer-cancel-evidence span { font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.pqr-customer-order-search { display: flex; gap: 6px; }
.pqr-customer-order-search input { min-width: 0; flex: 1; border: 1px solid #dacdc3; border-radius: 9px; padding: 8px 9px; outline: 0; font: inherit; font-size: 10px; }
.pqr-customer-order-result { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; padding: 10px; border: 1px solid #e0d5cc; border-radius: 11px; background: #fff; }
.pqr-customer-order-result > strong { color: #4f3b2e; font-size: 11px; }
.pqr-customer-order-result > span, .pqr-customer-order-result > small { color: #796b61; font-size: 9px; }
.pqr-customer-order-result > button { grid-column: 2; grid-row: 1 / 4; align-self: center; }
.pqr-customer-order-result > em { grid-column: 1 / -1; color: #9b4038; font-size: 9px; font-style: normal; }
.pqr-customer-danger { border: 1px solid #d99e94; border-radius: 9px; padding: 7px 9px; background: #fff1ef; color: #9c3c34; font: inherit; font-size: 9px; font-weight: 850; cursor: pointer; }
.pqr-customer-danger:disabled { opacity: .5; cursor: not-allowed; }
.pqr-customer-cancel-history { display: grid; gap: 6px; padding-top: 3px; }
.pqr-customer-cancel-history > b { color: #654b39; font-size: 10px; }
.pqr-customer-cancel-history > div { display: grid; gap: 2px; padding: 8px; border-radius: 9px; background: #f7f3ef; }
.pqr-customer-cancel-history strong { color: #543f31; font-size: 10px; }
.pqr-customer-cancel-history span, .pqr-customer-cancel-history small { color: #7d6b5f; font-size: 8px; line-height: 1.35; }
.pqr-customer-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.pqr-customer-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 7px; border-radius: 999px; background: #eef3f1; color: #53675e; font-size: 10px; font-weight: 750; }
.pqr-customer-badge.good { background: #dcf2e7; color: #126044; }
.pqr-customer-badge.warn { background: #fff0c7; color: #7a5810; }
.pqr-customer-badge.muted { background: #f0f1f1; color: #6c7471; }
.pqr-customer-products { display: grid; gap: 5px; }
.pqr-customer-product { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; padding: 7px 0; border-bottom: 1px dashed #e2e9e5; }
.pqr-customer-product:last-child { border-bottom: 0; }
.pqr-customer-product strong { color: #364d44; font-size: 11px; overflow-wrap: anywhere; }
.pqr-customer-product span { color: #718078; font-size: 10px; }
.pqr-customer-guide { display: grid; gap: 5px; padding: 11px; border-left: 4px solid #3b9d78; border-radius: 10px; background: #f1f8f5; }
.pqr-customer-guide-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 10px; }
.pqr-customer-guide-number { color: #173f31; font-size: 13px; font-weight: 850; overflow-wrap: anywhere; }
.pqr-customer-guide-status { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 9px; border-radius: 999px; background: #d8f1e6; color: #0e6042; font-size: 14px; font-weight: 900; line-height: 1.15; }
.pqr-customer-guide span { color: #526d62; font-size: 11px; line-height: 1.45; }
.pqr-customer-guide-carrier { font-weight: 800; }
.pqr-customer-guide-detail { color: #37594b !important; font-weight: 700; }
.pqr-customer-guide-source { color: #74857d !important; font-size: 10px !important; }
.pqr-customer-empty-list { padding: 13px; border: 1px dashed #cad9d3; border-radius: 11px; color: #6c7c74; font-size: 11px; text-align: center; }
.pqr-customer-freshness { margin: 2px 0 0; color: #78857f; font-size: 9px; line-height: 1.45; text-align: center; }

.pqr-chat-side-actions { display: flex; align-items: center; gap: 7px; }
.pqr-chat-incidents-open { min-height: 34px; border: 1px solid #c6dbd2; border-radius: 10px; padding: 0 10px; background: #eff8f4; color: #176247; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.pqr-chat-incidents-open:hover { border-color: #6eaa93; background: #dff1e9; }
.pqr-chat-incidents-open[hidden] { display: none; }

.pqr-customer-incident-card { display: grid; gap: 10px; padding: 14px; border: 1px solid #d8e7e0; border-radius: 15px; background: linear-gradient(145deg, #fff, #f1f8f5); box-shadow: 0 7px 20px rgba(25, 70, 55, .07); }
.pqr-customer-incident-card > header { display: grid; gap: 3px; }
.pqr-customer-incident-card > header span { color: #17805c; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.pqr-customer-incident-card > header strong { color: #234a3b; font-size: 14px; }
.pqr-customer-incident-card > header small { color: #6c7b75; font-size: 10px; line-height: 1.4; }
.pqr-customer-incident-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.pqr-customer-incident-form label { display: grid; gap: 4px; color: #52675e; font-size: 10px; font-weight: 800; }
.pqr-customer-incident-form label.full { grid-column: 1 / -1; }
.pqr-customer-incident-form select, .pqr-customer-incident-form input, .pqr-customer-incident-form textarea { width: 100%; border: 1px solid #d4e1dc; border-radius: 9px; padding: 8px 9px; outline: 0; background: #fff; color: #29473b; font: inherit; font-size: 11px; }
.pqr-customer-incident-form textarea { min-height: 76px; resize: vertical; line-height: 1.4; }
.pqr-customer-incident-form select:focus, .pqr-customer-incident-form input:focus, .pqr-customer-incident-form textarea:focus { border-color: #61aa8d; box-shadow: 0 0 0 3px rgba(50, 157, 116, .11); }
.pqr-customer-incident-form button { grid-column: 1 / -1; }
.pqr-customer-incident-products { grid-column: 1 / -1; display: grid; gap: 8px; padding: 10px; border: 1px solid #d8e7e0; border-radius: 11px; background: rgba(255,255,255,.72); }
.pqr-customer-incident-products[hidden] { display: none; }
.pqr-customer-incident-products-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #52675e; }
.pqr-customer-incident-products-head span { font-size: 10px; font-weight: 850; }
.pqr-customer-incident-products-head small { color: #84928c; font-size: 9px; }
.pqr-customer-incident-product-rows { display: grid; gap: 6px; }
.pqr-customer-incident-product-row { display: grid; grid-template-columns: minmax(0,1fr) 34px; gap: 6px; }
.pqr-customer-incident-product-row input { min-width: 0; }
.pqr-customer-incident-form .pqr-customer-incident-product-remove { grid-column: auto; min-height: 34px; border: 1px solid #e4cbc7; border-radius: 9px; background: #fff7f5; color: #9a4639; font-size: 18px; line-height: 1; cursor: pointer; }
.pqr-customer-incident-product-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pqr-customer-incident-form .pqr-customer-incident-product-actions button { grid-column: auto; min-height: 34px; padding: 7px 10px; font-size: 10px; }
.pqr-customer-incident-evidence { grid-column: 1 / -1; display: grid; gap: 7px; }
.pqr-customer-incident-dropzone { display: grid; justify-items: center; gap: 3px; padding: 16px 12px; border: 1.5px dashed #92b9a8; border-radius: 12px; background: #f4faf7; color: #386252; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.pqr-customer-incident-dropzone:hover, .pqr-customer-incident-dropzone:focus, .pqr-customer-incident-dropzone.dragging { border-color: #25825f; background: #e8f6ef; outline: 0; transform: translateY(-1px); }
.pqr-customer-incident-dropzone strong { font-size: 11px; }
.pqr-customer-incident-dropzone span { color: #71847b; font-size: 9px; line-height: 1.35; }
.pqr-customer-incident-evidence-list { display: grid; gap: 5px; }
.pqr-customer-incident-evidence-row { display: grid; grid-template-columns: 30px minmax(0,1fr) 30px; align-items: center; gap: 7px; padding: 7px; border: 1px solid #dce8e2; border-radius: 10px; background: #fff; }
.pqr-customer-incident-evidence-row > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #e7f5ef; color: #237354; font-style: normal; font-size: 13px; }
.pqr-customer-incident-evidence-row > i.video { background: #e8eef8; color: #365f91; }
.pqr-customer-incident-evidence-row > div { min-width: 0; display: grid; gap: 1px; }
.pqr-customer-incident-evidence-row strong, .pqr-customer-incident-evidence-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pqr-customer-incident-evidence-row strong { color: #355447; font-size: 10px; }
.pqr-customer-incident-evidence-row small, .pqr-customer-incident-evidence-help { color: #7d8b85; font-size: 9px; }
.pqr-customer-incident-form .pqr-customer-incident-evidence-remove { grid-column: auto; width: 30px; min-height: 30px; border: 1px solid #ead3cf; border-radius: 8px; padding: 0; background: #fff8f6; color: #9a4639; font-size: 17px; cursor: pointer; }
.pqr-incident-evidence-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pqr-incident-evidence-link { border: 1px solid #c9ddd4; border-radius: 999px; padding: 4px 8px; background: #eef8f3; color: #26694f; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.pqr-incident-evidence-link:hover { border-color: #6ea88f; background: #def1e8; }
.pqr-customer-incident-history { display: grid; gap: 7px; }
.pqr-customer-incident-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; padding: 10px; border: 1px solid #e0e9e5; border-radius: 11px; background: #fff; }
.pqr-customer-incident-row strong { color: #2b5142; font-size: 11px; }
.pqr-customer-incident-row p { grid-column: 1 / -1; margin: 0; color: #687a71; font-size: 10px; line-height: 1.4; }
.pqr-customer-incident-row small { color: #839089; font-size: 9px; }

.pqr-incident-dashboard { position: absolute; z-index: 45; inset: 0; display: flex; flex-direction: column; min-width: 0; background: #eef3f1; }
.pqr-incident-dashboard[hidden] { display: none; }
.pqr-incident-dashboard-head { min-height: 86px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; background: linear-gradient(120deg, #123f33, #1f6f55); color: #fff; }
.pqr-incident-dashboard-head > div { display: grid; gap: 2px; }
.pqr-incident-dashboard-head span { color: #bde1d2; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.pqr-incident-dashboard-head strong { font-size: 20px; }
.pqr-incident-dashboard-head small { color: rgba(255,255,255,.72); font-size: 11px; }
.pqr-incident-dashboard-head .pqr-chat-icon-btn { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; }
.pqr-incident-dashboard-body { min-height: 0; flex: 1; display: grid; gap: 13px; overflow-y: auto; padding: 15px 18px 24px; }
.pqr-incident-filters { display: grid; grid-template-columns: 130px 130px minmax(170px,1fr) 140px minmax(220px,1.3fr) auto; align-items: end; gap: 8px; padding: 12px; border: 1px solid #dce7e2; border-radius: 14px; background: #fff; }
.pqr-incident-filters label { display: grid; gap: 4px; min-width: 0; color: #61736a; font-size: 10px; font-weight: 800; }
.pqr-incident-filters input, .pqr-incident-filters select { min-width: 0; width: 100%; min-height: 38px; border: 1px solid #d6e1dd; border-radius: 9px; padding: 7px 9px; outline: 0; background: #f9fbfa; color: #29473b; font: inherit; font-size: 11px; }
.pqr-incident-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.pqr-incident-kpis > div { padding: 13px 15px; border: 1px solid #dce7e2; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(25,70,55,.05); }
.pqr-incident-kpis span, .pqr-incident-kpis small { display: block; color: #738078; font-size: 10px; }
.pqr-incident-kpis strong { display: block; margin: 4px 0 1px; color: #194e3c; font-size: 26px; }
.pqr-incident-insights { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(290px,.75fr); gap: 12px; }
.pqr-incident-insights > section, .pqr-incident-list-panel { display: grid; gap: 11px; padding: 14px; border: 1px solid #dce7e2; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(25,70,55,.05); }
.pqr-incident-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pqr-incident-section-head > div { display: grid; gap: 2px; }
.pqr-incident-section-head span { color: #738179; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.pqr-incident-section-head strong { color: #294b3e; font-size: 13px; }
.pqr-incident-section-head > b { padding: 4px 8px; border-radius: 999px; background: #e4f2ec; color: #267052; font-size: 10px; }
.pqr-incident-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.pqr-incident-category-card { display: grid; gap: 7px; min-height: 82px; padding: 10px; border: 1px solid #e0e9e5; border-radius: 11px; background: #f9fbfa; }
.pqr-incident-category-card > div { display: flex; justify-content: space-between; gap: 8px; color: #3e5b50; font-size: 10px; }
.pqr-incident-category-card strong { color: #174e3a; font-size: 19px; }
.pqr-incident-category-bar { height: 5px; overflow: hidden; border-radius: 999px; background: #e4ece8; }
.pqr-incident-category-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#31a877,#176b50); }
.pqr-incident-trend { min-height: 132px; display: flex; align-items: end; gap: 5px; padding-top: 7px; }
.pqr-incident-trend-bar { min-width: 12px; flex: 1; display: grid; align-content: end; justify-items: center; gap: 4px; height: 125px; }
.pqr-incident-trend-bar i { width: min(24px,80%); min-height: 3px; border-radius: 5px 5px 2px 2px; background: linear-gradient(#31a877,#176b50); }
.pqr-incident-trend-bar b { color: #31584a; font-size: 9px; }
.pqr-incident-trend-bar span { color: #86918c; font-size: 8px; writing-mode: vertical-rl; transform: rotate(180deg); }
.pqr-incident-table-wrap { overflow: auto; border: 1px solid #e2e9e6; border-radius: 11px; }
.pqr-incident-table-wrap table { width: 100%; min-width: 980px; border-collapse: collapse; }
.pqr-incident-table-wrap th { position: sticky; top: 0; z-index: 1; padding: 9px; background: #f0f6f3; color: #66776f; font-size: 9px; text-align: left; text-transform: uppercase; }
.pqr-incident-table-wrap td { padding: 9px; border-top: 1px solid #edf1ef; color: #42564e; font-size: 10px; vertical-align: top; }
.pqr-incident-detail { max-width: 330px; white-space: normal; line-height: 1.45; }
.pqr-incident-state { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #fff0c7; color: #7a5810; font-size: 9px; font-weight: 850; }
.pqr-incident-state.resolved { background: #dcf2e7; color: #126044; }
.pqr-incident-row-action { border: 1px solid #cbdad4; border-radius: 8px; padding: 5px 7px; background: #fff; color: #315047; font: inherit; font-size: 9px; font-weight: 750; cursor: pointer; }
.pqr-incident-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: #66776f; font-size: 10px; }

@media (max-width: 1240px) {
  .pqr-chat-shell, .pqr-chat-shell.quick-open { grid-template-columns: minmax(310px, 360px) minmax(390px, 1fr); }
  .pqr-chat-quick { position: absolute; z-index: 20; top: 0; right: 0; bottom: 0; width: min(330px, 92vw); transform: translateX(105%); transition: transform .18s ease; box-shadow: -12px 0 36px rgba(22,49,41,.17); }
  .pqr-chat-shell { position: relative; }
  .pqr-chat-shell.quick-open .pqr-chat-quick { transform: translateX(0); }
  .pqr-chat-quick-head .pqr-chat-icon-btn { display: inline-grid; place-items: center; }
  .pqr-incident-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pqr-incident-filter-search { grid-column: span 2; }
  .pqr-incident-insights { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .pqr-chat-shell, .pqr-chat-shell.quick-open { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 120px); height: calc(100dvh - 120px); min-height: 250px; }
  .pqr-chat-label-popover { left: auto; right: 0; }
  .pqr-chat-quick { width: min(330px, calc(100% - 64px)); }
  .pqr-chat-main { display: none; }
  .pqr-chat-shell.chat-open .pqr-chat-conversations { display: none; }
  .pqr-chat-shell.chat-open .pqr-chat-main { display: flex; }
  .pqr-chat-mobile-back { display: inline-grid; place-items: center; }
  .pqr-chat-bubble { max-width: 88%; }
  .pqr-chat-reply-action { opacity: 1; }
  .pqr-chat-live { display: none; }
  .pqr-chat-customer-toggle { padding: 0 9px; font-size: 0; }
  .pqr-chat-customer-toggle::before { content: "👤"; font-size: 17px; }
  .pqr-chat-customer-panel { width: 100%; min-width: 0; }
  .pqr-chat-customer-backdrop { display: none; }
  .pqr-chat-composer { padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  .pqr-chat-incidents-open { padding: 0 8px; font-size: 10px; }
  .pqr-incident-dashboard-head { min-height: 76px; padding: 11px 13px; }
  .pqr-incident-dashboard-head strong { font-size: 16px; }
  .pqr-incident-dashboard-head small { display: none; }
  .pqr-incident-dashboard-body { padding: 10px; }
  .pqr-incident-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pqr-incident-filter-search { grid-column: 1 / -1; }
  .pqr-incident-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pqr-incident-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
