@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --surface-soft: #f6f9ff;
  --line: #d6def0;
  --text: #151f36;
  --muted: #5f6f8f;
  --brand: #2f67ff;
  --brand-soft: #e9f0ff;
  --nav: #10203d;
  --ok-bg: #ebfff3;
  --ok-line: #a3e0bf;
  --ok-text: #118046;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

html, body {
  min-height: 100%;
}

h1, h2, p {
  margin: 0;
}

.page-login {
  min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 100% -10%, #dce7ff 0%, transparent 65%),
    radial-gradient(700px 430px at -5% 25%, #ffe3ca 0%, transparent 60%),
    var(--bg);
}

.login-bg-shape {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(86px);
  opacity: 0.4;
  z-index: 0;
}

.shape-a {
  width: 320px;
  height: 320px;
  background: #ffcb98;
  left: -80px;
  top: 120px;
}

.shape-b {
  width: 360px;
  height: 360px;
  background: #bdd1ff;
  right: -90px;
  top: 80px;
}

.login-topbar {
  height: 58px;
  background: var(--nav);
  color: #eef3ff;
  display: flex;
  align-items: center;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

.login-brand {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-shell {
  max-width: 1040px;
  margin: 38px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.login-center {
  min-height: calc(100vh - 58px);
  display: grid;
  place-items: center;
  padding: 20px 16px 36px;
  position: relative;
  z-index: 1;
}

.login-panel {
  width: 100%;
  max-width: 460px;
  padding: 22px;
  text-align: center;
}

.login-sub {
  color: var(--muted);
  margin: 10px 0 14px;
}

.login-shell.compact {
  max-width: 580px;
  grid-template-columns: 1fr;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(24, 46, 94, 0.09);
  backdrop-filter: blur(8px);
}

.card.premium {
  box-shadow: 0 24px 58px rgba(18, 39, 82, 0.11);
}

.login-visual {
  padding: 20px;
}

.character-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #cfd7ea;
  margin-bottom: 14px;
  background: linear-gradient(140deg, #ff3ba4 0%, #8926b4 70%);
}

.character-wrap.compact {
  max-width: 220px;
  margin: 0 auto 14px;
}

.character-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.character-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.visual-copy h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.visual-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  padding: 20px;
}

.tabline {
  display: flex;
  border-bottom: 1px solid #e3e8f5;
  margin-bottom: 14px;
}

.tab {
  border: none;
  background: transparent;
  border-radius: 0;
  color: #5a6890;
  font-weight: 700;
  padding: 10px 8px;
  cursor: default;
}

.tab.active {
  color: #3157cc;
  border-bottom: 2px solid #3157cc;
}

.login-form h2 {
  font-size: 31px;
  margin-bottom: 14px;
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field.text-left {
  text-align: left;
}

.field span {
  display: block;
  margin-bottom: 5px;
  color: #5d6b8d;
  font-size: 12px;
}

.field input {
  width: 100%;
  border: 1px solid #d1d9eb;
  background: #f8faff;
  border-radius: 10px;
  padding: 11px 12px;
  color: #1f2944;
}

.field select {
  width: 100%;
  border: 1px solid #d1d9eb;
  background: #f8faff;
  border-radius: 10px;
  padding: 11px 12px;
  color: #1f2944;
}

.toggle-switch {
  width: 100%;
  border: 1px solid #d1d9eb;
  background: #f8faff;
  border-radius: 10px;
  padding: 9px 12px;
  color: #1f2944;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.toggle-track {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d3dbea;
  position: relative;
  transition: background-color 0.22s ease;
}

.toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 6px rgba(15, 29, 62, 0.2);
  transition: transform 0.22s ease;
}

.toggle-text {
  font-weight: 700;
  color: #334360;
}

.toggle-switch.on {
  border-color: #84a3ff;
  background: #eef3ff;
}

.toggle-switch.on .toggle-track {
  background: #4f76ff;
}

.toggle-switch.on .toggle-thumb {
  transform: translateX(20px);
}

.submit {
  width: 100%;
  height: 46px;
  border: 1px solid #5e83ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #4f7fff 0%, #2f63f0 100%);
  color: #fff;
  font-weight: 800;
  margin-top: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 102, 255, 0.25);
}

.submit.alt {
  background: linear-gradient(180deg, #f2f6ff 0%, #e5ecff 100%);
  color: #2d4eb4;
}

.submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mfa-section {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #d8e0ef;
  border-radius: 12px;
  background: #fbfcff;
}

.minor {
  margin-top: 10px;
  color: #6e7a96;
  font-size: 13px;
}

.eyebrow {
  font-size: 11px;
  color: #6f7fa4;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 8px;
}

.error-text {
  margin-top: 8px;
  color: #bb2a22;
  font-size: 13px;
}

.mono {
  font-family: inherit;
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Console */
.page-console {
  min-height: 100vh;
  background: #cfd6e2;
  display: block;
}

.console-topbar {
  width: 100%;
  height: 56px;
  margin: 0;
  border-radius: 0;
  background: #f8faff;
  color: #1f2740;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: none;
  border-bottom: 1px solid #e0e5f0;
}

.top-left, .top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #1f2740;
  padding: 4px 6px;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
}

.top-brand-btn:hover {
  background: #edf2ff;
}

.top-brand-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(47, 84, 235, 0.22);
}

.top-brand-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dbe4f6;
  background: #fff;
  flex: 0 0 auto;
}

.top-brand-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-brand-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.top-brand-copy span {
  font-size: 13px;
  color: #5a6a8d;
  line-height: 1;
}

.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #93a3c4;
}

.ghost {
  border: 1px solid #d7ddea;
  background: #fff;
  color: #31415f;
  border-radius: 8px;
  padding: 6px 11px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 42, 80, 0.2);
}

.ghost-soft {
  background: #eef2ff;
  border-color: #d0d9f3;
  color: #2d4da2;
}

.ghost-soft:hover {
  box-shadow: 0 8px 18px rgba(48, 82, 160, 0.18);
}

.session-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d4dced;
  background: #ffffff;
  color: #2a3858;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  letter-spacing: 0.01em;
  min-width: 132px;
  justify-content: center;
}

#topUser {
  font-size: 14px;
  font-weight: 500;
  color: #233356;
}

.top-right .pill {
  font-size: 12px;
  padding: 4px 9px;
}

.console-shell {
  width: 100%;
  margin: 0;
  min-height: calc(100vh - 64px);
  height: auto;
  display: grid;
  grid-template-columns: 218px 1fr;
  background: #f6f7fb;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  box-shadow: 0 16px 30px rgba(36, 48, 76, 0.08);
  backdrop-filter: none;
  overflow: visible;
}

.console-nav {
  background: #ffffff;
  border-right: 1px solid #e5e9f2;
  padding: 18px 12px 20px;
}

.nav-title {
  padding: 9px 12px;
  color: #6d7da0;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #495879;
  text-decoration: none;
  padding: 11px 13px;
  border-radius: 12px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.14s ease, box-shadow 0.2s ease;
}

.console-nav .nav-item svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: 0.9;
}

.console-nav .nav-item span {
  min-width: 0;
}

.nav-item:hover {
  background: #f1f4fb;
  transform: translateX(3px);
  box-shadow: none;
}

.nav-item.active {
  background: #f1f5ff;
  color: #3458ba;
  font-weight: 700;
  box-shadow: inset 2px 0 0 #4d74e8;
}

.nav-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.console-main {
  padding: 18px;
  background: #f3f5fa;
  min-width: 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.subtab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.subtab {
  border: 1px solid #d6deee;
  background: #fff;
  color: #33486f;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}

.subtab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(34, 70, 142, 0.12);
}

.subtab.active {
  background: #4b73ef;
  border-color: #4b73ef;
  color: #fff;
  box-shadow: none;
}

.subtab-panel {
  display: none;
}

.subtab-panel.active {
  display: block;
}

.summary {
  padding: 18px 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.summary::after {
  display: none;
}

.summary h1 {
  font-size: 20px;
  margin-bottom: 6px;
  line-height: 1.25;
}

.summary p {
  color: var(--muted);
  margin-bottom: 9px;
  font-size: 13px;
}

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

.mini-note {
  color: #5f7094;
  font-size: 13px;
}

.pill {
  display: inline-block;
  border: 1px solid;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.pill.ok {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok-text);
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

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

.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.module-card {
  padding: 18px;
}

.module-card h2 {
  margin-bottom: 10px;
}

.tool-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.tool-row .field {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.tool-row .submit {
  width: 148px;
  min-width: 148px;
  margin-top: 0;
}

.tool-row.inline {
  flex-wrap: wrap;
  align-items: center;
}

.overview-stack {
  display: grid;
  gap: 12px;
}

.drop-control-card {
  padding: 14px;
  border: 1px solid #dbe4f6;
  background: #fff;
}

.drop-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8eef9;
}

.drop-card-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #20355f;
}

.drop-apply-btn {
  width: 168px;
  min-width: 168px;
  height: 38px;
  margin-top: 0;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.drop-control-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drop-control-item {
  border: 1px solid #dbe4f6;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.drop-control-item:focus-within {
  border-color: #9fb8ff;
  box-shadow: 0 0 0 2px rgba(75, 115, 239, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.drop-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.drop-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #5f7193;
  margin: 0;
}

.drop-current {
  color: #7083a8;
  font-size: 12px;
  white-space: nowrap;
}

.drop-current-value {
  font-size: 19px;
  font-weight: 800;
  color: #1d2e50;
}

.drop-control-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.drop-value-input {
  width: 100%;
  border: 1px solid #ced8f0;
  background: #fff;
  border-radius: 9px;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  color: #1f2944;
  font-size: 16px;
}

.drop-value-input:hover {
  border-color: #bfd1ff;
}

.drop-value-input:focus {
  outline: 0;
  border-color: #8ea9ff;
  box-shadow: 0 0 0 2px rgba(75, 115, 239, 0.14);
}

.drop-number-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.drop-number-wrap > span {
  color: #5d719a;
  font-size: 14px;
  font-weight: 700;
}

.drop-change {
  margin-top: 8px;
  color: #7283a7;
  font-size: 12px;
  font-weight: 700;
}

.drop-change.is-changed {
  color: #128a52;
  font-weight: 700;
}

.primeval-card {
  padding: 16px;
}

.balance-table-card {
  margin-top: 12px;
  width: 100%;
  padding: 16px 18px;
}

.balance-table-card h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.kpi-filter-card {
  padding: 16px 18px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  position: relative;
  z-index: 40;
  overflow: visible;
}

/* KPI date picker: unify feedback with console button style */
.kpi-filter-card input[type="date"] {
  border: 1px solid #d2dcf4;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  color: #23365f;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.kpi-filter-card input[type="date"]:hover {
  border-color: #bdd0ff;
  background: #f1f6ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(47, 84, 235, 0.12);
}

.kpi-filter-card input[type="date"]:focus,
.kpi-filter-card input[type="date"]:focus-visible {
  outline: 0;
  border-color: #8ea9ff;
  box-shadow: 0 0 0 2px rgba(47, 84, 235, 0.18), 0 10px 20px rgba(47, 84, 235, 0.12);
  background: #edf3ff;
}

.kpi-filter-card input[type="date"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(47, 84, 235, 0.14);
}

.kpi-filter-card input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
  transition: transform 140ms ease, opacity 140ms ease, filter 140ms ease;
}

.kpi-filter-card input[type="date"]:hover::-webkit-calendar-picker-indicator,
.kpi-filter-card input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(47, 84, 235, 0.26));
}

.kpi-date-field-enhanced {
  position: relative;
  z-index: 80;
}

.kpi-date-field-enhanced .kpi-native-date {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.kpi-date-trigger {
  width: 100%;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d2dcf4;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  color: #23365f;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.kpi-date-trigger:hover {
  border-color: #bdd0ff;
  background: #f1f6ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(47, 84, 235, 0.12);
}

.kpi-date-trigger:focus,
.kpi-date-trigger:focus-visible,
.kpi-date-trigger.open {
  outline: 0;
  border-color: #8ea9ff;
  box-shadow: 0 0 0 2px rgba(47, 84, 235, 0.18), 0 10px 20px rgba(47, 84, 235, 0.12);
  background: #edf3ff;
}

.kpi-date-trigger:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(47, 84, 235, 0.14);
}

.kpi-date-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.kpi-date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #4a69be;
}

.kpi-date-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.kpi-date-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  z-index: 9999;
  width: 284px;
  border: 1px solid #ced9f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 28px rgba(25, 46, 88, 0.22);
  padding: 10px;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 140ms ease, transform 160ms ease;
}

.kpi-date-popover.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.kpi-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.kpi-date-nav {
  width: 28px;
  height: 28px;
  border: 1px solid #d8e2fb;
  background: #f5f8ff;
  border-radius: 6px;
  color: #3658a9;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.kpi-date-nav:hover {
  background: #eaf1ff;
  border-color: #c7d8ff;
}

.kpi-date-month {
  font-size: 13px;
  font-weight: 700;
  color: #213a74;
}

.kpi-date-month-btn {
  border: 1px solid #d8e2fb;
  background: #f8fbff;
  color: #213a74;
  border-radius: 8px;
  height: 30px;
  min-width: 108px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.kpi-date-month-btn:hover {
  background: #eaf1ff;
  border-color: #c7d8ff;
}

.kpi-date-month-caret {
  font-size: 12px;
  color: #5b73aa;
  line-height: 1;
}

.kpi-date-month-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid #d8e2fb;
  border-radius: 8px;
  background: #f9fbff;
}

.kpi-date-month-panel select {
  width: 100%;
  height: 30px;
  border: 1px solid #d4def8;
  border-radius: 6px;
  background: #fff;
  color: #28457f;
  font-size: 12px;
  padding: 0 8px;
}

.kpi-date-month-go {
  border: 1px solid #d4def8;
  background: #eef3ff;
  color: #3359a8;
  height: 30px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.kpi-date-month-go:hover {
  background: #e6eeff;
  border-color: #c7d8ff;
}

.kpi-date-weekdays,
.kpi-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.kpi-date-weekdays span {
  font-size: 11px;
  color: #7d8caf;
  text-align: center;
  padding: 3px 0;
}

.kpi-date-day {
  height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: #2b3f6c;
  font-size: 12px;
  cursor: pointer;
}

.kpi-date-day:hover {
  background: #edf3ff;
  border-color: #d4e0ff;
}

.kpi-date-day.muted {
  color: #b4bfd7;
}

.kpi-date-day.today {
  border-color: #aac1ff;
}

.kpi-date-day.selected {
  color: #fff;
  background: #4b73ef;
  border-color: #4b73ef;
  font-weight: 700;
}

.kpi-date-foot {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.kpi-date-today {
  border: 1px solid #d4def8;
  background: #eef3ff;
  color: #3257a4;
  height: 30px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.kpi-date-today:hover {
  background: #eaf1ff;
  border-color: #c7d8ff;
}

.kpi-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.kpi-filter-head h2 {
  margin: 0;
}

.kpi-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 10px;
}

.kpi-quick-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.kpi-quick-range .quick.is-pill {
  border-radius: 8px;
  height: 30px;
  background: #eff4ff;
  border-color: #d6e1ff;
  color: #2f4f9d;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
}

.kpi-quick-range .quick.is-pill.active {
  background: #4b73ef;
  border-color: #4b73ef;
  color: #fff;
}

.kpi-filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.kpi-filter-actions .submit {
  margin: 0;
  width: 150px;
  min-width: 150px;
  border-radius: 999px;
  height: 40px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.kpi-range-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi-filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.kpi-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.kpi-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 10px;
}

.kpi-card {
  padding: 14px;
  border: 1px solid #dbe4f6;
  background: #fff;
  cursor: grab;
  user-select: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.kpi-cards:not(.is-dragging) .kpi-card:hover {
  border-color: #4b73ef;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 8px 18px rgba(56, 91, 170, 0.12);
  transform: translateY(-1px);
}

.kpi-cards:not(.is-dragging) .kpi-card:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(56, 91, 170, 0.1);
}

.kpi-card.dragging {
  opacity: 0.72;
  cursor: grabbing;
  transform: scale(1.02);
  box-shadow: 0 16px 30px rgba(31, 58, 111, 0.18);
  z-index: 3;
}

.kpi-card.drag-origin {
  opacity: 0.28;
  border-style: dashed;
}

.kpi-cards.is-dragging .kpi-card {
  transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.2s ease;
}

.kpi-card.drag-over {
  border-color: #4b73ef;
  box-shadow: 0 0 0 2px rgba(75, 115, 239, 0.16);
}

.kpi-card.kpi-card-drop-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border: 1.5px dashed #4b73ef;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(75, 115, 239, 0.08) 0%, rgba(75, 115, 239, 0.02) 100%);
  color: #2f4d93;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.kpi-card.kpi-card-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  margin: 0 !important;
  transform: translate3d(-99999px, -99999px, 0);
  opacity: 0.92;
  cursor: grabbing;
  box-shadow: 0 18px 40px rgba(31, 58, 111, 0.22);
}

.kpi-cards.is-dragging {
  cursor: grabbing;
}

.kpi-cards.is-dragging .kpi-card {
  /* Avoid layout thrash/jitter while pointer is held down. */
  transition: none !important;
}

.kpi-card.active {
  border-color: #4b73ef;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  box-shadow: 0 8px 18px rgba(56, 91, 170, 0.12);
}

.kpi-label {
  font-size: 12px;
  color: #6f7ea0;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1c2e52;
}

.kpi-delta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.kpi-delta.is-up {
  color: #128a52;
}

.kpi-delta.is-down {
  color: #c23a4b;
}

.kpi-delta.is-flat {
  color: #7283a7;
}

.kpi-value.kpi-percent::after {
  content: "%";
  margin-left: 2px;
  font-size: 13px;
  color: #5e6f95;
}

.kpi-range-table td {
  white-space: nowrap;
}

.kpi-range-table td:nth-child(1) {
  width: 88px;
}

.kpi-range-table td:nth-child(2),
.kpi-range-table td:nth-child(3) {
  text-align: right;
}

.kpi-trend-card,
.kpi-detail-card {
  padding: 16px 18px;
}

.kpi-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.kpi-chart {
  width: 100%;
  height: 240px;
  display: block;
  border: 1px dashed #ced8f2;
  border-radius: 10px;
  background: #fbfdff;
}

.kpi-chart-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px dashed #ced8f2;
  border-radius: 10px;
  background: #fbfdff;
  isolation: isolate;
}

.kpi-chart-scroll .kpi-chart {
  border: 0;
  border-radius: 0;
  min-width: 100%;
  background: transparent;
}

.kpi-chart-tooltip {
  position: absolute;
  z-index: 2147483645;
  pointer-events: none;
  max-width: min(520px, calc(100% - 20px));
  min-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(142, 170, 235, 0.42);
  background: rgba(18, 30, 56, 0.97);
  color: #f3f7ff;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(11, 20, 44, 0.34);
  transform: translate(-50%, -115%);
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.kpi-chart-tooltip-floating {
  position: fixed !important;
}

.kpi-chart-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -122%);
}

.kpi-chart-tooltip.below {
  transform: translate(-50%, 8px);
}

.kpi-chart-tooltip.below.visible {
  transform: translate(-50%, 12px);
}

.kpi-tooltip-date {
  font-weight: 700;
  color: #d7e5ff;
  margin-bottom: 6px;
}

.kpi-tooltip-list {
  display: grid;
  gap: 3px;
}

.kpi-tooltip-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.kpi-tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.kpi-tooltip-label {
  color: #d7e2fa;
}

.kpi-tooltip-value {
  color: #ffffff;
  font-weight: 700;
  text-align: right;
}

.kpi-chart circle {
  transition: r 0.15s ease, transform 0.15s ease;
  stroke: #ffffff;
  stroke-width: 1.25;
}

.kpi-chart circle:hover {
  r: 6;
  transform: translateY(-1px);
}

.kpi-chart.detail {
  margin-bottom: 16px;
}

.kpi-point-info {
  margin: 6px 0 14px;
  line-height: 1.5;
}

.retention-panel {
  margin-bottom: 10px;
}

.retention-panel h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #2e4269;
}

.retention-cell {
  text-align: left;
  font-weight: 700;
}

.retention-panel .table-wrap {
  overflow-x: auto;
  overflow-y: auto;
}

.kpi-cash-sales-card {
  margin-top: 0;
  padding: 16px 18px;
}

.kpi-cash-sales-card h2 {
  margin-bottom: 8px;
}

.kpi-cash-sales-card .minor {
  margin-bottom: 10px;
}

.cash-sales-table th,
.cash-sales-table td {
  white-space: nowrap;
}

.cash-sales-table th:nth-child(1),
.cash-sales-table td:nth-child(1) {
  width: 220px;
}

.cash-sales-table th:nth-child(2),
.cash-sales-table td:nth-child(2) {
  width: 240px;
}

.cash-sales-table th:nth-child(3),
.cash-sales-table td:nth-child(3) {
  width: 120px;
}

.cash-sales-table th:nth-child(4),
.cash-sales-table td:nth-child(4),
.cash-sales-table th:nth-child(5),
.cash-sales-table td:nth-child(5),
.cash-sales-table th:nth-child(6),
.cash-sales-table td:nth-child(6) {
  width: 140px;
}

.retention-table {
  table-layout: auto;
  width: max-content;
  min-width: 0;
}

.retention-table th,
.retention-table td {
  white-space: nowrap;
  text-align: left;
}

.retention-table th:nth-child(1),
.retention-table td:nth-child(1) {
  width: 132px;
}

.retention-table th:nth-child(2),
.retention-table td:nth-child(2) {
  width: 92px;
}

.retention-table th:nth-child(n+3),
.retention-table td:nth-child(n+3) {
  width: 118px;
}

.kpi-detail-table {
  table-layout: auto;
  width: max-content;
  min-width: 0;
}

.kpi-detail-table th,
.kpi-detail-table td {
  white-space: nowrap;
  text-align: left;
}

.kpi-detail-table th:nth-child(1),
.kpi-detail-table td:nth-child(1) {
  width: 116px;
  text-align: left;
}

.kpi-detail-table th:nth-child(2),
.kpi-detail-table td:nth-child(2) {
  width: 92px;
}

.kpi-detail-table th:nth-child(n+3),
.kpi-detail-table td:nth-child(n+3) {
  width: 92px;
}

/* Retention/KPI detail alignment lock (override generic version-table nth-child rules) */
.version-table.retention-table th,
.version-table.retention-table td,
.version-table.kpi-detail-table th,
.version-table.kpi-detail-table td {
  text-align: left !important;
}

.table-wrap {
  max-height: 340px;
  overflow: auto;
  border: 1px solid #d8e1f3;
  border-radius: 12px;
  background: #fff;
  width: 100%;
}

.version-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  table-layout: fixed;
}

.version-table.resizable-table {
  width: max(100%, var(--table-min-width, 0px));
  min-width: 100%;
}

.version-table th,
.version-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #e8eef9;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
  white-space: nowrap;
}

.version-table th:nth-child(1),
.version-table td:nth-child(1) {
  width: 120px;
}

.version-table th {
  position: sticky;
  top: 0;
  background: #f4f8ff;
  color: #2f446f;
  z-index: 1;
}

.version-table th {
  position: sticky;
}

.version-table th .col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  z-index: 3;
}

.version-table th .col-resizer::before {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(80, 105, 160, 0.28);
}

.version-table th:hover .col-resizer::before {
  background: rgba(55, 95, 190, 0.48);
}

body.table-col-resizing,
body.table-col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

/* Patch history tables should match nearby operation tables */
.patch-history-table {
  table-layout: auto;
}

.patch-history-table th,
.patch-history-table td {
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 12px;
  vertical-align: middle;
}

.patch-history-table th:nth-child(1),
.patch-history-table td:nth-child(1) {
  width: 150px;
}

.patch-history-table th:nth-child(2),
.patch-history-table td:nth-child(2) {
  width: 76px;
  text-align: left;
}

.patch-history-table th:nth-child(3),
.patch-history-table td:nth-child(3) {
  width: 180px;
  text-align: left;
}

/* Upload history tables: keep long identifiers on one line with horizontal scroll */
.upload-history-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.upload-history-table th,
.upload-history-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.upload-history-table th:nth-child(1),
.upload-history-table td:nth-child(1) {
  width: 190px;
}

.upload-history-table th:nth-child(2),
.upload-history-table td:nth-child(2) {
  width: 92px;
  text-align: left;
}

.upload-history-table th:nth-child(3),
.upload-history-table td:nth-child(3) {
  width: 240px;
}

.upload-history-table th:nth-child(4),
.upload-history-table td:nth-child(4) {
  width: 420px;
}

.upload-history-table th:nth-child(5),
.upload-history-table td:nth-child(5) {
  width: 120px;
}

.upload-history-table th:nth-child(6),
.upload-history-table td:nth-child(6) {
  width: 160px;
}

.upload-history-table th:nth-child(7),
.upload-history-table td:nth-child(7) {
  width: 260px;
}

.balance-history-table th:nth-child(6),
.balance-history-table td:nth-child(6) {
  width: 340px;
}

.i18n-history-table th:nth-child(5),
.i18n-history-table td:nth-child(5) {
  width: 340px;
}

.i18n-history-table th:nth-child(6),
.i18n-history-table td:nth-child(6) {
  width: 260px;
}

.console-grid .card {
  padding: 19px;
  animation: fadeUp 0.28s ease;
  background: #fff;
  border-radius: 12px;
  min-width: 0;
  align-self: start;
}

.console-grid h2 {
  font-size: 18px;
  margin-bottom: 9px;
  color: #1d2f52;
  line-height: 1.24;
  white-space: normal;
  overflow-wrap: anywhere;
}

.page-console .module-card h2,
.page-console .balance-table-card h2 {
  font-size: 18px;
  line-height: 1.24;
  margin: 0 0 9px;
  color: #1d2f52;
  letter-spacing: 0;
}

.kv {
  padding: 10px 0;
  border-top: 1px solid #e9eef8;
}

.kv:first-child {
  border-top: none;
}

.label {
  font-size: 12px;
  color: #6a7899;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.value {
  font-size: 15px;
  color: #1e2f4f;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick {
  height: 32px;
  border: 1px solid #c9d5ef;
  background: linear-gradient(180deg, #fafdff 0%, #edf3ff 100%);
  color: #264787;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  padding: 0 10px;
  white-space: nowrap;
}

.quick:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(44, 78, 149, 0.16);
}

.quick.danger {
  background: #fff1f1;
  border-color: #f0c2c2;
  color: #b13a3a;
}

.quick.danger:hover {
  background: #ffe4e4;
  border-color: #e89f9f;
  color: #9f2f2f;
}

.no-margin {
  margin: 0 0 8px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 21, 45, 0.44);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 999;
}

.overlay.hidden {
  display: none;
}

.overlay-card {
  width: min(460px, calc(100vw - 36px));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d9e2f3;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 28px 56px rgba(18, 35, 70, 0.26);
}

.overlay-card h3 {
  margin: 0 0 8px;
}

.overlay-card p {
  color: #4f5f81;
  margin: 0 0 10px;
}

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

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .console-topbar {
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 8px 12px;
    height: auto;
    min-height: 58px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .console-shell {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
    border-radius: 0;
    min-height: calc(100vh - 64px);
    height: auto;
    overflow: visible;
  }

  .console-nav {
    border-right: none;
    border-bottom: 1px solid #dce3f2;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    align-items: center;
  }

  .nav-title {
    display: none;
  }

  .nav-item {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
    padding: 8px 12px;
  }

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

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

  .console-main {
    padding: 12px;
  }

  .top-right {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .top-brand-copy strong {
    font-size: 18px;
  }

  .session-chip {
    min-width: 0;
  }

  .tool-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-row .submit {
    width: 100%;
    min-width: 0;
  }

  .drop-control-editor {
    grid-template-columns: 1fr;
  }

  .drop-control-list {
    grid-template-columns: 1fr;
  }

  .drop-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .drop-apply-btn {
    width: 100%;
    min-width: 0;
  }

  .kpi-filter-grid {
    grid-template-columns: 1fr;
  }

  .kpi-range-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-filter-actions {
    width: 100%;
  }

  .kpi-filter-actions .submit {
    width: auto;
    min-width: 0;
  }

  .kpi-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-chart {
    height: 180px;
  }
}

@media (max-width: 680px) {
  .kpi-range-wrap {
    grid-template-columns: 1fr;
  }

  .kpi-filter-actions .submit {
    width: auto;
  }

  .kpi-overview-config-panel {
    right: auto;
    left: 0;
    width: min(92vw, 420px);
  }

  .kpi-overview-config-list {
    grid-template-columns: 1fr;
  }
}

/* Console flat overrides */
.page-console .console-shell,
.page-console .card,
.page-console .console-grid .card,
.page-console .summary,
.page-console .subtab,
.page-console .nav-item,
.page-console .ghost,
.page-console .session-chip,
.page-console .table-wrap,
.page-console .quick,
.page-console .overlay-card,
.page-console .toggle-switch,
.page-console .submit,
.page-console .field input,
.page-console .field select {
  border-radius: 6px;
}

.page-console .submit,
.page-console .subtab.active,
.page-console .quick {
  background: #4b73ef;
  border-color: #4b73ef;
  color: #fff;
}

.page-console .submit.alt,
.page-console .ghost-soft,
.page-console .quick:hover {
  background: #ecf1ff;
  border-color: #d2ddfb;
  color: #2f4f9d;
}

.page-console .nav-item:hover,
.page-console .subtab:hover,
.page-console .ghost:hover,
.page-console .quick:hover,
.page-console .submit:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.page-console .card,
.page-console .console-shell,
.page-console .overlay-card {
  box-shadow: 0 2px 10px rgba(25, 36, 58, 0.06);
}

/* Balance panel lock: prevent stretched cards and awkward gaps */
.subtab-panel[data-subtab-panel="balance"] .console-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: start !important;
  grid-auto-rows: min-content !important;
}

.subtab-panel[data-subtab-panel="balance"] .card {
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
}

.subtab-panel[data-subtab-panel="balance"] .card:first-child {
  padding-bottom: 14px !important;
}

.subtab-panel[data-subtab-panel="balance"] .field {
  margin-bottom: 10px;
}

.subtab-panel[data-subtab-panel="balance"] .kv {
  padding: 7px 0 !important;
}

.subtab-panel[data-subtab-panel="balance"] .balance-table-card {
  margin-top: 12px !important;
  padding: 14px 16px !important;
}

.subtab-panel[data-subtab-panel="balance"] .balance-table-card h2 {
  font-size: 18px !important;
  margin: 0 0 8px !important;
}

.subtab-panel[data-subtab-panel="balance"] .version-table th:nth-child(1),
.subtab-panel[data-subtab-panel="balance"] .version-table td:nth-child(1) {
  width: 110px !important;
}

.subtab-panel[data-subtab-panel="balance"] .version-table th:nth-child(3),
.subtab-panel[data-subtab-panel="balance"] .version-table td:nth-child(3) {
  width: 110px !important;
  text-align: left !important;
}

.subtab-panel[data-subtab-panel="balance"] .version-table th:nth-child(4),
.subtab-panel[data-subtab-panel="balance"] .version-table td:nth-child(4) {
  width: 96px !important;
  text-align: left !important;
}

/* 2026-02-17 flat refresh: dashboard + operations */
.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.with-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: 0.9;
}

.tool-action {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #2f4f9d;
  font-weight: 700;
  padding: 6px 2px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tool-action:hover {
  color: #1f3f8a;
  border-bottom-color: #a8bbed;
}

.kpi-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kpi-overview-picker-wrap {
  position: relative;
}

.kpi-overview-picker-wrap .tool-action.active {
  color: #1f3f8a;
  border-bottom-color: #a8bbed;
}

.kpi-overview-config-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, 82vw);
  padding: 12px;
  border: 1px solid #dbe4f6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(25, 44, 88, 0.18);
  z-index: 30;
}

.kpi-overview-config-title {
  font-size: 13px;
  font-weight: 700;
  color: #2b3f6e;
  margin-bottom: 8px;
}

.kpi-overview-config-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  max-height: 300px;
  overflow: auto;
  padding: 2px 2px 6px;
}

.kpi-overview-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2d3d64;
}

.kpi-overview-check input {
  margin: 0;
}

.kpi-overview-config-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.subtab-row,
.kpi-category-tabs {
  gap: 4px 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d9e0ee;
}

.subtab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #4e5f82;
  border-radius: 0;
  padding: 8px 4px 10px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.subtab:hover {
  color: #2c4c96;
  transform: none;
  box-shadow: none;
}

.subtab.active {
  color: #2a4ea8;
  border-bottom-color: #4b73ef;
  background: transparent;
}

.page-console .subtab,
.page-console .subtab.active {
  background: transparent;
}

.kpi-filter-card {
  border-radius: 12px;
}

.kpi-cards .kpi-card {
  border-radius: 10px;
}

.page-console .summary,
.page-console .module-card {
  border-radius: 12px;
}

/* 2026-02-17 readability fix */
.page-console {
  font-size: 14px;
}

.page-console .summary h1 {
  font-size: 22px;
  line-height: 1.2;
}

.page-console .summary p,
.page-console .mini-note,
.page-console .field > span,
.page-console .kv .label,
.page-console .kpi-label {
  font-size: 13px;
}

.page-console .subtab,
.page-console .nav-item,
.page-console .tool-action,
.page-console .quick,
.page-console .field input,
.page-console .field select {
  font-size: 14px;
}

.page-console .kpi-quick-range .quick.is-pill {
  font-size: 12px;
  border-radius: 8px;
  height: 30px;
}

.page-console .kpi-value {
  font-size: 20px;
}

.page-console .subtab {
  color: #4b5d84;
}

.page-console .subtab.active {
  color: #1f3d8f !important;
  border-bottom-color: #3f67e8 !important;
  font-weight: 800;
}

.page-console .subtab.active svg {
  opacity: 1;
}

.with-icon svg {
  display: block;
  flex: 0 0 auto;
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
}

.with-icon svg path {
  fill: currentColor;
}

.page-console img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}

.hidden {
  display: none !important;
}

/* 2026-02-17 selection cleanup */
.page-console .card,
.page-console .module-card,
.page-console .summary,
.page-console .table-wrap,
.page-console .overlay-card,
.page-console .field input,
.page-console .field select,
.page-console .quick,
.page-console .submit,
.page-console .ghost,
.page-console .nav-item,
.page-console .subtab {
  border-radius: 4px !important;
  box-shadow: none !important;
}

.page-console .nav-item {
  color: #3f527b !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.page-console .nav-item.active {
  color: #21459a !important;
  background: #eaf0ff !important;
  border-color: #cddafc !important;
  box-shadow: inset 2px 0 0 #4b73ef !important;
  font-weight: 800 !important;
}

.page-console .subtab {
  color: #4a5c86 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
}

.page-console .subtab.active {
  color: #1f3e8e !important;
  background: transparent !important;
  border-bottom-color: #4b73ef !important;
  font-weight: 800 !important;
}

.page-console .quick.is-pill {
  height: 28px !important;
  padding: 0 9px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.page-console .quick.is-pill.active {
  color: #fff !important;
  background: #4b73ef !important;
  border-color: #4b73ef !important;
}

.page-console .with-icon svg {
  width: 14px !important;
  height: 14px !important;
  opacity: 1 !important;
}

/* 2026-02-17 global tab state unification */
.page-console .nav-item,
.page-console .subtab,
.page-console .kpi-quick-range .quick.is-pill,
.page-console .kpi-category-tabs .subtab {
  border-radius: 6px !important;
  box-shadow: 0 1px 0 rgba(31, 56, 104, 0.04) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #44567d !important;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease !important;
}

.page-console .nav-item:hover,
.page-console .subtab:hover,
.page-console .kpi-quick-range .quick.is-pill:hover,
.page-console .kpi-category-tabs .subtab:hover {
  background: #f0f5ff !important;
  border-color: #d8e4ff !important;
  color: #2f57a8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(47, 84, 235, 0.14) !important;
}

.page-console .nav-item.active,
.page-console .subtab.active,
.page-console .kpi-quick-range .quick.is-pill.active,
.page-console .kpi-category-tabs .subtab.active {
  background: #e9f0ff !important;
  border-color: #c9d8ff !important;
  color: #21479a !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(47, 84, 235, 0.12) !important;
}

.page-console .nav-item:active,
.page-console .subtab:active,
.page-console .kpi-quick-range .quick.is-pill:active,
.page-console .kpi-category-tabs .subtab:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(47, 84, 235, 0.16) !important;
}

.page-console button:focus-visible,
.page-console .nav-item:focus-visible,
.page-console .subtab:focus-visible,
.page-console .kpi-quick-range .quick.is-pill:focus-visible,
.page-console .kpi-category-tabs .subtab:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 2px rgba(47, 84, 235, 0.24), 0 0 0 4px rgba(47, 84, 235, 0.12) !important;
}

.page-console .subtab.active,
.page-console .kpi-category-tabs .subtab.active {
  border-bottom: 2px solid #4b73ef !important;
}

.page-console .subtab-row,
.page-console .kpi-category-tabs {
  gap: 8px !important;
  border-bottom-color: #dbe4f6 !important;
}

/* Global button hover feedback */
.page-console button {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease !important;
}

.page-console button:hover:not(:disabled):not(.nav-item):not(.subtab):not(.quick.is-pill):not(.top-brand-btn) {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 16px rgba(47, 84, 235, 0.12) !important;
}

.page-console button:active:not(:disabled) {
  transform: translateY(0) !important;
}

/* Global table rule: all console table cells are left-aligned */
.page-console .version-table th,
.page-console .version-table td {
  text-align: left !important;
}

/* Global section spacing: unify large card gaps across dashboard/operations panels */
.page-console .tab-panel.active {
  display: grid;
  gap: 16px;
}

.page-console .subtab-panel.active {
  display: grid;
  gap: 16px;
}

.page-console .tab-panel.active > .summary,
.page-console .tab-panel.active > .card,
.page-console .tab-panel.active > .subtab-row,
.page-console .tab-panel.active > .subtab-panel {
  margin: 0 !important;
}

.page-console .subtab-panel.active > .console-grid,
.page-console .subtab-panel.active > .card,
.page-console .subtab-panel.active > .balance-table-card,
.page-console .subtab-panel.active > .module-card,
.page-console .subtab-panel.active > .overview-stack {
  margin: 0 !important;
}

.page-console .overview-stack {
  gap: 16px;
}
/* Drop control modern refresh */
.page-console .drop-control-card {
  padding: 20px 20px 18px;
  border: 1px solid #d9e4fb;
  border-radius: 14px;
  background:
    radial-gradient(1200px 320px at 0% -20%, rgba(74, 117, 255, 0.1) 0%, rgba(74, 117, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 10px 24px rgba(28, 46, 88, 0.08);
}

.page-console .drop-control-card .drop-card-head {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2ebfc;
}

.page-console .drop-control-card .drop-card-head h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: #1a2d54;
  letter-spacing: -0.01em;
}

.page-console .drop-card-titleblock {
  min-width: 0;
}

.page-console .drop-card-titleblock .minor {
  color: #677a9f;
}

.page-console .drop-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.page-console .drop-change-summary {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d8e5ff;
  background: #f1f6ff;
  color: #4f6694;
  font-size: 12px;
  font-weight: 700;
}

.page-console .drop-change-summary.changed {
  border-color: #b7e7cd;
  background: #e8f9f0;
  color: #17794d;
}

.page-console .drop-control-card .drop-apply-btn {
  width: 170px;
  min-width: 170px;
  height: 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #3f69eb 0%, #5d82ff 100%);
  border: 1px solid #4c75ef;
  color: #fff;
  box-shadow: 0 8px 18px rgba(66, 106, 236, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.page-console .drop-control-card .drop-apply-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(66, 106, 236, 0.34);
  filter: saturate(1.08);
}

.page-console .drop-control-card .drop-apply-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(66, 106, 236, 0.28);
}

.page-console .drop-control-card .drop-apply-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.page-console .drop-control-list {
  gap: 12px;
}

.page-console .drop-control-item {
  position: relative;
  border: 1px solid #d5e2fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 14px;
  padding: 15px 15px 13px;
  box-shadow: 0 4px 10px rgba(34, 55, 102, 0.06);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.page-console .drop-control-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, #7092ff 0%, #86a4ff 100%);
  opacity: 0.55;
}

.page-console .drop-control-item:focus-within {
  border-color: #9db8ff;
  box-shadow: 0 0 0 2px rgba(75, 115, 239, 0.14), 0 10px 18px rgba(49, 79, 157, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  transform: translateY(-1px);
}

.page-console .drop-item-head {
  align-items: flex-start;
  margin-bottom: 11px;
}

.page-console .drop-item-title {
  color: #4e648f;
}

.page-console .drop-current {
  color: #7387ad;
}

.page-console .drop-current-value {
  display: inline-block;
  margin-left: 3px;
  font-size: 18px;
  font-weight: 700;
  color: #16294e;
  letter-spacing: -0.01em;
}

.page-console .drop-control-editor {
  gap: 7px;
}

.page-console .drop-value-input {
  border: 1px solid #c7d6f5;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.page-console .drop-value-input:hover {
  border-color: #aac4ff;
  background: #f4f8ff;
}

.page-console .drop-value-input:focus {
  border-color: #84a2ff;
  box-shadow: 0 0 0 2px rgba(75, 115, 239, 0.15);
}

.page-console .drop-number-wrap > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #cedafb;
  background: #f4f7ff;
  color: #5870a2;
  font-size: 12px;
  font-weight: 800;
}

.page-console .drop-change {
  margin-top: 7px;
  color: #6e82a9;
  font-size: 12px;
  font-weight: 700;
}

.page-console .drop-change.is-changed {
  color: #0f8750;
}

/* Drop history table: remove generic action/target style and show per-field changes */
.page-console .drop-history-table th,
.page-console .drop-history-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.page-console .drop-history-table th:nth-child(1),
.page-console .drop-history-table td:nth-child(1) {
  width: 180px;
}

.page-console .drop-history-table th:nth-child(2),
.page-console .drop-history-table td:nth-child(2) {
  width: 220px;
}

.page-console .drop-history-table th:nth-child(3),
.page-console .drop-history-table td:nth-child(3),
.page-console .drop-history-table th:nth-child(4),
.page-console .drop-history-table td:nth-child(4),
.page-console .drop-history-table th:nth-child(5),
.page-console .drop-history-table td:nth-child(5),
.page-console .drop-history-table th:nth-child(6),
.page-console .drop-history-table td:nth-child(6) {
  width: 160px;
}

.page-console .drop-history-table th:nth-child(7),
.page-console .drop-history-table td:nth-child(7) {
  width: 240px;
}

/* Keep history/mapping tables typography consistent with console UI */
.page-console .patch-history-table .mono,
.page-console .upload-history-table .mono,
.page-console .settings-mapping-table .mono,
.page-console .drop-control-card .mono {
  font-family: inherit;
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0;
}

@media (max-width: 960px) {
  .page-console .drop-control-card .drop-card-head {
    gap: 12px;
  }

  .page-console .drop-control-card .drop-apply-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Mobile overflow guard: keep horizontal scroll inside widgets, never at page root */
html,
body,
.page-console {
  max-width: 100%;
  overflow-x: hidden;
}

.page-console .console-topbar,
.page-console .console-shell,
.page-console .console-main,
.page-console .tab-panel,
.page-console .tab-panel.active,
.page-console .subtab-panel,
.page-console .subtab-panel.active,
.page-console .summary,
.page-console .card,
.page-console .module-card,
.page-console .kpi-filter-card,
.page-console .kpi-filter-grid,
.page-console .kpi-cards,
.page-console .overview-stack,
.page-console .table-wrap,
.page-console .kpi-chart-scroll {
  max-width: 100%;
  min-width: 0;
}

.page-console .table-wrap {
  overflow-x: auto;
  overflow-y: auto;
}

.page-console .kpi-chart-scroll {
  overflow-x: auto;
  overflow-y: visible;
}

.page-console .version-table,
.page-console .resizable-table {
  max-width: none;
}

@media (max-width: 980px) {
  .page-console .kpi-filter-head,
  .page-console .kpi-filter-actions {
    min-width: 0;
    flex-wrap: wrap;
  }

  .page-console .top-left,
  .page-console .top-right,
  .page-console .top-brand-copy {
    min-width: 0;
  }

  .page-console .session-chip,
  .page-console #topUser {
    max-width: 100%;
  }
}

/* KPI overview-config placement/stack/size overrides */
.page-console #kpiCategoryTabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 400;
  overflow: visible;
}

.page-console .kpi-category-actions {
  margin-left: auto;
  position: relative;
  z-index: 120;
}

.page-console .kpi-category-actions .tool-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px !important;
  border: 1px solid #d3def8 !important;
  background: #f5f8ff !important;
}

.page-console .kpi-category-actions .tool-action:hover {
  border-color: #b9cbfb !important;
  background: #ecf2ff !important;
}

.page-console #kpiOverviewConfigPanel {
  z-index: 2147483647 !important;
}

.page-console .kpi-overview-config-foot .quick.is-pill,
.page-console .kpi-overview-config-foot .submit {
  height: 34px !important;
  min-width: 104px;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 34px;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .page-console .kpi-category-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* Settings tab tidy */
.page-console .settings-mapping-card {
  padding: 18px 18px 16px;
  border: 1px solid #dbe4f6;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.page-console .settings-mapping-card h2 {
  margin-bottom: 6px;
}

.page-console .settings-mapping-card .minor {
  color: #667aa1;
}

.page-console .settings-top-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 10px;
  margin-bottom: 12px;
}

.page-console .settings-search-field {
  margin: 0;
}

.page-console .settings-search-input {
  min-height: 36px;
  height: 36px;
}

.page-console .settings-action-buttons {
  gap: 8px;
  align-items: center;
}

.page-console .settings-action-buttons .tool-action {
  height: 34px;
  border-radius: 6px !important;
}

.page-console .settings-upload-row {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.page-console .settings-upload-row .submit {
  min-width: 132px;
  height: 36px;
  border-radius: 9px;
}

.page-console .settings-upload-row .quick {
  min-width: 108px;
  height: 36px;
  border-radius: 9px;
}

.page-console .settings-upload-row .minor.mono {
  min-height: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d9e3f6;
  border-radius: 9px;
  background: #f9fbff;
  color: #5f7399;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.2;
}

.page-console .settings-file-name {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1280px) {
  .page-console .settings-upload-row {
    grid-template-columns: 1fr 1fr;
  }

  .page-console .settings-upload-row .settings-file-name {
    grid-column: 1 / -1;
  }
}

.page-console .settings-manual-row {
  margin-top: 0;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.page-console .settings-manual-row input[type="text"] {
  min-height: 36px;
  height: 36px;
  border: 1px solid #cfdbf3;
  border-radius: 9px;
  padding: 0 10px;
  background: #fff;
  color: #1f2f4d;
}

.page-console .settings-manual-row .submit {
  min-width: 132px;
  height: 36px;
  border-radius: 9px;
}

.page-console .settings-mapping-table th,
.page-console .settings-mapping-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-console .settings-mapping-table th:nth-child(1),
.page-console .settings-mapping-table td:nth-child(1) {
  min-width: 240px;
}

.page-console .settings-mapping-table th:nth-child(2),
.page-console .settings-mapping-table td:nth-child(2) {
  min-width: 220px;
}

.page-console .settings-mapping-table th:nth-child(3),
.page-console .settings-mapping-table td:nth-child(3) {
  min-width: 110px;
  width: 110px;
}

.page-console [data-tab-panel="settings"] .settings-mapping-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.page-console [data-tab-panel="settings"] .table-wrap {
  min-height: 0;
}

.page-console .settings-mapping-table td:nth-child(1),
.page-console .settings-mapping-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-console .settings-mapping-table td:nth-child(1) {
  max-width: 0;
}

.page-console .settings-mapping-table td:nth-child(2) {
  max-width: 0;
}

.page-console .settings-mapping-table td:nth-child(1) .mono,
.page-console .settings-mapping-table td:nth-child(2) .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-console .settings-dialog-card {
  width: min(560px, calc(100vw - 28px));
  max-width: 560px;
  border-radius: 8px !important;
  padding: 16px 18px 14px;
}

.page-console .settings-dialog-body {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.page-console .settings-dialog-upload-row {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #dbe4f6;
  border-radius: 8px;
  background: #f8fbff;
}

.page-console .settings-dialog-upload-row .tool-action {
  padding: 4px 2px;
}

.page-console .settings-dialog-upload-row .quick {
  height: 32px;
  min-width: 108px;
  border-radius: 6px !important;
}

.page-console .settings-dialog-file-name {
  min-height: 32px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dbe4f6;
  border-radius: 8px;
  background: #ffffff;
}

.page-console .settings-dialog-actions {
  margin-top: 16px;
  gap: 8px;
}

.page-console .settings-dialog-actions .quick,
.page-console .settings-dialog-actions .submit {
  min-width: 92px;
  height: 34px;
  border-radius: 6px !important;
}

/* Drop UI hard harmonization: force same style only inside drop subtab */
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-item,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card .drop-value-input,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card .drop-apply-btn,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-history-table,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-history-table th,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-history-table td {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card {
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  border: 1px solid #dbe4f6 !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-item {
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  border: 1px solid #dbe4f6 !important;
  padding: 12px !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-item::before {
  display: none !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card .drop-value-input {
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: #fff !important;
  border: 1px solid #ced8f0 !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card .drop-item-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  color: #4e648f !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card .drop-current,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card .drop-change,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-history-table th,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-history-table td {
  font-size: 13px !important;
  letter-spacing: 0 !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card .drop-current-value {
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  color: #1a2d54 !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-card .drop-apply-btn {
  border-radius: 8px !important;
  height: 38px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-history-table th,
.page-console .subtab-panel[data-subtab-panel="drop"] .drop-history-table td {
  text-align: left !important;
  font-weight: 400 !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-history-table th {
  font-weight: 700 !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-number-wrap {
  grid-template-columns: minmax(0, 1fr) !important;
}

.page-console .subtab-panel[data-subtab-panel="drop"] .drop-number-wrap > span {
  display: none !important;
}

@media (max-width: 1400px) {
  .page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .page-console .subtab-panel[data-subtab-panel="drop"] .drop-control-list {
    grid-template-columns: 1fr !important;
  }
}

.page-console .settings-pager {
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}

/* KPI > 현금 상품 판매 현황: 기본 세로 영역 확대(기본 table-wrap 340px 대비 약 4배) */
.page-console .kpi-cash-sales-card .table-wrap {
  max-height: 1360px;
}

/* Keep console numeric typography consistent (avoid sudden alternate number glyphs). */
.page-console .mono {
  font-family: inherit !important;
  font-variant-numeric: normal !important;
  font-feature-settings: normal !important;
  letter-spacing: 0 !important;
}

/* Temporary typography test: force Pretendard across console UI (easy rollback). */
.page-console,
.page-console button,
.page-console input,
.page-console select,
.page-console textarea,
.page-console .nav-item,
.page-console .subtab,
.page-console .kpi-value,
.page-console .version-table,
.page-console .resizable-table,
.page-console .card,
.page-console .summary,
.page-console .module-card {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif !important;
}

@media (max-width: 980px) {
  .page-console [data-tab-panel="settings"] .subtab-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-console [data-tab-panel="settings"] .subtab-row .subtab {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    justify-content: center;
  }

  .page-console .settings-mapping-card {
    padding: 14px 12px 12px;
  }

  .page-console .settings-upload-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .page-console .settings-top-row {
    grid-template-columns: 1fr;
  }

  .page-console .settings-action-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-console .settings-upload-row .minor.mono,
  .page-console .settings-upload-row .quick,
  .page-console .settings-upload-row .submit {
    width: 100%;
    min-width: 0;
  }

  .page-console .settings-upload-row .settings-file-name {
    height: 40px;
    min-height: 40px;
    margin: 0;
  }

  .page-console .settings-manual-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .page-console .settings-manual-row .submit {
    width: 100%;
    min-width: 0;
  }

  .page-console .settings-mapping-table th:nth-child(1),
  .page-console .settings-mapping-table td:nth-child(1),
  .page-console .settings-mapping-table th:nth-child(2),
  .page-console .settings-mapping-table td:nth-child(2) {
    min-width: 220px;
  }

  .page-console .settings-mapping-table th:nth-child(3),
  .page-console .settings-mapping-table td:nth-child(3) {
    min-width: 108px;
    width: 108px;
  }

  .page-console [data-tab-panel="settings"] .table-wrap {
    min-height: 960px;
  }
}
