@keyframes moveUpDown {
  0% {
    top: 0;
  }
  100% {
    top: 10px;
  }
}
.animate-updown {
  position: relative;
  animation: moveUpDown 0.25s ease-in-out infinite alternate;
}

.smooth-transition {
  transition: all 0.7s ease;
}

.bg-danger-light {
  background-color: #fcf0f1 !important;
}

.border-danger-light {
  border-color: #eb8c95 !important;
}

.fa-disabled {
  opacity: 0.2;
  pointer-events: none;
  cursor: not-allowed;
}

.text-break-all {
  word-break: break-all;
}

.dt-buttons .dt-button {
  border: 1px solid #ccc;
  color: #212529;
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 0.5rem;
  line-height: 1;
  margin: 0 0.2rem 0 0;
  background: #fffefe;
}
.dt-buttons .dt-button:hover {
  background: #e4e4e4 !important;
}
.dt-buttons .dt-button .fas {
  margin-right: 0.25rem;
}
.dt-buttons .buttons-excel:hover {
  background: #c2e7cf !important;
  border-color: #1D6F42 !important;
  color: #1D6F42;
}
.dt-buttons .buttons-pdf:hover {
  background: #f7b7b3 !important;
  border-color: #F40F02 !important;
  color: #F40F02;
}
.dt-buttons .buttons-csv:hover {
  background: #cce5ff !important;
  border-color: #cce5ff !important;
  color: #004085;
}
.dt-buttons .buttons-refresh:hover {
  color: #155724;
  background: #d4edda !important;
  border-color: #c3e6cb !important;
}
.dt-buttons .buttons-collection:hover {
  color: #0c5460;
  background: #bee5eb !important;
  border-color: #bee5eb !important;
}

#tabela_filter label {
  margin-bottom: 0;
}

.layout-footer-fixed .wrapper .main-footer {
  z-index: 1010;
}

#overlay {
  position: fixed;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 100px;
  height: 100px;
  border: 10px #ddd solid;
  border-top: 10px #bf5329 solid;
  border-radius: 50%;
  animation: sp-anime 0.8s infinite linear;
}
.spinner.spinner-sm {
  width: 50px;
  height: 50px;
  border-width: 5px;
}

@keyframes sp-anime {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}
.seleciona-curto.has-error .select2-container--default .select2-selection--single {
  border-color: #bf5329;
}

.seleciona.has-error .select2-container--default .select2-selection--single {
  border-color: #bf5329;
}

.seleciona-cidade.has-error .select2-container--default .select2-selection--single {
  border-color: #bf5329;
}

.seleciona-estado.has-error .select2-container--default .select2-selection--single {
  border-color: #bf5329;
}

.texto.has-error .select2-container--default .select2-selection--single {
  border-color: #bf5329;
}

.fs-2 {
  font-size: 2rem !important;
}

.fs-3 {
  font-size: 1.5rem !important;
}

.fs-4 {
  font-size: 1.25rem !important;
}

.fs-5,
.fs-normal {
  font-size: 1rem !important;
}

.fs-6 {
  font-size: 0.85rem !important;
}

.fs-7 {
  font-size: 0.75rem !important;
}

.fs-7 {
  font-size: 1.25rem !important;
}

.fs-7 {
  font-size: 1.25rem !important;
}

.fs-8 {
  font-size: 0.625rem !important;
}

.fs-9 {
  font-size: 0.5rem !important;
}

.image-cover {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-cover img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
  display: block;
}

.loader {
  width: 36px;
  height: 36px;
  border: 5px solid #FFF;
  border-bottom-color: #bf5329;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.open-time-label {
  width: 100px;
}
.open-time-columns {
  padding-left: 108px;
  margin-bottom: 0.75rem;
}
.open-time-column {
  width: 236px;
  text-align: center;
  margin-left: 3rem;
  background: #eee;
}

.imagem-crop {
  position: relative;
  height: 250px;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  background-color: #f4f4f4;
  border-radius: 4px;
}
.imagem-crop.is-ready {
  background-color: transparent;
}
.imagem-crop.is-ready .imagem-crop-ready {
  display: block;
}
.imagem-crop.is-ready .imagem-crop-drag {
  display: none !important;
}
.imagem-crop.is-dragenter .imagem-crop-drag {
  border-color: #ced4da;
}
.imagem-crop.has-error {
  background-color: #fbf0ec;
  border-color: #bf5329;
}
.imagem-crop.has-error .imagem-crop-drag {
  border-color: #bf5329;
}
.imagem-crop-drag {
  height: 100%;
  border-radius: 4px;
  border: 2px dashed transparent;
}
.imagem-crop-label {
  font-size: 1.25rem;
  font-weight: 100;
  color: #949494;
}
.imagem-crop-icon {
  font-size: 1.5rem;
  line-height: 0;
  color: #747474;
}
.imagem-crop-disableEvents {
  pointer-events: none;
}
.imagem-crop-enableEvents {
  pointer-events: all;
}
.imagem-crop-input {
  width: 0;
  height: 0;
  visibility: none;
}
.imagem-crop-action {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}
.imagem-crop-action + .imagem-crop-action {
  margin-top: 0.5rem;
}
.imagem-crop-toolbar {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}
.imagem-crop-img {
  max-width: 100%;
  height: 100%;
}
.imagem-crop-ready {
  display: none;
}
.imagem-crop-ready img {
  max-width: 100%;
  height: 190px;
}

#log-raw {
  padding: 0;
  margin-top: 0.65rem;
  margin-bottom: 0.65rem;
}
#log-raw .renderjson {
  background: #f7f7f7;
  margin-bottom: 1rem;
}

.log-aside {
  position: fixed;
  overflow-y: auto;
  right: 0;
  top: 57px;
  height: calc(100% - 114px);
  width: 500px;
  right: -100%;
  background: #fff;
  border-left: 1px solid #dee2e6;
  padding: 2rem;
  z-index: 100;
  transition: right 0.5s;
}
.log-aside.active {
  right: 0;
}
.log-aside-ctx {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

.log-chart {
  height: 200px;
}

#logs_filter.dataTables_filter {
  display: flex;
  justify-content: end;
}
#logs_filter.dataTables_filter .select2 {
  margin-left: 1rem;
}

.renderjson {
  margin-bottom: 0;
  color: #4a4a4a;
}
.renderjson .key {
  font-weight: bold;
}
.renderjson .boolean {
  color: #569CD6;
}
.renderjson .number {
  color: #569CD6;
}
.renderjson .string {
  color: #6A9955;
}
.renderjson .disclosure {
  color: #007bff;
}

.input-range .input-group {
  width: auto;
}
.input-range .input-group {
  max-width: 180px;
}
.input-range .input-number + .input-number {
  margin-left: 1rem;
}

.form {
  position: relative;
}
.form-floating {
  position: fixed;
  top: 100%;
  z-index: 1040;
  transform: translateY(-100%);
  box-shadow: 0 -15px 14px rgba(0, 0, 0, 0.0125);
}
.form-footer {
  display: flex;
  gap: 1rem;
  position: relative;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: #fff;
}

.image-upload {
  border: 2px dashed #ced4da;
  border-radius: 0.25rem;
  overflow: hidden;
}
.image-upload.is-slim {
  height: 150px;
}
.image-upload.is-active {
  background-color: #fff;
  border-color: #3097D1;
}
.image-upload.is-invalid {
  border-color: #dc3545;
}
.image-upload.is-loaded {
  border-style: solid;
  border-color: #3097D1;
  background: repeating-linear-gradient(45deg, #fff 0px, #fff 5px, #f2f2f2 5px, #f2f2f2 10px);
}
.image-upload.is-loaded:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.image-upload .image-upload-droparea.is-active .image-upload-info {
  opacity: 50%;
}
.image-upload-preview img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  -o-object-position: center;
     object-position: center;
}
.image-upload-floating {
  width: 100%;
  left: -100%;
  display: flex;
  justify-content: center;
}
.image-upload:hover .image-upload-floating {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.balanca #datatable_balanca input.codigobarras {
  width: 130px;
}
.balanca #datatable_balanca input.valorunitario {
  width: 73px;
}
@media screen and (min-width: 768px) {
  .balanca #datatable_balanca input.codigobarras,
  .balanca #datatable_balanca input.valorunitario {
    width: auto;
  }
}
.balanca #datatable_botoes input.codigobarras {
  width: 133px;
}
.balanca #datatable_botoes input.valorunitario,
.balanca #datatable_botoes input.sab,
.balanca #datatable_botoes input.dom,
.balanca #datatable_botoes select.tipovalorbalanca {
  min-width: 70px;
}
.balanca #datatable_botoes input.ordem {
  min-width: 50px;
}
@media screen and (min-width: 768px) {
  .balanca #datatable_botoes input.codigobarras {
    width: 160px;
  }
  .balanca #datatable_botoes input.valorunitario,
  .balanca #datatable_botoes input.sab,
  .balanca #datatable_botoes input.dom,
  .balanca #datatable_botoes select.tipovalorbalanca {
    width: 70px;
  }
  .balanca #datatable_botoes input.ordem {
    width: 50px;
  }
}
@media screen and (min-width: 1400px) {
  .balanca #datatable_botoes input.codigobarras {
    width: auto;
  }
  .balanca #datatable_botoes input.valorunitario,
  .balanca #datatable_botoes input.sab,
  .balanca #datatable_botoes input.dom {
    width: 100px;
  }
  .balanca #datatable_botoes select.tipovalorbalanca,
  .balanca #datatable_botoes input.ordem {
    width: auto;
  }
}
.balanca #datatable_comanda input.codigobarras {
  width: 133px;
}
.balanca #datatable_comanda input.valorunitario {
  width: 70px;
}
.balanca #datatable_comanda input.ordem {
  min-width: 50px;
}
@media screen and (min-width: 768px) {
  .balanca #datatable_comanda input.codigobarras {
    width: 160px;
  }
  .balanca #datatable_comanda input.valorunitario,
  .balanca #datatable_comanda input.ordem {
    width: 70px;
  }
}
@media screen and (min-width: 1300px) {
  .balanca #datatable_comanda input.codigobarras,
  .balanca #datatable_comanda input.valorunitario,
  .balanca #datatable_comanda input.ordem {
    width: auto;
  }
}

.pdv-shortcuts {
  width: 300px;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1036;
  padding: 5rem 1.5rem 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
.pdv-shortcuts.active {
  transform: translateX(0);
}
.pdv-shortcuts .btn-outline-primary {
  color: #007bff !important;
}
.pdv-shortcuts .btn-outline-primary i {
  color: #007bff !important;
}
.pdv-shortcuts .btn-outline-primary:hover:not(.disabled) {
  color: #fff !important;
}
.pdv-shortcuts .btn-outline-primary:hover:not(.disabled) i {
  color: #fff !important;
}
.pdv-shortcuts .btn-outline-primary.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pdv-shortcuts-toggle {
  position: fixed;
  top: 14rem;
  right: 0;
  z-index: 1037;
  cursor: pointer;
  transition: right 0.3s ease-in-out;
}
.pdv-shortcuts-toggle.active {
  right: 300px;
}

@media (max-width: 991.98px) {
  #pdv-notifications {
    position: fixed;
    top: calc(3.5rem + 1px);
    left: 0;
    right: 0;
    z-index: 1030;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
}
html,
body.modal-open {
  overflow-x: hidden !important;
  max-width: 100vw;
}

body.modal-open {
  padding-right: 0 !important;
}

#formasdepagamento {
  pointer-events: none;
}
#formasdepagamento .modal-dialog {
  pointer-events: auto;
  max-width: 85vw;
  width: 85vw;
  margin: 30px auto;
  max-height: calc(100vh - 60px);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#formasdepagamento .modal-dialog > .row {
  gap: 12px;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: 70vh;
  flex: 1;
  overflow: hidden;
}
#formasdepagamento .col-md-7 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#formasdepagamento .col-md-7 .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#formasdepagamento .col-md-7 .card-header {
  flex-shrink: 0;
}
#formasdepagamento .modal-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
#formasdepagamento .col-md-5 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#formasdepagamento .col-md-5 .card {
  height: 100%;
  min-height: 0;
}
#formasdepagamento .col-md-5 .card-body {
  flex: 1;
  overflow: hidden;
  padding: 8px 0 8px 8px;
  min-height: 0;
}
#formasdepagamento .col-md-5 .card-footer {
  padding: 14px 20px;
  flex-shrink: 0;
  border-top: 3px solid #15803d;
}

#linhaEspecie {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 0.5rem;
  width: 100%;
}

#especie-nome-wrapper {
  flex: 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(23, 162, 184, 0.35);
  border-radius: 8px;
  background: rgba(23, 162, 184, 0.05);
  padding: 0.3rem 0.8rem;
  transition: border-color 0.15s, background 0.15s;
}
#especie-nome-wrapper:hover {
  border-color: #17a2b8;
  background: rgba(23, 162, 184, 0.1);
}

#especie-nome-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: none;
  color: #8a99a8;
  padding: 0;
}

#especie_nome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.9rem !important;
  font-weight: 800;
  color: #17a2b8;
  padding: 0;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
#especie_nome::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.9rem;
  margin-left: auto;
  opacity: 0.45;
}

#alterarEspecie {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1;
  padding: 0;
  background: none;
  color: #8a99a8 !important;
  border: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#alterarMaquinaPos {
  padding: 0 4px;
}

.pos-padrao-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  padding: 2px 4px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  z-index: 1;
}
.pos-padrao-badge:hover {
  color: #ffc107;
}
.pos-padrao-badge.is-padrao {
  color: #f59f00;
  background: rgba(255, 193, 7, 0.15);
}

.pos-padrao-info-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff8e1;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.83rem;
  color: #856404;
}
.pos-padrao-info-inner > i {
  color: #f59f00;
  font-size: 0.85rem;
}
.pos-padrao-info-inner strong {
  color: #856404;
}

#maquinaPosDescricao {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  border: none;
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  background: #e67e00;
  transition: background 0.15s, filter 0.15s;
  letter-spacing: 0.01em;
}
#maquinaPosDescricao i {
  font-size: 0.9rem;
  color: #fff;
}
#maquinaPosDescricao:hover {
  background: #cf7000;
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff !important;
}

.pos-online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a745;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
  animation: pos-pulse 2.2s ease-in-out infinite;
}

@keyframes pos-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5);
  }
  60% {
    box-shadow: 0 0 0 5px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}
#total-dinheiro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(23, 162, 184, 0.35);
  border-radius: 8px;
  background: rgba(23, 162, 184, 0.05);
  padding: 0.3rem 0.8rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#total-dinheiro:focus-within {
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.15);
}
#total-dinheiro .pdv-total-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: none;
  color: #8a99a8;
  padding: 0;
}
#total-dinheiro .pdv-total-value {
  padding: 0;
  flex: 1;
  display: flex;
  align-items: center;
}
#total-dinheiro .pdv-total-value > div, #total-dinheiro .pdv-total-value .form-group, #total-dinheiro .pdv-total-value .form-group > div {
  width: 100%;
  margin-bottom: 0;
}
#total-dinheiro .pdv-total-value input {
  width: 100%;
  text-align: right;
}

#linhaFaltando, #linhaTroco {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 4px 0;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}
#linhaFaltando > div, #linhaTroco > div {
  float: none;
  font-size: 1rem;
  font-weight: 700;
}

#linhaFaltando {
  background: rgba(220, 53, 69, 0.08);
  color: #c0392b;
}

#linhaTroco {
  background: rgba(40, 167, 69, 0.08);
  color: #196f3d;
}

.modal-body > h3:not(#linhaFaltando):not(#linhaTroco) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 4px 0;
  padding: 0.3rem 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
}
.modal-body > h3:not(#linhaFaltando):not(#linhaTroco) > div {
  float: none;
  font-size: 1rem;
  font-weight: 700;
}
.modal-body > h3:not(#linhaFaltando):not(#linhaTroco) .form-control {
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  height: auto;
  max-width: 120px;
}

#alerta-total-lancado {
  display: none;
  margin-top: 10px;
  background: #fff8e1;
  border: 1.5px solid #ffc107;
  border-radius: 8px;
  padding: 10px 14px;
}
#alerta-total-lancado .pdv-alerta-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
#alerta-total-lancado .pdv-alerta-icon {
  color: #e67e00;
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}
#alerta-total-lancado .pdv-alerta-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #7a4800;
}
#alerta-total-lancado .pdv-alerta-text {
  font-size: 0.85rem;
  color: #5a3800;
  margin-top: 2px;
}
#alerta-total-lancado .pdv-alerta-text strong {
  background: #dc3545;
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.8rem;
}

#alerta-valor-minimo {
  margin: 0 0 12px 0;
  background: #dc3545;
  border-radius: 8px;
  padding: 14px 16px;
}
#alerta-valor-minimo .pdv-alerta-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
#alerta-valor-minimo .pdv-alerta-icon {
  color: #fff;
  font-size: 1.8rem;
  flex-shrink: 0;
}
#alerta-valor-minimo .pdv-alerta-title {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
#alerta-valor-minimo .pdv-alerta-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2px;
}

#valorEspecies {
  margin-top: 10px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#valorEspecies .pdv-especies-header {
  background: #f8f9fa;
  padding: 8px 12px;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c757d;
  flex-shrink: 0;
}
#valorEspecies .pdv-especies-body {
  overflow-y: auto;
  max-height: 230px;
}

#tableEspecie th {
  font-size: 1.15rem;
  padding: 8px 12px;
}
#tableEspecie th:first-child {
  width: 54px;
}
#tableEspecie th:nth-child(3) {
  text-align: right;
}
#tableEspecie th:nth-child(4) {
  text-align: center;
}
#tableEspecie th:nth-child(5) {
  text-align: center;
  width: 60px;
}
#tableEspecie td {
  font-size: 1.15rem;
  padding: 8px 12px;
}
#tableEspecie td:first-child {
  font-size: 0.9rem;
  color: #6c757d;
  font-family: "Courier New", Courier, monospace;
}
#tableEspecie td:nth-child(3) {
  text-align: right;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
}
#tableEspecie td:nth-child(4), #tableEspecie td:nth-child(5) {
  padding: 6px 12px;
  text-align: center;
}
#tableEspecie .badge {
  font-size: 0.85rem;
}

#buttons-modal {
  flex-shrink: 0;
}
#buttons-modal > .d-flex {
  gap: 8px;
}
#buttons-modal .btn {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.2;
}
#buttons-modal .btn.btn-warning {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-shortcut {
  display: block;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 2px;
  letter-spacing: 0.03em;
}

.pdv-total-venda-label {
  font-size: 0.85rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  font-weight: 600;
}

#resumo-total {
  font-size: 2.6rem;
  font-weight: 900;
  font-family: "Courier New", Courier, monospace;
  color: #15803d;
  line-height: 1.1;
}

.pdv-itens-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  min-height: 200px;
  padding-right: 8px;
}

#divespecies .modal-dialog {
  max-width: 700px;
  width: 90vw;
}

#divespecies .btn-app,
#divMaquinasPos .btn-app {
  width: 140px !important;
}

#divespecies .btn-app,
#divMaquinasPos .btn-app {
  height: auto !important;
  min-height: 110px;
  padding: 14px 10px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  white-space: normal !important;
  position: relative;
}
#divespecies .btn-app i,
#divMaquinasPos .btn-app i {
  font-size: 2rem !important;
  display: block;
  margin-bottom: 6px;
}
#divespecies .btn-app span,
#divMaquinasPos .btn-app span {
  display: block;
  font-weight: 700;
}
#divespecies .btn-app small,
#divMaquinasPos .btn-app small {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  opacity: 0.75;
}
#divespecies .btn-app .pdv-especie-prazo-badge,
#divMaquinasPos .btn-app .pdv-especie-prazo-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  background: #17a2b8;
  color: #fff;
  border-radius: 3px;
  padding: 1px 4px;
  line-height: 1.4;
}
#divespecies .btn-app.especie-focus,
#divMaquinasPos .btn-app.especie-focus {
  outline: 3px solid #17a2b8 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(23, 162, 184, 0.25) !important;
  transform: scale(1.06);
  z-index: 1;
  position: relative;
}

#divMaquinasPos .btn-app {
  min-height: 130px !important;
}

#divMaquinasPos .btn-app .pos-padrao-badge {
  font-weight: normal;
}
#divMaquinasPos .btn-app .pos-padrao-badge i {
  font-size: 0.75rem !important;
  display: inline !important;
  margin: 0 !important;
}

#poscontrole-msg {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 16px;
}

.pdv-pos-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}
.pdv-pos-icon--success {
  color: #28a745;
}

.pdv-pos-text {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
}
.pdv-pos-text--warning {
  color: #ffc107;
}
.pdv-pos-text--processing {
  color: #495057;
  letter-spacing: 0.03em;
}

.pdv-loading-logo {
  width: 56px;
  height: 56px;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
  margin: 0 auto 12px;
  animation: pdv-logo-pulse 1.1s ease-in-out infinite;
}

@keyframes pdv-logo-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.88);
  }
}
#pdv-sucesso-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.075s ease;
}
#pdv-sucesso-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
#pdv-sucesso-overlay.hiding {
  opacity: 0;
  pointer-events: none;
}

#pdv-sucesso-card {
  background: #1a7a3c;
  border-radius: 20px;
  padding: 48px 56px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.88);
  transition: transform 0.088s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pdv-sucesso-overlay.show #pdv-sucesso-card {
  transform: scale(1);
}

#pdv-sucesso-check {
  display: block;
  margin: 0 auto 24px;
}

#pdv-sucesso-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 5;
  stroke-dasharray: 200;
  stroke-dashoffset: 0;
}

#pdv-sucesso-circle-anim {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

#pdv-sucesso-overlay.show #pdv-sucesso-circle-anim {
  animation: pdv-circle-draw 0.113s ease forwards;
}

#pdv-sucesso-tick {
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

#pdv-sucesso-overlay.show #pdv-sucesso-tick {
  animation: pdv-tick-draw 0.075s ease 0.1s forwards;
}

@keyframes pdv-circle-draw {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pdv-tick-draw {
  to {
    stroke-dashoffset: 0;
  }
}
#pdv-sucesso-msg {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin: 0;
}

#resumoitens td, #resumoitens th, #resumoitens h6 {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 3px 10px;
}
#resumoitens td:nth-child(5), #resumoitens th:nth-child(5) {
  text-align: right;
}
#resumoitens td:nth-child(6), #resumoitens th:nth-child(6) {
  display: none;
}

#dinheiro_masked {
  font-size: 1.9rem !important;
  font-weight: 800;
  height: auto;
  padding: 0;
  line-height: 1.15;
  text-align: right;
  color: #17a2b8;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

#pdv-action-row .btn,
#btnCliente {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.2;
  text-shadow: none;
}
#pdv-action-row .btn.btn-warning,
#btnCliente.btn-warning {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

#modal-cliente .modal-body {
  padding-bottom: 1.25rem;
}
#modal-cliente .modal-body .form-group.row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 5px;
  margin-bottom: 0 !important;
}
#modal-cliente .modal-body > form > div.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  row-gap: 1.5rem;
}
#modal-cliente .modal-body > form > .col-md-12,
#modal-cliente .modal-body > form > #campoBuscaPessoa > .col-md-12 {
  margin-bottom: 1.5rem;
}
#modal-cliente .modal-body .form-group.row label.control-label {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
  white-space: nowrap;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #6c757d !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1;
}
#modal-cliente .modal-body .form-group.row > [class*=col-] {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}
#modal-cliente .modal-body .form-group.row .form-control,
#modal-cliente .modal-body .form-group.row .select2-container {
  width: 100% !important;
}
#modal-cliente .modal-body .form-group.row .form-control {
  height: 38px;
}
#modal-cliente .modal-body > form > .col-md-12,
#modal-cliente .modal-body > form > div > .col-md-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#modal-cliente .modal-body > form > div > .col-md-6 {
  padding-left: 8px !important;
  padding-right: 8px !important;
}
#modal-cliente .modal-body > form > div > .col-md-6:first-child {
  padding-left: 0 !important;
}
#modal-cliente .modal-body > form > div > .col-md-6:last-child {
  padding-right: 0 !important;
}

body.dark-mode #modal-cliente .modal-body .form-group.row label.control-label {
  color: rgba(255, 255, 255, 0.4) !important;
}

.pdv-cliente-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 54px;
}

.pdv-cliente-info {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.pdv-cliente-field {
  min-width: 0;
}

.pdv-cliente-nome {
  flex: 2 1 140px;
}

.pdv-cliente-cpf {
  flex: 1 1 100px;
}

.pdv-cliente-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6c757d;
  line-height: 1;
  margin-bottom: 2px;
}

.pdv-cliente-valor {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark-mode .pdv-cliente-label {
  color: rgba(255, 255, 255, 0.4);
}
body.dark-mode .pdv-cliente-valor {
  color: rgba(255, 255, 255, 0.9);
}
body.dark-mode #total-dinheiro {
  border-color: rgba(45, 212, 232, 0.3) !important;
  background: rgba(45, 212, 232, 0.06);
}
body.dark-mode #total-dinheiro:focus-within {
  border-color: #2dd4e8 !important;
  box-shadow: 0 0 0 3px rgba(45, 212, 232, 0.18);
}
body.dark-mode #total-dinheiro .pdv-total-label,
body.dark-mode #especie-nome-label,
body.dark-mode #alterarEspecie {
  background: none !important;
  color: rgba(255, 255, 255, 0.45) !important;
}
body.dark-mode #dinheiro_masked {
  color: #2dd4e8 !important;
}
body.dark-mode #especie-nome-wrapper {
  border-color: rgba(45, 212, 232, 0.3);
  background: rgba(45, 212, 232, 0.06);
}
body.dark-mode #especie-nome-wrapper:hover {
  border-color: #2dd4e8;
  background: rgba(45, 212, 232, 0.12);
}
body.dark-mode #especie_nome {
  color: #2dd4e8;
}
body.dark-mode #poscontrole-msg.alert-light {
  background: #1e2229 !important;
  border-color: #3a424a !important;
  color: #e0e0e0 !important;
}
body.dark-mode #poscontrole-msg.alert-danger {
  background: #3b1f1f !important;
  border-color: #7a2a2a !important;
}
body.dark-mode #modal-aguardando-estorno .modal-content {
  background: #1e2229 !important;
}
body.dark-mode #modal-aguardando-estorno #modal-aguardando-estorno-msg.alert-light {
  background: #1e2229 !important;
  border-color: #3a424a !important;
  color: #e0e0e0 !important;
}
body.dark-mode #modal-aguardando-estorno #modal-aguardando-estorno-msg.alert-danger {
  background: #3b1f1f !important;
  border-color: #7a2a2a !important;
}
body.dark-mode .pdv-pos-text--processing {
  color: #ffc107;
}
body.dark-mode #resumo-total {
  color: #fff !important;
}
body.dark-mode .card-footer #resumo-total + div,
body.dark-mode .card-footer {
  border-color: #2dbc4e;
}
body.dark-mode #valorEspecies {
  border-color: rgba(255, 255, 255, 0.15) !important;
}
body.dark-mode #valorEspecies .pdv-especies-header {
  background: #1a2535 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #94a3b8 !important;
}
body.dark-mode #divespecies .btn-app.especie-focus {
  outline-color: #2dd4e8 !important;
  box-shadow: 0 0 0 5px rgba(45, 212, 232, 0.2) !important;
}

.pdv-picker-open-btn {
  flex: none;
  align-self: flex-end;
  margin: 0 0 4px 0 !important;
  padding: 6px 10px;
  line-height: 1.5;
  border-radius: 6px;
  color: #495057;
  background: #e9ecef;
  border: 1px solid #ced4da;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-size: 1rem;
}
.pdv-picker-open-btn:hover {
  background: #dee2e6;
  color: #212529;
}

body.dark-mode .pdv-picker-open-btn {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}
body.dark-mode .pdv-picker-open-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.pdv-shortcut-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.6;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
  color: #495057;
  letter-spacing: 0.03em;
  vertical-align: middle;
  font-family: monospace;
}

body.dark-mode .pdv-shortcut-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #e0e0e0;
}

.pdv-produto-com-picker {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1 1 100%;
  width: 100%;
}
.pdv-produto-com-picker > .col-md-12 {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 !important;
  max-width: none !important;
  width: auto !important;
}

.pdv-item-cancelado {
  opacity: 0.5;
}
.pdv-item-cancelado h6 {
  text-decoration: line-through !important;
}

.pdv-comanda-item-badge {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #e3f2fd;
  color: #0277bd;
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body.dark-mode .pdv-comanda-item-badge {
  background: #0d3a5c;
  color: #7dd3fc;
}

#modal-produto-picker .modal-dialog {
  max-width: 90vw;
  width: 90vw;
  margin: 20px auto;
}
#modal-produto-picker .modal-body {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 160px);
  overflow: hidden;
  padding: 0;
}

.pdv-picker-search-bar {
  padding: 12px 16px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid #dee2e6;
}

.pdv-picker-search-wrap {
  position: relative;
}

.pdv-picker-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1rem;
  pointer-events: none;
  z-index: 4;
}

.pdv-picker-search-input {
  padding-left: 2.6rem !important;
  font-size: 1.1rem;
}

.pdv-picker-categorias {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 8px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid #dee2e6;
  scrollbar-width: none;
}
.pdv-picker-categorias::-webkit-scrollbar {
  display: none;
}
.pdv-picker-categorias .pdv-picker-cat-btn {
  flex: 1;
  min-width: 0;
}

.pdv-picker-cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 4px 12px;
  border: 1.5px solid #dee2e6;
  border-radius: 20px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: #495057;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  outline: none;
}
.pdv-picker-cat-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
.pdv-picker-cat-btn:hover:not(.active) {
  background: #e9ecef;
}

.pdv-picker-grid-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 16px;
}

.pdv-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.pdv-picker-empty {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  font-size: 0.95rem;
}

.pdv-picker-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.1s;
  background: #fff;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.pdv-picker-card:hover {
  border-color: #007bff;
  box-shadow: 0 2px 12px rgba(0, 123, 255, 0.18);
  transform: translateY(-2px);
}
.pdv-picker-card:active {
  transform: scale(0.97);
}

.pdv-picker-card-selected {
  border-color: #007bff !important;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4), 0 2px 12px rgba(0, 123, 255, 0.18) !important;
}

body.dark-mode .pdv-picker-card-selected {
  border-color: #63b3ed !important;
  box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.4), 0 2px 12px rgba(99, 179, 237, 0.18) !important;
}

.pdv-picker-card-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.pdv-picker-card-thumb img.pdv-picker-card-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.pdv-picker-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdv-picker-card-fallback i {
  font-size: 2.4rem;
  color: #adb5bd;
}

.pdv-picker-card-body {
  padding: 6px 8px 8px;
  border-top: 1px solid #dee2e6;
}

.pdv-picker-card-nome {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #212529;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 3px;
}

.pdv-picker-card-preco {
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803d;
  font-family: "Courier New", Courier, monospace;
}

body.dark-mode #modal-produto-picker .modal-content {
  background: #1e2229;
  border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .pdv-picker-search-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .pdv-picker-search-icon {
  color: rgba(255, 255, 255, 0.4);
}
body.dark-mode .pdv-picker-search-input {
  background: #2a3140 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #e0e0e0 !important;
}
body.dark-mode .pdv-picker-search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
}
body.dark-mode .pdv-picker-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
body.dark-mode .pdv-picker-categorias {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .pdv-picker-cat-btn {
  background: #2a3140;
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
}
body.dark-mode .pdv-picker-cat-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
body.dark-mode .pdv-picker-cat-btn:hover:not(.active) {
  background: #353d4d;
}
body.dark-mode .pdv-picker-card {
  background: #2a3140;
  border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .pdv-picker-card:hover {
  border-color: #4dabf7;
  box-shadow: 0 2px 12px rgba(77, 171, 247, 0.2);
}
body.dark-mode .pdv-picker-card-thumb {
  background: #1a2535;
}
body.dark-mode .pdv-picker-card-fallback i {
  color: #4a5568;
}
body.dark-mode .pdv-picker-card-body {
  border-top-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .pdv-picker-card-nome {
  color: rgba(255, 255, 255, 0.9);
}
body.dark-mode .pdv-picker-card-preco {
  color: #4ade80;
}

.pdv-comanda-modal-dialog {
  margin: 40px auto;
}

.pdv-comanda-modal-content {
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdv-comanda-dias {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 6px 16px;
  border-bottom: 1px solid #dee2e6;
  scrollbar-width: none;
  background: #f8f9fa;
}
.pdv-comanda-dias:empty {
  display: none;
}
.pdv-comanda-dias::-webkit-scrollbar {
  display: none;
}

body.dark-mode .pdv-comanda-dias {
  background: #1a2535;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pdv-comanda-totais {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  flex-shrink: 0;
}

.pdv-comanda-totais-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
}

.pdv-comanda-totais-sep {
  width: 1px;
  align-self: stretch;
  background: #dee2e6;
}

.pdv-comanda-totais-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6c757d;
  line-height: 1;
  margin-bottom: 3px;
}

.pdv-comanda-totais-valor {
  font-size: 1.5rem;
  font-weight: 900;
  color: #15803d;
  font-family: "Courier New", Courier, monospace;
  line-height: 1;
}
.pdv-comanda-totais-valor--pago {
  color: #0277bd;
}

body.dark-mode .pdv-comanda-totais {
  background: #1a2535;
  border-top-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .pdv-comanda-totais-sep {
  background: rgba(255, 255, 255, 0.1);
}
body.dark-mode .pdv-comanda-totais-label {
  color: rgba(255, 255, 255, 0.4);
}
body.dark-mode .pdv-comanda-totais-valor {
  color: #4ade80;
}
body.dark-mode .pdv-comanda-totais-valor--pago {
  color: #7dd3fc;
}

.pdv-comanda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.pdv-comanda-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.1s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.pdv-comanda-card:hover {
  border-color: #007bff;
  box-shadow: 0 2px 12px rgba(0, 123, 255, 0.18);
  transform: translateY(-2px);
}
.pdv-comanda-card:active {
  transform: scale(0.97);
}

.pdv-comanda-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.pdv-comanda-card-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-bottom: 4px;
  overflow: hidden;
}

.pdv-comanda-card-num {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: "Courier New", Courier, monospace;
  color: #212529;
  line-height: 1;
}

.pdv-comanda-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
.pdv-comanda-badge--balanca {
  background: #e3f2fd;
  color: #0277bd;
}
.pdv-comanda-badge--outros {
  background: #f3e5f5;
  color: #6a1b9a;
}
.pdv-comanda-badge--lancado {
  background: #e8f5e9;
  color: #2e7d32;
}
.pdv-comanda-badge--pago {
  background: #fff8e1;
  color: #f57f17;
}
.pdv-comanda-badge--impresso {
  background: #fce4ec;
  color: #880e4f;
}
.pdv-comanda-badge--cancelado {
  background: #fce4ec;
  color: #b71c1c;
}
.pdv-comanda-badge--delivery {
  background: #fff3e0;
  color: #e65100;
}
.pdv-comanda-badge--ifood {
  background: #ffebee;
  color: #b71c1c;
}
.pdv-comanda-badge--em-preparo {
  background: #f97316;
  color: #fff;
}
.pdv-comanda-badge--pronto {
  background: #16a34a;
  color: #fff;
}

.ifood-mini-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ea1d2c;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 3px;
  padding: 1px 3px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pdv-comanda-card-pessoa {
  font-size: 0.82rem;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdv-comanda-card-pessoa--vazio {
  visibility: hidden;
}
.pdv-comanda-card-pessoa i {
  color: #adb5bd;
  margin-right: 3px;
}

.pdv-comanda-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.pdv-comanda-card-hora {
  font-size: 0.75rem;
  color: #6c757d;
}
.pdv-comanda-card-hora i {
  margin-right: 2px;
}

.pdv-comanda-card-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: #15803d;
  font-family: "Courier New", Courier, monospace;
}

.pdv-comanda-card-saldo {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #dc3545;
  border-radius: 6px;
  padding: 1px 7px;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.01em;
}

body.dark-mode .pdv-comanda-card {
  background: #2a3140;
  border-color: rgba(255, 255, 255, 0.12);
}
body.dark-mode .pdv-comanda-card:hover {
  border-color: #4dabf7;
  box-shadow: 0 2px 12px rgba(77, 171, 247, 0.2);
}
body.dark-mode .pdv-comanda-card-num {
  color: rgba(255, 255, 255, 0.9);
}
body.dark-mode .pdv-comanda-card-pessoa {
  color: rgba(255, 255, 255, 0.7);
}
body.dark-mode .pdv-comanda-card-hora {
  color: rgba(255, 255, 255, 0.4);
}
body.dark-mode .pdv-comanda-card-total {
  color: #4ade80;
}
body.dark-mode .pdv-comanda-card-saldo {
  background: #991b1b;
  color: #fecaca;
}
body.dark-mode .pdv-comanda-badge--balanca {
  background: #0d3a5c;
  color: #7dd3fc;
}
body.dark-mode .pdv-comanda-badge--outros {
  background: #3b1f5c;
  color: #d8b4fe;
}
body.dark-mode .pdv-comanda-badge--delivery {
  background: #431407;
  color: #fed7aa;
}
body.dark-mode .pdv-comanda-badge--ifood {
  background: #450a0a;
  color: #fca5a5;
}
body.dark-mode .pdv-comanda-badge--em-preparo {
  background: #c2410c;
  color: #fff;
}
body.dark-mode .pdv-comanda-badge--pronto {
  background: #15803d;
  color: #fff;
}

.pdv-comanda-itens-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  background: #1e3a5f;
  color: #93c5fd;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-left: auto;
}
.pdv-comanda-itens-badge:hover {
  background: #1d4ed8;
  color: #fff;
}

@media (max-width: 900px) {
  #formasdepagamento .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
  }
  #formasdepagamento .modal-dialog > .row {
    flex-wrap: wrap !important;
    min-height: unset !important;
    overflow-y: auto !important;
    height: 100vh;
  }
  #formasdepagamento .col-md-7,
  #formasdepagamento .col-md-5 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    min-height: unset !important;
  }
  #formasdepagamento .col-md-5 .card {
    height: auto !important;
    min-height: unset !important;
  }
}
@media (min-width: 901px) and (max-width: 1200px) {
  #formasdepagamento .modal-dialog {
    max-width: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
    margin: 12px auto !important;
    overflow-x: hidden !important;
  }
  #formasdepagamento .col-md-7 {
    flex: 0 0 calc(62% - 6px) !important;
    max-width: calc(62% - 6px) !important;
  }
  #formasdepagamento .col-md-5 {
    flex: 0 0 calc(38% - 6px) !important;
    max-width: calc(38% - 6px) !important;
  }
  #resumoitens td, #resumoitens th, #resumoitens h6 {
    font-size: 0.85rem !important;
    padding: 2px 6px !important;
  }
  #formasdepagamento .card-footer #resumo-total {
    font-size: 1.8rem !important;
  }
}
.mov-pag-tef-detail {
  background: #f1f3f5;
  border-top: 1px solid #dee2e6;
  color: #495057;
}
.mov-pag-tef-detail small {
  color: #6c757d;
}

body.dark-mode .mov-pag-tef-detail {
  background: #1e2a38;
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #d0d8e4;
}
body.dark-mode .mov-pag-tef-detail small {
  color: rgba(255, 255, 255, 0.45);
}

.border-highlight {
  border: 2px solid #3097D1 !important;
}
