/* Mobile Dedicated Styles for batch */
:root {
  --primary: #0284c7;
}

.m-app-container {
  padding: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.m-hero {
  text-align: center;
  padding: 1rem 0.5rem;
}

.m-hero h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.m-hero p {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
}

.m-dropzone {
  border: 2px dashed #cbd5e1;
  background: #f0f9ff;
  border-radius: 16px;
  padding: 2.5rem 1rem;
  text-align: center;
}

.m-config-card {
  background: white;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.m-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.m-field select, .m-field input[type="text"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
}

.m-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: white !important;
  border: none !important;
  padding: 10px !important;
  font-size: 0.9rem !important;
  width: 100%;
  border-radius: 8px;
  font-weight: 800;
}

.m-btn-export {
  background: #10b981 !important;
  color: white !important;
  border: none !important;
  padding: 10px !important;
  font-size: 0.9rem !important;
  width: 100%;
  border-radius: 8px;
  font-weight: 800;
}

.m-btn-export:disabled {
  background: #cbd5e1 !important;
}

.sample-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

.preview-est-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: #0284c7;
  font-size: 0.8rem;
}

.preview-est-pill .pct-badge {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.quality-est-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.batch-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #0369a1;
  font-weight: 600;
}

/* Mobile Queue Table Optimization */
.queue-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.queue-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.74rem;
  table-layout: auto;
}

.queue-table th {
  background: #f8fafc;
  padding: 8px 5px;
  color: #475569;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.72rem;
  white-space: nowrap;
}

.queue-table td {
  padding: 6px 5px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table-thumb {
  width: 32px;
  height: 32px;
  min-width: 32px;
  object-fit: cover;
  border-radius: 6px;
  background: #e2e8f0;
  display: block;
}

/* 缩窄标题/文件名列，防止撑宽表格 */
.queue-table th:nth-child(2),
.queue-table td:nth-child(2),
.queue-table .col-name {
  max-width: 80px;
  min-width: 60px;
  width: 75px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.73rem;
  color: #1e293b;
  font-weight: 600;
}

.queue-table th:nth-child(1),
.queue-table td:nth-child(1) {
  width: 38px;
  padding: 6px 3px 6px 6px;
}

.queue-table th:nth-child(3),
.queue-table td:nth-child(3),
.queue-table .col-orig {
  white-space: nowrap;
  font-size: 0.72rem;
  color: #64748b;
}

.queue-table th:nth-child(4),
.queue-table td:nth-child(4),
.queue-table .col-new {
  white-space: nowrap;
  font-size: 0.72rem;
}

.queue-table th:nth-child(5),
.queue-table td:nth-child(5),
.queue-table .col-status {
  white-space: nowrap;
  padding-right: 6px;
}

.status-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.preview-est-pill {
  font-size: 0.72rem;
  gap: 2px;
}

.preview-est-pill .pct-badge {
  font-size: 0.65rem;
  padding: 1px 3px;
}

