:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111f;
  color: #e7eef8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(27, 119, 166, .22), transparent 36rem),
    linear-gradient(145deg, #07111f 0%, #0a1727 52%, #0d1c2b 100%);
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .04em;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(123, 214, 255, .45);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(52, 189, 235, .24), rgba(29, 99, 151, .12));
  color: #8bddff;
}

.environment {
  padding: 8px 12px;
  border: 1px solid rgba(128, 159, 191, .24);
  border-radius: 999px;
  color: #a9bad0;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero {
  max-width: 820px;
  padding-bottom: 44px;
}

.portal-hero { padding-bottom: 34px; }

.eyebrow {
  margin: 0 0 18px;
  color: #73d2ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: #aabbd0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid rgba(250, 190, 70, .25);
  border-radius: 16px;
  background: rgba(134, 88, 16, .12);
  color: #e8cf9b;
  line-height: 1.5;
}

.notice strong { color: #ffd783; }

.auth-panel,
.session-bar,
.tenant-form,
.context-card {
  border: 1px solid rgba(123, 214, 255, .18);
  border-radius: 18px;
  background: rgba(10, 27, 45, .82);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .16);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
  padding: 24px;
  color: #a9bad0;
}

.auth-panel h2,
.section-heading h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.auth-panel p { margin: 0; line-height: 1.55; }

.status-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #73d2ff;
  box-shadow: 0 0 0 7px rgba(115, 210, 255, .1);
}

button,
input { font: inherit; }

button { cursor: pointer; }

button:disabled { cursor: wait; opacity: .65; }

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.primary-button {
  border: 1px solid #7bd6ff;
  background: #76d4ff;
  color: #06121e;
}

.secondary-button {
  border: 1px solid rgba(141, 181, 215, .3);
  background: transparent;
  color: #d5e3f2;
}

.primary-button:hover,
.secondary-button:hover { transform: translateY(-1px); }

.primary-button:focus-visible,
.secondary-button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(115, 210, 255, .32);
  outline-offset: 3px;
}

.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.session-bar strong { display: block; margin-top: 4px; }

.session-label {
  color: #75d9a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.workspace { padding: 22px 0 36px; }

.tenant-form { padding: 22px; }

.tenant-form label {
  display: block;
  margin-bottom: 9px;
  color: #d8e5f3;
  font-size: 13px;
  font-weight: 800;
}

.tenant-controls { display: flex; gap: 10px; }

.tenant-controls input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(132, 174, 210, .26);
  border-radius: 12px;
  background: #071421;
  color: #eef7ff;
}

.tenant-form small {
  display: block;
  margin-top: 10px;
  color: #768da5;
}

.operation-status {
  min-height: 24px;
  margin: 16px 2px;
  color: #9eb1c5;
  font-size: 14px;
}

.operation-status[data-kind="success"] { color: #75d9a6; }
.operation-status[data-kind="error"] { color: #ff9b9b; }
.operation-status[data-kind="loading"] { color: #73d2ff; }

.context-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  padding: 1px;
}

.context-card > div {
  min-width: 0;
  padding: 17px;
  background: rgba(7, 20, 33, .88);
}

.context-card span {
  display: block;
  margin-bottom: 7px;
  color: #71879e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.context-card strong {
  display: block;
  overflow: hidden;
  color: #b9cadb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-section { padding-top: 34px; }
.section-heading { margin-bottom: 16px; }
.eyebrow.compact { margin-bottom: 8px; }

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.company-card {
  padding: 22px;
  border: 1px solid rgba(133, 169, 204, .16);
  border-radius: 18px;
  background: rgba(13, 31, 50, .72);
}

.company-card h3 { margin: 0 0 7px; font-size: 20px; }
.company-card ul { margin: 18px 0 0; padding-left: 18px; color: #b6c7d8; }
.company-card li + li { margin-top: 7px; }
.company-meta { margin: 0; color: #7289a1; font-size: 12px; text-transform: uppercase; }
.capability-grid { margin-top: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  min-height: 164px;
  padding: 22px;
  border: 1px solid rgba(133, 169, 204, .16);
  border-radius: 18px;
  background: rgba(13, 31, 50, .72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
}

.card span {
  display: inline-block;
  margin-bottom: 32px;
  color: #6f8299;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: #8fa3ba;
  font-size: 14px;
  line-height: 1.5;
}

footer {
  margin-top: 44px;
  color: #667a91;
  font-size: 12px;
}

/* Authenticated ERP workspace */
.public-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.erp-shell {
  min-height: 100vh;
  background: #f3f6f9;
  color: #172333;
}

.erp-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 254px;
  flex-direction: column;
  padding: 24px 18px;
  background: #071522;
  color: #dfeaf5;
  box-shadow: 8px 0 30px rgba(13, 30, 46, .08);
}

.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.sidebar-brand > div { display: flex; flex-direction: column; }
.sidebar-brand strong { color: #fff; font-size: 16px; letter-spacing: .02em; }
.sidebar-brand div span { margin-top: 2px; color: #6e889f; font-size: 10px; font-weight: 800; letter-spacing: .18em; }

.module-nav { flex: 1; overflow-y: auto; padding-right: 2px; }
.nav-section-label { margin: 22px 12px 8px; color: #526b81; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-item {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #8fa6ba;
  text-align: left;
}
.nav-item:hover { background: rgba(98, 181, 221, .08); color: #dcecf8; }
.nav-item.is-active { border-color: rgba(97, 196, 238, .18); background: rgba(74, 174, 219, .12); color: #ecf8ff; }
.nav-item small { color: #4cbde8; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.nav-item .blocked-badge { color: #e9a56a; }
.nav-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: rgba(119, 172, 207, .1); color: #71c8ee; font-size: 8px; font-weight: 900; }
.nav-item.is-active .nav-icon { background: #4cbee9; color: #061522; }

.sidebar-foot { display: flex; align-items: center; gap: 11px; padding: 16px 10px 2px; border-top: 1px solid rgba(120, 157, 185, .12); }
.sidebar-foot div { display: flex; flex-direction: column; }
.sidebar-foot strong { font-size: 11px; }
.sidebar-foot div span { margin-top: 3px; color: #607a90; font-size: 10px; }
.secure-pulse { width: 9px; height: 9px; border-radius: 50%; background: #52d39a; box-shadow: 0 0 0 5px rgba(82, 211, 154, .1); }

.erp-main { min-height: 100vh; margin-left: 254px; }
.workspace-topbar { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 30px; border-bottom: 1px solid #e1e8ee; background: rgba(255, 255, 255, .92); }
.context-pickers { display: flex; align-items: center; gap: 10px; }
.context-pickers label { color: #778697; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.context-pickers select { display: block; max-width: 220px; margin-top: 3px; border: 0; background: transparent; color: #172333; font-size: 13px; font-weight: 750; outline: none; }
.picker-separator { color: #c7d0d8; }
.user-area { display: flex; align-items: center; gap: 10px; }
.user-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #dff2fa; color: #1678a2; font-size: 10px; font-weight: 900; }
.user-copy { display: flex; min-width: 120px; flex-direction: column; }
.user-copy strong { max-width: 170px; overflow: hidden; color: #26384a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy span { margin-top: 2px; color: #8493a2; font-size: 9px; }
.logout-button { padding: 7px 10px; border: 1px solid #dce5eb; border-radius: 9px; background: #fff; color: #657687; font-size: 11px; font-weight: 750; }
.mobile-menu { display: none; border: 0; background: transparent; color: #253b4e; font-size: 24px; }

.workspace-content { width: min(1280px, calc(100% - 56px)); margin: 0 auto; padding: 36px 0 60px; }
.workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.workspace-heading h1 { margin: 0; color: #162536; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; line-height: 1.08; }
.workspace-heading p:not(.eyebrow) { margin: 10px 0 0; color: #718091; font-size: 14px; }
.workspace-heading .eyebrow { color: #1d8fbd; }
.dev-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #d8e2e9; border-radius: 999px; background: #fff; color: #708090; font-size: 9px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.dev-badge span { width: 7px; height: 7px; border-radius: 50%; background: #e5a34b; }
.dashboard-status { margin: 20px 0 12px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { min-height: 132px; padding: 20px; border: 1px solid #e0e8ee; border-radius: 15px; background: #fff; box-shadow: 0 10px 28px rgba(24, 51, 73, .04); }
.metric-card > span { display: block; color: #7d8b99; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.metric-card > strong { display: block; margin: 13px 0 4px; color: #17283a; font-size: 31px; letter-spacing: -.04em; }
.metric-card > .metric-word { margin-top: 20px; font-size: 20px; letter-spacing: -.02em; }
.metric-card .success { color: #16885d; }
.metric-card .warning { color: #b06d22; }
.metric-card small { color: #9aa7b3; font-size: 10px; }

.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.dashboard-card { padding: 23px; border: 1px solid #e0e8ee; border-radius: 15px; background: #fff; box-shadow: 0 10px 28px rgba(24, 51, 73, .04); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-heading span { color: #8c9aa7; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.card-heading h2 { margin: 6px 0 0; color: #203247; font-size: 18px; }
.card-heading > strong { color: #2784ab; font-size: 12px; }
.status-chip { padding: 5px 8px; border-radius: 999px; background: #e6f7ef; color: #20845d !important; }
.organization-body { display: flex; align-items: center; gap: 14px; margin: 25px 0; }
.company-monogram { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #e4f5fb, #d7edf7); color: #2582a9; font-weight: 900; }
.organization-body > div:last-child { display: flex; flex-direction: column; }
.organization-body strong { color: #243649; font-size: 14px; }
.organization-body span { margin-top: 5px; color: #7b8b9b; font-size: 11px; }
.context-proof { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border-radius: 11px; background: #f4f9fb; }
.proof-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #44b882; }
.context-proof p { margin: 0; color: #738493; font-size: 11px; line-height: 1.45; }
.context-proof strong { color: #33495d; }

.progress-track { height: 7px; margin: 24px 0 8px; overflow: hidden; border-radius: 999px; background: #edf1f4; }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3eb5df, #55c89b); }
.progress-labels { display: flex; justify-content: space-between; color: #8b99a6; font-size: 10px; }
.progress-labels strong { color: #398a6b; }
.milestone-list { margin: 21px 0 0; padding: 0; list-style: none; }
.milestone-list li { display: flex; align-items: center; gap: 9px; margin-top: 11px; color: #8a98a5; font-size: 11px; }
.milestone-list li span { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #f0f3f5; font-size: 10px; }
.milestone-list .done { color: #456257; }
.milestone-list .done span { background: #e1f5eb; color: #26835f; }
.milestone-list .current { color: #2c728f; font-weight: 800; }
.milestone-list .current span { background: #e3f3f9; color: #2788af; }

.roadmap-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf1f4; }
.roadmap-row:last-child { border-bottom: 0; padding-bottom: 0; }
.roadmap-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #edf7fb; color: #2588af; font-size: 10px; font-weight: 900; }
.roadmap-row strong { color: #314458; font-size: 12px; }
.roadmap-row p { margin: 4px 0 0; color: #8a98a5; font-size: 10px; }
.roadmap-row small { color: #7b91a2; font-size: 8px; font-weight: 900; }
.roadmap-row:first-of-type small { color: #2689b0; }

.guardrail-item { display: flex; align-items: flex-start; gap: 11px; margin-top: 19px; }
.guardrail-state { display: grid; flex: 0 0 auto; width: 23px; height: 23px; place-items: center; border-radius: 8px; font-size: 11px; font-weight: 900; }
.guardrail-state.ok { background: #e3f5ec; color: #28835f; }
.guardrail-state.stop { background: #fff0e4; color: #b46b26; }
.guardrail-item strong { color: #33475a; font-size: 12px; }
.guardrail-item p { margin: 3px 0 0; color: #8b99a7; font-size: 10px; }

.technical-details { margin-top: 14px; border: 1px solid #e0e8ee; border-radius: 13px; background: #fff; color: #536677; }
.technical-details summary { cursor: pointer; padding: 15px 18px; font-size: 11px; font-weight: 800; }
.technical-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid #e8edf1; background: #e8edf1; }
.technical-grid div { min-width: 0; padding: 14px 18px; background: #fff; }
.technical-grid span { display: block; margin-bottom: 6px; color: #8b98a5; font-size: 9px; text-transform: uppercase; }
.technical-grid code { display: block; overflow: hidden; color: #52687a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.catalog-heading { margin-bottom: 8px; }
.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.catalog-panel { min-width: 0; }
.catalog-form { display: grid; grid-template-columns: 1fr 145px; gap: 10px; margin: 22px 0 18px; padding: 15px; border-radius: 12px; background: #f5f8fa; }
.catalog-form label { color: #7a8997; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.catalog-form input,
.catalog-form select { width: 100%; height: 38px; margin-top: 6px; padding: 0 10px; border: 1px solid #dbe4ea; border-radius: 9px; background: #fff; color: #26394b; font-size: 12px; }
.catalog-form input:focus-visible,
.catalog-form select:focus-visible { border-color: #4baed5; outline: 3px solid rgba(64, 175, 219, .13); }
.catalog-submit { grid-column: 1 / -1; min-height: 38px; border: 1px solid #298bb2; border-radius: 9px; background: #278cb4; color: #fff; font-size: 11px; font-weight: 850; }
.item-form { grid-template-columns: 120px 1fr 120px 80px; }
.catalog-list { border-top: 1px solid #edf1f4; }
.catalog-empty { margin: 0; padding: 14px 2px; color: #8795a2; font-size: 11px; }
.catalog-list[data-state="error"] .catalog-empty { color: #b3423f; }
.catalog-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 2px; border-bottom: 1px solid #edf1f4; }
.catalog-row:last-child { border-bottom: 0; }
.catalog-row > div { display: flex; min-width: 0; flex-direction: column; }
.catalog-row strong { overflow: hidden; color: #304457; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-row span { margin-top: 4px; color: #8795a2; font-size: 10px; }
.catalog-row small { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; background: #e7f6ef; color: #25815e; font-size: 8px; font-weight: 900; }
.catalog-scope-note { display: flex; gap: 12px; margin-top: 14px; padding: 16px 18px; border: 1px solid #e0e8ee; border-radius: 13px; background: #fffaf2; color: #846d4b; font-size: 11px; line-height: 1.5; }
.catalog-scope-note strong { flex: 0 0 auto; color: #73562d; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .erp-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .erp-sidebar.is-open { transform: translateX(0); }
  .erp-main { margin-left: 0; }
  .mobile-menu { display: block; }
  .workspace-topbar { padding: 11px 16px; }
  .context-pickers { flex: 1; }
  .context-pickers label { max-width: 42%; }
  .context-pickers select { width: 100%; }
  .user-copy { display: none; }
  .workspace-content { width: min(100% - 30px, 700px); padding-top: 28px; }
  .workspace-heading { flex-direction: column; gap: 16px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .technical-grid { grid-template-columns: 1fr; }
  .item-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .metric-grid { grid-template-columns: 1fr; }
  .context-pickers { gap: 4px; }
  .context-pickers label { max-width: 46%; }
  .user-avatar { display: none; }
  .dashboard-card { padding: 19px; }
  .catalog-form,
  .item-form { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .topbar { padding-bottom: 40px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .card span { margin-bottom: 18px; }
  .auth-panel,
  .tenant-controls { align-items: stretch; flex-direction: column; }
  .context-card,
  .company-grid { grid-template-columns: 1fr; }
}

/* Painel: botão de ação em linha de lista */
.row-action { flex: 0 0 auto; min-height: 30px; padding: 0 12px; border: 1px solid #298bb2; border-radius: 8px; background: #278cb4; color: #fff; font-size: 10px; font-weight: 850; }
.row-action:disabled { opacity: .55; cursor: wait; }
.catalog-form select { width: 100%; height: 38px; margin-top: 6px; padding: 0 10px; border: 1px solid #dbe4ea; border-radius: 9px; background: #fff; color: #26394b; font-size: 12px; }

/* Landing pública */
.landing-features { margin-top: 40px; }
.landing-features .section-heading { margin: 34px 0 16px; }
.landing-features h2 { margin: 0; font-size: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.feature-card { padding: 20px; border: 1px solid rgba(133, 169, 204, .16); border-radius: 16px; background: rgba(13, 31, 50, .72); }
.feature-card span { display: inline-block; margin-bottom: 14px; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.feature-card.ok span { color: #75d9a6; }
.feature-card.next span { color: #f0c674; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; }
.feature-card p { margin: 0; color: #8fa3ba; font-size: 13px; line-height: 1.5; }
.landing-disclaimer { margin: 30px 0 10px; color: #768da5; font-size: 12px; line-height: 1.5; }

/* Planos do PDV de gestão (preço-base: benchmark de mercado). */
.landing-plans { margin-top: 40px; }
.landing-plans .section-heading { margin: 34px 0 16px; }
.landing-plans h2 { margin: 0; font-size: 24px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.plan-card { background: var(--card, #fff); border: 1px solid rgba(15, 23, 42, .12); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.plan-card span { font-size: 11px; letter-spacing: .14em; color: #64748b; }
.plan-card strong { font-size: 28px; }
.plan-card strong small { font-size: 13px; color: #64748b; font-weight: 500; }
.plan-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: #334155; }
.plan-card.featured { border-color: #0f766e; box-shadow: 0 6px 24px rgba(15, 118, 110, .12); }
.plan-note { margin-top: 14px; font-size: 13px; color: #64748b; }

/* Painel admin da plataforma (estilo SaaS): shell escuro + conteúdo claro. */
.adm-body { margin: 0; background: #f1f5f9; min-height: 100vh; }
.adm-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.adm-sidebar { background: linear-gradient(180deg, #0f172a 0%, #16233f 100%); color: #e2e8f0; display: flex; flex-direction: column; padding: 18px 14px; gap: 18px; }
.adm-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .02em; }
.adm-brand .mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: #0f766e; color: #fff; font-weight: 700; }
.adm-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.adm-nav-item { text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: #cbd5e1; font-size: 14px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.adm-nav-item:hover { background: rgba(148, 163, 184, .14); color: #fff; }
.adm-nav-item.active { background: #0f766e; color: #fff; font-weight: 600; }
.adm-nav-item.exit { color: #94a3b8; }
.adm-main { display: flex; flex-direction: column; min-width: 0; }
.adm-topbar { display: flex; align-items: baseline; gap: 18px; padding: 18px 26px 10px; }
.adm-title { margin: 0; font-size: 22px; color: #0f172a; }
.adm-status { margin: 0; font-size: 13px; color: #0f766e; }
.adm-status.error { color: #b91c1c; }
.adm-content { padding: 10px 26px 30px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.adm-card { background: #fff; border: 1px solid rgba(15, 23, 42, .08); border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adm-card h2 { margin: 0; font-size: 16px; color: #0f172a; }
.adm-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.adm-kpi { background: #fff; border: 1px solid rgba(15, 23, 42, .08); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); display: flex; flex-direction: column; gap: 6px; }
.adm-kpi span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.adm-kpi strong { font-size: 26px; color: #0f172a; }
.adm-kpi small { font-size: 12px; color: #64748b; }
.adm-table { overflow-x: auto; border: 1px solid rgba(15, 23, 42, .08); border-radius: 10px; }
.adm-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { text-align: left; padding: 9px 12px; background: #f8fafc; color: #475569; font-weight: 600; border-bottom: 1px solid rgba(15, 23, 42, .08); white-space: nowrap; }
.adm-table td { padding: 9px 12px; border-bottom: 1px solid rgba(15, 23, 42, .06); white-space: nowrap; color: #1e293b; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table td.empty { color: #64748b; }
.adm-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.adm-badge.ok { background: #dcfce7; color: #166534; }
.adm-badge.info { background: #dbeafe; color: #1d4ed8; }
.adm-badge.warn { background: #fef3c7; color: #92400e; }
.adm-badge.danger { background: #fee2e2; color: #b91c1c; }
.adm-badge.muted { background: #e2e8f0; color: #475569; }
.adm-filter { align-self: flex-start; min-width: 260px; padding: 8px 12px; border: 1px solid rgba(15, 23, 42, .18); border-radius: 8px; font-size: 13px; background: #fff; }
.adm-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.adm-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #475569; }
.adm-field input, .adm-field select, .adm-form > input { padding: 8px 10px; border: 1px solid rgba(15, 23, 42, .18); border-radius: 8px; font-size: 14px; min-width: 180px; background: #fff; }
.adm-button { padding: 8px 13px; border: 1px solid rgba(15, 23, 42, .16); border-radius: 8px; background: #fff; color: #0f172a; font-size: 13px; cursor: pointer; transition: background .15s ease; }
.adm-button:hover { background: #f1f5f9; }
.adm-button.primary { background: #0f766e; border-color: #0f766e; color: #fff; }
.adm-button.primary:hover { background: #115e59; }
.adm-button.danger { border-color: #fca5a5; color: #b91c1c; }
.adm-button.danger:hover { background: #fef2f2; }
.adm-button:disabled { background: #e2e8f0; border-color: #e2e8f0; color: #64748b; cursor: default; }
.adm-card.creds { border-color: #0f766e; background: #f0fdfa; }
.adm-creds { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.adm-creds dt { color: #475569; }
.adm-creds dd { margin: 0; font-weight: 600; color: #0f172a; word-break: break-all; }
.adm-gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.adm-gate .adm-card.gate { max-width: 420px; width: 100%; }
.adm-gate h1 { margin: 0; font-size: 20px; }
.adm-gate p { margin: 0; font-size: 14px; color: #475569; }
@media (max-width: 760px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-sidebar { flex-direction: row; align-items: center; overflow-x: auto; }
  .adm-nav { flex-direction: row; }
}

/* Equipe do tenant (dashboard). */
.team-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.team-list li span { color: #8fa3ba; }
.team-empty { color: #8fa3ba; font-size: 14px; }
.team-invite-link { margin-top: 12px; padding: 12px; border: 1px solid rgba(115, 210, 255, .3); border-radius: 10px; background: rgba(115, 210, 255, .08); font-size: 13px; }
.team-invite-link code { display: block; margin-top: 6px; word-break: break-all; color: #8bddff; }

/* Guia de primeiros passos do contratante (dashboard). */
.first-steps-list { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.first-steps-list li { line-height: 1.45; }
.first-steps-list li span { display: block; font-size: 13px; color: #8fa3ba; }
.first-step-link { padding: 0; border: 0; background: none; color: #73d2ff; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.first-step-link:hover { text-decoration: underline; }

/* ============================================================
   DESIGN SYSTEM PUBLICO — CLARO (farois: Bling/eGestor/Zucchetti/SMB)
   Marca: verde #0f766e sobre branco. Publico NUNCA escuro.
   Aplica-se a: home, segmentos, cadastro, convite, vitrine.
   ============================================================ */

.pub, .store-body, .signup-body {
  margin: 0; background: #ffffff; color: #1e293b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
.pub-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

/* Topbar */
.pub-topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #e2e8f0; }
.pub-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.pub-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: #0f172a; text-decoration: none; }
.pub-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: #0f766e; color: #fff; font-weight: 800; }
.pub-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pub-nav a { color: #334155; text-decoration: none; font-size: 15px; font-weight: 600; }
.pub-nav a:hover { color: #0f766e; }
.pub-login { color: #0f766e !important; }
.pub-cta { display: inline-block; background: #0f766e; color: #fff !important; border-radius: 10px; padding: 10px 18px; font-weight: 700; text-decoration: none; transition: background .15s ease; }
.pub-cta:hover { background: #115e59; }
.pub-cta.big { padding: 15px 28px; font-size: 17px; }

/* Hero */
.pub-hero { background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 90%); padding: 56px 0 40px; }
.pub-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pub-eyebrow { margin: 0 0 12px; color: #0f766e; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.pub-hero h1 { margin: 0 0 16px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; color: #0f172a; }
.pub-lead { margin: 0 0 24px; font-size: 18px; line-height: 1.6; color: #475569; }
.pub-hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pub-cta-note { font-size: 13px; color: #64748b; }

/* Mockup do PDV (hero) */
.pub-mockup { display: flex; justify-content: center; }
.mock-window { width: min(400px, 100%); background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .14); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-body { padding: 18px; }
.mock-title { font-weight: 800; color: #0f172a; margin-bottom: 12px; font-size: 15px; }
.mock-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #e2e8f0; font-size: 14px; color: #334155; }
.mock-total { display: flex; justify-content: space-between; padding: 12px 0 10px; font-size: 17px; font-weight: 800; color: #0f172a; }
.mock-pay { display: flex; gap: 8px; margin: 6px 0 14px; }
.mock-chip { padding: 7px 13px; border: 1px solid #e2e8f0; border-radius: 999px; font-size: 13px; color: #475569; }
.mock-chip.on { background: #0f766e; border-color: #0f766e; color: #fff; font-weight: 700; }
.mock-btn { background: #0f766e; color: #fff; text-align: center; padding: 13px; border-radius: 10px; font-weight: 800; }

/* Secoes */
.pub-section { padding: 52px 0; }
.pub-section.alt { background: #f8fafc; }
.pub-section h2, .pub-final h2 { margin: 0 0 26px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; color: #0f172a; text-align: center; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pub-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.pub-ico { font-size: 26px; margin-bottom: 10px; }
.pub-card h3 { margin: 0 0 8px; font-size: 17px; color: #0f172a; }
.pub-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #475569; }

/* Planos */
.pub-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.pub-plan { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pub-plan.featured { border-color: #0f766e; box-shadow: 0 10px 34px rgba(15, 118, 110, .14); }
.pub-tag { position: absolute; top: -12px; left: 20px; background: #0f766e; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pub-plan h3 { margin: 0; font-size: 18px; color: #0f172a; }
.pub-price { font-size: 30px; font-weight: 800; color: #0f172a; }
.pub-price small { font-size: 14px; color: #64748b; font-weight: 500; }
.pub-plan ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 14px; color: #334155; }
.pub-plan .pub-cta { text-align: center; margin-top: auto; }
.pub-note { margin: 18px 0 0; text-align: center; font-size: 13px; color: #64748b; }

/* FAQ */
.pub-faq { max-width: 720px; }
.pub-faq details { border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px 18px; margin-top: 10px; background: #fff; }
.pub-faq summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.pub-faq p { margin: 10px 0 0; color: #475569; line-height: 1.55; }

/* CTA final + rodape */
.pub-final { background: #0f766e; padding: 48px 0; text-align: center; }
.pub-final h2 { color: #fff; }
.pub-final .pub-cta { background: #fff; color: #0f766e !important; }
.pub-footer { background: #0f172a; color: #cbd5e1; padding: 34px 0; text-align: center; font-size: 14px; }
.pub-footer a { color: #7dd3c8; text-decoration: none; }
.pub-brand-foot { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; color: #fff; }
.pub-fine { color: #64748b; font-size: 12px; }

/* WhatsApp flutuante (farol eGestor) */
.pub-whats { position: fixed; right: 18px; bottom: 18px; z-index: 40; background: #25d366; color: #fff; font-weight: 800; text-decoration: none; padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(37, 211, 102, .4); }

/* ---- Vitrine publica (clara) ---- */
.store-body main { max-width: 760px; margin: 0 auto; padding: 2.4rem 1.1rem; }
.store-body h1 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; margin-bottom: 1.2rem; color: #0f172a; }
.storefront-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.storefront-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.05rem; display: flex; flex-direction: column; gap: .4rem; }
.storefront-card strong { color: #0f172a; font-size: 15px; }
.storefront-card span { color: #0f766e; font-weight: 700; }
.storefront-error { color: #64748b; }
.store-footer { text-align: center; color: #94a3b8; font-size: .8rem; padding: 1.6rem 0; }

/* ---- Cadastro / convite / segmentos (claros) ---- */
.signup-page, .seg-page { max-width: 640px; margin: 0 auto; padding: 46px 18px 70px; }
.seg-page { max-width: 800px; }
.signup-hero { text-align: center; margin-bottom: 26px; }
.signup-hero .eyebrow { color: #0f766e; }
.signup-hero h1 { margin: 10px 0; font-size: clamp(28px, 5vw, 40px); letter-spacing: -.03em; line-height: 1.08; color: #0f172a; }
.signup-hero p { margin: 0 auto; max-width: 520px; color: #475569; font-size: 16px; line-height: 1.55; }

.signup-card, .seg-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 26px; box-shadow: 0 10px 34px rgba(15, 23, 42, .08); }
.signup-card h2, .seg-card h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -.02em; color: #0f172a; text-align: left; }
.signup-card p { color: #475569; }

.signup-form { display: flex; flex-direction: column; gap: 12px; }
.signup-form input[type="text"], .signup-form input[type="email"] { padding: 13px 15px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; background: #fff; color: #0f172a; }
.signup-plans { display: grid; gap: 9px; }
.signup-plan { display: flex; align-items: center; gap: 12px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.signup-plan:hover { border-color: #99f6e4; }
.signup-plan:has(input:checked) { border-color: #0f766e; background: #f0fdfa; }
.signup-plan input { accent-color: #0f766e; }
.signup-plan strong { font-size: 15px; color: #0f172a; }
.signup-plan span span { font-size: 13px; color: #64748b; }
.signup-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }

.signup-button { display: inline-block; text-align: center; padding: 13px 20px; border: 0; border-radius: 10px; background: #0f766e; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; text-decoration: none; }
.signup-button:hover { background: #115e59; }
.signup-button:disabled { background: #94a3b8; }
.signup-status { margin: 0; font-size: 14px; color: #0f766e; }
.signup-status.error { color: #b91c1c; }
.signup-card.success { border-color: #0f766e; }
.signup-creds { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 0 0 14px; font-size: 14px; }
.signup-creds dt { color: #64748b; }
.signup-creds dd { margin: 0; font-weight: 700; color: #0f172a; word-break: break-all; }

.seg-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.seg-nav a { padding: 10px 18px; border: 1px solid #cbd5e1; border-radius: 999px; color: #334155; font-size: 14px; font-weight: 700; text-decoration: none; }
.seg-nav a:hover { border-color: #0f766e; color: #0f766e; }
.seg-card { margin-top: 24px; scroll-margin-top: 24px; }
.seg-sub { margin: 0 0 16px; color: #475569; }
.seg-features { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 9px; color: #334155; font-size: 15px; line-height: 1.5; }
.seg-features strong { color: #0f172a; }
.seg-plan { margin: 0 0 16px; font-size: 14px; color: #0f766e; font-weight: 600; }
.seg-footer { text-align: center; margin-top: 30px; color: #64748b; font-size: 14px; }
.seg-footer a { color: #0f766e; }
.seg-link { background: transparent; color: #0f766e; border: 1px solid #0f766e; }

/* ===== Tela de caixa (Balcao) — padrao frente de caixa ===== */
.pdv { background: #f2f6f8; border: 1px solid #dbe6ec; border-radius: 18px; padding: 18px; color: #17303f; }
.pdv .eyebrow, .pdv h1, .pdv h2 { color: #17303f; }
.pdv .pdv-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.pdv-context { display: flex; gap: 12px; }
.pdv-context label { display: flex; flex-direction: column; font-size: 11px; color: #5b7385; gap: 3px; }
.pdv-context select { min-width: 150px; height: 36px; border-radius: 8px; border: 1px solid #c4d4de; background: #fff; color: #17303f; padding: 0 8px; }
.pdv-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.pdv-main { min-width: 0; }
.pdv-scanbar { display: flex; gap: 10px; margin-bottom: 10px; }
.pdv-scan { flex: 1; height: 58px; font-size: 20px; padding: 0 18px; border-radius: 12px; border: 2px solid #0f766e; background: #fff; color: #17303f; }
.pdv-scan::placeholder { color: #7d95a5; }
.pdv-scan:focus-visible { outline: 3px solid rgba(15,118,110,.25); }
.pdv-scan-qty { width: 84px; height: 58px; font-size: 20px; text-align: center; border-radius: 12px; border: 1px solid #c4d4de; background: #fff; color: #17303f; }
.pdv-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pdv-lookup { margin: 0 0 8px; padding: 10px 14px; border-radius: 10px; background: #0f766e; color: #fff; font-size: 18px; font-weight: 800; }
.pdv-cat { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #5b7385; }
.pdv-product { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-height: 74px; padding: 10px 12px; border: 1px solid #d3e0e8; border-radius: 12px; background: #fff; color: #17303f; cursor: pointer; text-align: left; box-shadow: 0 1px 2px rgba(23,48,63,.06); }
.pdv-product:hover { border-color: #0f766e; box-shadow: 0 3px 10px rgba(15,118,110,.14); transform: translateY(-1px); }
.pdv-product-name { font-size: 13px; line-height: 1.25; font-weight: 600; }
.pdv-product strong { font-size: 16px; color: #0f766e; }
.pdv-addform { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; opacity: .9; }
.pdv-addform label { color: #5b7385; }
.pdv-addform select, .pdv-addform input { background: #fff; border: 1px solid #c4d4de; color: #17303f; }
.pdv-cart { min-height: 200px; border: 1px solid #d3e0e8; border-radius: 14px; background: #fff; padding: 10px; margin-bottom: 14px; }
.pdv-cart .catalog-row { font-size: 16px; color: #17303f; border-color: #e4edf2; }
.pdv-shift { border: 1px solid #d3e0e8; border-radius: 14px; background: #fff; padding: 14px; }
.pdv-shift .card-heading span { color: #5b7385; }
.pdv-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; }
.pdv-total-box { border: 0; border-radius: 16px; background: #0f766e; padding: 18px 20px; text-align: right; box-shadow: 0 6px 18px rgba(15,118,110,.28); }
.pdv-total-box span { display: block; font-size: 12px; letter-spacing: .18em; color: #b7e5df; }
.pdv-total-box strong { display: block; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; color: #fff; letter-spacing: -.02em; }
.pdv-total-box em { color: #d3efeb; font-style: normal; }
.pdv-finish { display: flex; flex-direction: column; gap: 10px; border: 1px solid #d3e0e8; border-radius: 14px; background: #fff; padding: 16px; }
.pdv-finish label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #5b7385; }
.pdv-finish select, .pdv-finish input { height: 44px; border-radius: 10px; border: 1px solid #c4d4de; background: #fff; color: #17303f; padding: 0 12px; font-size: 16px; }
.pdv-split-toggle { border: 1px dashed #0f766e; background: #f0faf8; color: #0f766e; border-radius: 10px; padding: 9px 12px; font-weight: 700; cursor: pointer; }
.pdv-split { display: flex; flex-direction: column; gap: 8px; }
.pdv-split-row { display: flex; gap: 8px; align-items: center; }
.pdv-split-row select { flex: 1; height: 40px; }
.pdv-split-row input { width: 110px; height: 40px; }
.pdv-split-row button { border: 0; background: #fee2e2; color: #b4232a; border-radius: 8px; width: 34px; height: 34px; font-weight: 800; cursor: pointer; }
.pdv-split-rest { margin: 0; font-weight: 800; color: #b45309; }
.pdv-split-rest[data-ok="1"] { color: #0d7d43; }
.pdv-troco { margin: 0; font-size: 20px; font-weight: 800; color: #0d7d43; }
.pdv-finalize { height: 64px; border: 0; border-radius: 12px; background: #0f766e; color: #fff; font-size: 19px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(15,118,110,.3); }
.pdv-finalize:hover { transform: translateY(-1px); background: #0d685f; }
.pdv-hotkeys { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; color: #5b7385; font-size: 13px; }
.pdv-hotkeys kbd { background: #e3edf2; border: 1px solid #c4d4de; border-radius: 6px; padding: 2px 7px; color: #17303f; font-family: inherit; }
.pdv-offline { border: 1px solid #d97706; background: #fef3c7; color: #92400e; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.pdv-offline b { font-size: 15px; }
.pdv .operation-status { color: #35586e; }
.pdv .operation-status[data-kind="success"] { color: #0d7d43; }

@media (max-width: 980px) { .pdv-grid { grid-template-columns: 1fr; } .pdv-side { position: static; } }

/* Previa de cupom 58mm (nao fiscal). Na impressao, so o cupom existe. */
.cupom-wrap { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.cupom { width: 220px; background: #fff; color: #111; font-family: "Courier New", monospace; font-size: 11px; line-height: 1.45; padding: 14px 12px; border-radius: 4px; box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.cupom p { margin: 0; word-break: break-word; }
.cupom-title { text-align: center; font-weight: 700; font-size: 12px; }
.cupom-mut { text-align: center; color: #555; }
.cupom-sep { text-align: center; letter-spacing: 1px; color: #999; overflow: hidden; white-space: nowrap; }
.cupom-right { text-align: right; }
.cupom-total { text-align: right; font-weight: 700; font-size: 13px; }
@media print {
  body * { visibility: hidden !important; }
  body:not(.print-labels) .cupom, body:not(.print-labels) .cupom * { visibility: visible !important; }
  body:not(.print-labels) .cupom { position: fixed; left: 0; top: 0; width: 58mm; box-shadow: none; border-radius: 0; }
  body.print-labels .label-sheet, body.print-labels .label-sheet * { visibility: visible !important; }
  body.print-labels .label-sheet { position: fixed; left: 0; top: 0; width: 100%; margin: 0; }
}

.label-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin-top: 14px; }
.label-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px dashed rgba(120, 140, 160, .5); border-radius: 6px; padding: 6px 4px; text-align: center; }
.label-cell strong { font-size: 11px; line-height: 1.2; max-height: 26px; overflow: hidden; }
.label-price { font-size: 12px; font-weight: 700; }
.label-cell svg { max-width: 100%; height: auto; }
.import-error { color: #b4232a; font-size: 12px; margin: 2px 0; }

/* ---- Fase C: shell do app em tema claro (paridade com o design e o site;
   o operador vive aqui o dia inteiro — dark foi rejeitado). Overrides no fim
   do arquivo vencem a base escura sem reescrevê-la. ---- */
.erp-shell { background: #eef3f6; }
.erp-sidebar { background: #0f2e33; }
.erp-main { background: #eef3f6; }
.workspace-topbar { background: #ffffff; border-bottom: 1px solid #dbe6ec; color: #17303f; }
.workspace-topbar .user-copy strong, .workspace-topbar label { color: #17303f; }
.context-pickers select { background: #fff; color: #17303f; border: 1px solid #c4d4de; }
.workspace-content { color: #17303f; }
.workspace-heading h1, .workspace-heading p, .catalog-heading h1, .catalog-heading p { color: #17303f; }
.metric-card, .dashboard-card, .catalog-view:not(.pdv) .dashboard-card { background: #ffffff; border: 1px solid #dbe6ec; color: #17303f; box-shadow: 0 1px 3px rgba(23,48,63,.06); }
.metric-card span, .metric-card small { color: #5b7385; }
.metric-card strong { color: #17303f; }
.dashboard-card h2, .dashboard-card h3 { color: #17303f; }
.card-heading span { color: #5b7385; }
.catalog-view:not(.pdv) { color: #17303f; }
.catalog-view:not(.pdv) input, .catalog-view:not(.pdv) select, .catalog-view:not(.pdv) textarea { background: #fff; border: 1px solid #c4d4de; color: #17303f; }
.catalog-view:not(.pdv) label { color: #5b7385; }
.catalog-list, .catalog-row { color: #17303f; border-color: #e4edf2; }
.catalog-row strong { color: #17303f; }
.catalog-row span, .catalog-row small { color: #5b7385; }
.catalog-submit { background: #0f766e; color: #fff; border: 0; }
.catalog-submit:hover { background: #0d685f; }
.catalog-submit.ghost { background: #eef6f4; color: #0f766e; border: 1px dashed #0f766e; }
.first-steps-list, .first-step-link { color: #17303f; }
.operation-status { color: #35586e; }
.operation-status[data-kind="success"] { color: #0d7d43; }
.operation-status[data-kind="error"] { color: #b4232a; }
.cash-expected { font-weight: 800; color: #0f766e; }
.cash-statement { background: #fff; border: 1px solid #dbe6ec; border-radius: 12px; padding: 12px 16px; margin-top: 10px; color: #17303f; }
.team-policy { margin-top: 14px; }

/* Sub-abas de Cadastros */
.cad-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.cad-tab { border: 1px solid #c4d4de; background: #fff; color: #35586e; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 14px; cursor: pointer; }
.cad-tab:hover { border-color: #0f766e; color: #0f766e; }
.cad-tab.is-active { background: #0f766e; border-color: #0f766e; color: #fff; }
.cad-pane { animation: none; }
.form-block-title { grid-column: 1 / -1; margin: 10px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; font-weight: 800; border-bottom: 1px solid #e4edf2; padding-bottom: 4px; }

/* ---- form-grid: grade de formulário nova, sem herdar .catalog-form.
   6 colunas fixas; cada campo declara o próprio span (fg-1..fg-6);
   título de bloco ocupa a linha inteira. ---- */
.form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px; align-items: end; margin: 18px 0; padding: 18px; border-radius: 12px; background: #f5f8fa; border: 1px solid #e4edf2; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #5b7385; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.form-grid input, .form-grid select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #c9d7e0; border-radius: 9px; background: #fff; color: #17303f; font-size: 14px; }
.form-grid input:focus-visible, .form-grid select:focus-visible { border-color: #0f766e; outline: 3px solid rgba(15,118,110,.16); }
.form-grid .fg-1 { grid-column: span 1; }
.form-grid .fg-2 { grid-column: span 2; }
.form-grid .fg-3 { grid-column: span 3; }
.form-grid .fg-4 { grid-column: span 4; }
.form-grid .fg-6, .form-grid .fg-full { grid-column: 1 / -1; }
.form-grid .form-block-title { grid-column: 1 / -1; align-self: start; margin: 6px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #0f766e; font-weight: 800; border-bottom: 1px solid #dbe6ec; padding-bottom: 6px; }
.form-grid .catalog-submit { grid-column: 1 / -1; height: 44px; }
@media (max-width: 1050px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .fg-1, .form-grid .fg-2, .form-grid .fg-3, .form-grid .fg-4 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .fg-1, .form-grid .fg-2, .form-grid .fg-3, .form-grid .fg-4 { grid-column: 1 / -1; }
}

/* Ferramentas do catálogo: duas colunas limpas + input de arquivo decente */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #e4edf2; border-radius: 12px; background: #f5f8fa; }
.tool-box h3 { margin: 0; color: #17303f; }
.tool-box .field-hint { margin: 0; color: #5b7385; font-size: 13px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.file-label { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed #0f766e; background: #eef6f4; color: #0f766e; border-radius: 9px; padding: 10px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.file-label input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-name { color: #35586e; font-size: 13px; }

/* ---- PDV sem barra de rolagem (lei de produto): a tela do caixa cabe
   inteira no viewport; só a grade de produtos, o carrinho e o turno rolam
   DENTRO das próprias caixas. As demais views continuam normais. ---- */
.pdv { display: flex; flex-direction: column; height: calc(100vh - 170px); overflow: hidden; }
.pdv .pdv-top { flex: 0 0 auto; margin-bottom: 2px; }
.pdv > .operation-status { flex: 0 0 auto; margin: 4px 0; }
.pdv-grid { flex: 1 1 auto; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.pdv-main { height: 100%; }
.pdv-main { display: flex; flex-direction: column; min-height: 0; }
.pdv-scanbar { flex: 0 0 auto; }
.pdv-lookup { flex: 0 0 auto; }
.pdv-products { flex: 1 1 auto; min-height: 80px; overflow-y: auto; margin-bottom: 8px; padding-right: 4px; }
.pdv-addform { flex: 0 0 auto; margin-bottom: 8px; }
.pdv-cart { flex: 0 0 auto; max-height: 26vh; overflow-y: auto; min-height: 96px; margin-bottom: 8px; }
.pdv-shift { flex: 0 0 auto; max-height: 14vh; overflow-y: auto; padding: 8px 14px; }
.pdv-shift .card-heading { margin-bottom: 4px; }
.pdv-side { position: static; overflow-y: auto; min-height: 0; max-height: 100%; }
.pdv-hotkeys { flex: 0 0 auto; margin-top: 8px; background: #f2f6f8; padding-top: 6px; position: relative; }
@media (max-height: 1020px) {
  .pdv-scan, .pdv-scan-qty { height: 46px; font-size: 17px; }
  .pdv-total-box { padding: 8px 14px; }
  .pdv-total-box strong { font-size: clamp(24px, 3vw, 32px); }
  .pdv-finish { gap: 6px 8px; padding: 10px; }
  .pdv-finish select, .pdv-finish input { height: 32px; font-size: 13px; }
  .pdv-finalize { height: 46px; font-size: 16px; }
  .pdv-shift { display: none; }
}

/* ---- Lateral de pagamento SEM rolagem (guia PDV: só carrinho/grade
   rolam). Pares em 2 colunas, alturas compactas; scrollbar fina e
   discreta como rede de segurança em telas muito baixas. ---- */
.pdv-total-box { padding: 12px 18px; }
.pdv-total-box strong { font-size: clamp(26px, 3vw, 40px); }
.pdv-finish { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 12px; }
.pdv-finish input, .pdv-finish select { min-width: 0; width: 100%; }
.pdv-side > * { max-width: 100%; min-width: 0; }
.pdv-side { overflow-x: hidden; }
.pdv-finish label { font-size: 10px; gap: 3px; }
.pdv-finish select, .pdv-finish input { height: 36px; font-size: 14px; padding: 0 10px; }
.pdv-finish > label:nth-of-type(1) { grid-column: 1 / -1; }   /* Pagamento */
.pdv-split-toggle, .pdv-split, .pdv-split-rest { grid-column: 1 / -1; }
.pdv-split-toggle { padding: 7px 10px; font-size: 13px; }
.pdv-troco { grid-column: 1 / -1; font-size: 18px; font-family: ui-monospace, Consolas, monospace; }
.pdv-finalize { grid-column: 1 / -1; height: 54px; font-size: 18px; }
.pdv-side { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.pdv-side .operation-status:empty { display: none; }
.pdv-total-box { flex: 0 0 auto; }
/* Lei do guia PDV: TOTAL e FINALIZAR nunca saem da tela. Só o miolo de
   campos rola (barra fina), e o botão fica grudado no rodapé do painel. */
.pdv-finish { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.pdv-finalize { position: sticky; bottom: -12px; z-index: 2; box-shadow: 0 -8px 12px rgba(242,246,248,.95); }

/* Scrollbar fina/flutuante em todas as áreas roláveis do PDV */
.pdv-side, .pdv-products, .pdv-cart, .pdv-shift, .pdv-finish { scrollbar-width: thin; scrollbar-color: rgba(15,118,110,.35) transparent; }
.pdv-side::-webkit-scrollbar, .pdv-products::-webkit-scrollbar,
.pdv-cart::-webkit-scrollbar, .pdv-shift::-webkit-scrollbar, .pdv-finish::-webkit-scrollbar { width: 6px; }
.pdv-side::-webkit-scrollbar-track, .pdv-products::-webkit-scrollbar-track,
.pdv-cart::-webkit-scrollbar-track, .pdv-shift::-webkit-scrollbar-track { background: transparent; }
.pdv-side::-webkit-scrollbar-thumb, .pdv-products::-webkit-scrollbar-thumb,
.pdv-cart::-webkit-scrollbar-thumb, .pdv-shift::-webkit-scrollbar-thumb, .pdv-finish::-webkit-scrollbar-thumb { background: rgba(15,118,110,.35); border-radius: 999px; }

/* ---- PDV registro-primeiro: cupom protagonista, TOTAL em faixa,
   pagamento em modal (lei do usuário; padrão frente de caixa). ---- */
.pdv-side { overflow: visible; }
.pdv-side .pdv-cart { flex: 1 1 auto; max-height: none; min-height: 0; overflow-y: auto; font-size: 16px; }
.pdv-total-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0f766e; color: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: 0 6px 18px rgba(15,118,110,.28); }
.pdv-total-bar span { font-size: 14px; letter-spacing: .14em; color: #b7e5df; font-weight: 800; }
.pdv-total-bar strong { font-size: clamp(28px, 3vw, 44px); line-height: 1; font-family: ui-monospace, Consolas, monospace; }
.pdv-actions { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.pdv-cancel { height: 52px; border: 1px solid #c4d4de; border-radius: 12px; background: #fff; color: #35586e; font-size: 15px; font-weight: 800; cursor: pointer; }
.pdv-cancel:hover { border-color: #b4232a; color: #b4232a; }
.pdv-actions .pdv-finalize { position: static; box-shadow: none; height: 52px; }
.pdv-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(15, 35, 45, .55); padding: 20px; }
.pdv-modal-card { width: min(560px, 96vw); max-height: 92vh; display: flex; flex-direction: column; background: #f2f6f8; border-radius: 16px; box-shadow: 0 24px 60px rgba(10, 25, 35, .45); overflow: hidden; }
.pdv-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #0f766e; color: #fff; }
.pdv-modal-head h2 { margin: 0; font-size: 18px; }
.pdv-modal-total { font-size: clamp(24px, 3vw, 34px); font-family: ui-monospace, Consolas, monospace; }
.pdv-modal .pdv-finish { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: 0; border-radius: 0; }
.pdv-modal-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: sticky; bottom: -12px; background: #fff; padding-top: 8px; z-index: 2; }
.pdv-modal-actions .pdv-finalize { position: static; box-shadow: none; }
.pdv-actions .pdv-finalize, .pdv-modal-actions .pdv-finalize,
.pdv-actions .pdv-cancel, .pdv-modal-actions .pdv-cancel { grid-column: auto; height: 52px; }

/* ---- FRENTE DE CAIXA dedicada (caixa.html): aplicação do operador em
   tela cheia, sem retaguarda. Referência: frentes de caixa clássicas
   (CAIXA LIVRE gigante, relógio, produto/qtde à esquerda, itens à direita). */
.cx-body {
  --cx-ink: #162f38;
  --cx-muted: #667c84;
  --cx-border: #c9ced1;
  --cx-surface: #ffffff;
  --cx-canvas: #dfe3e5;
  --cx-teal: #d85f0a;
  --cx-teal-dark: #343b40;
  --cx-orange: #f47b16;
  --cx-orange-dark: #d85f0a;
  --cx-green: #178454;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--cx-canvas);
  color: var(--cx-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.cx-body button, .cx-body input, .cx-body select { font: inherit; }
.cx-auth { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: #383d40; }
.cx-auth-card { width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: 20px; padding: 34px 40px; text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: 18px; box-shadow: 0 24px 70px rgba(6, 30, 35, .35); }
.cx-auth-card .cx-brand { justify-content: center; color: var(--cx-ink); }
.cx-shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* Cabeçalho operacional: identidade, empresa, operador e relógio — sem navegação SaaS. */
.cx-top { flex: 0 0 62px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; background: linear-gradient(110deg, #f68a1f 0%, #f1780c 58%, #df6507 100%); color: #fff; padding: 8px 18px; box-shadow: inset 0 -1px rgba(116, 51, 0, .25); }
.cx-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 850; letter-spacing: -.02em; }
.cx-brand > span:last-child { display: flex; align-items: baseline; gap: 7px; }
.cx-brand em { font-style: normal; font-weight: 800; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff2df; }
.cx-brand .mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.82); border-radius: 9px; background: #fff; color: var(--cx-orange-dark); font-weight: 900; }
.cx-terminal { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid rgba(255,255,255,.18); padding-left: 20px; }
.cx-terminal span { color: #fff1dd; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.cx-company { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 750; }
.cx-head-meta { display: flex; align-items: center; gap: 22px; }
.cx-operator { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #fff4e5; }
.cx-clock { min-width: 116px; text-align: right; display: flex; flex-direction: column; line-height: 1.05; }
.cx-clock span { font-size: 10px; color: #fff1dd; text-transform: capitalize; }
.cx-clock strong { font-size: 21px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* Faixa de estado compacta. Os selects existem por operação, sem parecer formulário. */
.cx-strip { flex: 0 0 44px; display: flex; align-items: center; gap: 9px; background: #3f4549; border-bottom: 1px solid #2f3437; padding: 5px 18px; color: #fff; box-shadow: 0 1px 0 rgba(13, 26, 30, .16); }
.cx-session-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 999px; background: #c64d49; box-shadow: 0 0 0 3px #f7dddc; }
.cx-strip:has(.cx-open) .cx-session-dot { background: var(--cx-green); box-shadow: 0 0 0 3px #d8eee3; }
.cx-open, .cx-closed { font-size: 11px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.cx-open { color: #8fe0b5; }
.cx-closed { color: #ffaaa6; }
.cx-strip .operation-status { flex: 1 1 auto; min-width: 80px; margin: 0 8px; overflow: hidden; color: #dbe1e3; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.cx-strip .operation-status[data-kind="success"] { color: #a9e8c6; }
.cx-strip .pdv-context { gap: 7px; }
.cx-strip .pdv-context label { position: relative; display: block; }
.cx-strip .pdv-context label > span { position: absolute; z-index: 1; top: 3px; left: 9px; color: #789098; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; pointer-events: none; }
.cx-strip .pdv-context select { width: 150px; min-width: 0; height: 34px; padding: 12px 24px 1px 8px; border-color: var(--cx-border); border-radius: 8px; color: var(--cx-ink); font-size: 11px; font-weight: 700; }
.cx-back { color: #f8f8f8; font-size: 11px; font-weight: 800; text-decoration: none; border: 1px solid #737b80; border-radius: 6px; padding: 8px 10px; background: #555c60; }
.cx-back:hover { color: var(--cx-teal); border-color: #8bbcb9; }
.cx-operations-button { height: 34px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #f2a05c; border-radius: 6px; background: var(--cx-orange); color: #fff; padding: 0 11px; font-size: 10px; font-weight: 900; cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px rgba(114,43,0,.22); }
.cx-operations-button kbd { border: 1px solid rgba(255,255,255,.72); border-radius: 4px; padding: 2px 4px; background: rgba(91,35,0,.18); font: 850 8px inherit; }

/* Área principal: entrada/grade à esquerda; cupom e recebimento à direita. */
.cx-main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(410px, .72fr) minmax(600px, 1.28fr); gap: 8px; padding: 8px 10px; }
.cx-sale-entry, .cx-ticket { min-width: 0; min-height: 0; }
.cx-sale-entry { display: flex; flex-direction: column; gap: 10px; }
.cx-entry-card, .cx-catalog-card, .cx-ticket { border: 1px solid #bfc5c8; background: var(--cx-surface); border-radius: 9px; box-shadow: 0 2px 5px rgba(30, 39, 43, .08); }
.cx-entry-card { flex: 0 0 auto; padding: 12px; }
.cx-panel-title, .cx-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cx-panel-title > div, .cx-ticket-head > div { display: flex; flex-direction: column; line-height: 1.15; }
.cx-panel-title span, .cx-ticket-head div span { color: var(--cx-muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.cx-panel-title strong, .cx-ticket-head div strong { color: var(--cx-ink); font-size: 17px; font-weight: 850; }
.cx-panel-title > kbd { border: 1px solid var(--cx-border); border-bottom-width: 2px; border-radius: 6px; background: #f4f7f8; padding: 3px 7px; color: var(--cx-muted); font: 800 10px inherit; }
.cx-entry-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; margin-top: 10px; }
.cx-field { display: flex; flex-direction: column; gap: 4px; color: #536c74; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.cx-entry-row .pdv-scan, .cx-entry-row .pdv-scan-qty { width: 100%; height: 48px; border-radius: 9px; color: var(--cx-ink); background: #fff; }
.cx-entry-row .pdv-scan { border-color: var(--cx-orange); font-size: 16px; font-weight: 650; box-shadow: inset 3px 0 var(--cx-orange); }
.cx-entry-row .pdv-scan::placeholder { color: #95a6ac; font-weight: 500; }
.cx-entry-row .pdv-scan-qty { border: 1px solid var(--cx-border); text-align: center; font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; }
.cx-qty-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 0 auto; width: min(320px, 100%); }
.cx-qty-actions button { height: 30px; border: 1px solid var(--cx-border); border-radius: 7px; background: #f7fafb; color: #42606a; font-size: 11px; font-weight: 850; cursor: pointer; }
.cx-qty-actions button:hover { border-color: #efa163; background: #fff5ea; color: var(--cx-orange-dark); }
.cx-entry-card .pdv-lookup { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 14px; }

.cx-catalog-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 12px 10px 8px 12px; }
.cx-catalog-title { flex: 0 0 auto; padding-right: 4px; }
.cx-catalog-title small { color: #83969d; font-size: 10px; }
.cx-products { flex: 1 1 auto; min-height: 54px; overflow-y: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 7px; margin: 7px 0; padding: 0 5px 0 0; }
.cx-products .pdv-cat { grid-column: 1 / -1; position: sticky; top: 0; z-index: 2; margin: 2px 0 0; padding: 5px 4px 3px; background: #fff; color: #61777f; font-size: 9px; font-weight: 900; letter-spacing: .13em; border-bottom: 1px solid #edf2f3; }
.cx-products .pdv-product { flex-direction: row; justify-content: flex-start; align-items: stretch; gap: 8px; min-height: 82px; padding: 6px; border: 1px solid var(--cx-border); border-radius: 7px; box-shadow: inset 0 -3px #e2e5e6; }
.cx-products .pdv-product:hover { border-color: #e98a3d; background: #fff7ef; box-shadow: inset 0 -3px #f3a15d; transform: none; }
.cx-products .pdv-product:active { background: #ffead7; transform: translateY(1px); }
.cx-products .pdv-product-name { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--cx-ink); font-size: 12px; font-weight: 750; }
.cx-products .pdv-product strong { color: var(--cx-orange-dark); font-size: 14px; font-variant-numeric: tabular-nums; }
.cx-manual { flex: 0 0 auto; border-top: 1px solid #edf2f3; padding-top: 6px; }
.cx-manual summary { width: fit-content; color: #657b83; font-size: 10px; font-weight: 750; cursor: pointer; }
.cx-addform { display: grid; grid-template-columns: minmax(150px, 1.6fr) .6fr .7fr auto; gap: 6px; margin: 7px 0 0; padding: 7px; border: 1px solid var(--cx-border); border-radius: 8px; background: #f7fafb; opacity: 1; }
.cx-addform label { font-size: 9px; }
.cx-addform select, .cx-addform input, .cx-addform button { height: 33px; min-width: 0; font-size: 11px; }

.cx-product-readout { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; min-height: 82px; margin-top: 9px; border: 1px solid #cfd4d6; border-radius: 8px; background: #eef0f1; padding: 6px; }
.cx-product-photo { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 68px; border: 1px solid #c8cdcf; border-radius: 6px; background: #fff; color: #a2aaae; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.cx-product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-product-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.cx-product-copy span { color: #727d82; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.cx-product-copy strong { overflow: hidden; color: #1f292d; font-size: 17px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.cx-product-copy em { overflow: hidden; color: var(--cx-orange-dark); font-size: 13px; font-style: normal; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cx-category-bar { flex: 0 0 auto; display: flex; gap: 5px; overflow-x: auto; margin-top: 8px; padding: 1px 1px 4px; scrollbar-width: thin; }
.cx-category-bar::-webkit-scrollbar { height: 4px; }
.cx-category-bar::-webkit-scrollbar-thumb { background: #aeb5b8; border-radius: 999px; }
.cx-category { flex: 0 0 auto; height: 31px; border: 1px solid #c6cbcd; border-radius: 5px; background: #eceeef; color: #404b50; padding: 0 12px; font-size: 10px; font-weight: 850; text-transform: uppercase; cursor: pointer; box-shadow: inset 0 -2px #d2d6d8; }
.cx-category:hover, .cx-category[data-active="1"] { border-color: var(--cx-orange-dark); background: var(--cx-orange); color: #fff; box-shadow: inset 0 -2px rgba(130, 51, 0, .28); }
.pdv-product-media { position: relative; flex: 0 0 62px; display: grid; place-items: center; overflow: hidden; border-radius: 5px; background: linear-gradient(145deg, #eceff0, #d6dcde); color: #7c898e; font-size: 15px; font-weight: 900; }
.pdv-product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdv-product-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; padding: 3px 1px; }

/* Foto opcional no cadastro mestre. */
.item-image-preview { position: relative; min-height: 76px; overflow: hidden; border: 1px dashed #b8c7cd; border-radius: 9px; background: #f5f8f9; color: #7b8e96; display: grid; place-items: center; font-size: 11px; font-weight: 750; }
.item-image-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-image-manager { margin: 14px 0; padding: 14px; display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1fr) minmax(240px, 1.5fr) 76px auto; gap: 12px; align-items: end; border: 1px solid #d8e1e4; border-left: 5px solid #f47a00; border-radius: 10px; background: #f8fafb; }
.item-image-manager > div:first-child { align-self: center; display: grid; gap: 2px; }
.item-image-manager strong { font-size: 14px; color: #24343a; }
.item-image-manager small { color: #6a7c83; font-size: 11px; line-height: 1.35; }
.form-block-kicker { color: #d75e00; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.item-image-manager label { display: grid; gap: 5px; color: #52656d; font-size: 11px; font-weight: 750; }
.item-image-manager input, .item-image-manager select { min-width: 0; height: 38px; border: 1px solid #b9c7cc; border-radius: 7px; padding: 0 10px; background: #fff; color: #1f2c31; }
.item-image-manager button { height: 38px; padding: 0 15px; border: 0; border-radius: 7px; background: #27373d; color: #fff; font-weight: 800; cursor: pointer; }
.category-manager { margin: 14px 0; padding: 14px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, 1fr) auto; gap: 12px; align-items: end; border: 1px solid #d8e1e4; border-left: 5px solid #0f766e; border-radius: 10px; background: #f8fafb; }
.category-manager > div { display: grid; gap: 2px; }
.category-manager strong { color: #24343a; font-size: 14px; }
.category-manager small { color: #6a7c83; font-size: 11px; }
.category-manager label { display: grid; gap: 5px; color: #52656d; font-size: 11px; font-weight: 750; }
.category-manager input { height: 38px; border: 1px solid #b9c7cc; border-radius: 7px; padding: 0 10px; background: #fff; }
.category-manager button { height: 38px; padding: 0 18px; border: 0; border-radius: 7px; background: #0f766e; color: #fff; font-weight: 800; cursor: pointer; }
.item-editor { margin: 14px 0; border: 1px solid #d8e1e4; border-radius: 10px; background: #fff; overflow: hidden; }
.item-editor > summary { padding: 14px 18px; cursor: pointer; color: #17303f; font-weight: 850; background: #eef4f6; }
.item-editor .form-grid { margin: 0; border: 0; border-top: 1px solid #d8e1e4; border-radius: 0; }
.item-edit-action { margin-left: auto; height: 34px; padding: 0 13px; border: 1px solid #aebec5; border-radius: 7px; background: #fff; color: #17303f; font-weight: 800; cursor: pointer; }
.item-edit-action:hover { border-color: #0f766e; color: #0f766e; }
.form-grid input[type="file"] { padding: 8px; height: 42px; font-size: 11px; }
.import-category-label { display: grid; gap: 5px; min-width: 250px; color: #52656d; font-size: 11px; font-weight: 800; }
.import-category-label select { height: 40px; border: 1px solid #b9c7cc; border-radius: 7px; padding: 0 10px; background: #fff; color: #17303f; }
.item-image-update-preview { position: relative; width: 76px; height: 58px; overflow: hidden; border: 1px dashed #bdc9cd; border-radius: 7px; display: grid; place-items: center; color: #829097; background: #fff; font-size: 10px; }
.item-image-update-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1050px) { .item-image-manager { grid-template-columns: 1fr 1fr; } .item-image-manager > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 800px) { .category-manager { grid-template-columns: 1fr; } }

.cx-search-modal { z-index: 90; }
.cx-search-card { width: min(760px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); display: flex; flex-direction: column; overflow: hidden; }
.cx-search-field { display: grid; gap: 7px; padding: 18px 20px 12px; color: #40545b; font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.cx-search-field input { height: 54px; border: 2px solid #0f766e; border-radius: 9px; padding: 0 16px; color: #172b32; background: #fff; font-size: 20px; font-weight: 700; outline: 4px solid rgba(15,118,110,.1); }
.cx-search-results { min-height: 220px; max-height: 520px; padding: 4px 20px 12px; display: grid; align-content: start; gap: 7px; overflow: auto; }
.cx-search-result { width: 100%; min-height: 66px; display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 7px 13px 7px 7px; border: 1px solid #d6e0e3; border-radius: 9px; background: #fff; color: #172b32; text-align: left; cursor: pointer; }
.cx-search-result[data-active="1"] { border-color: #f47a00; background: #fff6ec; box-shadow: inset 4px 0 #f47a00; }
.cx-search-result .pdv-product-media { width: 52px; height: 52px; }
.cx-search-result > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.cx-search-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.cx-search-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #687b82; }
.cx-search-result b { color: #0b625c; font-size: 18px; white-space: nowrap; }
.cx-search-empty { padding: 46px 12px; color: #6d7c82; text-align: center; }
.cx-search-help { margin: 0; padding: 10px 20px 15px; color: #687b82; font-size: 12px; text-align: center; }
.item-catalog-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; justify-content: stretch; }
.catalog-row .item-thumb { position: relative; width: 42px; height: 42px; overflow: hidden; display: grid; place-items: center; margin: 0; border-radius: 8px; background: #e9eff1; color: #60747c; font-size: 11px; font-weight: 900; }
.item-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Cupom: a parte mais legível da tela, com totais fixos no rodapé. */
.cx-ticket { display: flex; flex-direction: column; overflow: hidden; }
.cx-ticket-head { flex: 0 0 auto; padding: 10px 14px 9px; border-top: 4px solid var(--cx-orange); }
.cx-item-count { display: inline-flex; align-items: baseline; gap: 4px; border-radius: 999px; background: #edf5f5; color: #4d6870; padding: 5px 10px; font-size: 10px; font-weight: 750; }
.cx-item-count b { color: var(--cx-teal); font-size: 14px; }
.cx-cart-columns { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 102px 70px; gap: 10px; padding: 6px 14px; background: #f3f6f7; border-block: 1px solid #e3eaec; color: #778c93; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.cx-cart-columns span:nth-child(n+2) { text-align: right; }
.cx-cart-zone { flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; display: flex; background: #fff; }
.cx-cart { flex: 1 1 auto; max-height: none; min-height: 0; overflow-y: auto; border: 0; border-radius: 0; padding: 0 12px; margin: 0; font-size: 15px; }
.cx-cart .catalog-row { display: grid; grid-template-columns: minmax(0, 1fr) 102px 70px; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid #e8eef0; color: var(--cx-ink); }
.cx-cart .catalog-row > div { min-width: 0; }
.cx-cart .catalog-row strong { overflow: hidden; color: var(--cx-ink); font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.cx-cart .catalog-row span { margin-top: 2px; color: #71868e; font-size: 10px; }
.cx-cart .catalog-row small { justify-self: end; border: 0; background: transparent; padding: 0; color: var(--cx-ink); font-size: 14px; font-weight: 850; font-variant-numeric: tabular-nums; }
.cx-cart .row-action { justify-self: end; width: 64px; margin: 0; padding: 6px 4px; border-color: #ead2d1; background: #fff7f7; color: #a84642; font-size: 9px; }
.cx-livre { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; pointer-events: none; background: linear-gradient(180deg, #fff, #fbfdfd); color: var(--cx-ink); }
.cx-livre strong { font-size: clamp(34px, 4vw, 58px); font-weight: 900; letter-spacing: .08em; color: #b2c2c7; }
.cx-livre span { color: #84969c; font-size: 12px; }
.cx-cart-zone:not(:has(.catalog-row)) .cx-livre { display: flex; }
.cx-result { flex: 0 0 auto; min-height: 0; margin: 0; padding: 0 14px; overflow: hidden; color: #557078; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cx-result:not(:empty) { min-height: 29px; padding-top: 7px; border-top: 1px solid #edf2f3; }
.cx-checkout { flex: 0 0 auto; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(315px, .92fr); gap: 10px; padding: 10px; background: #f0f4f5; border-top: 1px solid var(--cx-border); }
.cx-checkout .pdv-total-bar { min-height: 70px; border-radius: 7px; background: #2f3539; padding: 10px 16px; box-shadow: inset 0 4px var(--cx-orange); }
.cx-checkout .pdv-total-bar span { color: #b9ddda; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.cx-checkout .pdv-total-bar strong { font-size: clamp(34px, 3.2vw, 50px); font-weight: 900; font-variant-numeric: tabular-nums; }
.cx-checkout .pdv-actions { grid-template-columns: .85fr 1.4fr; gap: 8px; }
.cx-checkout .pdv-actions button { height: 70px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; text-transform: uppercase; }
.cx-checkout .pdv-cancel { background: #fff; color: #79504e; border-color: #dec9c8; font-size: 12px; }
.cx-checkout .pdv-finalize { background: var(--cx-green); font-size: 16px; box-shadow: none; }
.cx-checkout button kbd { border: 1px solid currentColor; border-radius: 5px; padding: 2px 5px; background: rgba(255,255,255,.12); font-size: 9px; }
.cx-checkout button:disabled, .cx-entry-card button:disabled, .cx-products button:disabled, .cx-entry-card input:disabled { opacity: .48; cursor: not-allowed; }

/* Pagamento em uma etapa dedicada, com formas grandes e resposta imediata. */
.cx-body .pdv-modal { background: rgba(12, 39, 44, .72); backdrop-filter: blur(3px); padding: 16px; }
.cx-body .pdv-modal-card { width: min(720px, 96vw); max-height: min(92vh, 760px); border-radius: 16px; background: #fff; }
.cx-body .pdv-modal-head { padding: 15px 18px; background: linear-gradient(100deg, var(--cx-orange), var(--cx-orange-dark)); }
.cx-body .pdv-modal-head > div:first-child { display: flex; flex-direction: column; }
.cx-body .pdv-modal-head span { color: #b9ddda; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.cx-body .pdv-modal-head h2 { color: #fff; font-size: 18px; }
.cx-modal-due { display: flex; flex-direction: column; align-items: flex-end; }
.cx-body .pdv-modal-total { color: #fff; font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cx-body .pdv-modal .pdv-finish { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 10px; padding: 14px 16px 16px; background: #fff; }
.cx-payment-methods { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cx-payment-methods button { min-height: 62px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border: 1px solid var(--cx-border); border-radius: 9px; background: #f7fafb; color: #48616a; padding: 9px 10px; cursor: pointer; }
.cx-payment-methods button:hover, .cx-payment-methods button[data-active="1"] { border-color: var(--cx-teal); background: #eaf7f5; color: var(--cx-teal-dark); box-shadow: inset 0 0 0 1px var(--cx-teal); }
.cx-payment-methods button strong { font-size: 13px; }
.cx-payment-methods kbd { color: #71868e; font-size: 9px; }
.cx-payment-select { grid-column: 1 / -1; }
.cx-body .pdv-finish label { color: #5b7179; font-size: 10px; font-weight: 750; }
.cx-body .pdv-finish select, .cx-body .pdv-finish input { height: 40px; border-color: var(--cx-border); border-radius: 8px; font-size: 13px; }
.cx-body .pdv-split-toggle { border-radius: 8px; }
.cx-body .pdv-troco { align-self: center; margin: 0; color: #126b47; font-size: 20px; font-weight: 900; }
.cx-body .pdv-modal-actions { bottom: -16px; gap: 8px; padding-top: 9px; }
.cx-body .pdv-modal-actions button { height: 50px; border-radius: 9px; }
.cx-body .pdv-modal-actions .pdv-finalize { background: var(--cx-green); text-transform: uppercase; }
.cx-operations-card { width: min(760px, 96vw) !important; }
.cx-modal-close { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.55); border-radius: 7px; background: rgba(87,31,0,.18); color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.cx-operations-status { margin: 0; padding: 10px 18px; border-bottom: 1px solid #dbe3e5; background: #f4f7f8; color: #4d636b; font-size: 12px; }
.cx-operation-pane { padding: 18px; overflow-y: auto; }
.cx-operation-heading { margin-bottom: 14px; }
.cx-operation-heading > span { color: var(--cx-orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.cx-operation-heading h3 { margin: 2px 0; color: var(--cx-ink); font-size: 22px; }
.cx-operation-heading p { margin: 0; color: #71848b; font-size: 12px; }
.cx-operation-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.cx-operation-form label { display: grid; gap: 5px; color: #50666e; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.cx-operation-form input, .cx-operation-form select { width: 100%; height: 46px; border: 1px solid #b9c7cc; border-radius: 8px; background: #fff; padding: 0 12px; color: #1f2c31; font-size: 16px; font-weight: 700; }
.cx-operation-form button { height: 46px; border: 0; border-radius: 8px; background: #34474e; color: #fff; padding: 0 17px; font-size: 11px; font-weight: 900; cursor: pointer; }
.cx-operation-form .cx-primary-operation { min-width: 210px; background: var(--cx-green); }
.cx-active-register { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-bottom: 17px; border: 1px solid #bedbc9; border-radius: 9px; background: #edf8f1; padding: 11px 14px; }
.cx-active-register span { color: #18724b; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.cx-active-register strong { color: #164e3a; font-size: 18px; }
.cx-active-register small { color: #557469; font-size: 11px; }
.cx-movement-form { grid-template-columns: 1fr .8fr 1.5fr auto; }
.cx-close-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; border-top: 1px solid #dfe6e8; padding-top: 16px; }
.cx-close-callout > div { display: flex; flex-direction: column; gap: 3px; }
.cx-close-callout strong { color: #394b52; font-size: 14px; }
.cx-close-callout span { color: #71848b; font-size: 11px; }
.cx-danger-operation { border: 1px solid #c85b55 !important; background: #a9433e !important; color: #fff !important; }
.cx-count-form { grid-template-columns: minmax(220px, 1fr) auto; }
.cx-count-form input { height: 58px; font-size: 25px; font-variant-numeric: tabular-nums; }
.cx-count-form button { height: 58px; min-width: 190px; }
.nav-item-pdv { background: linear-gradient(90deg, #fff4e8, transparent); }
.nav-item-pdv .nav-icon { border-color: #f0a268; background: #fff0df; color: #c75600; font-size: 8px; }

.cx-foot { flex: 0 0 34px; display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 30px); overflow: hidden; border-top: 1px solid #282d30; background: #383e42; padding: 4px 12px; color: #e0e4e6; font-size: 10px; font-weight: 700; white-space: nowrap; }
.cx-foot span { display: inline-flex; align-items: center; gap: 5px; }
.cx-foot kbd { min-width: 25px; border: 1px solid #bfced2; border-bottom-width: 2px; border-radius: 5px; background: #fff; padding: 2px 5px; color: #39545d; font: 850 9px inherit; text-align: center; }
.cx-hidden-aux { display: none; }
.cx-cupom { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: 220px 120px; justify-content: center; align-content: center; gap: 9px; margin: 0; background: rgba(12, 39, 44, .72); backdrop-filter: blur(3px); }
.cx-cupom .cupom { grid-row: 1 / span 2; width: 220px; max-height: 78vh; overflow-y: auto; border-radius: 3px; background: #fff; box-shadow: 0 18px 50px rgba(10,25,35,.3); }
.cx-cupom button { width: 120px; height: 46px; margin: 0; }

.cx-products, .cx-cart, .cx-body .pdv-finish { scrollbar-width: thin; scrollbar-color: #a6bebd transparent; }
.cx-products::-webkit-scrollbar, .cx-cart::-webkit-scrollbar, .cx-body .pdv-finish::-webkit-scrollbar { width: 6px; }
.cx-products::-webkit-scrollbar-thumb, .cx-cart::-webkit-scrollbar-thumb, .cx-body .pdv-finish::-webkit-scrollbar-thumb { background: #a6bebd; border-radius: 999px; }
@media (max-width: 900px) { .cx-operation-form, .cx-movement-form { grid-template-columns: 1fr 1fr; } .cx-reason-field { grid-column: 1 / -1; } .cx-operation-form button { grid-column: 1 / -1; } }

@media (max-width: 1180px) {
  .cx-main { grid-template-columns: minmax(360px, .78fr) minmax(500px, 1.22fr); }
  .cx-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-checkout { grid-template-columns: 1fr; }
  .cx-checkout .pdv-total-bar, .cx-checkout .pdv-actions button { min-height: 54px; height: 54px; }
  .cx-head-meta { gap: 10px; }
  .cx-operator { display: none; }
}
@media (max-width: 900px) {
  .cx-top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cx-main { grid-template-columns: minmax(320px, .75fr) minmax(430px, 1.25fr); padding-inline: 7px; }
  .cx-strip { padding-inline: 10px; }
  .cx-strip .operation-status { display: none; }
  .cx-catalog-title small, .cx-foot span:nth-child(3) { display: none; }
}
@media (max-height: 720px) {
  .cx-top { flex-basis: 50px; }
  .cx-strip { flex-basis: 40px; }
  .cx-main { gap: 7px; padding-block: 7px; }
  .cx-entry-card { padding: 8px 10px; }
  .cx-entry-row { margin-top: 6px; }
  .cx-entry-row .pdv-scan, .cx-entry-row .pdv-scan-qty { height: 40px; }
  .cx-qty-actions { margin-top: 5px; }
  .cx-products .pdv-product { min-height: 58px; }
  .cx-product-readout { min-height: 64px; grid-template-columns: 64px minmax(0, 1fr); }
  .cx-product-photo { min-height: 52px; }
  .cx-foot { flex-basis: 30px; }
}
