/* ODEM Vendas 33.9.6 - manutenção restrita à Gestão, recolhida ao abrir. */
.ped-maintenance {
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.ped-maintenance > summary {
  padding: 10px 14px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.ped-maintenance > summary span {
  margin-left: 8px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 400;
}
.ped-maintenance > summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 12px;
}
.ped-maintenance-body { padding: 0 14px 12px; }
.ped-maintenance-auto { display:flex; align-items:center; gap:8px; margin:4px 0; font-size:12px; color:var(--text-2); }
.ped-maintenance-auto input { width:16px; height:16px; margin:0; flex:0 0 auto; }
.ped-maintenance-help { margin:4px 0 8px; color:var(--text-3); font-size:11px; line-height:1.5; }
.ped-maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
body:has(.ios-shell):not(.odem-tv-mode) .ped-maintenance .ios-sync-line {
  margin: 10px 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* 33.9.16: guias na linha do resumo, acima dos documentos. */
#ped-raiz .ped-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 14px;
}
body:has(.ios-shell):not(.odem-tv-mode) #ped-raiz .ped-type-switch {
  flex: 0 0 auto;
  margin: 0;
}
#ped-raiz #ped-resumo-info {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#ped-raiz .ped-type-switch .btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  body:has(.ios-shell):not(.odem-tv-mode) #ped-raiz .ped-type-switch {
    width: 100%;
  }
  #ped-raiz #ped-resumo-info {
    flex-basis: 100%;
  }
}

#ped-raiz .ped-card-values { display: grid; gap: 6px; }
#ped-raiz .ped-card-value {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 10px;
}
#ped-raiz .ped-card-value > span { font-size: 11px; color: var(--text-2); }
#ped-raiz .ped-card-value > strong { font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap; }
#ped-raiz .ped-summary-values { display: grid; gap: 2px; margin-top: 4px; }
#ped-raiz .ped-summary-values > span { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
#ped-raiz .ped-summary-values small { color: var(--text-2); font-weight: 600; }
#ped-raiz .ped-summary-status { display: block; margin-top: 5px; color: var(--text-2); }
#ped-raiz .ped-value-status { display: block; margin-top: 5px; color: var(--text-2); }
#ped-raiz .ped-recovery-details { margin-top: 8px; }
#ped-raiz .ped-recovery-details p { margin: 5px 0; }
