/* Meu Escritório na Praia — tema alinhado ao shopervideo.live (dark + rosa/ciano) */

:root {
  --bg: #050505;
  --bg2: #0d0d0d;
  --bg3: #141414;
  --surface: #141414;
  --surface-alt: #1a1a1a;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-tertiary: rgba(255, 255, 255, 0.42);
  --accent: #fe2c55;
  --accent-hover: #e91e4a;
  --accent2: #25f4ee;
  --accent-subtle: rgba(254, 44, 85, 0.14);
  --accent2-subtle: rgba(37, 244, 238, 0.1);
  --danger: #fe2c55;
  --danger-bg: rgba(254, 44, 85, 0.12);
  --ok: #25d366;
  --ok-bg: rgba(37, 211, 102, 0.12);
  --warn: #ffc107;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-h: 56px;
  --sidebar-w: 280px;
  --sidebar-rail-w: 52px;
  --topbar-h: 52px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --touch-min: 44px;
  --space-page: clamp(14px, 3vw, 28px);
  --bp-tablet: 901px;
  --bp-phone: 480px;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f6;
  --bg2: #e4e8ef;
  --bg3: #dce1ea;
  --surface: #ffffff;
  --surface-alt: #f4f6fa;
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: rgba(15, 23, 42, 0.92);
  --text-secondary: rgba(15, 23, 42, 0.62);
  --text-tertiary: rgba(15, 23, 42, 0.45);
  --accent-subtle: rgba(254, 44, 85, 0.1);
  --accent2-subtle: rgba(37, 244, 238, 0.08);
  --danger-bg: rgba(254, 44, 85, 0.08);
  --ok-bg: rgba(37, 211, 102, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(254, 44, 85, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(37, 244, 238, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(254, 44, 85, 0.05), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: rgba(37, 244, 238, 0.2);
}

html[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(254, 44, 85, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(37, 244, 238, 0.05), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(254, 44, 85, 0.04), transparent 45%);
  -webkit-tap-highlight-color: rgba(37, 180, 170, 0.25);
}

body.page-login {
  background: radial-gradient(ellipse 120% 90% at 50% -25%, rgba(254, 44, 85, 0.22), transparent 52%),
    radial-gradient(ellipse 90% 60% at 110% 40%, rgba(37, 244, 238, 0.1), transparent 48%),
    radial-gradient(ellipse 70% 50% at -10% 60%, rgba(254, 44, 85, 0.08), transparent 50%),
    #000;
}

html[data-theme="light"] body.page-login {
  background: radial-gradient(ellipse 120% 90% at 50% -25%, rgba(254, 44, 85, 0.12), transparent 52%),
    radial-gradient(ellipse 90% 60% at 110% 40%, rgba(37, 244, 238, 0.08), transparent 48%),
    radial-gradient(ellipse 70% 50% at -10% 60%, rgba(254, 44, 85, 0.06), transparent 50%),
    #eef1f6;
}

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #4ef7f0;
}

html[data-theme="light"] a:hover {
  color: #0d9488;
}

/* ——— Shell: sidebar + área principal ——— */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.app-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.app-shell.is-sidebar-open .app-sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.app-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 250;
  width: min(var(--sidebar-w), 92vw);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(8, 8, 8, 0.99) 100%);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.app-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.9;
}

.app-sidebar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 16px;
  flex-shrink: 0;
}

.app-sidebar__head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.app-sidebar__pin {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text-secondary);
  cursor: pointer;
  touch-action: manipulation;
}

.app-sidebar__pin:hover {
  color: var(--accent2);
  border-color: rgba(37, 244, 238, 0.35);
}

.app-sidebar-rail {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  width: var(--sidebar-rail-w);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 0 max(12px, env(safe-area-inset-bottom));
  padding-left: max(0px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.97), rgba(6, 6, 6, 0.99));
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
}

.app-sidebar-rail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--accent2);
  font-size: 1.25rem;
  cursor: pointer;
  touch-action: manipulation;
}

.app-sidebar-rail__btn:hover {
  background: rgba(37, 244, 238, 0.1);
  border-color: rgba(37, 244, 238, 0.4);
  color: #7efaf5;
}

.app-sidebar__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}

.app-sidebar__close:hover {
  color: var(--text);
  border-color: rgba(37, 244, 238, 0.35);
}

.brand {
  font-weight: 800;
  font-size: clamp(13px, 2.4vw, 15px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.app-sidebar__brand {
  display: block;
  padding-right: 4px;
}

.app-sidebar__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 14px;
}

.app-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  touch-action: manipulation;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.app-sidebar__link i {
  font-size: 1.15rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.app-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
}

.app-sidebar__link.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.2), rgba(37, 244, 238, 0.12));
  border-color: rgba(37, 244, 238, 0.28);
}

.app-sidebar__footer {
  flex-shrink: 0;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-sidebar__user {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 4px 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-sidebar-sair {
  padding: 10px 14px !important;
  min-height: 40px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-secondary) !important;
  text-align: center;
  justify-content: center;
}

.btn-sidebar-sair:hover {
  border-color: rgba(254, 44, 85, 0.45) !important;
  color: var(--accent) !important;
  background: var(--danger-bg) !important;
}

.app-sidebar__theme {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.app-sidebar__theme-hint {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.app-sidebar__theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  min-height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}

.app-sidebar__theme-btn:hover {
  border-color: rgba(37, 244, 238, 0.35);
  color: var(--text);
  background: rgba(37, 244, 238, 0.06);
}

.theme-toggle__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.theme-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 300;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  touch-action: manipulation;
}

.theme-fab:hover {
  border-color: rgba(37, 244, 238, 0.35);
  color: var(--text);
}

html[data-theme="light"] .app-sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.07);
}

html[data-theme="light"] .app-sidebar-rail {
  background: linear-gradient(180deg, #fbfcfe, #eef1f6);
}

html[data-theme="light"] .app-sidebar-backdrop {
  background: rgba(15, 23, 42, 0.35);
}

html[data-theme="light"] .app-topbar {
  background: rgba(255, 255, 255, 0.95);
}

/* Tema claro: título da marca (gradiente com branco some no fundo claro) */
html[data-theme="light"] .brand {
  background: linear-gradient(135deg, #0f172a 0%, #0f766e 42%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .app-sidebar__link i {
  color: var(--text-secondary);
  opacity: 1;
}

html[data-theme="light"] .app-sidebar__link.is-active i {
  color: var(--text);
}

html[data-theme="light"] .app-sidebar__theme-btn {
  color: var(--text-secondary);
}

html[data-theme="light"] .app-sidebar__theme-btn:hover {
  color: var(--text);
}

html[data-theme="light"] .pdv-cash-tender {
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .prod-tile {
  background: linear-gradient(180deg, #ffffff, #eef1f6);
  color: var(--text);
}

html[data-theme="light"] .prod-tile:hover {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(254, 44, 85, 0.15);
}

html[data-theme="light"] .prod-tile .prod-tile__btn {
  color: var(--text);
}

.app-shell__main {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 901px) {
  .app-sidebar {
    transform: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .app-sidebar__pin {
    display: inline-flex;
  }

  .app-sidebar-backdrop {
    display: none !important;
  }

  .app-sidebar__close {
    display: none !important;
  }

  .app-topbar {
    display: none !important;
  }

  .app-shell__main {
    margin-left: var(--sidebar-w);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .app-shell--sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
    pointer-events: none;
  }

  .app-shell--sidebar-collapsed .app-shell__main {
    margin-left: 0;
  }

  .app-shell--sidebar-collapsed .app-sidebar-rail {
    display: flex;
  }
}

@media (max-width: 900px) {
  .app-sidebar-rail {
    display: none !important;
  }

  .app-sidebar__pin {
    display: none !important;
  }

  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
  }

  .app-shell.is-sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-sidebar-backdrop {
    display: block;
  }

  .app-sidebar__close {
    display: inline-flex;
  }

  .app-shell__main {
    margin-left: 0;
  }

  .app-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--topbar-h);
    padding: 8px max(12px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
    padding-top: max(8px, env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 150;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .app-topbar::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    opacity: 0.75;
  }

  .app-topbar__title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
}

.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-min);
  height: var(--touch-min);
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}

@media (min-width: 901px) {
  .nav-menu-btn {
    display: none;
  }
}

.nav-menu-btn:hover {
  background: var(--bg3);
  border-color: rgba(37, 244, 238, 0.35);
}

.nav-menu-btn__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  height: 16px;
}

.nav-menu-btn__icon span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-shell.is-sidebar-open .nav-menu-btn__icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.app-shell.is-sidebar-open .nav-menu-btn__icon span:nth-child(2) {
  opacity: 0;
}

.app-shell.is-sidebar-open .nav-menu-btn__icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-page);
  padding-bottom: max(36px, env(safe-area-inset-bottom));
}

.wrap--wide {
  max-width: 1440px;
  padding: clamp(14px, 2vw, 22px) var(--space-page) max(32px, env(safe-area-inset-bottom));
}

.wrap--auth {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.is-pdv .wrap--wide {
  padding-top: clamp(10px, 2vw, 16px);
}

/* ——— Tipografia ——— */
h1 {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--text);
}

.page-intro h1 {
  position: relative;
}

.page-intro h1::after {
  content: "";
  display: block;
  width: min(100px, 28vw);
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

h2 {
  font-weight: 700;
}

.muted {
  color: var(--text-secondary);
  font-size: 14px;
}

.small {
  font-size: 13px;
}

/* ——— Cards ——— */
.card {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ——— Formulários ——— */
label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  max-width: 420px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 1px rgba(37, 244, 238, 0.35);
}

textarea {
  min-height: 88px;
  max-width: none;
  resize: vertical;
}

select {
  cursor: pointer;
}

.field input,
.field select,
.field textarea {
  max-width: none;
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

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

/* ——— Botões ——— */
/* Primário (gradiente): não aplicar a ghosts, menu, sidebar, tiles, etc. */
button:not(.btn-ghost):not(.nav-menu-btn):not(.app-sidebar__close):not(.app-sidebar__pin):not(.app-sidebar__theme-btn):not(.app-sidebar-rail__btn):not(.theme-fab):not(.flash__dismiss):not(.prod-tile__btn),
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent), #c41a42);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 12px rgba(254, 44, 85, 0.35);
  text-decoration: none;
}

button:not(.btn-ghost):not(.nav-menu-btn):not(.app-sidebar__close):not(.app-sidebar__pin):not(.app-sidebar__theme-btn):not(.app-sidebar-rail__btn):not(.theme-fab):not(.flash__dismiss):not(.prod-tile__btn):hover:not(:disabled),
a.btn:hover {
  opacity: 0.95;
  box-shadow: 0 4px 18px rgba(254, 44, 85, 0.45);
  text-decoration: none;
}

button:not(.btn-ghost):not(.nav-menu-btn):not(.app-sidebar__close):not(.app-sidebar__pin):not(.app-sidebar__theme-btn):not(.app-sidebar-rail__btn):not(.theme-fab):not(.flash__dismiss):not(.prod-tile__btn):active:not(:disabled),
a.btn:active {
  transform: scale(0.98);
}

button:not(.btn-ghost):not(.nav-menu-btn):not(.app-sidebar__close):not(.app-sidebar__pin):not(.app-sidebar__theme-btn):not(.app-sidebar-rail__btn):not(.theme-fab):not(.flash__dismiss):not(.prod-tile__btn):disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  font-weight: 600;
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(37, 244, 238, 0.35);
  color: var(--text);
}

html[data-theme="light"] .btn-ghost:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.06);
}

/* ——— Flash / toasts ——— */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid transparent;
}

.flash.err {
  background: var(--danger-bg);
  border-color: rgba(254, 44, 85, 0.45);
  color: #ff8a9d;
  border-left: 3px solid var(--accent);
}

.flash.err a,
.flash.ok a {
  color: var(--accent2);
  font-weight: 600;
}

.flash.ok {
  background: var(--ok-bg);
  border-color: rgba(37, 211, 102, 0.35);
  color: #7aefb0;
  border-left: 3px solid var(--ok);
}

.flash.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: toast-in 0.35s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash.toast.toast--out {
  animation: toast-out 0.28s ease forwards;
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.flash__text {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.flash__dismiss {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  margin: -4px -6px -4px 0;
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.flash__dismiss:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

/* ——— Toolbar ——— */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 22px;
  padding: 16px 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.toolbar .btn,
.toolbar button {
  flex-shrink: 0;
}

.toolbar form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.toolbar input[type="search"] {
  flex: 1;
  min-width: 160px;
  max-width: 420px;
}

@media (max-width: 600px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar form {
    width: 100%;
  }

  .toolbar input[type="search"] {
    max-width: none;
  }
}

/* ——— Diálogo ——— */
.app-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: calc(100vw - 32px);
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.app-dialog__surface {
  background: var(--bg3);
  border-radius: var(--radius);
  padding: 24px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: min(400px, 92vw);
}

.app-dialog__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-dialog__text {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.app-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent), #9b1530);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.06s ease;
  box-shadow: 0 2px 12px rgba(254, 44, 85, 0.35);
}

.btn-danger:hover:not(:disabled) {
  opacity: 0.92;
}

.btn-danger:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(254, 44, 85, 0.45);
  background: var(--surface);
  color: #ff8a9d;
  font-weight: 600;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn-danger-outline:hover:not(:disabled) {
  background: var(--danger-bg);
  border-color: var(--accent);
}

.danger-zone__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ff8a9d;
}

/* ——— KPIs ——— */
.grid-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.kpi {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.7;
}

.kpi strong {
  font-size: 24px;
  font-weight: 800;
  display: block;
  margin-top: 8px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ——— Tabelas ——— */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
}

table.data th,
table.data td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.data th {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(0, 0, 0, 0.35);
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tbody tr:hover td {
  background: rgba(37, 244, 238, 0.06);
}

/* ——— Pills ——— */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill.warn {
  background: rgba(255, 193, 7, 0.12);
  color: #ffd54f;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— PDV ——— */
.pdv-quick-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pdv-quick-search input[type="search"] {
  flex: 1;
  min-width: 160px;
  max-width: none;
}

.pdv-quick-search .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.pdv-quick-search__clear {
  flex-shrink: 0;
  white-space: nowrap;
}

.pdv-catalog-subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.pdv-catalog-subtitle:not(:first-of-type) {
  margin-top: 20px;
}

.prod-tile--ranked {
  position: relative;
}

.prod-tile__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #9b1530);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.pdv-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 400px);
  gap: 20px;
  align-items: start;
}

.pdv-grid > * {
  min-width: 0;
}

@media (max-width: 960px) {
  .pdv-grid {
    grid-template-columns: 1fr;
  }
}

.pdv-panel-products {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  min-height: 200px;
}

.pdv-panel-products__title {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 12px;
}

.prod-tile {
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.9), rgba(18, 18, 18, 0.95));
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.1s ease;
  overflow: hidden;
  touch-action: manipulation;
}

.prod-tile:hover {
  border-color: rgba(37, 244, 238, 0.45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(254, 44, 85, 0.2);
  transform: translateY(-2px);
}

.prod-tile:focus-within {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.prod-tile__btn {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  cursor: pointer;
  padding: 12px;
  text-align: center;
  color: inherit;
  font: inherit;
}

.prod-tile__btn:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: -2px;
}

.prod-tile img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--surface-alt);
}

.prod-tile .prod-price {
  color: var(--accent2);
  font-weight: 700;
  margin-top: 6px;
}

.pdv-cart {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 36px);
}

.pdv-cart .card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 18px;
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 244, 238, 0.12);
}

.pdv-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  border: none;
  background: none;
}

.pdv-cart__title {
  font-size: 12px;
  font-weight: 700;
  margin: 0;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pdv-cart__total-inline {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent2);
  white-space: nowrap;
  line-height: 1.2;
}

.pdv-cart .table-wrap {
  flex: 1;
  overflow-y: auto;
  min-height: 120px;
  max-height: 280px;
}

.pdv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pdv-toolbar form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.pdv-toolbar label.small {
  margin: 0;
}

.pdv-toolbar select {
  max-width: 280px;
  min-width: 180px;
}

.pdv-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  align-items: end;
}

.pdv-pay-field label.small {
  margin-bottom: 4px;
}

.pdv-pay-field input[type="text"] {
  max-width: none;
  width: 100%;
  margin: 0;
}

@media (max-width: 420px) {
  .pdv-pay-grid {
    grid-template-columns: 1fr;
  }
}

.pdv-pay-method {
  margin-bottom: 4px;
}

.pdv-pay-method select {
  max-width: none;
  width: 100%;
  margin-top: 4px;
}

.pdv-cash-tender {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pdv-cash-tender input[type="text"] {
  max-width: none;
  width: 100%;
  margin-top: 4px;
}

.pdv-troco-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pdv-troco-line strong {
  font-size: 18px;
  color: var(--ok);
  letter-spacing: -0.02em;
}

.pdv-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.pdv-meta {
  margin: 0 0 16px;
  font-size: 13px;
}

/* ——— Auth (login) ——— */
.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 22px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-wrap.fade-in {
  animation: fade-in 0.4s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 36px 32px 40px;
  background: linear-gradient(165deg, rgba(26, 26, 26, 0.98), rgba(12, 12, 12, 0.99));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(254, 44, 85, 0.08);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

html[data-theme="light"] .auth-card {
  background: linear-gradient(165deg, #ffffff 0%, #f4f7fb 100%);
  box-shadow: var(--shadow-lg), 0 0 48px rgba(37, 244, 238, 0.08);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  align-self: flex-start;
  max-width: 420px;
  width: 100%;
  padding-left: 4px;
}

.auth-back:hover {
  color: var(--accent2);
  text-decoration: none;
}

.auth-header {
  margin-bottom: 28px;
}

.auth-header h1,
.auth-header h2 {
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.15;
}

.auth-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.auth-card .field {
  margin-bottom: 16px;
}

.auth-card label {
  margin-bottom: 8px;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  max-width: none;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
}

.auth-card button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 16px;
}

/* ——— Estados vazios / 404 ——— */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 12px;
  filter: grayscale(0.2);
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  color: var(--accent2);
  background: rgba(37, 244, 238, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(37, 244, 238, 0.15);
}

/* ——— Tipografia responsiva ——— */
@media (max-width: 600px) {
  h1 {
    font-size: clamp(20px, 5.5vw, 26px);
  }
}

@media (max-width: 600px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  textarea,
  select {
    max-width: none;
    min-height: var(--touch-min);
    font-size: 16px;
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  .prod-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .pdv-cart {
    max-height: none;
  }

  .pdv-cart .table-wrap {
    max-height: 340px;
  }
}

@media (max-width: 600px) {
  .pdv-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .pdv-toolbar form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .pdv-toolbar select {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .pdv-grid {
    gap: 16px;
  }

  .pdv-panel-products {
    padding: 14px;
  }

  .prod-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(46%, 160px), 1fr));
    gap: 10px;
  }

  .prod-tile__btn {
    padding: 10px 8px;
    min-height: 44px;
  }

  .prod-tile img {
    height: 80px;
  }

  .pdv-cart {
    position: relative;
    top: auto;
    max-height: none;
  }

  .pdv-cart .card {
    padding: 16px 14px;
  }

  .pdv-cart .table-wrap {
    max-height: min(50vh, 320px);
  }

  .pdv-cart__total-inline {
    font-size: clamp(16px, 4.5vw, 22px);
  }

  .pdv-troco-line strong {
    font-size: clamp(16px, 4.5vw, 20px);
  }

  .card {
    padding: 16px 14px;
  }

  .auth-card {
    padding: 28px 22px 32px;
  }
}

@media (max-width: 600px) {
  .grid-kpis {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kpi {
    padding: 16px;
  }

  .kpi strong {
    font-size: clamp(20px, 5vw, 24px);
  }

  table.data {
    font-size: 13px;
  }

  table.data th,
  table.data td {
    padding: 9px 10px;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 600px) {
  button,
  .btn {
    min-height: var(--touch-min);
  }
}

/* ——— Home / launcher estilo PDV Windows ——— */
.pdv-home {
  max-width: 1280px;
  margin: 0 auto;
}

.pdv-home__top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 20px;
  margin-bottom: 22px;
  align-items: start;
}

.pdv-home__clock {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  padding: 12px 16px;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(18, 18, 18, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: min(200px, 42vw);
}

.pdv-home__clock-time {
  display: block;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pdv-home__clock-date {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.pdv-home__title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pdv-home__user {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: 14px;
}

@media (max-width: 560px) {
  .pdv-home__top {
    grid-template-columns: 1fr;
  }

  .pdv-home__clock {
    grid-column: 1;
    grid-row: 3;
    text-align: left;
    width: 100%;
  }

  .pdv-home__title {
    grid-row: 1;
  }

  .pdv-home__user {
    grid-row: 2;
    margin-bottom: 8px;
  }
}

.pdv-home__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  .pdv-home__stats {
    grid-template-columns: 1fr;
  }
}

/* Home no celular: só mesas abertas + atalhos */
@media (max-width: 768px) {
  .pdv-home__top--desktop {
    display: none !important;
  }

  .pdv-home__stat--desktop-only {
    display: none !important;
  }

  .pdv-home__stats {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .pdv-launcher__heading {
    margin-bottom: 12px;
  }
}

.pdv-home__stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pdv-home__stat--warn {
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.06);
}

.pdv-home__stat-icon {
  font-size: 28px;
  color: var(--accent2);
  opacity: 0.95;
}

.pdv-home__stat--warn .pdv-home__stat-icon {
  color: #ffd54f;
}

.pdv-home__stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.pdv-home__stat-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: -0.02em;
}

.pdv-launcher__heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin: 0 0 14px 4px;
}

.pdv-launcher__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px;
}

@media (min-width: 900px) {
  .pdv-launcher__grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 18px;
  }
}

.pdv-launcher__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 184px;
  padding: 24px 14px 20px;
  background: linear-gradient(165deg, rgba(28, 28, 28, 0.98), rgba(14, 14, 14, 0.99));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  touch-action: manipulation;
}

.pdv-launcher__tile:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 244, 238, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(254, 44, 85, 0.15);
  text-decoration: none;
  color: inherit;
}

.pdv-launcher__tile:active {
  transform: translateY(-1px);
}

.pdv-launcher__tile--featured {
  grid-column: span 2;
  min-height: 188px;
  padding-top: 26px;
  background: linear-gradient(155deg, rgba(254, 44, 85, 0.2), rgba(37, 244, 238, 0.08), rgba(18, 18, 18, 0.98));
  border-color: rgba(254, 44, 85, 0.4);
  box-shadow: 0 8px 28px rgba(254, 44, 85, 0.18);
}

@media (max-width: 520px) {
  .pdv-launcher__tile--featured {
    grid-column: span 1;
  }
}

.pdv-launcher__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pdv-launcher__tile--featured .pdv-launcher__icon-wrap {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(254, 44, 85, 0.25), rgba(37, 244, 238, 0.15));
  border-color: rgba(255, 255, 255, 0.12);
}

.pdv-launcher__icon {
  font-size: 3.35rem;
  line-height: 1;
  color: var(--accent2);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.pdv-launcher__tile--featured .pdv-launcher__icon {
  font-size: 4rem;
  color: #fff;
}

.pdv-launcher__label {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.pdv-launcher__tile--featured .pdv-launcher__label {
  font-size: 17px;
}

.pdv-launcher__sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ——— Relatórios (atendimentos detalhados) ——— */
.report-section__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.report-filter {
  align-items: flex-end;
}

.report-atend {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.report-atend:last-child {
  margin-bottom: 0;
}

.report-atend__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.report-atend__name {
  font-size: 16px;
}

.report-atend__totals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
}

.report-atend__order {
  margin-bottom: 16px;
  padding-left: 8px;
  border-left: 3px solid rgba(37, 244, 238, 0.35);
}

.report-atend__order:last-child {
  margin-bottom: 0;
}

.report-atend__order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 14px;
}

.report-atend__pay {
  margin-top: 4px;
}

.report-atend__items {
  font-size: 13px;
}

@media (max-width: 600px) {
  .report-atend__head {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar {
    transition: none !important;
  }

  .app-sidebar-backdrop {
    transition: none !important;
  }

  .prod-tile,
  button,
  .btn,
  .auth-wrap.fade-in,
  .pdv-launcher__tile {
    animation: none;
    transition: none;
  }
}
