/* Identidade Delivero V2 — Navegação Operacional, Command Palette e Painel de Comando */
.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

/* Sidebar aprimorada */
.sidebar {
  padding: 20px 14px 14px;
  background: var(--brand-cream);
  border-right: 1px solid var(--brand-sand);
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 6px;
}
.brand img {
  width: 52px;
  height: 52px;
  background: var(--paper);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--brand-sand);
  flex-shrink: 0;
}
.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-meta strong {
  font-family: "Forma DJR Micro", "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.15;
}
.brand-meta span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.2;
}

.module-switch {
  padding: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--brand-sand);
  border-radius: 8px;
  margin-bottom: 8px;
}
.module-switch-top {
  margin-bottom: 4px;
}
.module-switch-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}
.module-switch strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--ink);
}
.module-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  color: var(--orange-ink);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.module-switch a:hover {
  text-decoration: underline;
}

.sidebar .module-navigation {
  min-height: 0;
  overflow-y: auto;
  gap: 4px;
  padding: 8px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.sidebar nav a {
  font-size: 0.85rem;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 6px;
  gap: 10px;
  color: #3f3125;
  position: relative;
}
.sidebar nav a .icon {
  color: #7c6856;
  flex-shrink: 0;
}
.sidebar nav a:hover {
  background: #fbf6eb;
  color: var(--ink);
}
.sidebar nav a[aria-current] {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(28, 15, 6, 0.06);
  border-left: 3px solid var(--orange);
}
.sidebar nav a[aria-current] .icon {
  color: var(--orange-ink);
}
.nav-item-label {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  background: #e6dac6;
  color: var(--ink);
}
.nav-badge.open {
  background: #ffe4cc;
  color: #943800;
}
.nav-badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.nav-badge.closed {
  background: var(--green-bg);
  color: var(--green);
}

.navigation-home {
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(227, 213, 186, 0.8);
}
.navigation-group {
  border-radius: 6px;
}
.sidebar nav a.navigation-direct {
  min-height: 40px;
  padding: 9px 10px;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink);
}
.sidebar nav a.navigation-direct .icon {
  color: var(--orange-ink);
}
.sidebar nav a.navigation-direct[aria-current] {
  border-left: 0;
  box-shadow: none;
  color: var(--orange-ink);
  background: rgba(255, 103, 0, 0.08);
}
.navigation-group > summary {
  cursor: pointer;
  min-height: 40px;
  padding: 9px 10px;
  font-size: 0.84rem;
  font-weight: 650;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--ink);
}
.navigation-group > summary::-webkit-details-marker {
  display: none;
}
.navigation-group > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.8px solid #7c6856;
  border-bottom: 1.8px solid #7c6856;
  transform: rotate(-45deg);
  transition: transform 150ms ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.navigation-group[open] > summary::after {
  transform: rotate(45deg);
}
.navigation-group > summary:hover {
  background: #fbf6eb;
}
.navigation-group > summary.active-group {
  color: var(--orange-ink);
  background: rgba(255, 103, 0, 0.08);
}
.nav-group-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.nav-group-label .icon {
  color: var(--orange-ink);
}
.nav-group-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: auto;
  margin-right: 4px;
}
.navigation-group-items {
  padding: 2px 0 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--brand-sand);
  margin-left: 17px;
}
.navigation-group-items a {
  font-weight: 500;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.82rem;
}
.navigation-toggle {
  display: none;
}

.sidebar-foot {
  padding: 12px 8px 0;
  border-top: 1px solid var(--brand-sand);
  font-size: 0.78rem;
}
.sidebar-status-line {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
}
.sidebar-foot p {
  font-size: 0.75rem;
  margin-top: 4px;
}

/* Topbar aprimorada */
.topbar {
  height: 68px;
  padding: 0 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
}
.topbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-title > a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.topbar-sep {
  color: #c2b6a7;
  margin: 0 2px !important;
}
.topbar-group-pill {
  background: var(--brand-cream);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 600;
  margin: 0 !important;
}
.topbar-page-current {
  color: var(--ink) !important;
  font-weight: 600;
  margin: 0 !important;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
}
.command-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid #d4c9bc;
  border-radius: 999px;
  background: var(--ground);
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color 150ms ease, background 150ms ease;
}
.command-trigger:hover {
  border-color: var(--orange-ink);
  background: #fffaf4;
  color: var(--ink);
}
.command-trigger kbd {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.topbar-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--brand-cream);
  border: 1px solid var(--brand-sand);
  font-size: 0.79rem;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.topbar-date-pill .icon {
  color: var(--orange-ink);
}

.role-switch-form {
  margin: 0;
}
.role-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--brand-sand);
  background: #fff8ef;
  color: var(--orange-ink);
  font-size: 0.78rem;
  font-weight: 650;
  transition: background 150ms ease, border-color 150ms ease;
}
.role-switch-btn:hover {
  background: #ffead9;
  border-color: var(--orange);
}

/* Modal Command Palette (Ctrl+K) */
.command-dialog {
  position: fixed;
  inset: 0;
  max-width: 620px;
  width: calc(100% - 32px);
  margin: 10vh auto auto;
  padding: 0;
  border: 1px solid var(--brand-sand);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(28, 15, 6, 0.24);
  overflow: hidden;
}
.command-dialog::backdrop {
  background: rgba(28, 15, 6, 0.48);
  backdrop-filter: blur(2px);
}
.command-box {
  display: flex;
  flex-direction: column;
  max-height: 75vh;
}
.command-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fffcf7;
}
.command-header .icon {
  color: var(--orange-ink);
  flex-shrink: 0;
}
.command-header input {
  border: 0 !important;
  padding: 4px 0 !important;
  min-height: 34px !important;
  font-size: 0.98rem;
  background: transparent !important;
  outline: none !important;
}
.command-close {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}
.command-list {
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.command-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background 120ms ease;
}
.command-item:hover,
.command-item.selected {
  background: var(--brand-cream);
}
.command-item .icon {
  color: var(--orange-ink);
  flex-shrink: 0;
}
.command-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.command-item-text strong {
  font-size: 0.9rem;
}
.command-item-text small {
  font-size: 0.76rem;
  color: var(--muted);
}
.command-arrow {
  color: var(--muted);
  font-weight: 700;
}
.command-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--ground);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
.command-footer kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  font-size: 0.7rem;
}

/* Barra de contexto e etapas do ciclo dentro das jornadas */
.journey-context-bar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 24px;
}
.journey-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.79rem;
}
.journey-location a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.journey-location a:hover {
  color: var(--orange-ink);
  text-decoration: underline;
}
.journey-location a[aria-current] {
  color: var(--ink);
  font-weight: 650;
}
.cycle-navigation {
  margin-bottom: 0;
}
.cycle-navigation ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  gap: 8px;
}
.cycle-navigation li {
  min-width: 0;
}
.cycle-navigation a,
.restricted-step {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--ground);
  transition: background 140ms ease, border-color 140ms ease;
}
.cycle-navigation a:hover {
  background: #fbf6eb;
  border-color: var(--brand-sand);
  text-decoration: none;
}
.cycle-navigation .current-step a {
  font-weight: 700;
  color: var(--ink);
  background: var(--brand-cream);
  border-color: var(--orange);
}
.step-number {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--brand-sand);
  background: var(--paper);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.current-step .step-number {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.step-label {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.restricted-step {
  color: var(--muted);
  opacity: 0.78;
}
.restricted-step small {
  font-size: 0.7rem;
  margin-left: auto;
}
.related-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.81rem;
}
.related-label {
  color: var(--muted);
  font-weight: 600;
}
.related-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--orange-ink);
  font-weight: 600;
  text-decoration: none;
}
.related-navigation a:hover {
  text-decoration: underline;
}

/* Painel de Comando Operacional (operation_start.html) */
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange-ink);
  background: #ffead9;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.operation-welcome {
  align-items: flex-start;
  margin-bottom: 24px;
}
.welcome-date-box {
  background: var(--paper);
  border: 1px solid var(--brand-sand);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: right;
  white-space: nowrap;
}
.welcome-date-box small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.welcome-date-box time {
  display: block;
  font-family: "Forma DJR Micro", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0;
  margin-top: 2px;
}

/* KPIs Operacionais */
.command-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
a.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 6px 18px rgba(28, 15, 6, 0.06);
}
.kpi-card.open {
  border-left: 4px solid var(--orange);
}
.kpi-card.warning {
  border-left: 4px solid #c97a10;
  background: #fffdf7;
}
.kpi-card.closed {
  border-left: 4px solid var(--green);
}
.kpi-card.neutral {
  border-left: 4px solid var(--brand-sand);
}
.kpi-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kpi-value {
  font-family: "Forma DJR Micro", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi-detail {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Atalhos rápidos */
.operation-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.shortcut-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--brand-sand);
  color: var(--ink) !important;
  font-weight: 650;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}
.shortcut-pill .icon {
  color: var(--orange-ink);
}
.shortcut-pill:hover {
  background: var(--brand-cream);
  border-color: var(--orange);
  text-decoration: none;
}

/* Grid de Ciclos Operacionais lado a lado */
.cycles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.operation-cycle {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  scroll-margin-top: 84px;
}
.cycle-intro {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.cycle-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange-ink);
  margin-bottom: 6px;
}
.cycle-intro h2 {
  font-size: 1.55rem;
}
.cycle-intro p {
  margin-top: 6px;
  color: var(--muted);
  max-width: none;
  font-size: 0.9rem;
}
.cycle-route {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cycle-step-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fcfaf7;
  transition: border-color 140ms ease, background 140ms ease;
}
.cycle-step-card:hover {
  border-color: var(--brand-sand);
  background: #fffcf7;
}
.cycle-step-card.step-restricted {
  opacity: 0.78;
  background: var(--ground);
}
.cycle-step-body {
  flex: 1;
  min-width: 0;
}
.cycle-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cycle-route h3 {
  font-size: 1.05rem;
}
.cycle-route h3 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  text-decoration: none;
  color: var(--ink);
}
.cycle-route h3 a:hover {
  color: var(--orange-ink);
  text-decoration: underline;
}
.cycle-route .icon {
  width: 16px;
  height: 16px;
  color: var(--orange-ink);
}
.cycle-route p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.cycle-route .step-number {
  margin-top: 2px;
  background: var(--brand-cream);
  border-color: var(--brand-sand);
}
.cycle-result {
  background: var(--brand-cream);
  border: 1px solid var(--brand-sand);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.84rem;
  margin-top: auto;
}
.cycle-result strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

/* Acompanhamento e pendências */
.operation-followup,
.operation-support {
  border-top: 1px solid var(--line);
  padding: 28px 0 0;
  margin-top: 20px;
}
.followup-header p {
  margin: 6px 0 16px;
  color: var(--muted);
}
.followup-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.followup-card {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  background: var(--paper);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.followup-card:hover {
  border-color: var(--orange) !important;
  background: #fffcf7;
}
.followup-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.followup-card-main strong {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 0.98rem !important;
}
.followup-card-main span {
  color: var(--muted);
  font-size: 0.84rem;
}

/* Apoio e configuração */
.support-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.support-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.support-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}
.support-card h3 .icon {
  color: var(--orange-ink);
}
.support-card p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.86rem;
}
.support-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
}
.support-card-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--orange-ink);
  text-decoration: none;
}
.support-card-links a:hover {
  text-decoration: underline;
}
.setup-banner {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--brand-cream);
  border: 1px solid var(--brand-sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.setup-explanation {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 0.88rem;
  max-width: 68ch;
}

/* Diretório de Módulos (modules.html) */
.module-directory {
  display: grid;
  gap: 18px;
  border-top: 0;
}
.module-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.module-entry-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.module-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--brand-sand);
  display: grid;
  place-items: center;
  color: var(--orange-ink);
}
.module-entry h2 {
  font-size: 1.55rem;
}
.module-entry p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 62ch;
}
.module-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
}
.module-highlights li::before {
  content: "✓ ";
  color: var(--orange-ink);
  font-weight: 700;
}
.module-featured {
  background: var(--brand-cream);
  border-color: var(--brand-sand);
  padding-block: 34px;
}
.module-featured h2 {
  font-size: 1.9rem;
}
.module-context {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.module-context p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.settings-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.settings-section p {
  margin-top: 10px;
  color: var(--muted);
}

.manual-entry {
  margin-top: 28px;
}
.manual-entry summary {
  min-height: 44px;
  cursor: pointer;
}
.manual-entry p {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-brand {
  background: var(--brand-cream);
  color: var(--ink);
}
.auth-brand .auth-signature {
  width: min(100%, 360px);
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.auth-brand h1 {
  font-family: "Forma DJR Micro", "Segoe UI", sans-serif;
}
.auth-brand p,
.auth-brand > span {
  color: var(--ink);
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .command-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cycles-grid {
    grid-template-columns: 1fr;
  }
  .module-entry,
  .settings-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .module-entry .button,
  .settings-section .button {
    justify-self: start;
  }
}

@media (max-width: 960px) {
  .topbar-center .command-trigger span {
    display: none;
  }
  .cycle-navigation ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .followup-links,
  .support-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    padding: 10px 16px;
  }
  .brand {
    margin: 0;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .brand-meta span {
    display: none;
  }
  .module-switch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: 0;
    padding: 6px 10px;
  }
  .module-switch strong {
    font-size: 0.84rem;
  }
  .js-navigation .navigation-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--brand-sand);
    border-radius: 6px;
    color: var(--ink);
    background: var(--paper);
    font-weight: 600;
    font-size: 0.85rem;
  }
  .navigation-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-right: 4px;
  }
  .navigation-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
  }
  .sidebar .module-navigation {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    gap: 4px;
    padding: 10px 0 4px;
  }
  .js-navigation .navigation-toggle[aria-expanded="false"] + .module-navigation {
    display: none;
  }
  .sidebar nav a {
    flex-direction: row;
    white-space: normal;
    min-height: 42px;
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  .topbar {
    height: auto;
    min-height: 54px;
    padding: 8px 16px;
    flex-wrap: wrap;
  }
  .topbar-date-pill {
    display: none;
  }
  .command-kpis {
    grid-template-columns: 1fr;
  }
  .welcome-date-box {
    text-align: left;
    width: 100%;
  }
  .operation-cycle {
    padding: 18px;
  }
}

@media print {
  .journey-context-bar,
  .journey-location,
  .cycle-navigation,
  .related-navigation,
  .navigation-toggle,
  .command-dialog {
    display: none !important;
  }
}

/* Ícones Semânticos de Produto (Delivero V2) */
.product-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.product-icon-badge {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-cream, #f0e9d9);
  border: 1px solid var(--brand-sand, #e3d5ba);
  color: var(--orange-ink, #a84300);
  flex-shrink: 0;
}
.product-icon-badge .icon {
  width: 18px;
  height: 18px;
}
.product-icon-badge.tone-cheese {
  background: #fff6db;
  border-color: #f0d78c;
  color: #8f5c00;
}
.product-icon-badge.tone-meat {
  background: #ffece8;
  border-color: #f2bfb6;
  color: #9e2a1c;
}
.product-icon-badge.tone-sauce {
  background: #ffefe5;
  border-color: #f5c6a8;
  color: #a83800;
}
.product-icon-badge.tone-sweet {
  background: #f5ebe6;
  border-color: #d9bfb2;
  color: #5e341e;
}
.product-icon-badge.tone-herb {
  background: #eaf5ec;
  border-color: #bcdbbf;
  color: #216136;
}
.product-icon-badge.tone-dough {
  background: #fdf3e3;
  border-color: #e8cfa6;
  color: #8c4b08;
}
.product-icon-badge.tone-drink {
  background: #e9f3f8;
  border-color: #b8d5e5;
  color: #1c5875;
}
.product-icon-badge.tone-box {
  background: #f0ece6;
  border: 1px solid #d6cdc2;
  color: #574b40;
}

/* Mini-Status da Produção do Dia na Barra Lateral */
.sidebar nav a.sidebar-daily-status {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 10px 12px;
  margin: 4px 0 8px;
  border-radius: 8px;
  border: 1px solid var(--brand-sand, #e3d5ba);
  background: #fffcf7;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(28, 15, 6, 0.04);
}
.sidebar nav a.sidebar-daily-status.tone-warning {
  background: #fff4e8;
  border-color: #f2be91;
  border-left: 4px solid var(--orange, #ff6700);
}
.sidebar nav a.sidebar-daily-status.tone-open {
  background: #fff9eb;
  border-color: #ebd08f;
  border-left: 4px solid #d97706;
}
.sidebar nav a.sidebar-daily-status.tone-closed {
  background: #f2f9f5;
  border-color: #badbc8;
  border-left: 4px solid #14804a;
}
.sds-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.sds-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6d645c);
}
.sds-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}
.sds-pill.warning {
  background: var(--orange, #ff6700);
  color: #fff;
}
.sds-pill.open {
  background: #ffedd5;
  color: #9a3412;
}
.sds-pill.closed {
  background: #d1fae5;
  color: #065f46;
}
.sds-detail {
  font-size: 0.74rem;
  color: var(--ink, #1c0f06);
  line-height: 1.3;
}
.nav-badge.closed {
  background: #d8f2e3;
  color: #0f683b;
}
