:root {
  --bg-1: #eef3f0;
  --bg-2: #f7f8f5;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(244, 246, 242, 0.82);
  --surface-line: rgba(39, 59, 48, 0.14);
  --surface-line-strong: rgba(39, 59, 48, 0.2);
  --text: #111614;
  --muted: #56615b;
  --green: #015f41;
  --green-deep: #164b35;
  --green-soft: #dceee6;
  --panel-dark: #f7f8f5;
  --panel-dark-soft: #edf2ee;
  --panel-ink: #17241e;
  --gold: #9b7b31;
  --gold-soft: rgba(155, 123, 49, 0.14);
  --accent: #2f6073;
  --accent-soft: rgba(47, 96, 115, 0.14);
  --ink-soft: rgba(17, 22, 20, 0.76);
  --danger: #9a4d4d;
  --success: #1f7a56;
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-xl: 0 20px 44px rgba(18, 34, 26, 0.1), 0 8px 18px rgba(18, 34, 26, 0.06);
  --shadow-lg: 0 14px 30px rgba(18, 34, 26, 0.09), 0 6px 14px rgba(18, 34, 26, 0.05);
  --shadow-md: 0 8px 20px rgba(18, 34, 26, 0.075), 0 2px 8px rgba(18, 34, 26, 0.04);
  --shadow-sm: 0 5px 12px rgba(18, 34, 26, 0.06), 0 1px 4px rgba(18, 34, 26, 0.035);
  --font-body: 0.95rem;
  --font-small: 0.84rem;
  --font-label: 0.86rem;
  --font-title-lg: 1.58rem;
  --font-title-md: 1.26rem;
  --font-title-sm: 0.98rem;
  --focus-ring: 0 0 0 3px rgba(47, 96, 115, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-body);
  line-height: 1.5;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(238, 243, 240, 0.98), rgba(247, 248, 245, 1)),
    linear-gradient(115deg, rgba(1, 95, 65, 0.09), transparent 32%),
    linear-gradient(260deg, rgba(47, 96, 115, 0.08), transparent 34%);
  position: relative;
}

body::before {
  content: none;
}

.hidden {
  display: none !important;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.72;
}

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

.page-glow {
  display: none;
}

.shell {
  width: min(1480px, calc(100% - 28px));
  margin: 14px auto 18px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 14px;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(249, 250, 247, 0.86), rgba(236, 240, 234, 0.78));
  border: 1px solid var(--surface-line-strong);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

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

.auth-message {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.sidebar,
.topbar,
.hero,
.surface-card,
.brand-card,
.nav-card,
.focus-card,
.contact-card,
.site-footer,
.feedback {
  background: var(--surface-strong);
  border: 1px solid var(--surface-line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px) saturate(1.03);
  -webkit-backdrop-filter: blur(14px) saturate(1.03);
}

.sidebar {
  border-radius: var(--radius-xl);
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-content: start;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  background:
    linear-gradient(180deg, rgba(244, 247, 244, 0.96), rgba(232, 238, 234, 0.92)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 36%);
  border-color: var(--surface-line);
  box-shadow: var(--shadow-lg);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar::before {
  content: none;
}

.brand-card,
.nav-card,
.focus-card,
.contact-card {
  border-radius: var(--radius-lg);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

/* Portal do associado: prioriza navegação lateral; ação principal fica só em telas largas */
#portalShell .focus-card {
  display: none;
}

@media (min-width: 1500px) {
  #portalShell .focus-card {
    display: block;
  }
}

#portalShell .nav-card {
  overflow-y: auto;
}

.brand-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(241, 245, 242, 0.76));
  border-color: rgba(74, 74, 74, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(23, 41, 34, 0.08);
}

.brand-card h1,
.brand-card .body-text,
.contact-card strong,
.contact-card p,
.focus-card h4,
.nav-card h4 {
  color: var(--panel-ink);
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.69rem;
  font-weight: 760;
  color: rgba(24, 49, 38, 0.62);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: 0;
  font-family: Inter, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 680;
}

h1 {
  font-size: 1.1rem;
}

h2 {
  font-size: var(--font-title-lg);
}

h3 {
  font-size: var(--font-title-md);
}

h4 {
  font-size: var(--font-title-sm);
  margin-bottom: 10px;
}

.muted,
.section-text,
.body-text,
.lead,
.contact-card p {
  color: var(--muted);
}

.nav-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(239, 243, 240, 0.72));
  border-color: rgba(74, 74, 74, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.sidebar-account-card {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 243, 240, 0.72));
  border: 1px solid rgba(74, 74, 74, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.sidebar-account-card .current-admin,
.sidebar-account-card #logoutButton {
  width: 100%;
  justify-content: center;
}

.nav-group-label {
  margin: 10px 6px 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(24, 49, 38, 0.55);
}

.focus-card {
  display: grid;
  gap: 12px;
}

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

.focus-item {
  width: 100%;
  text-align: left;
  padding: 13px 14px 13px 16px;
  border-radius: 16px;
  border: 1px solid rgba(74, 74, 74, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(240, 244, 241, 0.74));
  color: var(--panel-ink);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.focus-item strong,
.priority-item strong,
.task-shortcut strong {
  display: block;
  margin-bottom: 6px;
}

.focus-item span,
.priority-item span,
.task-shortcut span,
.topbar-subtitle {
  color: rgba(24, 49, 38, 0.66);
  line-height: 1.55;
}

.top-gap {
  margin-top: 10px;
}

.nav-link {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  padding: 0 13px;
  color: rgba(24, 49, 38, 0.78);
  background: transparent;
  font-weight: 530;
  font-size: 0.88rem;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.nav-link:hover {
  background: linear-gradient(180deg, rgba(230, 242, 236, 0.74), rgba(219, 235, 227, 0.58));
  box-shadow:
    inset 0 0 0 1px rgba(1, 95, 65, 0.1),
    0 6px 14px rgba(18, 34, 26, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(1, 95, 65, 0.96), rgba(44, 100, 71, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 20px rgba(18, 34, 26, 0.22);
}

.finance-report-card p {
  margin: 8px 0;
}

.finance-error {
  color: var(--danger);
}

.badge-success {
  background: rgba(31, 122, 86, 0.14);
  color: var(--success);
}

.contact-card p {
  margin: 0 0 6px;
  line-height: 1.5;
}

.main {
  display: grid;
  gap: 16px;
  align-content: start;
}

.site-footer {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto 12px;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, rgba(242, 245, 240, 0.84), rgba(227, 231, 225, 0.76));
}

.site-footer-copy {
  max-width: 1240px;
  text-align: justify;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.site-footer-copy p {
  margin: 0;
}

.site-footer-copy strong {
  color: var(--text);
  font-size: inherit;
}

.monitoring-pending-list {
  gap: 12px;
}

.monitoring-pending-row {
  align-items: start;
}

.topbar {
  border-radius: var(--radius-xl);
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, rgba(244, 247, 244, 0.96), rgba(232, 238, 234, 0.92));
  border-color: rgba(74, 74, 74, 0.08);
  position: sticky;
  top: 12px;
  z-index: 18;
  box-shadow: 0 18px 34px rgba(18, 34, 26, 0.1);
}

.topbar-copy {
  display: grid;
  gap: 4px;
}

.topbar-copy h2 {
  line-height: 1.05;
  color: var(--panel-ink);
}

.topbar-subtitle {
  margin: 0;
  max-width: 52ch;
  color: rgba(24, 49, 38, 0.66);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.mobile-menu-button {
  display: none;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-deep);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(241, 245, 242, 0.76));
  border: 1px solid rgba(74, 74, 74, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.current-admin {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(241, 245, 242, 0.76));
  border: 1px solid rgba(74, 74, 74, 0.08);
  color: var(--green-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.panel {
  display: none;
  gap: 14px;
}

.panel.active {
  display: grid;
}

.workspace-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(226, 230, 226, 0.96), rgba(214, 219, 214, 0.9));
  border: 1px solid rgba(74, 74, 74, 0.08);
  width: fit-content;
  max-width: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 8px 18px rgba(18, 34, 26, 0.08);
}

.workspace-chip {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(15, 75, 50, 0.08);
  background: linear-gradient(180deg, rgba(248, 249, 247, 0.98), rgba(233, 236, 232, 0.94));
  color: var(--green-deep);
  font-weight: 520;
  box-shadow: none;
}

.workspace-chip.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(1, 95, 65, 0.98), rgba(44, 100, 71, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 20px rgba(18, 34, 26, 0.14);
}

.workspace-card {
  display: none;
}

.workspace-card.active {
  display: block;
}

.hero {
  border-radius: var(--radius-xl);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(247, 249, 247, 0.94), rgba(238, 242, 239, 0.88)),
    radial-gradient(circle at top right, rgba(1, 95, 65, 0.14), transparent 30%),
    linear-gradient(90deg, rgba(220, 238, 230, 0.34), transparent 36%);
  color: var(--text);
  border: 1px solid rgba(74, 74, 74, 0.08);
  box-shadow:
    0 20px 36px rgba(18, 34, 26, 0.12),
    0 6px 14px rgba(18, 34, 26, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: none;
}

.hero::after {
  content: none;
}

.lead {
  margin: 12px 0 0;
  max-width: 48ch;
  line-height: 1.58;
  color: var(--ink-soft);
}

.hero-minimal {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.hero-side {
  display: grid;
  gap: 10px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
}

.hero-chip-row,
.badge-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-chip,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.hero-chip {
  color: var(--green-deep);
  background: linear-gradient(180deg, rgba(227, 244, 236, 0.96), rgba(211, 233, 222, 0.9));
  border: 1px solid rgba(1, 95, 65, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-guidance {
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 248, 244, 0.84), rgba(233, 237, 231, 0.76));
  border: 1px solid rgba(18, 34, 26, 0.11);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
}

.hero-guidance strong {
  display: block;
  margin-bottom: 8px;
}

.hero-guidance p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

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

.summary-card {
  min-height: 64px;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(252, 253, 251, 0.99), rgba(241, 244, 241, 0.95));
  border: 1px solid rgba(74, 74, 74, 0.08);
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
  box-shadow:
    0 10px 20px rgba(18, 34, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.summary-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
  letter-spacing: 0;
}

.summary-card span {
  color: var(--muted);
}

.overview-grid,
.content-grid {
  display: grid;
  gap: 14px;
}

.dashboard-grid {
  align-items: start;
}

.overview-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.content-grid.one {
  grid-template-columns: 1fr;
}

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

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

.surface-card {
  border-radius: var(--radius-xl);
  padding: 17px;
  background: linear-gradient(180deg, rgba(252, 253, 251, 0.99), rgba(239, 242, 239, 0.95));
  border: 1px solid rgba(74, 74, 74, 0.08);
  box-shadow:
    0 16px 28px rgba(18, 34, 26, 0.1),
    0 4px 12px rgba(18, 34, 26, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.command-card {
  min-height: 100%;
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 247, 243, 0.78), rgba(231, 235, 229, 0.66));
  border: 1px solid rgba(18, 34, 26, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.step-item strong {
  color: var(--green-deep);
}

.step-item span {
  color: var(--muted);
  line-height: 1.5;
}

.helper-text {
  margin: -2px 0 12px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.82rem;
}

.section-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-panel {
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(245, 247, 243, 0.78), rgba(230, 234, 228, 0.68));
  border: 1px solid rgba(18, 34, 26, 0.1);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.mini-panel strong {
  display: block;
  margin-bottom: 6px;
}

.mini-panel span {
  color: var(--muted);
  line-height: 1.5;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(18, 34, 26, 0.09);
}

.section-text {
  max-width: 44ch;
  margin: 0;
  line-height: 1.55;
  font-size: 0.86rem;
}

.form-grid {
  display: grid;
  gap: 10px;
}

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

.form-grid label,
.search-label {
  display: grid;
  gap: 8px;
  font-size: var(--font-label);
  color: var(--muted);
}

.inline-action-row {
  display: flex;
  justify-content: flex-start;
  margin-top: -4px;
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(18, 34, 26, 0.12);
  background: linear-gradient(180deg, rgba(251, 252, 249, 0.92), rgba(239, 242, 237, 0.86));
  padding: 12px 13px;
  color: var(--text);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 1px 1px rgba(18, 34, 26, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(21, 106, 71, 0.28);
  box-shadow:
    0 0 0 4px rgba(21, 106, 71, 0.14),
    0 10px 18px rgba(18, 34, 26, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

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

.primary-button,
.secondary-button,
.form-grid button,
.action-row button {
  min-height: 41px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.primary-button,
.form-grid button {
  color: white;
  background: linear-gradient(180deg, #27825e, #015f41);
  box-shadow:
    0 12px 20px rgba(1, 95, 65, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.secondary-button {
  color: var(--green-deep);
  background: linear-gradient(180deg, rgba(250, 251, 248, 0.9), rgba(236, 240, 234, 0.82));
  border: 1px solid rgba(15, 75, 50, 0.1);
  box-shadow: var(--shadow-sm);
}

.primary-button:hover,
.secondary-button:hover,
.form-grid button:hover,
.action-row button:hover,
.workspace-chip:hover,
.nav-link:hover {
  transform: translateY(-1px);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(21, 106, 71, 0.16);
}

.list-view,
.report-view,
.empty-state {
  margin-top: 14px;
}

.list-view {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.list-item {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(252, 253, 251, 0.99), rgba(241, 244, 241, 0.95));
  border: 1px solid rgba(74, 74, 74, 0.08);
  box-shadow:
    0 12px 22px rgba(18, 34, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.portal-store-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: start;
}

.portal-store-catalog-panel,
.portal-store-side-panel {
  min-width: 0;
}

.portal-store-side-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.portal-store-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.portal-store-card {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(74, 74, 74, 0.1);
  background: linear-gradient(180deg, rgba(252, 253, 251, 0.99), rgba(241, 244, 241, 0.95));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.portal-store-card.selected {
  border-color: rgba(1, 95, 65, 0.45);
  box-shadow: 0 14px 30px rgba(1, 95, 65, 0.13);
}

.portal-store-card:hover {
  transform: translateY(-1px);
}

.portal-store-media {
  position: relative;
  min-height: 150px;
  background: #e6ece8;
  overflow: hidden;
}

.portal-store-image {
  width: 100%;
  height: 100%;
  min-height: 150px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.portal-store-image-fallback,
.portal-store-photo-count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border: 1px solid rgba(74, 74, 74, 0.1);
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.portal-store-photo-count {
  left: auto;
  right: 10px;
}

.portal-store-meta {
  min-width: 0;
  padding: 12px;
  display: grid;
  gap: 7px;
  align-content: start;
}

.portal-store-title {
  font-size: 0.94rem;
  line-height: 1.25;
  color: var(--text-main);
  min-height: 2.25em;
}

.portal-store-subline,
.portal-store-muted {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.portal-store-description,
.portal-store-policy {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.38;
  color: var(--text-muted);
}

.portal-store-policy {
  border-left: 3px solid rgba(1, 95, 65, 0.22);
  padding-left: 8px;
}

.portal-store-price {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}

.portal-store-price span {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.portal-store-price strong {
  font-size: 1.08rem;
  color: var(--accent);
}

.portal-store-actions {
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 38px;
  gap: 8px;
  align-items: center;
}

.portal-store-actions .secondary-button {
  min-height: 34px;
  padding: 0;
}

.portal-store-qty {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid var(--surface-line);
  background: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.portal-store-detail {
  display: grid;
  gap: 12px;
}

.portal-store-detail.empty-state {
  min-height: 180px;
  align-content: center;
}

.portal-store-detail-gallery {
  display: grid;
  gap: 8px;
}

.portal-store-detail-gallery > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #e6ece8;
  border: 1px solid rgba(74, 74, 74, 0.08);
}

.portal-store-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.portal-store-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #e6ece8;
}

.portal-store-detail-copy {
  display: grid;
  gap: 8px;
}

.portal-store-detail-copy h4,
.portal-store-detail-copy p {
  margin: 0;
}

.portal-store-detail-copy h4 {
  line-height: 1.22;
}

.portal-store-detail-text,
.portal-store-detail-policy {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.portal-store-detail-policy {
  border-left: 3px solid rgba(1, 95, 65, 0.22);
  padding-left: 9px;
}

.traceability-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e8f2ed;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 720;
  line-height: 1.2;
}

.traceability-badge.compact {
  font-size: 0.7rem;
}

.portal-store-detail-actions {
  display: grid;
  grid-template-columns: 42px 54px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.portal-cart-view {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.portal-cart-list {
  display: grid;
  gap: 8px;
}

.portal-checkout-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(17, 22, 20, 0.1);
  background: #ffffff;
}

body.portal-modal-open {
  overflow: hidden;
}

.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(17, 22, 20, 0.32);
  backdrop-filter: blur(12px);
}

.portal-modal {
  width: min(100%, 620px);
  max-height: min(88vh, 760px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(17, 22, 20, 0.22), 0 2px 12px rgba(17, 22, 20, 0.08);
}

.portal-modal.product-detail-modal {
  width: min(100%, 860px);
}

.portal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 2px 2px 8px;
}

.portal-modal-head h3 {
  margin: 3px 0 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.portal-modal-close {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  background: #f2f4f2;
  border-color: rgba(17, 22, 20, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.portal-modal-close::before {
  content: "×";
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
}

.portal-modal-close:hover {
  background: #e8eee9;
}

.donation-instructions-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(1, 95, 65, 0.16);
  background: #ffffff;
}

.portal-modal .donation-instructions-panel {
  padding: 0;
  border: 0;
}

.product-detail-modal-body {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.product-detail-modal-gallery {
  position: sticky;
  top: 0;
}

.product-detail-modal-copy {
  display: grid;
  gap: 12px;
}

.product-detail-modal-copy h4,
.product-detail-modal-copy p {
  margin: 0;
}

.product-detail-modal-copy h4 {
  font-size: 1.22rem;
  line-height: 1.22;
}

.product-detail-modal-copy section {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 22, 20, 0.08);
}

.product-detail-modal-copy section p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.62;
  white-space: pre-line;
}

.product-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-detail-facts span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border-radius: 8px;
  background: #f4f7f5;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-detail-facts strong {
  color: var(--text);
  font-size: 0.76rem;
}

.donation-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.donation-pix-box {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(1, 95, 65, 0.18);
  background: #f1f7f4;
}

.donation-pix-box.amount-box {
  border-color: rgba(120, 89, 20, 0.22);
  background: #f8f5ed;
}

.donation-pix-box span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  text-transform: uppercase;
}

.donation-pix-box strong {
  color: var(--green);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.donation-pix-box.amount-box strong {
  color: var(--text);
  font-size: 1.12rem;
}

.pix-copy-button {
  width: fit-content;
  margin-top: 4px;
}

.donation-proof-form {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 22, 20, 0.08);
}

.donation-proof-form label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 680;
  color: var(--text);
}

.donation-proof-form input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 9px;
  border: 1px solid rgba(17, 22, 20, 0.12);
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
}

.donation-proof-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.donation-proof-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.checkout-head h4,
.checkout-head p,
.checkout-section p {
  margin: 0;
}

.checkout-head p,
.checkout-section p {
  color: var(--muted);
  line-height: 1.5;
}

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

.checkout-steps span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #eef2ef;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 680;
}

.checkout-steps span.done,
.checkout-steps span.current {
  background: #e4eee9;
  color: var(--green);
}

.checkout-steps span.current {
  box-shadow: inset 0 -2px 0 rgba(1, 95, 65, 0.72);
}

.checkout-section {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 22, 20, 0.08);
}

.checkout-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: start;
  font-size: 0.84rem;
}

.checkout-row span {
  color: var(--muted);
}

.checkout-row strong {
  text-align: right;
  color: var(--text);
}

.checkout-row.total {
  padding-top: 7px;
  border-top: 1px solid rgba(17, 22, 20, 0.08);
}

.institutional-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.institutional-doc-link {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(74, 74, 74, 0.1);
  background: linear-gradient(180deg, rgba(252, 253, 251, 0.99), rgba(241, 244, 241, 0.95));
  color: var(--text-main);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.institutional-doc-link strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.institutional-doc-link span {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.38;
}

.institutional-doc-link:hover {
  border-color: rgba(1, 95, 65, 0.35);
}

.priority-board,
.task-stack {
  display: grid;
  gap: 12px;
}

.dispensation-panel-grid {
  align-items: start;
}

.dispensation-overview-card {
  display: grid;
  gap: 12px;
}

.dispensation-focus-card {
  align-content: start;
}

.case-strip {
  margin-top: 4px;
}

.journey-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.25fr;
  gap: 8px;
  margin-top: 10px;
}

.journey-step,
.journey-highlight {
  border-radius: 16px;
  border: 1px solid rgba(18, 34, 26, 0.1);
  background: linear-gradient(180deg, rgba(247, 248, 244, 0.82), rgba(232, 236, 230, 0.72));
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.journey-step {
  display: grid;
  gap: 6px;
  padding: 12px 11px;
  text-align: left;
  color: var(--text);
}

.journey-step.active {
  background: linear-gradient(180deg, rgba(205, 224, 215, 0.88), rgba(226, 234, 228, 0.82));
  border-color: rgba(1, 95, 65, 0.18);
  box-shadow:
    0 12px 20px rgba(18, 34, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.journey-step strong,
.journey-highlight strong {
  margin: 0;
}

.journey-step small,
.journey-highlight span {
  color: var(--muted);
  line-height: 1.5;
}

.journey-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(21, 106, 71, 0.1);
  font-size: 0.72rem;
  font-weight: 650;
}

.journey-highlight {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 14px;
}

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

.flow-lane {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 248, 244, 0.84), rgba(232, 236, 230, 0.74));
  border: 1px solid rgba(18, 34, 26, 0.11);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.flow-lane-muted {
  background: linear-gradient(180deg, rgba(241, 244, 239, 0.76), rgba(228, 232, 226, 0.64));
}

.flow-lane-head,
.flow-lane-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.flow-lane-head span,
.flow-lane-item span,
.flow-lane-item small {
  color: var(--muted);
  line-height: 1.5;
}

.flow-lane-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(1, 95, 65, 0.08);
  color: var(--green);
  font-weight: 700;
}

.flow-lane-body {
  display: grid;
  gap: 10px;
}

.flow-lane-item {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 7px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(15, 75, 50, 0.08);
  background: rgba(247, 250, 248, 0.92);
  color: var(--text);
}

.flow-lane-item strong {
  margin: 0;
}

.flow-lane-empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 75, 50, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

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

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

.kanban-column {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(250, 250, 248, 0.88);
  border: 1px solid rgba(15, 75, 50, 0.08);
  min-height: 260px;
}

.kanban-column-head,
.flow-item-head,
.order-history-head,
.timeline-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.kanban-column-head strong,
.flow-item-head strong,
.order-history-head strong,
.timeline-heading h4 {
  margin: 0;
}

.kanban-column-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(21, 106, 71, 0.1);
}

.kanban-column-body {
  display: grid;
  gap: 10px;
}

.flow-item-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 75, 50, 0.08);
  box-shadow: var(--shadow-sm);
}

.flow-item-card span,
.kanban-empty,
.timeline-heading p,
.timeline-step span {
  color: var(--muted);
  line-height: 1.5;
}

.kanban-empty {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed rgba(15, 75, 50, 0.12);
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
  border: 1px solid transparent;
}

.flow-badge.neutral,
.flow-badge.info {
  color: var(--green-deep);
  background: rgba(21, 106, 71, 0.1);
  border-color: rgba(15, 75, 50, 0.08);
}

.flow-badge.warning {
  color: #805b00;
  background: rgba(255, 210, 105, 0.22);
  border-color: rgba(197, 142, 0, 0.18);
}

.flow-badge.success {
  color: var(--success);
  background: rgba(31, 122, 86, 0.12);
  border-color: rgba(31, 122, 86, 0.12);
}

.flow-badge.danger {
  color: #8c2f39;
  background: rgba(205, 80, 95, 0.14);
  border-color: rgba(205, 80, 95, 0.18);
}

.priority-item,
.task-shortcut {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 14px 13px 16px;
  border-radius: 15px;
  border: 1px solid rgba(15, 75, 50, 0.07);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.task-shortcut {
  grid-template-columns: 1fr;
}

.priority-item::before,
.task-shortcut::before,
.focus-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(21, 106, 71, 0.95), rgba(191, 149, 83, 0.7));
}

.compact-report {
  padding: 14px;
}

.task-queue {
  display: grid;
  gap: 12px;
}

.task-form {
  gap: 14px;
}

.list-item,
.report-card,
.info-strip {
  border-radius: 14px;
  padding: 13px 14px;
  background: linear-gradient(180deg, rgba(252, 253, 251, 0.99), rgba(241, 244, 241, 0.95));
  border: 1px solid rgba(74, 74, 74, 0.08);
  box-shadow:
    0 12px 22px rgba(18, 34, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.list-item + .list-item {
  margin-top: 8px;
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.gmail-inbox-item {
  display: grid;
  gap: 8px;
}

.gmail-inbox-item-pending {
  border-color: rgba(191, 149, 83, 0.28);
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.92), rgba(255, 255, 255, 0.74));
}

.associate-card {
  display: grid;
  gap: 14px;
}

.associate-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.associate-card-head strong {
  margin-bottom: 4px;
}

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

.associate-meta-grid span {
  display: block;
}

.associate-meta-grid strong,
.associate-note strong {
  display: inline;
  margin: 0;
  color: var(--green-deep);
}

.full-line {
  grid-column: 1 / -1;
}

.associate-linked-panel {
  padding: 12px;
  border-radius: 16px;
  background: rgba(21, 106, 71, 0.06);
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.associate-linked-panel h5 {
  margin: 0 0 10px;
  color: var(--green-deep);
}

.associate-doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lineage-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.lineage-summary-grid span {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 8px;
  background: #f4f7f5;
  color: var(--muted);
  font-size: 0.82rem;
}

.lineage-summary-grid strong {
  color: var(--green);
  font-size: 1rem;
}

.lineage-segment-list {
  display: grid;
  gap: 10px;
}

.lineage-segment-card {
  border-left: 3px solid rgba(1, 95, 65, 0.24);
}

.lineage-segment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-history-card {
  display: grid;
  gap: 8px;
}

.order-ops-card {
  display: grid;
  gap: 10px;
}

.conciliation-active-panel {
  display: grid;
  gap: 12px;
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.conciliation-active-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.conciliation-active-head > div {
  display: grid;
  gap: 4px;
}

.conciliation-active-head strong {
  color: var(--green-deep);
}

.conciliation-active-head span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.conciliation-active-grid span strong {
  color: var(--green-deep);
}

.conciliation-wix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.inline-input {
  display: grid;
  gap: 6px;
}

.inline-input span {
  font-size: 0.8rem;
  color: var(--muted);
}

.inline-input input {
  width: 100%;
}

.order-ops-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.order-ops-head > div {
  display: grid;
  gap: 4px;
}

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

.order-ops-grid strong,
.order-ops-card > span strong {
  color: var(--green-deep);
}

.doc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 75, 50, 0.08);
  font-size: 0.8rem;
  box-shadow: none;
}

.doc-chip.disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.product-list-card,
.store-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: start;
}

.product-thumb,
.store-card-image {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.store-card-copy {
  display: grid;
  gap: 6px;
}

.associate-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 75, 50, 0.06);
  color: var(--muted);
  line-height: 1.6;
}

.list-item span,
.report-card p,
.empty-state,
.info-strip {
  color: var(--muted);
  line-height: 1.6;
}

.consultation-section .workspace-switch {
  margin-top: 2px;
}

.consultation-panel-card {
  position: relative;
  overflow: hidden;
}

.consultation-panel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(21, 106, 71, 0.88), rgba(191, 149, 83, 0.54));
  opacity: 0.9;
}

.consultation-form-card,
.consultation-doc-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(251, 252, 251, 0.9));
}

.consultation-finance-card {
  background:
    linear-gradient(180deg, rgba(252, 249, 242, 0.98), rgba(255, 255, 255, 0.9));
}

.consultation-profile-card {
  background:
    linear-gradient(180deg, rgba(248, 252, 249, 0.98), rgba(255, 255, 255, 0.9));
}

.consultation-history-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 249, 0.9));
}

.consultation-card {
  display: grid;
  gap: 9px;
  padding: 14px 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 251, 250, 0.9));
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.consultation-card .associate-doc-row {
  margin-top: 2px;
}

.consultation-card a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.consultation-card .inline-action-row {
  margin-top: 2px;
}

.consultation-card .consultation-complete-form {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 75, 50, 0.08);
}

.finance-report-card {
  background: rgba(255, 253, 249, 0.98);
}

.badge {
  color: var(--green-deep);
  background: rgba(21, 106, 71, 0.1);
}

.field-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.field-tag.required {
  color: white;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
}

.field-tag.recommended {
  color: var(--green-deep);
  background: rgba(21, 106, 71, 0.12);
}

.compact-head {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 75, 50, 0.07);
}

.report-card h4 {
  margin-bottom: 10px;
}

.report-card h5 {
  margin: 18px 0 10px;
  color: var(--green-deep);
}

.score-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(31, 122, 86, 0.12);
  font-weight: 650;
  box-shadow: none;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.timeline-step {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.timeline-step strong {
  color: var(--green-deep);
}

.timeline-step.current {
  background: rgba(255, 210, 105, 0.2);
  border-color: rgba(197, 142, 0, 0.22);
}

.timeline-step.done {
  background: rgba(21, 106, 71, 0.1);
  border-color: rgba(15, 75, 50, 0.12);
}

.compact-check-list {
  margin-bottom: 12px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.check-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(15, 75, 50, 0.06);
}

.pending-associate-panel {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(21, 106, 71, 0.06);
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.pending-reason-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(180, 121, 25, 0.08);
  border: 1px solid rgba(180, 121, 25, 0.18);
}

.pending-reason-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-deep);
}

.pending-reason-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.pending-associate-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-deep);
}

.pending-associate-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
}

.associate-card-focus {
  box-shadow: 0 0 0 2px rgba(31, 122, 86, 0.18), 0 18px 40px rgba(15, 75, 50, 0.12);
  transform: translateY(-2px);
}

.check-row-copy {
  display: grid;
  gap: 5px;
}

.check-row-copy strong {
  font-size: 0.95rem;
}

.check-row-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.check-row-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.check-ok {
  color: var(--success);
  font-weight: 650;
}

.check-pending {
  color: var(--accent);
  font-weight: 650;
}

.check-fail {
  color: var(--danger);
  font-weight: 650;
}

.feedback {
  display: none;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
}

.empty-state {
  padding: 16px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(15, 75, 50, 0.12);
}

.feedback.success,
.feedback.error {
  display: block;
}

.feedback.success {
  color: var(--success);
}

.feedback.error {
  color: var(--danger);
}

.compliance-action-button {
  min-height: 36px;
  padding: 0 14px;
}

.compliance-focus {
  box-shadow:
    0 0 0 4px rgba(21, 106, 71, 0.18),
    0 18px 32px rgba(21, 106, 71, 0.12);
  transition: box-shadow 0.25s ease;
}

.rdc-group-list {
  display: grid;
  gap: 12px;
}

.rdc-group-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 75, 50, 0.06);
}

.rdc-group-card strong {
  font-size: 0.98rem;
}

.rdc-group-card p,
.rdc-next-step {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.mobile-nav {
  display: none !important;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  background: rgba(17, 30, 24, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (max-width: 1280px) {
  .shell {
    grid-template-columns: 238px minmax(0, 1fr);
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: 8px;
    max-height: calc(100vh - 16px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: start;
    padding: 12px;
  }

  .nav-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: stretch;
  }

  .nav-card .nav-link {
    min-height: 34px;
    padding: 6px 9px;
    text-align: left;
    justify-content: flex-start;
    border-radius: 11px;
    font-size: 0.78rem;
    letter-spacing: 0;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
  }

  .topbar-copy,
  .topbar-actions {
    width: 100%;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .current-admin,
  .topbar-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero,
  .overview-grid,
  .journey-rail,
  .flow-lane-board,
  .timeline-track,
  .section-strip,
  .content-grid.two,
  .content-grid.three,
  .form-grid.two-columns,
  .action-grid {
    grid-template-columns: 1fr;
  }

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

  .conciliation-active-grid,
  .conciliation-wix-row,
  .order-ops-grid {
    grid-template-columns: 1fr;
  }

  /* Portal do associado: manter menu lateral no notebook com leitura limpa */
  #portalShell.shell {
    grid-template-columns: 258px 1fr;
    align-items: start;
  }

  #portalShell .sidebar {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    padding: 14px;
    overflow-y: auto;
  }

  #portalShell .nav-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #portalShell .nav-card .nav-link {
    min-height: 40px;
    padding: 9px 10px;
    text-align: left;
    justify-content: flex-start;
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .shell {
    width: min(100% - 14px, 1500px);
    margin: 7px auto;
  }

  .sidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: min(84vw, 340px);
    max-height: none;
    z-index: 60;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 14px;
    overflow-y: auto;
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.24s ease;
  }

  .shell.mobile-menu-open .sidebar {
    transform: translateX(0);
  }

  .brand-card {
    padding: 10px;
  }

  .brand-card .muted {
    display: none;
  }


  .contact-card {
    display: none;
  }

  .nav-card {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    overflow-y: auto;
  }

  .topbar {
    padding-bottom: 18px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .current-admin,
  .topbar-link,
  #portalLogoutButton {
    width: 100%;
    justify-content: center;
  }

  .section-inline-head,
  .check-row,
  .associate-card-head,
  .order-ops-head,
  .order-history-head,
  .timeline-heading {
    flex-direction: column;
  }

  .check-row-status {
    justify-items: start;
  }

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

  .workspace-switch {
    overflow: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .flow-lane-head,
  .flow-lane-item-head {
    flex-direction: column;
  }

  .associate-meta-grid {
    grid-template-columns: 1fr;
  }

  .product-list-card,
  .store-card {
    grid-template-columns: 1fr;
  }

  .product-thumb,
  .store-card-image {
    width: 100%;
    height: 180px;
  }

  .portal-store-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }

  .portal-store-shell {
    grid-template-columns: 1fr;
  }

  .portal-store-side-panel {
    position: static;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-summary-grid {
    grid-template-columns: 1fr;
  }

  .surface-card {
    padding: 18px;
  }

  .mobile-nav {
    display: none !important;
  }

  .mobile-menu-backdrop.visible {
    display: block;
  }

  body {
    padding-bottom: 18px;
  }
}

@media (max-width: 640px) {
  .nav-card .nav-link {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 0.76rem;
  }

  .topbar {
    padding: 14px;
    gap: 12px;
  }

  .topbar-copy {
    gap: 6px;
  }

  .topbar-subtitle {
    max-width: none;
  }

  .sidebar {
    width: min(90vw, 320px);
  }

  .brand-card {
    gap: 10px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .sidebar {
    width: min(92vw, 310px);
    padding: 10px;
    gap: 8px;
  }

  .nav-card,
  .sidebar-account-card {
    padding: 8px;
  }

  .sidebar-account-card .current-admin,
  .sidebar-account-card #logoutButton {
    min-height: 32px;
    font-size: 0.76rem;
  }

  .surface-card {
    padding: 16px;
  }

  .portal-store-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portal-store-card {
    grid-template-columns: 118px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .portal-store-media {
    grid-row: 1 / 3;
    min-height: 100%;
  }

  .portal-store-image {
    min-height: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .portal-store-meta {
    padding: 10px;
    gap: 5px;
  }

  .portal-store-title {
    font-size: 0.88rem;
  }

  .portal-store-description,
  .portal-store-policy,
  .portal-store-muted {
    font-size: 0.72rem;
  }

  .portal-store-description,
  .portal-store-policy {
    display: none;
  }

  .portal-store-actions {
    padding: 0 10px 10px;
    grid-template-columns: minmax(0, 1fr) 34px 34px;
  }

  .portal-store-detail-gallery {
    grid-template-columns: 126px minmax(0, 1fr);
    align-items: start;
  }

  .portal-store-detail-gallery > img {
    aspect-ratio: 1;
  }

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

  .portal-store-detail-actions {
    grid-template-columns: 38px 48px minmax(0, 1fr);
  }
}

/* Reforma visual do portal do associado - 2026-04-25 */
.brand-card,
.nav-card,
.focus-card,
.topbar,
.hero,
.surface-card,
.summary-card,
.feedback,
.site-footer,
.auth-card,
.list-item,
.report-card,
.info-strip,
.priority-item,
.task-shortcut,
.journey-step,
.journey-highlight,
.flow-lane,
.flow-lane-item,
.kanban-column,
.flow-item-card,
.kanban-empty,
.associate-card,
.associate-linked-panel,
.associate-doc-row,
.order-history-card,
.order-ops-card,
.conciliation-active-panel,
.inline-input input,
.product-list-card,
.store-card,
.product-thumb,
.store-card-image,
.associate-note,
.consultation-panel-card,
.consultation-form-card,
.consultation-doc-card,
.consultation-finance-card,
.consultation-profile-card,
.consultation-history-card,
.step-item,
.mini-panel,
.hero-guidance {
  border-radius: var(--radius-lg);
}

.primary-button,
.secondary-button,
.form-grid button,
.action-row button,
.workspace-chip,
.nav-link,
.field-tag,
.badge,
.hero-chip,
.doc-chip {
  border-radius: var(--radius-md);
}

.sidebar {
  border-radius: var(--radius-xl);
}

.brand-logo {
  border-radius: var(--radius-md);
}

.topbar {
  min-height: 74px;
}

.topbar-actions {
  align-items: stretch;
}

.current-admin,
.topbar-link {
  border-radius: var(--radius-md);
  min-height: 38px;
}

.mobile-menu-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.hero {
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: center;
}

.hero-copy h3 {
  max-width: 760px;
  font-size: clamp(1.2rem, 1.7vw, 1.62rem);
  line-height: 1.18;
}

.action-grid .primary-button,
.action-grid .secondary-button {
  justify-content: center;
  min-width: 0;
  white-space: normal;
}

.surface-card,
.summary-card,
.hero-guidance,
.focus-item,
.workspace-switch,
.form-grid input,
.form-grid select,
.form-grid textarea {
  border-color: var(--surface-line);
}

.workspace-switch {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.workspace-chip {
  white-space: nowrap;
}

.field-tag.recommended,
.badge-success {
  background: var(--accent-soft);
  color: var(--accent);
}

.field-tag.required {
  background: var(--gold-soft);
  color: #70571d;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

@media (max-width: 1024px) {
  .shell {
    width: min(100% - 12px, 1480px);
  }

  .topbar {
    position: sticky;
    top: 6px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  #portalInstallButton,
  #portalUserBadge,
  #portalLogoutButton {
    grid-column: 1 / -1;
  }

  .mobile-menu-backdrop.visible {
    display: block;
  }
}

@media (max-width: 640px) {
  .auth-screen {
    padding: 12px;
  }

  .auth-card {
    padding: 20px;
  }

  .hero {
    padding: 18px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .workspace-switch {
    width: 100%;
  }

  .workspace-chip {
    flex: 0 0 auto;
  }
}

/* Protótipo local: arquitetura operacional, menos cards empilhados */
#portalShell.portal-ops-shell {
  width: min(100% - 18px, 1540px);
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 10px;
}

#portalShell.portal-ops-shell .sidebar,
#portalShell.portal-ops-shell .topbar,
#portalShell.portal-ops-shell .hero,
#portalShell.portal-ops-shell .surface-card,
#portalShell.portal-ops-shell .summary-card,
#portalShell.portal-ops-shell .list-item,
#portalShell.portal-ops-shell .report-card,
#portalShell.portal-ops-shell .workspace-switch {
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#portalShell.portal-ops-shell .sidebar {
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f8f5;
  border-color: rgba(17, 22, 20, 0.12);
}

#portalShell.portal-ops-shell .brand-card,
#portalShell.portal-ops-shell .nav-card {
  padding: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#portalShell.portal-ops-shell .brand-logo {
  width: 44px;
  height: 44px;
}

#portalShell.portal-ops-shell .brand-card h1 {
  font-size: 1.02rem;
  line-height: 1.12;
}

#portalShell.portal-ops-shell .nav-card {
  display: grid;
  gap: 3px;
}

#portalShell.portal-ops-shell .nav-link {
  justify-content: flex-start;
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #26332d;
  box-shadow: none;
  font-size: 0.88rem;
  font-weight: 620;
}

#portalShell.portal-ops-shell .nav-link.active {
  background: #e4eee9;
  border-color: rgba(1, 95, 65, 0.16);
  color: var(--green);
}

#portalShell.portal-ops-shell .main {
  gap: 10px;
}

#portalShell.portal-ops-shell .topbar {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  top: 8px;
  background: #ffffff;
}

#portalShell.portal-ops-shell .panel {
  gap: 10px;
  scroll-margin-top: 118px;
}

#portalShell.portal-ops-shell .section-header {
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 22, 20, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

#portalShell.portal-ops-shell .workspace-switch {
  width: 100%;
  border-radius: 8px;
  background: #eef2ef;
  border-color: rgba(17, 22, 20, 0.1);
  overflow-x: auto;
  flex-wrap: nowrap;
}

#portalShell.portal-ops-shell .workspace-chip {
  border-radius: 6px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

#portalShell.portal-ops-shell .workspace-chip.active {
  background: #ffffff;
  color: var(--green);
  box-shadow: inset 0 -2px 0 rgba(1, 95, 65, 0.72);
}

#portalShell.portal-ops-shell .hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  padding: 14px;
  border-radius: 8px;
  background: #ffffff;
}

#portalShell.portal-ops-shell .hero-copy h3 {
  font-size: 1.34rem;
  line-height: 1.24;
}

#portalShell.portal-ops-shell .lead {
  margin-top: 6px;
}

#portalShell.portal-ops-shell .action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#portalShell.portal-ops-shell .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#portalShell.portal-ops-shell .summary-card {
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f8faf8;
}

#portalShell.portal-ops-shell .surface-card {
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  border-color: rgba(17, 22, 20, 0.1);
}

#portalShell.portal-ops-shell .content-grid.two {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
}

#portalShell.portal-ops-shell .content-grid.one {
  grid-template-columns: 1fr;
}

#portalShell.portal-ops-shell .list-view {
  max-height: min(58vh, 620px);
}

#portalShell.portal-ops-shell .list-item,
#portalShell.portal-ops-shell .report-card {
  border-radius: 6px;
  background: #ffffff;
  border-color: rgba(17, 22, 20, 0.1);
}

#portalShell.portal-ops-shell .institutional-doc-grid {
  grid-template-columns: 1fr;
}

#portalShell.portal-ops-shell .institutional-doc-link {
  min-height: 0;
  border-radius: 6px;
  box-shadow: none;
  background: #ffffff;
}

#portalShell.portal-ops-shell .portal-store-shell {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
}

#portalShell.portal-ops-shell .portal-store-catalog-panel,
#portalShell.portal-ops-shell .portal-store-side-panel {
  min-height: calc(100vh - 250px);
}

#portalShell.portal-ops-shell .portal-store-grid {
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
}

#portalShell.portal-ops-shell .portal-store-card {
  border-radius: 6px;
  box-shadow: none;
  background: #ffffff;
}

#portalShell.portal-ops-shell .portal-store-media,
#portalShell.portal-ops-shell .portal-store-image {
  min-height: 132px;
}

#portalShell.portal-ops-shell .portal-store-side-panel {
  position: sticky;
  top: 84px;
}

@media (max-width: 1280px) {
  #portalShell.portal-ops-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  #portalShell.portal-ops-shell .action-grid,
  #portalShell.portal-ops-shell .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #portalShell.portal-ops-shell .content-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  #portalShell.portal-ops-shell {
    grid-template-columns: 1fr;
  }

  #portalShell.portal-ops-shell .sidebar {
    position: fixed;
    border-radius: 8px;
  }

  #portalShell.portal-ops-shell .hero,
  #portalShell.portal-ops-shell .portal-store-shell {
    grid-template-columns: 1fr;
  }

  #portalShell.portal-ops-shell .portal-store-side-panel {
    position: static;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  #portalShell.portal-ops-shell {
    width: min(100% - 10px, 1540px);
  }

  #portalShell.portal-ops-shell .section-header,
  #portalShell.portal-ops-shell .topbar {
    align-items: stretch;
  }

  #portalShell.portal-ops-shell .action-grid,
  #portalShell.portal-ops-shell .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Protótipo local: fluxo contínuo, gerenciador de arquivos, e-commerce e rastreio nativo */
#portalShell.portal-ops-shell .surface-card {
  border-color: transparent;
  background: transparent;
  padding: 0;
}

#portalShell.portal-ops-shell .content-grid {
  gap: 10px;
}

#portalShell.portal-ops-shell .hero {
  border: 1px solid rgba(17, 22, 20, 0.1);
}

#portalShell.portal-ops-shell .hero-side .summary-grid,
#portalShell.portal-ops-shell #portalStoreSummary,
#portalShell.portal-ops-shell #portalOrdersSummary {
  border: 1px solid rgba(17, 22, 20, 0.1);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.journey-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 0;
  margin-top: 10px;
  overflow-x: auto;
  padding: 18px 4px 8px;
}

.journey-flow::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 36px;
  right: 36px;
  height: 2px;
  background: #c9d7d0;
}

.journey-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  min-width: 130px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
}

.journey-dot {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8efeb;
  border: 2px solid #ffffff;
  color: var(--green);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(1, 95, 65, 0.18);
}

.journey-node.active .journey-dot,
.journey-node.highlight .journey-dot {
  background: var(--green);
  color: #ffffff;
}

.journey-node strong {
  margin-top: 4px;
  font-size: 0.91rem;
  line-height: 1.25;
}

.journey-node small,
.journey-node em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.4;
}

.file-manager,
.portal-store-catalog-panel,
.portal-store-side-panel,
.tracking-primary,
.tracking-list-row,
.correios-panel {
  border: 1px solid rgba(17, 22, 20, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.file-manager {
  overflow: hidden;
}

.file-manager-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(17, 22, 20, 0.08);
  color: var(--muted);
}

.file-manager-head strong {
  color: var(--text);
}

.file-folder-list {
  display: grid;
}

.file-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid rgba(17, 22, 20, 0.07);
  background: #ffffff;
  color: var(--text);
  text-align: left;
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row:hover {
  background: #f7faf8;
}

.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #e4eee9;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
}

.file-row span {
  display: grid;
  gap: 2px;
}

.file-row small,
.file-row em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
}

.document-file-row {
  grid-template-columns: 46px minmax(0, 1fr) minmax(86px, auto) auto;
  margin: 0;
  box-shadow: none;
}

#portalShell.portal-ops-shell .portal-store-shell {
  align-items: stretch;
}

#portalShell.portal-ops-shell .portal-store-catalog-panel,
#portalShell.portal-ops-shell .portal-store-side-panel {
  padding: 12px;
}

#portalShell.portal-ops-shell .portal-store-card {
  cursor: pointer;
  border-color: rgba(17, 22, 20, 0.1);
}

#portalShell.portal-ops-shell .portal-store-card:hover {
  border-color: rgba(1, 95, 65, 0.28);
  box-shadow: 0 12px 24px rgba(18, 34, 26, 0.08);
}

#portalShell.portal-ops-shell .portal-store-detail {
  margin-top: 0;
}

/* Portal associado: acabamento visual compacto e menos "card empilhado" */
#portalShell.portal-ops-shell {
  width: min(100% - 20px, 1560px);
  gap: 12px;
}

body:has(#portalShell.portal-ops-shell:not(.hidden)) {
  background:
    linear-gradient(180deg, #f5f7f4 0%, #eef3ef 48%, #f8f8f4 100%),
    linear-gradient(115deg, rgba(47, 96, 115, 0.08), transparent 34%);
}

#portalShell.portal-ops-shell .sidebar {
  border: 1px solid rgba(17, 22, 20, 0.1);
  background: linear-gradient(180deg, #fbfcfa, #eef3ef);
  box-shadow: 0 12px 26px rgba(18, 34, 26, 0.07);
}

#portalShell.portal-ops-shell .brand-card {
  align-items: center;
  padding: 10px 8px 14px;
  border-bottom: 1px solid rgba(17, 22, 20, 0.08);
  border-radius: 0;
}

#portalShell.portal-ops-shell .brand-card .muted {
  font-size: 0.78rem;
  line-height: 1.3;
}

#portalShell.portal-ops-shell .nav-link {
  position: relative;
  min-height: 42px;
  padding: 0 10px 0 14px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

#portalShell.portal-ops-shell .nav-link::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

#portalShell.portal-ops-shell .nav-link:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 22, 20, 0.06);
}

#portalShell.portal-ops-shell .nav-link.active {
  background: #ffffff;
  border-color: rgba(1, 95, 65, 0.14);
  box-shadow: 0 8px 18px rgba(18, 34, 26, 0.06);
}

#portalShell.portal-ops-shell .nav-link.active::before {
  background: var(--green);
}

#portalShell.portal-ops-shell .main {
  min-width: 0;
}

#portalShell.portal-ops-shell .topbar,
#portalShell.portal-ops-shell .section-header {
  border: 1px solid rgba(17, 22, 20, 0.09);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(18, 34, 26, 0.055);
}

#portalShell.portal-ops-shell .topbar {
  backdrop-filter: blur(12px) saturate(1.04);
  -webkit-backdrop-filter: blur(12px) saturate(1.04);
}

#portalShell.portal-ops-shell .topbar-copy {
  display: grid;
  gap: 2px;
}

#portalShell.portal-ops-shell .topbar-subtitle,
#portalShell.portal-ops-shell .section-text,
#portalShell.portal-ops-shell .helper-text {
  color: #5c675f;
}

#portalShell.portal-ops-shell .section-header {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(280px, 0.82fr);
  gap: 18px;
}

#portalShell.portal-ops-shell .section-header h3 {
  font-size: 1.18rem;
  line-height: 1.22;
}

#portalShell.portal-ops-shell .section-text {
  max-width: 640px;
  margin-left: auto;
  font-size: 0.9rem;
  line-height: 1.45;
}

#portalShell.portal-ops-shell .workspace-switch {
  padding: 4px;
  background: rgba(231, 237, 233, 0.86);
  border-color: rgba(17, 22, 20, 0.08);
}

#portalShell.portal-ops-shell .workspace-chip {
  min-height: 34px;
  padding: 0 13px;
  color: #415049;
  font-weight: 680;
}

#portalShell.portal-ops-shell .workspace-chip:hover {
  background: rgba(255, 255, 255, 0.64);
}

#portalShell.portal-ops-shell .workspace-chip.active {
  background: #ffffff;
  border-color: rgba(17, 22, 20, 0.08);
  box-shadow: 0 6px 14px rgba(18, 34, 26, 0.055);
}

#portalShell.portal-ops-shell .hero {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.98)),
    linear-gradient(90deg, rgba(1, 95, 65, 0.05), transparent 38%);
  box-shadow: 0 12px 24px rgba(18, 34, 26, 0.06);
}

#portalShell.portal-ops-shell .hero-copy h3 {
  max-width: 760px;
  font-size: clamp(1.32rem, 1.6vw, 1.72rem);
}

#portalShell.portal-ops-shell .lead {
  max-width: 720px;
  color: #53615a;
}

#portalShell.portal-ops-shell .action-grid {
  align-items: stretch;
}

#portalShell.portal-ops-shell .action-grid button,
#portalShell.portal-ops-shell .primary-button,
#portalShell.portal-ops-shell .secondary-button {
  min-height: 38px;
}

#portalShell.portal-ops-shell .summary-card {
  border: 1px solid rgba(17, 22, 20, 0.08);
  background: linear-gradient(180deg, #ffffff, #f7faf8);
}

#portalShell.portal-ops-shell .summary-card strong {
  font-size: 1.02rem;
}

#portalShell.portal-ops-shell .content-grid {
  align-items: start;
}

#portalShell.portal-ops-shell .surface-card {
  min-width: 0;
}

#portalShell.portal-ops-shell .section-inline-head {
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(17, 22, 20, 0.08);
  margin-bottom: 10px;
}

#portalShell.portal-ops-shell .report-view,
#portalShell.portal-ops-shell .list-view,
#portalShell.portal-ops-shell .empty-state {
  border-radius: 8px;
}

#portalShell.portal-ops-shell .form-grid,
#portalShell.portal-ops-shell .stack-form {
  gap: 12px;
}

#portalShell.portal-ops-shell label {
  color: #26332d;
}

#portalShell.portal-ops-shell input,
#portalShell.portal-ops-shell select,
#portalShell.portal-ops-shell textarea {
  border-color: rgba(17, 22, 20, 0.14);
  background: #ffffff;
  border-radius: 8px;
  min-height: 40px;
}

#portalShell.portal-ops-shell input:focus,
#portalShell.portal-ops-shell select:focus,
#portalShell.portal-ops-shell textarea:focus {
  outline: none;
  border-color: rgba(1, 95, 65, 0.48);
  box-shadow: var(--focus-ring);
}

#portalShell.portal-ops-shell .portal-store-shell {
  gap: 12px;
}

#portalShell.portal-ops-shell .portal-store-catalog-panel,
#portalShell.portal-ops-shell .portal-store-side-panel,
#portalShell.portal-ops-shell .file-manager,
#portalShell.portal-ops-shell .tracking-primary,
#portalShell.portal-ops-shell .tracking-list-row,
#portalShell.portal-ops-shell .correios-panel {
  border-color: rgba(17, 22, 20, 0.09);
  box-shadow: 0 10px 22px rgba(18, 34, 26, 0.055);
}

#portalShell.portal-ops-shell .portal-store-grid {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
}

#portalShell.portal-ops-shell .portal-store-card {
  overflow: hidden;
  border-radius: 10px;
  border-color: rgba(17, 22, 20, 0.1);
  background: linear-gradient(180deg, #ffffff, #fbfcfa);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

#portalShell.portal-ops-shell .portal-store-card:hover {
  transform: translateY(-2px);
}

#portalShell.portal-ops-shell .portal-store-card.selected {
  border-color: rgba(1, 95, 65, 0.42);
  box-shadow: 0 0 0 2px rgba(1, 95, 65, 0.09), 0 14px 28px rgba(18, 34, 26, 0.08);
}

#portalShell.portal-ops-shell .portal-store-media,
#portalShell.portal-ops-shell .portal-store-image {
  min-height: 154px;
  border-radius: 0;
}

#portalShell.portal-ops-shell .portal-store-image-placeholder,
.portal-store-detail-placeholder {
  display: grid;
  place-items: center;
  min-height: 154px;
  background:
    linear-gradient(135deg, rgba(1, 95, 65, 0.08), rgba(47, 96, 115, 0.06)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.62) 0 10px, rgba(236, 242, 238, 0.62) 10px 20px);
}

.portal-store-detail-placeholder {
  min-height: 240px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 720;
}

#portalShell.portal-ops-shell .portal-store-image-placeholder::after {
  content: "Imagem em integração";
  width: min(76%, 180px);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #30443b;
  font-size: 0.76rem;
  font-weight: 780;
  text-align: center;
}

#portalShell.portal-ops-shell .portal-store-meta {
  padding: 11px;
}

#portalShell.portal-ops-shell .portal-store-title {
  font-size: 0.96rem;
  line-height: 1.25;
}

#portalShell.portal-ops-shell .portal-store-price strong {
  font-size: 1.05rem;
}

#portalShell.portal-ops-shell .portal-store-actions {
  padding: 0 11px 11px;
}

#portalShell.portal-ops-shell .portal-store-qty {
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef3ef;
}

#portalShell.portal-ops-shell .portal-store-side-panel {
  background: #fbfcfa;
}

#portalShell.portal-ops-shell .portal-cart-view {
  margin-top: 12px;
  border-top: 1px solid rgba(17, 22, 20, 0.08);
  padding-top: 12px;
}

#portalShell.portal-ops-shell .site-footer-copy,
.site-footer-copy {
  line-height: 1.45;
}

@media (max-width: 1024px) {
  #portalShell.portal-ops-shell .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  #portalShell.portal-ops-shell .topbar-copy,
  #portalShell.portal-ops-shell .topbar-actions {
    width: auto;
  }

  #portalShell.portal-ops-shell .topbar-actions {
    justify-content: end;
    flex-wrap: nowrap;
  }

  #portalShell.portal-ops-shell .mobile-menu-button {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  #portalShell.portal-ops-shell .current-admin {
    width: auto;
    max-width: 240px;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #portalShell.portal-ops-shell #portalLogoutButton {
    width: auto;
    min-width: 68px;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  #portalShell.portal-ops-shell .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #portalShell.portal-ops-shell .topbar-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    width: 100%;
  }

  #portalShell.portal-ops-shell .current-admin {
    max-width: none;
  }

  #portalShell.portal-ops-shell .section-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #portalShell.portal-ops-shell .section-text {
    margin-left: 0;
  }
}

/* Mobile refinement 2026-04-27: stronger small-screen layout for admin and associate portal. */
@media (max-width: 1024px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: #f4f6f2;
  }

  .shell,
  #portalShell.portal-ops-shell {
    width: 100%;
    margin: 0;
    padding: 8px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .main,
  #portalShell.portal-ops-shell .main {
    min-width: 0;
    gap: 10px;
  }

  .topbar,
  #portalShell.portal-ops-shell .topbar {
    top: 0;
    min-height: 0;
    padding: 10px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(18, 34, 26, 0.1);
  }

  .topbar-copy,
  #portalShell.portal-ops-shell .topbar-copy {
    min-width: 0;
    width: 100%;
    gap: 2px;
  }

  .topbar-copy .eyebrow,
  #portalShell.portal-ops-shell .topbar-copy .eyebrow {
    margin-bottom: 0;
    font-size: 0.64rem;
  }

  .topbar-copy h2,
  #portalShell.portal-ops-shell .topbar-copy h2 {
    font-size: 1.08rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .topbar-subtitle,
  #portalShell.portal-ops-shell .topbar-subtitle {
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: none;
  }

  .topbar-actions,
  #portalShell.portal-ops-shell .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    justify-content: stretch;
  }

  .mobile-menu-button,
  #portalShell.portal-ops-shell .mobile-menu-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 8px;
    font-size: 1rem;
  }

  .current-admin,
  #portalShell.portal-ops-shell .current-admin,
  #portalUserBadge {
    width: auto !important;
    min-width: 0;
    max-width: none;
    min-height: 44px;
    padding: 0 10px;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 8px;
  }

  #logoutButton,
  #portalLogoutButton,
  #portalShell.portal-ops-shell #portalLogoutButton {
    width: auto !important;
    min-width: 64px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
  }

  #adminInstallButton,
  #portalInstallButton,
  .topbar-link {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    justify-content: center;
    border-radius: 8px;
  }

  .sidebar,
  #portalShell.portal-ops-shell .sidebar {
    top: 8px;
    left: 8px;
    bottom: 8px;
    width: min(88vw, 340px);
    padding: 10px;
    gap: 10px;
    border-radius: 10px;
    z-index: 70;
    box-shadow: 0 22px 48px rgba(18, 34, 26, 0.22);
  }

  .brand-card,
  #portalShell.portal-ops-shell .brand-card {
    padding: 8px;
    gap: 10px;
    border-radius: 8px;
  }

  .brand-card .muted,
  #portalShell.portal-ops-shell .brand-card .muted {
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .nav-card,
  #portalShell.portal-ops-shell .nav-card {
    padding: 6px;
    gap: 4px;
    border-radius: 8px;
  }

  .nav-card .nav-link,
  #portalShell.portal-ops-shell .nav-link {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .mobile-menu-backdrop.visible {
    display: block !important;
  }

  .hero,
  #portalShell.portal-ops-shell .hero,
  .overview-grid,
  .content-grid.two,
  .content-grid.three,
  .form-grid.two-columns,
  .section-strip,
  .action-grid,
  #portalShell.portal-ops-shell .action-grid,
  #portalShell.portal-ops-shell .summary-grid,
  #portalShell.portal-ops-shell .portal-store-shell {
    grid-template-columns: 1fr;
  }

  .surface-card,
  #portalShell.portal-ops-shell .surface-card,
  .hero,
  #portalShell.portal-ops-shell .hero {
    padding: 12px;
    border-radius: 8px;
  }

  .section-header,
  #portalShell.portal-ops-shell .section-header,
  .section-inline-head,
  .associate-card-head,
  .order-ops-head,
  .order-history-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .workspace-switch {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .workspace-chip {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .list-view,
  .report-view,
  .portal-store-catalog-panel,
  .portal-store-side-panel {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  input,
  select,
  textarea,
  .primary-button,
  .secondary-button,
  .form-grid button,
  .action-row button {
    min-height: 44px;
    border-radius: 8px;
  }
}

@media (max-width: 640px) {
  .shell,
  #portalShell.portal-ops-shell {
    padding: 6px;
  }

  .topbar,
  #portalShell.portal-ops-shell .topbar {
    padding: 9px;
  }

  .topbar-actions,
  #portalShell.portal-ops-shell .topbar-actions {
    grid-template-columns: 44px minmax(0, 1fr) 58px;
  }

  .topbar-subtitle,
  #portalShell.portal-ops-shell .topbar-subtitle {
    display: none;
  }

  .sidebar,
  #portalShell.portal-ops-shell .sidebar {
    width: calc(100vw - 16px);
    max-width: 360px;
  }

  .brand-logo,
  #portalShell.portal-ops-shell .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .hero-copy h3,
  #portalShell.portal-ops-shell .hero-copy h3 {
    font-size: 1.16rem;
    line-height: 1.22;
  }

  .lead,
  .section-text,
  .helper-text {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .summary-grid,
  .flow-summary-grid,
  .portal-store-grid {
    grid-template-columns: 1fr;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .action-row button,
  .form-grid button,
  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .site-footer,
  #portalShell.portal-ops-shell + .site-footer {
    width: calc(100% - 12px);
    margin-bottom: 6px;
    padding: 8px;
  }
}

/* Integrador: tela única de galeria, otimizada para notebook e celular */
#integrador.integrator-panel {
  min-height: calc(100vh - 150px);
  align-content: start;
}

#integrador .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(17, 22, 20, 0.1);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 242, 0.94)),
    linear-gradient(90deg, rgba(1, 95, 65, 0.07), transparent 42%);
  box-shadow: 0 12px 24px rgba(18, 34, 26, 0.06);
}

#integrador .section-heading .eyebrow,
#integrador .section-heading h3,
#integrador .section-heading .section-text {
  margin: 0;
}

#integrador .section-heading h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

#integrador .section-heading .section-text {
  max-width: 560px;
  justify-self: end;
  color: var(--muted);
  line-height: 1.45;
}

.integrator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: 14px;
  align-items: stretch;
}

.integrator-action-zone,
.integrator-trail {
  min-height: min(58vh, 560px);
  border: 1px solid rgba(17, 22, 20, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 34, 26, 0.065);
}

.integrator-action-zone {
  display: grid;
  place-items: center;
  padding: 18px;
}

.integrator-gallery-button {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 13px;
  width: min(100%, 680px);
  min-height: 390px;
  padding: clamp(24px, 6vw, 56px);
  border: 1px dashed rgba(1, 95, 65, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(1, 95, 65, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(233, 242, 237, 0.92), rgba(248, 250, 247, 0.98));
  color: var(--text);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.integrator-gallery-button::before {
  content: "";
  width: 86px;
  height: 86px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(230, 240, 235, 0.95)),
    url("./assets/logo_app_green.svg") center / 46px 46px no-repeat;
  box-shadow: 0 16px 34px rgba(18, 34, 26, 0.12);
}

.integrator-gallery-button:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 95, 65, 0.7);
  box-shadow: 0 18px 38px rgba(18, 34, 26, 0.11);
}

.integrator-button-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(1, 95, 65, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.integrator-gallery-button strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  color: var(--green-deep);
}

.integrator-gallery-button > span:last-of-type {
  max-width: 420px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.integrator-gallery-button input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

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

.integrator-trail-header {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(17, 22, 20, 0.08);
  background: #fbfcfa;
}

.integrator-trail-header .eyebrow,
.integrator-trail-header h4 {
  margin: 0;
}

.integrator-empty,
.integrator-status-list {
  padding: 14px;
}

.integrator-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  min-height: 220px;
}

.integrator-status-list {
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: auto;
}

.integrator-status-card {
  border-radius: 10px;
  border-color: rgba(17, 22, 20, 0.1);
  background: #ffffff;
  box-shadow: none;
}

.integrator-status-card p {
  margin: 0;
}

.integrator-finance-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(17, 22, 20, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 34, 26, 0.06);
}

.integrator-finance-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--green-deep);
  font-size: 1.15rem;
}

.integrator-finance-strip p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.integrator-csv-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 168px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--green);
  color: #ffffff;
  font-weight: 760;
  cursor: pointer;
  overflow: hidden;
}

.integrator-csv-button input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .integrator-shell,
  #integrador .section-heading {
    grid-template-columns: 1fr;
  }

  #integrador .section-heading .section-text {
    justify-self: start;
  }

  .integrator-action-zone,
  .integrator-trail {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  #integrador .section-heading {
    padding: 14px;
    border-radius: 10px;
  }

  .integrator-shell {
    gap: 10px;
  }

  .integrator-action-zone,
  .integrator-trail {
    border-radius: 10px;
  }

  .integrator-action-zone {
    padding: 10px;
  }

  .integrator-gallery-button {
    min-height: 300px;
    border-radius: 14px;
  }

  .integrator-gallery-button::before {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background-size: 38px 38px;
  }

  .integrator-finance-strip {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .integrator-csv-button {
    width: 100%;
  }
}

.ops-stat {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 8px 10px;
  border-right: 1px solid rgba(17, 22, 20, 0.08);
}

.ops-stat:last-child {
  border-right: 0;
}

.ops-stat strong {
  font-size: 1.1rem;
  color: var(--text);
}

.ops-stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

.tracking-workspace {
  display: grid;
  gap: 10px;
}

.tracking-primary,
.tracking-list-row {
  display: grid;
  gap: 10px;
  padding: 12px;
}

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

.correios-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.correios-panel.compact {
  gap: 9px;
  padding: 10px;
  background: #f8faf8;
}

.correios-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.correios-panel-head h4,
.correios-panel-head p {
  margin: 0;
}

.correios-panel-head p {
  color: var(--muted);
  line-height: 1.45;
}

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

.correios-meta-grid span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 6px;
  background: #f4f7f5;
  color: var(--muted);
  font-size: 0.82rem;
}

.correios-meta-grid strong {
  color: var(--green-deep);
  font-size: 0.76rem;
}

.correios-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  overflow-x: auto;
}

.correios-track-step {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 94px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.correios-track-step::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 18px;
  right: -18px;
  height: 2px;
  background: #d5ddd8;
}

.correios-track-step:last-child::before {
  content: none;
}

.correios-track-step span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d5ddd8;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(17, 22, 20, 0.12);
}

.correios-track-step.done span,
.correios-track-step.current span {
  background: var(--green);
}

.correios-track-step.current strong {
  color: var(--green);
}

.correios-events {
  display: grid;
  gap: 8px;
}

.correios-event {
  display: grid;
  gap: 2px;
  padding-left: 10px;
  border-left: 3px solid rgba(1, 95, 65, 0.22);
}

.correios-event span,
.correios-event small,
.tracking-error {
  color: var(--muted);
  line-height: 1.4;
}

.tracking-error {
  margin: 0;
  color: #8c2f39;
}

.tracking-facts .check-row {
  border-radius: 6px;
  background: #f8faf8;
}

@media (max-width: 1024px) {
  .journey-flow {
    grid-template-columns: repeat(6, minmax(160px, 1fr));
  }

  .correios-meta-grid,
  .portal-process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .document-file-row,
  .file-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .document-file-row > em,
  .document-file-row > .associate-doc-row,
  .file-row > em {
    grid-column: 2;
  }

  .correios-panel-head,
  .file-manager-head {
    flex-direction: column;
  }

  .correios-meta-grid,
  .portal-process-track {
    grid-template-columns: 1fr;
  }

  .checkout-steps,
  .checkout-row,
  .donation-proof-actions {
    grid-template-columns: 1fr;
  }

  .portal-modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .portal-modal {
    width: 100%;
    max-height: 92vh;
    padding: 16px;
    border-radius: 18px 18px 0 0;
  }

  .portal-modal-head {
    align-items: center;
    flex-direction: row;
  }

  .product-detail-modal-body,
  .donation-payment-grid,
  .product-detail-facts {
    grid-template-columns: 1fr;
  }

  .product-detail-modal-gallery {
    position: static;
  }

  .checkout-row strong {
    text-align: left;
  }
}

@media (max-width: 1024px) {
  #portalShell.portal-ops-shell .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  #portalShell.portal-ops-shell .topbar-copy,
  #portalShell.portal-ops-shell .topbar-actions {
    width: auto;
  }

  #portalShell.portal-ops-shell .topbar-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: end;
    align-items: center;
  }

  #portalShell.portal-ops-shell .mobile-menu-button {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  #portalShell.portal-ops-shell .current-admin,
  #portalShell.portal-ops-shell #portalLogoutButton {
    width: auto !important;
    max-width: 240px;
    justify-content: center;
  }

  #portalShell.portal-ops-shell .current-admin {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 720px) {
  #portalShell.portal-ops-shell .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #portalShell.portal-ops-shell .topbar-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    width: 100%;
  }

  #portalShell.portal-ops-shell .current-admin {
    max-width: none;
  }

  #portalShell.portal-ops-shell .section-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #portalShell.portal-ops-shell .section-text {
    margin-left: 0;
  }
}
