/*
 * CODSHIPX_AI_R72_B2_INBOX_UI_CORRECTIVE
 * Inbox-only Full View visual corrective.
 */

/* Assignment stays backend-capable but is intentionally hidden until
   the dedicated Staff Accounts / roles feature is introduced. */
.inbox-shell.r83-live-inbox
  .chat-head-actions
  > select[aria-label="Assign conversation"] {
  display: none !important;
}

.inbox-shell.r83-live-inbox .chat-head-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.inbox-shell.r83-live-inbox
  .chat-head-actions
  > select[aria-label="Conversation status"] {
  height: 40px !important;
  min-width: 118px !important;
  max-width: 150px !important;
  margin: 0 !important;
}

.cx-r72-fullview-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid #dbe4ef;
  border-radius: 11px;
  background: #fff;
  color: #13233f;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(15,35,65,.06);
  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.cx-r72-fullview-toggle:hover {
  transform: translateY(-1px);
  border-color: #b9c9dc;
  box-shadow: 0 6px 18px rgba(15,35,65,.10);
}

.cx-r72-fullview-toggle:focus-visible {
  outline: 3px solid rgba(132,204,22,.24);
  outline-offset: 2px;
}

.cx-r72-fullview-icon {
  font-size: 15px;
  line-height: 1;
}

body.cx-r72-inbox-fullview-active {
  overflow: hidden !important;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: grid !important;
  grid-template-columns: minmax(300px,360px) minmax(0,1fr) !important;
  grid-template-rows: minmax(0,1fr) !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #f7f9fc !important;
  overflow: hidden !important;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview > .context-pane {
  display: none !important;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview > .inbox-list {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview
  > .inbox-list
  .conversation-stack {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview > .chat-pane {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview .chat-head {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex: 0 0 auto !important;
  min-height: 74px !important;
  z-index: 10 !important;
  background: #fff !important;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview .r83-live-banner {
  position: relative !important;
  flex: 0 0 auto !important;
  z-index: 8 !important;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview .message-canvas {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview .composer {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex: 0 0 auto !important;
  z-index: 10 !important;
  background: #fff !important;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview
  .cx-r72-fullview-toggle {
  color: #fff;
  background: #10213d;
  border-color: #10213d;
  box-shadow: 0 7px 20px rgba(8,24,49,.18);
}

@media (max-width: 900px) {
  .inbox-shell.r83-live-inbox.cx-r72-inbox-fullview {
    grid-template-columns: 1fr !important;
  }

  .cx-r72-fullview-toggle {
    padding: 0 10px;
  }

  .inbox-shell.r83-live-inbox .chat-head-actions {
    gap: 7px !important;
  }

  .inbox-shell.r83-live-inbox
    .chat-head-actions
    > select[aria-label="Conversation status"] {
    min-width: 104px !important;
  }
}

/*
 * CODSHIPX_AI_R72_B2_R2_INBOX_UI_FINAL
 * Final scoped Inbox visual cleanup.
 */

.inbox-shell.r83-live-inbox
  [data-cx-r72-assignment-select-hidden="1"],
.inbox-shell.r83-live-inbox
  [data-cx-r72-assignment-filter-hidden="1"] {
  display: none !important;
}

.inbox-shell.r83-live-inbox
  [data-cx-r72-conversation-actions="1"] {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.inbox-shell.r83-live-inbox
  [data-cx-r72-conversation-actions="1"]
  > .cx-r72-fullview-toggle {
  order: -1 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.inbox-shell.r83-live-inbox
  [data-cx-r72-status-select="1"] {
  margin: 0 !important;
  min-width: 116px !important;
  max-width: 145px !important;
  height: 40px !important;
  flex: 0 0 auto !important;
}

.inbox-shell.r83-live-inbox
  [data-cx-r72-assignment-meta-cleaned="1"] {
  text-transform: lowercase;
}

.inbox-shell.r83-live-inbox
  .inbox-list-head {
  align-items: center !important;
  min-width: 0 !important;
}

.inbox-shell.r83-live-inbox
  .inbox-list-head
  .cx-r72-fullview-toggle {
  display: none !important;
}

.inbox-shell.r83-live-inbox.cx-r72-inbox-fullview
  [data-cx-r72-conversation-actions="1"]
  > .cx-r72-fullview-toggle {
  display: inline-flex !important;
  color: #fff !important;
  background: #10213d !important;
  border-color: #10213d !important;
}

.inbox-shell.r83-live-inbox:not(.cx-r72-inbox-fullview)
  [data-cx-r72-conversation-actions="1"]
  > .cx-r72-fullview-toggle {
  display: inline-flex !important;
}

@media (max-width: 1100px) {
  .inbox-shell.r83-live-inbox
    [data-cx-r72-conversation-actions="1"] {
    gap: 7px !important;
  }

  .inbox-shell.r83-live-inbox
    [data-cx-r72-status-select="1"] {
    min-width: 104px !important;
  }
}
