@charset "UTF-8";

/* node_modules/@fontsource/lexend/latin-400.css */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./media/lexend-latin-400-normal.woff2") format("woff2"), url("./media/lexend-latin-400-normal.woff") format("woff");
}

/* node_modules/@fontsource/lexend/latin-500.css */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./media/lexend-latin-500-normal.woff2") format("woff2"), url("./media/lexend-latin-500-normal.woff") format("woff");
}

/* node_modules/@fontsource/lexend/latin-600.css */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./media/lexend-latin-600-normal.woff2") format("woff2"), url("./media/lexend-latin-600-normal.woff") format("woff");
}

/* node_modules/@fontsource/lexend/latin-700.css */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./media/lexend-latin-700-normal.woff2") format("woff2"), url("./media/lexend-latin-700-normal.woff") format("woff");
}

/* node_modules/@fontsource/source-code-pro/latin-500.css */
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./media/source-code-pro-latin-500-normal.woff2") format("woff2"), url("./media/source-code-pro-latin-500-normal.woff") format("woff");
}

/* node_modules/@fontsource/source-code-pro/latin-600.css */
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./media/source-code-pro-latin-600-normal.woff2") format("woff2"), url("./media/source-code-pro-latin-600-normal.woff") format("woff");
}

/* node_modules/@fontsource/source-code-pro/latin-700.css */
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./media/source-code-pro-latin-700-normal.woff2") format("woff2"), url("./media/source-code-pro-latin-700-normal.woff") format("woff");
}

/* node_modules/@fontsource/share-tech-mono/400.css */
@font-face {
  font-family: "Share Tech Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./media/share-tech-mono-latin-400-normal.woff2") format("woff2"), url("./media/share-tech-mono-latin-400-normal.woff") format("woff");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

/* apps/web/src/styles.scss */
:root {
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --teal-400: var(--blue-400);
  --teal-500: var(--blue-500);
  --teal-600: var(--blue-600);
  --teal-700: var(--blue-700);
  --teal-800: var(--blue-800);
  --energy: #ea580c;
  --energy-deep: #c2410c;
  --energy-soft: #fdba74;
  --energy-rgb:
    234,
    88,
    12;
  --premium: var(--blue-700);
  --premium-bg: var(--info-bg);
  --brand-1: var(--gray-900);
  --brand-2: var(--gray-800);
  --brand-3: var(--blue-700);
  --brand-4: var(--blue-600);
  --brand-5: #ffffff;
  --brand-white: #ffffff;
  --brand-black: var(--gray-900);
  --c1: #ffffff;
  --c2: var(--gray-400);
  --c3: var(--gray-600);
  --c4: var(--gray-800);
  --c5: var(--gray-900);
  --c-white: #ffffff;
  --slate-900: var(--gray-900);
  --slate-800: var(--gray-800);
  --slate-700: var(--gray-700);
  --slate-600: var(--gray-600);
  --slate-500: var(--gray-500);
  --slate-400: var(--gray-400);
  --slate-200: var(--gray-200);
  --slate-100: var(--gray-100);
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-ink: #0f172a;
  --muted: #64748b;
  --canvas: var(--bg);
  --accent-rgb:
    37,
    99,
    235;
  --ink-rgb:
    15,
    23,
    42;
  --sidebar-bg: #0f172a;
  --sidebar-text: #f8fafc;
  --sidebar-muted: #94a3b8;
  --success: #16a34a;
  --success-hover: #15803d;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-critical: #991b1b;
  --warn: #ca8a04;
  --warn-hover: #a16207;
  --warn-bg: #fefce8;
  --attention: #ea580c;
  --attention-bg: #fff7ed;
  --info: var(--blue-600);
  --info-bg: #eff6ff;
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lift: 0 8px 20px rgba(37, 99, 235, 0.12);
  --font:
    "Lexend",
    "Segoe UI",
    sans-serif;
  --mono:
    "Source Code Pro",
    ui-monospace,
    monospace;
  --focus: rgba(37, 99, 235, 0.32);
  --touch: 2.85rem;
  --icon-sm: 1.125rem;
  --icon-md: 1.25rem;
  --icon-lg: 1.375rem;
  --input-bg: #ffffff;
  --btn-primary-fg: #ffffff;
  --space-1: 0.35rem;
  --space-2: 0.55rem;
  --space-3: 0.85rem;
  --space-4: 1.15rem;
  --space-5: 1.5rem;
  --space-xs: 0.15rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --bp-sm: 640px;
  --bp-md: 900px;
  --bp-lg: 1100px;
  --bp-xl: 1280px;
  --bp-pdv: 980px;
  --a11y-font-mult: 1;
  --a11y-line-height: 1.45;
  --a11y-letter-spacing: 0;
  --a11y-word-spacing: 0;
  --a11y-focus-width: 2px;
  --page-gap: var(--space-3);
  --section-gap: var(--space-sm);
  --inline-gap: var(--space-2);
  --compact-gap: var(--space-1);
  --panel-pad: var(--space-md);
  --content-pad-x: var(--space-md);
  --content-pad-y: var(--space-sm);
  --content-pad-x-compact: var(--space-2);
  --content-pad-y-compact: var(--space-1);
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.3125rem;
  --fs-2xl: 1.5rem;
  --lh-tight: 1.25;
  --lh-snug: 1.4;
  --lh-body: 1.55;
  --lh-loose: 1.65;
  --tracking-tight: -0.015em;
  --tracking-normal: 0.012em;
  --tracking-wide: 0.04em;
  --modal-pad-x: 1.25rem;
  --modal-pad-y: 1.25rem;
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --ease-default: ease;
}
*,
*::before,
*::after {
  border-radius: 0 !important;
}
html[data-theme=dark] {
  --gray-50: #020617;
  --gray-100: #0f172a;
  --gray-200: #1e293b;
  --gray-300: #334155;
  --gray-400: #475569;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --blue-400: #93c5fd;
  --blue-500: #60a5fa;
  --blue-600: #3b82f6;
  --blue-700: #60a5fa;
  --blue-800: #93c5fd;
  --teal-400: var(--blue-400);
  --teal-500: var(--blue-500);
  --teal-600: var(--blue-600);
  --teal-700: var(--blue-700);
  --teal-800: var(--blue-800);
  --energy-deep: #f97316;
  --energy-soft: #fdba74;
  --energy-rgb:
    251,
    146,
    60;
  --premium: var(--blue-700);
  --premium-bg: var(--info-bg);
  --brand-1: #020617;
  --brand-2: #0f172a;
  --brand-3: #3b82f6;
  --brand-4: #2563eb;
  --brand-5: #f8fafc;
  --brand-white: #f8fafc;
  --brand-black: #020617;
  --c1: #f8fafc;
  --c2: #94a3b8;
  --c3: #cbd5e1;
  --c4: #e2e8f0;
  --c5: #f8fafc;
  --c-white: #f8fafc;
  --slate-900: #f8fafc;
  --slate-800: #f1f5f9;
  --slate-700: #e2e8f0;
  --slate-600: #94a3b8;
  --slate-500: #64748b;
  --slate-400: #475569;
  --slate-200: #1e293b;
  --slate-100: #0f172a;
  --bg: #020617;
  --surface: #0f172a;
  --border: #1e293b;
  --text: #f1f5f9;
  --text-ink: #f8fafc;
  --muted: #94a3b8;
  --canvas: var(--bg);
  --accent-rgb:
    59,
    130,
    246;
  --ink-rgb:
    241,
    245,
    249;
  --sidebar-bg: #020617;
  --sidebar-text: #f8fafc;
  --sidebar-muted: #94a3b8;
  --success: #4ade80;
  --success-hover: #86efac;
  --success-bg: #14532d;
  --danger: #f87171;
  --danger-hover: #fca5a5;
  --danger-bg: #7f1d1d;
  --danger-critical: #fecaca;
  --warn: #facc15;
  --warn-hover: #fde047;
  --warn-bg: #713f12;
  --attention: #fb923c;
  --attention-bg: #7c2d12;
  --info: #60a5fa;
  --info-bg: #1e3a8a;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 8px 22px rgba(59, 130, 246, 0.18);
  --focus: rgba(59, 130, 246, 0.4);
  --input-bg: #0f172a;
  --btn-primary-fg: #ffffff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: calc(clamp(15px, 0.45vw + 13.5px, 18.5px) * var(--a11y-font-mult, 1));
}
html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-normal);
  color: var(--text);
  background:
    radial-gradient(
      ellipse 70% 45% at 0% -10%,
      rgba(var(--accent-rgb), 0.06),
      transparent 50%),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: rgba(var(--accent-rgb), 0.22);
  color: var(--text);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent;
}
*::-webkit-scrollbar {
  width: 0.45rem;
  height: 0.45rem;
}
*::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.35);
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.55);
}
@media (max-height: 820px) {
  html {
    font-size: calc(clamp(14px, 1vh + 6.5px, 17px) * var(--a11y-font-mult, 1));
  }
  :root {
    --touch: 2.75rem;
    --modal-pad-x: 1.05rem;
    --modal-pad-y: 1.05rem;
  }
}
@media (max-height: 720px) {
  html {
    font-size: calc(clamp(13.5px, 0.95vh + 5.5px, 16px) * var(--a11y-font-mult, 1));
  }
  :root {
    --touch: 2.75rem;
    --modal-pad-x: 0.95rem;
    --modal-pad-y: 0.95rem;
  }
}
@media (max-width: 1100px) {
  :root {
    --touch: 2.75rem;
    --modal-pad-x: 0.9rem;
    --modal-pad-y: 0.9rem;
  }
}
app-root {
  display: block;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
app-shell,
app-login {
  display: block;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
app-dashboard,
app-configuracoes {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
}
app-estoque,
app-fornecedores,
app-relatorios,
app-clientes,
app-ordens-servico,
app-aparelhos,
app-financeiro,
app-usuarios {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
app-pdv {
  display: block;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  color: var(--text-ink);
}
h1 {
  font-size: var(--fs-2xl);
}
h2 {
  font-size: var(--fs-xl);
}
h3 {
  font-size: var(--fs-lg);
}
button,
input,
select,
textarea {
  font: inherit;
  line-height: var(--lh-snug);
}
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--focus);
}
label {
  display: grid;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--slate-700);
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  min-height: var(--touch);
  font-size: var(--fs-md);
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type=checkbox],
input[type=radio] {
  width: 1rem;
  min-width: 1rem;
  max-width: 1rem;
  height: 1rem;
  min-height: 1rem;
  max-height: 1rem;
  margin: 0;
  padding: 0;
  border: initial;
  border-radius: 0;
  background: initial;
  box-shadow: none;
  accent-color: var(--brand-3);
  cursor: pointer;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: auto;
}
input[type=checkbox]:focus,
input[type=radio]:focus {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  box-shadow: none;
  border-color: initial;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.4rem;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--surface);
  background-image:
    linear-gradient(
      180deg,
      var(--surface) 0%,
      var(--slate-100) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230F2A45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 0.85rem center;
  background-size: 100% 100%, 14px;
  box-shadow: var(--shadow-sm);
}
select:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
}
select:focus,
select:open {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--focus);
  background-image:
    linear-gradient(
      180deg,
      var(--surface) 0%,
      var(--slate-100) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B1320' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: 100% 100%, 14px;
}
select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: var(--slate-100);
}
select option,
select optgroup {
  background: var(--input-bg);
  color: var(--slate-700);
  font-weight: 500;
  padding: 0.55rem 0.75rem;
}
select option:checked,
select option:hover {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--blue-700);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--focus);
}
.dropdown-panel,
.menu-list,
.cli-results,
.prod-results {
  margin-top: 0.4rem;
  max-height: 220px;
  overflow: auto;
  display: grid;
  gap: 0.2rem;
  padding: 0.35rem;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(var(--ink-rgb), 0.1), 0 0 0 1px rgba(var(--ink-rgb), 0.03);
  animation: dropdown-in 0.14s ease-out;
}
.product-search {
  position: relative;
}
.product-search .prod-results,
.product-search .dropdown-panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
}
@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dropdown-item,
.menu-item,
.cli-row,
.prod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
  padding: 0.65rem 0.75rem;
  min-height: 2.5rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--slate-700);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.dropdown-item:hover,
.menu-item:hover,
.cli-row:hover,
.prod-row:hover,
.dropdown-item.active,
.menu-item.active {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--blue-700);
}
.dropdown-item small,
.cli-row small,
.prod-row small {
  display: block;
  color: var(--slate-500);
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  font-weight: 400;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  min-height: var(--touch);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-normal);
  background: transparent;
  color: var(--slate-700);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
}
lucide-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
  flex-shrink: 0;
}
lucide-icon svg,
.lucide {
  display: block;
  flex-shrink: 0;
  margin: 0;
}
.btn lucide-icon {
  opacity: 1;
  width: var(--icon-md);
  height: var(--icon-md);
}
.btn lucide-icon svg,
.btn .lucide {
  width: var(--icon-md) !important;
  height: var(--icon-md) !important;
}
.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: var(--fs-sm);
  min-height: var(--touch);
  gap: 0.35rem;
}
.btn-sm lucide-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.btn-sm lucide-icon svg,
.btn-sm .lucide {
  width: var(--icon-sm) !important;
  height: var(--icon-sm) !important;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn:not(:disabled):active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--brand-4);
  color: var(--btn-primary-fg);
  border-color: var(--brand-3);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.22);
}
.btn-primary:hover:not(:disabled) {
  background: var(--blue-700);
  border-color: var(--blue-800);
  box-shadow: 0 3px 12px rgba(var(--accent-rgb), 0.28);
}
.btn-cta {
  padding-inline: 1.15rem;
  font-size: var(--fs-md);
  gap: 0.45rem;
}
.btn-cta.btn-primary {
  background: var(--blue-600);
  border-color: var(--blue-700);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.28);
}
.btn-cta.btn-primary:hover:not(:disabled) {
  background: var(--blue-700);
  border-color: var(--blue-800);
  box-shadow: 0 3px 14px rgba(var(--accent-rgb), 0.34);
}
.btn-outline {
  background: transparent;
  border-color: var(--blue-600);
  color: var(--blue-700);
  font-weight: 600;
}
.btn-outline:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: var(--blue-700);
  color: var(--blue-800);
}
.btn-urgency {
  background: var(--attention);
  color: #fff;
  border-color: var(--energy-deep);
}
.btn-urgency:hover:not(:disabled) {
  background: var(--energy-deep);
  border-color: var(--energy-deep);
}
.btn-cta lucide-icon {
  width: var(--icon-lg);
  height: var(--icon-lg);
}
.btn-cta lucide-icon svg,
.btn-cta .lucide {
  width: var(--icon-lg) !important;
  height: var(--icon-lg) !important;
}
.btn-secondary {
  background: var(--slate-100);
  border-color: var(--border);
  color: var(--slate-700);
  font-weight: 600;
}
.btn-secondary:hover:not(:disabled) {
  background: var(--slate-200);
  border-color: var(--slate-400, var(--border));
  color: var(--slate-900);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
}
.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
  background: var(--success-hover);
  border-color: var(--success-hover);
}
.btn-ghost {
  color: var(--slate-600);
  min-height: 2.35rem;
  padding: 0.35rem 0.55rem;
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  color: var(--slate-900);
  background: var(--slate-100);
}
.btn-ghost.danger {
  color: var(--danger);
}
.btn-ghost.danger:hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-bg);
}
.btn-num,
.calc-key,
.qty button {
  box-sizing: border-box;
  aspect-ratio: 1/1;
  display: inline-grid;
  place-items: center;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(
      180deg,
      var(--surface) 0%,
      var(--slate-100) 100%);
  color: var(--slate-800);
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 1px 2px rgba(15, 23, 42, 0.12);
  transition:
    background 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.08s ease,
    border-color 0.12s ease;
}
.btn-num:hover,
.calc-key:hover,
.qty button:hover {
  background: var(--slate-100);
  border-color: var(--slate-400, var(--border));
}
.btn-num:active,
.calc-key:active,
.qty button:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.16);
}
.btn-num:disabled,
.calc-key:disabled,
.qty button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-icon,
.btn.btn-icon,
.btn-ghost.btn-icon,
.btn-secondary.btn-icon {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  width: auto;
  min-width: var(--touch);
  max-width: none;
  height: auto;
  min-height: var(--touch);
  max-height: none;
  padding: 0.35rem 0.65rem !important;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: var(--radius);
}
.btn-icon.btn-label-force:has(> lucide-icon):not(:has(> span)):not(:has(> .btn-label))::after,
.btn.btn-icon.btn-label-force:has(> lucide-icon):not(:has(> span)):not(:has(> .btn-label))::after {
  content: attr(aria-label);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.btn-icon lucide-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  flex-shrink: 0;
}
.btn-icon lucide-icon svg,
.btn-icon .lucide {
  width: var(--icon-md) !important;
  height: var(--icon-md) !important;
}
.btn-sm.btn-icon {
  width: auto;
  min-width: 2.35rem;
  max-width: none;
  height: auto;
  min-height: 2.35rem;
  max-height: none;
  padding: 0.28rem 0.55rem !important;
}
.btn-sm.btn-icon lucide-icon {
  width: var(--icon-md);
  height: var(--icon-md);
}
.btn-sm.btn-icon lucide-icon svg,
.btn-sm.btn-icon .lucide {
  width: var(--icon-md) !important;
  height: var(--icon-md) !important;
}
.row-actions .btn-icon,
.lista-actions .btn-icon,
.produto-toolbar .btn-icon {
  width: 2.25rem;
  min-width: 2.25rem;
  max-width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem;
  max-height: 2.25rem;
  padding: 0 !important;
  gap: 0;
}
.row-actions .btn-icon:has(> lucide-icon)::after,
.lista-actions .btn-icon:has(> lucide-icon)::after,
.produto-toolbar .btn-icon:has(> lucide-icon)::after,
.row-actions .btn.btn-icon:has(> lucide-icon)::after,
.lista-actions .btn.btn-icon:has(> lucide-icon)::after,
.produto-toolbar .btn.btn-icon:has(> lucide-icon)::after,
.row-actions .btn-ghost.btn-icon:has(> lucide-icon)::after,
.lista-actions .btn-ghost.btn-icon:has(> lucide-icon)::after,
.produto-toolbar .btn-ghost.btn-icon:has(> lucide-icon)::after {
  content: none !important;
}
.row-actions .btn-icon lucide-icon,
.lista-actions .btn-icon lucide-icon,
.produto-toolbar .btn-icon lucide-icon {
  width: var(--icon-md);
  height: var(--icon-md);
}
.row-actions .btn-icon lucide-icon svg,
.lista-actions .btn-icon lucide-icon svg,
.produto-toolbar .btn-icon lucide-icon svg,
.row-actions .btn-icon .lucide,
.lista-actions .btn-icon .lucide,
.produto-toolbar .btn-icon .lucide {
  width: var(--icon-md) !important;
  height: var(--icon-md) !important;
}
.page {
  display: flex;
  flex-direction: column;
  gap: var(--page-gap);
  width: 100%;
  height: auto;
  min-height: 100%;
  max-height: none;
  overflow: visible;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.page.page-fill {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.content-pdv .page.page-fill,
app-pdv .page.page-fill {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
.page > .page-header,
.page > .seg,
.page > .cards,
.page > .cards-mensal,
.page > .month-nav,
.page > .alert,
.page > .actions,
.page > .toolbar,
.page > .toolbar-bar,
.page > .tab-hint,
.page > .pdv-top,
.page > .letter-row {
  flex-shrink: 0;
}
.page-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.page-header {
  display: flex;
  justify-content: space-between;
  gap: var(--section-gap);
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  width: 100%;
  padding-bottom: var(--space-xs);
}
.page-header h2 {
  margin: 0;
  font-size: var(--fs-xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-ink);
}
.page-header p {
  margin: var(--compact-gap) 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  max-width: 40rem;
}
.actions {
  display: flex;
  gap: var(--inline-gap);
  flex-wrap: wrap;
  align-items: center;
}
.toolbar,
.toolbar-bar {
  display: flex;
  gap: var(--section-gap);
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
}
.toolbar-bar {
  display: grid;
  gap: var(--compact-gap);
}
.search {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: none;
  width: auto;
  min-height: 2.15rem;
  padding: var(--compact-gap) var(--space-sm) var(--compact-gap) 2.35rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230F2A45' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11.5 11.5 14.5 14.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.7rem center;
  background-size: 16px;
  font-size: var(--fs-sm);
}
input.search:focus,
input.search:focus-visible,
.search.catalog-search-input:focus,
.search.catalog-search-input:focus-visible,
.search.pdv-search-modal:focus,
.search.pdv-search-modal:focus-visible,
.product-search:focus,
.product-search:focus-visible,
.cli-search-input:focus,
.cli-search-input:focus-visible,
.orc-input.product-search:focus {
  outline: none;
  border-color: var(--blue-600) !important;
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--focus), 0 0 0 1px color-mix(in srgb, var(--blue-600) 55%, transparent);
}
.catalog-search:focus-within,
.search-wrap:focus-within {
  border-radius: var(--radius);
  box-shadow: 0 0 0 3px var(--focus), 0 0 0 1px color-mix(in srgb, var(--blue-600) 40%, transparent);
}
.catalog-search:focus-within .catalog-search-input,
.catalog-search:focus-within input.search {
  box-shadow: none;
  border-color: var(--blue-600);
}
input.search,
.search.catalog-search-input,
.search.pdv-search-modal {
  min-height: 2.15rem;
  padding-top: var(--compact-gap);
  padding-bottom: var(--compact-gap);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--panel-pad);
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.panel.panel-accent:not(.modal)::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      rgba(var(--accent-rgb), 0.4),
      transparent 72%);
  pointer-events: none;
  opacity: 0.9;
}
.form-panel {
  display: grid;
  gap: var(--page-gap);
  align-content: start;
  width: 100%;
}
.form-panel h3 {
  margin: 0 0 var(--compact-gap);
}
.form-sections {
  display: grid;
  gap: var(--page-gap);
  width: 100%;
}
.form-section {
  display: grid;
  gap: var(--section-gap);
  padding: var(--section-gap) var(--page-gap) var(--page-gap);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(
      180deg,
      rgba(var(--accent-rgb), 0.04),
      transparent 40%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.form-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--inline-gap);
  padding-bottom: var(--compact-gap);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.form-section-title {
  margin: 0;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand-3);
  font-family: var(--mono);
}
.form-section-hint {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: var(--muted);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--inline-gap) var(--section-gap);
  align-items: end;
}
.form-row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-row .full,
.form-section > label.full {
  grid-column: 1/-1;
}
.form-section .hint-sku,
.form-row .hint-sku {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: var(--muted);
}
@media (max-width: 640px) {
  .form-row,
  .form-row.cols-3 {
    grid-template-columns: 1fr;
  }
  .form-row .span-2 {
    grid-column: 1/-1;
  }
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: var(--panel-pad);
  align-items: stretch;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.split > .panel,
.split > .table-wrap,
.split > form,
.split > .form-panel {
  min-height: 0;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}
@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
    align-items: start;
    overflow: auto;
  }
  .split > .panel,
  .split > .table-wrap,
  .split > form,
  .split > .form-panel {
    height: auto;
    max-height: none;
  }
}
.table-wrap {
  overflow: auto;
  width: 100%;
  min-height: 0;
  position: relative;
}
.page > .split,
.page > .pdv-grid,
.page > .pdv-workspace,
.page > .pdv-page,
.page > .kanban,
.page > .mensal-grid,
.page > .workspace,
.page > .forn-workspace,
.page > .panel.table-wrap,
.page > .table-wrap,
.page > .page-scroll,
.page > .fin-toolbar,
.page > .fin-cards,
.page > .cal-workspace {
  flex: 1 1 auto;
  min-height: 0;
}
.page > .fin-toolbar,
.page > .fin-cards {
  flex: 0 0 auto;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--page-gap);
  width: 100%;
  flex-shrink: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
th,
td {
  text-align: left;
  padding: var(--page-gap) var(--section-gap);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
th {
  color: var(--slate-500);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--surface) 92%, var(--slate-100));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 -1px 0 var(--border);
}
tbody tr {
  transition: background 0.12s ease;
}
tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.04);
}
tbody tr.selected {
  background: rgba(var(--accent-rgb), 0.1);
}
.row-warn {
  background: var(--warn-bg);
}
.row-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--compact-gap);
  justify-content: flex-end;
  align-items: center;
}
.inline-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--inline-gap);
  min-width: 0;
}
.inline-row > * {
  flex-shrink: 0;
}
.inline-row .grow,
.inline-row .inline-grow {
  flex: 1 1 auto;
  min-width: 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--panel-pad);
  display: grid;
  gap: var(--compact-gap);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    transform 0.12s ease;
}
.stat-card span {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: var(--lh-snug);
}
.stat-card strong {
  font-size: var(--fs-2xl);
  font-family: var(--mono);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
}
.stat-card small {
  color: var(--slate-500);
}
.stat-card.warn {
  border-color: var(--c2);
  background: var(--warn-bg);
}
.status-grid {
  display: grid;
  gap: 0.45rem;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.15rem;
  border-bottom: 1px solid var(--border);
}
.status-row .bar {
  flex: 1;
  height: 6px;
  border-radius: var(--radius);
  background: var(--slate-100);
  overflow: hidden;
  margin: 0 0.75rem;
}
.status-row .bar > i {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  background:
    linear-gradient(
      90deg,
      var(--blue-500),
      var(--blue-700));
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: var(--lh-tight);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--brand-3);
  letter-spacing: var(--tracking-normal);
  border: 1px solid transparent;
}
.badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 0;
  background: currentColor;
}
.badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.badge-ok {
  background: var(--success-bg);
  color: var(--success);
}
.badge-info {
  background: var(--info-bg);
  color: var(--info);
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.badge-wait {
  background: var(--slate-100);
  color: var(--slate-700);
}
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.alert::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: currentColor;
}
.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  animation: alert-flash var(--duration-slow) var(--ease-default);
}
.alert-success-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  margin: 0;
  background: rgba(var(--ink-rgb), 0.52);
  cursor: pointer;
  animation: alert-success-layer-in 0.2s ease;
}
.alert-success {
  position: relative;
  z-index: 1;
  width: min(22.5rem, 100vw - 1.75rem);
  max-width: calc(100vw - 1.75rem);
  margin: 0;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--text-ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(var(--ink-rgb), 0.28),
    0 2px 8px rgba(var(--ink-rgb), 0.1);
  cursor: default;
  animation: alert-success-modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.alert-success::before {
  content: "";
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0 auto 0.15rem;
  border-radius: 0;
  flex-shrink: 0;
  background:
    radial-gradient(
      circle at 50% 50%,
      var(--success) 0 42%,
      transparent 43%),
    color-mix(in srgb, var(--success) 18%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}
.alert-success > span,
.alert-success > p {
  margin: 0;
}
.alert-success-ok {
  align-self: center;
  min-width: 5.5rem;
  margin-top: 0.15rem;
}
.alert-success-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 0.65rem 0.75rem;
}
.alert-success-row::before {
  margin: 0;
}
.alert-success-row > span {
  flex: 1 1 8rem;
  min-width: 0;
  text-align: left;
}
.alert-dismiss {
  margin-left: auto;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}
.alert-dismiss:hover {
  opacity: 1;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.alert-error,
.alert-warn,
.alert-info,
.alert-attention {
  padding-right: 0.55rem;
}
.alert-error > .alert-msg,
.alert-warn > .alert-msg,
.alert-info > .alert-msg {
  flex: 1 1 auto;
  min-width: 0;
}
@keyframes alert-success-layer-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes alert-success-modal-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid color-mix(in srgb, var(--info) 35%, transparent);
}
.alert-warn {
  background: var(--warn-bg);
  color: var(--warn-hover, var(--warn));
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
}
.alert-attention {
  background: var(--attention-bg);
  color: var(--attention);
  border: 1px solid color-mix(in srgb, var(--attention) 35%, transparent);
}
@keyframes alert-flash {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  35% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 1;
  }
}
.muted {
  color: var(--muted);
}
.row-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.check input[type=checkbox],
.check input[type=radio] {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  min-height: 1rem;
  margin: 0;
  padding: 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(0.4rem, 1.5vw, 1rem);
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 120%,
      rgba(var(--accent-rgb), 0.18),
      transparent 55%),
    radial-gradient(
      ellipse 50% 40% at 10% 0%,
      rgba(var(--ink-rgb), 0.25),
      transparent 50%),
    rgba(var(--ink-rgb), 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  animation: fade-in 0.2s ease;
}
.modal {
  --modal-accent: var(--blue-600);
  position: relative;
  width: min(72vh, 100vw - 1.25rem);
  max-width: min(72vh, 100vw - 1.25rem);
  height: min(90vh, (100vw - 1.25rem) * 5 / 4);
  max-height: 90vh;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow-x: hidden;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, var(--shadow);
  animation: modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}
@media (max-width: 720px), (max-height: 560px), (orientation: landscape) and (max-height: 500px) {
  .modal,
  .modal.sm:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
  .modal.md:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
  .modal.wide:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
  .modal.lg:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
  .modal.xl:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal) {
    width: min(36rem, 100vw - 1rem);
    max-width: calc(100vw - 1rem);
    height: auto;
    max-height: min(92dvh, 92vh);
    aspect-ratio: auto;
  }
}
.modal.sm:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
.modal.md:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
.modal.wide:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
.modal.lg:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
.modal.xl:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal) {
  width: min(72vh, 100vw - 1.25rem);
  max-width: min(72vh, 100vw - 1.25rem);
  height: min(90vh, (100vw - 1.25rem) * 5 / 4);
  max-height: 90vh;
  aspect-ratio: 4/5;
}
.modal.panel {
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 24px 60px rgba(var(--ink-rgb), 0.22),
    0 2px 8px rgba(var(--ink-rgb), 0.08);
}
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: var(--modal-pad-y) var(--modal-pad-x);
  display: grid;
  gap: var(--section-gap);
  align-content: start;
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.35) transparent;
}
.modal-body::-webkit-scrollbar {
  width: 0.35rem;
  height: 0.35rem;
  display: block;
}
.modal-body input,
.modal-body select,
.modal-body textarea,
.modal-body .app-select-trigger {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.modal-body input[type=checkbox],
.modal-body input[type=radio] {
  width: 1rem;
  max-width: 1rem;
  min-width: 1rem;
  height: 1rem;
  min-height: 1rem;
}
.modal-photo,
.modal .modal-media,
.modal .produto-detalhe-media,
.modal .pc-media.modal-photo {
  aspect-ratio: 5/4;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  overflow: hidden;
  background: var(--slate-100);
  border: 1px solid var(--border);
}
.modal-photo img,
.modal .modal-media img,
.modal .produto-detalhe-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.modal-head {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--inline-gap);
  padding: var(--modal-pad-y) var(--modal-pad-x);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(
      120deg,
      rgba(var(--accent-rgb), 0.07),
      transparent 42%),
    linear-gradient(
      180deg,
      var(--surface),
      var(--slate-100));
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.modal-head > .modal-close,
.modal-head > .modal-head-actions,
.modal-head > app-help-button,
.modal-head > .modal-mark,
.modal-head > .btn {
  flex-shrink: 0;
  align-self: center;
}
.modal-head-copy {
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
  flex: 1 1 auto;
  align-content: center;
  align-self: center;
}
.modal-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-3);
  line-height: 1.2;
}
.modal-head h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  letter-spacing: -0.02em;
  color: var(--text-ink);
  line-height: 1.2;
}
.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.3;
}
.modal-mark {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border-radius: var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(var(--accent-rgb), 0.2),
      rgba(var(--ink-rgb), 0.06));
  color: var(--blue-700);
  font-family: var(--mono);
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  box-sizing: border-box;
  line-height: 1;
  margin: 0;
}
.modal-close {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-sizing: border-box;
  width: auto;
  height: auto;
  min-width: 2.35rem;
  min-height: 2.35rem;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--danger) !important;
  background: var(--danger) !important;
  color: #fff !important;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.22);
  transition:
    background var(--duration-fast) var(--ease-default),
    border-color var(--duration-fast) var(--ease-default),
    transform var(--duration-fast) var(--ease-default);
}
.modal-close:has(> lucide-icon):not(:has(> span))::after {
  content: attr(aria-label);
  color: #fff;
}
.modal-close lucide-icon,
.modal-close .lucide,
.modal-close svg {
  color: #fff !important;
  stroke: #fff !important;
  width: var(--icon-md) !important;
  height: var(--icon-md) !important;
  display: block;
  margin: 0;
  flex-shrink: 0;
}
.modal-close lucide-icon {
  display: grid !important;
  place-items: center;
  width: var(--icon-md);
  height: var(--icon-md);
}
.modal-close:hover {
  background: var(--danger-hover) !important;
  border-color: var(--danger-hover) !important;
  color: #fff !important;
}
.modal-close:hover lucide-icon,
.modal-close:hover .lucide,
.modal-close:hover svg {
  color: #fff !important;
  stroke: #fff !important;
}
.modal-close:active {
  transform: scale(0.96);
}
.view-toggle-btn:has(> lucide-icon)::after,
.compose-send:has(> lucide-icon)::after,
.cart-table .col-act .rm:has(> lucide-icon)::after,
.cal-nav:has(> lucide-icon)::after,
.new-chat-icon:has(> lucide-icon)::after,
.wa-chat-btn.icon-only:has(> lucide-icon)::after,
.filter-clear:has(> lucide-icon)::after {
  content: none !important;
}
.modal-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--inline-gap);
  padding: var(--modal-pad-y) var(--modal-pad-x);
  border-top: 1px solid var(--border);
  background: var(--slate-100);
}
.modal-foot > .btn,
.modal-foot > button {
  align-self: center;
  margin-block: 0;
}
.modal-head-actions {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  align-self: center;
  gap: var(--compact-gap);
  flex-shrink: 0;
  min-height: 2.35rem;
}
.modal-head-actions > * {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin: 0;
}
.modal-head-actions app-help-button {
  display: inline-flex;
  align-items: center;
  height: 2.35rem;
}
.modal-head-actions .help-btn,
.modal-head-actions .help-btn-inline {
  height: 2.35rem !important;
  min-height: 2.35rem !important;
  box-sizing: border-box;
}
.modal-head-actions .modal-close {
  align-self: center;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.seg {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs);
  gap: var(--space-xs);
  background: color-mix(in srgb, var(--slate-100) 88%, var(--brand-white));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 2px rgba(var(--ink-rgb), 0.04);
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.45rem 0.85rem;
  min-height: 2.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
}
.seg button.active {
  background:
    linear-gradient(
      180deg,
      var(--surface) 0%,
      var(--slate-100) 100%);
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}
.seg button:hover:not(.active) {
  color: var(--blue-700);
  background: rgba(var(--accent-rgb), 0.08);
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  min-height: 2.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--slate-700);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition:
    border-color 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.chip:hover {
  border-color: var(--blue-500);
}
.chip.on {
  border-color: var(--blue-600);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--blue-700);
  font-weight: 600;
}
.chip.on::before {
  content: "\2713";
  font-size: 0.75rem;
  font-weight: 700;
}
.choice-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.choice-card:hover {
  border-color: var(--blue-500);
}
.choice-card.on {
  border-color: var(--blue-600);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: inset 0 0 0 1px var(--blue-600);
}
.choice-card strong {
  font-size: 0.92rem;
}
.choice-card small {
  color: var(--muted);
  font-size: 0.8rem;
}
.empty-state {
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 0.65rem;
  padding: 1.15rem 0.85rem;
  text-align: center;
  color: var(--muted);
}
.empty-state .glyph,
.empty-state lucide-icon,
.empty-state .empty-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--blue-700);
  font-size: 1.35rem;
  font-weight: 700;
}
.empty-state lucide-icon,
.empty-state .empty-icon {
  width: auto;
  height: auto;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.5rem;
}
.empty-state lucide-icon svg,
.empty-state .empty-icon svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
}
.empty-state strong {
  color: var(--slate-700);
  font-size: 0.98rem;
}
.empty-state span {
  font-size: 0.85rem;
  max-width: 22rem;
  line-height: var(--lh-snug);
}
.empty-state .btn {
  margin-top: var(--compact-gap);
}
.skeleton {
  display: grid;
  gap: 0.75rem;
}
.skeleton-card {
  height: 5.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(
      90deg,
      var(--slate-100) 0%,
      var(--slate-200) 45%,
      var(--slate-100) 90%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
}
.progress-track {
  height: 6px;
  border-radius: var(--radius);
  background: var(--slate-200);
  overflow: hidden;
}
.progress-track > i {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  background:
    linear-gradient(
      90deg,
      var(--blue-500),
      var(--blue-700));
  transition: width 0.25s ease;
}
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: var(--radius);
  background: var(--slate-200);
  color: var(--slate-700);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: var(--touch);
}
.title-row h2 {
  margin: 0;
  line-height: 1.2;
}
.title-row app-help-button {
  display: inline-flex;
  align-items: center;
  align-self: center;
}
.modal-title-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.modal-title-row h3,
.modal-title-row h4 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.modal-title-row app-help-button {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.form-row .span-2 {
  grid-column: span 2;
}
.nivel {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  background: var(--brand-5);
  color: var(--brand-1);
  align-self: center;
}
.nivel[data-nivel=BRONZE] {
  background: #fef3c7;
  color: #92400e;
}
.nivel[data-nivel=PRATA] {
  background: var(--slate-200);
  color: var(--slate-700);
}
.nivel[data-nivel=OURO] {
  background: #fef9c3;
  color: #a16207;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--page-gap);
  margin: 0 0 var(--section-gap);
}
.stats-grid > div {
  text-align: center;
  display: grid;
  place-content: center;
  gap: var(--space-xs);
  padding: var(--inline-gap);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stats-grid strong {
  display: block;
  font-family: var(--mono);
}
.stats-grid span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
}
.empty-block {
  display: grid;
  place-items: center;
  justify-items: center;
  gap: var(--compact-gap);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(var(--accent-rgb), 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(
      160deg,
      rgba(var(--accent-rgb), 0.05),
      transparent 55%),
    var(--slate-100);
}
.empty-block.soft {
  border-style: solid;
  background: transparent;
}
.empty-block strong {
  color: var(--slate-800);
  font-size: var(--fs-sm);
}
.empty-block span {
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  max-width: 22rem;
}
a.stat-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .col-opt {
    display: none;
  }
}
a.stat-card:hover,
.stat-card.interactive:hover,
.card-interactive:hover,
button.product-card:hover,
a.product-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.card-interactive,
button.product-card,
a.product-card,
a.stat-card,
.stat-card.interactive {
  transition:
    border-color var(--duration-fast) var(--ease-default),
    box-shadow var(--duration-fast) var(--ease-default),
    transform var(--duration-fast) var(--ease-default);
}
.table-wrap.scroll-hint::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1.5rem;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(var(--ink-rgb), 0.06));
  border-radius: var(--radius);
}
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .table-wrap.scroll-hint,
  .panel.table-wrap {
    overflow: visible;
  }
  .table-wrap table.estoque-table,
  .table-wrap table.dense-table,
  .panel.table-wrap > table {
    display: block;
    width: 100%;
  }
  .table-wrap table.estoque-table thead,
  .table-wrap table.dense-table thead,
  .panel.table-wrap > table thead {
    display: none;
  }
  .table-wrap table.estoque-table tbody,
  .table-wrap table.dense-table tbody,
  .panel.table-wrap > table tbody {
    display: grid;
    gap: 0.55rem;
  }
  .table-wrap table.estoque-table tr,
  .table-wrap table.dense-table tr,
  .panel.table-wrap > table tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.25rem 0.55rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    background: var(--surface);
    align-items: center;
  }
  .table-wrap table.estoque-table td,
  .table-wrap table.dense-table td,
  .panel.table-wrap > table td {
    border: 0;
    padding: 0;
    white-space: normal;
  }
  .table-wrap table.estoque-table .col-thumb,
  .table-wrap table.dense-table .col-thumb {
    grid-row: 1/span 2;
  }
  .table-wrap table.estoque-table .col-actions,
  .table-wrap table.dense-table .col-actions,
  .panel.table-wrap > table .col-actions,
  .panel.table-wrap > table td:last-child {
    grid-column: 3;
    grid-row: 1/span 2;
    justify-self: end;
  }
  .table-wrap .row-actions,
  .lista-actions {
    opacity: 1 !important;
    flex-wrap: wrap;
  }
}
@media (max-width: 1280px), (max-height: 800px) {
  .page h2,
  .page-header h2 {
    font-size: 1.15rem;
  }
  .btn {
    min-height: 2.5rem;
    padding: 0.4rem 0.75rem;
    font-size: var(--fs-sm);
  }
  .btn-sm {
    min-height: 2.25rem;
    padding: 0.32rem 0.55rem;
    font-size: var(--fs-sm);
  }
  .btn-icon,
  .btn.btn-icon,
  .btn-ghost.btn-icon,
  .btn-sm.btn-icon {
    width: auto;
    min-width: 2.5rem;
    max-width: none;
    height: auto;
    min-height: 2.5rem;
    max-height: none;
    padding: 0.32rem 0.55rem !important;
  }
  .modal-close {
    width: auto;
    max-width: none;
    height: auto;
    min-height: 2.35rem;
    aspect-ratio: auto;
    padding: 0.32rem 0.55rem;
  }
  input,
  select,
  textarea,
  .app-select-trigger {
    min-height: 2.2rem;
    font-size: var(--fs-sm);
  }
  input[type=checkbox],
  input[type=radio] {
    width: 1rem;
    min-width: 1rem;
    max-width: 1rem;
    height: 1rem;
    min-height: 1rem;
    max-height: 1rem;
    padding: 0;
  }
  label {
    font-size: var(--fs-sm);
  }
  table {
    font-size: var(--fs-sm);
  }
  th,
  td {
    padding: 0.32rem 0.4rem;
  }
  .panel {
    padding: 0.6rem;
  }
  .stats-grid {
    gap: 0.4rem;
  }
  .stat-card {
    padding: 0.55rem 0.65rem;
    gap: 0.15rem;
  }
  .stat-card span {
    font-size: var(--fs-xs);
  }
  .stat-card strong {
    font-size: 1.15rem;
  }
  .empty-state {
    padding: 1rem 0.75rem;
  }
  .empty-state .glyph {
    font-size: 1.05rem;
  }
  .modal:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
  .modal.sm:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
  .modal.md:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
  .modal.wide:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
  .modal.lg:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal),
  .modal.xl:not(.os-wizard-modal):not(.form-fit):not(.form-modal):not(.usuario-modal):not(.forn-modal):not(.cancel-modal) {
    width: min(72vh, 100vw - 0.75rem);
    max-width: min(72vh, 100vw - 0.75rem);
    height: min(90vh, (100vw - 0.75rem) * 5 / 4);
    max-height: 90vh;
    aspect-ratio: 4/5;
  }
  .modal-body {
    gap: 0.55rem;
  }
  .form-sections {
    gap: 0.65rem;
  }
  .form-section {
    gap: 0.5rem;
    padding: 0.6rem 0.7rem 0.7rem;
  }
  .form-row {
    gap: 0.5rem 0.6rem;
  }
  .modal-head h3 {
    font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  }
  .modal-close {
    width: auto;
    height: auto;
    min-width: 2.25rem;
    min-height: 2.25rem;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    padding: 0.28rem 0.5rem;
    border-radius: var(--radius);
  }
  .modal-head p {
    display: none;
  }
}
@media (max-height: 720px) {
  .modal-body {
    gap: 0.45rem;
  }
  .stat-card strong {
    font-size: 1.05rem;
  }
  .empty-state {
    padding: 0.65rem 0.5rem;
  }
}
@media (max-width: 900px) {
  .page-header .title-row h2 {
    font-size: var(--fs-lg);
    max-width: 100%;
  }
  .page-header .title-row {
    gap: 0.35rem;
    min-width: 0;
    flex: 1 1 auto;
  }
  .page-header > div:first-child > p {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.dash,
.caixa-dash {
  display: grid;
  gap: 0.85rem;
}
.dash-kpis,
.caixa-dash-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.dash-kpis.cols-3,
.caixa-dash-kpis.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 520px) {
  .dash-kpis.cols-3,
  .caixa-dash-kpis.cols-3 {
    grid-template-columns: 1fr;
  }
}
.dash-kpi,
.caixa-dash-kpi {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0;
}
.dash-kpi.primary,
.caixa-dash-kpi.primary {
  background: color-mix(in srgb, var(--brand-2) 88%, var(--brand-3));
  border-color: var(--brand-2);
  color: var(--brand-5);
}
.dash-kpi.primary .dash-label,
.dash-kpi.primary small,
.caixa-dash-kpi.primary .caixa-dash-label,
.caixa-dash-kpi.primary .dash-label,
.caixa-dash-kpi.primary small {
  color: color-mix(in srgb, var(--brand-5) 72%, transparent);
}
.dash-kpi.primary strong,
.caixa-dash-kpi.primary strong {
  color: var(--brand-5);
}
.dash-kpi.accent,
.caixa-dash-kpi.accent {
  background: color-mix(in srgb, var(--brand-4) 22%, var(--brand-5));
  border-color: color-mix(in srgb, var(--brand-4) 45%, var(--brand-5));
}
.dash-label,
.caixa-dash-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-kpi strong,
.caixa-dash-kpi strong {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-ink);
  letter-spacing: -0.02em;
}
.dash-kpi small,
.caixa-dash-kpi small {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.3;
}
.dash-tiles,
.caixa-dash-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.5rem;
}
.dash-tile,
.caixa-dash-tile {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--slate-100);
  min-width: 0;
}
.dash-tile span,
.caixa-dash-tile span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-tile strong,
.caixa-dash-tile strong {
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-ink);
  line-height: 1.2;
}
.dash-tile.in strong,
.caixa-dash-tile.in strong {
  color: var(--success);
}
.dash-tile.out strong,
.caixa-dash-tile.out strong {
  color: var(--danger);
}
.dash-tile.warn strong,
.caixa-dash-tile.warn strong {
  color: var(--warn);
}
.dash-panel,
.caixa-dash-panel {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.dash-panel-head,
.caixa-dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.dash-panel-head h4,
.caixa-dash-panel-head h4 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-formas,
.dash-feed,
.caixa-dash-formas,
.caixa-dash-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.dash-forma-row,
.dash-feed li,
.caixa-dash-forma-row,
.caixa-dash-feed li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.dash-forma-row span,
.dash-feed li strong,
.caixa-dash-forma-row span,
.caixa-dash-feed li strong {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}
.dash-forma-row strong,
.dash-feed .num,
.caixa-dash-forma-row strong,
.caixa-dash-feed .num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text-ink);
  white-space: nowrap;
}
.dash-feed .num.out,
.caixa-dash-feed .num.out {
  color: var(--danger);
}
.dash-feed .num.in,
.caixa-dash-feed .num.in {
  color: var(--success);
}
.dash-feed .num.up {
  color: var(--success);
}
.caixa-dash-forma-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.caixa-dash-forma-meta small {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.25;
}
.caixa-forma-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--slate-100);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--slate-800);
}
.caixa-forma-chip[data-forma=PIX] {
  border-color: color-mix(in srgb, var(--success) 45%, var(--border));
  background: var(--success-bg);
  color: var(--success);
}
.caixa-forma-chip[data-forma=DINHEIRO] {
  border-color: color-mix(in srgb, var(--blue-600) 45%, var(--border));
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--blue-700);
}
.caixa-forma-chip[data-forma=DEBITO] {
  border-color: color-mix(in srgb, var(--blue-500) 40%, var(--border));
  background: color-mix(in srgb, var(--blue-500) 12%, var(--surface));
  color: var(--blue-700);
}
.caixa-forma-chip[data-forma=CREDITO] {
  border-color: color-mix(in srgb, var(--warn) 45%, var(--border));
  background: var(--warn-bg);
  color: var(--warn);
}
.caixa-forma-chip[data-forma=CONTA] {
  border-color: color-mix(in srgb, var(--blue-600) 40%, var(--border));
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--blue-700);
}
.caixa-composicao {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.caixa-composicao li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--slate-700);
}
.caixa-composicao li strong {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--text-ink);
  white-space: nowrap;
}
.caixa-composicao li.in strong {
  color: var(--success);
}
.caixa-composicao li.out strong {
  color: var(--danger);
}
.caixa-composicao li.total {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-ink);
}
.caixa-dash-bar i[data-forma=PIX] {
  background: var(--success);
}
.caixa-dash-bar i[data-forma=DINHEIRO] {
  background: var(--blue-600);
}
.caixa-dash-bar i[data-forma=DEBITO] {
  background: var(--blue-500);
}
.caixa-dash-bar i[data-forma=CREDITO] {
  background: var(--warn);
}
.dash-feed .num.down {
  color: var(--danger);
}
.dash-feed li,
.caixa-dash-feed li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.dash-feed li:last-child,
.caixa-dash-feed li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.dash-feed li > div,
.caixa-dash-feed li > div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.dash-feed small,
.caixa-dash-feed small {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}
.dash-bar,
.caixa-dash-bar {
  margin-top: 0.28rem;
  height: 0.35rem;
  background: color-mix(in srgb, var(--brand-4) 18%, var(--brand-5));
  overflow: hidden;
}
.dash-bar i,
.caixa-dash-bar i {
  display: block;
  height: 100%;
  background: var(--brand-3);
  min-width: 0;
}
.dash-empty,
.caixa-dash-empty {
  margin: 0;
  padding: 0.55rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}
@media (max-width: 720px) {
  .dash-kpis.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 420px) {
  .dash-kpis,
  .dash-kpis.cols-3,
  .caixa-dash-kpis {
    grid-template-columns: 1fr;
  }
}
.flush > *,
.view-toggle > *,
.chat-tabs > * {
  border-radius: 0;
}
.form-sections.flush,
.produto-modal .form-sections {
  gap: 0;
}
.form-sections.flush > .form-section,
.produto-modal .form-sections > .form-section {
  border-radius: 0;
}
.form-sections.flush > .form-section + .form-section,
.produto-modal .form-sections > .form-section + .form-section {
  border-top: 0;
}
.view-toggle,
.chat-tabs,
.flush-shell {
  border-radius: var(--radius);
  overflow: hidden;
}
.modal.os-wizard-modal {
  width: min(560px, 100vw - 1.25rem) !important;
  max-width: min(560px, 100vw - 1.25rem) !important;
  height: min(90dvh, 880px) !important;
  max-height: min(90dvh, 880px) !important;
  min-height: min(64dvh, 560px) !important;
  aspect-ratio: auto !important;
}
.modal.os-wizard-modal > .modal-body {
  display: block;
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}
.modal.os-wizard-modal > .modal-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  display: block;
}
.modal.os-wizard-modal > .modal-body::-webkit-scrollbar-thumb {
  background: rgba(var(--ink-rgb), 0.25);
  border-radius: 0;
}
.modal.os-wizard-modal app-os-abertura-wizard {
  display: block;
  width: 100%;
}
.modal.form-fit,
.modal.form-modal,
.modal.usuario-modal,
.modal.forn-modal,
.modal.cancel-modal {
  width: min(520px, 100vw - 1.25rem) !important;
  max-width: min(560px, 100vw - 1.25rem) !important;
  height: auto !important;
  max-height: min(90dvh, 880px) !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}
.modal.form-fit > .modal-body,
.modal.form-modal > .modal-body,
.modal.usuario-modal > .modal-body,
.modal.forn-modal > .modal-body,
.modal.cancel-modal > .modal-body {
  flex: 0 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 10000;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  background: var(--brand-3);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}
html[data-a11y-font=large] {
  --a11y-font-mult: 1.25;
}
html[data-a11y-font=xlarge] {
  --a11y-font-mult: 1.5;
}
html[data-a11y-spacing=comfortable] {
  --a11y-line-height: 1.65;
  --a11y-letter-spacing: 0.04em;
  --a11y-word-spacing: 0.08em;
  --touch: 2.85rem;
}
html[data-a11y-spacing=comfortable] body {
  line-height: var(--a11y-line-height);
  letter-spacing: var(--a11y-letter-spacing);
  word-spacing: var(--a11y-word-spacing);
}
html[data-a11y-links=underline] a:not(.btn):not(.nav-row a):not(.theme-card) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
html[data-a11y-motion=reduce] *,
html[data-a11y-motion=reduce] *::before,
html[data-a11y-motion=reduce] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
html[data-a11y-contrast=high] {
  --a11y-focus-width: 3px;
  --muted: var(--slate-700);
  --border: var(--slate-500);
  --text: var(--slate-900);
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
}
html[data-a11y-contrast=high][data-theme=dark] {
  --muted: #cbd5e1;
  --border: #94a3b8;
  --text: #f8fafc;
  --bg: #020617;
  --surface: #0f172a;
  --surface-2: #1e293b;
}
html[data-a11y-contrast=high] :focus-visible {
  outline: var(--a11y-focus-width) solid var(--blue-600);
  outline-offset: 3px;
}
html[data-a11y-contrast=high] .btn-primary {
  border: 2px solid var(--slate-900);
}
html[data-a11y-contrast=high][data-theme=dark] .btn-primary {
  border-color: #fff;
}
html[data-a11y-contrast=high] .alert,
html[data-a11y-contrast=high] .panel,
html[data-a11y-contrast=high] .card {
  border-width: 2px;
}
html[data-a11y-font=large] .shell,
html[data-a11y-font=xlarge] .shell {
  --sidebar-w: min(280px, 42vw);
}
@media (max-width: 640px) {
  .page-header {
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .page-header .actions,
  .page-header > .actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .data-table-wrap,
  .table-scroll,
  .table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal.panel {
    max-width: min(100vw - 0.75rem, 100%) !important;
  }
}
@media (max-width: 900px) and (max-height: 640px) {
  .topbar {
    min-height: 2.5rem;
    padding-block: 0.35rem;
  }
  .content {
    padding: 0.55rem 0.65rem;
  }
}
@media (max-width: 360px) {
  .btn {
    min-height: var(--touch, 2.5rem);
  }
  .seg {
    flex-wrap: wrap;
  }
}

/* angular:styles/global:styles */
/*# sourceMappingURL=styles.css.map */
