body[data-es-panel-active="pos-venda"] .es-page-heading {
  display: none !important;
}

body[data-es-panel-active="pos-venda"] .es-content {
  margin-top: -0.65rem;
  padding: 0;
  background: #eef2f8;
  border-radius: 1.35rem 1.35rem 0 0;
  box-shadow: 0 -4px 24px rgba(11, 42, 91, 0.06);
  overflow: hidden;
}

body[data-es-panel-active="pos-venda"] .es-panel--after-sales {
  min-width: 0;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: #eef2f8;
  box-shadow: none;
}

.es-panel--after-sales .ops-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--es-border, #dfe5ec);
  border-radius: 9px;
  background: var(--es-surface, #fff);
  color: var(--es-text, #172033);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.es-panel--after-sales .ops-after-sales {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
  box-sizing: border-box;
}

.es-panel--after-sales .ops-after-sales-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.es-panel--after-sales .ops-btn--primary {
  border-color: var(--es-primary, #2563eb);
  background: var(--es-primary, #2563eb);
  color: #fff;
}

.es-panel--after-sales .ops-btn--danger {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
}

.es-panel--after-sales .ops-btn--sm {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.es-panel--after-sales .ops-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.es-panel--after-sales .ops-eyebrow,
.es-panel--after-sales .ops-subtitle {
  color: var(--es-text-muted, #637083);
}

.es-panel--after-sales .ops-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--es-primary, #2563eb);
}

.es-panel--after-sales .ops-subtitle {
  max-width: 62ch;
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.es-panel--after-sales .ops-after-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  margin: 0 0 1.25rem;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  -webkit-overflow-scrolling: touch;
}

.es-panel--after-sales .ops-after-tab {
  min-height: 36px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.es-panel--after-sales .ops-after-tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

.es-panel--after-sales .ops-after-tab.is-active {
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.45);
  background: #f1f5f9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.es-panel--after-sales .ops-after-overview {
  display: grid;
  gap: 1rem;
}

.es-panel--after-sales .ops-after-metrics {
  gap: 12px;
}

.es-panel--after-sales .ops-after-metric,
.es-panel--after-sales .ops-after-quick,
.es-panel--after-sales .ops-after-info,
.es-panel--after-sales .ops-after-table-wrap {
  border-color: #e8edf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.es-panel--after-sales .ops-after-metric,
.es-panel--after-sales .ops-after-quick,
.es-panel--after-sales .ops-after-info {
  padding: 1rem 1.1rem 1.15rem;
}

.es-panel--after-sales .ops-after-info {
  margin: 0;
  background: #fff;
}

.es-panel--after-sales .ops-after-quick h2 {
  color: #0f172a;
  font-size: 1.05rem;
}

.es-panel--after-sales .ops-after-toolbar {
  margin-bottom: 0.75rem;
}

.es-panel--after-sales .ops-after-table-wrap,
.es-panel--after-sales .ops-after-empty {
  border-color: #e8edf3;
}

.es-panel--after-sales .ops-after-empty {
  border-radius: 16px;
  background: #fff;
}

.es-panel--after-sales .ops-picker {
  position: relative;
}

.es-panel--after-sales .ops-picker-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 220px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--es-border, #dfe5ec);
  border-radius: 9px;
  background: var(--es-surface, #fff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.es-panel--after-sales .ops-picker-item {
  display: block;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.es-panel--after-sales .ops-picker-item:hover,
.es-panel--after-sales .ops-picker-item:focus-visible {
  outline: 0;
  background: #eff6ff;
}

.es-panel--after-sales .ops-picker-item small {
  display: block;
  margin-top: 2px;
  color: var(--es-text-muted, #637083);
  font-size: 11px;
}

.es-panel--after-sales .ops-picker-empty {
  padding: 8px 10px;
  color: var(--es-text-muted, #637083);
  font-size: 12px;
}

.es-panel--after-sales .ops-picker-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid var(--es-border, #dfe5ec);
  border-radius: 9px;
  background: #f8fafc;
}

.es-panel--after-sales .ops-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--es-primary, #2563eb);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.es-panel--after-sales .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.es-after-sales-state {
  margin: 1.25rem 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  background: var(--es-surface, #fff);
  color: var(--es-text-muted, #637083);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.es-after-sales-state.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 900px) {
  .es-panel--after-sales .ops-after-sales {
    padding: 1rem;
  }

  .es-panel--after-sales .ops-after-tabs {
    width: 100%;
    box-sizing: border-box;
  }

  .es-after-sales-state {
    margin: 1rem;
  }
}

/* Lightbox das fotos (mesmo visual de operations.css; o shell não carrega operations.css) */
.ops-lightbox { position: fixed; inset: 0; z-index: 1150; display: flex; flex-direction: column; background: rgba(2, 6, 23, 0.92); color: #fff; animation: ops-fade-in 0.15s ease-out; outline: none; }
.ops-lightbox-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; }
.ops-lightbox-title { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-lightbox-count { flex: none; font-size: 13px; color: #cbd5e1; }
.ops-lightbox .ops-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.ops-lightbox .ops-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.ops-lightbox-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ops-lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }
.ops-lightbox-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 12px 64px 24px; }
.ops-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.ops-lightbox-msg { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #e2e8f0; }
.ops-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 32px; cursor: pointer; }
.ops-lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.ops-lightbox-nav--prev { left: 10px; }
.ops-lightbox-nav--next { right: 10px; }
.ops-lightbox button:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
@keyframes ops-fade-in { from { opacity: 0; } }
@media (max-width: 640px) { .ops-lightbox-nav { width: 38px; height: 54px; font-size: 26px; } .ops-lightbox-stage { padding: 8px; } }
