/* 🤝 Bizományos Termékek Mobil Stílusok */

/* Kártya elrendezés (2-soros) */
.agent-product-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  transition: transform 0.2s var(--transition-bezier), box-shadow 0.2s var(--transition-bezier);
}

.agent-product-card:active {
  transform: translateY(2px);
  box-shadow: none;
}

.agent-product-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.agent-product-card-name {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.agent-product-partner-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.agent-product-partner-info i {
  color: var(--text-muted);
  font-size: 12px;
}

.agent-product-qty-pill {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.agent-product-qty-pill.sold {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.15);
}

.agent-product-qty-pill.pending {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.15);
}

.agent-product-qty-pill.returned {
  background: rgba(107, 114, 128, 0.08);
  color: #6b7280;
  border-color: rgba(107, 114, 128, 0.15);
}

.agent-product-qty-pill.paid {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.15);
}

.agent-product-info-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3D78A8 0%, #2c3e50 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.agent-product-info-btn i {
  font-size: 11px;
}

/* Status Badges */
.status-badge {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-badge.status-pending {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.15);
}

.status-badge.status-sold {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.status-badge.status-paid {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.15);
}

.status-badge.status-returned {
  background: rgba(107, 114, 128, 0.08);
  color: #6b7280;
  border-color: rgba(107, 114, 128, 0.15);
}

.status-badge.status-archived {
  background: rgba(156, 163, 175, 0.08);
  color: #9ca3af;
  border-color: rgba(156, 163, 175, 0.15);
}

/* Bottom sheet details styling */
.agent-details-section-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-theme="dark"] .agent-details-section-card {
  background: rgba(255, 255, 255, 0.02);
}

.agent-details-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-details-partner-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.agent-details-partner-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.agent-details-contact-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.agent-contact-link-btn {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.agent-contact-link-btn.tel {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.15);
}

.agent-contact-link-btn.mail {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.15);
}

.agent-details-product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.agent-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.agent-details-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-details-grid .label {
  font-size: 10px;
  color: var(--text-muted);
}

.agent-details-grid .value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

/* Qty Row */
.agent-details-qty-row {
  display: flex;
  gap: 8px;
}

.qty-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .qty-box {
  background: rgba(255, 255, 255, 0.04);
}

.qty-box .qty-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.qty-box .qty-lbl {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.qty-box.warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.15);
}
.qty-box.warning .qty-val {
  color: #f59e0b;
}

.qty-box.success {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
}
.qty-box.success .qty-val {
  color: #10b981;
}

/* Price styling */
.agent-details-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.price-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.price-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.agent-details-margin-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-main);
  margin-top: 4px;
}

.agent-details-margin-box strong {
  color: #10b981;
}

/* Buttons Grid */
.agent-details-actions-grid {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.agent-action-btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: white;
  transition: opacity 0.2s;
}

.agent-action-btn:active {
  opacity: 0.8;
}

.agent-action-btn.btn-return {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.agent-action-btn.btn-payout {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.agent-action-btn.btn-archive {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.agent-action-btn.btn-print {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.agent-action-btn.btn-email {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
