/* ============================================================
   MYCFO — import.css  (Milestone 2)
   Import Center 전용 스타일
   ============================================================ */

/* ── Import Section ──────────────────────────────────────────── */
.import-section {
  margin-bottom: 28px;
}
.import-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Import Card Grid ────────────────────────────────────────── */
.import-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.import-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.import-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.import-card.coming-soon { opacity: 0.6; }

.import-card-icon { font-size: 28px; }
.import-card-name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.import-card-desc { font-size: 12px; color: var(--color-text-secondary); line-height: 1.5; }

/* ── Format Chips ────────────────────────────────────────────── */
.format-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.format-chip {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.fmt-excel   { background: #d1fae5; color: #065f46; }
.fmt-csv     { background: #dbeafe; color: #1e40af; }
.fmt-pdf     { background: #fee2e2; color: #991b1b; }
.fmt-zip     { background: #fef3c7; color: #92400e; }
.fmt-api     { background: #ede9fe; color: #5b21b6; }
.fmt-hometax { background: #fce7f3; color: #9d174d; }

/* ── Import Action Area ──────────────────────────────────────── */
.import-card-actions { margin-top: auto; }

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
  padding: 8px 12px;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.upload-btn:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}
.upload-btn.coming-soon-btn {
  opacity: 0.5;
  cursor: not-allowed;
  border-style: solid;
}

.import-status-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: 6px;
}
.import-status-ready  { background: #dbeafe; color: #1e40af; }
.import-status-soon   { background: #f3f4f6; color: #6b7280; }
.import-status-active { background: #d1fae5; color: #065f46; }

/* ── Import Log Table ────────────────────────────────────────── */
.import-log-section {
  margin-top: 32px;
}
.import-log-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.import-log-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.import-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.import-log-table th {
  padding: 9px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}
.import-log-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
}
.import-log-table tr:last-child td { border-bottom: none; }

.log-result-success { color: var(--color-success); font-weight: 600; }
.log-result-fail    { color: var(--color-danger); font-weight: 600; }
.log-result-partial { color: #f97316; font-weight: 600; }

/* ── Guide / Info Banner ─────────────────────────────────────── */
.import-info-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.import-info-icon { font-size: 18px; flex-shrink: 0; }
.import-info-text { font-size: 13px; color: #1e40af; line-height: 1.6; }
