   REGION: CALENDARIO / FULLCALENDAR
   ========================================================= */
.fc .fc-button:focus,
.fc .fc-button:focus-visible,
.fc .fc-button.fc-button-active,
.fc .fc-button.fc-button-active:focus,
.fc .fc-button.fc-button-active:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.fc .fc-button {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-col-header-cell-cushion:hover,
.fc .fc-col-header-cell-cushion:focus,
.fc .fc-col-header-cell-cushion:active {
  color: inherit !important;
  text-decoration: none !important;
}

.fc .fc-daygrid-day-number,
.fc .fc-daygrid-day-number:hover,
.fc .fc-daygrid-day-number:focus,
.fc .fc-daygrid-day-number:active {
  color: #212529 !important;
  cursor: default !important;
  font-weight: 400 !important;
  pointer-events: none !important;
  text-decoration: none !important;
}

.fc .fc-daygrid-day-number .calendar-month-start {
  font-weight: 700;
}

.fc .fc-list-day-text,
.fc .fc-list-day-side-text,
.fc .fc-list-day-text:hover,
.fc .fc-list-day-side-text:hover,
.fc .fc-list-day-text:focus,
.fc .fc-list-day-side-text:focus,
.fc .fc-list-day-text:active,
.fc .fc-list-day-side-text:active {
  color: #212529 !important;
  cursor: default !important;
  pointer-events: none !important;
  text-decoration: none !important;
}

.fc .fc-list-day > th {
  z-index: 5 !important;
  background: #f2f2f2 !important;
  opacity: 1 !important;
  isolation: isolate;
}

.fc .fc-list-day-cushion {
  position: relative;
  z-index: 1;
  background: #f2f2f2 !important;
  opacity: 1 !important;
}

.fc .fc-list-event {
  position: relative;
  z-index: 0;
}

.fc .fc-daygrid-event,
.fc .fc-daygrid-event .fc-event-main,
.fc .fc-daygrid-event .fc-event-title,
.fc .fc-timegrid-event .fc-event-title,
.fc .fc-list-event-title {
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.fc .fc-daygrid-week-number,
.fc .calendar-week-number-label {
  color: #495057 !important;
  background: transparent !important;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: none !important;
}

.fc .calendar-week-number-label {
  cursor: pointer !important;
}

.fc .fc-daygrid-event a {
  display: block !important;
}

.fc .fc-view-list .fc-event-title {
  white-space: pre-line !important;
}

.fc .fc-daygrid-event .fc-event-main {
  padding: 0 !important;
}

.fc .fc-daygrid-event .fc-event-title,
.fc .fc-daygrid-event .fc-event-time {
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.2em !important;
}

.fc .fc-event-resizer {
  display: none !important;
}

.fc .fc-daygrid-event .fc-event-main div[style*="font-size:.85em"] span {
  color: #000 !important;
}

.fc .fc-daygrid-event .fc-event-main div[style*="font-size:.85em"] {
  overflow-wrap: anywhere;
  white-space: normal;
}

.calendar-event-product {
  color: #000;
  font-size: .85em;
  overflow-wrap: anywhere;
  white-space: normal;
}

.calendar-event-pedido-edit {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.calendar-event-pedido-edit:hover,
.calendar-event-pedido-edit:focus-visible {
  background: transparent;
  color: #ced4da;
  outline: none;
  text-decoration: none;
}

.calendar-popover-preparing {
  visibility: hidden !important;
}

.popover.calendar-event-popover {
  min-width: 0 !important;
  max-width: min(900px, calc(100vw - 24px)) !important;
}

.popover.calendar-event-popover .popover-body,
.popover.calendar-event-popover .pedido-bloco,
.popover.calendar-event-popover .pedido-bloco > div {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.popover.calendar-event-popover .pedido-dados {
  min-width: 0;
  flex-wrap: wrap;
}

@media (max-width: 992px) and (orientation: portrait),
       (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fc .fc-daygrid-event .calendar-event-details,
  .fc .fc-daygrid-event .calendar-event-pedido-prefix,
  .fc .fc-daygrid-event.evento-representacao-transbordo .calendar-event-representada {
    display: none !important;
  }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .calendar-legend-line .legend-item {
    align-items: flex-start !important;
    line-height: 1.25;
    white-space: normal;
  }

  .calendar-legend-line .legend-item .dot {
    margin-top: .18em;
  }

  .fc .fc-daygrid-day-number {
    padding: 3px 4px;
    font-size: .72rem;
    line-height: 1;
    white-space: nowrap;
  }

  .fc .fc-daygrid-week-number,
  .fc .calendar-week-number-label {
    padding: 3px 2px;
    font-size: .62rem;
    line-height: 1;
    white-space: nowrap;
  }
}

.fc .fc-daygrid-event.evento-agendado,
.fc .fc-list-event.evento-agendado {
  border: none !important;
  color: #fff !important;
  background-color: #718ba7 !important;
}

.fc .fc-daygrid-event.evento-prev,
.fc .fc-list-event.evento-prev,
.fc-event.evento-prev {
  border: none;
  color: #000 !important;
  background-color: #edc33f !important;
}

.fc .fc-daygrid-event.evento-logistica,
.fc .fc-list-event.evento-logistica {
  border: none !important;
  color: #fff !important;
  background-color: #43976d !important;
}

.fc .fc-daygrid-event.evento-coleta,
.fc .fc-list-event.evento-coleta {
  border-color: #4f8ee0 !important;
  color: #fff !important;
  background-color: #4f8ee0 !important;
}

.fc .fc-daygrid-event.evento-agendado a,
.fc .fc-daygrid-event.evento-agendado .fc-event-title,
.fc .fc-daygrid-event.evento-logistica a,
.fc .fc-daygrid-event.evento-logistica .fc-event-title {
  color: #fff !important;
}

.fc .fc-list-event:hover {
  background-color: #fff !important;
}

.fc .fc-list-event:hover,
.fc .fc-list-event:hover .fc-list-event-title,
.fc .fc-list-event:hover .fc-list-event-time,
.fc .fc-list-event:hover a {
  color: #000 !important;
}

.fc .fc-list-event.evento-agendado,
.fc .fc-list-event.evento-prev,
.fc .fc-list-event.evento-logistica,
.fc .fc-list-event.evento-coleta,
.fc .fc-list-event.evento-representacao-transbordo {
  border: 0 !important;
  color: #212529 !important;
  background-color: #fff !important;
}

.fc .fc-list-event.evento-agendado a,
.fc .fc-list-event.evento-prev a,
.fc .fc-list-event.evento-logistica a,
.fc .fc-list-event.evento-coleta a,
.fc .fc-list-event.evento-representacao-transbordo a,
.fc .fc-list-event.evento-agendado .fc-event-title,
.fc .fc-list-event.evento-prev .fc-event-title,
.fc .fc-list-event.evento-logistica .fc-event-title,
.fc .fc-list-event.evento-coleta .fc-event-title,
.fc .fc-list-event.evento-representacao-transbordo .fc-event-title {
  color: #212529 !important;
}

.fc .fc-list-event.evento-agendado .fc-list-event-dot {
  border-color: #718ba7 !important;
}

.fc .fc-list-event.evento-prev .fc-list-event-dot {
  border-color: #edc33f !important;
}

.fc .fc-list-event.evento-logistica .fc-list-event-dot {
  border-color: #43976d !important;
}

.fc .fc-list-event.evento-coleta .fc-list-event-dot {
  border-color: #4f8ee0 !important;
}

.fc .fc-daygrid-event.evento-representacao-transbordo {
  border: none !important;
  color: #fff !important;
  background-color: #a78bfa !important;
}

.fc .fc-event.calendar-event-past {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, .25) !important;
}

.fc .fc-list-event.calendar-event-past {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, .1) !important;
}

.fc .fc-list-event.evento-representacao-transbordo .fc-list-event-dot {
  border-color: #a78bfa !important;
}

.fc .fc-daygrid-event.evento-representacao-transbordo .calendar-event-pedido,
.fc .fc-daygrid-event.evento-representacao-transbordo .calendar-event-pedido strong {
  color: #fff !important;
}

.fc .evento-representacao-transbordo .calendar-event-representada {
  color: #000 !important;
  font-size: .85em;
  overflow-wrap: anywhere;
  white-space: normal;
}

.calendar-legend-line {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  align-content: start;
  gap: 10px 30px;
  margin-bottom: 12px;
  font-size: .85rem;
  font-weight: 500;
  opacity: .9;
}

.calendar-legend-toggle {
  display: none;
  margin-bottom: 10px;
}

.calendar-actions .submenu-button {
  height: 42px;
  min-height: 42px;
  padding: 10px 22px;
  line-height: 1.2;
}

#modalListaRecebimentos .recebimentos-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 10px;
}

#modalListaRecebimentos .modal-body {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

#modalListaRecebimentos .recebimentos-list-text {
  flex: 1 1 auto;
  min-width: 0;
}

#modalListaRecebimentos .recebimentos-list-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: #212529;
  font-weight: 700;
  line-height: 1.25;
}

#modalListaRecebimentos .recebimentos-list-pedido {
  flex: 0 0 auto;
}

#modalListaRecebimentos .recebimentos-list-descricao {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#modalListaRecebimentos .recebimentos-list-details {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  margin-top: 4px;
  color: #5f666d;
  font-size: .9rem;
  line-height: 1.25;
}

#modalListaRecebimentos .recebimentos-list-details span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#modalListaRecebimentos .recebimentos-list-complemento {
  grid-column: 1 / -1;
}

.estoque-actions .submenu-button {
  height: 42px;
  min-height: 42px;
  padding: 10px 22px;
  line-height: 1.2;
}

.calendar-host {
  min-height: 600px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dot {
  display: inline-block;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.dot.coleta { background: #4f8ee0; }
.dot.agendado { background: #718ba7; }
.dot.prev { background: #edc33f; }
.dot.logistica { background: #43976d; }
.dot.transbordo-representacao { background: #a78bfa; }

.fc .fc-event.evento-operacao-avulsa {
  background: #98a0a9 !important;
  border-color: #94a3b8 !important;
  color: #334155 !important;
}

.fc .fc-event.evento-operacao-avulsa .operacao-avulsa-numero,
.fc .fc-event.evento-operacao-avulsa .operacao-avulsa-numero strong {
  color: #fff !important;
  font-weight: 700;
}

.fc .fc-event.evento-operacao-avulsa .operacao-avulsa-titulo,
.fc .fc-event.evento-operacao-avulsa .operacao-avulsa-observacao,
.fc .fc-event.evento-operacao-avulsa .operacao-avulsa-observacao span {
  color: #000 !important;
  font-weight: 400 !important;
}

.fc .fc-event.evento-operacao-avulsa .operacao-avulsa-titulo,
.fc .fc-event.evento-operacao-avulsa .operacao-avulsa-observacao {
  font-size: .85em;
}

.fc .fc-event.evento-operacao-avulsa .operacao-avulsa-observacao .compass-lucide {
  color: #fff !important;
  stroke: currentColor;
}

.fc .fc-list-event.evento-operacao-avulsa > td {
  background: #98a0a9 !important;
}

#modalOperacaoAvulsa .modal-content {
  position: relative;
}

#modalOperacaoAvulsa .modal-header {
  position: static;
  border-bottom: 0;
}

#modalOperacaoAvulsa .modal-header .logistica-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  margin: 0;
}

#modalOperacaoAvulsa .modal-header #copiarOperacaoAvulsa {
  position: absolute;
  top: 16px;
  right: 52px;
  z-index: 2;
  margin: 0;
}

@media (max-width: 1200px) {
  .calendar-legend-line {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .fc .fc-toolbar {
    flex-wrap: nowrap;
    gap: .25rem;
  }

  .fc .fc-toolbar-title {
    font-size: .95rem;
    white-space: nowrap;
  }

  .fc .fc-toolbar-chunk {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .fc .fc-toolbar-chunk:nth-child(2) {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .fc .fc-button {
    padding: .24rem .42rem;
    font-size: .74rem;
    line-height: 1.2;
  }

  .fc .fc-button-group {
    gap: 2px;
  }

  .fc .fc-daygrid-event,
  .fc .fc-list-event-title {
    font-size: .82rem;
  }

  .calendar-event-pedido {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.15;
  }
}

@media (max-width: 768px) {
  .fc .fc-toolbar {
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .25rem;
  }

  .fc .fc-toolbar-chunk:nth-child(1) {
    order: 1;
    justify-content: flex-start;
  }

  .fc .fc-toolbar-chunk:nth-child(3) {
    order: 2;
    justify-content: flex-end;
    margin-left: auto;
  }

  .fc .fc-toolbar-chunk:nth-child(2) {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    overflow: visible;
  }

  .fc .fc-toolbar-title {
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .calendar-legend-line {
    gap: 8px;
    font-size: .8rem;
  }

  .legend-item {
    align-items: flex-start;
    line-height: 1.25;
    white-space: normal;
  }

  .legend-item .dot {
    margin-top: .18em;
  }

  .calendar-host {
    min-height: 520px;
  }

  .calendar-legend-toggle {
    display: inline-flex;
    width: fit-content !important;
    max-width: max-content;
    flex: 0 0 auto;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    padding: 6px 12px;
    font-size: .82rem;
  }

  .calendar-legend-line.is-collapsed {
    display: none;
  }

  #modalListaRecebimentos .recebimentos-list-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  #modalListaRecebimentos .recebimentos-list-text {
    width: 100%;
  }

  #modalListaRecebimentos .recebimentos-list-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  #modalListaRecebimentos .recebimentos-list-descricao,
  #modalListaRecebimentos .recebimentos-list-details span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
  }

  #modalListaRecebimentos .recebimentos-list-details {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  #modalListaRecebimentos .recebimentos-list-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 576px) {
  .fc .fc-toolbar {
    align-items: center;
    flex-direction: row;
    gap: .2rem;
  }

  .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
  }

  .fc .fc-toolbar-title {
    font-size: .82rem;
  }

  .fc .fc-button {
    padding: .2rem .34rem;
    font-size: .66rem;
  }
}

/* =========================================================
   REGION: PRODUCAO
