:root {
  color-scheme: light;
  --bg: #f2f8ff;
  --panel: #ffffff;
  --panel-2: #e8f3ff;
  --text: #10233a;
  --muted: #617086;
  --line: #cfe1f4;
  --brand: #0ea5e9;
  --brand-2: #075985;
  --brand-3: #0f3b70;
  --accent: #facc15;
  --danger: #dc2626;
  --ok: #16a34a;
  --warn: #b45309;
  --shadow: 0 14px 40px rgba(7, 89, 133, 0.16);
  --radius: 8px;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

.compact-input {
  width: 170px;
  min-height: 34px;
}

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(250, 204, 21, 0.18), transparent 38%),
    #f7fbff;
}

.login-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 560px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.login-brand {
  padding: 52px;
  background: linear-gradient(160deg, #0ea5e9 0%, #075985 48%, #0f2f58 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-brand .brand-mark {
  width: min(360px, 100%);
  height: 170px;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.login-brand .brand-mark.logo img {
  border-radius: 10px;
}

.brand-mark {
  width: 122px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-3);
  font-weight: 800;
  font-size: 24px;
  overflow: hidden;
  border: 0;
}

.brand-mark.logo {
  background: transparent;
  padding: 0;
}

.login-brand .brand-mark.logo {
  background: transparent;
  padding: 0;
}

.brand-mark.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.login-brand h1 {
  margin: 42px 0 14px;
  font-size: 44px;
  letter-spacing: 0;
}

.login-brand p,
.helper,
.muted {
  color: var(--muted);
}

.login-brand p {
  color: #d7e2e5;
  line-height: 1.6;
  max-width: 28rem;
}

.login-panel {
  padding: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  color: #34464d;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7dc;
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 10px;
  background: white;
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 84px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #e8eef1;
  color: #10242a;
  font-weight: 700;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #075985);
  color: white;
}

.btn.dark {
  background: #22343a;
  color: white;
}

.btn.danger {
  background: var(--danger);
  color: white;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
}

header.topbar .top-right button#logout,
header.topbar .top-right #logout.btn.ghost,
header.topbar .top-right #header-backup,
header.topbar .top-right #header-xml-backup {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

header.topbar .top-right .central-top-action {
  background: #ffffff;
  color: #111827;
  border-color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

header.topbar .top-right .central-top-action:hover {
  background: #f3f4f6;
  color: #111827;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.pdv-shell {
  height: 100vh;
  min-height: 0;
  grid-template-rows: 1fr;
  overflow: hidden;
}

.pdv-shell > .topbar,
.pdv-shell > .mode-switch {
  display: none;
}

.pdv-shell > .content {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  background: linear-gradient(90deg, #075985, #0f3b70);
  color: white;
  border-bottom: 3px solid var(--accent);
}

.top-left,
.top-right,
.module-tabs,
.toolbar,
.actions,
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.company {
  font-weight: 800;
}

.mode-switch {
  background: linear-gradient(180deg, #eaf6ff, #dcebff);
  padding: 5px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.mode-switch button {
  border: 0;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.mode-switch button.active {
  background: white;
  box-shadow: 0 1px 4px rgba(17, 30, 36, 0.12);
}

.content {
  padding: 18px;
}

.layout {
  display: grid;
  grid-template-columns: 244px 1fr;
  gap: 18px;
}

.sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  align-self: start;
}

.nav-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  border-radius: 6px;
  font-weight: 750;
  color: #263940;
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.nav-btn.active,
.nav-btn:hover {
  background: linear-gradient(90deg, #dff3ff, #fff8c5);
  color: #075985;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(17, 30, 36, 0.05);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
}

.panel-body {
  padding: 16px;
}

.dashboard-screen {
  display: grid;
  gap: 0;
  min-height: calc(100vh - 206px);
  border: 1px solid #d8c77f;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f7;
}

.dashboard-titlebar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  color: #fff;
  background: linear-gradient(180deg, #343a40, #242a31);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-titlebar span {
  color: #d7e1ea;
}

.dashboard-module-ribbon {
  display: grid;
  grid-template-columns: repeat(10, minmax(92px, 1fr));
  gap: 1px;
  padding: 10px;
  border-bottom: 1px solid #d8c77f;
  background: #f8f2d2;
}

.dashboard-ribbon-button {
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 10px 8px;
  border: 1px solid #d6dce3;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f4f7fa);
  color: #061733;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(21, 32, 43, 0.06);
}

.dashboard-ribbon-button:hover {
  border-color: #d2a900;
  background: #fffdf4;
  transform: translateY(-1px);
}

.dashboard-ribbon-button.primary {
  border-color: #0f7891;
  box-shadow: inset 0 0 0 2px rgba(15, 120, 145, 0.12), 0 3px 8px rgba(21, 32, 43, 0.08);
}

.dashboard-ribbon-button strong {
  font-size: 14px;
  line-height: 1.1;
}

.dashboard-ribbon-button small {
  color: #5a6878;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-module-icon {
  width: 42px;
  height: 42px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #fff7bf;
  border: 1px solid #ebd36f;
  box-shadow: inset 0 -8px 0 rgba(250, 204, 21, 0.18);
}

.dashboard-module-icon::before,
.dashboard-module-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.icon-pdv::before {
  width: 22px;
  height: 26px;
  border: 3px solid #0f7891;
  border-radius: 5px;
}

.icon-pdv::after {
  width: 18px;
  height: 4px;
  bottom: 9px;
  background: #0f7891;
  box-shadow: 0 -9px 0 #0f7891;
}

.icon-people::before {
  width: 16px;
  height: 16px;
  top: 8px;
  border-radius: 50%;
  background: #0f7891;
  box-shadow: -12px 8px 0 -3px #72b8c7, 12px 8px 0 -3px #72b8c7;
}

.icon-people::after {
  width: 30px;
  height: 12px;
  bottom: 8px;
  border-radius: 12px 12px 4px 4px;
  background: #0f7891;
}

.icon-products::before {
  width: 24px;
  height: 18px;
  bottom: 9px;
  border-radius: 5px;
  background: #0f7891;
}

.icon-products::after {
  width: 8px;
  height: 26px;
  top: 7px;
  border-radius: 4px;
  background: #d4a700;
  box-shadow: 10px 0 0 #d4a700, -10px 0 0 #d4a700;
}

.icon-stock::before {
  width: 26px;
  height: 26px;
  border: 3px solid #0f7891;
  border-radius: 6px;
  transform: rotate(45deg);
}

.icon-stock::after {
  width: 22px;
  height: 3px;
  background: #d4a700;
  box-shadow: 0 8px 0 #d4a700, 0 -8px 0 #d4a700;
}

.icon-purchases::before {
  width: 28px;
  height: 18px;
  bottom: 9px;
  border: 3px solid #0f7891;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.icon-purchases::after {
  width: 22px;
  height: 12px;
  top: 9px;
  border-radius: 4px 4px 0 0;
  background: #d4a700;
}

.icon-sales::before {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: #0f7891;
}

.icon-sales::after {
  width: 18px;
  height: 18px;
  border: 3px solid #fff7bf;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.icon-finance::before {
  width: 28px;
  height: 18px;
  border-radius: 5px;
  background: #28a745;
}

.icon-finance::after {
  content: "$";
  position: static;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  z-index: 1;
}

.icon-fiscal::before {
  width: 24px;
  height: 30px;
  border-radius: 5px;
  background: #0f7891;
}

.icon-fiscal::after {
  width: 16px;
  height: 3px;
  background: #fff7bf;
  box-shadow: 0 7px 0 #fff7bf, 0 14px 0 #fff7bf;
}

.icon-reports::before {
  width: 28px;
  height: 24px;
  border-left: 4px solid #0f7891;
  border-bottom: 4px solid #0f7891;
}

.icon-reports::after {
  width: 5px;
  height: 18px;
  bottom: 10px;
  background: #d4a700;
  box-shadow: 9px -6px 0 #0f7891, 18px -12px 0 #d4a700;
}

.icon-settings::before {
  width: 28px;
  height: 28px;
  border: 5px solid #0f7891;
  border-radius: 50%;
}

.icon-settings::after {
  width: 36px;
  height: 6px;
  background: #d4a700;
  box-shadow: 0 14px 0 #d4a700, 0 -14px 0 #d4a700;
  transform: rotate(45deg);
}

.dashboard-context-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #c8ced4;
  background: #e4e7ea;
}

.dashboard-context-strip span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: #273341;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-work-area {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc, #eef3f7);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid #e8d69f;
  border-radius: 8px;
  background: #fffdf2;
  box-shadow: 0 8px 20px rgba(17, 30, 36, 0.06);
}

.dashboard-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #00738a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-hero h2 {
  margin: 0;
  font-size: 32px;
}

.dashboard-hero p,
.dashboard-section .panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.dashboard-status {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.dashboard-status.ok {
  border-color: #b7ebc8;
  background: #ecfdf3;
}

.dashboard-status.warn {
  border-color: #f2d38a;
  background: #fff7d6;
}

.dashboard-status small,
.dashboard-action-card span,
.dashboard-alert-card small,
.dashboard-alert-card span,
.dashboard-kpis .kpi span {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-status strong {
  font-size: 22px;
}

.dashboard-alert-card {
  min-height: 96px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.dashboard-alert-card:hover {
  border-color: #d8b23a;
  box-shadow: 0 10px 24px rgba(17, 30, 36, 0.08);
}

.dashboard-alert-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-alert-card strong {
  font-size: 28px;
}

.dashboard-kpis .kpi {
  min-height: 126px;
}

@media (max-width: 1100px) {
  .dashboard-module-ribbon {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
  }

  .dashboard-kpis.grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-alert-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-hero,
  .dashboard-kpis.grid.four,
  .dashboard-alert-list {
    grid-template-columns: 1fr;
  }

  .dashboard-module-ribbon {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .dashboard-hero {
    padding: 18px;
  }

  .dashboard-hero h2 {
    font-size: 26px;
  }
}

/* Totem Tortela - fluxo de autoatendimento */
.tortela-kiosk-page {
  min-height: 100vh;
  background: #07182d;
  color: #07182d;
  overflow: hidden;
}

.tortela-kiosk-page button {
  touch-action: manipulation;
}

.kiosk-stage,
.kiosk-app {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(250, 204, 21, 0.5), transparent 26%),
    radial-gradient(circle at 86% 92%, rgba(255, 234, 90, 0.48), transparent 28%),
    linear-gradient(145deg, #07182d 0%, #0c2442 44%, #ffd21f 100%);
}

.kiosk-stage::before,
.kiosk-app::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/tortela/totem-bg.png") top center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.kiosk-stage::after,
.kiosk-app::after {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -260px;
  bottom: -260px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(250, 204, 21, 0.15), 0 0 0 92px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.kiosk-top {
  position: relative;
  z-index: 2;
  height: 104px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 22px;
  padding: 18px 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(7, 24, 45, 0.18);
}

.kiosk-logo-button,
.kiosk-cart-pill {
  border: 0;
  border-radius: 22px;
  background: #fff7c7;
  color: #07182d;
  font-weight: 900;
}

.kiosk-logo-button {
  height: 72px;
  display: grid;
  place-items: center;
}

.kiosk-logo-button img {
  max-width: 146px;
}

.kiosk-cart-pill {
  min-height: 72px;
  font-size: 17px;
}

.kiosk-cart-pill strong {
  font-size: 22px;
}

.kiosk-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.kiosk-progress span {
  min-height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef3f8;
  color: #607087;
  font-weight: 900;
}

.kiosk-progress .active {
  background: linear-gradient(135deg, #ffd21f, #fff26a);
  color: #07182d;
}

.kiosk-welcome {
  display: grid;
  grid-template-columns: minmax(420px, 760px) minmax(280px, 420px);
  gap: 30px;
  align-items: end;
  justify-content: center;
  padding: 72px 42px;
}

.kiosk-welcome-card,
.kiosk-welcome-side,
.kiosk-choice-panel,
.kiosk-custom-card,
.kiosk-cart-panel,
.kiosk-payment-panel,
.kiosk-done-card {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(7, 24, 45, 0.28);
}

.kiosk-welcome-card {
  min-height: 760px;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 214, 0.98) 58%),
    url("../assets/tortela/totem-bg.png") top center / cover no-repeat;
}

.kiosk-welcome-card img,
.kiosk-done-card img {
  width: 240px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.5);
  margin-bottom: auto;
}

.kiosk-welcome-card span,
.kiosk-choice-panel span,
.kiosk-custom-form > span,
.kiosk-section-title span,
.kiosk-done-card span,
.kiosk-menu-banner span {
  color: #00749a;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.kiosk-welcome-card h1,
.kiosk-choice-panel h1,
.kiosk-custom-form h1,
.kiosk-section-title h1,
.kiosk-done-card h1,
.kiosk-menu-banner h1 {
  margin: 0;
  color: #07182d;
  line-height: 1.02;
}

.kiosk-welcome-card h1 {
  font-size: 72px;
}

.kiosk-welcome-card p,
.kiosk-welcome-side p,
.kiosk-choice-panel p,
.kiosk-menu-product p,
.kiosk-done-card p {
  color: #53647a;
  font-size: 22px;
  line-height: 1.42;
}

.kiosk-welcome-side {
  padding: 34px;
  min-height: 360px;
  align-self: center;
  display: grid;
  align-content: center;
  gap: 16px;
  background: linear-gradient(160deg, #07182d, #10355e);
  color: #fff;
}

.kiosk-welcome-side strong {
  font-size: 36px;
}

.kiosk-welcome-side p {
  color: #dce9f7;
}

.kiosk-mega-action,
.kiosk-secondary-action {
  min-height: 78px;
  border: 0;
  border-radius: 24px;
  padding: 0 30px;
  font-size: 24px;
  font-weight: 950;
}

.kiosk-mega-action {
  background: linear-gradient(135deg, #ffd21f, #fff26a);
  color: #07182d;
  box-shadow: 0 18px 42px rgba(250, 204, 21, 0.32);
}

.kiosk-mega-action:disabled {
  opacity: 0.45;
}

.kiosk-secondary-action {
  background: #07182d;
  color: #fff;
}

.kiosk-choice-stage,
.kiosk-cart-stage,
.kiosk-payment-stage,
.kiosk-customize,
.kiosk-done-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.kiosk-choice-panel,
.kiosk-cart-panel,
.kiosk-payment-panel {
  width: min(1080px, calc(100vw - 64px));
  margin: 44px auto;
  padding: 46px;
  display: grid;
  gap: 28px;
  align-self: center;
}

.kiosk-choice-panel h1,
.kiosk-section-title h1,
.kiosk-custom-form h1 {
  font-size: 52px;
}

.kiosk-choice-grid,
.kiosk-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.kiosk-choice,
.kiosk-pay-grid button,
.kiosk-upsell-card,
.kiosk-toggle-row button,
.kiosk-extra-grid button {
  border: 0;
  border-radius: 28px;
  background: #f5f8fb;
  color: #07182d;
  min-height: 180px;
  padding: 26px;
  display: grid;
  gap: 10px;
  text-align: left;
  box-shadow: inset 0 0 0 1px #dce7f0;
}

.kiosk-choice strong,
.kiosk-pay-grid strong,
.kiosk-upsell-card strong {
  font-size: 30px;
}

.kiosk-choice small,
.kiosk-pay-grid small,
.kiosk-upsell-card small {
  color: #607087;
  font-weight: 800;
  font-size: 17px;
}

.kiosk-choice.active,
.kiosk-pay-grid .active,
.kiosk-toggle-row .active,
.kiosk-extra-grid .active,
.kiosk-upsell-card:active {
  background: linear-gradient(135deg, #ffd21f, #fff26a);
  box-shadow: inset 0 0 0 3px #07182d;
}

.kiosk-input-label {
  display: grid;
  gap: 10px;
  font-size: 18px;
  font-weight: 950;
}

.kiosk-input-label input,
.kiosk-input-label select {
  min-height: 70px;
  border-radius: 22px;
  border: 2px solid #dce7f0;
  padding: 0 22px;
  font-size: 24px;
  background: #fff;
}

.kiosk-action-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
}

.kiosk-menu-layout {
  position: relative;
  z-index: 1;
  height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) 360px;
  gap: 20px;
  padding: 22px;
}

.kiosk-sidebar,
.kiosk-menu-area,
.kiosk-mini-cart {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(7, 24, 45, 0.2);
}

.kiosk-sidebar {
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.kiosk-sidebar button {
  min-height: 76px;
  border: 0;
  border-radius: 20px;
  background: #f1f6fb;
  color: #07182d;
  font-weight: 950;
  font-size: 18px;
}

.kiosk-sidebar .active {
  background: #ffd21f;
}

.kiosk-menu-area {
  padding: 26px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
}

.kiosk-menu-banner {
  min-height: 136px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, #07182d, #123a65);
  color: #fff;
}

.kiosk-menu-banner h1 {
  color: #fff;
  font-size: 44px;
}

.kiosk-menu-banner strong {
  color: #ffd21f;
  font-size: 22px;
}

.kiosk-menu-grid {
  overflow: auto;
  padding-right: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  align-content: start;
}

.kiosk-menu-product {
  min-height: 250px;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 16px;
  border-radius: 28px;
  padding: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dce7f0;
}

.kiosk-product-photo,
.kiosk-custom-photo,
.kiosk-upsell-photo {
  width: 100%;
  height: 100%;
  min-height: 174px;
  object-fit: cover;
  border-radius: 22px;
  background: #fff7c7;
}

.kiosk-photo-fallback {
  display: grid;
  place-items: center;
  color: #07182d;
  font-weight: 950;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(135deg, #ffd21f, #fff5a2);
}

.kiosk-menu-product h2 {
  margin: 4px 0;
  font-size: 28px;
  line-height: 1.1;
}

.kiosk-menu-product strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.kiosk-menu-product button {
  grid-column: 1 / -1;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: #07182d;
  color: #fff;
  font-weight: 950;
  font-size: 20px;
}

.kiosk-mini-cart {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.kiosk-mini-cart h2 {
  margin: 0;
  font-size: 32px;
}

.kiosk-cart-list {
  display: grid;
  gap: 12px;
  overflow: auto;
}

.kiosk-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: #f7f9fc;
  box-shadow: inset 0 0 0 1px #dce7f0;
}

.kiosk-cart-item small {
  display: block;
  color: #607087;
  font-weight: 800;
}

.kiosk-cart-item b {
  font-size: 22px;
}

.kiosk-stepper {
  display: grid;
  grid-template-columns: 48px 42px 48px;
  align-items: center;
  text-align: center;
  font-weight: 950;
}

.kiosk-stepper.big {
  grid-template-columns: 64px 58px 64px;
  font-size: 24px;
}

.kiosk-stepper button,
.kiosk-remove {
  border: 0;
  border-radius: 16px;
  min-height: 46px;
  background: #07182d;
  color: #fff;
  font-weight: 950;
}

.kiosk-remove {
  grid-column: 1 / -1;
  background: #fff0f0;
  color: #b91c1c;
}

.kiosk-total-line {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 2px solid #edf2f7;
  color: #607087;
  font-weight: 950;
}

.kiosk-total-line strong {
  color: #07182d;
  font-size: 34px;
}

.kiosk-total-line.large strong {
  font-size: 48px;
}

.kiosk-custom-card {
  width: min(1180px, calc(100vw - 64px));
  margin: 34px auto;
  padding: 28px;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 28px;
}

.kiosk-custom-media {
  min-height: 610px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff7c7;
}

.kiosk-custom-photo {
  min-height: 610px;
}

.kiosk-custom-form {
  display: grid;
  gap: 20px;
}

.kiosk-toggle-row,
.kiosk-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kiosk-toggle-row button,
.kiosk-extra-grid button {
  min-height: 96px;
  font-size: 21px;
  font-weight: 950;
}

.kiosk-extra-grid button small {
  color: inherit;
}

.kiosk-custom-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.kiosk-upsell-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kiosk-upsell-card {
  min-height: 320px;
}

.kiosk-upsell-photo {
  min-height: 150px;
}

.kiosk-section-title {
  display: grid;
  gap: 8px;
}

.kiosk-review-meta,
.kiosk-status-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kiosk-review-meta strong,
.kiosk-status-track span {
  min-height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f7f9fc;
  box-shadow: inset 0 0 0 1px #dce7f0;
}

.kiosk-status-track .active {
  background: #ffd21f;
}

.kiosk-payment-panel {
  width: min(980px, calc(100vw - 64px));
}

.kiosk-pay-grid button {
  min-height: 210px;
  text-align: center;
  place-items: center;
}

.kiosk-done-stage {
  place-items: center;
  padding: 42px;
}

.kiosk-done-card {
  width: min(760px, 100%);
  padding: 52px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.kiosk-done-card img {
  margin: 0;
}

.kiosk-done-card h1 {
  font-size: 132px;
  line-height: 0.9;
}

.kiosk-empty-state {
  min-height: 150px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #f7f9fc;
  color: #607087;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .kiosk-top,
  .kiosk-menu-layout,
  .kiosk-welcome,
  .kiosk-custom-card,
  .kiosk-choice-grid,
  .kiosk-pay-grid,
  .kiosk-upsell-grid,
  .kiosk-action-row {
    grid-template-columns: 1fr;
  }

  .kiosk-menu-layout {
    height: auto;
  }

  .kiosk-menu-grid {
    grid-template-columns: 1fr;
  }
}

.kiosk-mcd-welcome {
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 210, 31, 0.32), transparent 26%),
    radial-gradient(circle at 90% 88%, rgba(255, 210, 31, 0.22), transparent 30%),
    linear-gradient(160deg, #08111f 0%, #10243c 56%, #07182d 100%);
}

.kiosk-mcd-welcome::before {
  opacity: 0.08;
}

.kiosk-mcd-panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 52px));
  min-height: min(1080px, calc(100vh - 52px));
  border-radius: 34px;
  padding: 34px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 221, 0.98)),
    url("../assets/tortela/totem-bg.png") top center / cover no-repeat;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.kiosk-mcd-top,
.kiosk-mcd-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kiosk-mcd-top img {
  width: 190px;
  max-height: 112px;
  object-fit: contain;
  padding: 12px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.55);
}

.kiosk-mcd-top button,
.kiosk-mcd-bottom button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: #07182d;
  color: #fff;
  font-weight: 950;
}

.kiosk-mcd-title {
  align-self: end;
  display: grid;
  gap: 12px;
  text-align: center;
}

.kiosk-mcd-title span {
  color: #00749a;
  font-weight: 950;
  text-transform: uppercase;
}

.kiosk-mcd-title h1 {
  margin: 0;
  color: #07182d;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 0.98;
}

.kiosk-mcd-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-self: center;
}

.kiosk-mcd-choice {
  min-height: 300px;
  border: 0;
  border-radius: 30px;
  padding: 28px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  background: #fff;
  color: #07182d;
  box-shadow: 0 18px 48px rgba(7, 24, 45, 0.18), inset 0 0 0 2px #edf2f7;
}

.kiosk-mcd-choice:active,
.kiosk-mcd-choice:hover {
  background: linear-gradient(135deg, #ffd21f, #fff26a);
  box-shadow: 0 20px 52px rgba(250, 204, 21, 0.28), inset 0 0 0 4px #07182d;
}

.kiosk-mcd-icon {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: #07182d;
  color: #ffd21f;
  font-size: 26px;
  font-weight: 950;
}

.kiosk-mcd-choice strong {
  font-size: 34px;
  line-height: 1.05;
}

.kiosk-mcd-choice small {
  color: #607087;
  font-size: 18px;
  font-weight: 850;
}

.kiosk-mcd-bottom {
  justify-content: center;
}

.kiosk-mcd-bottom button {
  background: #eef3f8;
  color: #07182d;
}

@media (max-width: 760px) {
  .kiosk-mcd-panel {
    min-height: calc(100vh - 24px);
    width: calc(100vw - 24px);
    padding: 22px;
  }

  .kiosk-mcd-choice-grid {
    grid-template-columns: 1fr;
  }

  .kiosk-mcd-choice {
    min-height: 210px;
  }
}

/* Ajuste final: o totem deve ser uma experiencia vertical, mesmo aberto em monitor horizontal. */
.tortela-kiosk-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(250, 204, 21, 0.16), transparent 24%),
    radial-gradient(circle at 84% 82%, rgba(250, 204, 21, 0.14), transparent 28%),
    #06101f;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tortela-kiosk-page #kiosk-app {
  width: min(100vw, calc(100vh * 0.5625));
  height: min(100vh, calc(100vw * 1.7778));
  max-width: 560px;
  max-height: 996px;
  background: #07182d;
  overflow: hidden;
  box-shadow: 0 0 0 10px #111827, 0 30px 90px rgba(0, 0, 0, 0.55);
}

.tortela-kiosk-page .kiosk-stage,
.tortela-kiosk-page .kiosk-app {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.tortela-kiosk-page .kiosk-mcd-welcome {
  padding: 18px;
}

.tortela-kiosk-page .kiosk-mcd-panel {
  width: 100%;
  min-height: 100%;
  border-radius: 30px;
  padding: 22px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
}

.tortela-kiosk-page .kiosk-mcd-title {
  align-self: center;
}

.tortela-kiosk-page .kiosk-mcd-title h1 {
  font-size: 38px;
  line-height: 1;
}

.tortela-kiosk-page .kiosk-mcd-choice-grid,
.tortela-kiosk-page .kiosk-choice-grid,
.tortela-kiosk-page .kiosk-pay-grid,
.tortela-kiosk-page .kiosk-upsell-grid,
.tortela-kiosk-page .kiosk-action-row,
.tortela-kiosk-page .kiosk-custom-card {
  grid-template-columns: 1fr;
}

.tortela-kiosk-page .kiosk-mcd-top img {
  width: 148px;
  max-height: 86px;
  padding: 8px 12px;
}

.tortela-kiosk-page .kiosk-mcd-top button,
.tortela-kiosk-page .kiosk-mcd-bottom button {
  min-height: 44px;
  padding: 0 16px;
}

.tortela-kiosk-page .kiosk-mcd-choice {
  min-height: 154px;
  border-radius: 24px;
  padding: 20px;
}

.tortela-kiosk-page .kiosk-mcd-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 18px;
}

.tortela-kiosk-page .kiosk-mcd-choice strong {
  font-size: 27px;
}

.tortela-kiosk-page .kiosk-mcd-choice small {
  font-size: 15px;
}

.tortela-kiosk-page .kiosk-mcd-bottom {
  flex-wrap: wrap;
}

.tortela-kiosk-page .kiosk-help-box {
  padding: 16px 18px;
  border-radius: 18px;
  background: #07182d;
  color: #fff;
  font-weight: 800;
  line-height: 1.35;
}

.tortela-kiosk-page .kiosk-mcd-bottom .active,
.tortela-kiosk-page .kiosk-mcd-top .active {
  background: #ffd21f;
  color: #07182d;
}

.tortela-kiosk-page .kiosk-mcd-welcome.accessible .kiosk-mcd-panel {
  padding-top: 90px;
}

.tortela-kiosk-page .kiosk-mcd-welcome.accessible .kiosk-mcd-title h1 {
  font-size: 48px;
}

.tortela-kiosk-page .kiosk-top {
  height: 82px;
  grid-template-columns: 102px minmax(0, 1fr) 96px;
  gap: 8px;
  padding: 12px;
}

.tortela-kiosk-page .kiosk-logo-button,
.tortela-kiosk-page .kiosk-cart-pill {
  min-height: 54px;
  font-size: 12px;
}

.tortela-kiosk-page .kiosk-logo-button img {
  max-width: 84px;
}

.tortela-kiosk-page .kiosk-progress {
  gap: 4px;
}

.tortela-kiosk-page .kiosk-progress span {
  min-height: 30px;
  font-size: 9px;
}

.tortela-kiosk-page .kiosk-menu-layout {
  height: calc(100% - 82px);
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 190px;
  padding: 10px;
  gap: 10px;
}

.tortela-kiosk-page .kiosk-sidebar {
  grid-row: 1 / 3;
  border-radius: 22px;
  padding: 8px;
}

.tortela-kiosk-page .kiosk-sidebar button {
  min-height: 50px;
  font-size: 12px;
}

.tortela-kiosk-page .kiosk-menu-area {
  border-radius: 22px;
  padding: 12px;
}

.tortela-kiosk-page .kiosk-menu-banner {
  min-height: 74px;
  padding: 12px;
}

.tortela-kiosk-page .kiosk-menu-banner h1 {
  font-size: 26px;
}

.tortela-kiosk-page .kiosk-menu-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.tortela-kiosk-page .kiosk-menu-product {
  min-height: 162px;
  grid-template-columns: 104px minmax(0, 1fr);
  border-radius: 22px;
  padding: 12px;
}

.tortela-kiosk-page .kiosk-menu-product h2 {
  font-size: 19px;
}

.tortela-kiosk-page .kiosk-menu-product p {
  display: none;
}

.tortela-kiosk-page .kiosk-product-photo {
  min-height: 104px;
}

.tortela-kiosk-page .kiosk-mini-cart {
  grid-column: 2;
  min-height: 0;
  border-radius: 22px;
  padding: 12px;
}

.tortela-kiosk-page .kiosk-mini-cart .kiosk-cart-list {
  max-height: 80px;
}

.tortela-kiosk-page .kiosk-choice-panel,
.tortela-kiosk-page .kiosk-cart-panel,
.tortela-kiosk-page .kiosk-payment-panel,
.tortela-kiosk-page .kiosk-custom-card {
  width: calc(100% - 24px);
  margin: 12px;
  padding: 18px;
  max-height: calc(100% - 106px);
  overflow: auto;
}

.tortela-kiosk-page .kiosk-choice-panel h1,
.tortela-kiosk-page .kiosk-section-title h1,
.tortela-kiosk-page .kiosk-custom-form h1 {
  font-size: 31px;
}

.tortela-kiosk-page .kiosk-choice,
.tortela-kiosk-page .kiosk-pay-grid button,
.tortela-kiosk-page .kiosk-upsell-card {
  min-height: 112px;
}

.tortela-kiosk-page .kiosk-custom-media,
.tortela-kiosk-page .kiosk-custom-photo {
  min-height: 260px;
}

.tortela-kiosk-page .kiosk-done-card {
  width: calc(100% - 36px);
  padding: 34px;
}

.tortela-kiosk-page .kiosk-done-card h1 {
  font-size: 86px;
}

.tortela-kiosk-page,
.tortela-display-page {
  min-height: 100vh;
  background: #061a32;
  color: #07162f;
  overflow-x: hidden;
}

.kiosk-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 34vw) minmax(420px, 1fr) minmax(280px, 28vw);
  gap: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 88%, rgba(250, 204, 21, 0.95) 0 0, transparent 22%),
    radial-gradient(circle at 96% 6%, rgba(255, 255, 255, 0.36) 0 0, transparent 20%),
    linear-gradient(135deg, rgba(250, 204, 21, 0.92), rgba(255, 255, 255, 0.95) 44%, rgba(8, 33, 64, 0.98));
  position: relative;
}

.kiosk-shell::before,
.display-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url("../assets/tortela/totem-bg.png") top center / cover no-repeat,
    linear-gradient(135deg, #facc15, #fff7cc);
  opacity: 0.2;
  pointer-events: none;
}

.kiosk-shell::after,
.display-shell::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  right: -140px;
  bottom: -160px;
  border: 2px solid rgba(250, 204, 21, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(250, 204, 21, 0.08), 0 0 0 72px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.kiosk-hero,
.kiosk-menu,
.kiosk-order,
.kiosk-payment-card,
.kiosk-success-card,
.display-column {
  position: relative;
  z-index: 1;
}

.kiosk-hero {
  min-height: calc(100vh - 56px);
  border-radius: 28px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 183, 0.86)),
    url("../assets/tortela/totem-bg.png") top center / cover no-repeat;
  box-shadow: 0 28px 70px rgba(6, 26, 50, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.kiosk-brand {
  width: 220px;
  min-height: 116px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.44);
  margin-bottom: auto;
}

.kiosk-brand img,
.kiosk-success-card img,
.display-header img {
  max-width: 180px;
  height: auto;
}

.kiosk-hero span,
.display-header span {
  color: #00749a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.kiosk-hero h1 {
  font-size: 46px;
  line-height: 1.04;
  margin: 0;
  color: #061a32;
}

.kiosk-hero p {
  max-width: 410px;
  font-size: 20px;
  color: #25364f;
}

.kiosk-menu {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.kiosk-category-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.kiosk-category-row button,
.kiosk-payment-methods button {
  border: 0;
  border-radius: 999px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.86);
  color: #061a32;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(6, 26, 50, 0.12);
}

.kiosk-category-row .active,
.kiosk-payment-methods .active,
.kiosk-primary {
  background: linear-gradient(135deg, #facc15, #fff15f);
  color: #061a32;
}

.kiosk-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
  align-content: start;
}

.kiosk-product {
  min-height: 212px;
  border: 0;
  border-radius: 26px;
  padding: 22px;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  color: #061a32;
  box-shadow: 0 18px 42px rgba(6, 26, 50, 0.16);
  display: grid;
  gap: 10px;
  align-content: space-between;
}

.kiosk-product-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #061a32;
  color: #facc15;
  font-weight: 900;
}

.kiosk-product strong {
  font-size: 24px;
  line-height: 1.1;
}

.kiosk-product small,
.kiosk-cart-row small {
  color: #607089;
  font-weight: 800;
}

.kiosk-product b {
  font-size: 28px;
}

.kiosk-order,
.kiosk-payment-card,
.kiosk-success-card {
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 70px rgba(6, 26, 50, 0.2);
}

.kiosk-order {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kiosk-order h2,
.kiosk-payment-card h1 {
  margin: 0;
  font-size: 34px;
}

.kiosk-cart-list,
.kiosk-review {
  display: grid;
  gap: 12px;
}

.kiosk-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fff8d6;
}

.kiosk-stepper {
  display: grid;
  grid-template-columns: 46px 34px 46px;
  align-items: center;
  text-align: center;
  font-weight: 900;
}

.kiosk-stepper button,
.kiosk-back {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #061a32;
  color: #fff;
  font-weight: 900;
}

.kiosk-total {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid #eadca1;
}

.kiosk-total span {
  color: #607089;
  font-weight: 900;
}

.kiosk-total strong {
  font-size: 34px;
}

.kiosk-primary {
  min-height: 72px;
  border: 0;
  border-radius: 20px;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(250, 204, 21, 0.28);
}

.kiosk-primary:disabled {
  opacity: 0.48;
}

.kiosk-payment-shell {
  grid-template-columns: minmax(320px, 760px);
  place-content: center;
}

.kiosk-payment-card {
  display: grid;
  gap: 22px;
}

.kiosk-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kiosk-cpf {
  display: grid;
  gap: 8px;
  color: #061a32;
  font-weight: 900;
}

.kiosk-cpf input {
  min-height: 60px;
  border-radius: 16px;
  border: 1px solid #eadca1;
  padding: 0 18px;
  font-size: 22px;
}

.kiosk-success {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #facc15, #fff7cc 42%, #061a32);
}

.kiosk-success-card {
  width: min(680px, 100%);
  text-align: center;
  display: grid;
  gap: 18px;
}

.kiosk-success-card h1 {
  margin: 0;
  font-size: 128px;
  line-height: 0.9;
  color: #061a32;
}

.display-shell {
  min-height: 100vh;
  padding: 34px;
  background: linear-gradient(135deg, #061a32, #08294f 48%, #facc15);
  position: relative;
}

.display-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  color: #fff;
}

.display-header img {
  padding: 14px;
  border-radius: 18px;
  background: #fff8d6;
}

.display-header h1 {
  margin: 0;
  font-size: 48px;
}

.display-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.display-column {
  min-height: calc(100vh - 180px);
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
}

.display-column.ready {
  background: rgba(255, 248, 214, 0.96);
}

.display-column h2 {
  margin: 0 0 20px;
  font-size: 46px;
  color: #061a32;
}

.display-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.display-ticket {
  min-height: 160px;
  border-radius: 26px;
  padding: 18px;
  display: grid;
  place-items: center;
  background: #061a32;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(6, 26, 50, 0.18);
}

.display-column.ready .display-ticket {
  background: linear-gradient(135deg, #facc15, #fff15f);
  color: #061a32;
}

.display-ticket strong {
  font-size: 74px;
  line-height: 0.95;
}

.display-ticket span {
  font-size: 22px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .kiosk-shell {
    grid-template-columns: 1fr;
  }

  .kiosk-hero,
  .kiosk-order {
    min-height: auto;
  }

  .kiosk-products,
  .display-grid {
    grid-template-columns: 1fr;
  }
}

.product-hidden-form {
  display: none;
}

.erp-screen {
  min-height: calc(100vh - 188px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.desktop-module-screen {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  border: 1px solid #d8c77f;
  border-radius: 8px;
  overflow: hidden;
  background: #eef3f7;
}

.desktop-module-titlebar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  color: #fff;
  background: linear-gradient(180deg, #343a40, #242a31);
  font-size: 13px;
  font-weight: 800;
}

.desktop-module-titlebar span {
  color: #d7e1ea;
}

.desktop-module-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 1px;
  padding: 10px;
  border-bottom: 1px solid #d8c77f;
  background: #f8f2d2;
}

.desktop-ribbon-button {
  min-height: 98px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 10px 8px;
  border: 1px solid #d6dce3;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f4f7fa);
  color: #061733;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(21, 32, 43, 0.06);
}

.desktop-ribbon-button:hover {
  border-color: #d2a900;
  background: #fffdf4;
  transform: translateY(-1px);
}

.desktop-ribbon-button.primary {
  border-color: #0f7891;
  box-shadow: inset 0 0 0 2px rgba(15, 120, 145, 0.12), 0 3px 8px rgba(21, 32, 43, 0.08);
}

.desktop-ribbon-button strong {
  font-size: 14px;
  line-height: 1.1;
}

.desktop-ribbon-button small {
  color: #5a6878;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.desktop-context-strip {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1px solid #c8ced4;
  background: #edf1f5;
  overflow-x: auto;
}

.desktop-context-strip button,
.desktop-context-strip span {
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #566476;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-context-strip button {
  cursor: pointer;
}

.desktop-context-strip button:hover {
  color: #061733;
  background: rgba(255, 255, 255, 0.68);
}

.desktop-context-strip button.active {
  color: #9a6d00;
  border-bottom-color: #d6a900;
  background: rgba(255, 248, 213, 0.72);
}

.desktop-context-strip .desktop-context-metric {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border-bottom-color: transparent;
  color: #061733;
  background: rgba(255, 255, 255, 0.58);
  cursor: default;
}

.desktop-work-area {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #f8fafc, #eef3f7);
}

.desktop-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.desktop-summary-strip div {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d8c77f;
  border-radius: 6px;
  background: #fffdf2;
}

.desktop-summary-strip span {
  display: block;
  color: #5a6878;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.desktop-summary-strip strong {
  display: block;
  margin-top: 5px;
  color: #061733;
  font-size: 24px;
  line-height: 1;
}

.desktop-filter-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #c8ced4;
  border-radius: 6px;
  background: #e2e5e8;
}

.desktop-filter-panel p {
  margin: 0;
  color: #344255;
  font-weight: 700;
}

.filter-caption {
  color: #061733;
  font-weight: 900;
}

.desktop-filter-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 8px;
}

.desktop-record-tabs {
  padding: 0;
  border: 0;
  background: transparent;
}

.desktop-record-body {
  padding: 0;
  background: transparent;
}

.desktop-action-bar {
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #c8ced4;
  background: #dfe2e5;
}

.desktop-command {
  min-height: 58px;
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #b9c1ca;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f3f5f7);
  color: #243244;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(21, 32, 43, 0.08);
}

.desktop-command span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #0f7891;
  color: #fff;
  font-weight: 900;
}

.desktop-command.primary span {
  background: #1f9d55;
}

.desktop-command.danger span {
  background: #c7372f;
}

.erp-screen .panel-head p,
.stock-screen .panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.erp-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px 20px 0;
  background: #fff;
}

.erp-overview div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdfe);
}

.erp-overview span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.erp-overview strong {
  display: block;
  margin-top: 7px;
  color: #061733;
  font-size: 24px;
  line-height: 1;
}

.stock-overview div:nth-child(2) strong,
.people-overview div:nth-child(4) strong {
  color: #9a6d00;
}

.erp-search-strip {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 8px;
}

.erp-search-strip label {
  font-weight: 800;
  color: var(--text);
}

.erp-search-line {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.compact-tabs {
  padding-top: 4px;
}

.erp-body {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  background: #fffdf7;
}

.erp-table {
  min-height: 0;
  overflow: auto;
}

.erp-table table {
  min-width: 980px;
}

.erp-table tr[data-select-person],
.erp-table tr[data-select-product] {
  cursor: pointer;
}

.erp-table tr.selected-row td {
  background: rgba(250, 204, 21, 0.28);
  font-weight: 800;
}

.erp-edit-panel {
  max-height: 340px;
  overflow: auto;
}

.people-screen .erp-edit-panel,
.stock-screen .form-card {
  border-color: #e9d9aa;
  background: #ffffff;
}

.people-screen {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.didactic-head {
  align-items: flex-start;
}

.people-quick-start {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px 20px 0;
  background: #fff;
}

.quick-action-card {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.quick-action-card:hover {
  border-color: #d8b23a;
  box-shadow: 0 10px 24px rgba(17, 30, 36, 0.08);
}

.quick-action-card.primary {
  border-color: #0f7891;
  background: #0f7891;
  color: #fff;
}

.quick-action-card strong {
  font-size: 18px;
}

.quick-action-card span {
  color: var(--muted);
  font-weight: 700;
}

.quick-action-card.primary span {
  color: rgba(255, 255, 255, 0.82);
}

.people-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
}

.people-workflow div {
  padding: 12px;
  border: 1px solid #e8d69f;
  border-radius: 8px;
  background: #fffdf5;
}

.people-workflow strong,
.people-workflow span,
.people-section-title p,
.people-search-strip span {
  display: block;
}

.people-workflow strong {
  color: #061733;
  font-size: 14px;
}

.people-workflow span,
.people-section-title p,
.people-search-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.people-search-strip {
  grid-template-columns: minmax(240px, 0.42fr) minmax(320px, 1fr);
  align-items: end;
  padding-left: 20px;
  padding-right: 20px;
}

.people-body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(300px, 0.9fr) auto;
  align-items: stretch;
}

.people-list-panel,
.people-edit-panel {
  min-height: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #c8ced4;
  border-radius: 6px;
  background: #fff;
}

.people-list-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.people-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.people-section-title h3,
.person-form-section h4 {
  margin: 0;
}

.people-edit-panel {
  max-height: none;
  overflow: auto;
  align-content: start;
}

.person-form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.person-form-section.required {
  border-color: #d5c078;
  background: #fffdf5;
}

.person-form-section .wide-field {
  grid-column: span 2;
}

.products-screen {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.product-quick-start {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
  padding: 16px 20px 0;
  background: #fff;
}

.product-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
}

.product-workflow div {
  padding: 12px;
  border: 1px solid #e8d69f;
  border-radius: 8px;
  background: #fffdf5;
}

.product-workflow strong,
.product-workflow span,
.product-section-title p,
.product-search-strip span {
  display: block;
}

.product-workflow strong {
  color: #061733;
  font-size: 14px;
}

.product-workflow span,
.product-section-title p,
.product-search-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-search-strip {
  grid-template-columns: minmax(240px, 0.42fr) minmax(320px, 1fr);
  align-items: end;
  padding-left: 20px;
  padding-right: 20px;
}

.product-body-dados {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
}

.product-body-tab {
  grid-template-rows: auto auto;
  align-items: start;
}

.product-edit-panel,
.product-list-panel {
  min-height: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #c8ced4;
  border-radius: 6px;
  background: #fff;
}

.product-list-panel {
  grid-template-rows: auto auto;
}

.product-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.product-section-title h3,
.product-form-section h4 {
  margin: 0;
}

.product-form-card {
  max-height: none;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.product-form-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-form-section.required {
  border-color: #d5c078;
  background: #fffdf5;
}

.product-form-section .wide-field {
  grid-column: span 2;
}

.product-overview div:nth-child(3) strong,
.product-overview div:nth-child(4) strong {
  color: #9a6d00;
}

@media (max-width: 1180px) {
  .people-body,
  .people-search-strip,
  .product-body-dados,
  .product-search-strip {
    grid-template-columns: 1fr;
  }

  .desktop-filter-line {
    grid-template-columns: 1fr;
  }

  .people-edit-panel {
    max-height: 620px;
  }

  .product-form-card {
    max-height: 680px;
  }
}

@media (max-width: 760px) {
  .people-quick-start,
  .people-workflow,
  .product-quick-start,
  .product-workflow {
    grid-template-columns: 1fr;
  }

  .person-form-section .wide-field,
  .product-form-section .wide-field {
    grid-column: auto;
  }

  .desktop-action-bar {
    align-items: stretch;
  }

  .desktop-command {
    width: 100%;
  }
}

.stock-screen .panel-body {
  background: transparent;
}

.stock-screen .panel-body > .form-card:first-child {
  border-left: 4px solid #f2c300;
}

.stock-screen {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.stock-work-area {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.stock-desktop-body {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 0;
  overflow: auto;
}

.stock-desktop-body > .form-card,
.stock-desktop-body > .table-wrap,
.stock-desktop-body > .grid {
  min-height: 0;
  border: 1px solid #c8ced4;
  border-radius: 6px;
  background: #fff;
}

.stock-desktop-body > .table-wrap {
  min-height: 180px;
  overflow: auto;
}

.stock-desktop-body h3 {
  margin-top: 0;
}

.stock-desktop-body .grid:has(.erp-table) {
  border: 0;
  background: transparent;
}

.purchases-screen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.purchases-work-area {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.purchases-desktop-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(260px, 1fr);
  gap: 12px;
  overflow: auto;
}

.purchase-document-card,
.purchase-items-card,
.purchase-history-card {
  border: 1px solid #c8ced4;
  border-radius: 6px;
  background: #fff;
}

.purchase-document-card {
  align-content: start;
  border-left: 4px solid #f2c300;
}

.purchase-history-card {
  min-height: 220px;
  overflow: auto;
}

.purchase-document-card:focus,
.purchase-items-card:focus,
.purchase-history-card:focus {
  outline: 3px solid rgba(214, 169, 0, 0.32);
  outline-offset: 2px;
}

.purchase-document-card h3,
.purchase-items-card h3 {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .purchases-desktop-body,
  .purchase-document-card,
  .purchase-items-card,
  .purchase-history-card {
    grid-column: auto;
    grid-row: auto;
  }

  .purchases-desktop-body {
    grid-template-columns: 1fr;
  }
}

.sales-screen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.sales-work-area {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.sales-desktop-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(260px, 1fr);
  gap: 12px;
  overflow: auto;
}

.sales-order-card,
.sales-items-card,
.sales-history-card {
  border: 1px solid #c8ced4;
  border-radius: 6px;
  background: #fff;
}

.sales-order-card {
  align-content: start;
  border-left: 4px solid #0f7891;
}

.sales-history-card {
  min-height: 220px;
  overflow: auto;
}

.sales-order-card h3,
.sales-items-card h3 {
  margin-top: 0;
}

.sales-order-card:focus,
.sales-items-card:focus,
.sales-history-card:focus {
  outline: 3px solid rgba(15, 120, 145, 0.24);
  outline-offset: 2px;
}

.finance-screen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.finance-context-strip {
  gap: 8px;
  padding: 8px 12px;
}

.finance-context-strip .desktop-context-metric {
  margin-left: 0;
  min-height: 36px;
  border: 1px solid rgba(200, 206, 212, 0.9);
  border-radius: 6px;
}

.finance-work-area {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.finance-desktop-body {
  min-height: 0;
  padding: 0;
  overflow: auto;
  background: transparent;
}

.finance-desktop-body > .grid {
  min-height: 0;
  gap: 12px;
}

.finance-desktop-body .form-card,
.finance-desktop-body .table-wrap,
.finance-desktop-body .kpi {
  border: 1px solid #c8ced4;
  border-radius: 6px;
  background: #fff;
}

.finance-desktop-body .form-card {
  border-left: 4px solid #f2c300;
}

.fiscal-screen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.fiscal-context-strip {
  gap: 2px;
}

.fiscal-work-area {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.fiscal-desktop-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  overflow: auto;
}

#fiscal-step-form {
  min-height: 0;
}

#fiscal-step-form .form-card {
  margin: 0;
}

#fiscal-step-rules,
.fiscal-queue-card {
  min-height: 0;
  border: 1px solid #c8ced4;
  border-radius: 6px;
  background: #fff;
}

.fiscal-queue-card {
  grid-column: 1 / -1;
  overflow: auto;
}

#fiscal-step-form:focus,
#fiscal-step-rules:focus,
.fiscal-queue-card:focus {
  outline: 3px solid rgba(214, 169, 0, 0.32);
  outline-offset: 2px;
}

.reports-screen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.reports-ribbon {
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 150px);
  grid-template-columns: none;
  overflow-x: auto;
}

.reports-ribbon .desktop-ribbon-button {
  min-height: 92px;
}

.reports-context-strip {
  gap: 2px;
}

.reports-work-area {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.report-period-card,
.report-preview-card,
.report-audit-card {
  border: 1px solid #c8ced4;
  border-radius: 6px;
  background: #fff;
}

.report-period-card {
  border-left: 4px solid #f2c300;
}

.report-preview-card {
  min-height: 280px;
  overflow: auto;
}

.report-audit-card {
  min-height: 180px;
  overflow: auto;
}

.report-period-card:focus,
.report-preview-card:focus,
.report-audit-card:focus {
  outline: 3px solid rgba(214, 169, 0, 0.32);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .erp-overview {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

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

.erp-action-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.desktop-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  margin: 10px 0;
}

.desktop-check {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.permission-matrix table {
  min-width: 720px;
}

.permission-matrix td:not(:first-child),
.permission-matrix th:not(:first-child) {
  text-align: center;
}

.permission-matrix .check-row {
  justify-content: center;
  padding: 6px;
}

.erp-action-bar .btn {
  min-width: 118px;
  min-height: 48px;
}

.online-store-page {
  min-height: 100vh;
  background: #f7f7f5;
  color: #1d2430;
}

.store-header {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #ffffff;
  border-bottom: 1px solid #ece6d7;
  box-shadow: 0 4px 18px rgba(37, 31, 12, 0.06);
}

.store-topbar {
  width: min(1280px, 100%);
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(180px, 260px) minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 auto;
  padding: 12px 22px;
}

.store-brand img {
  width: 116px;
  height: 52px;
  object-fit: contain;
  background: #fff6c8;
  border: 1px solid #f1da74;
  border-radius: 8px;
  padding: 5px;
}

.store-location,
.store-chip {
  border: 1px solid #eadba9;
  border-radius: 8px;
  background: #fffefa;
  color: #1d2430;
  cursor: pointer;
}

.store-location {
  min-height: 48px;
  display: grid;
  gap: 2px;
  justify-items: start;
  padding: 8px 12px;
}

.store-location span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-location strong {
  max-width: 100%;
  overflow: hidden;
  color: #1f6f8b;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-searchbar {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #eadba9;
  border-radius: 8px;
  background: #f7f7f5;
}

.store-searchbar span {
  color: #1f6f8b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.store-searchbar input {
  min-height: 40px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.store-chip {
  min-height: 48px;
  padding: 0 18px;
  background: #1f6f8b;
  color: #ffffff;
  font-weight: 950;
  white-space: nowrap;
}

.store-main {
  width: min(1280px, 100%);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 22px;
}

.store-delivery-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid #eadba9;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 202, 29, 0.9), rgba(255, 246, 200, 0.92)),
    #ffca1d;
  box-shadow: 0 14px 34px rgba(78, 60, 10, 0.12);
}

.store-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1d2430;
  color: #ffca1d;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.store-delivery-panel h1 {
  max-width: 720px;
  margin: 12px 0 8px;
  color: #17243d;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}

.store-delivery-panel p {
  max-width: 680px;
  margin: 0;
  color: #344563;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
}

.store-delivery-status {
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(29, 36, 48, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #344563;
  font-weight: 900;
}

.store-delivery-status.ok {
  border-color: #86efac;
  background: #ecfdf5;
  color: #166534;
}

.store-delivery-status.blocked {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.store-delivery-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.store-delivery-actions .btn.primary,
.store-product .btn.primary,
.store-cart .btn.primary {
  background: #1f6f8b;
  border-color: #1f6f8b;
  color: #ffffff;
}

.store-categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 2px;
  scrollbar-width: thin;
}

.store-categories button {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid #eadba9;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: #344563;
  font-weight: 900;
}

.store-categories button.active,
.store-categories button:hover {
  background: #ffca1d;
  border-color: #d7a300;
  color: #17243d;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  gap: 18px;
  align-items: start;
}

.store-menu {
  display: grid;
  gap: 14px;
}

.store-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.store-section-title span,
.store-section-title small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.store-section-title h2 {
  margin: 4px 0 0;
  color: #17243d;
  font-size: 24px;
  font-weight: 950;
}

.store-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-product,
.store-cart,
.store-empty {
  background: #ffffff;
  border: 1px solid #ece6d7;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(37, 31, 12, 0.06);
}

.store-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  min-height: 178px;
  overflow: hidden;
}

.store-product[hidden] {
  display: none;
}

.store-product-body,
.store-cart,
.store-empty {
  padding: 14px;
}

.store-product-body {
  display: grid;
  gap: 8px;
  align-content: start;
}

.store-product-body small {
  color: #1f6f8b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.store-product-body h2 {
  margin: 0;
  color: #1d2430;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}

.store-product-body p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.store-product-media {
  min-height: 100%;
  background: #fff6c8;
}

.store-product-media img,
.store-product-placeholder {
  width: 100%;
  height: 100%;
}

.store-product-media img {
  object-fit: cover;
}

.store-product-placeholder {
  display: grid;
  place-items: center;
  padding: 10px;
  color: #17243d;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
  background: linear-gradient(145deg, #ffca1d, #fff6c8);
}

.store-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.store-price strong {
  color: #17243d;
  font-size: 20px;
  font-weight: 950;
}

.store-price .btn {
  min-height: 34px;
  padding: 7px 11px;
}

.field.compact {
  gap: 4px;
}

.store-cart {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}

.store-cart-title,
.store-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-cart-title span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.store-cart-title strong {
  color: #17243d;
  font-size: 26px;
  font-weight: 950;
}

.cart-line {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #ece6d7;
}

.cart-line strong {
  color: #17243d;
}

.cart-line small {
  color: #6b7280;
  font-weight: 800;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-line-actions .btn {
  min-height: 32px;
  padding: 6px 9px;
}

.store-total {
  padding: 12px;
  border-radius: 8px;
  background: #fff6c8;
  color: #17243d;
}

.store-total strong {
  color: #17243d;
  font-size: 24px;
  font-weight: 950;
}

.store-checkout-steps,
.store-payment {
  display: grid;
  gap: 8px;
}

.store-checkout-steps {
  grid-template-columns: repeat(3, 1fr);
}

.store-checkout-steps span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #ece6d7;
  border-radius: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 950;
}

.store-checkout-steps .active {
  background: #ffca1d;
  border-color: #d7a300;
  color: #17243d;
}

.store-payment {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-option {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid #ece6d7;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.payment-option.selected {
  border-color: #1f6f8b;
  box-shadow: inset 0 0 0 2px #1f6f8b;
}

.payment-option input {
  width: 16px;
  min-height: 16px;
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option strong {
  color: #17243d;
  font-weight: 950;
}

.payment-option small {
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
}

/* Loja online - experiencia tipo marketplace com identidade Tortela */
.online-store-page {
  background:
    linear-gradient(180deg, #fff8db 0, #fffdf3 280px, #f4f7f6 620px),
    #f4f7f6;
  color: #071a33;
}

.store-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8d89f;
  box-shadow: 0 10px 28px rgba(7, 26, 51, 0.08);
  backdrop-filter: blur(10px);
}

.store-topbar {
  min-height: 82px;
  grid-template-columns: minmax(220px, auto) minmax(180px, 260px) minmax(320px, 1fr) minmax(180px, auto);
  gap: 12px;
  padding: 12px 20px;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.store-brand img {
  width: 104px;
  height: 54px;
  background: #fff3ba;
  border-color: #e3c767;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.store-brand strong,
.store-brand span,
.store-chip span,
.store-chip strong {
  display: block;
}

.store-brand strong {
  color: #071a33;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
}

.store-brand span {
  margin-top: 3px;
  color: #5b6680;
  font-size: 12px;
  font-weight: 850;
}

.store-location,
.store-searchbar,
.store-chip {
  border-color: #ddc874;
  border-radius: 8px;
  background: #fffefa;
}

.store-location {
  box-shadow: 0 8px 18px rgba(7, 26, 51, 0.05);
}

.store-location:hover,
.store-categories button:hover,
.store-price .btn:hover,
.store-cart .btn.primary:hover,
.store-delivery-actions .btn.primary:hover {
  transform: translateY(-1px);
}

.store-location span,
.store-searchbar span,
.store-chip span {
  color: #68728a;
  letter-spacing: 0;
}

.store-location strong {
  color: #0d6f86;
}

.store-searchbar {
  grid-template-columns: auto minmax(0, 1fr);
  background: #f7faf9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.store-searchbar:focus-within {
  border-color: #0d6f86;
  box-shadow: 0 0 0 3px rgba(13, 111, 134, 0.12);
}

.store-searchbar span {
  color: #0d6f86;
}

.store-chip {
  min-height: 52px;
  padding: 8px 16px;
  background: #0d6f86;
  border-color: #0d6f86;
  box-shadow: 0 10px 22px rgba(13, 111, 134, 0.22);
}

.store-chip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.store-chip strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
}

.store-main {
  gap: 16px;
  padding: 18px 20px 28px;
}

.store-delivery-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: stretch;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(13, 111, 134, 0.12), transparent 30%),
    linear-gradient(135deg, #fff3ba 0%, #fff9dd 54%, #ffffff 100%);
  border-color: #ddc874;
  box-shadow: 0 18px 38px rgba(92, 74, 12, 0.13);
}

.store-kicker {
  background: #071a33;
  color: #fff3ba;
  border-radius: 8px;
  letter-spacing: 0;
}

.store-delivery-panel h1 {
  max-width: 620px;
  margin: 10px 0 8px;
  color: #071a33;
  font-size: clamp(30px, 3.4vw, 42px);
}

.store-delivery-panel p {
  max-width: 660px;
  color: #4c5873;
  font-size: 15px;
}

.store-service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.store-service-strip span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #dfcc81;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #071a33;
  font-size: 12px;
  font-weight: 900;
}

.store-delivery-status {
  border-color: rgba(13, 111, 134, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: #4c5873;
}

.store-delivery-actions {
  align-content: center;
  grid-template-columns: 1fr;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(221, 200, 116, 0.74);
  box-shadow: 0 12px 26px rgba(7, 26, 51, 0.08);
}

.store-delivery-actions > strong {
  color: #071a33;
  font-size: 18px;
  font-weight: 950;
}

.store-delivery-actions .btn.primary,
.store-product .btn.primary,
.store-cart .btn.primary {
  background: #0d6f86;
  border-color: #0d6f86;
}

.store-categories {
  position: sticky;
  top: 82px;
  z-index: 9;
  gap: 8px;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(255, 253, 243, 0.96), rgba(255, 253, 243, 0.84));
  backdrop-filter: blur(8px);
}

.store-categories button {
  min-height: 40px;
  border-color: #ddc874;
  border-radius: 8px;
  background: #ffffff;
  color: #4c5873;
}

.store-categories button.active,
.store-categories button:hover {
  background: #fff0a8;
  border-color: #c69d00;
  color: #071a33;
}

.store-layout {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
}

.store-section-title {
  padding: 0;
}

.store-section-title h2 {
  color: #071a33;
  font-size: 26px;
}

.store-products {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 12px;
}

.store-product,
.store-cart,
.store-empty {
  border-color: #e3d7aa;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(7, 26, 51, 0.06);
}

.store-product {
  grid-template-columns: minmax(0, 1fr) 142px;
  min-height: 170px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.store-product:hover {
  border-color: #cbb158;
  box-shadow: 0 16px 30px rgba(7, 26, 51, 0.1);
  transform: translateY(-2px);
}

.store-product-body {
  gap: 7px;
  padding: 16px;
}

.store-product-body small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef8f5;
  color: #0d6f86;
}

.store-product-body h2 {
  color: #071a33;
  font-size: 19px;
}

.store-product-body p {
  color: #5b6680;
}

.store-product-media {
  min-height: 100%;
  background: #fff0a8;
}

.store-product-media img {
  transition: transform 0.18s ease;
}

.store-product:hover .store-product-media img {
  transform: scale(1.035);
}

.store-product-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  background:
    linear-gradient(145deg, rgba(13, 111, 134, 0.14), transparent 54%),
    #fff0a8;
}

.store-product-placeholder strong,
.store-product-placeholder span {
  display: block;
}

.store-product-placeholder strong {
  color: #071a33;
  font-size: 19px;
  font-weight: 950;
}

.store-product-placeholder span {
  color: #0d6f86;
  font-size: 12px;
  font-weight: 900;
}

.store-price strong,
.store-cart-title strong,
.store-total strong,
.cart-line strong,
.payment-option strong {
  color: #071a33;
}

.store-price .btn {
  min-width: 96px;
}

.store-cart {
  top: 100px;
  background: #fffefa;
}

.store-cart-title {
  padding-bottom: 10px;
  border-bottom: 1px solid #e8d89f;
}

.store-cart-title small {
  display: block;
  margin-top: 3px;
  color: #68728a;
  font-size: 12px;
  font-weight: 850;
}

.cart-line-actions .btn {
  border-color: #d8dfe7;
  background: #ffffff;
}

.cart-line-actions .btn.danger {
  color: #8a2d1b;
}

.store-total,
.store-checkout-steps .active {
  background: #fff0a8;
  border-color: #c69d00;
}

.payment-option.selected {
  border-color: #0d6f86;
  box-shadow: inset 0 0 0 2px #0d6f86;
}

.full {
  width: 100%;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbfc);
}

.kpi strong {
  display: block;
  font-size: 28px;
  margin-top: 14px;
}

.kpi small {
  color: var(--muted);
  font-weight: 700;
}

.unit-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
}

.unit-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.unit-link-card h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}

.unit-link-card p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.unit-link-card input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.online-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
}

.online-orders-screen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.online-orders-work-area {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.online-board:focus,
.unit-link-grid:focus,
.online-history-card:focus {
  outline: 3px solid rgba(214, 169, 0, 0.32);
  outline-offset: 2px;
}

.online-lane {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf5;
}

.online-lane header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ead9a8;
}

.online-lane header span {
  color: #17243d;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.online-lane header strong {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #ffca1d;
  color: #061733;
  font-size: 16px;
}

.online-lane-list {
  display: grid;
  gap: 10px;
}

.online-order-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ece6d7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 36, 61, 0.06);
}

.online-order-card > div:first-child {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.online-order-card b,
.online-order-card strong {
  color: #061733;
  font-size: 16px;
}

.online-order-card span,
.online-order-card small {
  color: var(--muted);
  font-weight: 800;
}

.online-order-card .actions {
  gap: 6px;
}

.online-order-card .btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.terminal-token-field {
  grid-column: 1 / -1;
}

.terminal-token-field .actions {
  margin-top: 8px;
}

.terminal-token-field small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.settings-screen {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.settings-head {
  align-items: center;
}

.settings-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.settings-tabs button,
.settings-tabs a {
  min-height: 92px;
}

.settings-tabs a strong {
  color: #061733;
  font-size: 14px;
  font-weight: 900;
}

.settings-tabs a small {
  color: #657386;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.settings-tabs button.active,
.settings-tabs a.active {
  border-color: #0f7891;
  background: #fff8d5;
  box-shadow: inset 0 0 0 2px rgba(15, 120, 145, 0.12), 0 3px 8px rgba(21, 32, 43, 0.08);
}

.settings-context-strip {
  gap: 8px;
}

.settings-work-area {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}

.settings-overview {
  padding: 0;
  background: transparent;
}

.settings-overview div {
  background: #fbfdfe;
}

.settings-overview span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-overview strong {
  display: block;
  margin-top: 5px;
  color: #061733;
  font-size: 18px;
}

.settings-body {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: auto;
  background: transparent;
}

.settings-pane {
  display: none;
}

.settings-pane.active {
  display: block;
}

.settings-section-title {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid #f2c300;
  border-radius: 8px;
  background: #fffaf0;
  color: #061733;
  font-size: 18px;
}

.settings-section-title:not(:first-child) {
  margin-top: 22px;
}

.alert {
  padding: 12px;
  border-radius: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: white;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: linear-gradient(180deg, #eef7ff, #ffffff);
  font-size: 12px;
  text-transform: uppercase;
  color: #43555c;
}

.form-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.form-card.settings-pane,
.table-wrap.settings-pane {
  display: none;
}

.form-card.settings-pane.active {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #c8ced4;
  border-left: 4px solid #f2c300;
  border-radius: 6px;
}

.settings-pane.active:focus {
  outline: 3px solid rgba(214, 169, 0, 0.32);
  outline-offset: 2px;
}

@media (max-width: 1200px) {
  .settings-tabs {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .settings-overview {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 760px) {
  .settings-tabs,
  .settings-overview {
    grid-template-columns: 1fr;
  }
}

.table-wrap.settings-pane.active {
  display: block;
}

.photo-uploader {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: center;
}

.photo-preview {
  width: 132px;
  aspect-ratio: 1;
  border: 1px dashed #8bbce8;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fcff, #eaf6ff);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 8px;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-labels-pane {
  gap: 18px;
}

.label-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: start;
}

.label-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
}

.label-preview-wrap {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-label-preview {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid #0f172a;
  background: #fff;
  color: #07162f;
  text-align: center;
  box-shadow: 0 12px 30px rgba(7, 22, 47, 0.08);
}

.product-label-preview strong {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.15;
  white-space: normal;
}

.product-label-preview b {
  font-size: 22px;
}

.product-label-preview small,
.product-label-preview em {
  color: #475569;
  font-size: 12px;
  font-style: normal;
}

.barcode-art {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
  padding: 4px 0 0;
}

.barcode-art i {
  display: block;
  background: #020617;
  min-height: 20px;
}

@media (max-width: 980px) {
  .label-workbench,
  .label-config-grid {
    grid-template-columns: 1fr;
  }
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8eef1;
  color: #263940;
  font-size: 12px;
  font-weight: 800;
}

.badge.ok {
  background: #dcfce7;
  color: #166534;
}

.badge.warn {
  background: #fef3c7;
  color: #92400e;
}

.badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.module-tabs {
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 0;
}

.module-tabs button,
.module-tabs a {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 10px 8px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.module-tabs button.active,
.module-tabs a.active {
  color: var(--brand);
  border-color: var(--brand);
}

.pdv {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 27vw) 1fr;
  gap: 0;
  overflow: hidden;
  background: #dce9f6;
}

.pdv-side,
.pdv-main {
  background: var(--panel);
  border: 0;
  border-radius: 0;
  min-height: 0;
}

.pdv-side {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-right: 4px solid #1f5b88;
  background: #edf6ff;
}

.pdv-title {
  background: linear-gradient(90deg, #0ea5e9, #075985);
  color: white;
  padding: 9px 14px;
  font-weight: 900;
  font-size: 25px;
  text-align: center;
}

.pdv-client {
  padding: 10px 14px;
  background: #cfe8ff;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.pdv-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  background: #071827;
  color: white;
  font-size: 12px;
}

.pdv-brand {
  min-height: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.pdv-brand .brand-mark {
  width: min(230px, 80%);
  height: 120px;
}

.pdv-brand strong {
  color: var(--text);
  font-size: 20px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 9px;
  align-self: end;
  background: #dbeafe;
  border-top: 4px solid #1f5b88;
}

.shortcut-grid .btn {
  min-height: 45px;
  background: white;
  color: #102a43;
}

.cash-open-card {
  max-width: 720px;
  align-self: start;
}

.pdv-main {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 8px;
  gap: 8px;
}

.pdv-main-title {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 5px;
  background: linear-gradient(90deg, #0f3b70, #075985);
  color: white;
  font-size: 25px;
}

.pdv-main-title .btn {
  position: absolute;
  right: 7px;
  background: white;
  color: #102a43;
}

.sale-inputs {
  display: grid;
  grid-template-columns: 1fr 110px 150px 160px;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  background: white;
}

.pdv-table {
  min-height: 0;
  overflow: auto;
  border-radius: 0;
  scrollbar-width: none;
}

.pdv-table::-webkit-scrollbar {
  display: none;
}

.pdv-table table {
  height: 100%;
}

.totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.total-box {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
}

.total-box strong {
  font-size: 30px;
  text-align: right;
}

.grand-total {
  border: 2px solid #075985;
}

.grand-total strong {
  font-size: 42px;
}

.pdv-options {
  position: absolute;
  inset: 8px;
  z-index: 5;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 16px;
  overflow: auto;
  background: white;
  border: 2px solid #075985;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(15, 59, 112, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateX(104%);
  transition: transform 160ms ease, opacity 160ms ease;
}

.pdv-options.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.pdv-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.pdv-options-head h2 {
  margin: 0 0 10px;
}

.pdv-options-grid {
  align-content: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pdv-wide {
  grid-column: span 2;
}

.pdv-all-columns {
  grid-column: 1 / -1;
}

.danger-alert {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #881337;
}

.pdv-options-balance {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 12px;
  background: #eaf6ff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.pdv-options-balance strong {
  font-size: 25px;
}

.pdv-options-actions {
  justify-content: flex-end;
}

.fiscal-note {
  border-left: 4px solid var(--accent);
  background: #fffbeb;
  padding: 12px;
  color: #713f12;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 980px) {
  .login-card,
  .layout,
  .pdv {
    grid-template-columns: 1fr;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .grid.five,
  .unit-link-grid,
  .online-board,
  .sale-inputs,
  .payment-grid,
  .totals {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 10px;
  }
}

/* Identidade exclusiva da edicao Tortela. */
.tortela-theme {
  --bg: #fff4b8;
  --panel-2: #fff1a3;
  --line: #e7bf19;
  --line-strong: #b78600;
  background: linear-gradient(135deg, #ffe06a 0%, #fff1a3 42%, #fffdf0 100%) fixed;
}

.tortela-theme .app-shell,
.tortela-theme .content,
.tortela-theme .main {
  background: transparent;
}

.tortela-theme .topbar,
.tortela-topbar {
  min-height: 72px;
  height: auto;
  padding: 8px 20px;
  overflow: visible;
  background: linear-gradient(100deg, #ffe06a, #fff2a8 55%, #fffdf0);
  border-bottom-color: #e5b900;
  color: #17243d;
}

.tortela-theme .topbar .top-left,
.tortela-theme .topbar .brand,
.tortela-topbar .brand {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.tortela-theme .topbar .top-left > div:last-child,
.tortela-theme .topbar .brand > div:last-child,
.tortela-topbar .brand > div:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tortela-theme .topbar .company,
.tortela-theme .topbar strong,
.tortela-theme .topbar small,
.tortela-topbar strong,
.tortela-topbar small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tortela-theme .login-shell,
.tortela-login-shell,
.public-register-shell {
  background: linear-gradient(135deg, #fff0a0 0%, #fff9d5 48%, #ffffff 100%);
}

.tortela-login-brand,
.tortela-theme .login-brand {
  background: linear-gradient(150deg, #facc15 0%, #fff3a0 48%, #ffffff 100%);
  color: #17243d;
}

.tortela-theme .login-brand p {
  color: #4b5563;
}

.tortela-logo {
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 58px;
  max-width: 146px;
  min-width: 146px;
  overflow: hidden;
  width: 146px;
}

.tortela-logo img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

.tortela-login-brand .tortela-logo,
.tortela-theme .login-brand .tortela-logo {
  height: 128px;
  max-width: 270px;
  min-width: 270px;
  width: 270px;
}

.pdv-brand .tortela-logo {
  height: 150px;
  max-width: min(310px, 88%);
  min-width: 0;
  width: min(310px, 88%);
}

.tortela-theme .pdv {
  background: #fff0a5;
}

.tortela-theme .pdv-side {
  background: #fff6bf;
  border-right-color: #c99600;
}

.tortela-theme .pdv-title {
  background: linear-gradient(90deg, #f5c400, #c99600);
  color: #17243d;
}

.tortela-theme .pdv-meta {
  background: #3a2d00;
  color: #ffffff;
}

.tortela-theme .pdv-client {
  background: #fff1a3;
}

.tortela-theme .shortcut-grid {
  background: #fff0a8;
  border-top-color: #c99600;
}

.tortela-theme .pdv-main-title {
  background: linear-gradient(90deg, #d8a600, #936900);
  color: #ffffff;
  font-size: clamp(18px, 2vw, 27px);
  padding-left: 12px;
  padding-right: 142px;
}

.tortela-theme .pdv-main-title strong {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tortela-theme .pdv-main-title .btn {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tortela-theme .grand-total,
.tortela-theme .pdv-options {
  border-color: #b78600;
}

.tortela-theme .pdv-options {
  box-shadow: 0 16px 40px rgba(120, 84, 0, 0.24);
}

.tortela-theme .pdv-options-balance {
  background: #fff5c2;
}

.tortela-theme .mode-switch {
  background: linear-gradient(180deg, #fff0a3, #fff7cf);
}

.network-shell {
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 1800px;
  padding: 22px;
}

.network-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.network-white {
  background: #ffffff;
  color: #17243d;
}

.network-qr-box {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
  margin-top: 16px;
}

.network-qr-box img {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.store-central-theme .network-shell {
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.28), transparent 32rem),
    linear-gradient(135deg, #fff8d7 0%, #f8fbfc 46%, #edf8f6 100%);
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding-bottom: 96px;
}

.store-central-shell .network-dashboard {
  grid-template-columns: 250px minmax(0, 1fr);
  height: auto;
  min-height: 0;
}

.store-central-shell .network-stage {
  border-color: rgba(212, 161, 0, 0.32);
  overflow: visible;
}

.store-central-theme {
  min-height: 100vh;
  overflow-y: auto;
}

.store-central-theme .network-module {
  height: auto;
  min-height: 0;
}

.store-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.store-metric-grid {
  align-items: stretch;
  margin-bottom: 4px;
  position: relative;
  z-index: 0;
}

.store-metric-grid .kpi {
  background: linear-gradient(180deg, #fff7c7 0%, #ffffff 100%);
  border-color: #ddb600;
  box-shadow: 0 10px 24px rgba(112, 83, 0, 0.08);
  cursor: default;
  min-height: 126px;
  padding: 18px 20px;
}

.store-metric-grid .kpi::before {
  color: #9a6b00;
  content: "Indicador";
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.store-metric-grid .kpi small {
  color: #45556d;
  display: block;
  font-size: 15px;
}

.store-metric-grid .kpi strong {
  color: #0f7795;
  font-size: 31px;
  margin-top: 12px;
}

.store-permission-grid {
  background: #fffdf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  padding: 12px;
}

@media (max-width: 1000px) {
  .store-central-shell .network-dashboard {
    grid-template-columns: 1fr;
  }

  .store-action-grid,
  .store-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .store-action-grid,
  .store-permission-grid {
    grid-template-columns: 1fr;
  }
}

.public-register-shell {
  align-items: stretch;
  background:
    linear-gradient(120deg, rgba(250, 204, 21, 0.2), rgba(255, 255, 255, 0.78) 46%, rgba(14, 116, 144, 0.12)),
    #fffdf2;
  display: grid;
  justify-items: center;
  min-height: 100vh;
  padding: 32px;
}

.public-register-card {
  align-self: center;
  background: #ffffff;
  border: 1px solid rgba(222, 180, 25, 0.45);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(102, 83, 0, 0.2);
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1fr);
  max-width: 1180px;
  min-height: 680px;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.public-register-error {
  display: block;
  min-height: auto;
  padding: 32px;
}

.public-register-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #facc15;
  color: #17243d;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  padding: 42px;
}

.public-logo-plate {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  display: inline-grid;
  justify-self: start;
  padding: 18px 22px;
}

.public-logo-plate img {
  height: 92px;
  object-fit: contain;
  width: 214px;
}

.public-register-copy {
  align-self: center;
  display: grid;
  gap: 18px;
}

.public-register-copy span,
.public-form-head span {
  color: #0f7490;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-register-copy h1 {
  color: #17243d;
  font-size: 44px;
  line-height: 1.03;
  margin: 0;
}

.public-register-copy p {
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 430px;
}

.public-register-steps {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  display: grid;
  gap: 10px 12px;
  grid-template-columns: auto 1fr;
  padding: 18px;
}

.public-register-steps strong {
  align-items: center;
  background: #17243d;
  border-radius: 999px;
  color: #facc15;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.public-register-steps span {
  align-self: center;
  font-weight: 800;
}

.public-register-form {
  align-content: center;
  display: grid;
  gap: 18px;
  padding: 42px;
}

.public-form-head {
  display: grid;
  gap: 6px;
}

.public-form-head h2 {
  color: #17243d;
  font-size: 28px;
  margin: 0;
}

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

.public-form-grid .field {
  min-width: 0;
}

.public-form-grid .wide {
  grid-column: 1 / -1;
}

.public-form-grid .cep-field {
  grid-column: span 1;
}

.public-form-grid .uf-field {
  max-width: 120px;
}

.public-register-form .field label {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-register-form .field input {
  background: #fffdf7;
  border: 1px solid #e8dcae;
  border-radius: 6px;
  min-height: 46px;
}

.public-register-form .field input:focus {
  border-color: #0f7490;
  box-shadow: 0 0 0 3px rgba(15, 116, 144, 0.14);
}

.field-action {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

.public-consent {
  margin: 18px 0;
}

.public-nearest {
  background: linear-gradient(135deg, #fff7cc, #ffffff);
  border: 1px solid rgba(250, 204, 21, 0.85);
  border-radius: 6px;
  color: #17243d;
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px 16px;
  position: relative;
}

.public-nearest::before {
  background: #0f7490;
  border-radius: 999px;
  content: "";
  height: 10px;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 10px;
}

.public-nearest span {
  color: #56627a;
  font-size: 13px;
}

.public-submit {
  min-height: 50px;
  width: 100%;
}

.public-message {
  border-radius: 6px;
  margin-top: 16px;
  padding: 12px;
}

.public-message.success {
  background: #ecfdf5;
  color: #166534;
}

.public-message.error {
  background: #fff1f2;
  color: #9f1239;
}

@media (max-width: 1180px) {
  .network-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .network-rankings {
    grid-template-columns: 1fr;
  }

  .public-register-card {
    grid-template-columns: 1fr;
    max-width: 820px;
  }

  .public-register-hero {
    gap: 28px;
    grid-template-rows: auto;
    min-height: auto;
  }

  .public-register-copy {
    align-self: start;
  }
}

@media (max-width: 680px) {
  .network-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .public-register-shell {
    padding: 14px;
  }

  .public-register-card {
    min-height: auto;
  }

  .public-register-hero,
  .public-register-form {
    padding: 24px;
  }

  .public-logo-plate img {
    height: 72px;
    width: 168px;
  }

  .public-register-copy h1 {
    font-size: 32px;
  }

  .public-register-copy p {
    font-size: 15px;
  }

  .public-register-steps {
    padding: 14px;
  }

  .public-form-grid {
    grid-template-columns: 1fr;
  }

  .public-form-grid .uf-field {
    max-width: none;
  }

  .field-action {
    grid-template-columns: 1fr;
  }
}

/* Central Tortela - layout modular final */
.tortela-theme .content,
.network-shell,
.tortela-login-shell {
  background: linear-gradient(135deg, #ffe16a 0%, #fff0a8 42%, #ffffff 100%);
}

.tortela-topbar {
  min-height: 78px;
  overflow: visible;
}

.tortela-topbar .brand,
.tortela-theme .top-left {
  min-width: 0;
  overflow: visible;
}

.tortela-logo {
  height: 72px;
  max-width: 220px;
  min-width: 220px;
  overflow: visible;
  width: 220px;
}

.tortela-logo img {
  object-fit: contain;
  object-position: center;
}

.tortela-login-brand .tortela-logo,
.tortela-theme .login-brand .tortela-logo {
  height: 132px;
  max-width: 330px;
  min-width: 330px;
  width: 330px;
}

.pdv-brand .tortela-logo {
  height: 210px;
  max-width: 92%;
  min-width: 0;
  width: 360px;
}

.tortela-theme .pdv {
  background: #ffe16a;
  height: 100vh;
  overflow: hidden;
}

.tortela-theme .pdv-side {
  background: #fff3b0;
  border-right-color: #c99500;
}

.tortela-theme .pdv-title {
  background: linear-gradient(90deg, #f3c400, #b98700);
  color: #17243d;
}

.tortela-theme .pdv-meta {
  background: #2c2100;
}

.tortela-theme .pdv-client {
  background: #fff0a8;
}

.tortela-theme .pdv-main-title {
  background: linear-gradient(90deg, #d7a300, #775300);
  color: #ffffff;
  padding-right: 132px;
}

.tortela-theme .pdv-main-title .btn {
  background: #ffffff;
  border-color: #ffffff;
  color: #111827;
}

.tortela-theme .shortcut-grid {
  background: #fff0a8;
}

.network-shell {
  height: calc(100vh - 78px);
  margin: 0;
  max-width: none;
  overflow: hidden;
  padding: 18px 22px;
}

.network-dashboard {
  display: grid;
  gap: 16px;
  grid-template-columns: 230px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.network-nav {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9ad00;
  border-radius: 8px;
  overflow: auto;
  padding: 12px;
}

.network-nav button {
  background: #ffffff;
  border: 1px solid #f0c63a;
  border-radius: 8px;
  color: #17243d;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  gap: 3px;
  margin-bottom: 8px;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.network-nav button.active {
  background: linear-gradient(90deg, #fff4a3, #ffffff);
  border-color: #0ea5e9;
  color: #075985;
}

.network-nav small {
  color: #64748b;
  font-weight: 600;
}

.network-stage {
  min-height: 0;
  overflow: hidden;
}

.network-module {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.network-module.compact {
  grid-template-rows: auto minmax(0, 1fr);
}

.network-module-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.network-module-title h1,
.network-module-title p {
  margin: 0;
}

.network-grid {
  display: grid;
  gap: 12px;
}

.network-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.network-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.network-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.network-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.network-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e6b800;
  border-radius: 8px;
  min-width: 0;
  padding: 16px;
}

.network-card h2,
.network-card h3 {
  margin: 0 0 12px;
}

.network-card p {
  margin: 0;
}

.network-table-wrap {
  background: #ffffff;
  border: 1px solid #e6b800;
  border-radius: 8px;
  max-height: 42vh;
  overflow: auto;
}

.network-table-wrap table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.network-table-wrap th {
  background: #fff7c7;
  color: #334155;
  font-size: 13px;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.network-table-wrap th,
.network-table-wrap td {
  border-bottom: 1px solid #f2d572;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.network-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.network-form .wide {
  grid-column: span 2;
}

.network-form .full {
  grid-column: 1 / -1;
}

.network-form button {
  align-self: end;
}

.report-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .network-shell {
    height: auto;
    overflow: auto;
  }

  .network-dashboard {
    grid-template-columns: 1fr;
  }

  .network-grid.five,
  .network-grid.four,
  .network-grid.three,
  .network-grid.two,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .network-form {
    grid-template-columns: 1fr;
  }

  .network-form .wide {
    grid-column: auto;
  }
}

/* Camada final de acabamento operacional Tortela */
.tortela-theme {
  --bg: #f6f2e7;
  --panel: #fffefa;
  --panel-2: #fff4bd;
  --text: #1d2430;
  --muted: #657084;
  --line: #e5d8b0;
  --line-strong: #c69a12;
  --brand: #b88400;
  --brand-2: #1f6f8b;
  --brand-3: #243447;
  --accent: #f4c430;
  --danger: #b91c1c;
  --ok: #15803d;
  --warn: #b45309;
  --shadow: 0 18px 44px rgba(62, 48, 12, 0.14);
  background: #f6f2e7;
}

.tortela-theme .content,
.network-shell,
.public-register-shell,
.tortela-login-shell,
.tortela-theme .login-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 250, 232, 0.88)),
    #f6f2e7;
}

.tortela-theme .topbar,
.tortela-topbar {
  background: #fffefa;
  border-bottom: 1px solid #dfc776;
  box-shadow: 0 10px 28px rgba(96, 70, 10, 0.08);
  color: var(--text);
}

.tortela-theme .topbar .company,
.tortela-topbar strong {
  font-size: 17px;
  letter-spacing: 0;
}

.tortela-theme .topbar small,
.tortela-topbar small {
  color: var(--muted);
  font-weight: 700;
}

.tortela-logo {
  height: 58px;
  max-width: 178px;
  min-width: 178px;
  width: 178px;
}

.tortela-theme .mode-switch {
  background: #f7edca;
  border-bottom-color: #e1cf91;
  padding: 6px 18px;
}

.mode-switch button {
  border-radius: 8px;
}

.mode-switch button.active {
  border: 1px solid #e7d39a;
  box-shadow: 0 4px 14px rgba(79, 60, 10, 0.08);
}

.layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar,
.network-nav,
.panel,
.network-card,
.public-register-card,
.login-card {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(62, 48, 12, 0.08);
}

.sidebar,
.network-nav {
  background: rgba(255, 254, 250, 0.94);
}

.nav-btn,
.network-nav button {
  border-radius: 8px;
  min-height: 42px;
}

.nav-btn.active,
.nav-btn:hover,
.network-nav button.active,
.network-nav button:hover {
  background: #fff4bd;
  color: #1f6f8b;
}

.panel-head,
.network-module-title {
  align-items: flex-start;
}

.panel-head h2,
.panel-head h3,
.network-module-title h1 {
  color: #182231;
  font-size: 20px;
  letter-spacing: 0;
}

.panel-body {
  background: linear-gradient(180deg, #fffefa, #fffaf0);
}

.kpi,
.form-card,
.network-card.kpi {
  background: #ffffff;
  border-color: #eadba9;
}

.kpi strong {
  color: #1f6f8b;
  font-size: 26px;
}

.btn {
  border-color: #d6c48e;
  border-radius: 8px;
  background: #fffefa;
  color: #1d2430;
  min-height: 38px;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover:not(:disabled) {
  background: #fff4bd;
  border-color: #c69a12;
  box-shadow: 0 5px 14px rgba(72, 55, 12, 0.1);
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.btn.primary {
  background: #1f6f8b;
  border-color: #1f6f8b;
  color: #ffffff;
}

.btn.primary:hover:not(:disabled) {
  background: #185a72;
  border-color: #185a72;
}

.btn.danger {
  background: #b91c1c;
  border-color: #b91c1c;
}

input,
select,
textarea {
  border-color: #d9c995;
  border-radius: 8px;
  background: #fffefa;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1f6f8b;
  box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.14);
  outline: 0;
}

.table-wrap,
.network-table-wrap {
  border-color: #dfcf9c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

th,
.network-table-wrap th {
  background: #f8edc8;
  color: #253142;
  letter-spacing: 0;
}

td,
.network-table-wrap td {
  color: #243142;
}

tbody tr:hover td {
  background: #fff9df;
}

.badge {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

.badge.ok {
  background: #dff6e8;
}

.badge.warn {
  background: #fff0bd;
}

.badge.danger {
  background: #ffe1e1;
}

.login-card {
  grid-template-columns: minmax(320px, 0.85fr) minmax(380px, 1.15fr);
}

.tortela-login-brand,
.tortela-theme .login-brand {
  background: #fff4bd;
  border-right: 1px solid #e4cb76;
}

.login-brand h1 {
  font-size: 38px;
  line-height: 1.05;
}

.login-panel {
  background: #fffefa;
}

.public-register-brand {
  border-bottom-color: #dfc776;
}

.tortela-theme .pdv {
  background: #ede6d2;
}

.tortela-theme .pdv-side {
  background: #fff8d3;
  border-right-color: #b88400;
}

.tortela-theme .pdv-title,
.tortela-theme .pdv-main-title {
  background: #243447;
  color: #ffffff;
}

.tortela-theme .pdv-client,
.tortela-theme .shortcut-grid {
  background: #fff0bd;
}

.shortcut-grid .btn {
  background: #fffefa;
}

.sale-inputs,
.total-box,
.pdv-options {
  border-color: #d9c995;
}

.grand-total {
  background: #243447;
  border-color: #243447;
  color: #ffffff;
}

.grand-total strong {
  color: #f4c430;
}

.pdv-options {
  background: #fffefa;
}

.network-shell {
  padding: 16px 18px;
}

.network-dashboard {
  grid-template-columns: 216px minmax(0, 1fr);
}

.network-module-title p {
  color: var(--muted);
  font-weight: 650;
}

@media (max-width: 980px) {
  .tortela-theme .topbar,
  .tortela-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
  }

  .top-right {
    width: 100%;
  }

  .top-right .badge,
  .top-right .btn {
    flex: 1 1 auto;
  }

  .sidebar {
    position: static;
  }

  .login-card {
    grid-template-columns: 1fr;
  }

  .login-brand,
  .login-panel {
    padding: 28px;
  }

  .tortela-logo,
  .tortela-login-brand .tortela-logo,
  .tortela-theme .login-brand .tortela-logo {
    max-width: 210px;
    min-width: 210px;
    width: 210px;
  }

  .store-topbar {
    grid-template-columns: 1fr;
    padding: 10px 14px;
  }

  .store-location,
  .store-searchbar,
  .store-chip {
    width: 100%;
  }

  .store-main {
    padding: 14px;
  }

  .store-delivery-panel,
  .store-delivery-actions,
  .store-layout,
  .store-products {
    grid-template-columns: 1fr;
  }

  .store-delivery-panel {
    padding: 18px;
  }

  .store-delivery-panel h1 {
    font-size: 30px;
  }

  .store-product {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .store-product-media {
    min-height: 154px;
  }

  .store-payment,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .store-cart {
    position: static;
  }
}

/* Totem v4 - layout simples, vertical e funcional */
body.tortela-kiosk-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #101827;
}

body.tortela-kiosk-page #kiosk-app {
  width: min(100vw, calc(100vh * 0.5625));
  height: min(100vh, calc(100vw * 1.7778));
  max-width: 560px;
  max-height: 996px;
  overflow: hidden;
  background: #f7f3e8;
  box-shadow: 0 0 0 10px #1f2937, 0 32px 90px rgba(0, 0, 0, 0.5);
}

body.tortela-kiosk-page .kiosk-stage,
body.tortela-kiosk-page .kiosk-app {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f7f3e8;
}

body.tortela-kiosk-page .kiosk-stage::before,
body.tortela-kiosk-page .kiosk-stage::after,
body.tortela-kiosk-page .kiosk-app::before,
body.tortela-kiosk-page .kiosk-app::after {
  display: none;
}

body.tortela-kiosk-page .kiosk-mcd-welcome {
  padding: 18px;
  background: linear-gradient(180deg, #0b1b2f 0%, #142b49 42%, #facc15 42%, #facc15 100%);
}

body.tortela-kiosk-page .kiosk-mcd-panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 22px;
  border-radius: 28px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  background: #fffdf5;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

body.tortela-kiosk-page .kiosk-mcd-top img {
  width: 148px;
  max-height: 84px;
  object-fit: contain;
  padding: 8px 12px;
  border-radius: 18px;
  background: #fff9d7;
}

body.tortela-kiosk-page .kiosk-mcd-top button,
body.tortela-kiosk-page .kiosk-mcd-bottom button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  background: #0b1b2f;
  color: #fff;
  font-weight: 900;
}

body.tortela-kiosk-page .kiosk-mcd-bottom .active {
  background: #facc15;
  color: #0b1b2f;
}

body.tortela-kiosk-page .kiosk-mcd-title {
  align-self: center;
  text-align: center;
}

body.tortela-kiosk-page .kiosk-mcd-title h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  color: #07182d;
}

body.tortela-kiosk-page .kiosk-mcd-title span {
  color: #047292;
  font-weight: 950;
}

body.tortela-kiosk-page .kiosk-mcd-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-content: center;
}

body.tortela-kiosk-page .kiosk-mcd-choice {
  min-height: 164px;
  border: 0;
  border-radius: 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: #ffffff;
  color: #07182d;
  box-shadow: inset 0 0 0 2px #e7edf4, 0 12px 26px rgba(7, 24, 45, 0.08);
}

body.tortela-kiosk-page .kiosk-mcd-choice:active {
  background: #fff4a3;
  box-shadow: inset 0 0 0 4px #07182d;
}

body.tortela-kiosk-page .kiosk-mcd-icon {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #07182d;
  color: #facc15;
  font-size: 18px;
  font-weight: 950;
}

body.tortela-kiosk-page .kiosk-mcd-choice strong {
  font-size: 28px;
  line-height: 1.05;
}

body.tortela-kiosk-page .kiosk-mcd-choice small {
  font-size: 16px;
  color: #5b6980;
}

body.tortela-kiosk-page .kiosk-help-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: #0b1b2f;
  color: #fff;
  font-weight: 800;
}

body.tortela-kiosk-page .kiosk-top {
  height: 82px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 96px 1fr 104px;
  gap: 8px;
  align-items: center;
  background: #fffdf5;
  box-shadow: 0 8px 18px rgba(7, 24, 45, 0.12);
}

body.tortela-kiosk-page .kiosk-logo-button,
body.tortela-kiosk-page .kiosk-cart-pill {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: #fff2a8;
  color: #07182d;
  font-weight: 950;
}

body.tortela-kiosk-page .kiosk-logo-button img {
  width: 78px;
}

body.tortela-kiosk-page .kiosk-step-title {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #07182d;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

body.tortela-kiosk-page .kiosk-cart-pill {
  font-size: 12px;
}

body.tortela-kiosk-page .kiosk-cart-pill strong {
  font-size: 18px;
}

body.tortela-kiosk-page .kiosk-menu-simple {
  height: calc(100% - 82px);
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  background: #f7f3e8;
}

body.tortela-kiosk-page .kiosk-menu-head {
  padding: 16px;
  border-radius: 24px;
  background: #07182d;
  color: #fff;
}

body.tortela-kiosk-page .kiosk-menu-head span {
  color: #facc15;
  font-weight: 950;
}

body.tortela-kiosk-page .kiosk-menu-head h1 {
  margin: 4px 0 0;
  font-size: 34px;
}

body.tortela-kiosk-page .kiosk-category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

body.tortela-kiosk-page .kiosk-category-strip button {
  flex: 0 0 auto;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: #fff;
  color: #07182d;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px #e1e8f0;
}

body.tortela-kiosk-page .kiosk-category-strip .active {
  background: #facc15;
}

body.tortela-kiosk-page .kiosk-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow-y: auto;
  padding-right: 2px;
}

body.tortela-kiosk-page .kiosk-menu-product {
  min-height: 156px;
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e1e8f0;
}

body.tortela-kiosk-page .kiosk-product-photo {
  width: 112px;
  min-height: 112px;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

body.tortela-kiosk-page .kiosk-menu-product h2 {
  margin: 4px 0;
  font-size: 22px;
  line-height: 1.05;
}

body.tortela-kiosk-page .kiosk-menu-product small {
  color: #047292;
  font-weight: 950;
}

body.tortela-kiosk-page .kiosk-menu-product strong {
  display: block;
  font-size: 25px;
  color: #07182d;
}

body.tortela-kiosk-page .kiosk-menu-product button {
  grid-column: 1 / -1;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  background: #07182d;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

body.tortela-kiosk-page .kiosk-menu-footer {
  min-height: 66px;
  border: 0;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: #facc15;
  color: #07182d;
  font-weight: 950;
  text-align: left;
}

body.tortela-kiosk-page .kiosk-menu-footer:disabled {
  opacity: 0.55;
}

body.tortela-kiosk-page .kiosk-choice-panel,
body.tortela-kiosk-page .kiosk-cart-panel,
body.tortela-kiosk-page .kiosk-payment-panel,
body.tortela-kiosk-page .kiosk-custom-card {
  width: calc(100% - 28px);
  max-height: calc(100% - 110px);
  margin: 14px;
  padding: 20px;
  overflow-y: auto;
  border-radius: 26px;
  background: #fffdf5;
}

body.tortela-kiosk-page .kiosk-choice-panel h1,
body.tortela-kiosk-page .kiosk-section-title h1,
body.tortela-kiosk-page .kiosk-custom-form h1 {
  font-size: 32px;
}

body.tortela-kiosk-page .kiosk-choice-grid,
body.tortela-kiosk-page .kiosk-pay-grid,
body.tortela-kiosk-page .kiosk-upsell-grid,
body.tortela-kiosk-page .kiosk-action-row,
body.tortela-kiosk-page .kiosk-custom-card,
body.tortela-kiosk-page .kiosk-toggle-row,
body.tortela-kiosk-page .kiosk-extra-grid {
  grid-template-columns: 1fr;
}

body.tortela-kiosk-page .kiosk-mega-action,
body.tortela-kiosk-page .kiosk-secondary-action {
  min-height: 62px;
  border-radius: 20px;
  font-size: 20px;
}

body.tortela-kiosk-page .kiosk-done-card {
  width: calc(100% - 36px);
  padding: 32px;
}

body.tortela-kiosk-page .kiosk-done-card h1 {
  font-size: 88px;
}

/* Totem v5 - inspirado no fluxo de autoatendimento fast-food */
body.tortela-kiosk-page #kiosk-app {
  max-width: 640px;
  max-height: 1138px;
}

body.tortela-kiosk-page .kiosk-mcd-welcome {
  padding: 0;
  background: #101923;
}

body.tortela-kiosk-page .kiosk-mcd-panel {
  border-radius: 0;
  padding: 34px 30px 24px;
  background:
    linear-gradient(180deg, rgba(16, 25, 35, 0.92), rgba(16, 25, 35, 0.96)),
    url("../assets/tortela/totem-bg.png") center / cover no-repeat;
  box-shadow: none;
  grid-template-rows: auto 1fr auto auto;
}

body.tortela-kiosk-page .kiosk-mcd-top {
  justify-content: center;
  position: relative;
}

body.tortela-kiosk-page .kiosk-mcd-top img {
  width: 190px;
  max-height: 112px;
  background: #fff8bf;
  border-radius: 22px;
}

body.tortela-kiosk-page .kiosk-mcd-top button {
  position: absolute;
  right: 0;
  top: 10px;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.16);
}

body.tortela-kiosk-page .kiosk-mcd-title {
  color: #fff;
  display: grid;
  align-content: end;
  padding-bottom: 18px;
}

body.tortela-kiosk-page .kiosk-mcd-title span {
  color: #facc15;
}

body.tortela-kiosk-page .kiosk-mcd-title h1 {
  color: #fff;
  font-size: 42px;
}

body.tortela-kiosk-page .kiosk-mcd-choice-grid {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

body.tortela-kiosk-page .kiosk-mcd-choice {
  min-height: 230px;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
}

body.tortela-kiosk-page .kiosk-mcd-choice strong {
  font-size: 25px;
}

body.tortela-kiosk-page .kiosk-mcd-choice small {
  font-size: 14px;
}

body.tortela-kiosk-page .kiosk-mcd-bottom button {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

body.tortela-kiosk-page .kiosk-mcd-bottom .active {
  background: #facc15;
  color: #101923;
}

body.tortela-kiosk-page .kiosk-top {
  height: 84px;
  grid-template-columns: 92px 1fr 110px;
  background: #ffffff;
}

body.tortela-kiosk-page .kiosk-step-title {
  background: transparent;
  color: #101923;
  font-size: 22px;
}

body.tortela-kiosk-page .kiosk-menu-simple {
  height: calc(100% - 84px);
  padding: 12px;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #f4f5f7;
}

body.tortela-kiosk-page .kiosk-menu-head {
  grid-column: 2;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  color: #101923;
  box-shadow: inset 0 0 0 1px #e6ebf0;
}

body.tortela-kiosk-page .kiosk-menu-head span {
  color: #047292;
}

body.tortela-kiosk-page .kiosk-menu-head h1 {
  color: #101923;
  font-size: 30px;
}

body.tortela-kiosk-page .kiosk-menu-head strong {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #facc15;
  font-size: 26px;
}

body.tortela-kiosk-page .kiosk-category-strip {
  grid-row: 1 / 4;
  grid-column: 1;
  display: grid;
  grid-auto-rows: minmax(68px, auto);
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

body.tortela-kiosk-page .kiosk-category-strip button {
  width: 100%;
  min-height: 68px;
  border-radius: 18px;
  padding: 6px;
  white-space: normal;
  font-size: 12px;
  line-height: 1.1;
}

body.tortela-kiosk-page .kiosk-menu-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  overflow-y: auto;
}

body.tortela-kiosk-page .kiosk-menu-product {
  min-height: 238px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 112px minmax(0, 1fr) 48px;
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  background: #ffffff;
}

body.tortela-kiosk-page .kiosk-product-photo {
  width: 100%;
  height: 112px;
  min-height: 112px;
  border-radius: 16px;
}

body.tortela-kiosk-page .kiosk-product-info {
  min-height: 0;
}

body.tortela-kiosk-page .kiosk-menu-product h2 {
  font-size: 17px;
  line-height: 1.08;
  margin: 3px 0;
}

body.tortela-kiosk-page .kiosk-menu-product strong {
  font-size: 21px;
}

body.tortela-kiosk-page .kiosk-menu-product button {
  min-height: 48px;
  border-radius: 15px;
  font-size: 17px;
}

body.tortela-kiosk-page .kiosk-menu-footer {
  grid-column: 2;
  min-height: 64px;
  border-radius: 18px;
}

@media (max-width: 520px) {
  body.tortela-kiosk-page .kiosk-mcd-choice-grid,
  body.tortela-kiosk-page .kiosk-menu-grid {
    grid-template-columns: 1fr;
  }

  body.tortela-kiosk-page .kiosk-mcd-choice {
    min-height: 160px;
  }
}
