/* Dashboard form + button system — load after glacier.css (catalog modal canonical) */

body[data-layout="dashboard"] .glass-input,
body[data-layout="dashboard"] .glacier-input,
body[data-layout="dashboard"] .input-field,
body[data-layout="dashboard"] input.glass-input,
body[data-layout="dashboard"] textarea.glass-input,
body[data-layout="dashboard"] select.glass-input {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(193, 199, 206, 0.6) !important;
  border-radius: 0.5rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  width: 100%;
  min-width: 0;
  font-size: 14px !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(10, 76, 110, 0.04) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s !important;
}
body[data-layout="dashboard"] .glass-input:focus,
body[data-layout="dashboard"] .glacier-input:focus,
body[data-layout="dashboard"] .input-field:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #0a4c6e !important;
  box-shadow: 0 0 0 1px rgba(10, 76, 110, 0.15) !important;
}
body[data-layout="dashboard"] .glass-input--compact {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  min-height: 2.25rem;
  font-size: 0.8125rem !important;
}
body[data-layout="dashboard"] input.glass-input.glass-input--icon-left,
body[data-layout="dashboard"] .search-input-wrap .glass-input {
  padding-left: 3rem !important;
}
body[data-layout="dashboard"] input.glass-input.glass-input--icon-right,
body[data-layout="dashboard"] .search-input-wrap .glass-input {
  padding-right: 3.25rem !important;
}
body[data-layout="dashboard"] .search-field-icon,
body[data-layout="dashboard"] .search-input-wrap__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  line-height: 1;
  color: #64748b;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Price field — currency prefix must not overlap number (dashboard !important on inputs) */
body[data-layout="dashboard"] #product-modal .price-field-wrap {
  position: relative;
}
body[data-layout="dashboard"] #product-modal .price-field-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  min-width: 1.25rem;
  text-align: center;
}
body[data-layout="dashboard"] #product-modal #pf-price.glass-input,
body[data-layout="dashboard"] #product-modal #pf-price.glass-input--icon-left {
  padding-left: 3.25rem !important;
  padding-right: 2.5rem !important;
}

body[data-layout="dashboard"] .btn-primary,
body[data-layout="dashboard"] .gold-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.5rem !important;
  min-height: 2.5rem;
  border-radius: 9999px !important;
  border: none !important;
  background: #0a4c6e !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 76, 110, 0.2) !important;
  transition: opacity 0.15s, transform 0.15s !important;
}
body[data-layout="dashboard"] .btn-primary:hover,
body[data-layout="dashboard"] .gold-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  filter: none !important;
}
body[data-layout="dashboard"] .btn-primary:active,
body[data-layout="dashboard"] .gold-button:active {
  transform: scale(0.98);
}
body[data-layout="dashboard"] .btn-primary:disabled,
body[data-layout="dashboard"] .gold-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

body[data-layout="dashboard"] .btn-ghost,
body[data-layout="dashboard"] .btn-secondary,
body[data-layout="dashboard"] .orders-filter-clear,
body[data-layout="dashboard"] .orders-page-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem !important;
  min-height: 2.5rem;
  border-radius: 9999px !important;
  border: 1px solid rgba(193, 199, 206, 0.8) !important;
  background: transparent !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.25;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
body[data-layout="dashboard"] .btn-ghost:hover,
body[data-layout="dashboard"] .btn-secondary:hover,
body[data-layout="dashboard"] .orders-filter-clear:hover,
body[data-layout="dashboard"] .orders-page-btn:hover {
  background: rgba(241, 245, 249, 0.9) !important;
  color: #0f172a !important;
  border-color: rgba(193, 199, 206, 0.9) !important;
}

body[data-layout="dashboard"] .btn-primary.btn-primary--compact,
body[data-layout="dashboard"] .btn-primary.text-sm,
body[data-layout="dashboard"] .gold-button.text-sm,
body[data-layout="dashboard"] .gold-button.text-xs {
  padding: 0.5rem 1rem !important;
  min-height: 2.25rem;
  font-size: 0.8125rem !important;
}

/* Price access row actions — Tailwind preflight resets button backgrounds */
body[data-layout="dashboard"] #pa-list button.pa-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.4rem 0.875rem !important;
  min-height: unset !important;
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
body[data-layout="dashboard"] #pa-list button.pa-action-btn--approve {
  background-color: #0a4c6e !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #0a4c6e !important;
}
body[data-layout="dashboard"] #pa-list button.pa-action-btn--approve:hover {
  background-color: #083d57 !important;
}
body[data-layout="dashboard"] #pa-list button.pa-action-btn--reject {
  background-color: #f1f5f9 !important;
  background-image: none !important;
  color: #475569 !important;
  border: 1px solid rgba(148, 163, 184, 0.65) !important;
}
body[data-layout="dashboard"] #pa-list button.pa-action-btn--reject:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}
body[data-layout="dashboard"] #pa-list button.pa-action-btn--revoke {
  background-color: #fef2f2 !important;
  background-image: none !important;
  color: #dc2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.35) !important;
}
body[data-layout="dashboard"] #pa-list button.pa-action-btn--revoke:hover {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
}
