/* Laguna PDV — UI Premium */
:root {
  --sidebar-width: 280px;
  --sidebar-bg: #0b1120;
  --sidebar-blur: none;
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(99, 102, 241, 0.4);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.15);
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --topbar-h: 70px;
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --topbar-blur: blur(16px);
  --content-max: 1400px;
  --radius: 16px;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03), 0 12px 24px -4px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  background: #f4f7fe;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: #1e293b;
}

body.guest-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #4c1d95 100%);
  font-family: "DM Sans", system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}

body.guest-body::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  z-index: 1020;
}

.sidebar-brand {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand a {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.sidebar-brand small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
}

.sidebar-nav {
  padding: 1rem 0.85rem;
  flex: 1;
}

.sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sidebar-nav .nav-link:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
  transform: translateX(6px);
}

.sidebar-nav .nav-link.active {
  background: var(--sidebar-active);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  font-weight: 600;
}

.sidebar-nav .nav-link i {
  font-size: 1.25rem;
  opacity: 0.9;
  transition: transform 0.25s;
}

.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link:hover i {
  transform: scale(1.1);
  color: #fff;
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.sidebar-user strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.sidebar-footer .btn {
  font-weight: 600;
  letter-spacing: 0.02em;
  border-color: rgba(255,255,255,0.2) !important;
  transition: all 0.2s;
}

.sidebar-footer .btn:hover {
  background: #fff;
  color: #0f172a;
}

/* Main column */
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  background: var(--topbar-bg);
  backdrop-filter: var(--topbar-blur);
  -webkit-backdrop-filter: var(--topbar-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1010;
  box-shadow: 0 4px 24px -6px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}

.topbar-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.content-area {
  flex: 1;
  padding: 2.5rem 2rem;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

/* Cards */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: transparent;
  transition: background 0.3s;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.stat-card:hover::after {
  background: var(--accent-gradient);
}

.stat-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.stat-card:hover .icon-wrap {
  transform: scale(1.1) rotate(4deg);
}

.stat-card .label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.stat-card .value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-card .sub {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.35rem;
  font-weight: 500;
}

.quick-card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.quick-card:hover {
  box-shadow: var(--shadow-hover);
}

/* Atalhos do painel */
.dash-hero {
  margin-bottom: 1.5rem;
}

.dash-hero__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.dash-hero__subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.dash-cash-summary {
  display: block;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0.9) 55%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dash-cash-summary:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.12);
  color: inherit;
}

.dash-cash-summary__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.dash-cash-summary__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.dash-cash-summary__cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
}

.dash-cash-stat {
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.06);
  height: 100%;
}

.dash-cash-stat--highlight {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
}

.dash-cash-stat__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.dash-cash-stat__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.dash-cash-stat__value--sm {
  font-size: 0.95rem;
}

.dash-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.dash-shortcuts--hero {
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .dash-shortcuts--hero {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .dash-shortcuts--hero {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  }
}

@media (min-width: 1200px) {
  .dash-shortcuts:not(.dash-shortcuts--hero) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dash-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 1.35rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
  height: 100%;
  color: inherit;
  position: relative;
  z-index: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.12);
  cursor: pointer;
}

.dash-shortcuts--hero .dash-shortcut {
  padding: 2rem 1.25rem 1.75rem;
  border-radius: 1.25rem;
  min-height: 200px;
  justify-content: center;
}

.dash-shortcut:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: inherit;
}

.dash-shortcut__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
  transition: transform 0.25s;
}

.dash-shortcuts--hero .dash-shortcut__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  font-size: 2.5rem;
  margin-bottom: 1.15rem;
}

.dash-shortcut:hover .dash-shortcut__icon {
  transform: scale(1.08);
}

.dash-shortcuts--hero .dash-shortcut:hover .dash-shortcut__icon {
  transform: scale(1.06);
}

.dash-shortcut__icon--pdv {
  background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.dash-shortcut__icon--products {
  background: linear-gradient(145deg, #f59e0b 0%, #fbbf24 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.dash-shortcut__icon--labels {
  background: linear-gradient(145deg, #0ea5e9 0%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.dash-shortcut__icon--cash {
  background: linear-gradient(145deg, #10b981 0%, #34d399 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.dash-shortcut__icon--sales {
  background: linear-gradient(145deg, #64748b 0%, #94a3b8 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(100, 116, 139, 0.35);
}

.dash-shortcuts--hero .dash-shortcut__icon--pdv,
.dash-shortcuts--hero .dash-shortcut__icon--products,
.dash-shortcuts--hero .dash-shortcut__icon--labels,
.dash-shortcuts--hero .dash-shortcut__icon--cash,
.dash-shortcuts--hero .dash-shortcut__icon--sales {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.dash-shortcut__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.dash-shortcuts--hero .dash-shortcut__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.dash-shortcut__desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

.dash-shortcuts--hero .dash-shortcut__desc {
  font-size: 0.85rem;
}

.guest-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 10;
}

/* Glass card (for login/guest pages) */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 24px;
}

/* Login — moderno (fundo claro + card) */
body.guest-body:has(.login-page) {
  background: #f8fafc;
}

body.guest-body:has(.login-page)::before {
  display: none;
}

.guest-wrap:has(.login-page) {
  padding: 1.5rem 1rem;
  align-items: center;
}

.login-page {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.login-page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-page__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.login-page__blob--1 {
  width: 420px;
  height: 420px;
  top: -12%;
  right: -8%;
  background: rgba(30, 136, 229, 0.22);
}

.login-page__blob--2 {
  width: 360px;
  height: 360px;
  bottom: -10%;
  left: -12%;
  background: rgba(247, 148, 29, 0.2);
}

.login-page__blob--3 {
  width: 240px;
  height: 240px;
  top: 42%;
  left: 38%;
  background: rgba(99, 102, 241, 0.12);
}

.login-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.25rem 2rem 1.75rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 24px 48px -12px rgba(15, 23, 42, 0.1),
    0 8px 16px -8px rgba(15, 23, 42, 0.06);
}

.login-card__brand {
  text-align: center;
  margin: -0.5rem auto 1.5rem;
  padding: 0.5rem 0;
  background: #ffffff;
}

.login-card__brand img {
  width: min(200px, 70vw);
  height: auto;
  display: inline-block;
}

.login-card__intro {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-card__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.login-card__subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
}

.login-card__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #b91c1c;
  background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
  border: 1px solid #fecaca;
}

.login-card__alert i {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.login-field {
  margin-bottom: 1.1rem;
}

.login-field__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.4rem;
}

.login-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.login-field__icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
  transition: color 0.2s;
}

.login-field__input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-field__input::placeholder {
  color: #94a3b8;
}

.login-field__input:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.login-field__input:focus {
  outline: none;
  border-color: #1e88e5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
}

.login-field__control:focus-within .login-field__icon {
  color: #1e88e5;
}

.login-card__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 50%, #f7941d 120%);
  background-size: 200% auto;
  background-position: 0% center;
  box-shadow: 0 8px 20px rgba(30, 136, 229, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, background-position 0.35s;
}

.login-card__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 136, 229, 0.35);
  background-position: 100% center;
}

.login-card__submit:active {
  transform: translateY(0);
}

.login-card__submit i {
  font-size: 1.15rem;
  transition: transform 0.2s;
}

.login-card__submit:hover i {
  transform: translateX(3px);
}

.login-card__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-card__divider::before,
.login-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.login-card__divider span {
  color: #94a3b8;
}

.login-card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.login-tag {
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

@media (min-width: 480px) {
  .login-card {
    padding: 2.5rem 2.25rem 2rem;
  }

  .guest-wrap:has(.login-page) {
    padding: 2.5rem 1.5rem;
  }
}

/* Vendas — cards no celular; tabela só em desktop com mouse */
.sales-index__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}

.sales-index__table {
  display: none;
}

@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .sales-index__list {
    display: none !important;
  }

  .sales-index__table {
    display: block;
  }
}

button.sales-card {
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.sales-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1rem 1rem 0.85rem;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.sales-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sales-card-accent, #22c55e);
  border-radius: 16px 0 0 16px;
}

.sales-card--ok {
  --sales-card-accent: #22c55e;
}

.sales-card--canceled {
  --sales-card-accent: #ef4444;
  background: #fafafa;
}

.sales-card:active,
.sales-card.sales-card--pressed {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.sales-card--ok:active,
.sales-card--ok.sales-card--pressed {
  border-color: #86efac;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 55%);
}

.sales-card--canceled:active,
.sales-card--canceled.sales-card--pressed {
  border-color: #fecaca;
}

.sales-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 60%
  );
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.2s;
  pointer-events: none;
}

.sales-card:active .sales-card__shine {
  opacity: 1;
  animation: sales-card-shine 0.45s ease;
}

@keyframes sales-card-shine {
  to {
    transform: translateX(100%);
  }
}

.sales-card__icon {
  flex-shrink: 0;
  align-self: center;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
  margin-left: 0.35rem;
}

.sales-card--ok .sales-card__icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.sales-card--canceled .sales-card__icon {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.sales-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.25rem;
}

.sales-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sales-card__num {
  font-weight: 800;
  font-size: 0.9rem;
  color: #64748b;
  letter-spacing: 0.02em;
}

.sales-card__pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.sales-card--ok .sales-card__pill {
  background: #dcfce7;
  color: #15803d;
}

.sales-card--canceled .sales-card__pill {
  background: #fee2e2;
  color: #b91c1c;
}

.sales-card__amount {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.sales-card--ok .sales-card__amount {
  color: #047857;
}

.sales-card--canceled .sales-card__amount {
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.sales-card__time {
  font-size: 0.8rem;
  color: #94a3b8;
}

.sales-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e88e5;
  transition: gap 0.15s ease;
}

.sales-card:active .sales-card__cta,
.sales-card.sales-card--pressed .sales-card__cta {
  gap: 0.35rem;
}

.sales-card__cta-icon {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.sales-card:active .sales-card__cta-icon,
.sales-card.sales-card--pressed .sales-card__cta-icon {
  transform: translateX(3px);
}

.sales-row-click {
  cursor: pointer;
}

.sales-row-click:hover {
  background: rgba(30, 136, 229, 0.04);
}

.sale-detail-modal__header {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  position: sticky;
  top: 0;
  z-index: 2;
}

.sale-detail-modal__footer {
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
}

.sale-detail-section {
  margin-bottom: 1.25rem;
}

.sale-detail-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.sale-detail-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.sale-detail-item:last-child {
  border-bottom: none;
}

.sale-detail-item__name {
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.sale-detail-item__meta {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.sale-detail-item__prices {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.sale-detail-pay {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  border: 1px solid #e2e8f0;
}

.sale-detail-pay__row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

.sale-detail-total {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.sale-detail-total__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.15rem 0;
}

.sale-detail-total__row--main {
  font-size: 1.2rem;
  font-weight: 800;
  color: #059669;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #86efac;
}

@media (max-width: 575.98px) {
  .sale-detail-modal .modal-body {
    padding-bottom: 1.5rem;
  }
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: all 0.25s;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: #4f46e5;
  border-color: #4f46e5;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

/* Mobile toggle */
.btn-sidebar-toggle {
  color: #475569;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.btn-sidebar-toggle:hover {
  background: #f8fafc;
  color: var(--accent);
  border-color: #cbd5e1;
}

.offcanvas.sidebar-offcanvas {
  background: var(--sidebar-bg);
  backdrop-filter: var(--sidebar-blur);
  -webkit-backdrop-filter: var(--sidebar-blur);
  width: min(300px, 85vw);
  z-index: 1055;
}

.offcanvas.sidebar-offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.offcanvas-backdrop {
  z-index: 1050;
}

body:not(.offcanvas-open) .offcanvas-backdrop {
  display: none !important;
  pointer-events: none !important;
}

@media (max-width: 991.98px) {
  .sidebar-desktop {
    display: none !important;
  }
  .content-area {
    padding: 1.5rem 1rem;
  }
}

@media (min-width: 992px) {
  .topbar-mobile-only {
    display: none !important;
  }
}

/* PDV (tela cheia) */
:root {
  --pdv-bg: #0b1220;
  --pdv-card-bg: #ffffff;
  --pdv-card-radius: 18px;
  --pdv-glass-bg: rgba(255, 255, 255, 0.12);
  --pdv-glass-bg-strong: rgba(255, 255, 255, 0.10);
}

.pdv-fullscreen-body {
  background: var(--pdv-bg);
}

.pdv-shell {
  min-height: 100vh;
}

.pdv-card {
  background: var(--pdv-card-bg);
  border: 0;
  border-radius: var(--pdv-card-radius);
}

.pdv-scanner {
  padding: 1.25rem 1.35rem 1.15rem;
  border-radius: var(--pdv-card-radius);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.pdv-scanner__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.65rem;
}

.pdv-scanner__field {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 16px;
  background: #fff;
  border: 2px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdv-scanner__field:focus-within {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.14),
    0 0 0 4px rgba(99, 102, 241, 0.1);
}

.pdv-scanner__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.04) 100%);
  color: #6366f1;
  font-size: 1.35rem;
}

.pdv-scanner__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 1rem 0.85rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.pdv-scanner__input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.pdv-scanner__input:focus {
  outline: none;
  box-shadow: none;
}

.pdv-scanner__input:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
}

.pdv-scanner__submit {
  flex-shrink: 0;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0 1.1rem;
  border: 0;
  border-left: 1px solid rgba(99, 102, 241, 0.12);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  font-size: 1.25rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.pdv-scanner__submit:hover:not(:disabled) {
  filter: brightness(1.06);
}

.pdv-scanner__submit:active:not(:disabled) {
  transform: scale(0.98);
}

.pdv-scanner__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pdv-scanner__hint {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.pdv-scanner__hint kbd {
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

@media (min-width: 768px) {
  .pdv-scanner__input {
    font-size: 1.25rem;
    padding: 1.1rem 1rem;
  }
}

.pdv-panel {
  position: sticky;
  top: 16px;
}

.pdv-shortcuts {
  gap: 0.35rem;
}

.pdv-shortcut-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pdv-shortcut-chip:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.pdv-shortcut-chip:active:not(:disabled) {
  transform: scale(0.98);
}

.pdv-shortcut-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pdv-shortcut-chip kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  pointer-events: none;
}

.pdv-shortcuts--panel .pdv-shortcut-chip {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: #475569;
}

.pdv-shortcuts--panel .pdv-shortcut-chip:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #334155;
}

.pdv-shortcuts--panel .pdv-shortcut-chip kbd {
  background: rgba(15, 23, 42, 0.08);
}

@media (max-width: 991.98px) {
  .pdv-shortcuts {
    width: 100%;
    margin-top: 0.25rem;
  }
}

.pdv-glass-badge {
  background: var(--pdv-glass-bg-strong);
}

.pdv-btn-glass {
  background: var(--pdv-glass-bg) !important;
  color: #fff !important;
}

.pdv-btn-glass:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.pdv-fullscreen-body .btn:focus-visible,
.pdv-fullscreen-body .form-control:focus-visible,
.pdv-fullscreen-body .form-select:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 2px;
}

.pdv-fullscreen-body .btn:focus,
.pdv-fullscreen-body .form-control:focus,
.pdv-fullscreen-body .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.18);
}

.product-hit {
  cursor: pointer;
}

.product-hit:hover {
  background: rgba(13, 110, 253, 0.08);
}

.product-hit:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: -2px;
}

.pdv-fullscreen-body .modal-content {
  border-radius: 18px;
}

.pdv-fullscreen-body .table > :not(caption) > * > * {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .pdv-fullscreen-body * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.pdv-modal-search-dialog {
  max-width: 860px;
}

.pdv-modal-checkout-dialog {
  max-width: 820px;
}

/* PDV — painel lateral Finalizar venda */
.pdv-checkout-panel {
  padding: 1.15rem 1.25rem 1.25rem;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.pdv-checkout-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.pdv-checkout-panel__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.pdv-checkout-panel__badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pdv-checkout-panel__total {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.pdv-checkout-panel__sub {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.pdv-checkout-panel__btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 45%, #15803d 100%);
  color: #fff;
  text-align: left;
  box-shadow:
    0 10px 28px rgba(22, 163, 74, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.pdv-checkout-panel__btn:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.4);
}

.pdv-checkout-panel__btn:active:not(:disabled) {
  transform: translateY(0);
}

.pdv-checkout-panel__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.pdv-checkout-panel__btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.35rem;
}

.pdv-checkout-panel__btn-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pdv-checkout-panel__btn-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.pdv-checkout-panel__btn-hint {
  font-size: 0.72rem;
  opacity: 0.85;
}

.pdv-checkout-panel__btn-hint kbd {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdv-checkout-panel__btn-arrow {
  flex-shrink: 0;
  opacity: 0.7;
  font-size: 1.1rem;
}

.pdv-checkout-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pdv-checkout-panel__mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pdv-checkout-panel__mini:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.pdv-checkout-panel__mini--success {
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
}

.pdv-checkout-panel__mini--success:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.1);
}

.pdv-checkout-panel__mini kbd {
  font-size: 0.85em;
  padding: 0.08em 0.3em;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
}

/* PDV — modal checkout */
.pdv-checkout-modal__hero {
  padding: 1.35rem 1.5rem 1.25rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: #fff;
}

.pdv-checkout-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pdv-checkout-modal__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pdv-checkout-modal__due {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pdv-checkout-modal__due-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.2rem;
}

.pdv-checkout-modal__due-value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #86efac;
}

.pdv-checkout-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.pdv-checkout-stat {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.pdv-checkout-stat--discount {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.12);
}

.pdv-checkout-stat__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.pdv-checkout-stat__value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.pdv-checkout-stat--discount .pdv-checkout-stat__value {
  color: #dc2626;
}

.pdv-checkout-section__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.pdv-checkout-discount__field {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(239, 68, 68, 0.15);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdv-checkout-discount__field:focus-within {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.pdv-checkout-discount__prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(239, 68, 68, 0.04);
  border-right: 1px solid rgba(239, 68, 68, 0.1);
}

.pdv-checkout-discount__input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.85rem 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
}

.pdv-checkout-discount__input:focus {
  outline: none;
}

/* PDV — cupom no checkout */
.pdv-checkout-coupon__row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.pdv-checkout-coupon__field {
  flex: 1;
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(168, 85, 247, 0.2);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdv-checkout-coupon__field:focus-within {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.pdv-checkout-coupon__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  color: #a855f7;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.04) 100%);
  border-right: 1px solid rgba(168, 85, 247, 0.12);
}

.pdv-checkout-coupon__input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: transparent;
}

.pdv-checkout-coupon__input:focus {
  outline: none;
}

.pdv-checkout-coupon__apply {
  flex-shrink: 0;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  transition: filter 0.15s ease;
}

.pdv-checkout-coupon__apply:hover:not(:disabled) {
  filter: brightness(1.06);
}

.pdv-checkout-coupon__apply:disabled {
  opacity: 0.6;
}

.pdv-checkout-coupon__applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.pdv-checkout-coupon__applied-code {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  color: #6d28d9;
}

.pdv-coupon-picks__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 140px;
  overflow-y: auto;
  padding: 0.15rem 0.1rem;
}

.pdv-coupon-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 88px;
  max-width: 140px;
  padding: 0.55rem 0.65rem;
  border: 2px solid rgba(168, 85, 247, 0.22);
  border-radius: 12px;
  background: linear-gradient(145deg, #faf5ff 0%, #fff 100%);
  color: #4c1d95;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pdv-coupon-pick:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.15);
}

.pdv-coupon-pick.is-selected {
  border-color: #7c3aed;
  background: linear-gradient(145deg, #ede9fe 0%, #f5f3ff 100%);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.pdv-coupon-pick__off {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  color: #7c3aed;
}

.pdv-coupon-pick__code {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: ui-monospace, monospace;
}

.pdv-coupon-pick__name {
  font-size: 0.62rem;
  color: #64748b;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.pdv-checkout-payments {
  padding-top: 0.25rem;
}

.pdv-checkout-pay-hint {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.pdv-checkout-pay-hint--danger {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
}

.pdv-checkout-pay-hint--warn {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
}

.pdv-checkout-pay-hint--ok {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}

.pdv-checkout-add-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.75rem 1rem;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: transparent;
  color: #6366f1;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pdv-checkout-add-pay:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.35);
}

.pdv-checkout-modal__footer {
  padding: 0.75rem 1.25rem 1.25rem;
  background: #f8fafc;
}

.pdv-checkout-confirm {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}

.pdv-checkout-confirm:hover:not(:disabled) {
  filter: brightness(1.05);
}

.pdv-modal-cash-dialog {
  max-width: 640px;
}

.pdv-modal-sangria-dialog {
  max-width: 480px;
}

.pdv-checkout-summary {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(13, 110, 253, 0.06));
  border: 1px solid rgba(25, 135, 84, 0.15);
}

.pdv-fullscreen-body kbd {
  font-size: 0.8em;
  padding: 0.15em 0.45em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
}

#changeHint i {
  margin-right: 0.25rem;
}

/* PDV — cards de pagamento */
.pdv-pay-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.15rem;
  margin-bottom: 0.75rem;
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.pdv-pay-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.pdv-pay-block__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.pdv-pay-block__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.06);
  color: #dc2626;
  font-size: 0.85rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pdv-pay-block__remove:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.pdv-pay-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.5rem;
}

.pdv-pay-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 82px;
  padding: 0.6rem 0.35rem 0.55rem;
  border: 2px solid transparent;
  border-radius: 16px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
  opacity: 0.88;
}

.pdv-pay-card:hover {
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
}

.pdv-pay-card:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.55);
  outline-offset: 2px;
}

.pdv-pay-card.is-active {
  transform: translateY(-3px) scale(1.03);
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.4);
}

.pdv-pay-card__check {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #15803d;
  font-size: 0.65rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.pdv-pay-card.is-active .pdv-pay-card__check {
  opacity: 1;
  transform: scale(1);
}

.pdv-pay-card__icon {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.95;
}

.pdv-pay-card__label {
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdv-pay-card--cash {
  background: linear-gradient(145deg, #4ade80 0%, #22c55e 40%, #15803d 100%);
}

.pdv-pay-card--credit {
  background: linear-gradient(145deg, #c084fc 0%, #a855f7 45%, #6d28d9 100%);
}

.pdv-pay-card--debit {
  background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 45%, #1d4ed8 100%);
}

.pdv-pay-card--pix {
  background: linear-gradient(145deg, #2dd4bf 0%, #14b8a6 45%, #0f766e 100%);
}

.pdv-pay-card--other {
  background: linear-gradient(145deg, #cbd5e1 0%, #94a3b8 45%, #475569 100%);
}

.pdv-pay-amount__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0.85rem 0 0.4rem;
}

.pdv-pay-amount {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(99, 102, 241, 0.18);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdv-pay-amount:focus-within {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow:
    0 8px 28px rgba(99, 102, 241, 0.1),
    0 0 0 4px rgba(99, 102, 241, 0.08);
}

.pdv-pay-amount__prefix {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  font-size: 1rem;
  font-weight: 800;
  color: #6366f1;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
  border-right: 1px solid rgba(99, 102, 241, 0.12);
}

.pdv-pay-amount__input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.9rem 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
  background: transparent;
}

.pdv-pay-amount__input:focus {
  outline: none;
}

.pdv-pay-amount__input::placeholder {
  color: #cbd5e1;
  font-weight: 600;
}

.pdv-change-hint {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.1), rgba(25, 135, 84, 0.08));
}

@media (max-width: 575.98px) {
  .pdv-pay-methods {
    grid-template-columns: repeat(3, 1fr);
  }

  .pdv-pay-card {
    min-height: 74px;
    font-size: 0.62rem;
  }

  .pdv-pay-card__icon {
    font-size: 1.25rem;
  }

  .pdv-checkout-stats {
    grid-template-columns: 1fr;
  }
}

.pdv-search-results {
  max-height: 55vh;
  overflow: auto;
}

/* Etiquetas — pré-visualização (mm na tela) */
.label-preview-sheet {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.label-preview-row--multi {
  padding: 0.75rem 1rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.label-preview-row__title {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.label-preview-row__cells {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: var(--label-gap, 2mm);
  width: calc(var(--label-w, 50mm) * 2 + var(--label-gap, 2mm));
  max-width: 100%;
}

.label-preview-row:not(.label-preview-row--multi) .label-preview-row__cells {
  flex-wrap: wrap;
  width: auto;
  gap: 0.75rem;
}

.label-preview-cell {
  flex: 0 0 var(--label-w, 50mm);
  width: var(--label-w, 50mm);
  min-width: var(--label-w, 50mm);
}

.label-preview {
  display: flex;
  flex-direction: column;
  width: var(--label-w, 50mm);
  height: var(--label-h, 30mm);
  box-sizing: border-box;
  background: #fff;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  padding: 6px;
  overflow: hidden;
}

.label-preview-cell--empty .label-preview {
  border-style: dotted;
  background: #f8fafc;
}

.label-preview__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  gap: 2px;
}

.label-preview__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.label-preview__name {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  max-height: 9mm;
  overflow: hidden;
  margin-top: 1mm;
  flex: 0 0 auto;
}

.label-preview__price {
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  margin-top: auto;
  padding-top: 1mm;
  flex: 0 0 auto;
  max-width: 100%;
  overflow: hidden;
}

.label-preview__barcode {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2mm;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 1mm;
}

.label-preview__barcode svg {
  width: 92%;
  max-height: 9.5mm;
  min-height: 7mm;
}

.label-preview__code-vertical {
  flex: 0 0 7mm;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1mm 0;
  color: #0f172a;
}

.label-preview__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.25rem;
}

/* Condicional — acerto */
.cond-settle-page {
  padding-bottom: 5.5rem;
}

@media (min-width: 992px) {
  .cond-settle-page {
    padding-bottom: 0;
  }
}

.cond-settle-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f766e 55%, #15803d 100%);
  color: #fff;
  padding: 1.35rem 1.5rem;
}

.cond-settle-hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cond-settle-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cond-settle-sidebar {
  position: sticky;
  top: 1rem;
}

.cond-settle-summary {
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(13, 110, 253, 0.06));
  border: 1px solid rgba(25, 135, 84, 0.15);
}

.cond-settle-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cond-settle-item {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cond-settle-item.is-full {
  border-color: rgba(25, 135, 84, 0.35);
  background: linear-gradient(180deg, rgba(25, 135, 84, 0.04), #fff);
}

.cond-settle-item.is-partial {
  border-color: rgba(255, 193, 7, 0.45);
  background: linear-gradient(180deg, rgba(255, 193, 7, 0.06), #fff);
}

.cond-settle-item.is-none {
  border-color: #cbd5e1;
  background: #f8fafc;
  opacity: 0.92;
}

.cond-settle-item.is-none .cond-settle-item__name {
  text-decoration: line-through;
  color: #64748b;
}

.cond-settle-item__main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cond-settle-item__name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.cond-settle-item__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.cond-settle-item__actions {
  margin-left: auto;
}

.cond-settle-item .btn-return-stock:disabled {
  opacity: 1;
  cursor: default;
}

.cond-settle-item__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cond-settle-stepper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cond-settle-stepper .form-control {
  width: 3.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 10px;
}

.cond-settle-stepper .btn {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cond-settle-return-hint {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(25, 135, 84, 0.08));
  color: #0c4a6e;
}

.cond-settle-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.cond-settle-mobile-bar__total {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cond-settle-mobile-bar__total strong {
  font-size: 1.25rem;
}

@media (max-width: 991.98px) {
  .cond-settle-quick-actions {
    width: 100%;
  }
  .cond-settle-quick-actions .btn {
    flex: 1 1 auto;
  }
}
