/* A conversa usa a altura disponível em telas menores que Full HD. */
@media (max-width: 1919px) {
  .notifier-shell.attendance-compact {
    inset: 0;
    border-radius: 0;
  }

  .notifier-shell.attendance-compact .shell-top {
    min-height: 46px;
    padding: 3px clamp(8px, 1vw, 16px);
    gap: 8px;
    background: var(--fundo);
  }

  .notifier-shell.attendance-compact .saudacao,
  .notifier-shell.attendance-compact .relogio,
  .notifier-shell.attendance-compact .data-topo {
    display: none;
  }

  .notifier-shell.attendance-compact .topo-acoes {
    margin-left: auto;
  }

  .notifier-shell.attendance-compact .sidebar-user {
    flex-direction: column;
    gap: 3px;
  }

  .notifier-shell.attendance-compact #attendance-sidebar-greeting {
    display: block;
    max-width: 70px;
    color: var(--creme);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .notifier-shell.attendance-compact .content {
    gap: 0;
    padding: 0 clamp(6px, 1vw, 14px) 8px;
  }

  .notifier-shell.attendance-compact #inbox-section {
    padding: 8px;
    border-radius: 14px;
  }

  .notifier-shell.attendance-compact #inbox-section .section-heading {
    min-height: 36px;
    align-items: center;
    gap: 8px;
  }

  .notifier-shell.attendance-compact #inbox-section .section-heading > div {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
  }

  .notifier-shell.attendance-compact #inbox-section .section-heading .eyebrow {
    display: none;
  }

  .notifier-shell.attendance-compact #inbox-section .inbox-heading-title {
    display: block;
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
  }

  .notifier-shell.attendance-compact #inbox-section .inbox-filter {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: none;
    margin-left: auto;
    font-size: 11px;
    white-space: nowrap;
  }

  .notifier-shell.attendance-compact #inbox-section .inbox-filter select {
    width: clamp(145px, 16vw, 205px);
    min-height: 36px;
    padding: 6px 9px;
  }

  .notifier-shell.attendance-compact .inbox-layout {
    margin-top: 5px;
  }

  .notifier-shell.attendance-compact .chat-header {
    position: relative;
    z-index: 2;
  }

  .notifier-shell.attendance-compact .chat-header-actions,
  .notifier-shell.attendance-compact .chat-controls {
    position: relative;
    z-index: 3;
    pointer-events: auto;
  }

  .notifier-shell.attendance-compact #chat-options-toggle:not([hidden]) {
    display: inline-flex;
  }

  .notifier-shell.attendance-compact #chat-options-toggle,
  .notifier-shell.attendance-compact #conversation-crm-toggle {
    touch-action: manipulation;
    cursor: pointer;
  }
}

@media (min-width: 851px) and (max-width: 1919px) {
  .notifier-shell.attendance-compact .inbox-layout,
  .notifier-shell.attendance-compact .inbox-layout.has-crm {
    height: calc(100dvh - 113px);
    min-height: 280px;
    max-height: none;
  }

  .notifier-shell.attendance-compact .chat-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
    padding: 7px 9px;
  }

  .notifier-shell.attendance-compact .chat-header > div:first-child {
    flex: 1 1 150px;
    min-width: 0;
    overflow: hidden;
  }

  .notifier-shell.attendance-compact .chat-classification {
    order: 2;
    flex: 0 1 auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .notifier-shell.attendance-compact .chat-classification label {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 0;
  }

  .notifier-shell.attendance-compact .chat-classification select {
    width: clamp(150px, 15vw, 210px);
    min-height: 38px;
    font-size: 12px;
  }

  .notifier-shell.attendance-compact .chat-classification button,
  .notifier-shell.attendance-compact .chat-header-actions button {
    min-height: 38px;
    padding: 7px 10px;
  }

  .notifier-shell.attendance-compact .chat-header-actions {
    order: 3;
    flex: 0 0 auto;
    margin: 0;
    gap: 5px;
  }

  .notifier-shell.attendance-compact .chat-header .chat-controls {
    order: 4;
    flex: 1 0 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 6px;
  }

  .notifier-shell.attendance-compact .chat-header.chat-options-open .chat-controls {
    display: grid;
  }
}

@media (max-width: 850px) {
  .notifier-shell.attendance-compact .shell-top {
    padding: 5px 9px;
  }

  .notifier-shell.attendance-compact .topo-acoes,
  .notifier-shell.attendance-compact .sidebar-context {
    width: 100%;
  }

  .notifier-shell.attendance-compact #inbox-section .section-heading {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .notifier-shell.attendance-compact #inbox-section .inbox-filter {
    flex: 0 1 auto;
  }

  .notifier-shell.attendance-compact #inbox-section .inbox-filter select {
    width: min(42vw, 190px);
  }

  .notifier-shell.attendance-compact .sidebar-user {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .notifier-shell.attendance-compact #attendance-sidebar-greeting {
    max-width: 180px;
    text-align: left;
  }

  .notifier-shell.attendance-compact .chat-classification {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 6px;
  }

  .notifier-shell.attendance-compact .chat-classification label {
    flex: 1 1 180px;
    min-width: 0;
  }

  .notifier-shell.attendance-compact .chat-classification select {
    min-height: 44px;
  }

  .notifier-shell.attendance-compact .chat-header-actions button {
    min-height: 44px;
  }
}

@media (min-width: 851px) and (max-width: 1200px) {
  .notifier-shell.attendance-compact .inbox-layout.has-crm {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 980px) {
  .notifier-shell.attendance-compact #inbox-section .inbox-heading-title {
    display: none;
  }
}

@media (max-width: 540px) {
  .notifier-shell.attendance-compact #inbox-section .section-heading {
    gap: 5px;
  }

  .notifier-shell.attendance-compact #inbox-section .inbox-heading-title {
    font-size: 14px;
  }

  .notifier-shell.attendance-compact #inbox-section .inbox-filter {
    font-size: 0;
  }

  .notifier-shell.attendance-compact #inbox-section .inbox-filter select {
    width: min(45vw, 175px);
    font-size: 12px;
  }
}
