﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #f5f7fb;
  --bg-2: #e9eef9;
  --card: #ffffff;
  --ink: #141823;
  --muted: #5f6b7a;
  --brand: #4f6ef7;
  --brand-2: #3e5fe9;
  --line: #dde3f0;
  --shadow: 0 18px 40px rgba(18, 24, 35, 0.12);
  --radius: 20px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 10% -10%, #eef2ff 0%, var(--bg) 55%, #ffffff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.45;
}

.bg-shapes {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(400px 320px at 85% 15%, rgba(111, 126, 247, 0.18), transparent 70%),
    radial-gradient(300px 250px at 20% 90%, rgba(94, 106, 245, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  align-items: center;
  grid-template-columns: 48px 1fr auto;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  box-shadow: 0 6px 16px rgba(27, 31, 42, 0.12);
  font-size: 18px;
  cursor: pointer;
}

.topbar__spacer { width: 42px; height: 42px; }

.topbar__sync {
  border: 1px solid var(--line);
  background: #f3f5ff;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
  justify-self: end;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: 'Manrope', sans-serif;
}

.brand--center { justify-content: center; }

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--line);
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(5, 12, 8, 0.18);
}

.brand__logo--lg {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  border-width: 3px;
}

.brand__name { font-weight: 700; font-size: 18px; }
.brand__sub { display: none; }
.brand__sub { font-size: 12px; color: var(--muted); }

.shell {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 24px auto 96px;
  padding: 0 22px 140px;
  display: grid;
  gap: var(--space-5);
}

.shell--app {
  max-width: 1200px;
  grid-template-columns: 1fr;
  align-items: start;
}

#appView {
  padding-bottom: 140px;
}

.shell--with-sidebar {
  grid-template-columns: 220px 1fr;
}

.sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.sidebar__header {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sidebar__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.sidebar__brand {
  display: grid;
  line-height: 1.1;
}

.sidebar__name {
  font-weight: 700;
  font-size: 14px;
}

.sidebar__sub {
  font-size: 12px;
  color: var(--muted);
}

.sidebar__search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8f9fe;
}

.sidebar__title {
  font-weight: 700;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.sidebar__list {
  display: grid;
  gap: 8px;
}

.side-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.sidebar__divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.side-sub-btn {
  background: #f7f8fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.side-sub-btn.active {
  background: rgba(111, 126, 247, 0.14);
  color: var(--brand-2);
  border-color: rgba(111, 126, 247, 0.4);
}


.side-btn.active {
  background: rgba(111, 126, 247, 0.12);
  border-color: rgba(111, 126, 247, 0.4);
  color: var(--brand-2);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  border: 2px solid var(--line);
}

.card--flat {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
  margin: 0 0 12px;
  letter-spacing: 0.3px;
}

.muted { color: var(--muted); margin-bottom: 20px; }

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field input {
  padding: 13px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  font-size: 16px;
  background: #f8f9fe;
}

.field select,
.field textarea {
  padding: 13px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  font-size: 16px;
  font-family: inherit;
  background: #f8f9fe;
}

.btn {
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.2px;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(94, 106, 245, 0.2); }

.btn--outline {
  background: transparent;
  color: var(--brand-2);
  border: 1px solid var(--brand-2);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}

.reset-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  gap: 10px;
}

.toolbar {
  display: grid;
  align-items: center;
  grid-template-columns: 48px 1fr 48px;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(111, 126, 247, 0.12);
  top: -40px;
  right: -40px;
}

.panel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(111, 126, 247, 0.14);
  color: var(--brand-2);
  font-weight: 600;
  font-size: 12px;
}

.content {
  margin-top: 12px;
  min-height: 280px;
}

.section__form {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.list {
  display: grid;
  gap: 10px;
}

.list__item {
  background: #fffdf6;
  border: 2px solid var(--line);
  padding: 12px 14px;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.list__item strong {
  font-weight: 600;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(27, 31, 42, 0.16);
}

.panel-card--action {
  border-color: #d6ddf5;
}

.panel-card--action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(35, 44, 72, 0.18);
}

.panel-card--wide {
  grid-column: span 2;
}

.panel-card__label {
  font-size: 13px;
  color: #2e3342;
  margin-bottom: 6px;
  font-weight: 700;
}

.panel-card__value {
  font-weight: 700;
  font-size: 16px;
}

.value--pos { color: #0f7d3a; }
.value--neg { color: #c93333; }


.panel-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.panel-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.panel-box__body {
  display: grid;
  gap: 10px;
}

.panel-box--collapsed .panel-box__body {
  display: none;
}

.pill--toggle {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #f3f5ff;
}

.config-card {
  width: 100%;
}

.panel-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-table {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.panel-table__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faff;
}

.panel-table--wide .panel-table__row {
  grid-template-columns: 2fr 0.6fr 1fr 1fr 1fr;
}

.panel-table__head {
  background: #eef1ff;
  font-weight: 700;
  color: var(--muted);
}

.panel-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-note {
  background: #f7f8fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.config-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.config-actions .btn {
  width: 100%;
  justify-content: center;
}

.integrations-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.integration-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
}

.integration-card__title {
  font-weight: 700;
  color: #2e3342;
}

.integration-card__desc {
  font-size: 13px;
  color: var(--muted);
}

.panel-alert {
  appearance: none;
  border: 1px solid #f0d48a;
  outline: none;
  font: inherit;
  text-align: left;
  width: 100%;
  background: #fff4d6;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}


.panel-alert__count {
  background: #f6c21b;
  color: #1b1f2a;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.panel-alert--nota {
  background: #fff1e5;
  border-color: #f3c1a0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-alert__count--danger {
  background: #e05353;
  color: #fff;
}

.field-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chip {
  border: 1px solid var(--line);
  background: #f7f8fd;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.field-inline input,
.field-inline select {
  flex: 1;
}

.termometro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.termometro.level--none {
  background: #eef0f6;
  color: #6b7280;
}

.termometro.level--hot {
  background: #d1f5da;
  color: #0f7d3a;
}

.termometro.level--warm {
  background: #fff4d6;
  color: #8a5a00;
}

.termometro.level--cold {
  background: #ffe0e0;
  color: #c93333;
}

.config-wrap {
  display: grid;
  gap: 16px;
  justify-items: stretch;
}


.config-wrap--split {
  align-items: start;
  grid-template-columns: 220px 1fr;
}

.config-nav.card {
  position: sticky;
  top: 90px;
}

@media (max-width: 720px) {
  .config-wrap--split {
    grid-template-columns: 1fr;
  }
  .config-nav.card {
    position: static;
  }
}

.config-nav.card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.config-nav__title {
  font-weight: 700;
  color: var(--ink);
}

.config-nav__list {
  display: grid;
  gap: 8px;
}

.config-nav__btn {
  appearance: none;
  border: 1px solid #dfe6ff;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  color: #4b5563;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.config-nav__btn.active {
  background: linear-gradient(135deg, #5e6af5 0%, #7b84ff 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(94, 106, 245, 0.35);
}

.config-card {
  width: 100%;
}


.config-header {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.config-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #eef1fb;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #5b65b9;
  overflow: hidden;
}

.config-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.config-form {
  display: grid;
  gap: 10px;
}

.config-empty {
  padding: 12px 4px;
}

.config-app h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.config-app__hint {
  margin-top: 8px;
  font-size: 12px;
}

.config-app__steps {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.config-app__step {
  background: #f7f8fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.config-app__step strong {
  display: block;
  margin-bottom: 6px;
}

.config-app__step ol {
  margin: 0 0 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

.config-app__checklist {
  margin-top: 12px;
  background: #f7f8fd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.config-app__checklist-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.config-app__checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.config-app__checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-app__checklist li::before {
  content: '•';
  color: var(--muted);
  font-weight: 700;
}

.config-app__checklist li.is-ok {
  color: #0f7d3a;
}

.config-app__checklist li.is-ok::before {
  content: '✓';
  color: #0f7d3a;
}

.config-app__checklist li.is-fail {
  color: #c93333;
}

.config-app__checklist li.is-fail::before {
  content: '✕';
  color: #c93333;
}

.btn--sm {
  padding: 6px 12px;
  font-size: 12px;
}

.boletos-alert-list {
  display: grid;
  gap: 12px;
}

.boletos-alert-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f8fd;
  border: 1px solid #e3e6f4;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boletos-alert-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(27, 31, 42, 0.12);
}

.boleto-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.boleto-modal__label {
  font-weight: 700;
  margin-bottom: 8px;
}

.boleto-modal__img {
  width: 100%;
  border-radius: 12px;
  display: block;
  max-height: 140px;
  object-fit: cover;
  cursor: zoom-in;
  border: 1px solid #e3e6f4;
}

.boleto-modal .field-inline {
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.boleto-modal .btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 10px;
}

@media (max-width: 720px) {
  .boleto-modal__grid {
    grid-template-columns: 1fr;
  }
}

.boletos-alert-item__title {
  font-weight: 700;
  color: #1f2430;
  margin-bottom: 6px;
}

.boletos-alert-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #5f6b7a;
  font-size: 13px;
}

.acerto {
  display: grid;
  gap: 14px;
}

.acerto__row,
.acerto__row span {
  font-size: 16px;
}

.acerto__block-head {
  font-size: 17px;
}

.acerto__table {
  font-size: 16px;
}
.acerto__header {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  align-items: center;
}

.acerto__config-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.acerto__config-title {
  font-weight: 700;
}

.acerto__config-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.acerto__config-row input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.acerto__regras {
  display: grid;
  gap: 8px;
}

.regras-toggle {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.regras-body.hidden { display: none; }
.acerto__blocks {
  display: grid;
  gap: 10px;
}

.acerto__block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.acerto__block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 6px;
}

.acerto__note-discount {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.acerto__note-discount input {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.acerto__note-quick {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.acerto__table {
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.acerto__row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 0.6fr 0.8fr;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faff;
}

.acerto__head {
  background: #eef1ff;
  font-weight: 700;
  color: var(--muted);
}

.acerto__totais {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.acerto__confirm {
  width: 100%;
}

.acerto-empty {
  background: #f7f8fd;
  border: 1px dashed rgba(79, 110, 247, 0.35);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
}

.acerto__row--click {
  cursor: pointer;
  border: 1px solid rgba(94, 106, 245, 0.4);
  background: #f5f7ff;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.acerto__row--click:hover {
  transform: translateY(-1px);
  border-color: #5e6af5;
  box-shadow: 0 10px 18px rgba(94, 106, 245, 0.2);
  background: #eef1ff;
}

.acerto-detail {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.acerto-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.acerto__historico {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
}

.caixa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.caixa-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.caixa-form {
  display: grid;
  gap: 10px;
}

.caixa-header {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.caixa-table {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  margin-bottom: 12px;
}

.caixa-row {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.4fr 0.8fr auto;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faff;
  align-items: center;
  font-size: 12px;
}

.caixa-head {
  background: #eef1ff;
  font-weight: 700;
  color: var(--muted);
}

.caixa-row--click {
  cursor: pointer;
}

.caixa-row--click:hover {
  background: #eef1ff;
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--brand-2);
  cursor: pointer;
  font-weight: 600;
}

.caixa-resumo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.caixa-mercadorias {
  margin-top: 10px;
}

.caixa-receber {
  margin-top: 10px;
}

.caixa-notas-dia {
  margin-top: 10px;
}

.caixa-notas-todas {
  margin-top: 10px;
}

.caixa-notas-footer {
  margin-top: 10px;
  display: grid;
  justify-content: start;
}

.clientes-notas-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.clientes-nota-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.clientes-nota-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.notas-accordion {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.nota-accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.nota-accordion__summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.nota-accordion__summary::-webkit-details-marker { display: none; }

.nota-accordion__body {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  display: grid;
  gap: 10px;
}

.nota-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #f9faff;
  display: grid;
  gap: 6px;
}

.nota-item__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}

.nota-item__actions {
  display: flex;
  gap: 10px;
}

.notas-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
}

.notas-sticky-actions {
  position: sticky;
  top: 8px;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 12px;
}

.btn--outline.btn--active {
  background: #e8edff;
  border-color: var(--brand);
  color: var(--brand);
}

.nota-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  background: #eef1ff;
  color: #3b4dd6;
}

.nota-status.pendente {
  background: #fff3d6;
  color: #b36b00;
}

.nota-status.recebido {
  background: #e6f6ec;
  color: #0f7d3a;
}

.nota-item__row--meta {
  color: var(--muted);
  font-size: 12px;
}

.nota-overdue {
  color: #c93333;
  font-weight: 700;
}

.nota-alert {
  margin: 10px 0 12px;
}

.nota-alert__box {
  border: 1px solid #f0d48a;
  background: #fff7e1;
  padding: 10px 12px;
  border-radius: 12px;
  display: grid;
  gap: 4px;
}

.note-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.note-summary__card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.note-summary__card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(27, 31, 42, 0.12);
}

.note-summary__label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.note-summary__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.note-summary__card--danger {
  border-color: #f3c7c2;
  background: #fff4f2;
}

.clientes-notas-search .field {
  margin-bottom: 0;
}

.caixa-notas-dia--click {
  cursor: pointer;
}

.caixa-notas-dia--click:hover {
  background: #f7f8fd;
  border-radius: 12px;
  padding: 4px;
}

.caixa-notas-dia__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.caixa-notas-dia__chevron {
  font-size: 22px;
  color: var(--muted);
  padding-left: 8px;
}

.caixa-jump {
  margin-bottom: 8px;
}

.qr-box {
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  display: grid;
  gap: 8px;
}

.qr-title {
  font-weight: 700;
}

.qr-preview {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fd;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.receipt-list {
  display: grid;
  gap: 8px;
}

.receipt-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #f9faff;
  font-size: 12px;
}

.receipt-item__value {
  font-weight: 700;
}

.caixa-receipts h4 {
  margin: 10px 0 6px;
}

.vendas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.vendas-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.vendas-form {
  display: grid;
  gap: 10px;
}

.vendas-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.vendas-table {
  display: grid;
  gap: 8px;
}

.vendas-row {
  display: grid;
  grid-template-columns: 0.9fr 0.7fr 1.6fr 0.6fr 0.8fr 0.8fr;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faff;
  align-items: center;
  font-size: 12px;
}

.vendas-head {
  background: #eef1ff;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 720px) {
  .vendas-filters { grid-template-columns: 1fr; }
  .vendas-row { grid-template-columns: 1fr 1fr; }
}

.admin-wrap {
  display: grid;
  gap: 12px;
}

.admin-header h3 {
  margin-bottom: 4px;
}

.admin-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-nav__btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  font-weight: 600;
  display: grid;
  gap: 4px;
  place-items: center;
  cursor: pointer;
}

.admin-nav__btn.active {
  background: rgba(111, 126, 247, 0.14);
  color: var(--brand-2);
  border-color: rgba(111, 126, 247, 0.4);
}

.admin-nav__btn span { font-size: 18px; }

.admin-panel {
  display: grid;
  gap: 8px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  font-weight: 600;
}

.estoque-wrap {
  display: grid;
  gap: 16px;
}

.estoque-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.estoque-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.estoque-card--full {
  display: grid;
  gap: 18px;
}

.estoque-section {
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(94, 106, 245, 0.18);
}

.estoque-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.estoque-form {
  display: grid;
  gap: 10px;
}

.estoque-table-header {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
  align-items: end;
}

.estoque-search .field {
  margin-bottom: 0;
}

.estoque-table {
  display: grid;
  gap: 8px;
}

.estoque-row {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 0.6fr 0.6fr 0.8fr 0.6fr auto;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faff;
  align-items: center;
  font-size: 12px;
}

.estoque-head {
  background: #eef1ff;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 720px) {
  .estoque-table-header { grid-template-columns: 1fr; }
  .estoque-row { grid-template-columns: 1fr 1fr; }
}

.colab-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.colab-title {
  grid-column: 1 / -1;
}

.colab-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.colab-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.colab-list {
  display: grid;
  gap: 6px;
}

.colab-header {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.colab-table {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  margin-bottom: 10px;
}

.colab-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faff;
  font-size: 12px;
  align-items: center;
}

.colab-head {
  background: #eef1ff;
  font-weight: 700;
  color: var(--muted);
}

.colab-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 720px) {
  .colab-header { grid-template-columns: 1fr; }
  .colab-row { grid-template-columns: 1fr 1fr; }
  .colab-totals { grid-template-columns: 1fr; }
}

.clientes-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.clientes-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.clientes-form {
  display: grid;
  gap: 10px;
}

.clientes-header {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.clientes-table {
  display: grid;
  gap: 8px;
}

.clientes-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faff;
  align-items: center;
  font-size: 12px;
}

.clientes-head {
  background: #eef1ff;
  font-weight: 700;
  color: var(--muted);
}

.clientes-actions {
  display: grid;
  gap: 6px;
}

.clientes-actions .btn {
  padding: 6px 10px;
}

@media (max-width: 720px) {
  .clientes-header { grid-template-columns: 1fr; }
  .clientes-row { grid-template-columns: 1fr 1fr; }
}

.boletos-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.boletos-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.boletos-form {
  display: grid;
  gap: 10px;
}

.boletos-header {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.boletos-table {
  display: grid;
  gap: 8px;
}

.boletos-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr 0.7fr 0.8fr auto;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faff;
  align-items: center;
  font-size: 12px;
}

.boletos-head {
  background: #eef1ff;
  font-weight: 700;
  color: var(--muted);
}

.boleto-scan {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.boleto-scan__title {
  font-weight: 700;
}

.boleto-scan__note {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .boletos-header { grid-template-columns: 1fr; }
  .boletos-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .caixa-header { grid-template-columns: 1fr; }
  .caixa-row { grid-template-columns: 1fr 1fr; }
  .caixa-resumo { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .acerto__header { grid-template-columns: 1fr; }
  .acerto__row { grid-template-columns: 1fr 1fr; }
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
}

.modal.hidden { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.modal__card {
  position: relative;
  width: min(90vw, 520px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 1;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal__body {
  overflow: auto;
  padding-right: 4px;
}

.modal__close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.chart {
  width: 100%;
  height: 220px;
  display: block;
}

.chart-title {
  font-weight: 700;
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  .panel-card--wide { grid-column: span 2; }
  .panel-table__row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .topbar {
    padding: 12px 14px;
  }

  .shell {
    margin: 16px auto 84px;
    padding: 0 12px 120px;
    gap: 18px;
  }

  .card {
    padding: 16px;
    border-radius: 16px;
  }

  .field {
    margin-bottom: 10px;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 12px 12px;
  }

  .os-grid {
    grid-template-columns: 1fr;
  }

  .os-card {
    padding: 14px;
  }
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.os-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.os-form {
  display: grid;
  gap: 10px;
}

.os-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.os-table {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.os-table__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.5fr 1.4fr 0.8fr 0.9fr;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faff;
}

.os-table__head {
  background: #f0f3ff;
  font-weight: 700;
  color: var(--muted);
}

.os-history .os-table__row[data-os-id] {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.os-history .os-table__row[data-os-id]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(27, 31, 42, 0.08);
}

.modal-detail {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.modal-detail__actions {
  margin-top: 8px;
}

.os-row--nota {
  border-color: #f3c7c2;
  background: #fff4f2;
}

.os-total-row {
  background: #eef2ff;
  font-weight: 700;
}

@media (max-width: 720px) {
  .os-filters { grid-template-columns: 1fr; }
  .os-table__row { grid-template-columns: 1fr 1fr; }
}

.hidden { display: none; }

/* duplicate .bottombar block removed */

.nav-btn {
  padding: 9px 8px;
  border: 1px solid #dde3f0;
  background: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  color: #4f5b6b;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0.2px;
  min-width: 64px;
}

.nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #4f6ef7 0%, #7a8bff 100%);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(79, 110, 247, 0.32);
}

.nav-btn:not(.active):hover {
  background: #eef2ff;
  color: #2f3a4a;
}

.nav-btn.hidden { display: none; }

.bottombar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: min(520px, calc(100vw - 24px));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, #f9faff 0%, #eef2ff 100%);
  border: 1px solid #d6ddf5;
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(35, 44, 72, 0.18);
  z-index: 3;
  flex-wrap: wrap;
}

.bottombar.is-compact {
  justify-content: center;
}

.bottombar.hidden { display: none; }

.bottombar.is-admin {
  width: min(480px, calc(100vw - 24px));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: #1b1f2a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.toast.show { opacity: 1; }

@media (max-width: 720px) {
  .toolbar__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .shell { margin-bottom: 140px; }
  .shell--app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    z-index: 4;
  }
}

@media print {
  body { background: #fff; }
  .topbar, .bottombar, .bg-shapes, #loginView { display: none !important; }
  .card { box-shadow: none; border: none; }
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.login-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.4px;
}

