/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** 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 {
  --bg-a: #f0fbff;
  --bg-b: #fff5eb;
  --bg-c: #f6f8ff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --line: #c5d4e8;
  --line-soft: #dbe5f2;
  --text: #13243c;
  --text-muted: #5f7490;
  --accent: #0f6df4;
  --accent-2: #0cb8a4;
  --danger: #db5f6a;
  --warn: #f3a236;
  --ok: #1d9f69;
  --shadow: 0 16px 45px rgba(18, 40, 76, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(55vw 55vw at -10% -15%, #b9f2ff 0%, transparent 70%),
    radial-gradient(40vw 40vw at 110% -10%, #ffd8b7 0%, transparent 70%),
    linear-gradient(160deg, var(--bg-a) 0%, var(--bg-b) 45%, var(--bg-c) 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.5;
  z-index: -1;
  animation: floatGlow 14s ease-in-out infinite;
}

body::before {
  background: rgba(39, 144, 255, 0.23);
  top: 12%;
  right: -140px;
}

body::after {
  background: rgba(255, 154, 84, 0.2);
  left: -120px;
  bottom: 5%;
  animation-delay: -6s;
}

.container {
  max-width: 1240px;
  margin: 12px auto 18px;
  padding: 0 10px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  animation: riseIn 0.4s ease both;
}

.hero-panel {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.94), rgba(243, 250, 255, 0.86)),
    linear-gradient(170deg, rgba(15, 109, 244, 0.12), rgba(12, 184, 164, 0.1));
  border-color: #b9d6f6;
}

.login-page {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel {
  width: min(560px, 100%);
  text-align: center;
}

.login-actions {
  justify-content: center;
  margin-top: 7px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 7px;
}

.eyebrow {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f74c6;
}

.subtitle {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.meta-line {
  margin-top: 6px;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.user-actions {
  align-items: center;
  justify-content: flex-end;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #bcd3ee;
  border-radius: 999px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.panel-grid .panel {
  margin-bottom: 0;
}

.folder-upload-panel {
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.upload-grid {
  margin-top: 4px;
}

.combined-drop {
  margin-bottom: 7px;
  border-style: solid;
}

.drop {
  border: 1px solid #bbd0eb;
  border-radius: 10px;
  padding: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.drop:hover {
  transform: translateY(-2px);
  border-color: #8fb7e7;
  box-shadow: 0 10px 24px rgba(48, 94, 156, 0.14);
}

.drop-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.drop-note,
.file-count {
  margin: 4px 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.menu-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 8px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #bad2ef;
}

button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #9ebadb;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 67, 126, 0.15);
  border-color: #8fb4de;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

button.primary {
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(22, 119, 211, 0.3);
}

.compact-btn {
  padding: 4px 7px;
  font-size: 11px;
}

input:not([type="checkbox"]):not([type="file"]) {
  border: 1px solid #b2c7e0;
  border-radius: 8px;
  padding: 4px 6px;
  background: #ffffff;
  color: var(--text);
  min-height: 24px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:not([type="checkbox"]):not([type="file"]):focus {
  border-color: #6ea4dd;
  box-shadow: 0 0 0 3px rgba(15, 109, 244, 0.16);
}

input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.month-input {
  width: 140px;
}

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

.file-input {
  border-radius: 10px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid #c9d9ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #2d4d72;
}

.master-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.9)),
    linear-gradient(140deg, rgba(12, 184, 164, 0.06), rgba(15, 109, 244, 0.06));
}

.master-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.master-subtabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #c5d8ef;
  background: rgba(255, 255, 255, 0.74);
}

.master-toolbar {
  margin-top: 4px;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid #c9d8ec;
  background: #ffffff;
  color: #355679;
}

.mapping-filter-label {
  font-size: 9px;
}

.table-wrap {
  margin-top: 7px;
  max-height: 56vh;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel-solid);
}

.pagination-bar {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.pagination-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid #c9d8ec;
  border-radius: 8px;
  background: #ffffff;
  color: #355679;
  font-size: 11px;
  font-weight: 600;
}

.page-size-control select {
  min-height: 24px;
  border: 1px solid #b2c7e0;
  border-radius: 6px;
  padding: 2px 6px;
  background: #ffffff;
  color: var(--text);
}

.page-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid #c9d8ec;
  background: rgba(255, 255, 255, 0.72);
  color: #355679;
  font-size: 11px;
  font-weight: 700;
}

.master-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: separate;
  border-spacing: 0;
}

.master-table th,
.master-table td {
  border-bottom: 1px solid #e8eff8;
  padding: 3px 4px;
  text-align: left;
  vertical-align: middle;
  font-size: 11px;
}

.master-table th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 12;
  background: #f2f7ff;
  color: #2e537d;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.master-table tbody tr:hover td {
  background: #f8fbff;
}

.master-table td input {
  width: 100%;
  min-width: 110px;
  min-height: 22px;
  padding: 2px 5px;
  font-size: 11px;
}

.name-mapping-table {
  min-width: 980px;
  table-layout: fixed;
}

.name-mapping-table .customer-col {
  width: 54ch;
  max-width: 54ch;
}

.name-mapping-table .system-col {
  width: 8ch;
  min-width: 8ch;
  max-width: 8ch;
}

.name-mapping-table .single-line-customer .single-line-value {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name-mapping-table .code-set-col,
.name-mapping-table .code-set-cell {
  width: 16ch;
  min-width: 16ch;
  max-width: 16ch;
}

.name-mapping-table .code-set-cell .compact-btn {
  white-space: nowrap;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.save-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6ch;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.save-state-pill.dirty {
  color: #875200;
  background: #ffefcb;
  border: 1px solid #ffd993;
}

.save-state-pill.saving {
  color: #2f4f79;
  background: #e8f0fb;
  border: 1px solid #cadcf2;
}

.save-state-pill.saved {
  color: #0b6847;
  background: #dbf5e8;
  border: 1px solid #b6ebd2;
}

.save-state-pill.error {
  color: #7f3340;
  background: #ffe1e6;
  border: 1px solid #ffc4ce;
}

.single-line-field {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.single-line-prefix {
  color: #506987;
  font-size: 11px;
  font-weight: 600;
}

.single-line-value {
  color: #2f4f79;
  font-size: 11px;
  font-weight: 600;
}

.single-line-customer input {
  min-width: 220px;
  flex: 1 1 auto;
}

.single-line-smile input {
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

.party-id-col,
.party-id-width {
  max-width: 11ch;
}

.party-id-width input {
  width: 11ch;
  min-width: 11ch;
  max-width: 11ch;
}

.readonly-cell {
  font-weight: 700;
  color: #2f4f79;
}

.comment-cell {
  width: 21ch;
  min-width: 21ch;
  max-width: 21ch;
  color: #506987;
}

.fixed-col,
.fixed-cell {
  width: 11ch;
  min-width: 11ch;
  max-width: 11ch;
}

.fixed-row td {
  background: #f7f9fc;
}

.ambiguous-row td {
  background: #fff9ef;
}

.status-pill,
.fixed-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11ch;
  min-width: 11ch;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-pill.ok {
  color: #0b6847;
  background: #dbf5e8;
  border: 1px solid #b6ebd2;
}

.status-pill.ambiguous {
  color: #8f5a00;
  background: #ffefcb;
  border: 1px solid #ffd993;
}

.status-pill.unmatched {
  color: #7f3340;
  background: #ffe1e6;
  border: 1px solid #ffc4ce;
}

.fixed-pill.locked {
  color: #31537d;
  background: #e8f0fb;
  border: 1px solid #cadcf2;
}

.fixed-pill.editable {
  color: #355a4f;
  background: #e7f8f3;
  border: 1px solid #c9eee1;
}

small {
  color: var(--text-muted);
}

code {
  font-family: "SF Mono", "JetBrains Mono", "Menlo", monospace;
  background: #e9f2fe;
  border-radius: 4px;
  padding: 1px 4px;
}

.log-panel {
  margin-top: 3px;
}

.log-output {
  margin: 0;
  padding: 6px;
  white-space: pre-wrap;
  max-height: 150px;
  overflow: auto;
  background: #0f2037;
  border: 1px solid #1c3456;
  border-radius: 8px;
  color: #d2e2f9;
  font-family: "SF Mono", "JetBrains Mono", "Menlo", monospace;
  font-size: 11px;
}

@keyframes riseIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes floatGlow {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 980px) {
  .hero-top {
    flex-direction: column;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .menu-tabs {
    width: 100%;
  }

  .menu-tabs button {
    flex: 1 1;
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }

  .panel {
    padding: 8px;
  }

  .actions {
    width: 100%;
    align-items: stretch;
  }

  .actions button,
  .actions input:not([type="checkbox"]):not([type="file"]) {
    width: 100%;
  }

  .checkbox-line {
    width: -moz-fit-content;
    width: fit-content;
  }

  .pagination-controls {
    width: 100%;
  }
}

