/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1a1f2c;
  --muted: #5c667a;
  --accent: #0b6e4f;
  --accent-hover: #095c42;
  --border: #d8dee9;
  --warn: #b45309;
  --unmapped: #fef3c7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

h1, h2 {
  margin: 0 0 0.75rem;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input[type="file"],
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

input[type="text"]:not(.field-inline) {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
}

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.model-pair {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.model-pair-field {
  flex: 1 1 220px;
  min-width: 0;
}

.model-pair-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.model-pair-field select {
  margin-bottom: 0;
}

.model-pair-arrow {
  flex: 0 0 auto;
  padding-bottom: 0.65rem;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 600;
}

.upload-progress {
  margin: 0.75rem 0 1rem;
}

.upload-progress-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.upload-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #e8ecf1;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.15s ease;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tab {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

/* Compact mapping table — dense rows, modern inline editing */
.mapping-table-wrap {
  overflow: auto;
  max-height: min(72vh, 820px);
}

.mapping-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.mapping-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 0.5rem 0.65rem;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mapping-table tbody td {
  padding: 2px 0.35rem;
  border-bottom: 1px solid #eef1f5;
  vertical-align: middle;
}

.mapping-table tbody tr:last-child td {
  border-bottom: none;
}

.mapping-table .mapping-row:hover {
  background: #f8fafb;
}

.mapping-table .mapping-row.is-unmapped {
  background: #fffbeb;
}

.mapping-table .mapping-row.is-unmapped:hover {
  background: #fff8e1;
}

.mapping-table .col-old,
.mapping-table .col-new {
  width: 40%;
}

.mapping-table .col-source {
  width: 16%;
}

.mapping-table .col-actions {
  width: 72px;
  text-align: right;
}

.field-inline {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.field-inline::placeholder {
  color: #a0a8b8;
}

.field-inline:hover {
  background: #f1f4f8;
}

.field-inline:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.14);
}

.field-inline.field-readonly {
  cursor: default;
  color: var(--text);
}

.field-inline.field-readonly:hover,
.field-inline.field-readonly:focus {
  background: #f1f4f8;
  border-color: transparent;
  box-shadow: none;
}

.field-inline.field-readonly:focus {
  border-color: #c5cdd8;
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sort-label:hover {
  color: var(--accent);
}

.sort-label-indicator {
  font-size: 11px;
  opacity: 0.55;
  font-weight: 400;
}

.sort-label:hover .sort-label-indicator {
  opacity: 1;
}

.source-tag {
  display: inline-block;
  max-width: 100%;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-action {
  padding: 0.25rem 0.45rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s, background 0.12s, color 0.12s;
}

.mapping-row:hover .row-action,
.row-action:focus-visible {
  opacity: 1;
}

.row-action:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.card-table {
  padding: 0;
  overflow: hidden;
}

.card-table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.card-table-body {
  padding: 0.35rem 0.5rem 0.5rem;
}

tr.unmapped {
  background: var(--unmapped);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #e8edf5;
  color: var(--muted);
}

.error {
  color: #b91c1c;
  margin-top: 0.75rem;
}

.success {
  color: var(--accent);
  margin-top: 0.75rem;
}

.muted {
  color: var(--muted);
}

.dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #fafbfc;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone-active {
  border-color: var(--accent);
  background: #eef8f3;
}

.dropzone-title {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.dropzone-hint {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.dropzone-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.dropzone-button:hover {
  background: var(--accent-hover);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-nav-brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  gap: 1rem;
}

.site-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav-links a:hover {
  color: var(--accent);
}

.save-status {
  min-height: 1.5rem;
  margin-top: 0.5rem;
}

.success-inline {
  color: var(--accent);
  font-size: 0.92rem;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

