:root {
  /* cor */
  --navy: #2F3B4C;
  --navy-soft: #3B4A5E;
  --navy-deep: #232C38;
  --orange: #F5A623;
  --orange-soft: #FDEAC4;
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --text: #1E2733;
  --text-muted: #6B7785;
  --border: #E1E5EA;
  --success: #2F9E5B;
  --danger: #D2483B;

  /* tipografia */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* layout */
  --sidebar-w: 248px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(35, 44, 56, .04), 0 4px 14px rgba(35, 44, 56, .05);
  --shadow-pop: 0 10px 30px rgba(35, 44, 56, .14);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============ APP SHELL ============ */
.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #DDE3EA;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__brand {
  padding: 4px 10px 22px;
}

.sidebar__logo {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .94;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #C7CFD9;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.nav-item__icon {
  display: flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .85;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.nav-item.is-active {
  background: var(--orange);
  color: var(--navy-deep);
}

.nav-item.is-active .nav-item__icon {
  opacity: 1;
}

.nav-item--toggle {
  position: relative;
}

.nav-item__chevron {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s;
  opacity: .7;
}

.nav-item--toggle[aria-expanded="true"] .nav-item__chevron {
  transform: rotate(225deg);
}

.nav-subgroup {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .2s ease;
}

.nav-subgroup.is-open {
  grid-template-rows: 1fr;
}

.nav-subgroup>div {
  overflow: hidden;
}

.nav-subitem {
  display: block;
  text-decoration: none;
  color: #A9B3C0;
  font-size: 13.5px;
  padding: 8px 12px 8px 41px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.nav-subitem:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.nav-subitem.is-active {
  color: var(--orange);
  font-weight: 600;
}

.sidebar__footer {
  font-size: 11px;
  color: #6E7A8A;
  padding: 14px 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 10px;
}

/* ============ MAIN / TOPBAR ============ */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 36px 18px;
}

.topbar__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}

.topbar__subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.content {
  padding: 0 36px 40px;
  flex: 1;
}

/* ============ TOOLBAR / SEARCH ============ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-field {
  position: relative;
  flex: 1;
  max-width: 380px;
  min-width: 220px;
}

.search-field__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.search-field input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.search-field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
  outline: none;
}

.toolbar__meta {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============ LISTA DE PEDIDOS ============ */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pedido {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.pedido__summary {
  width: 100%;
  border: none;
  background: none;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 64px 1.6fr 110px 130px 1fr 1fr 1fr 18px;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.pedido__summary:hover {
  background: #FAFBFC;
}

.pedido__id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.pedido__cliente {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-deep);
}

.pedido__data {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.pedido__ficha {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.pedido__valores-linha {
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
}

.pedido__frete {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-deep);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.pedido__gestao {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-deep);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.pedido__imposto {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-deep);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.pedido__chevron {
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--text-muted);
  border-bottom: 1.6px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform .2s;
  justify-self: end;
}

.pedido.is-open .pedido__chevron {
  transform: rotate(45deg);
  border-color: var(--orange);
}

.pedido__detail {
  border-top: 1px dashed var(--border);
  background:
    radial-gradient(circle at left 0px, var(--bg) 4px, transparent 4.5px) left top / 100% 9px no-repeat,
    var(--bg);
}

.pedido__detail-inner {
  padding: 16px 18px 18px;
}

.detail-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0;
}

.detail-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0;
}

.detail-error {
  color: var(--danger);
  font-size: 13px;
  padding: 4px 0;
}

.motorista-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.motorista-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: background .2s, border-color .2s;
}

.motorista-card--pendente {
  background: #fffbeb;
  /* amarelo bem claro */
  border-left-color: #f59e0b;
  /* amarelo mais escuro na borda */
  border-color: #fde68a;
  /* borda amarela */
}

.motorista-card--pendente .motorista-card__nome {
  color: #92400e;
  /* marrom para contraste */
}

.motorista-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 8px;
}

.motorista-card__nome {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--navy-deep);
}

.motorista-card__cestas {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.motorista-card__valores {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.motorista-card__valores>div {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.motorista-card__valores dt {
  color: var(--text-muted);
}

.motorista-card__valores dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ============ ESTADOS (loading / vazio / erro) ============ */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.state--loading {
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding: 36px 0;
}

.state__icon {
  width: 42px;
  height: 42px;
  color: var(--orange);
  margin-bottom: 10px;
}

.state__icon svg {
  width: 100%;
  height: 100%;
}

.state__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  margin: 0 0 4px;
  font-size: 15px;
}

.state__text {
  margin: 0;
  font-size: 13.5px;
  max-width: 360px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--orange);
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ PAGINAÇÃO ============ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.pagination__btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, color .15s;
}

.pagination__btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

.pagination__btn.is-active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.pagination__btn:disabled {
  opacity: .4;
  cursor: default;
}

.pagination__arrow {
  width: 8px;
  height: 8px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
}

.pagination__arrow--prev {
  transform: rotate(135deg);
}

.pagination__arrow--next {
  transform: rotate(-45deg);
}

/* ============ BOTÕES GENÉRICOS ============ */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--navy-deep);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ============ PLACEHOLDER (abas futuras) ============ */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.placeholder__icon {
  width: 46px;
  height: 46px;
  color: var(--orange);
  margin-bottom: 14px;
}

.placeholder__icon svg {
  width: 100%;
  height: 100%;
}

.placeholder__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 17px;
  margin: 0 0 6px;
}

.placeholder__text {
  margin: 0;
  font-size: 14px;
  max-width: 380px;
}

/* ============ VIEWS ============ */
.view[hidden] {
  display: none;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 920px) {
  .sidebar {
    display: none;
  }

  .topbar,
  .content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pedido__summary {
    grid-template-columns: 50px 1fr 70px 18px;
  }

  .pedido__data,
  .pedido__total {
    display: none;
  }
}


/* ====================================================
   PEDIDOS POR PERÍODO - Filtro e Totais
   ==================================================== */

/* ─── FILTRO CARD ─────────────────────────────────── */
.pp-filtro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  box-shadow: var(--shadow-card);
}

.pp-filtro__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pp-filtro__selects {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pp-select {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  min-width: 60px;
}

.pp-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
  outline: none;
}

.pp-select--mes {
  min-width: 80px;
}

.pp-select--ano {
  min-width: 70px;
}

.pp-filtro__de {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 2px;
}

.pp-filtro__sep {
  color: var(--text-muted);
  opacity: 0.4;
  display: flex;
  align-items: center;
}

.pp-filtro__sep svg {
  width: 18px;
  height: 18px;
}

/* ─── BOTÃO FILTRAR ──────────────────────────────── */
#pp-btn-filtrar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-deep);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  transition: background .15s, transform .1s;
  margin-left: auto;
}

#pp-btn-filtrar svg {
  width: 16px;
  height: 16px;
}

#pp-btn-filtrar:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

#pp-btn-filtrar:active {
  transform: translateY(0);
}

/* ─── TOTAIS BAR ─────────────────────────────────── */
.pp-totais-bar {
  display: flex;
  align-items: stretch;
  gap: 16px 24px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  opacity: 0.6;
  transition: opacity .3s;
}

.pp-totais--loaded {
  opacity: 1;
}

.pp-totais__item {
  display: flex;
  align-items: baseline;
  flex: 1
}

.pp-totais__item--frete .pp-totais__valor {
  color: #2563EB;
}

.pp-totais__item--gestao .pp-totais__valor {
  color: #7C3AED;
}

.pp-totais__item--imposto .pp-totais__valor {
  color: #EA580C;
}

.pp-totais__item--total-cbb .pp-totais__valor {
  color: #DC2626
}

.pp-totais__item--liquido-dca .pp-totais__valor {
  color: #059669
}


.pp-totais__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pp-totais__valor {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--navy-deep);
}

.pp-totais__divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.data-dca-item.oculto {
  display: none;
}

/* ─── RESPONSIVO ─────────────────────────────────── */
@media (max-width: 820px) {
  .pp-filtro-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
  }

  .pp-filtro__selects {
    flex-wrap: wrap;
  }

  .pp-filtro__sep {
    display: none;
  }

  #pp-btn-filtrar {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  .pp-totais-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
  }

  .pp-totais__divider {
    display: none;
  }

  .pp-totais__item {
    justify-content: space-between;
  }

  .pp-totais__valor {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .pp-filtro-card {
    padding: 12px;
  }

  .pp-select {
    font-size: 12px;
    padding: 5px 8px;
    min-width: 50px;
  }

  .pp-select--mes {
    min-width: 70px;
  }

  .pp-select--ano {
    min-width: 60px;
  }

  .pp-totais__valor {
    font-size: 14px;
  }
}

/* ============================================================
   EDIÇÃO DE VALORES — estilos adicionais (adicionar ao styles.css)
   ============================================================ */

/* ── Linha da lista de pendentes ── */
.ev-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow .15s;
}
.ev-row--salvo {
  border-color: var(--success);
  box-shadow: 0 0 0 2px rgba(47, 158, 91, .18);
}

/* ── Cabeçalho clicável da linha ── */
.ev-row__header {
  width: 100%;
  border: none;
  background: none;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 80px .5fr 1.5fr .5fr .5fr 110px 70px 32px;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}
.ev-row__header:hover { background: #FAFBFC; }

.ev-row__pedido  { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.ev-row__motorista {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14.5px; color: var(--navy-deep);
}
.ev-row__cliente  { font-size: 13.5px; color: var(--text-muted); }
.ev-row__cestas   { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

/* ── Badge de status ── */
.ev-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.ev-badge--pendente  { background: var(--orange-soft); color: #8a5500; }
.ev-badge--definido  { background: #d6f0e2; color: #1a6637; }

/* ── Chevron da linha ── */
.ev-row__chevron {
  width: 9px; height: 9px;
  border-right: 1.6px solid var(--text-muted);
  border-bottom: 1.6px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform .2s;
  justify-self: end;
}
.ev-row.is-open .ev-row__chevron {
  transform: rotate(45deg);
  border-color: var(--orange);
}

/* ── Painel de formulário inline ── */
.ev-row__form-panel {
  border-top: 1px dashed var(--border);
  background:
    radial-gradient(circle at left 0px, var(--bg) 4px, transparent 4.5px) left top / 100% 9px no-repeat,
    var(--bg);
  padding: 20px 18px 22px;
}

.ev-form__title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 14px;
}

/* ── Campos do formulário ── */
.ev-form__fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.ev-field { display: flex; flex-direction: column; gap: 5px; }

.ev-field__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ev-field__wrap {
  position: relative;
}
.ev-field__prefix {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  pointer-events: none;
}
.ev-field__input {
  width: 100%;
  padding: 9px 12px 9px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.ev-field__input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
  outline: none;
}
.ev-field__input::placeholder { color: #b0b8c4; }

/* ── Mensagem de erro inline do formulário ── */
.ev-form__erro {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--danger);
  font-family: var(--font-body);
}

/* ── Ações do formulário ── */
.ev-form__actions {
  display: flex; align-items: center; gap: 10px;
}

.btn--primary {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--navy-deep);
  display: inline-flex; align-items: center; gap: 7px;
}
.btn--primary:hover:not(:disabled) {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}
.btn--primary:disabled {
  opacity: .5; cursor: default;
}

.btn--danger-ghost {
  background: none;
  border-color: transparent;
  color: var(--text-muted);
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  padding: 9px 14px; border-radius: var(--radius-sm);
}
.btn--danger-ghost:hover { color: var(--danger); }

/* ── Responsivo ── */
@media (max-width: 920px) {
  .ev-row__header { grid-template-columns: 60px 1fr 80px 28px; }
  .ev-row__cliente, .ev-row__cestas { display: none; }
  .ev-form__fields { grid-template-columns: 1fr; }
}

/* ============================================================
   AUTH — estilos adicionais para sidebar de usuário logado
   (adicionar ao final de styles.css)
   ============================================================ */

/* ── Usuário no rodapé do sidebar ── */
.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 10px;
}

.sidebar__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar__user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sidebar__user-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #dde3ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-role {
  font-size: 11px;
  color: #6e7a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Botão de logout ── */
.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  color: #6e7a8a;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, color .15s;
  margin-top: 2px;
}

.sidebar__logout svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sidebar__logout:hover {
  background: rgba(210, 72, 59, .12);
  color: #e07060;
}