/** Shopify CDN: Minification failed

Line 9:0 Unexpected "{"
Line 9:1 Expected identifier but found "%"
Line 10:8 Unexpected "/"
Line 12:1 Expected identifier but found "%"

**/
{%- comment %}
  assets/main-pod-internal-dashboard.css
  内部设计师 Dashboard 样式
{% endcomment -%}

/* ============================================
   Internal Dashboard Layout
   ============================================ */
.pod-internal-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pod-internal-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e5e5;
}

.pod-internal-dashboard__title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.pod-internal-dashboard__subtitle {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

/* ============================================
   Stats Cards
   ============================================ */
.pod-internal-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.pod-stat-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pod-stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pod-stat-card__icon--awaiting {
  background: #fef3c7;
  color: #d97706;
}

.pod-stat-card__icon--sent {
  background: #dbeafe;
  color: #2563eb;
}

.pod-stat-card__icon--approved {
  background: #d1fae5;
  color: #059669;
}

.pod-stat-card__icon--rejected {
  background: #fee2e2;
  color: #dc2626;
}

.pod-stat-card__icon--awaiting-photo {
  background: #ede9fe;
  color: #7c3aed;
}

.pod-stat-card__content {
  flex: 1;
}

.pod-stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.pod-stat-card__label {
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

/* ============================================
   Filters
   ============================================ */
.pod-internal-dashboard__filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pod-filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pod-filter-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.pod-filter-btn--active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.pod-filter-btn .count {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.pod-filter-btn--active .count {
  background: rgba(255, 255, 255, 0.2);
}

/* Scope toggle */
.pod-scope-toggle {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.pod-scope-btn {
  padding: 0.4rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  background: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pod-scope-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.pod-scope-btn--active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.pod-scope-btn .count {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.125rem 0.4rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.pod-scope-btn--active .count {
  background: rgba(255, 255, 255, 0.2);
}

/* 已完成卡片 icon */
.pod-stat-card__icon--completed {
  color: #16a34a;
}

.pod-search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 0.875rem;
}

.pod-search-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.pod-sort-select {
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 0.875rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: #1a1a1a;
  font-family: inherit;
  min-width: 130px;
}

.pod-sort-select:focus {
  outline: none;
  border-color: #1a1a1a;
}

.pod-sort-select:hover {
  border-color: #1a1a1a;
}

/* ============================================
   Orders Table
   ============================================ */
.pod-orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.pod-orders-table th,
.pod-orders-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

.pod-orders-table th {
  background: #f9f9f9;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

.pod-orders-table tr:last-child td {
  border-bottom: none;
}

.pod-orders-table tbody tr {
  cursor: pointer;
  transition: background 0.2s ease;
}

.pod-orders-table tbody tr:hover {
  background: #f9f9f9;
}

.pod-order-id {
  font-weight: 600;
  color: #1a1a1a;
}

.pod-rush-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

.pod-order-row--rush {
  background: rgba(220, 53, 69, 0.03);
}

.pod-order-row--rush:hover {
  background: rgba(220, 53, 69, 0.06);
}

.pod-order-customer {
  color: #666;
  font-size: 0.875rem;
}

.pod-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.pod-status-badge--awaiting-art {
  background: #fef3c7;
  color: #92400e;
}

.pod-status-badge--proof-sent {
  background: #dbeafe;
  color: #1e40af;
}

.pod-status-badge--proof-approved {
  background: #d1fae5;
  color: #065f46;
}

.pod-status-badge--proof-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.pod-status-badge--auto-approved {
  background: #e0e7ff;
  color: #3730a3;
}

.pod-status-badge--in-production {
  background: #d1fae5;
  color: #065f46;
}

.pod-status-badge--awaiting-photo {
  background: #fef3c7;
  color: #92400e;
}

.pod-order-time {
  color: #666;
  font-size: 0.875rem;
}

.pod-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

.pod-empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.pod-empty-state__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

/* ============================================
   Order Detail Modal
   ============================================ */
.pod-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pod-modal-overlay--active {
  opacity: 1;
  visibility: visible;
}

.pod-modal {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pod-modal-overlay--active .pod-modal {
  transform: translateY(0);
}

.pod-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.pod-modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.pod-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s ease;
}

.pod-modal__close:hover {
  background: #e5e5e5;
  color: #1a1a1a;
}

.pod-modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.pod-modal__footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ============================================
   Proof Detail View
   ============================================ */
.pod-proof-detail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .pod-proof-detail {
    grid-template-columns: 1fr;
  }
}

.pod-proof-detail__section {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
}

.pod-proof-detail__section-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 1rem;
}

.pod-customer-images {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pod-proof-detail__section--rejected {
  border-left: 3px solid #dc2626;
  background: #fef2f2;
}

.pod-revision-record {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pod-revision-record__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pod-revision-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pod-revision-time {
  color: #666;
  font-size: 0.8rem;
}

.pod-revision-record__feedback {
  margin: 0;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.6;
  background: #fff;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #fca5a5;
}

.pod-proof-download-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.pod-proof-download-link:hover {
  background: #333;
}

.pod-sent-proof-view {
  border-radius: 8px;
  overflow: hidden;
  background: #e5e5e5;
}

.pod-sent-proof-view img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: contain;
}

.pod-customer-image {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #e5e5e5;
}

.pod-customer-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
}

.pod-customer-image__remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s ease;
}

.pod-customer-image__remove:hover {
  background: rgba(220, 38, 38, 0.95);
}

.pod-customer-image__remove:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.pod-customer-image.is-removing {
  opacity: 0.4;
  pointer-events: none;
}

.pod-customer-image__label {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  padding: 0.5rem;
  font-size: 0.75rem;
}

/* Bug 5 Fix (20260727-2): URL bar + 复制/下载按钮 */
.pod-customer-image__url-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.5rem;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  font-size: 0.65rem;
  word-break: break-all;
  overflow: hidden;
}

.pod-customer-image__url {
  flex: 1;
  color: #555;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pod-customer-image__url:hover {
  color: #0057d9;
  text-decoration: underline;
}

/* 全局按钮尺寸(pod-btn--xxs 复用) */
.pod-btn--xxs {
  padding: 0.15rem 0.4rem !important;
  font-size: 0.65rem !important;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc !important;
  border-radius: 3px;
  background: #fff;
  color: #333;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  font-weight: normal !important;
  font-family: inherit;
  line-height: normal !important;
}

.pod-btn--xxs:hover {
  background: #f0f0f0;
}

.pod-btn--xxs:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pod-btn--copy {
  background: #f0f4ff;
  border-color: #b3c6ff !important;
  color: #0057d9;
}

.pod-btn--copy:hover:not(:disabled) {
  background: #dce8ff;
}

/* 图片加载失败样式 */
.pod-customer-image.is-error img {
  opacity: 0.3;
  border: 2px dashed #cc0000;
}

.pod-proof-upload {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pod-upload-zone {
  border: 2px dashed #e5e5e5;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pod-upload-zone:hover,
.pod-upload-zone--dragover {
  border-color: #1a1a1a;
  background: #f5f5f5;
}

.pod-upload-zone__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.pod-upload-zone__text {
  color: #666;
  font-size: 0.875rem;
}

.pod-upload-zone__hint {
  color: #999;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.pod-upload-zone input[type="file"] {
  display: none;
}

.pod-upload-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e5e5;
}

.pod-upload-preview img,
.pod-upload-preview video {
  width: 100%;
  height: auto;
  display: block;
}

.pod-upload-preview__remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pod-notes-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.pod-notes-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

/* ============================================
   Buttons
   ============================================ */
.pod-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pod-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pod-btn--primary {
  background: #1a1a1a;
  color: #fff;
}

.pod-btn--primary:hover:not(:disabled) {
  background: #333;
}

.pod-btn--secondary {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e5e5e5;
}

.pod-btn--secondary:hover:not(:disabled) {
  background: #f5f5f5;
}

.pod-btn--danger {
  background: #dc2626;
  color: #fff;
}

.pod-btn--danger:hover:not(:disabled) {
  background: #b91c1c;
}

/* ============================================
   Toast Notifications
   ============================================ */
.pod-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pod-toast {
  background: #1a1a1a;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pod-toast--success {
  background: #059669;
}

.pod-toast--error {
  background: #dc2626;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   Loading State
   ============================================ */
.pod-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.pod-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5e5;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .pod-internal-dashboard {
    padding: 1rem;
  }

  .pod-orders-table {
    display: block;
    overflow-x: auto;
  }

  .pod-internal-dashboard__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ============= 翻页控件 ============= */
.pod-orders-table tfoot td {
  background: #fafafa;
  border-top: 2px solid #e5e5e5;
  padding: 1rem;
}

.pod-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pod-page-prev,
.pod-page-next {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pod-page-prev:hover:not(:disabled),
.pod-page-next:hover:not(:disabled) {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.pod-page-prev:disabled,
.pod-page-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pod-page-info {
  font-size: 0.9rem;
  color: #666;
  min-width: 180px;
  text-align: center;
}
