/* =========================================================
   REGION: PRODUCAO
   ========================================================= */
.producao-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.producao-inline .lbl {
  margin: 0;
  color: #6c757d;
  font-size: .875rem;
  font-weight: 600;
}

.inp-fardo,
.inp-bobinas,
.inp-enfardadeira {
  width: var(--w-sm);
}

.producao-toolbar {
  max-width: 800px;
  margin: 0 auto 15px;
}

.producao-enfardadeira-row {
  flex-wrap: wrap;
}

.producao-card-details summary {
  display: none;
}

.producao-list {
  max-width: 1100px;
  margin: 0 auto;
}

.producao-estoque-bobinas-wrap {
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
}

.producao-estoque-bobinas > :not(caption) > * > * {
  padding: .85rem 1rem;
}

.producao-estoque-bobinas-input {
  width: 6rem;
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 767.98px) {
  .producao-estoque-bobinas-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .producao-estoque-bobinas thead {
    display: none;
  }

  .producao-estoque-bobinas,
  .producao-estoque-bobinas tbody {
    display: block;
    width: 100%;
  }

  .producao-estoque-bobinas tbody {
    display: grid;
    gap: 12px;
  }

  .producao-estoque-bobinas tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    color: var(--theme-text);
    background: var(--theme-surface);
    box-shadow: 0 2px 8px var(--theme-shadow);
  }

  .producao-estoque-bobinas td {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left !important;
    background: transparent !important;
  }

  .producao-estoque-bobinas-produto {
    grid-column: auto;
  }

  .producao-estoque-bobinas-produto .fw-semibold {
    color: var(--theme-text-strong);
    overflow-wrap: anywhere;
  }

  .producao-estoque-bobinas-atualizacao {
    display: block;
    overflow-wrap: anywhere;
  }

  .producao-estoque-bobinas-atualizacao::before {
    display: block;
    margin-bottom: 4px;
  }

  .producao-estoque-bobinas td::before {
    content: attr(data-label);
    color: var(--theme-text-muted);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .producao-estoque-bobinas-input {
    width: min(100%, 7rem);
    margin-inline: 0;
  }

  .producao-estoque-bobinas-empty {
    display: block !important;
  }

  .producao-estoque-bobinas-empty td::before {
    content: none;
  }
}


.btn-abrir-arquivos-producao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  vertical-align: middle;
}

.btn-abrir-arquivos-producao > .compass-lucide {
  display: block;
  vertical-align: unset;
  transform: translateY(-2px);
}

.no-autolink,
.no-autolink a,
a[x-apple-data-detectors] {
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
}

.lotes-table > :not(caption) > * > * {
  border: 0 !important;
}

.lotes-table thead th {
  border-bottom: 0 !important;
}

.lotes-table tbody tr {
  border: 0 !important;
}

.lotes-table tbody td {
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.lotes-table tbody > tr:not(.lote-dias-row) {
  cursor: pointer;
}

.lotes-table tbody > tr.lote-dias-row {
  cursor: default;
}

.lotes-table tbody > tr.lote-dias-row button,
.lotes-table tbody > tr.lote-dias-row .btn {
  cursor: pointer;
}

.dias-table > :not(caption) > * > * {
  border-bottom: none !important;
}

.producao-list .lote-dias-row .bg-light {
  background: #f6f8fa !important;
}

.producao-list .lote-dias-row .rounded {
  border-radius: 8px !important;
}

.producao-list .lote-dias-row .dias-table,
.producao-list .lote-dias-row .dias-table tr,
.producao-list .lote-dias-row .dias-table th,
.producao-list .lote-dias-row .dias-table td {
  background: transparent !important;
}

.has-obs {
  position: relative;
}

.has-obs::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.progress-circle {
  position: relative;
  width: 38px;
  height: 38px;
}

.progress-circle .percent {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

#relatorioProducaoContainer .progress-circle {
  width: 60px;
  height: 60px;
}

#relatorioProducaoContainer .percent {
  font-size: 14px;
}

.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-circle circle {
  fill: none;
  stroke-width: 10;
}

.progress-circle .bg {
  stroke: #e6e6e6;
}

.progress-circle .fg {
  stroke: #3b82f6;
  stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}

#modalOrdemProducao .ordem-dia td {
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #f1f5f9;
  font-size: 16px;
  font-weight: 600;
}

#modalOrdemProducao .ordem-item td {
  padding: 8px 10px;
}

#modalOrdemProducao .ordem-item:hover {
  background: #f9fafb;
}

.lote-inline-folder {
  display: none;
}

#modalOrdemProducao .ordem-mobile-folder {
  display: none;
}

#modalOrdemProducao .modal-dialog.max-w-1200 {
  max-width: min(1200px, calc(100vw - 2rem));
}

/* Aberto sobre a Ordem de Producao: deve ocupar a camada filha do modal. */
#modalArquivosProducao {
  z-index: 1065;
}

.producao-ordem-filter {
  flex: 0 0 auto;
}

.producao-ordem-filter .btn-grey {
  min-height: 30px;
  padding: 4px 9px;
  border-color: #dfe5ea;
  border-radius: 7px;
  font-size: .82rem;
  line-height: 1.15;
}

.producao-ordem-filter .btn-grey + .btn-grey {
  border-left: 1px solid #d7dde3;
}

.producao-ordem-filter .btn-grey.active {
  color: #1f3f5b;
  border-color: #cbd8e3;
  background: #e8f0f7;
}


@media (min-width: 1800px) {
  .producao-list {
    max-width: 1320px;
  }
}

@media (max-width: 992px) {
  .producao-inline {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  #modalOrdemProducao .modal-dialog {
    width: calc(100vw - 16px);
    max-width: none;
    margin: 8px auto;
  }

  #modalOrdemProducao .modal-content {
    max-height: calc(100vh - 16px);
  }

  #modalOrdemProducao .modal-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
  }

  #modalOrdemProducao .modal-title {
    min-width: 0;
    margin: 0;
    font-size: 1rem;
  }

  #modalOrdemProducao .producao-ordem-filter {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin-left: 0 !important;
  }

  #modalOrdemProducao .producao-ordem-filter .btn-grey {
    flex: 1 1 0;
  }

  #modalOrdemProducao .btn-close {
    grid-column: 2;
    grid-row: 1;
  }

  #modalOrdemProducao .modal-body {
    padding: 0 12px 12px;
  }

  #ordemProducaoTable {
    min-width: 0 !important;
    margin-bottom: 0;
  }

  #ordemProducaoTable thead {
    display: none;
  }

  #ordemProducaoTable,
  #ordemProducaoTable tbody,
  #ordemProducaoTable tr,
  #ordemProducaoTable td {
    display: block;
    width: 100% !important;
  }

  #ordemProducaoTable tbody {
    border-top: 1px solid #aeb6c2;
  }

  #modalOrdemProducao .ordem-dia td {
    padding: 8px 0;
    border-top: 0;
    border-bottom: 1px solid #aeb6c2 !important;
    background: transparent !important;
    font-size: .9rem;
  }

  #modalOrdemProducao .ordem-item {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 7px 8px;
    padding: 9px 0;
    border-bottom: 1px solid #aeb6c2 !important;
    background: transparent !important;
  }

  #modalOrdemProducao .ordem-item:hover,
  #modalOrdemProducao .ordem-item:hover > td {
    background: transparent !important;
  }

  #modalOrdemProducao .ordem-item td {
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left !important;
  }

  #modalOrdemProducao #ordemProducaoTable thead th:first-child,
  #modalOrdemProducao .ordem-item td:first-child {
    display: none;
  }

  #modalOrdemProducao .ordem-item td:nth-child(2) {
    display: flex;
    align-items: center;
    grid-column: 1 / -1;
    order: 1;
    gap: 4px;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
    align-self: stretch;
    box-sizing: border-box;
    color: #212529;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #modalOrdemProducao .ordem-mobile-folder {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    order: 1;
    padding: 0;
    line-height: 1.2;
    transform: none;
  }

  #modalOrdemProducao .ordem-mobile-folder > .compass-lucide {
    transform: none;
  }

  #modalOrdemProducao .ordem-mobile-folder::before {
    line-height: 1;
  }

  #modalOrdemProducao .ordem-item td:nth-child(2) .fw-semibold {
    order: 2;
  }

  #modalOrdemProducao .ordem-item td:nth-child(2) .small {
    display: inline;
    order: 3;
    margin-bottom: 0;
    font-weight: 600;
  }

  #modalOrdemProducao .ordem-item td:nth-child(2) .small::before {
    content: "- ";
  }

  #modalOrdemProducao .ordem-mobile-folder::after {
    content: none;
    color: #212529;
    font-size: .95rem;
    font-weight: 700;
  }

  #modalOrdemProducao .ordem-item td:nth-child(n+3) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    color: #212529;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.14;
  }

  #modalOrdemProducao .ordem-item td:nth-child(n+3)::before {
    display: block;
    color: #6c757d;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.1;
  }

  #ordemProducaoTable.ordem-pendentes .ordem-item td:nth-child(3) {
    grid-column: span 3;
    order: 3;
  }

  #ordemProducaoTable.ordem-pendentes .ordem-item td:nth-child(4) {
    grid-column: span 3;
    order: 4;
  }

  #ordemProducaoTable.ordem-pendentes .ordem-item td:nth-child(5) {
    grid-column: 1 / -1;
    order: 5;
  }

  #ordemProducaoTable.ordem-pendentes .ordem-item td:nth-child(3)::before { content: "MP"; }
  #ordemProducaoTable.ordem-pendentes .ordem-item td:nth-child(4)::before { content: "Fardos"; }
  #ordemProducaoTable.ordem-pendentes .ordem-item td:nth-child(5)::before { content: none; }

  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(3) {
    grid-column: span 3;
    order: 3;
  }

  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(4) {
    grid-column: span 3;
    order: 4;
  }

  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(5) {
    grid-column: span 3;
    order: 5;
  }

  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(6) {
    grid-column: span 3;
    order: 6;
  }

  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(7) {
    grid-column: 1 / -1;
    order: 7;
  }

  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(3)::before { content: "MP"; }
  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(4)::before { content: "Fardos"; }
  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(5)::before { content: "Quebra"; }
  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(6)::before { content: "Perda"; }
  #ordemProducaoTable.ordem-historico .ordem-item td:nth-child(7)::before { content: none; }

  #modalOrdemProducao .ordem-item td:last-child > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch !important;
  }

  #modalOrdemProducao .ordem-item td:last-child .btn {
    width: 100%;
    min-height: 30px;
    padding: 4px 6px;
    font-size: .72rem;
    line-height: 1.1;
  }

  #modalOrdemProducao .ordem-item td:last-child .btn-obs-dia {
    width: 30px;
    justify-self: start;
    padding: 4px;
  }

  #modalOrdemProducao .ordem-expand td {
    padding: 12px 0 0;
  }

  .producao-inline input {
    align-self: center;
  }

  .producao-card-details {
    margin-top: 8px !important;
  }

  .producao-card-details summary {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    color: var(--theme-text);
    background: var(--theme-surface-muted);
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
  }

  .producao-card-details summary:hover,
  .producao-card-details summary:focus-visible {
    color: var(--theme-text-strong);
    background: var(--theme-surface-hover);
  }

  .producao-card-details[open] summary {
    margin-bottom: 6px;
  }

  .producao-inline .inp-fardo {
    width: var(--w-sm) !important;
    max-width: var(--w-sm) !important;
    min-width: var(--w-sm) !important;
    flex: 0 0 var(--w-sm);
    padding-right: 3px;
    padding-left: 3px;
    text-align: center;
  }

  .producao-inline .inp-bobinas {
    width: var(--w-sm) !important;
    max-width: var(--w-sm) !important;
    min-width: var(--w-sm) !important;
    flex: 0 0 var(--w-sm);
    padding-right: 3px;
    padding-left: 3px;
    text-align: center;
  }

  .producao-inline .inp-bobinas + .bobinas-updated {
    margin-left: 2px !important;
    align-self: center;
    flex: 0 1 auto;
    line-height: 1.1;
    white-space: nowrap;
  }

  .producao-enfardadeira-row {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px !important;
  }

  .producao-enfardadeira-row .lbl {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .producao-enfardadeira-row .inp-enfardadeira {
    width: 30px;
    max-width: 30px;
    min-width: 30px;
    flex: 0 0 30px;
    padding-right: 3px;
    padding-left: 3px;
    text-align: center;
  }

  .producao-enfardadeira-row .enfardadeira-updated {
    margin-left: 2px !important;
    flex: 0 1 auto;
    white-space: nowrap;
  }

  .producao-inline .lbl {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .producao-list .lotes-table {
    margin-bottom: 0;
  }

  .producao-list .lotes-table thead {
    display: none;
  }

  .producao-list .lotes-table > tbody > tr:not(.lote-dias-row):not(.lotes-toggle-row) {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 5px 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--theme-divider) !important;
  }

  .producao-list .lotes-table > tbody > tr:not(.lote-dias-row):not(.lotes-toggle-row) > td {
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left !important;
  }

  .producao-list .lotes-table .lote-files {
    display: none;
  }

  .producao-list .lotes-table .btn-abrir-arquivos-producao {
    width: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 3px;
    font-size: 0;
    line-height: 1;
  }

  .producao-list .lotes-table .lote-numero,
  .producao-list .lotes-table .lote-data,
  .producao-list .lotes-table .lote-mp,
  .producao-list .lotes-table .lote-fardo,
  .producao-list .lotes-table .lote-perda,
  .producao-list .lotes-table .lote-a-produzir,
  .producao-list .lotes-table .lote-percentual {
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: var(--theme-text-strong);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.12;
  }

  .producao-list .lotes-table .lote-numero {
    grid-column: 1 / span 6;
    order: 1;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 4px;
    margin-left: 0;
  }

  .producao-list .lotes-table .lote-numero::before {
    grid-column: 1 / -1;
  }

  .producao-list .lotes-table .lote-inline-folder {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0;
    transform: translateY(1px);
  }

  .producao-list .lotes-table .lote-data {
    grid-column: span 6;
    order: 2;
  }

  .producao-list .lotes-table .lote-mp { grid-column: span 3; order: 3; }
  .producao-list .lotes-table .lote-fardo { grid-column: span 3; order: 4; }
  .producao-list .lotes-table .lote-perda { grid-column: span 3; order: 5; }
  .producao-list .lotes-table .lote-a-produzir { grid-column: span 3; order: 6; }
  .producao-list .lotes-table .lote-percentual { grid-column: span 3; order: 7; }

  .producao-list .lotes-table td[data-label]::before {
    display: block;
    color: var(--theme-text-muted);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .producao-list .lotes-table td[data-label]::before {
    content: attr(data-label);
  }

  .producao-list .lotes-table .lote-percentual::before {
    content: none;
  }

  .producao-list .lotes-table .lote-percentual {
    align-items: flex-start;
  }

  .producao-list .lotes-table .lote-percentual .progress-circle {
    width: 28px;
    height: 28px;
  }

  .producao-list .lotes-table .lote-percentual .percent {
    font-size: 8px;
  }

  .producao-list .lotes-table .lote-actions {
    display: contents;
  }

  .producao-list .lotes-table .btn-edit-lote,
  .producao-list .lotes-table .btn-delete-lote,
  .producao-list .lotes-table .btn-restore-lote,
  .producao-list .lotes-table .btn-obs-lote {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 3px 5px;
    font-size: .68rem;
    line-height: 1.1;
  }

  .producao-list .lotes-table .btn-edit-lote {
    grid-column: span 3;
    order: 9;
  }

  .producao-list .lotes-table .btn-delete-lote,
  .producao-list .lotes-table .btn-restore-lote {
    grid-column: span 3;
    order: 10;
  }

  .producao-list .lotes-table .btn-obs-lote {
    grid-column: span 3;
    order: 11;
    justify-self: start;
    width: 28px;
    padding: 3px;
  }

  .producao-list .lotes-table .btn-obs-lote.has-obs::after {
    top: 1px;
    right: 1px;
  }

  .producao-list .lotes-table .lote-dias-row > td {
    padding-top: 0;
  }

  .producao-list .dias-table {
    margin-bottom: 0;
  }

  .producao-list .lote-dias-row .bg-light {
    background: #f6f8fa !important;
  }

  .producao-list .lote-dias-row .rounded {
    border-radius: 8px !important;
  }

  .producao-list .dias-table thead {
    display: none;
  }

  .producao-list .dias-table tbody > tr:not(.fw-semibold):not(.dias-toggle-row) {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px 8px;
    padding: 7px 0;
    border-top: 1px solid #eef1f3;
  }

  .producao-list .dias-table tbody > tr:not(.fw-semibold):not(.dias-toggle-row) > td {
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left !important;
  }

  .producao-list .dias-table .dia-data,
  .producao-list .dias-table .dia-mp,
  .producao-list .dias-table .dia-fardo,
  .producao-list .dias-table .dia-quebra,
  .producao-list .dias-table .dia-perda {
    display: flex;
    flex-direction: column;
    gap: 1px;
    color: #212529;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.12;
  }

  .producao-list .dias-table .dia-data { grid-column: span 2; order: 1; }
  .producao-list .dias-table .dia-mp { grid-column: span 2; order: 2; }
  .producao-list .dias-table .dia-fardo { grid-column: span 2; order: 3; }
  .producao-list .dias-table .dia-quebra { grid-column: span 3; order: 4; }
  .producao-list .dias-table .dia-perda { grid-column: span 3; order: 5; }

  .producao-list .dias-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: #6c757d;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .producao-list .dias-table .dia-actions {
    grid-column: 1 / -1;
    order: 6;
  }

  .producao-list .dias-table .dia-actions-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .producao-list .dias-table .btn-edit-dia,
  .producao-list .dias-table .btn-delete-dia,
  .producao-list .dias-table .btn-obs-dia {
    width: 100%;
    min-height: 28px;
    padding: 3px 5px;
    font-size: .68rem;
    line-height: 1.1;
  }

  .producao-list .dias-table .btn-obs-dia {
    justify-self: start;
    width: 28px;
    padding: 3px;
  }

  .producao-list .dias-table .btn-obs-dia.has-obs::after {
    top: 1px;
    right: 1px;
  }

  .producao-list .dias-table .fw-semibold.border-top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px 8px;
    padding: 7px 0 0;
  }

  .producao-list .dias-table .fw-semibold.border-top > td {
    padding: 0;
    border: 0;
    text-align: left !important;
  }

  .producao-inline input {
    align-self: center;
  }

  .producao-inline .inp-fardo {
    width: var(--w-sm) !important;
    max-width: var(--w-sm) !important;
    min-width: var(--w-sm) !important;
    flex: 0 0 var(--w-sm);
    padding-right: 3px;
    padding-left: 3px;
    text-align: center;
  }

  .producao-inline .inp-bobinas {
    width: var(--w-sm) !important;
    max-width: var(--w-sm) !important;
    min-width: var(--w-sm) !important;
    flex: 0 0 var(--w-sm);
    padding-right: 3px;
    padding-left: 3px;
    text-align: center;
  }

  .producao-inline .inp-bobinas + .bobinas-updated {
    margin-left: 2px !important;
    align-self: center;
    flex: 0 1 auto;
    line-height: 1.1;
    white-space: nowrap;
  }

  .producao-toolbar > .producao-enfardadeira-row {
    flex-wrap: wrap !important;
  }

  .producao-toolbar > .producao-enfardadeira-row .lbl {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .producao-toolbar > .producao-enfardadeira-row .inp-enfardadeira {
    width: var(--w-sm) !important;
    max-width: var(--w-sm) !important;
    min-width: var(--w-sm) !important;
    flex: 0 0 var(--w-sm) !important;
    padding-right: 3px;
    padding-left: 3px;
    text-align: center;
  }

  .producao-toolbar > .producao-enfardadeira-row .enfardadeira-updated {
    margin-left: 2px !important;
    flex: 1 1 100%;
    white-space: normal;
  }

  .producao-inline .lbl {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .producao-toolbar > .d-flex {
    flex-wrap: wrap;
  }
}

.producao-list .card-snapshot .body-left {
  cursor: pointer;
}
.producao-list .card-snapshot .producao-card-details {
  cursor: default;
}
.producao-list .card-snapshot .producao-card-details input,
.producao-list .card-snapshot .producao-card-details textarea {
  cursor: text;
}

#modalObservacaoTexto {
  font-weight: 400;
}

.pedidos-bobinas-list {
  display: grid;
  gap: .75rem;
}

.pedidos-bobina-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: .75rem;
}

.pedidos-bobina-form {
  display: grid;
  gap: .5rem;
  align-items: end;
  padding-right: 1rem;
  padding-left: 1rem;
}

.pedidos-bobina-form-pedido {
  grid-template-columns: minmax(240px, 2fr) minmax(130px, .8fr) minmax(130px, .8fr) auto;
}

.pedidos-bobina-form-rec {
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, .8fr) minmax(110px, .7fr) minmax(110px, .7fr) minmax(130px, .8fr) auto;
}

.pedidos-bobina-form > [class*="col-"] {
  width: auto;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.pedidos-bobina-card {
  border-radius: 8px;
}

.pedidos-bobina-card .pedidos-bobina-body {
  display: block;
  align-items: initial;
}

.pedidos-bobina-header {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.pedidos-bobina-header > div:first-child {
  min-width: 220px;
  flex: 1 1 320px;
}

.pedidos-bobina-id {
  color: #5680a7;
  margin-right: .35rem;
}

.pedidos-bobina-controls {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: .5rem;
  flex: 0 1 auto;
  flex-wrap: wrap;
  margin-left: auto;
}

.pedidos-bobina-totais {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
}

.pedidos-bobina-totais div {
  min-width: 120px;
  padding: .35rem .55rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
}

.pedidos-bobina-totais span {
  display: block;
  color: #6b7280;
  font-size: .72rem;
  line-height: 1.1;
}

.pedidos-bobina-totais strong {
  display: block;
  color: #111827;
  font-size: .95rem;
  line-height: 1.2;
}

.pedidos-bobina-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
}

.pedidos-bobina-toggle {
  white-space: nowrap;
}

.pedidos-bobina-rec-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height .24s ease,
    opacity .18s ease,
    transform .18s ease;
}

.pedidos-bobina-rec-panel.is-open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}

.pedidos-bobina-rec-list {
  display: grid;
  gap: .4rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid #e5e7eb;
}

.pedidos-bobina-rec {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, auto) auto;
  gap: .75rem;
  align-items: center;
  padding: .5rem .65rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.pedidos-bobina-rec > div:nth-child(2) {
  text-align: left !important;
}

@media (max-width: 768px) {
  .pedidos-bobina-form {
    grid-template-columns: 1fr;
  }

  .pedidos-bobina-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pedidos-bobina-header > div:first-child {
    min-width: 0;
  }

  .pedidos-bobina-controls,
  .pedidos-bobina-totais {
    justify-content: flex-start;
    margin-left: 0;
  }

  .pedidos-bobina-rec {
    grid-template-columns: 1fr;
  }

  .pedidos-bobina-actions {
    justify-content: flex-start;
  }
}

#print-area .progress-circle {
  width: 60px;
  height: 60px;
}
#print-area .percent {
  font-size: 12px;
}
