/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  --bg: #f7f2e7;
  --panel: #fffdf9;
  --text: #0f2433;
  --muted: #41586b;
  --accent: #2e8b57;
  --accent-dark: #256f46;
  --refresh: #c96f1d;
  --refresh-dark: #92450d;
  --annuaire: #d6a107;
  --annuaire-dark: #b48700;
  --danger: #a62222;
  --border: #d2c3ad;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 12px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, #f0dcc0 0, transparent 32%),
    radial-gradient(circle at 92% 18%, #e5ccb0 0, transparent 27%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
  color: var(--text);
  font-size: 13px;
}

.shell {
  max-width: 98vw;
  margin: 0 auto;
}

h1 { margin: 0 0 12px 0; }

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.user-panel {
  min-width: 260px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-label {
  color: var(--muted);
  font-size: 12px;
}

.user-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.user-logout {
  padding: 5px 8px;
  font-size: 11px;
}

.admin-main-btn {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}

input, select, button {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  background: #fff;
  color: var(--text);
}

.fulltext-search {
  flex: 1 1 420px;
  min-width: 280px;
}

button { cursor: pointer; background: var(--panel); }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.primary:hover { background: var(--accent-dark); }
button.refresh { background: var(--refresh); color: #fff; border-color: var(--refresh); }
button.refresh:hover { background: var(--refresh-dark); }
button.annuaire-btn { background: var(--annuaire); border-color: var(--annuaire); }
button.annuaire-btn:hover { background: var(--annuaire-dark); }
button.vip { background: #345f8f; color: #fff; border-color: #345f8f; }
button.vip:hover { background: #284b70; }
button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
button:disabled,
button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(20%);
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
}

.editor {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.editor-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.editor-grid label {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  font-size: 12px;
}

.editor-grid label.field-required-missing {
  color: #9a5b00;
}

.editor-grid input.field-required-missing,
.editor-grid select.field-required-missing {
  border-color: #e28a1a;
  box-shadow: 0 0 0 2px rgba(226, 138, 26, 0.18);
  background: #fff7eb;
}

.editor-grid input.field-required-missing:focus,
.editor-grid select.field-required-missing:focus {
  outline: none;
  border-color: #c86f00;
  box-shadow: 0 0 0 3px rgba(226, 138, 26, 0.24);
}

.inline-field {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-field input {
  min-width: 120px;
  flex: 0 0 140px;
}

.field-suggest {
  font-size: 11px;
  color: var(--muted);
  margin-top: -4px;
}

.validation-line {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: span 2;
}

.check-label {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.field-suggest-inline {
  margin-top: 0;
}

.field-suggest button {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f4ecdf;
  color: var(--text);
}

.dup-panel {
  grid-column: 1 / -1;
  margin-top: 4px;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

.dup-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.link-row {
  width: 100%;
  text-align: left;
  background: #fff8ed;
  border: 1px solid #e8d5b7;
  border-radius: 8px;
  padding: 5px 7px;
}

.link-row:hover {
  background: #f9e9cf;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1460px;
  table-layout: fixed;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 8px 8px;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.5;
}

th {
  background: #f3eadc;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

tbody tr:nth-child(even) {
  background: #fffcf7;
}

tbody tr {
  transition: background-color 120ms ease, box-shadow 120ms ease;
  cursor: pointer;
}

tbody tr:hover {
  background: #fff6e8;
  box-shadow: inset 0 0 0 1px #f0d9b7;
}

tbody tr.row-selected {
  background: #fff0da !important;
}

tbody tr.row-validated {
  background: #f3e1c8;
}

tbody tr.row-validated:nth-child(even) {
  background: #eed8bb;
}

tbody tr.row-validated:hover {
  background: #f8e9d2;
  box-shadow: inset 3px 0 0 #8a5a2b, inset 0 0 0 1px #d8b98f;
}

tbody tr.row-validated td:first-child {
  font-weight: 700;
  color: #6b3f18;
  background: #e6c89e;
  border-left: 3px solid #8a5a2b;
}

tbody tr.row-selected.row-validated {
  background: #fff0da !important;
  box-shadow: inset 4px 0 0 #8a5a2b, inset 0 0 0 1px #f0d9b7;
}

tbody tr.row-selected.row-validated:hover {
  background: #f8e9d2 !important;
  box-shadow: inset 4px 0 0 #8a5a2b, inset 0 0 0 1px #d8b98f;
}

td select,
td input {
  width: 100%;
}

.editor-grid input.input-locked {
  background: #ece5d8;
  color: #5a6470;
  border-color: #cbbca7;
  cursor: not-allowed;
  opacity: 1;
}

.small { color: var(--muted); font-size: 12px; }
.info-strong { color: #1f7a3d; }
.warning { color: #8a5b00; font-weight: 600; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.summary-total {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.dryrun-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin: 8px 0;
}

.dryrun-kpi-card {
  background: #fff9ef;
  border: 1px solid #ead9c1;
  border-radius: 10px;
  padding: 10px 12px;
}

.dryrun-kpi-card strong {
  font-size: 20px;
}

.selection-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid #d8c5a8;
  border-radius: 10px;
  background: #fffdf7;
}

.selection-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.selection-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c7d9ef;
  background: #edf5ff;
  color: #20416d;
}

.dryrun-table-wrap {
  max-height: 65vh;
}

.dryrun-table {
  min-width: 1220px;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.action-create {
  background: #e7f6ed;
  color: #1b6b3c;
  border: 1px solid #b9dfc8;
}

.action-update {
  background: #eaf2fd;
  color: #1e4f8a;
  border: 1px solid #bfd3ee;
}

.action-noop {
  background: #f2f2f2;
  color: #555;
  border: 1px solid #ddd;
}

.action-skip {
  background: #fff1e4;
  color: #9a5b00;
  border: 1px solid #e8c79f;
}

.dryrun-reason {
  color: #9a5b00;
  font-weight: 600;
}

.diff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.diff-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d4d9e6;
  background: #f6f8fb;
  color: #30415e;
  padding: 2px 7px;
  font-size: 11px;
}

.scroll-editor-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  background: #345f8f;
  color: #fff;
  border-color: #345f8f;
  box-shadow: 0 10px 24px rgba(15, 36, 51, 0.18);
}

.scroll-editor-btn:hover {
  background: #284b70;
}

@media (max-width: 1200px) {
  .editor-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .validation-line {
    grid-column: span 1;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .top-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .title-row {
    flex-wrap: wrap;
  }

  .user-panel {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .fulltext-search {
    flex-basis: 100%;
    min-width: 0;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-editor-btn {
    right: 12px;
    bottom: 12px;
  }
}

.shell.comfortable input,
.shell.comfortable select,
.shell.comfortable button {
  font-size: 13px;
  padding: 7px 10px;
}

.shell.comfortable th,
.shell.comfortable td {
  font-size: 13px;
  padding: 10px 10px;
  line-height: 1.6;
}

.dryrun-selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.dryrun-selected-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.selected-chip {
  border: 1px solid #d8b278;
  background: #fff2df;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
}

.gal-sync-alert {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e8ba7a;
  background: #fff3e2;
  color: #7f4300;
  font-size: 13px;
}

.gal-sync-alert strong {
  margin-right: 6px;
}

tbody tr.row-gal-create {
  background: #fff2e5;
}

tbody tr.row-gal-create:nth-child(even) {
  background: #ffebdb;
}

tbody tr.row-gal-create:hover {
  background: #ffe2c7;
}

tbody tr.row-gal-update {
  background: #fffbe3;
}

tbody tr.row-gal-update:nth-child(even) {
  background: #fff8d1;
}

tbody tr.row-gal-update:hover {
  background: #fff2b8;
}





