:root {
  --pdv-accent: #0d6efd;
  --app-sidebar-expanded-w: 17rem;
  --app-sidebar-collapsed-w: 4.375rem;
  --app-sidebar-bg0: #16181d;
  --app-sidebar-bg1: #0f1115;
  --app-topbar-bg: linear-gradient(180deg, #1f232b 0%, #181c22 100%);
}

body {
  min-height: 100vh;
  background: #f0f2f5 !important;
}

.navbar-brand {
  font-weight: 600;
}

.table-actions form {
  display: inline;
}

kbd.key-hint {
  font-size: 0.75rem;
}

/* —— Sidebar fixa —— */
.app-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

body.app-sidebar-mobile-open .app-sidebar-backdrop {
  display: block;
}

.app-sidebar {
  position: fixed;
  z-index: 1045;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--app-sidebar-w, var(--app-sidebar-collapsed-w));
  background: linear-gradient(180deg, var(--app-sidebar-bg0) 0%, var(--app-sidebar-bg1) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transition: width 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}

body.app-sidebar-desktop-collapsed {
  --app-sidebar-w: var(--app-sidebar-collapsed-w);
}

body.app-sidebar-desktop-expanded {
  --app-sidebar-w: var(--app-sidebar-expanded-w);
}

.app-sidebar-header {
  flex-shrink: 0;
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Marca "oficina360" abaixo do bloco de perfil */
.app-sidebar-header--below-profile {
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 2.25rem;
}

.app-sidebar-brand:hover {
  color: #fff;
}

.app-sidebar-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(13, 110, 253, 0.2);
  color: #6ea8fe;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.app-sidebar-brand-text {
  min-width: 0;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

body.app-sidebar-desktop-collapsed .app-sidebar-brand-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  position: absolute;
}

.app-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Minha empresa — submenu recolhível (mesmo visual dos links) */
.app-sidebar-submenu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

button.app-sidebar-link.app-sidebar-submenu-toggle {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.app-sidebar-submenu-toggle:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.55);
  outline-offset: 2px;
}

.app-sidebar-submenu-chevron {
  margin-left: auto;
  font-size: 1.05rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.88;
  transition: transform 0.2s ease;
}

.app-sidebar-submenu.is-open .app-sidebar-submenu-chevron {
  transform: rotate(180deg);
}

.app-sidebar-submenu-panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.12rem 0 0.05rem;
}

.app-sidebar-submenu-panel[hidden] {
  display: none !important;
}

.app-sidebar-sublink.app-sidebar-link {
  padding-left: 1.35rem;
  font-size: 0.875rem;
  min-height: 2.45rem;
  font-weight: 500;
}

body.app-sidebar-desktop-collapsed .app-sidebar-submenu-chevron {
  opacity: 0;
  width: 0;
  max-width: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}

body.app-sidebar-desktop-collapsed .app-sidebar-sublink.app-sidebar-link {
  padding-left: 0.35rem !important;
}

.app-sidebar-link,
a.app-sidebar-link,
button.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-height: 2.6rem;
}

.app-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-sidebar-link.is-active {
  background: rgba(13, 110, 253, 0.25);
  color: #e7f1ff;
  border-color: rgba(13, 110, 253, 0.35);
}

.app-sidebar-link--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  min-height: 2.6rem;
  color: rgba(255, 255, 255, 0.45);
}

.app-sidebar-ico {
  font-size: 1.2rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.92;
}

.app-sidebar-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.18s ease;
}

.app-sidebar-kbd {
  font-size: 0.75rem;
  padding: 0.2em 0.45em;
  opacity: 0.65;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
  border-radius: 0.35rem;
}

body.app-sidebar-desktop-collapsed .app-sidebar-text,
body.app-sidebar-desktop-collapsed .app-sidebar-kbd {
  opacity: 0;
  width: 0;
  max-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}

body.app-sidebar-desktop-collapsed .app-sidebar-link,
body.app-sidebar-desktop-collapsed a.app-sidebar-link,
body.app-sidebar-desktop-collapsed button.app-sidebar-link,
body.app-sidebar-desktop-collapsed .app-sidebar-link--disabled {
  justify-content: center;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

body.app-sidebar-desktop-collapsed .app-sidebar-link .app-sidebar-ico,
body.app-sidebar-desktop-collapsed .app-sidebar-link--disabled .app-sidebar-ico {
  font-size: 1.35rem;
}

body.app-sidebar-desktop-collapsed .app-sidebar-brand {
  justify-content: center;
}

body.app-sidebar-desktop-collapsed .app-sidebar-brand-text {
  display: none;
}

/* Perfil (acima do menu) */
.app-sidebar-profile {
  flex-shrink: 0;
  padding: 0.85rem 0.65rem;
  min-width: 0;
}

.app-sidebar-profile-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.app-sidebar-photo-wrap {
  flex-shrink: 0;
}

.app-sidebar-photo-img,
.app-sidebar-photo-placeholder {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.app-sidebar-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #0d6efd 0%, #6f42c1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.app-sidebar-profile-lines {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.app-sidebar-foto-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.15rem;
}

.app-sidebar-profile-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.25;
}

.app-sidebar-profile-email {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.52);
}

.app-sidebar-profile-empresa {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 0.05rem;
}

.app-sidebar-plano {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.28em 0.65em;
  background: rgba(13, 110, 253, 0.3) !important;
  color: #d0e5ff !important;
  border: 1px solid rgba(13, 110, 253, 0.4);
}

body.app-sidebar-desktop-collapsed .app-sidebar-profile {
  padding: 0.6rem 0.35rem;
}

body.app-sidebar-desktop-collapsed .app-sidebar-profile-hero {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}

body.app-sidebar-desktop-collapsed .app-sidebar-profile-lines {
  display: none;
}

body.app-sidebar-desktop-collapsed .app-sidebar-photo-img,
body.app-sidebar-desktop-collapsed .app-sidebar-photo-placeholder {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 0.6rem;
}

.app-sidebar-foot {
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.68rem;
  line-height: 1.35;
}

.app-sidebar-foot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}

.app-sidebar-foot-btn .app-sidebar-foot-ico {
  flex-shrink: 0;
}

/* Desktop colapsado: rodapé visível só com ícones (i + saída + opc. gestão global) */
@media (min-width: 992px) {
  body.app-sidebar-desktop-collapsed .app-sidebar-foot {
    padding: 0.45rem 0.35rem;
    opacity: 1;
    max-height: none;
    overflow: visible;
    pointer-events: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-hint {
    display: none;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-foot-label {
    display: none;
  }

  /* Mesma proporção dos itens .app-sidebar-link no modo ícone */
  body.app-sidebar-desktop-collapsed .app-sidebar-foot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.6rem;
    padding: 0.35rem;
    margin-bottom: 0.25rem !important;
    gap: 0;
    border-radius: 0.55rem;
    line-height: 1;
    font-size: 0;
    --bs-btn-padding-y: 0.35rem;
    --bs-btn-padding-x: 0.35rem;
    --bs-btn-border-radius: 0.55rem;
    border-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    box-shadow: none;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-foot-btn:last-of-type {
    margin-bottom: 0 !important;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-foot-btn:hover,
  body.app-sidebar-desktop-collapsed .app-sidebar-foot-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: transparent;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-foot-btn .app-sidebar-foot-ico {
    font-size: 1.35rem;
    width: 1.5rem;
    text-align: center;
    line-height: 1;
    margin: 0;
    opacity: 0.92;
    flex-shrink: 0;
  }
}

/* Área principal ao lado da sidebar (desktop) */
.app-shell-inner {
  margin-left: var(--app-sidebar-w, var(--app-sidebar-collapsed-w));
  min-height: 100vh;
  transition: margin-left 0.22s ease;
}

/* —— Top bar —— */
.app-topbar {
  background: var(--app-topbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.app-topbar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  max-width: 100%;
}

.app-topbar-menu {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}

.app-topbar-menu:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-topbar-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
}

.app-topbar-title:hover {
  color: #c5d7f5;
}

/* Nome da empresa: legível sem forçar MAIÚSCULAS (diferente do fallback da marca). */
.app-topbar-title.app-topbar-title--empresa {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.app-topbar-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.app-topbar-exit {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 0.4rem 0.9rem;
}

.app-topbar-exit:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.app-main {
  position: relative;
}

/* Mobile: sidebar oculta por defeito, overlay ao abrir */
@media (max-width: 991.98px) {
  body {
    --app-sidebar-w: 0px;
  }

  .app-shell-inner {
    margin-left: 0;
  }

  .app-sidebar {
    width: min(18rem, 88vw) !important;
    transform: translateX(-105%);
    box-shadow: none;
  }

  body.app-sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }

  body.app-sidebar-mobile-open {
    overflow: hidden;
  }

  /* Mobile menu sempre com texto visível */
  body.app-sidebar-desktop-collapsed .app-sidebar-text,
  body.app-sidebar-desktop-collapsed .app-sidebar-kbd {
    opacity: 1;
    width: auto;
    max-width: none;
    position: static;
    pointer-events: auto;
    overflow: visible;
    padding: unset;
    margin: unset;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-foot {
    opacity: 1;
    max-height: none;
    padding: 0.65rem 0.85rem;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    overflow: visible;
    pointer-events: auto;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-link,
  body.app-sidebar-desktop-collapsed a.app-sidebar-link,
  body.app-sidebar-desktop-collapsed button.app-sidebar-link,
  body.app-sidebar-desktop-collapsed .app-sidebar-link--disabled {
    justify-content: flex-start;
    padding: 0.6rem 0.7rem;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-brand {
    justify-content: flex-start;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-brand-text {
    display: block;
    opacity: 1;
    width: auto;
    position: static;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-profile-lines {
    display: flex;
    opacity: 1;
    width: auto;
    max-width: none;
    position: static;
    overflow: visible;
    pointer-events: auto;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-profile-hero {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-photo-img,
  body.app-sidebar-desktop-collapsed .app-sidebar-photo-placeholder {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 0.85rem;
  }

  body.app-sidebar-desktop-collapsed .app-sidebar-profile {
    padding: 0.85rem 0.65rem;
  }
}

/* PDV — largura total + leitura */
.app-main--pdv {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1600px) {
  .app-main--pdv {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
}

.pdv-page {
  width: 100%;
  min-width: 0;
  padding-bottom: 0.5rem;
}

/* Fluxo PDV: Cliente → Veículo → Itens → Pagamento → Finalizar */
.pdv-flow-shell {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.pdv-stepper {
  width: 100%;
  margin-bottom: 1.25rem;
}

.pdv-stepper__list {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.65rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.pdv-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.5rem 0.35rem;
  min-width: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #475569;
  text-transform: uppercase;
  border-right: 1px solid #e2e8f0;
}

.pdv-stepper__item:last-child {
  border-right: 0;
}

/* Mesmo tamanho visual dos badges numerados das etapas (.pdv-step-heading__badge) */
.pdv-stepper__num {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.pdv-stepper__label {
  line-height: 1.25;
  width: 100%;
  max-width: 100%;
  padding: 0 0.15rem;
  word-break: break-word;
  hyphens: auto;
}

@media (min-width: 768px) {
  .pdv-stepper__item {
    font-size: 0.78rem;
    padding: 0.55rem 0.45rem;
  }
}

@media (max-width: 575.98px) {
  .pdv-stepper__list {
    padding: 0.45rem 0.2rem;
  }

  .pdv-stepper__item {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    padding: 0.4rem 0.12rem;
    gap: 0.3rem;
  }

  .pdv-stepper__num {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.8rem;
    border-radius: 0.45rem;
  }
}

.pdv-wizard {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.pdv-step-block {
  scroll-margin-top: 4.5rem;
}

.pdv-step-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
}

.pdv-step-heading__badge {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.32);
}

.pdv-step-heading__text {
  min-width: 0;
}

.pdv-step-heading__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.pdv-step-heading__hint {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.2rem 0 0;
  line-height: 1.4;
}

.pdv-final-actions {
  width: 100%;
  max-width: none;
  margin-top: 0.25rem;
}

.pdv-final-actions .btn {
  min-height: 3.35rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.2;
}

.pdv-final-actions__label {
  font-size: 1.05rem;
}

.pdv-final-actions__hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.95;
}

.pdv-btn-finalizar .pdv-final-actions__hint {
  color: rgba(255, 255, 255, 0.88);
}

.pdv-btn-faturar .pdv-final-actions__hint {
  color: rgba(61, 47, 5, 0.78);
}

.pdv-btn-faturar {
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.35);
  border: 1px solid rgba(202, 138, 4, 0.55) !important;
}

.pdv-btn-faturar:hover {
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.45);
}

.pdv-page-head .h3 {
  letter-spacing: -0.02em;
}

.pdv-page-shortcuts kbd.key-hint {
  vertical-align: middle;
}

.pdv-shortcuts-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pdv-shortcut-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #d5d8de;
  border-radius: 999px;
  background: #f8f9fb;
  color: #374151;
  line-height: 1;
}

.pdv-shortcut-chip .key-hint {
  background: #1f2937;
  color: #fff;
  border-radius: 5px;
  padding: 0.15rem 0.36rem;
  border: 0;
  font-size: 0.69rem;
}

.pdv-card {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.08rem 0.45rem rgba(0, 0, 0, 0.06) !important;
}

.pdv-card .card-header {
  background: linear-gradient(180deg, #f8f9fc 0%, #eef1f6 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pdv-cart-card .card-header {
  background: linear-gradient(180deg, #e7f1ff 0%, #d9e8fc 100%);
  border-bottom-color: rgba(13, 110, 253, 0.12);
}

.pdv-cart-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}

.pdv-cart-card__head-main {
  flex: 1 1 9rem;
  min-width: 0;
}

.pdv-cart-card__title {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.pdv-cart-card__sub {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.12rem;
}

.pdv-cart-card__head-total {
  flex: 0 0 auto;
  text-align: right;
}

.pdv-cart-empty-state {
  text-align: center;
  padding: 1.85rem 1rem 2.1rem;
  background: linear-gradient(180deg, #fafbfd 0%, #f1f5f9 100%);
  border-top: 1px dashed #cbd5e1;
  line-height: 1.45;
}

.pdv-cart-card .card-body:has(#pdv-cart-empty:not(.d-none)) .pdv-cart-table-wrap {
  display: none;
}

.pdv-itens-layout {
  align-items: stretch;
}

@media (min-width: 992px) {
  .pdv-itens-col-cart {
    position: sticky;
    top: 4.5rem;
    align-self: flex-start;
    z-index: 3;
  }

  .pdv-cart-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 5.5rem);
    border-color: rgba(13, 110, 253, 0.22) !important;
    box-shadow: 0 0.4rem 1.5rem rgba(13, 110, 253, 0.1) !important;
  }

  .pdv-cart-card .card-body {
    flex: 1 1 auto;
    min-height: 10rem;
    overflow: hidden;
  }

  .pdv-cart-table-wrap {
    max-height: min(56vh, 34rem);
  }
}

.pdv-total-pill {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0a58ca;
  line-height: 1.2;
}

.pdv-scroll-list {
  max-height: 11.5rem;
  overflow-y: auto;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  -webkit-overflow-scrolling: touch;
}

.pdv-table-wrap {
  max-height: min(45vh, 20rem);
  overflow: auto;
  border-radius: 0.375rem;
  border: 1px solid var(--bs-border-color);
}

.pdv-table-wrap .sticky-top {
  z-index: 2;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.pdv-cart-table-wrap {
  max-height: min(46vh, 22rem);
  overflow: auto;
}

.pdv-cart-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bs-table-bg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.pdv-cart tbody tr td {
  vertical-align: middle;
}

.pdv-cart .pdv-q {
  min-width: 3.25rem;
}

.pdv-produto-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdv-produto-actions .pdv-produto-btn {
  min-width: 11.5rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.85rem;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .pdv-produto-actions .pdv-produto-btn {
    width: 100%;
  }
}

.pdv-btn-finalizar {
  box-shadow: 0 4px 16px rgba(25, 135, 84, 0.28);
}

.pdv-btn-finalizar:hover {
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.34);
}

.pdv-wizard .pdv-card + .pdv-card {
  margin-top: 0;
}

.pdv-cart th.pdv-cart-col-actions {
  width: 2.5rem;
}

.pdv-cart-summary {
  flex-shrink: 0;
}

/* Troco no PDV — leitura rápida no balcão (alto contraste, valor ampliado) */
.pdv-troco-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1rem 1.15rem 1.1rem;
  margin-bottom: 0;
  background: linear-gradient(165deg, #ecfdf5 0%, #d1fae5 55%, #a7f3d0 100%);
  border: 2px solid #10b981;
  border-radius: 0.75rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 6px 18px rgba(16, 185, 129, 0.22);
}

.pdv-troco-panel__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #047857;
  line-height: 1.2;
}

.pdv-troco-panel__value {
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
  color: #065f46;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

@media (prefers-contrast: more) {
  .pdv-troco-panel {
    background: #ecfdf5;
    border-width: 3px;
    border-color: #059669;
    box-shadow: none;
  }

  .pdv-troco-panel__label {
    color: #064e3b;
  }

  .pdv-troco-panel__value {
    color: #022c22;
    text-shadow: none;
  }
}

/* --- Visual premium para módulos de gestão (Produtos/Estoque/Clientes/Caixa/Relatórios) --- */
.app-module-page {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(246, 248, 252, 0.95) 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.8rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

.app-filter-row .form-control,
.app-filter-row .form-select {
  border-color: #d6dce6;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.app-table-shell {
  border: 1px solid #dee4ee;
  border-radius: 0.7rem;
  overflow: hidden;
}

.app-table-shell .table {
  margin-bottom: 0;
}

.app-table-shell thead.table-light th {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom-color: #d7deea;
}

.app-stat-card {
  border: 1px solid #dce3ed !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.relatorio-tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1rem;
}

.relatorio-tabs-scroll .nav-tabs {
  flex-wrap: nowrap;
  border-bottom: 0;
  min-width: min-content;
}

.relatorio-tabs-scroll .nav-link {
  white-space: nowrap;
}

.relatorio-tab-panes {
  padding-top: 0.25rem;
}

/* Relatórios — painel analítico */
.relatorio-page .relatorio-hero {
  padding: 0.15rem 0 0.25rem;
}
.relatorio-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.relatorio-lead {
  max-width: 42rem;
  line-height: 1.45;
}
.relatorio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  white-space: nowrap;
}
.relatorio-chip i {
  font-size: 1rem;
  color: #64748b;
}
.relatorio-toolbar {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.relatorio-toolbar .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.relatorio-export-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.relatorio-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.relatorio-export-actions .btn {
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.relatorio-export-actions .btn i {
  font-size: 1rem;
  opacity: 0.9;
}
.relatorio-toolbar--period-only .card-body {
  padding: 1rem 1.25rem;
}
.relatorio-fluxo-box {
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(241, 245, 249, 0.9) 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
}
.relatorio-fluxo-box-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d4ed8;
  margin-bottom: 0.45rem;
}
.relatorio-fluxo-box .btn {
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: 0.45rem;
}
.relatorio-pane-actions {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-left: 4px solid #2563eb !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 0.65rem;
}
.relatorio-pane-actions-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}
.relatorio-pane-actions-meta > i {
  font-size: 1.1rem;
  color: #2563eb;
}
.relatorio-pane-actions-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}
.relatorio-pane-actions-period {
  width: 100%;
  margin-left: 0;
}
@media (min-width: 768px) {
  .relatorio-pane-actions-period {
    width: auto;
    margin-left: 0.25rem;
  }
}
.relatorio-pane-actions-btns .btn {
  font-weight: 600;
}
.relatorio-tabs-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.75rem;
  padding: 0.5rem 0.5rem 0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  margin-bottom: 1rem;
}
.relatorio-pills-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.relatorio-pills-scroll .nav {
  flex-wrap: nowrap;
  min-width: min-content;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
}
.relatorio-nav-pills .nav-link {
  color: #475569;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.relatorio-nav-pills .nav-link:hover:not(.active) {
  background: #f1f5f9;
  color: #0f172a;
}
.relatorio-nav-pills .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}
.relatorio-pane-inner {
  padding-top: 0.5rem;
}
.relatorio-pane-intro {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(241, 245, 249, 0.65);
  border-radius: 0.5rem;
  border-left: 3px solid #3b82f6;
}
.relatorio-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}
.relatorio-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 0.65rem !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.relatorio-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
}
.relatorio-kpi .card-body {
  position: relative;
  z-index: 1;
}
.relatorio-kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}
.relatorio-kpi-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.relatorio-kpi-icon {
  position: absolute;
  right: 0.65rem;
  bottom: 0.4rem;
  font-size: 2.75rem;
  line-height: 1;
  opacity: 0.12;
  color: #2563eb;
  pointer-events: none;
  z-index: 0;
}
.relatorio-kpi--accent .relatorio-kpi-icon {
  color: #059669;
}
.relatorio-kpi--warm .relatorio-kpi-icon {
  color: #d97706;
}
.relatorio-kpi--slate .relatorio-kpi-icon {
  color: #64748b;
}
.relatorio-table-wrap {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  background: #fff;
}
.relatorio-table-wrap .table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom-width: 1px;
}
.relatorio-table-wrap .table tbody td {
  vertical-align: middle;
}
.relatorio-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 600;
  color: #0f172a;
}
.relatorio-empty {
  text-align: center;
  padding: 2rem 1rem !important;
  color: #94a3b8;
  font-size: 0.9rem;
}
.relatorio-empty i {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}
.relatorio-actions-cell .btn {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
}

/* Master > Usuários: form responsivo sem quebra irregular */
.master-user-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.master-user-company {
  width: min(100%, 520px);
}

.master-user-company-autocomplete {
  position: relative;
}

.master-user-company-results {
  position: absolute;
  z-index: 25;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d6dce6;
  border-radius: 0.45rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.master-user-company-item {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  padding: 0.45rem 0.6rem;
  font-size: 0.92rem;
  cursor: pointer;
}

.master-user-company-item:hover {
  background: #eef5ff;
}

.master-user-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
}

.master-user-field {
  flex: 1 1 180px;
  min-width: 160px;
}

.master-user-field--nome { flex-basis: 220px; }
.master-user-field--email { flex-basis: 260px; }
.master-user-field--perfil { flex-basis: 180px; max-width: 220px; }
.master-user-field--senha { flex-basis: 170px; max-width: 200px; }
.master-user-field--submit { flex: 0 0 140px; min-width: 120px; }

@media (max-width: 768px) {
  .master-user-company { width: 100%; }
  .master-user-field--submit {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* —— Login app: layout em duas colunas (hero + formulário), estilo dashboard SaaS —— */
body.auth-login-page {
  background: #f1f5f9 !important;
  overflow-x: hidden;
}

body.auth-login-page > .container-fluid {
  min-height: 100vh;
}

.auth-login--split {
  min-height: 100vh;
}

.auth-login__split-row {
  min-height: 100vh;
}

.auth-login__hero {
  position: relative;
  background: linear-gradient(155deg, #0b4f8c 0%, #0b6ec7 42%, #0891d4 88%);
  overflow: hidden;
}

.auth-login__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(8, 145, 212, 0.25), transparent 50%);
}

.auth-login__hero-inner {
  position: relative;
  z-index: 1;
}

.auth-login__hero-kicker {
  letter-spacing: 0.14em;
}

.auth-login__hero-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
}

.auth-login__hero-lead {
  opacity: 0.92;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 28rem;
}

.auth-login__hero-logo-wrap {
  max-width: min(500px, 94vw);
}

.auth-login__hero-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.15));
}

.auth-login__panel {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.auth-login__card {
  border-radius: 1rem;
  overflow: hidden;
}

.auth-login__card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #0891d4 0%, #0b5cad 50%, #22d3ee 100%);
}

.auth-login__label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #475569;
  margin-bottom: 0.35rem;
}

.auth-login__input-group {
  color: #64748b;
  border-color: #cbd5e1 !important;
  border-radius: 0.5rem 0 0 0.5rem !important;
}

.auth-login__input {
  border-radius: 0 0.5rem 0.5rem 0 !important;
  border-color: #cbd5e1;
  padding: 0.6rem 0.85rem;
}

.auth-login__form .input-group:focus-within .auth-login__input {
  border-color: #0b7dd4;
}

.auth-login__form .input-group:focus-within .auth-login__input-group {
  border-color: #0b7dd4 !important;
  color: #0b6ec7;
}

.auth-login__input:focus {
  box-shadow: none;
  border-color: #0b7dd4;
}

.auth-login__muted-link:hover {
  color: #0b6ec7 !important;
  text-decoration: underline !important;
}

.auth-login__submit.btn-primary {
  --bs-btn-bg: #0b6ec7;
  --bs-btn-border-color: #0a62b3;
  --bs-btn-hover-bg: #095aa3;
  --bs-btn-hover-border-color: #085192;
  --bs-btn-active-bg: #085192;
  --bs-btn-active-border-color: #074a87;
  --bs-btn-focus-shadow-rgb: 11, 110, 199;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

.auth-login__footer-link {
  color: #0b6ec7;
  font-weight: 500;
  text-decoration: none;
}

.auth-login__footer-link:hover {
  color: #074a87;
  text-decoration: underline;
}

@media (min-width: 992px) {
  .auth-login__hero {
    min-height: 100vh;
  }
}

/* Modal «Sobre o sistema» (sidebar — Deploy / versão beta) */
.app-sobre-sistema-modal .modal-body {
  font-size: 0.95rem;
}

.app-sobre-sistema-modal__logo-link {
  text-decoration: none;
}

.app-sobre-sistema-modal__logo {
  max-width: min(100%, 280px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.app-sobre-sistema-modal__logo-link:hover .app-sobre-sistema-modal__logo {
  opacity: 0.92;
}

.app-termos-uso-modal .modal-body h3 {
  color: #212529;
}

/* Gestor LGPD — botão fixo: ícone de cookie */
.cookie-consent-widget {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1040;
}

.cookie-consent-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.3rem;
  min-height: 3.1rem;
  min-width: 3.1rem;
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-radius: 50%;
  background: #ffffff;
  color: #212529;
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.16),
    0 2px 8px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.cookie-consent-fab:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 110, 253, 0.35);
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.2),
    0 4px 12px rgba(13, 110, 253, 0.12);
}

.cookie-consent-fab:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.45);
  outline-offset: 3px;
}

.cookie-consent-fab__cookie-wrap {
  flex-shrink: 0;
  width: 2.45rem;
  height: 2.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff9ee 0%, #f0e0c4 100%);
  border: 1px solid rgba(166, 124, 56, 0.45);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.75);
}

.cookie-consent-fab__cookie-svg {
  width: 1.95rem;
  height: 1.95rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  vertical-align: middle;
}

.cookie-consent-fab__cookie-svg circle {
  stroke-linejoin: round;
}

.cookie-consent-fab--pulse {
  animation: cookieFabPulse 2.2s ease-in-out infinite;
}

@keyframes cookieFabPulse {
  0%,
  100% {
    box-shadow:
      0 8px 28px rgba(15, 23, 42, 0.16),
      0 2px 8px rgba(15, 23, 42, 0.08);
  }
  50% {
    box-shadow:
      0 10px 36px rgba(13, 110, 253, 0.22),
      0 4px 14px rgba(13, 110, 253, 0.12);
    transform: translateY(-1px);
  }
}

.cookie-consent-balloon {
  position: absolute;
  bottom: calc(100% + 0.65rem);
  left: 0;
  width: min(18rem, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.65rem;
  z-index: 1041;
}

.cookie-consent-balloon__inner {
  position: relative;
  padding: 0.85rem 2rem 0.85rem 0.85rem;
}

.cookie-consent-balloon__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
}

.cookie-consent-balloon__tail {
  position: absolute;
  bottom: -8px;
  left: 2.75rem;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  transform: rotate(45deg);
}

.cookie-prefs-modal .accordion-button {
  font-size: 0.9rem;
  font-weight: 600;
}

.cookie-prefs-modal .accordion-body {
  font-size: 0.875rem;
}

.cookie-prefs-accordion .accordion-button:not(.collapsed) {
  background: rgba(13, 110, 253, 0.06);
  color: #212529;
}

@media (max-width: 575.98px) {
  .cookie-consent-balloon {
    width: calc(100vw - 2rem);
    max-width: 20rem;
  }
}

/* —— Caixa (fechamento diário) —— */
.caixa-page {
  padding: 1.15rem 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .caixa-page {
    padding: 1.5rem 1.75rem 2rem;
  }
}

.caixa-hero__title {
  letter-spacing: -0.02em;
}

.caixa-hero__lead {
  max-width: 38rem;
}

.caixa-ajuda-btn {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  color: #b45309;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.35);
}

.caixa-ajuda-btn:hover {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-color: #d97706;
}

.caixa-ajuda-btn:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.55);
  outline-offset: 2px;
}

.caixa-ajuda-btn__mark {
  font-size: 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

/* Modal «Orientações do Caixa»: contraste do atalho F6 */
.caixa-modal-ajuda {
  padding: 1rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.caixa-modal-ajuda__text {
  color: #0f172a;
  line-height: 1.55;
}

.caixa-modal-ajuda__shortcut {
  padding-top: 0.85rem;
  margin-top: 0.15rem;
  border-top: 1px solid #e2e8f0;
}

.caixa-kbd-f6 {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
  color: #fff !important;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%) !important;
  border: 1px solid #0f172a !important;
  border-radius: 0.35rem;
  box-shadow:
    0 2px 0 #0f172a,
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  vertical-align: middle;
}

.caixa-kbd-f6--lg {
  padding: 0.35rem 0.85rem;
  font-size: 1rem;
  border-radius: 0.45rem;
}

.caixa-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.12);
  font-weight: 600;
  font-size: 0.95rem;
  color: #0369a1;
}

.caixa-date-pill__ico {
  font-size: 1.1rem;
  opacity: 0.9;
}

.caixa-filter-card {
  border-radius: 0.85rem !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.caixa-filter-card .input-group-text {
  border-color: #d6dce6;
}

.caixa-filter-card .form-control:focus {
  border-color: rgba(13, 110, 253, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.caixa-kpi {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  min-height: 7.5rem;
}

.caixa-kpi__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.caixa-kpi--money .caixa-kpi__accent {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.caixa-kpi--orders .caixa-kpi__accent {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
}

.caixa-kpi--discount .caixa-kpi__accent {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.caixa-kpi--balance .caixa-kpi__accent {
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
}

.caixa-kpi__icon-wrap--teal {
  background: linear-gradient(145deg, #f0fdfa 0%, #ccfbf1 100%);
  border-color: rgba(20, 184, 166, 0.4);
}

.caixa-kpi--balance .caixa-kpi__icon {
  color: #0d9488;
}

.caixa-kpi__value--pending {
  font-size: 1.1rem;
  font-weight: 800;
}

.caixa-kpi__icon-wrap--amber {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

.caixa-kpi--discount .caixa-kpi__icon {
  color: #b45309;
}

.caixa-kpi__inner {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1.15rem 1.35rem;
}

.caixa-kpi__icon-wrap {
  flex-shrink: 0;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.caixa-kpi__icon-wrap--slate {
  background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
  border-color: rgba(99, 102, 241, 0.35);
}

.caixa-kpi__icon {
  font-size: 1.45rem;
  color: #059669;
}

.caixa-kpi--orders .caixa-kpi__icon {
  color: #4f46e5;
}

.caixa-kpi__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.caixa-kpi__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.caixa-kpi__value {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.caixa-kpi__value--int {
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.caixa-section__head {
  margin-bottom: 0.85rem;
}

.caixa-section__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.caixa-section__title-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: rgba(13, 110, 253, 0.08);
  color: #0b6ec7;
  font-size: 1rem;
}

.caixa-section__hint {
  padding-left: 2.5rem;
}

@media (max-width: 575.98px) {
  .caixa-section__hint {
    padding-left: 0;
  }
}

.caixa-table-wrap {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #fff;
}

.caixa-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-bottom-color: #e2e8f0 !important;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.caixa-table tbody tr:last-child td {
  border-bottom: 0;
}

.caixa-table tbody tr:hover td {
  background: rgba(13, 110, 253, 0.03);
}

.caixa-forma-pill {
  font-weight: 600;
  font-size: 0.8rem;
}

.caixa-forma-pill--pix {
  background: rgba(20, 184, 166, 0.15) !important;
  color: #0f766e !important;
  border: 1px solid rgba(20, 184, 166, 0.35) !important;
}

.caixa-forma-pill--cartao {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.caixa-forma-pill--dinheiro {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #15803d !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.caixa-forma-pill--outro {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

.caixa-empty {
  padding: 0 !important;
  vertical-align: middle;
}

.caixa-empty__inner {
  text-align: center;
  padding: 2.25rem 1.5rem;
}

.caixa-empty__ico {
  font-size: 2.25rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
  display: block;
}

.caixa-empty__title {
  font-weight: 600;
  color: #64748b;
  font-size: 0.95rem;
}

.caixa-pedido-link {
  color: #0b6ec7;
  text-decoration: none;
}

.caixa-pedido-link:hover {
  text-decoration: underline;
  color: #074a87;
}
