:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --border: #dbe3ec;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family:Segoe UI, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, #e0f2fe, #f0f4f8 50%, #f8fafc);
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.login-brand { text-align: center; margin-bottom: 1.5rem; }
.login-icon { font-size: 2.5rem; }
.login-brand h1 { margin: 0.5rem 0 0; font-size: 1.5rem; }
.login-brand p { margin: 0.25rem 0 0; color: var(--muted); }
.login-version { margin-top: 0.5rem !important; font-size: 0.75rem; opacity: 0.85; }

.btn-link {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover { color: var(--primary-dark); }

.login-box .field-hint {
  margin: -0.25rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 5.25rem;
}

.password-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
}

.password-toggle:hover {
  color: var(--primary-dark);
  background: rgba(2, 132, 199, 0.08);
}

.admin-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-header-brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.admin-header-brand span { font-size: 1.75rem; flex-shrink: 0; }
.admin-header-brand > div { min-width: 0; }
.admin-header-brand strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-header-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(52vw, 420px);
}

.admin-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.admin-nav {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.nav-item {
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}

a.nav-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.nav-item:hover { background: #f1f5f9; }
.nav-item.active { background: #e0f2fe; color: var(--primary-dark); font-weight: 600; }

.nav-section {
  margin: 0.75rem 0 0.25rem;
  padding: 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-section:first-child { margin-top: 0; }

.panel-page-header {
  margin-bottom: 1.25rem;
}

.panel-page-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.panel-page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.admin-main {
  padding: 1.25rem;
  overflow: auto;
  min-width: 0;
}

.status-bar {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  word-break: break-word;
}

.panel-content {
  max-width: 960px;
  width: 100%;
  min-width: 0;
}

.orders-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: min(920px, calc(100vw - 2rem));
  max-height: min(85vh, 900px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.orders-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.orders-modal-header h2 { margin: 0; font-size: 1.15rem; }

.orders-modal-body {
  padding: 1rem 1.25rem;
  overflow: auto;
}

.notif-send-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.notif-history-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 0.65rem;
}

.notif-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.notif-history-item p {
  margin: 0.25rem 0;
  color: var(--text);
}

.notif-history-item small {
  display: block;
  margin-top: 0.35rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field span { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.field textarea { min-height: 80px; resize: vertical; }

.field-check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.field-check input { width: auto; }

.horario-funcionamento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
}

.horario-funcionamento-dias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.35rem 1rem;
  margin: 0.75rem 0 1rem;
}

.horario-funcionamento-dias-label {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font: inherit;
  cursor: pointer;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-block { width: 100%; }

.form-error { color: var(--danger); font-size: 0.9rem; margin: 0 0 0.75rem; }

.product-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }

.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.product-item strong { display: block; }
.product-item small { color: var(--muted); }

.product-editor { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.product-catalog-actions { margin-bottom: 1rem; }

.product-editor-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.product-editor h3 { margin: 0 0 1rem; font-size: 1rem; }

.product-images-field .product-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.product-image-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.product-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-slot .btn-remove-product-image {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  min-width: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  line-height: 1;
}

.product-images-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-images-count {
  margin: 0;
}

.product-item-meta { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }

.slider-admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.slider-admin-item {
  display: grid;
  grid-template-columns: auto 120px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.slider-admin-preview {
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-admin-preview--normal {
  aspect-ratio: 1 / 1;
}

.slider-admin-preview--normal img {
  object-fit: contain;
}

.slider-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.destaque-media-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.destaque-video-preview {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  background: #000;
}

.destaque-poster-preview {
  width: 100%;
  max-width: 220px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.aviso-logo-preview {
  max-width: 180px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #f8fafc;
}

.destaque-upload-actions,
.destaque-save-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.upload-progress {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
}

.upload-progress.hidden {
  display: none;
}

.upload-progress-track {
  height: 8px;
  background: #e0f2fe;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.upload-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0284c7, #0ea5e9);
  border-radius: 999px;
  transition: width 0.15s ease;
}

.upload-progress.is-active .upload-progress-fill {
  transition: width 0.08s linear;
}

.upload-progress-label {
  display: block;
  font-size: 0.85rem;
  color: #0369a1;
  font-weight: 500;
}

.tag-published { background: #dbeafe; color: #1d4ed8; }
.tag-frete-gratis { background: #dcfce7; color: #15803d; }

.product-frete-gratis-box {
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #f0fdf4;
}
.product-frete-gratis-box .field-check { margin-bottom: 0.35rem; }
.product-frete-gratis-box .hint { margin: 0; color: #166534; }

.publish-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }

.publish-empty { margin: 0; padding: 1rem; background: #f8fafc; border-radius: 8px; border: 1px dashed var(--border); }

.publish-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.publish-order {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
}

.publish-info { flex: 1; min-width: 0; }
.publish-info strong { display: block; }
.publish-info small { color: var(--muted); }

.publish-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }

.publish-add-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.publish-add-section h3 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--muted); }

.publish-add-list { display: flex; flex-direction: column; gap: 0.5rem; }

.publish-add-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}

.publish-add-item strong { display: block; }
.publish-add-item small { color: var(--muted); }

.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #dcfce7;
  color: #166534;
}

.tag-off { background: #fee2e2; color: #991b1b; }

.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  background: #1e293b;
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 1000;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.json-editor {
  width: 100%;
  min-height: 420px;
  font-family: Consolas, monospace;
  font-size: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; }

img,
video {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 200px 1fr; }
  .admin-main { padding: 1rem; }
  .slider-admin-item {
    grid-template-columns: auto 100px 1fr;
  }
}

@media (max-width: 768px) {
  .login-screen { padding: 1rem; align-items: flex-start; padding-top: 1.5rem; }
  .login-box { padding: 1.35rem 1.15rem; }

  .admin-header {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    position: static;
  }

  .admin-header-brand span { font-size: 1.4rem; }
  .admin-header-brand strong { font-size: 0.95rem; }
  .admin-header-brand small { max-width: 100%; font-size: 0.72rem; }

  .admin-header-actions {
    width: 100%;
  }

  .admin-header-actions .btn {
    flex: 1 1 auto;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }

  .admin-layout { grid-template-columns: 1fr; }

  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0.75rem;
    gap: 0.35rem;
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--surface);
  }

  .nav-item {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 0.55rem 0.8rem;
    font-size: 0.88rem;
  }

  .nav-section {
    display: none;
  }

  .admin-main {
    padding: 0.85rem;
  }

  .panel-page-header h1 { font-size: 1.2rem; }

  .card { padding: 1rem; }

  .grid-2,
  .horario-funcionamento-grid,
  .horario-funcionamento-dias {
    grid-template-columns: 1fr;
  }

  .product-item,
  .publish-item,
  .publish-add-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .product-item > div:last-child,
  .publish-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .slider-admin-item {
    grid-template-columns: 1fr;
  }

  .slider-admin-preview {
    width: 100%;
    max-width: 220px;
  }

  .order-detail-list > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .order-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-card-tags {
    justify-content: flex-start;
  }

  .order-alert-modal,
  .orders-modal {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    top: 50%;
  }

  .order-alert-actions .btn,
  .orders-modal-header {
    flex-wrap: wrap;
  }

  .order-alert-actions .btn {
    flex: 1 1 auto;
  }

  .toast {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    text-align: center;
  }

  .json-editor {
    min-height: 280px;
    font-size: 0.8rem;
  }

  .destaque-video-preview,
  .destaque-poster-preview {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .login-box { padding: 1.15rem 0.95rem; border-radius: 10px; }

  .admin-header-actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .product-images-field .product-images-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }

  .password-field input {
    padding-right: 4.75rem;
  }

  .password-toggle {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }

  .order-payment-field {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .admin-header-actions .btn {
    flex: 1 1 100%;
  }

  .btn {
    padding: 0.55rem 0.75rem;
  }
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.btn-orders-alert {
  animation: order-pulse 2s ease-in-out infinite;
}

@keyframes order-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.order-alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 2000;
}

.order-alert-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  z-index: 2001;
  padding: 1.25rem;
}

.order-alert-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.order-alert-icon {
  font-size: 2rem;
  line-height: 1;
}

.order-alert-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.order-alert-time {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.order-alert-body {
  margin-bottom: 1rem;
}

.order-alert-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.order-detail-list {
  margin: 0;
}

.order-detail-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.order-detail-list dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}

.order-detail-list dd {
  margin: 0;
}

.order-items-list {
  margin: 0;
  padding-left: 1.1rem;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pedidos-admin-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fafcff;
}

.order-card--pay-entrega {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #fafcff 42%);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.order-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}

.order-card-head small {
  display: block;
  color: var(--muted);
}

.order-card-meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.order-endereco-tag {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.order-endereco-tag--cadastrado {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-endereco-tag--novo {
  background: #ffedd5;
  color: #c2410c;
}

.order-card-codigo {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--text);
}

.order-card-codigo strong {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--primary, #0284c7);
}

.order-card-pagamento {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--text);
}

.order-payment-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  align-items: baseline;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.order-payment-field--entrega {
  border-color: #f59e0b;
  background: #fffbeb;
}

.order-payment-field--pago {
  border-color: #86efac;
  background: #f0fdf4;
}

.order-payment-field-label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.order-payment-field-value {
  font-size: 1rem;
  color: #0f172a;
}

.order-payment-field--entrega .order-payment-field-value {
  color: #9a3412;
}

.order-payment-field--pago .order-payment-field-value {
  color: #166534;
}

.order-payment-field-hint {
  font-size: 0.82rem;
  color: #64748b;
}

.order-payment-field--entrega .order-payment-field-hint {
  color: #c2410c;
  font-weight: 600;
}

.order-card-pagamento--entrega,
.order-pagamento-valor--entrega {
  color: #b45309;
}

.order-pagamento-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c2410c;
}

.order-pagamento-hint--pago {
  color: #15803d;
}

.order-detail-pagamento dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.order-codigo-entrega {
  font-size: 1.15rem;
  letter-spacing: 0.15em;
}

.order-codigo-hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.order-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag-new { background: #fee2e2; color: #b91c1c; }
.tag-seen { background: #fef3c7; color: #b45309; }
.tag-done { background: #dcfce7; color: #15803d; }
.tag-delivered { background: #bbf7d0; color: #14532d; font-weight: 700; }
.tag-pay-entrega {
  background: #ffedd5;
  color: #9a3412;
  font-weight: 700;
}
.tag-pay-online {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
}
.tag-pay-unknown {
  background: #e2e8f0;
  color: #475569;
  font-weight: 600;
}
.order-entrega-feita { color: #15803d; }

.notif-admin-block {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #f8fafc;
}

.notif-admin-block:last-child {
  margin-bottom: 0;
}

.notif-admin-meta {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.notif-admin-actions {
  margin-bottom: 1rem;
}

.notif-admin-block .btn-remove-broadcast {
  color: var(--danger);
}

.notif-admin-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
