/* Power Celular V41 — PDV auditado e histórico de caixa */

#pdv,
#pdv-historico,
#pdv .pdv29,
#pdv .pdv29 *,
#pdv-historico * {
  box-sizing: border-box;
}

.workspace:has(#pdv.page-active),
.workspace:has(#pdv-historico.page-active) {
  height: auto !important;
  min-height: 100dvh;
  overflow: visible !important;
  overflow-x: clip !important;
}

body:has(#pdv.page-active),
html:has(#pdv.page-active) {
  height: auto !important;
  min-height: 100%;
  overflow-y: auto !important;
}

#pdv.page-active,
#pdv-historico.page-active {
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#pdv.page-active {
  padding-bottom: 24px;
}

#pdv .pdv29 {
  --pdv-border: rgba(148, 163, 184, 0.2);
  --pdv-soft: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  overflow: visible;
}

#pdv .pdv29-top {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--pdv-border);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(20, 151, 255, 0.1), rgba(255, 255, 255, 0.025));
}

#pdv .pdv26-title {
  min-width: 0;
}

#pdv .pdv26-title h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 25px);
}

#pdv .pdv26-title p:last-child {
  margin: 4px 0 0;
  font-size: 13px;
}

#pdv .pdv29-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#pdv .pdv29-actions button,
#pdv .pdv26-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
}

#pdv .pdv29-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#pdv .pdv29-kpis .pdv26-kpi {
  min-width: 0;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 17px;
}

#pdv .pdv29-kpis .pdv26-kpi strong {
  overflow-wrap: anywhere;
}

#pdv .pdv29-workbench {
  display: grid;
  grid-template-columns: 250px minmax(420px, 1fr) 340px !important;
  grid-template-areas: "customer sale payment" !important;
  gap: 12px;
  height: auto;
  min-height: 590px;
  overflow: visible;
}

#pdv .pdv29-workbench > * {
  min-width: 0;
}

#pdv .pdv29 .pdv26-panel {
  min-height: 0;
  overflow: visible;
  border-radius: 20px;
}

#pdv .pdv29-panel-head {
  min-height: 58px;
  padding: 13px 14px;
}

#pdv .pdv29-customer-body,
#pdv .pdv29-sale-body,
#pdv .pdv29-pay-body {
  min-width: 0;
  height: auto !important;
  padding: 12px;
  overflow: visible;
}

#pdv .pdv29-customer-body {
  display: grid;
  gap: 10px;
}

#pdv .pdv26-input,
#pdv .pdv26-select,
#pdv .pdv26-textarea {
  width: 100%;
  min-width: 0;
  font-size: 14px;
}

#pdv .pdv29-product-line {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

#pdv .pdv29-product-input-wrap {
  min-width: 0;
}

#pdv .pdv29-product-results {
  width: 100%;
  max-width: 100%;
  max-height: 250px;
  overflow-y: auto;
}

#pdv .pdv29-result {
  min-width: 0;
  text-align: left;
}

#pdv .pdv29-result > div:first-child,
#pdv .pdv29-result h4,
#pdv .pdv29-result small {
  min-width: 0;
  overflow-wrap: anywhere;
}

#pdv .pdv29-cart {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 400px;
  overflow: auto;
  overscroll-behavior: contain;
}

#pdv .pdv26-cart-table {
  width: 100%;
  min-width: 560px;
}

#pdv .pdv29-summary,
#pdv .pdv29-note-row,
#pdv .pdv29-method-block,
#pdv .pdv29-payment-list {
  min-width: 0;
}

#pdv .pdv29-payment-list {
  max-height: 210px;
  overflow-y: auto;
}

#pdv .pdv29-footer-actions {
  position: sticky !important;
  bottom: 0;
  z-index: 30;
  margin-top: auto;
  padding: 10px 0 2px;
  background: linear-gradient(180deg, transparent, var(--p26-bg) 25%);
}

@media (min-width: 1181px) {
  #pdv .pdv29-pay-panel {
    position: sticky;
    top: 72px;
    align-self: start;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100dvh - 86px);
    overflow: hidden !important;
  }

  #pdv .pdv29-pay-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100dvh - 145px);
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-bottom: 0;
  }
}

#pdv .pdv26-btn:focus-visible,
#pdv button:focus-visible,
#pdv input:focus-visible,
#pdv select:focus-visible,
#pdv-historico button:focus-visible,
#pdv-historico input:focus-visible,
#pdv-historico select:focus-visible {
  outline: 3px solid rgba(20, 151, 255, 0.45);
  outline-offset: 2px;
}

#pdv button:disabled,
#pdv-historico button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

#pdv .pdv36-closed-state {
  min-height: clamp(410px, calc(100dvh - 250px), 650px);
}

/* Histórico exclusivo do PDV */
.pdv-history {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.pdv-history-hero,
.pdv-history-filters,
.pdv-history-table-card,
.pdv-history-empty {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.pdv-history-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.pdv-history-hero h2,
.pdv-history-hero p {
  margin: 0;
}

.pdv-history-hero h2 {
  font-size: clamp(23px, 3vw, 34px);
}

.pdv-history-hero p {
  margin-top: 6px;
}

.pdv-history-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(190px, 1fr) minmax(150px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
}

.pdv-history-filters label {
  min-width: 0;
}

.pdv-history-filters input,
.pdv-history-filters select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-3);
  color: var(--text);
}

.pdv-history-filters button,
.pdv-history-back,
.pdv-history-view {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.pdv-history-back,
.pdv-history-view.primary {
  border-color: rgba(20, 151, 255, 0.4);
  background: rgba(20, 151, 255, 0.13);
  color: var(--power-blue);
}

.pdv-history-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.pdv-history-metric {
  min-width: 0;
  min-height: 104px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.pdv-history-metric span,
.pdv-history-metric small {
  display: block;
  color: var(--muted);
}

.pdv-history-metric strong {
  display: block;
  margin: 9px 0 3px;
  font-size: clamp(18px, 2vw, 24px);
  overflow-wrap: anywhere;
}

.pdv-history-metric.blue strong { color: var(--power-blue); }
.pdv-history-metric.green strong { color: var(--green); }
.pdv-history-metric.red strong { color: var(--red); }
.pdv-history-metric.yellow strong { color: var(--yellow); }

.pdv-history-table-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.pdv-history-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--border);
}

.pdv-history-table-head h3,
.pdv-history-table-head p {
  margin: 0;
}

.pdv-history-table-head p {
  margin-top: 4px;
}

.pdv-history-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.pdv-history-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.pdv-history-table th,
.pdv-history-table td {
  padding: 14px 13px;
  vertical-align: middle;
}

.pdv-history-table td small,
.pdv-history-table td strong {
  display: block;
}

.pdv-history-table td small {
  margin-top: 3px;
  color: var(--muted-2);
}

.pdv-history-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.pdv-history-status.open {
  background: rgba(22, 199, 132, 0.12);
  color: var(--green);
}

.pdv-history-difference.positive { color: var(--green) !important; }
.pdv-history-difference.negative { color: var(--red) !important; }

.pdv-history-empty {
  padding: 42px 20px;
  text-align: center;
}

.pdv-history-empty strong,
.pdv-history-empty span {
  display: block;
}

.pdv-history-empty span {
  margin-top: 6px;
  color: var(--muted);
}

.pdv-history-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdv-history-detail-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--pdv-soft, rgba(255, 255, 255, 0.035));
}

.pdv-history-detail-card.full {
  grid-column: 1 / -1;
}

.pdv-history-detail-card h3 {
  margin: 0 0 12px;
}

.pdv-history-detail-list {
  display: grid;
  gap: 9px;
}

.pdv-history-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.pdv-history-detail-list span {
  color: var(--muted);
}

@media (max-width: 1600px) {
  #pdv .pdv29-workbench {
    grid-template-columns: minmax(0, 1fr) 330px !important;
    grid-template-areas: "customer customer" "sale payment" !important;
    min-height: 0;
  }

  #pdv .pdv29-customer-panel { grid-area: customer; }
  #pdv .pdv29-sale-panel { grid-area: sale; }
  #pdv .pdv29-pay-panel { grid-area: payment; }

  #pdv .pdv29-customer-body {
    grid-template-columns: minmax(260px, 1fr) auto minmax(210px, 0.7fr) minmax(150px, 0.45fr);
    align-items: end;
  }

  .pdv-history-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pdv-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  #pdv .pdv29-workbench {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "customer" "sale" "payment" !important;
  }

  #pdv .pdv29-customer-body {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #pdv .pdv29-selected-client,
  #pdv .pdv29-customer-body > .pdv26-field:last-child {
    grid-column: 1 / -1;
  }

  #pdv .pdv29-cart,
  #pdv .pdv29-payment-list {
    max-height: none;
  }

  #pdv .pdv29-pay-panel {
    position: static;
    max-height: none;
    overflow: visible !important;
  }

  #pdv .pdv29-pay-body {
    max-height: none;
    overflow: visible !important;
  }

  .pdv-history-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1181px) and (max-height: 880px) {
  #pdv .pdv29-pay-panel {
    top: 58px;
    max-height: calc(100dvh - 66px);
  }

  #pdv .pdv29-pay-body {
    max-height: calc(100dvh - 116px);
  }
}

@media (max-width: 760px) {
  #pdv .pdv29 {
    gap: 9px;
  }

  #pdv .pdv29-top,
  .pdv-history-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  #pdv .pdv29-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pdv .pdv29-actions button {
    width: 100%;
  }

  #pdv .pdv29-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pdv .pdv29-kpis .pdv26-kpi {
    min-height: 72px;
    padding: 12px;
  }

  #pdv .pdv29-customer-body,
  #pdv .pdv29-product-line,
  #pdv .pdv29-payment-form,
  #pdv .pdv29-note-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #pdv .pdv29-customer-body > *,
  #pdv .pdv29-selected-client,
  #pdv .pdv29-customer-body > .pdv26-field:last-child {
    grid-column: auto;
  }

  #pdv .pdv29-client-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pdv .pdv29-product-line > button {
    width: 100%;
  }

  #pdv .pdv26-cart-table {
    min-width: 0;
  }

  #pdv .pdv26-cart-table thead {
    display: none;
  }

  #pdv .pdv26-cart-table,
  #pdv .pdv26-cart-table tbody,
  #pdv .pdv26-cart-table tr,
  #pdv .pdv26-cart-table td {
    display: block;
    width: 100%;
  }

  #pdv .pdv26-cart-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }

  #pdv .pdv26-cart-table td {
    padding: 0;
    border: 0;
  }

  #pdv .pdv26-cart-table td:first-child {
    grid-column: 1 / -1;
  }

  #pdv .pdv26-cart-table td:nth-child(2) { grid-column: 1; }
  #pdv .pdv26-cart-table td:nth-child(3) { grid-column: 2; align-self: center; }
  #pdv .pdv26-cart-table td:nth-child(4) { grid-column: 3; align-self: center; }

  #pdv .pdv29-footer-actions,
  .pdv-history-filters,
  .pdv-history-metrics,
  .pdv-history-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #pdv .pdv36-closed-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #pdv .pdv36-history {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pdv-history-hero .pdv-history-back,
  .pdv-history-filters button {
    width: 100%;
  }

  .pdv-history-table-card {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .pdv-history-table-head {
    padding: 0 0 12px;
    border: 0;
  }

  .pdv-history-table-scroll {
    overflow: visible;
  }

  .pdv-history-table,
  .pdv-history-table tbody,
  .pdv-history-table tr,
  .pdv-history-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .pdv-history-table thead {
    display: none;
  }

  .pdv-history-table tbody {
    display: grid;
    gap: 10px;
  }

  .pdv-history-table tr {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
  }

  .pdv-history-table td {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .pdv-history-table td::before {
    content: attr(data-label);
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .pdv-history-table td:last-child {
    display: block;
    border: 0;
    padding-bottom: 0;
  }

  .pdv-history-table td:last-child::before {
    display: none;
  }

  .pdv-history-table td:last-child button {
    width: 100%;
  }

  .pdv-history-detail-card.full {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  #pdv .pdv29-actions,
  #pdv .pdv29-kpis,
  #pdv .pdv29-client-actions,
  #pdv .pdv36-closed-top {
    grid-template-columns: minmax(0, 1fr);
  }

  #pdv .pdv36-history {
    grid-column: auto;
  }

  .pdv-history-table td {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* V46 — modo operacional: PDV inteiro em uma tela (tablet horizontal, notebook e monitor) */
@media (min-width: 761px) {
  html:has(#pdv.page-active),
  body:has(#pdv.page-active) {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .workspace:has(#pdv.page-active) {
    height: 100dvh !important;
    min-height: 0 !important;
    padding: 7px 10px !important;
    overflow: hidden !important;
  }

  .workspace:has(#pdv.page-active) .topbar {
    min-height: 42px !important;
    padding: 0 0 5px !important;
    gap: 10px !important;
  }

  .workspace:has(#pdv.page-active) .topbar-actions {
    display: none !important;
  }

  .workspace:has(#pdv.page-active) .topbar h1 {
    font-size: clamp(20px, 2vw, 25px) !important;
    line-height: 1 !important;
  }

  .workspace:has(#pdv.page-active) .topbar .eyebrow {
    margin-bottom: 2px !important;
    font-size: 9px !important;
  }

  #pdv.page-active {
    height: calc(100dvh - 160px) !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  #pdv .pdv29 {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #pdv .pdv29-top {
    min-height: 42px !important;
    padding: 5px 9px !important;
    gap: 12px !important;
    border-radius: 13px !important;
  }

  #pdv .pdv26-title .eyebrow {
    margin: 0 0 1px !important;
    font-size: 8px !important;
  }

  #pdv .pdv26-title h2 {
    font-size: 14px !important;
    line-height: 1 !important;
  }

  #pdv .pdv26-title p:last-child {
    display: none !important;
  }

  #pdv .pdv29-actions {
    flex-wrap: nowrap !important;
    gap: 5px !important;
  }

  #pdv .pdv29-actions button,
  #pdv .pdv29-actions .pdv26-primary {
    width: auto !important;
    min-height: 29px !important;
    height: 29px !important;
    padding: 0 9px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  #pdv .pdv29-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #pdv .pdv29-kpis .pdv26-kpi {
    min-height: 43px !important;
    padding: 6px 9px !important;
    border-radius: 12px !important;
  }

  #pdv .pdv29-kpis .pdv26-kpi span {
    font-size: 8px !important;
  }

  #pdv .pdv29-kpis .pdv26-kpi strong {
    margin-top: 2px !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  #pdv .pdv29-workbench {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 310px !important;
    grid-template-rows: 86px minmax(0, 1fr) !important;
    grid-template-areas: "customer customer" "sale payment" !important;
    gap: 6px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #pdv .pdv29-customer-panel {
    grid-area: customer !important;
  }

  #pdv .pdv29-sale-panel {
    grid-area: sale !important;
  }

  #pdv .pdv29-pay-panel {
    grid-area: payment !important;
  }

  #pdv .pdv29-customer-panel,
  #pdv .pdv29-sale-panel,
  #pdv .pdv29-pay-panel {
    position: static !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 14px !important;
  }

  #pdv .pdv29-panel-head {
    min-height: 37px !important;
    padding: 6px 9px !important;
  }

  #pdv .pdv29-panel-head h3 {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.05 !important;
  }

  #pdv .pdv29-panel-head p {
    margin: 2px 0 0 !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  #pdv .pdv29-customer-body {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) auto minmax(150px, 0.55fr) 135px !important;
    align-items: end !important;
    gap: 6px !important;
    height: 49px !important;
    padding: 5px 8px !important;
    overflow: visible !important;
  }

  #pdv .pdv29-customer-body > *,
  #pdv .pdv29-selected-client,
  #pdv .pdv29-customer-body > .pdv26-field:last-child {
    grid-column: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #pdv .pdv29 .pdv26-field label {
    margin-bottom: 2px !important;
    font-size: 8.5px !important;
  }

  #pdv .pdv29 .pdv26-input,
  #pdv .pdv29 .pdv26-select {
    min-height: 29px !important;
    height: 29px !important;
    padding: 4px 8px !important;
    border-radius: 9px !important;
    font-size: 11px !important;
  }

  #pdv .pdv29-client-actions {
    display: flex !important;
    gap: 4px !important;
    align-self: end !important;
  }

  #pdv .pdv29-client-actions .pdv26-btn {
    min-height: 29px !important;
    height: 29px !important;
    padding: 0 8px !important;
    font-size: 9.5px !important;
  }

  #pdv .pdv29-selected-client {
    align-self: end !important;
    min-height: 29px !important;
    max-height: 29px !important;
    padding: 7px 8px !important;
    overflow: hidden !important;
    border-radius: 9px !important;
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  #pdv .pdv29-sale-body {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 5px !important;
    height: calc(100% - 37px) !important;
    min-height: 0 !important;
    padding: 6px !important;
    overflow: hidden !important;
  }

  #pdv .pdv29-product-line {
    grid-template-columns: minmax(180px, 1fr) 76px 76px !important;
    gap: 4px !important;
  }

  #pdv .pdv29-product-input,
  #pdv .pdv29-product-line .pdv26-btn {
    min-height: 30px !important;
    height: 30px !important;
    font-size: 9.5px !important;
  }

  #pdv .pdv29-cart {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 5px !important;
    overflow: auto !important;
  }

  #pdv .pdv29-cart .pdv26-empty {
    min-height: 100% !important;
    height: 100% !important;
    padding: 8px !important;
    font-size: 11px !important;
  }

  #pdv .pdv29-pay-body {
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
    gap: 4px !important;
    height: calc(100% - 37px) !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 6px 6px 0 !important;
    overflow: hidden !important;
  }

  #pdv .pdv29-summary {
    padding: 6px 8px !important;
    border-radius: 10px !important;
  }

  #pdv .pdv29-summary .pdv26-summary-line {
    margin: 0 !important;
    font-size: 9.5px !important;
    line-height: 1.15 !important;
  }

  #pdv .pdv29-summary .pdv26-summary-line.total {
    margin-top: 3px !important;
    padding-top: 4px !important;
    font-size: 12px !important;
  }

  #pdv .pdv29-note-row {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  #pdv .pdv29-note-row .pdv26-input {
    height: 27px !important;
    min-height: 27px !important;
  }

  #pdv .pdv29-method-tabs {
    gap: 3px !important;
  }

  #pdv .pdv29-method-tabs button {
    min-height: 25px !important;
    height: 25px !important;
    padding: 0 2px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
  }

  #pdv .pdv29-payment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    margin-top: 3px !important;
  }

  #pdv .pdv29-payment-form label,
  #pdv .pdv29-payment-form .pdv28-interest > span {
    font-size: 8.5px !important;
  }

  #pdv .pdv29-payment-form .pdv26-input,
  #pdv .pdv29-payment-form .pdv26-select,
  #pdv .pdv29-payment-form .pdv26-btn {
    min-height: 27px !important;
    height: 27px !important;
    font-size: 9.5px !important;
  }

  #pdv .pdv29-interest button {
    min-height: 28px !important;
    padding: 3px 5px !important;
    font-size: 9px !important;
  }

  #pdv .pdv29-interest button small {
    display: none !important;
  }

  #pdv .pdv29-helper,
  #pdv .pdv29-payment-form .pdv33-change-helper {
    min-height: 25px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    font-size: 8.5px !important;
    line-height: 1.1 !important;
  }

  #pdv .pdv29-payment-list {
    min-height: 0 !important;
    max-height: none !important;
    overflow: auto !important;
  }

  #pdv .pdv29-payment-list .pdv26-empty {
    min-height: 34px !important;
    height: 100% !important;
    padding: 4px !important;
    font-size: 8.5px !important;
    line-height: 1.1 !important;
  }

  #pdv .pdv29-footer-actions {
    position: static !important;
    grid-template-columns: 0.8fr 1.2fr !important;
    gap: 4px !important;
    padding: 3px 0 5px !important;
    background: var(--p26-bg) !important;
  }

  #pdv .pdv29-footer-actions button {
    min-height: 31px !important;
    height: 31px !important;
    border-radius: 9px !important;
    font-size: 10.5px !important;
  }
}

@media (min-width: 761px) and (max-height: 720px) {
  .workspace:has(#pdv.page-active) .topbar {
    min-height: 35px !important;
  }

  .workspace:has(#pdv.page-active) .topbar .eyebrow,
  #pdv .pdv29-panel-head p {
    display: none !important;
  }

  #pdv.page-active {
    height: calc(100dvh - 145px) !important;
  }

  #pdv .pdv29-top {
    min-height: 36px !important;
  }

  #pdv .pdv29-workbench {
    grid-template-rows: 76px minmax(0, 1fr) !important;
  }

  #pdv .pdv29-panel-head {
    min-height: 31px !important;
    padding: 5px 8px !important;
  }

  #pdv .pdv29-customer-body {
    height: 45px !important;
  }

  #pdv .pdv29-sale-body,
  #pdv .pdv29-pay-body {
    height: calc(100% - 31px) !important;
  }
}
