:root {
  color: var(--text);
  background: var(--bg);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }

/* login — 다크모드여도 로그인 색상 고정 */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b, #2563eb);
  padding: 24px;
}
.login-box {
  --login-surface: #ffffff;
  --login-surface-2: #f8fafc;
  --login-text: #0f172a;
  --login-muted: #64748b;
  --login-border: #e2e8f0;
  --login-primary: #2563eb;
  --login-primary-dark: #1d4ed8;
  --login-on-primary: #ffffff;
  --login-danger: #dc2626;

  width: 400px;
  max-width: 100%;
  background: var(--login-surface) !important;
  color: var(--login-text) !important;
  border-radius: 14px;
  padding: 32px 36px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.login-box .login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 22px;
}
.login-box .login-brand .billcare-logo {
  margin: 0 auto;
}
.login-box .login-brand .billcare-logo-mark {
  height: 64px;
  width: auto;
}
.login-box .login-brand .billcare-logo-title {
  font-size: 28px;
  color: var(--login-text) !important;
}
.login-box .login-brand p {
  color: var(--login-muted) !important;
  margin: 12px 0 0;
  font-size: 14px;
}
.login-box .field { margin-bottom: 14px; }
.login-box .field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--login-muted) !important;
}
.login-box .field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--login-border) !important;
  background: var(--login-surface-2) !important;
  color: var(--login-text) !important;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.login-box .field input:focus {
  border-color: var(--login-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}
.login-error {
  color: var(--login-danger) !important;
  font-size: 12px;
  margin-top: 4px;
}
.login-submit {
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  background: var(--login-primary) !important;
  color: var(--login-on-primary) !important;
  transition: background 0.15s;
}
.login-submit:hover:not(:disabled) { background: var(--login-primary-dark) !important; }
.login-submit:disabled { opacity: 0.7; cursor: default; }
.login-demo {
  margin-top: 16px;
  text-align: center;
  color: var(--login-muted) !important;
  font-size: 12px;
}

.billcare-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  background: transparent !important;
}
.billcare-logo--login {
  flex-direction: column;
  gap: 10px;
}
.billcare-logo--header.billcare-logo--dark,
.billcare-logo--header.billcare-logo--blue {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
img.billcare-logo,
.billcare-logo img,
.billcare-logo-mark {
  display: block;
  background: transparent !important;
  object-fit: contain;
}
img.billcare-logo--header {
  height: 28px;
  width: auto;
  max-width: min(150px, 100%);
  object-position: center;
}
.billcare-logo--header .billcare-logo-mark {
  height: 30px;
  width: auto;
}
.billcare-logo--login .billcare-logo-mark {
  height: 64px;
  width: auto;
}
.billcare-logo-title {
  font-family: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.4px;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}
.billcare-logo--header .billcare-logo-title {
  font-size: 19px;
  transform: translateY(2px);
}
.billcare-logo--login .billcare-logo-title {
  font-size: 28px;
}
.billcare-logo--blue .billcare-logo-title {
  color: #e8f4ff;
}
.brand-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0 8px;
}
.brand-inline .billcare-logo {
  max-width: 100%;
  justify-content: center;
  align-items: center;
}

.admin-layout { min-height: 100vh; }
.side { background: var(--surface-3) !important; }
.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  padding: 20px 18px 12px;
}
.brand span { color: var(--primary); }
.header {
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
.header-right-tools { display: flex; align-items: center; gap: 4px; }
.header-icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 4px;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.header-icon-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }

/* 상단 계정 프로필 팝오버 (원본 홈즈 스타일) */
.account-popover-overlay.ant-popover .ant-popover-inner {
  padding: 0;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}
.account-popover-overlay.ant-popover .ant-popover-inner-content {
  padding: 0;
}
.account-popover {
  width: 220px;
  background: var(--surface, #fff);
  color: var(--text);
}
.account-popover-head {
  margin: 12px 12px 0;
  padding: 14px 10px 12px;
  border-radius: 4px;
  background: var(--surface-2, #f3f4f6);
  text-align: center;
}
.account-popover-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #1f2937);
  line-height: 1.3;
}
.account-popover-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted, #8b95a1);
}
.account-popover-meta {
  padding: 14px 18px 10px;
}
.account-popover-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
}
.account-popover-label {
  color: var(--primary);
  font-weight: 600;
  min-width: 2.5em;
}
.account-popover-value {
  color: var(--muted, #8b95a1);
}
.account-popover-expire {
  margin: 0 14px;
  padding: 14px 8px 12px;
  border-top: 1px solid var(--border, #e5e7eb);
  text-align: center;
}
.account-popover-expire-title {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.account-popover-expire-date {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1f2937);
  line-height: 1.35;
}
.account-popover-expire-remain {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted, #9aa3ad);
}
.account-popover-actions {
  margin: 0 14px 8px;
  padding: 8px 0 6px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.account-popover-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 9px 6px;
  cursor: pointer;
  color: var(--muted, #7b8794);
  font-size: 13px;
  text-align: left;
  border-radius: 4px;
}
.account-popover-action .anticon {
  color: var(--primary);
  font-size: 15px;
}
.account-popover-action:hover {
  background: var(--surface-2, #f5f6f8);
  color: var(--text);
}

.content { padding: 20px; }
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.filter-card { margin-bottom: 12px; }
.dashboard-row { margin-top: 16px; }

.agent-header-tools { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 13px; }
.agent-header-tools strong { color: var(--text); font-size: 15px; }
.header-divider { height: 18px; border-left: 1px solid var(--border); }
.sms-remain { margin-left: 8px; color: var(--muted); }
.sms-remain b { color: var(--primary); }
.sms-history-actions { padding: 12px 4px 4px; }
.sms-history-actions .ant-btn { min-width: 72px; }
.sms-send-form { padding-top: 4px; }
.sms-send-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; margin-bottom: 14px; align-items: start; }
.sms-send-label { padding-top: 6px; color: #334155; font-weight: 500; white-space: nowrap; }
.sms-send-field { min-width: 0; }
.sms-send-balance { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.sms-send-balance b { color: #1677ff; font-size: 15px; }
.sms-phone-box {
  margin-top: 8px;
  min-height: 110px;
  border: 1px solid #d9dee5;
  border-radius: 4px;
  background: #fafbfc;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}
.sms-phone-box.is-empty {
  color: #94a3b8;
  align-items: center;
  justify-content: center;
}
.sms-phone-chip {
  border: 1px solid #c9d4e0;
  background: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}
.sms-phone-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}
.sms-content-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}
.sms-send-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
}
.sms-send-footer .ant-btn-primary { min-width: 96px; }
.sms-send-footer .ant-btn-default { min-width: 72px; background: #f5f6f8; border-color: #d9dee5; color: #4b5563; }
.w-180 { width: 180px; }
.sms-address-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(420px, 1.5fr);
  gap: 12px;
}
.sms-address-actions {
  display: flex;
  gap: 8px;
  padding: 12px 4px 4px;
}
.sms-address-actions .ant-btn { min-width: 72px; }
.sms-group-active { color: #1677ff; font-weight: 600; }
.sms-group-row-active > td { background: #f0f7ff !important; }
.sms-contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
}
.sms-contact-footer-right { display: flex; gap: 8px; margin-left: auto; }
.sms-contact-footer-right .ant-btn-primary { min-width: 96px; }
.sms-contact-footer-right .ant-btn-default { min-width: 72px; background: #f5f6f8; border-color: #d9dee5; color: #4b5563; }
@media (max-width: 1100px) {
  .sms-address-grid { grid-template-columns: 1fr; }
}
.staff-out-tags { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.staff-out-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.staff-assign-tag {
  margin: 0 !important;
  padding: 0 6px !important;
  line-height: 18px !important;
  background: #8c8c8c !important;
  border-color: #8c8c8c !important;
  color: #fff !important;
  font-size: 11px !important;
}
.staff-manage-btn {
  width: 28px;
  height: 28px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stock-page { min-width: 0; }
.stock-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 2px 0 16px; }
.stock-title h2 { margin: 0 0 4px; color: #1d3554; font-size: 22px; }
.stock-title p { margin: 0; color: #7b8796; font-size: 13px; }
.stock-title-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  max-width: min(100%, 560px);
}
.stock-title-actions .sheet-notice { white-space: nowrap; }
.stock-filter-card { margin-bottom: 12px; border-color: #dfe5ec; }
.stock-filter-card .ant-card-body { padding: 12px 14px; }
.stock-filter-row { display: flex; align-items: center; gap: 6px; min-height: 39px; flex-wrap: wrap; }
.stock-filter-row .ant-form-item { margin: 3px 0; }
.stock-filter-row .ant-btn { font-size: 12px; }
/* 검색조건 2줄 강제 분리 제거 — 한 줄로 이어지고 공간 부족 시에만 줄바꿈 */
.stock-filter-card .ant-form.ant-form-inline,
.balance-filter,
.home-filter,
.indoc-filter,
.return-filter,
.home-indoc-filter,
.exchange-filter,
.name-change-filter,
.withdraw-filter,
.settle-history-filter,
.delete-history-filter,
.bbs-notice-filter,
.settle-scan-filter {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  row-gap: 6px;
}
.stock-filter-card .ant-form.ant-form-inline > .stock-filter-row,
.balance-filter > .stock-filter-row,
.home-filter > .stock-filter-row,
.indoc-filter > .stock-filter-row,
.return-filter > .stock-filter-row,
.home-indoc-filter > .stock-filter-row,
.exchange-filter > .stock-filter-row,
.name-change-filter > .stock-filter-row,
.withdraw-filter > .stock-filter-row,
.settle-history-filter > .stock-filter-row,
.delete-history-filter > .stock-filter-row,
.bbs-notice-filter > .stock-filter-row,
.settle-scan-filter > .stock-filter-row {
  display: contents;
}
.w-100 { width: 100px; }.w-110 { width: 110px; }.w-120 { width: 120px; }.w-130 { width: 130px; }.w-150 { width: 150px; }.w-170 { width: 170px; }.w-230 { width: 230px; }
.stock-table-card { border-color: #dfe5ec; }
.stock-table-card .ant-card-body { padding: 0 12px 12px; }
.stock-table-actions { display: flex; justify-content: space-between; align-items: center; }
.stock-table-actions .ant-tabs { margin-bottom: 0; }
.stock-table-card .ant-table { font-size: 12px; }
.stock-table-card .ant-table-thead > tr > th { white-space: nowrap; color: #536273; background: #f6f8fa; padding: 9px 7px; }
.stock-table-card .ant-table-tbody > tr > td { padding: 8px 7px; white-space: nowrap; }

/* 목록 공통 정렬: 헤더·일반 텍스트 중앙, 숫자/금액 우측 */
.ant-table-thead > tr > th {
  text-align: center !important;
}
.ant-table-tbody > tr > td {
  text-align: center !important;
}
.ant-table-tbody > tr > td.table-col-num {
  text-align: right !important;
}
.stock-status { display: inline-block; min-width: 38px; text-align: center; font-size: 11px; font-weight: 700; }
.st-in { color: #1b9a59; }.st-out { color: #1769c2; }.st-return { color: #b06d10; }.st-loss { color: #d14343; }.st-open { color: #8758be; }.st-sell { color: #c65d92; }.st-recovery { color: #0f766e; }
.elapsed-pill { display: inline-block; padding: 1px 6px; border-radius: 10px; color: #6d7783; background: #edf0f3; font-size: 11px; }
.memo-icon { color: #6b9ed2; font-size: 15px; }
.stock-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.stock-modal-grid .span-two { grid-column: span 2; }

/* 단말기/유심 입고 팝업 (원본 2열 레이아웃) */
.stock-inbound-modal .ant-modal-body { padding-top: 12px !important; }
.stock-inbound-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  min-height: 460px;
}
.stock-inbound-left {
  border-right: 1px solid var(--border);
  padding-right: 14px;
}
.stock-inbound-mode { margin-bottom: 8px; }
.stock-inbound-tip {
  margin: -4px 0 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.stock-inbound-extra {
  display: block;
  margin-top: 4px;
  color: var(--danger);
  font-size: 12px;
}
.stock-inbound-left-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-left: 100px;
}
.stock-inbound-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stock-inbound-right .ant-table-wrapper { flex: 1; }
.stock-inbound-right-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  color: var(--text);
}
.stock-inbound-right-tools b { color: var(--primary); margin-left: 4px; }
.stock-inbound-del {
  background: color-mix(in srgb, var(--muted) 45%, var(--surface-2)) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html.theme-light .stock-inbound-del {
  background: #8c8c8c !important;
  border-color: #8c8c8c !important;
  color: #fff !important;
}
.stock-inbound-right-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 12px;
}
.stock-inbound-note {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .stock-inbound-body { grid-template-columns: 1fr; }
  .stock-inbound-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 14px;
  }
  .stock-inbound-left-actions { padding-left: 0; }
}

/* 재고 정보 팝업 */
.stock-info-modal .ant-modal-body { padding-top: 12px; }
.stock-info-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-right: 0;
}
.stock-info-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}
.stock-info-actions .ant-btn { color: #334155; }
.stock-info-loading { display: grid; place-items: center; min-height: 280px; }
.stock-info-body {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  min-height: 420px;
}
.stock-info-left h4,
.stock-info-panel h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.stock-info-list { border-top: 1px solid #eef1f5; }
.stock-info-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid #eef1f5;
  font-size: 13px;
}
.stock-info-label { color: #64748b; }
.stock-info-value { color: #0f172a; word-break: break-all; min-height: 1.2em; }
.stock-info-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stock-info-panel {
  border: 1px solid #eef1f5;
  border-radius: 4px;
  padding: 12px 14px;
  background: #fff;
  min-height: 160px;
}
.stock-info-panel.memo { flex: 1; display: flex; flex-direction: column; }
.stock-info-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.stock-info-panel-head h4 { margin: 0; }
.stock-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}
.stock-history-list li {
  display: grid;
  grid-template-columns: 92px 52px 1fr 64px;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #334155;
}
.stock-history-list li:last-child { border-bottom: none; }
.stock-history-list .date { color: #64748b; }
.stock-history-list .state { font-weight: 600; }
.stock-history-list .company { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-history-list .user { text-align: right; color: #64748b; }
.stock-history-list .empty,
.stock-memo-empty {
  color: #94a3b8;
  text-align: center;
  padding: 36px 8px;
  font-size: 13px;
}
.stock-memo-empty { flex: 1; display: grid; place-items: center; }
.stock-memo-list { list-style: none; margin: 0; padding: 0; }
.stock-memo-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.stock-memo-list .body { font-size: 13px; color: #0f172a; white-space: pre-wrap; }
.stock-memo-list .foot {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}
@media (max-width: 900px) {
  .stock-info-body { grid-template-columns: 1fr; }
  .stock-info-titlebar { flex-direction: column; align-items: flex-start; }
}
.full-width { width: 100%; }

.recovery-filter { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; }
.recovery-filter .ant-form-item { margin: 4px 8px 4px 0; }
.recovery-size { margin-left: auto !important; }
.recovery-table-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 6px; }
.recovery-table-head b { color: #1677ff; margin-left: 4px; }
.recovery-actions { display: flex; gap: 8px; padding: 12px 4px 4px; flex-wrap: wrap; }
.recovery-actions .ant-btn { min-width: 72px; background: #f5f6f8; border-color: #d9dee5; color: #4b5563; }

.sheet-notice { font-size: 12px; white-space: nowrap; margin-top: 8px; }
.sheet-filter { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.sheet-filter .ant-form-item { margin: 4px 8px 4px 0; }
.sheet-presets .ant-btn { font-size: 12px; background: #f5f6f8; border-color: #d9dee5; color: #4b5563; }
.sheet-clear { margin-right: 8px; background: #f5f6f8; border-color: #d9dee5; color: #6b7280; }
.sheet-size { margin-left: auto !important; }
.sheet-result-card .ant-card-body { min-height: 360px; }
.sheet-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  color: #8b95a1;
  font-size: 14px;
}

.abook-filter { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.abook-filter .ant-form-item { margin: 4px 8px 4px 0; }
.abook-grid { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.4fr); gap: 12px; }
.abook-company-link { padding: 0; height: auto; }
.abook-actions { padding: 12px 4px 4px; }
.abook-actions .ant-btn { min-width: 72px; }
.abook-actions .farebox-gray-btn:disabled {
  opacity: 0.55;
}
.abook-filter-chip { margin: -4px 0 10px; font-size: 12px; color: #64748b; }

.abook-create-modal .ant-modal-body { padding-top: 12px; }
.abook-create-form .ant-form-item { margin-bottom: 14px; }
.abook-create-form .ant-form-item-label > label { color: #334155; font-weight: 500; }
.abook-req,
.form-req {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 2px;
  background: #ef4444;
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  vertical-align: middle;
  white-space: nowrap;
}
/* custom requiredMark('필수') 사용 시 기본 * 숨김 */
.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
  display: none !important;
  content: none !important;
}
.abook-create-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; padding-top: 8px; }
.abook-create-footer .ant-btn-primary { min-width: 96px; }
.abook-create-footer .ant-btn-default { min-width: 72px; background: #f5f6f8; border-color: #d9dee5; color: #4b5563; }

.have-own-filter { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.have-own-filter .ant-form-item { margin: 4px 8px 4px 0; }
.have-own-excel { margin-left: auto !important; }
.have-own-caption { display: flex; justify-content: flex-start; align-items: center; padding: 10px 4px 8px; }
.have-own-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: var(--surface-2); color: var(--text); }
.have-own-page .ant-table-cell { font-size: 12px; }
.have-own-page .have-own-total-col,
.have-own-page .have-own-total-cell {
  background: var(--highlight-bg) !important;
  color: var(--highlight-text) !important;
}
.have-own-page .ant-table-thead > tr > th.have-own-total-col {
  background: var(--highlight-bg-strong) !important;
  color: var(--highlight-text) !important;
}
.have-model-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: var(--surface-2); color: var(--text); }
.have-model-page .have-model-total-col,
.have-model-page .have-model-total-cell {
  font-weight: 700;
  background: var(--highlight-bg) !important;
  color: var(--highlight-text) !important;
}
.have-model-page .ant-table-thead > tr > th.have-model-total-col {
  background: var(--highlight-bg-strong) !important;
}
.have-model-page .ant-table-thead > tr > th.ant-table-cell-ellipsis { white-space: nowrap; }

.turnover-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 16px;
}
.turnover-title-center { display: flex; justify-content: center; padding-top: 4px; }
.turnover-mode .ant-btn { height: 40px; padding: 0 18px; font-weight: 600; }
.turnover-mode .ant-btn-default {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.turnover-mode-active {
  background: var(--elevated) !important;
  border-color: var(--primary) !important;
  color: var(--text) !important;
}
html.theme-light .turnover-mode-active {
  background: #4b5563 !important;
  border-color: #4b5563 !important;
  color: #fff !important;
}
html.theme-light .turnover-mode .ant-btn-default {
  background: #fff !important;
  border-color: #d9dee5 !important;
  color: #374151 !important;
}
.turnover-note { font-size: 12px; white-space: nowrap; padding-top: 8px; }
.turnover-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.turnover-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: #eef1f5; }
.turnover-page .ant-table-cell { font-size: 12px; }
.turnover-page .turnover-open-value { color: #1677ff; font-weight: 600; }

.report-day-filter { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.report-day-filter .ant-form-item { margin: 4px 0; }
.report-day-page .ant-table-thead > tr > th { text-align: center; background: #f6f8fa; }

.indoc-filter { width: 100%; }
.indoc-page .sheet-result-card .ant-card-body { min-height: 360px; }

.return-filter { width: 100%; }
.return-table-actions { align-items: flex-start; }
.return-table-actions .ant-space { padding-top: 8px; }
.return-status-pending { color: #e11d48; font-weight: 600; }
.return-status-done { color: #334155; }

.balance-filter { width: 100%; }
.balance-deduct { color: #e11d48; font-weight: 600; }
.balance-amount-deduct { color: #e11d48; font-weight: 600; }
.balance-amount { color: #334155; }
.balance-amount-input { width: 100%; }
.balance-amount-input .ant-input-number { flex: 1; }
.balance-sign-minus { color: #e11d48 !important; font-weight: 700; }
.balance-modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 8px; }
.subject-settings-add { margin-bottom: 12px; }
.subject-settings-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border, #334155);
  border-radius: 8px;
  background: var(--panel-2, rgba(15, 23, 42, 0.35));
}
.subject-settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border, #334155);
}
.subject-settings-item:last-child { border-bottom: none; }
.subject-settings-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subject-settings-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted, #94a3b8);
  font-size: 13px;
}
.balance-edit-form .ant-form-item { margin-bottom: 14px; }
.balance-edit-form .ant-radio-group { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.contract-balance-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.balance-register-btn,
.balance-submit-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.balance-register-btn:hover,
.balance-submit-btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.stock-table-footer { display: flex; align-items: center; gap: 8px; padding: 12px 4px 4px; }

/* 정산서발행 */
.invoice-publish-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.invoice-month-card .ant-card-body { padding: 10px 16px; }
.invoice-month-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 36px;
}
.invoice-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}
.invoice-month-nav button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  padding: 4px 8px;
  font-size: 14px;
}
.invoice-month-nav button:hover { color: var(--primary); }
.invoice-month-bar .ant-btn-link {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.invoice-notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 4px 4px;
  font-size: 12px;
}
.invoice-mismatch { color: #e11d48 !important; font-weight: 600; }
.invoice-row-mismatch td { color: #e11d48; }
.invoice-issue-link { color: var(--primary) !important; font-weight: 600; padding: 0; }
.invoice-issued-link { color: #1677ff !important; padding: 0; }

/* 나의정산서 */
.invoice-my-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.invoice-excel-link {
  color: #16a34a !important;
  font-size: 16px;
  padding: 0;
}

.product-log-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.pending-log-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}

/* 약속 캘린더 */
.pending-calendar-page .product-title-icon {
  margin-right: 8px;
  color: var(--muted);
  font-size: 22px;
  vertical-align: -2px;
}
.pending-calendar-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
.pending-calendar-card .ant-card-body { padding: 14px 16px 18px; }
.pending-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pending-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.pending-calendar-nav button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
}
.pending-calendar-nav button:hover { color: var(--primary); }
.pending-calendar-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pending-calendar-grid {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
.pending-calendar-weekhead {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.pending-calendar-weekday {
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pending-calendar-weekday.sun { color: var(--danger); }
.pending-calendar-weekday.sat { color: #0ea5e9; }
html.theme-dark .pending-calendar-weekday.sat,
html.theme-blue .pending-calendar-weekday.sat { color: #7dcfff; }
.pending-calendar-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(110px, 1fr);
}
.pending-calendar-cell {
  min-height: 110px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 8px;
  background: var(--surface);
}
.pending-calendar-cell-clickable {
  cursor: pointer;
  transition: background 0.15s ease;
}
.pending-calendar-cell-clickable:hover {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}
.pending-calendar-cell-clickable.is-today:hover {
  background: color-mix(in srgb, var(--primary) 14%, var(--highlight-bg));
}
.pending-calendar-cell:nth-child(7n) { border-right: 0; }
.pending-calendar-cell.out-month {
  background: color-mix(in srgb, var(--surface-2) 88%, var(--bg));
}
.pending-calendar-cell.out-month .pending-calendar-date { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.pending-calendar-cell.is-today {
  background: var(--highlight-bg);
}
.pending-calendar-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.pending-calendar-date.sun { color: var(--danger); }
.pending-calendar-date.sat { color: #0ea5e9; }
html.theme-dark .pending-calendar-date.sat,
html.theme-blue .pending-calendar-date.sat { color: #7dcfff; }
.pending-calendar-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pending-calendar-event {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-radius: 2px;
  padding: 0 2px;
}
.pending-calendar-event:hover {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}
.pending-calendar-event.status-완료 { color: var(--muted); }
.pending-calendar-event.status-보류 { color: #d97706; }
html.theme-dark .pending-calendar-event.status-보류,
html.theme-blue .pending-calendar-event.status-보류 { color: #e0af68; }
.pending-calendar-event.status-취소 { color: var(--muted); text-decoration: line-through; opacity: 0.75; }
.pending-calendar-more {
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .pending-calendar-body { grid-auto-rows: minmax(88px, 1fr); }
  .pending-calendar-cell { min-height: 88px; padding: 4px 6px; }
}

/* 일정관리 */
.pending-manage-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.pending-register-btn,
.pending-submit-btn,
.pending-manage-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.pending-register-btn:hover,
.pending-submit-btn:hover,
.pending-manage-btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.pending-status-open { color: #e11d48; font-weight: 600; }
.pending-modal .ant-form-item { margin-bottom: 14px; }

/* 예약관리 */
.booking-manage-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
  display: inline-flex;
  align-items: center;
}
.booking-register-btn,
.booking-submit-btn,
.booking-manage-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.booking-register-btn:hover,
.booking-submit-btn:hover,
.booking-manage-btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.booking-status-open { color: #e11d48; font-weight: 600; }
.booking-modal .ant-form-item { margin-bottom: 14px; }
.booking-address-row {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
}
.booking-zip { width: 100px !important; flex-shrink: 0; }
.booking-addr { flex: 1; }
.booking-addr-detail { width: 100%; }
.booking-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.booking-file-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #e11d48;
}
.booking-file-name {
  margin-top: 4px;
  font-size: 12px;
  color: #475569;
}
.booking-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.booking-modal-note {
  font-size: 12px;
  color: #e11d48;
  flex: 1;
}

/* 고객관리 */
.customer-manage-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.customer-register-btn,
.customer-submit-btn,
.customer-manage-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.customer-register-btn:hover,
.customer-submit-btn:hover,
.customer-manage-btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.customer-modal .ant-form-item { margin-bottom: 14px; }

/* 거래처관리 */
.agency-manage-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.agency-register-btn,
.agency-submit-btn,
.agency-manage-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.agency-register-btn:hover,
.agency-submit-btn:hover,
.agency-manage-btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* 직원관리 */
.member-manage-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.member-register-btn,
.member-submit-btn,
.member-manage-btn,
.member-expo-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.member-register-btn:hover,
.member-submit-btn:hover,
.member-manage-btn:hover,
.member-expo-btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.member-expo-hint {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
}
.member-expo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin-bottom: 8px;
}

/* 간편장부 */
.abook-manage-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.abook-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.abook-view-toggle {
  display: flex;
  gap: 0;
  margin-left: auto;
  margin-right: 12px;
}
.abook-view-toggle .ant-btn {
  border-radius: 0;
  height: 36px;
  min-width: 120px;
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}
.abook-view-toggle .ant-btn:hover {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-2)) !important;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border)) !important;
  color: var(--text) !important;
}
.abook-view-toggle .ant-btn:first-child { border-radius: 4px 0 0 4px; }
.abook-view-toggle .ant-btn:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
.abook-view-toggle .ant-btn.abook-view-active,
.abook-view-toggle .ant-btn.abook-view-active:hover,
.abook-view-toggle .ant-btn.abook-view-active:focus {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--on-primary) !important;
  z-index: 1;
}
.abook-register-btn,
.abook-submit-btn,
.abook-manage-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.abook-register-btn:hover,
.abook-submit-btn:hover,
.abook-manage-btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.abook-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.abook-month-label {
  font-size: 16px;
  font-weight: 700;
  min-width: 120px;
  text-align: center;
  color: var(--text);
}
.abook-day-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.abook-day-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.abook-day-btn:hover {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface-2));
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  color: var(--text);
}
.abook-day-btn.today {
  background: color-mix(in srgb, var(--primary) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  color: var(--text);
}
.abook-day-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary, #fff);
}
.abook-day-btn.active:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--on-primary, #fff);
}
.abook-cash-summary {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 12px;
}
.abook-in { color: #2563eb; font-weight: 600; }
.abook-out { color: #e11d48; font-weight: 600; }
.abook-modal .ant-form-item { margin-bottom: 14px; }

/* 일일리포트 */
.daily-report-page .product-title-icon,
.daily-report-icon {
  margin-right: 8px;
  color: var(--primary);
  font-size: 22px;
  vertical-align: -2px;
}
.daily-report-date-card {
  margin-bottom: 12px;
}
.daily-report-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}
.daily-report-date-label {
  font-size: 16px;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}
.daily-report-summary-card {
  margin-bottom: 12px;
}
.daily-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 0 4px;
}
.daily-report-summary-item {
  text-align: center;
  padding: 10px 8px;
}
.daily-report-summary-item .label {
  font-size: 13px;
  color: #475569;
  margin-bottom: 8px;
  font-weight: 600;
}
.daily-report-summary-item .value {
  font-size: 18px;
  color: #0f172a;
  font-weight: 600;
}
.daily-report-section {
  margin-bottom: 12px;
}
.daily-report-empty {
  margin: 24px 0;
}
@media (max-width: 768px) {
  .daily-report-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 월간리포트 */
.monthly-report-page .product-title-icon,
.monthly-report-icon {
  margin-right: 8px;
  color: #64748b;
  font-size: 22px;
  vertical-align: -2px;
}
.monthly-report-year-card {
  margin-bottom: 12px;
}
.monthly-report-year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}
.monthly-report-year-label {
  font-size: 16px;
  font-weight: 700;
  min-width: 100px;
  text-align: center;
}
.monthly-report-table-card .recovery-table-head {
  margin-bottom: 8px;
}

/* 인터넷/홈렌탈 통계 */
.kind-stat-page .product-title-icon,
.kind-stat-icon {
  margin-right: 8px;
  color: #64748b;
  font-size: 22px;
  vertical-align: -2px;
}
.kind-stat-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.kind-stat-view-toggle {
  display: flex;
  gap: 0;
  margin-left: auto;
}
.kind-stat-view-toggle .ant-btn {
  border-radius: 0;
  height: 36px;
  min-width: 100px;
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}
.kind-stat-view-toggle .ant-btn:hover {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-2)) !important;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border)) !important;
  color: var(--text) !important;
}
.kind-stat-view-toggle .ant-btn:first-child { border-radius: 4px 0 0 4px; }
.kind-stat-view-toggle .ant-btn:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
.kind-stat-view-toggle .ant-btn.kind-stat-view-active,
.kind-stat-view-toggle .ant-btn.kind-stat-view-active:hover,
.kind-stat-view-toggle .ant-btn.kind-stat-view-active:focus {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--on-primary) !important;
  z-index: 1;
}
.kind-stat-note {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 8px;
}
.kind-stat-period-card {
  margin-bottom: 12px;
}
.kind-stat-period-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}
.kind-stat-period-label {
  font-size: 16px;
  font-weight: 700;
  min-width: 120px;
  text-align: center;
}
.kind-stat-table-card {
  min-height: 280px;
}
.kind-stat-empty {
  margin: 80px 0;
}
@media (max-width: 900px) {
  .kind-stat-title-row { flex-direction: column; }
  .kind-stat-view-toggle { margin-left: 0; }
}

.adjust-filter-card .ant-card-body { padding: 16px 18px; }
.adjust-filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.adjust-filter-row:last-child { margin-bottom: 0; }
.adjust-date-row { flex-wrap: wrap; }
.adjust-date-row .adjust-search-btn { margin-left: auto; }
.adjust-label { width: 72px; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.adjust-hint { font-size: 12px; }
.adjust-sort-row { align-items: center; }
.adjust-sort-item { display: inline-flex; align-items: center; gap: 4px; }
.adjust-sort-arrow { color: var(--muted); font-size: 11px; }
.adjust-search-action { display: flex; justify-content: center; padding-top: 8px; }
.adjust-search-btn {
  min-width: 140px; height: 36px; font-size: 14px; font-weight: 600;
  background: var(--primary) !important; border-color: var(--primary) !important;
  color: var(--on-primary) !important; box-shadow: none !important;
}
.adjust-search-btn:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.adjust-page .product-title-icon {
  margin-right: 8px;
  color: var(--muted);
  font-size: 22px;
  vertical-align: -2px;
}
.adjust-result-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px 10px; }
.adjust-result-head b { color: var(--primary); margin: 0 2px; }
.adjust-batch-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.adjust-batch-guide { color: var(--muted); font-size: 13px; }
.adjust-batch-compact {
  display: inline-flex;
  align-items: stretch;
}
.adjust-batch-compact .adjust-batch-input {
  width: 120px;
}
.adjust-batch-compact .adjust-batch-input .ant-input-number,
.adjust-batch-compact .adjust-batch-input.ant-input-number {
  border-radius: 4px 0 0 4px !important;
  height: 32px;
}
.adjust-batch-btn {
  height: 32px !important;
  padding: 0 12px !important;
  font-weight: 600;
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--on-primary) !important;
  box-shadow: none !important;
  border-radius: 0 4px 4px 0 !important;
  margin: 0 !important;
}
.adjust-batch-btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--on-primary) !important;
}
.adjust-cell-input { width: 100%; }
.adjust-submit { display: flex; justify-content: center; padding: 20px 0 8px; }
.adjust-submit-btn {
  min-width: 360px; height: 44px; font-size: 15px; font-weight: 700;
  background: var(--primary) !important; border-color: var(--primary) !important;
  color: var(--on-primary) !important; box-shadow: none !important;
}
.adjust-submit-btn:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }

.unitcost-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px 8px; gap: 12px; flex-wrap: wrap; }
.unitcost-head b { color: #1677ff; margin-left: 4px; }
.unitcost-note { font-size: 12px; }
.unitcost-unused { color: #c0c6ce; font-size: 12px; }
.unitcost-extra { color: #94a3b8; font-size: 12px; }
.unitcost-modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.unitcost-form .ant-form-item { margin-bottom: 14px; }
.unitcost-policy-form { margin-bottom: 12px; gap: 8px; }
.unitcost-policy-table { margin-top: 8px; }
.unitcost-apply-sub { margin-top: 8px; color: #94a3b8; font-size: 13px; }

/* 인터넷상품 (비즈케어홈즈 원본 레이아웃) */
.product-internet-page .product-title-icon {
  margin-right: 8px;
  color: var(--primary);
  font-size: 22px;
  vertical-align: -2px;
}
.product-internet-card .ant-card-body { padding-top: 4px; }
.product-internet-tabs {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.product-internet-tabs .ant-tabs { flex: 1; min-width: 0; margin-bottom: 0; }
.product-internet-tabs .ant-tabs-nav { margin-bottom: 0 !important; }
.product-internet-tabs .ant-tabs-nav::before { border-bottom: none !important; }
.product-internet-settings {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  flex-shrink: 0;
}
.product-setting-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #8a94a3;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.product-setting-link:hover { color: var(--primary); }
.product-policy-btn {
  min-width: 88px;
  font-size: 12px;
  height: 28px;
  padding: 0 10px;
}
.product-manage-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-internet-form .ant-form-item { margin-bottom: 14px; }
.product-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 4px;
}
.product-modal-footer-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.product-policy-form { margin-bottom: 12px; gap: 8px; }
.product-policy-table { margin-top: 8px; }

/* 인터넷접수 */
.contract-status-cancel { color: #e11d48; font-weight: 600; }
.contract-status-apply { color: #ea580c; font-weight: 600; }
.contract-status-recv { color: #2563eb; font-weight: 600; }
.contract-margin { color: #2563eb; }
.contract-margin-neg { color: #2563eb; }
.contract-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 4px 4px;
  flex-wrap: wrap;
}
.contract-sum-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--surface-2, #f6f8fa);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
}
.contract-sum-box > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.contract-write-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}
.contract-write-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
  margin: 2px 0 16px;
}
.contract-write-head .stock-title {
  margin: 0;
  display: block;
}
.contract-write-title-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.contract-write-title-sub p {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.contract-write-head-spacer {
  min-height: 1px;
}
.contract-write-form .ant-form-item { margin-bottom: 12px; }
.contract-product-empty {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px 12px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 6px;
}
.contract-product-sum {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}
.contract-product-sum b { color: var(--primary); }
.contract-pending-panel {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  position: sticky;
  top: 12px;
}
.contract-pending-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.contract-pending-btn {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: var(--on-primary, #fff) !important;
  font-size: 12px;
}
html.theme-dark .contract-pending-btn,
html.theme-blue .contract-pending-btn {
  color: #0b1020 !important;
}
.contract-pending-body {
  padding: 16px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  min-height: 120px;
  background: var(--surface);
}
@media (max-width: 1100px) {
  .contract-write-layout,
  .contract-write-head { grid-template-columns: 1fr; }
  .contract-write-head-spacer { display: none; }
  .contract-pending-panel { position: static; }
}

.home-filter { width: 100%; }
.home-status-wait { color: #ea580c; font-weight: 600; }
.home-status-done { color: #64748b; }
.home-settle-neg { color: #ea580c; font-weight: 600; }
.home-product-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.home-product-hint { margin: -4px 0 0 100px; color: #94a3b8; font-size: 13px; }
.home-settle-input .ant-input-number-input { background: #fffbeb; }
.home-write-page .open-section { margin-bottom: 12px; }

.home-indoc-filter { width: 100%; }
.home-indoc-page .sheet-result-card .ant-card-body { min-height: 360px; }

.exchange-filter { width: 100%; }
.exchange-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: #f6f8fa; }
.exchange-page .ant-table-cell { font-size: 12px; }

.name-change-filter { width: 100%; }
.name-change-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: #f6f8fa; }
.name-change-page .ant-table-cell { font-size: 12px; }

.withdraw-filter { width: 100%; }
.withdraw-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: #f6f8fa; }
.withdraw-page .ant-table-cell { font-size: 12px; }

.settle-history-filter { width: 100%; }
.settle-history-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: #f6f8fa; }
.settle-history-page .ant-table-cell { font-size: 12px; }
.settle-amt-neg { color: #ea580c; }

.delete-history-filter { width: 100%; }
.delete-history-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: #f6f8fa; }
.delete-history-page .ant-table-cell { font-size: 12px; }

.bbs-notice-filter { width: 100%; }
.bbs-notice-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: #f6f8fa; }
.bbs-notice-page .ant-table-cell { font-size: 12px; }
.bbs-title-link { padding: 0; height: auto; color: #334155; }
.bbs-title-link:hover { color: #1677ff; }
.bbs-pin { color: #e11d48; font-weight: 600; }

.bbs-write-card { max-width: 980px; }
.bbs-write-form .ant-form-item { margin-bottom: 16px; }
.bbs-group-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.bbs-group-hint { font-size: 12px; color: #94a3b8; }
.bbs-editor { border: 1px solid #d9dee5; border-radius: 4px; overflow: hidden; background: #fff; }
.bbs-editor-toolbar { padding: 6px 8px; border-bottom: 1px solid #e8eef4; background: #f8fafc; }
.bbs-editor-body {
  min-height: 280px; padding: 12px 14px; outline: none; font-size: 14px; line-height: 1.6;
}
.bbs-editor-body:empty:before { content: ''; }
.bbs-write-actions { display: flex; justify-content: center; gap: 10px; padding: 12px 0 8px; }
.bbs-write-actions .ant-btn-primary { min-width: 140px; }

.board-group-carrier { color: #0d9488; font-weight: 600; }
.board-group-user { color: #334155; }
.board-group-note { text-align: right; color: #94a3b8; font-size: 12px; padding: 10px 4px 4px; }
.board-group-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: #f6f8fa; }
.board-group-create-form { padding-top: 8px; }

.settle-scan-filter { width: 100%; }
.settle-scan-page .ant-table-thead > tr > th { text-align: center; white-space: nowrap; background: #f6f8fa; }
.settle-scan-page .ant-table-cell { font-size: 12px; }
.scan-state-accept { color: #e11d48; font-weight: 600; }
.scan-link { padding: 0; height: auto; color: #1677ff; }
.scan-notes { margin-top: 12px; color: #e11d48; font-size: 12px; line-height: 1.7; }

.settle-doc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.settle-doc-month { min-width: 110px; text-align: center; font-size: 15px; color: var(--text); }
.settle-doc-page .ant-table-thead > tr > th {
  text-align: center !important;
  white-space: nowrap;
  background: var(--surface-2) !important;
  color: var(--text) !important;
  font-weight: 600;
}
.settle-doc-page .ant-table-cell { font-size: 12px; color: var(--text); }
.settle-doc-page .ant-table-tbody > tr > td {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.settle-amt-neg { color: var(--danger) !important; }
.settle-doc-summary td {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  font-weight: 600;
}
.settle-doc-btn {
  background: color-mix(in srgb, var(--muted) 70%, var(--surface-2)) !important;
  border-color: var(--border) !important;
  color: var(--on-primary) !important;
  border-radius: 2px !important;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
html.theme-light .settle-doc-btn {
  background: #8a9199 !important;
  border-color: #8a9199 !important;
  color: #fff !important;
}
.settle-doc-btn:hover {
  background: var(--elevated) !important;
  border-color: var(--primary) !important;
  color: var(--text) !important;
}
html.theme-light .settle-doc-btn:hover {
  background: #6b7280 !important;
  border-color: #6b7280 !important;
  color: #fff !important;
}
.settle-doc-btn:disabled { opacity: 0.55; }
.settle-doc-footer { display: flex; justify-content: flex-end; padding: 12px 4px 4px; }
.settle-doc-notes { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.settle-doc-note-warn { color: var(--danger); }

.outid-filter-row { justify-content: space-between; }
.outid-tabs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.outid-tabs { display: flex; gap: 2px; border-bottom: 1px solid #dbe2ea; }
.outid-tab {
  border: 0; background: transparent; padding: 8px 14px; cursor: pointer;
  color: #64748b; font-size: 13px; border-bottom: 2px solid transparent;
}
.outid-tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }
.outid-hint { color: #6366f1; font-size: 12px; }
.outid-status-on { color: #2563eb; font-weight: 600; }
.outid-status-stop { color: #e11d48; font-weight: 600; }
.outid-status-off { color: #64748b; }
.outid-btn-reg { font-size: 12px; height: 26px; padding: 0 10px; }
.outid-btn-gray {
  background: #8a9199 !important; border-color: #8a9199 !important; color: #fff !important;
  font-size: 12px; height: 26px; padding: 0 10px;
}
.outid-btn-gray:hover { background: #6b7280 !important; border-color: #6b7280 !important; color: #fff !important; }
.outid-page .ant-table-thead > tr > th { text-align: center; background: #eef1f5; white-space: nowrap; }
.outid-field-hint { color: #94a3b8; font-size: 12px; }
.outid-menu-title { margin: 8px 0 12px; color: #334155; font-size: 13px; }
.outid-menu-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  padding: 12px 8px 4px; border-top: 1px solid #e2e8f0; margin-bottom: 16px;
}
.outid-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.outid-menu-label { min-width: 90px; color: #1e293b; font-size: 13px; }
.outid-modal-footer { display: flex; justify-content: center; gap: 8px; padding-top: 8px; }

.shopset-top-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shopset-shop-btn { background: var(--primary) !important; border-color: var(--primary) !important; color: var(--on-primary) !important; }
.shopset-shop-btn:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; color: var(--on-primary) !important; }
.shopset-top-link a { color: var(--primary); font-size: 13px; }
.shopset-notes { margin-bottom: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.shopset-note-warn { color: var(--danger); }
.shopset-table .ant-table-thead > tr > th {
  text-align: center;
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
.shopset-table .ant-table-tbody > tr > td {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.shopset-label-col {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  font-weight: 600;
  width: 160px;
  vertical-align: middle !important;
}
.shopset-split { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.shopset-box {
  flex: 1;
  min-width: 320px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
}
.shopset-box-sm { min-width: 220px; padding: 10px 14px; }
.shopset-q { margin-bottom: 8px; color: var(--text); }
.shopset-q-gap { margin-top: 14px; }
.shopset-phone-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.shopset-phone-input { max-width: 260px; }
.shopset-hint { margin-top: 6px; color: var(--muted); font-size: 12px; }
.shopset-sender-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--text); }
.shopset-msg-btn {
  background: color-mix(in srgb, var(--muted) 55%, var(--surface-2)) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html.theme-light .shopset-msg-btn {
  background: #8a9199 !important;
  border-color: #8a9199 !important;
  color: #fff !important;
}
.shopset-period { display: flex; align-items: center; gap: 10px; color: var(--text); }
.shopset-modal-footer { display: flex; justify-content: center; gap: 8px; }
.shopset-page .ant-radio-wrapper { color: var(--text) !important; }

.open-stat-toggle { display: flex; gap: 0; }
.open-stat-toggle .ant-btn {
  border-radius: 0;
  height: 34px;
  padding: 0 16px;
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}
.open-stat-toggle .ant-btn:hover {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-2)) !important;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border)) !important;
  color: var(--text) !important;
}
.open-stat-toggle .ant-btn:first-child { border-radius: 4px 0 0 4px; }
.open-stat-toggle .ant-btn:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
.open-stat-toggle .ant-btn.open-stat-toggle-on,
.open-stat-toggle .ant-btn.open-stat-toggle-on:hover,
.open-stat-toggle .ant-btn.open-stat-toggle-on:focus {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--on-primary) !important;
  z-index: 1;
}
.open-stat-filter-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.open-stat-filter { row-gap: 8px; }
.open-stat-page .ant-table-thead > tr > th {
  text-align: center;
  background: var(--surface-2) !important;
  color: var(--text) !important;
  white-space: nowrap;
}
.open-stat-page .ant-table-tbody > tr > td {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.open-stat-sat { color: #fa8c16; }
.open-stat-sun { color: var(--danger); }
.open-stat-today td {
  background: var(--highlight-bg) !important;
  color: var(--highlight-text) !important;
}
html.theme-dark .open-stat-today td {
  background: #2f3650 !important;
  color: #c0caf5 !important;
}
html.theme-blue .open-stat-today td {
  background: #1a3352 !important;
  color: #e8f4ff !important;
}
html.theme-light .open-stat-today td {
  background: #fffbe6 !important;
  color: #0f172a !important;
}
.open-stat-summary td {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  font-weight: 600;
}
.open-stat-header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.mon-open-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.mon-open-modes { padding-top: 4px; }
.mon-open-page .ant-table-thead > tr > th {
  text-align: center;
  background: var(--surface-2) !important;
  color: var(--text) !important;
  white-space: nowrap;
}
.open-chart-modes .ant-btn { font-size: 12px; padding: 0 12px; height: 36px; }
.open-chart-filter { width: 100%; row-gap: 8px; }
.open-chart-card .ant-card-body { min-height: 420px; }
.open-chart-title { text-align: center; margin-bottom: 8px; color: var(--text); }
.open-chart-title strong { font-size: 16px; color: var(--text); }
.open-chart-subtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }
.farebox-filter { width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
.farebox-filter-row { display: contents; }
.farebox-filter-row .ant-form-item { margin: 4px 8px 4px 0; }
.farebox-size { margin-left: auto !important; }
.farebox-table-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.farebox-table-toolbar .ant-tabs { flex: 1; }
.farebox-page .ant-table-thead > tr > th {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
.farebox-page .ant-table-tbody > tr > td {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.farebox-page .farebox-cash-col,
.farebox-page .farebox-cash-cell,
.farebox-page .ant-table-tbody > tr > td.farebox-cash-cell,
.farebox-page .ant-table-thead > tr > th.farebox-cash-col {
  background: var(--highlight-bg) !important;
  color: var(--highlight-text) !important;
}
.farebox-page .ant-table-thead > tr > th.farebox-cash-col {
  background: var(--highlight-bg-strong) !important;
}
/* 테마별 직접 지정 (변수 미적용/캐시 대비) */
html.theme-dark .farebox-page .farebox-cash-col,
html.theme-dark .farebox-page .farebox-cash-cell,
html.theme-dark .farebox-page .ant-table-tbody > tr > td.farebox-cash-cell,
html.theme-dark .farebox-page .ant-table-thead > tr > th.farebox-cash-col {
  background: #2f3650 !important;
  color: #c0caf5 !important;
}
html.theme-dark .farebox-page .ant-table-thead > tr > th.farebox-cash-col {
  background: #3a4463 !important;
}
html.theme-blue .farebox-page .farebox-cash-col,
html.theme-blue .farebox-page .farebox-cash-cell,
html.theme-blue .farebox-page .ant-table-tbody > tr > td.farebox-cash-cell,
html.theme-blue .farebox-page .ant-table-thead > tr > th.farebox-cash-col {
  background: #1a3352 !important;
  color: #e8f4ff !important;
}
html.theme-blue .farebox-page .ant-table-thead > tr > th.farebox-cash-col {
  background: #21406a !important;
}
html.theme-light .farebox-page .farebox-cash-col,
html.theme-light .farebox-page .farebox-cash-cell,
html.theme-light .farebox-page .ant-table-tbody > tr > td.farebox-cash-cell,
html.theme-light .farebox-page .ant-table-thead > tr > th.farebox-cash-col {
  background: #fffbe6 !important;
  color: #0f172a !important;
}
html.theme-light .farebox-page .ant-table-thead > tr > th.farebox-cash-col {
  background: #fff3bf !important;
}
.farebox-pending { color: var(--danger) !important; font-weight: 600; }
.farebox-done { color: var(--primary) !important; }
.farebox-cancelled { color: var(--danger) !important; font-weight: 600; }
.farebox-gray-btn {
  background: color-mix(in srgb, var(--muted) 55%, var(--surface-2)) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html.theme-light .farebox-gray-btn {
  background: #8c8c8c !important;
  border-color: #8c8c8c !important;
  color: #fff !important;
}
.farebox-history-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text);
}
.farebox-modal-form { margin-top: 12px; }
.farebox-pay-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text); }
.farebox-pay-sep { margin-left: 18px; }
.farebox-batch-btn {
  background: var(--elevated) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html.theme-light .farebox-batch-btn {
  background: #4b5563 !important;
  border-color: #4b5563 !important;
  color: #fff !important;
}
.farebox-pay-modal { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 16px; }
.farebox-pay-modal-right { padding-top: 4px; }
.farebox-pay-hint { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .farebox-pay-modal { grid-template-columns: 1fr; }
}
.home-stat-note { font-size: 12px; color: #64748b; white-space: nowrap; }
.out-stat-page .ant-table-thead > tr > th {
  text-align: center;
  background: var(--surface-2) !important;
  color: var(--text) !important;
}

.open-size-item { margin-left: auto !important; }
.open-write-page { position: relative; }
.open-type-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.open-type-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin: 0;
  background: var(--surface) !important;
  color: var(--text) !important;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.open-type-toggle label:last-child { border-right: 0; }
.open-type-toggle label.active {
  background: var(--primary) !important;
  color: var(--on-primary) !important;
  border-color: var(--primary);
}
.open-type-toggle input { accent-color: var(--primary); }
html.theme-light .open-type-toggle label.active {
  background: #4b5563 !important;
  color: #fff !important;
}
.open-section {
  margin-bottom: 12px;
  border-color: var(--border) !important;
  background: var(--surface) !important;
}
.open-section .ant-card-head {
  min-height: 40px;
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.open-section .ant-card-body {
  background: var(--surface) !important;
  color: var(--text);
}
.open-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.open-block-head strong { font-size: 14px; color: var(--text); }
.open-hint { margin: -8px 0 10px 110px; color: var(--muted); font-size: 12px; }
.open-info-lines {
  margin: 8px 0 0 0;
  padding: 10px 12px;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px;
  color: var(--text);
}
.open-info-lines div { display: flex; gap: 12px; padding: 3px 0; font-size: 12px; }
.open-info-lines span { width: 72px; color: var(--muted); }
.open-info-lines b { font-weight: 500; color: var(--text); }
.open-na {
  min-height: 140px;
  display: grid;
  place-items: center;
  background: var(--surface-2) !important;
  border: 1px dashed var(--border) !important;
  border-radius: 4px;
  color: var(--muted);
  font-size: 14px;
}
.open-money { width: 100%; max-width: 220px; }
.open-actions { display: flex; justify-content: center; gap: 10px; padding: 8px 0 24px; }
.keep-calc {
  position: sticky;
  top: 16px;
  border-color: var(--border) !important;
  background: var(--surface) !important;
}
.keep-calc .ant-card-head {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  min-height: 38px;
}
.keep-calc .ant-card-body {
  background: var(--surface) !important;
  color: var(--text);
}
.keep-row { display: flex; align-items: center; gap: 6px; }

@media (max-width: 1100px) { .abook-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .stock-title { display: block; }
  .stock-title > div { margin-bottom: 12px; }
  .turnover-header { grid-template-columns: 1fr; }
  .turnover-title-center { justify-content: flex-start; }
  .stock-modal-grid { grid-template-columns: 1fr; }
  .stock-modal-grid .span-two { grid-column: auto; }
  .recovery-size { margin-left: 0 !important; }
  .sheet-size { margin-left: 0 !important; }
  .have-own-excel { margin-left: 0 !important; }
  .open-size-item { margin-left: 0 !important; }
  .open-hint { margin-left: 0; }
}

/* 기본설정 */
.pref-card .ant-card-body { padding: 8px 20px 24px; }
.pref-tabs { margin-bottom: 8px; }
.pref-tabs .ant-tabs-nav { margin-bottom: 0; }
.pref-tabs .ant-tabs-tab { padding: 10px 16px; font-size: 14px; }
.pref-section { padding: 18px 4px 28px; border-top: 1px solid var(--border); scroll-margin-top: 12px; }
.pref-section:first-of-type { border-top: none; }
.pref-section-head { margin-bottom: 14px; }
.pref-section-head h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); font-weight: 700; }
.pref-section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.pref-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.pref-table th,
.pref-table td { border: 1px solid var(--border); padding: 8px 10px; vertical-align: middle; }
.pref-table th {
  width: 150px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.pref-table td { background: var(--surface); color: var(--text); }
.pref-input-wide { width: 100%; max-width: 520px; }
.pref-input-md { width: 180px; }
.pref-phone-select { width: 78px; }
.pref-phone-input { width: 72px; }
.pref-biz-sm { width: 64px; }
.pref-biz-xs { width: 48px; }
.pref-biz-md { width: 88px; }
.pref-number { width: 100px; }
.pref-actions { margin-top: 14px; }
.pref-block { padding: 4px 0; }
.pref-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pref-label { width: 140px; color: var(--text); font-weight: 600; flex-shrink: 0; }
.pref-list-table { max-width: 520px; margin-top: 4px; }
.pref-list-table .ant-table-thead > tr > th {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  text-align: center;
  border-color: var(--border) !important;
}
.pref-list-table .ant-table-tbody > tr > td {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.pref-list-table .ant-table-placeholder .ant-table-cell {
  background: var(--surface) !important;
  color: var(--muted) !important;
}
.pref-page .ant-radio-wrapper,
.homes-pref-page .ant-radio-wrapper {
  color: var(--text) !important;
}
.pref-page .ant-radio-inner,
.homes-pref-page .ant-radio-inner {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}
.pref-page .ant-radio-checked .ant-radio-inner,
.homes-pref-page .ant-radio-checked .ant-radio-inner {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.pref-page .ant-radio-checked .ant-radio-inner::after,
.homes-pref-page .ant-radio-checked .ant-radio-inner::after {
  background: var(--on-primary) !important;
}

/* 홈즈 기본설정 */
.homes-pref-page .product-title-icon {
  margin-right: 8px;
  color: var(--muted);
  font-size: 22px;
  vertical-align: -2px;
}
.homes-pref-tabs .ant-tabs-ink-bar { background: var(--primary); }
.homes-pref-tabs .ant-tabs-tab .ant-tabs-tab-btn { color: var(--muted); }
.homes-pref-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--text) !important;
  font-weight: 600;
}
.homes-pref-tabs .ant-tabs-tab:hover .ant-tabs-tab-btn { color: var(--primary); }
.homes-pref-table thead th {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  font-weight: 600;
  text-align: center;
}
.homes-pref-table .homes-pref-col-label,
.homes-pref-table tbody th {
  width: 180px;
  max-width: 220px;
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
.homes-pref-apply {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--on-primary) !important;
}
.homes-pref-apply:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--on-primary) !important;
}
.homes-pref-page .pref-table td .ant-btn-default {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.homes-pref-page .pref-table td .ant-btn-default:hover {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)) !important;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border)) !important;
  color: var(--text) !important;
}

/* 권한설정 */
.level-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.level-card .ant-card-body { padding: 8px 20px 24px; }
.level-section { padding: 12px 4px 8px; }
.level-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.level-section-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text, #1d3554);
  font-weight: 700;
}
.level-section-head p {
  margin: 0;
  color: var(--muted, #7b8796);
  font-size: 13px;
}
.level-matrix-table .ant-table-thead > tr > th {
  background: var(--surface-2, #f5f7fa) !important;
  text-align: center;
  font-weight: 600;
  color: var(--text, #475569) !important;
}
.level-matrix-table .ant-table-tbody > tr > td {
  text-align: center;
  background: var(--surface, #fff) !important;
  color: var(--text) !important;
}
.level-matrix-table .level-row-label {
  font-weight: 600;
  color: var(--text, #334155) !important;
  background: var(--surface-2, #fafbfc) !important;
}
.level-check-icon {
  color: #ea580c;
  font-size: 16px;
  font-weight: 700;
}
.level-check-empty {
  display: inline-block;
  width: 16px;
  height: 16px;
}

/* 상부점/하부점관리 */
.partner-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.partner-register-btn,
.partner-submit-btn,
.partner-manage-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.partner-register-btn:hover,
.partner-submit-btn:hover,
.partner-manage-btn:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.partner-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 4px 2px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.partner-note-icon {
  color: #22c55e;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.partner-status-ok { color: #2563eb; font-weight: 600; }
.partner-status-wait { color: #ea580c; font-weight: 600; }
.partner-status-hold { color: #ca8a04; font-weight: 600; }
.partner-status-deny { color: #dc2626; font-weight: 600; }

/* 고객센터 공지사항 / 사용문의 */
.cs-notice-page .ant-table-thead > tr > th {
  text-align: center;
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
.homes-cs-notice-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.homes-cs-notice-page .ant-btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.homes-cs-notice-page .ant-btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.homes-cs-question-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.cs-question-register-btn,
.homes-cs-question-page .ant-btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.cs-question-register-btn:hover,
.homes-cs-question-page .ant-btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* 사내게시판 */
.homes-bbs-page .product-title-icon {
  margin-right: 8px;
  color: #94a3b8;
  font-size: 22px;
  vertical-align: -2px;
}
.bbs-register-btn,
.homes-bbs-page .ant-btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.bbs-register-btn:hover,
.homes-bbs-page .ant-btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.cs-notice-page .cs-notice-title.ant-btn-link,
.cs-notice-page .cs-notice-title {
  padding: 0;
  height: auto;
  color: var(--text) !important;
}
.cs-notice-page .cs-notice-title.ant-btn-link:hover,
.cs-notice-page .cs-notice-title:hover {
  color: var(--primary) !important;
}
.cs-notice-meta {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.cs-notice-body { min-height: 120px; line-height: 1.7; color: var(--text); }
.cs-notice-body p { margin: 0 0 10px; }
.cs-inquiry-section { margin-top: 14px; }
.cs-inquiry-section .ant-typography { display: block; margin-bottom: 6px; color: var(--text); }
.bbs-comment-badge {
  display: inline-block;
  margin-left: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 2px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  vertical-align: middle;
}
.internal-board-page .ant-table-tbody > tr:nth-child(even) > td { background: #fafbfc; }
.internal-board-page .ant-table-placeholder .ant-table-cell {
  min-height: 280px;
  vertical-align: middle;
  color: #94a3b8;
  font-size: 14px;
}

/* 전체보기 */
.sitemap-page .product-title-icon {
  margin-right: 8px;
  color: #64748b;
  font-size: 22px;
}
.sitemap-page .sitemap-card {
  border: 1px solid #e8edf3;
  border-radius: 6px;
  box-shadow: none;
}
.sitemap-page .sitemap-card .ant-card-body { padding: 28px 32px 36px; }
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 40px;
  align-items: start;
}
.sitemap-section { margin-bottom: 22px; }
.sitemap-section:last-child { margin-bottom: 0; }
.sitemap-section-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
}
.sitemap-section-title a { color: #1f2937; text-decoration: none; }
.sitemap-section-title a:hover { color: #0ea5e9; }
.sitemap-list,
.sitemap-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap-list > li { margin: 4px 0; line-height: 1.55; font-size: 14px; }
.sitemap-sub { margin: 2px 0 4px 4px; }
.sitemap-nested { margin: 1px 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.sitemap-dash { color: #94a3b8; }
.sitemap-link {
  color: #0ea5e9;
  text-decoration: none;
}
.sitemap-link:hover { text-decoration: underline; color: #0284c7; }
.sitemap-text { color: #334155; }
.sitemap-nested .sitemap-link { color: #64748b; }
.sitemap-nested .sitemap-link:hover { color: #0ea5e9; }
.sitemap-footer {
  margin-top: 28px;
  padding: 16px 4px 8px;
  text-align: left;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.7;
}
.sitemap-footer p { margin: 0; }

@media (max-width: 1100px) {
  .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sitemap-grid { grid-template-columns: 1fr; }
  .sitemap-page .sitemap-card .ant-card-body { padding: 18px 16px 24px; }
}

/* 첫화면 대시보드 */
.home-loading { display: grid; place-items: center; min-height: 320px; }
.home-dashboard { display: flex; flex-direction: column; gap: 14px; }
.home-top-row,
.home-chart-row,
.home-bottom-row {
  display: grid;
  gap: 14px;
}
.home-top-row { grid-template-columns: 1.2fr 1fr; }
.home-chart-row { grid-template-columns: 1fr 1fr; }
.home-bottom-row { grid-template-columns: 1.1fr 1.1fr 0.8fr; }
.home-card {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.home-card-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.home-stock-split,
.home-status-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.home-stock-block,
.home-status-block {
  padding: 4px 12px 8px;
  position: relative;
  overflow: hidden;
}
.home-stock-block + .home-stock-block,
.home-status-block + .home-status-block {
  border-left: 1px solid var(--border);
}
.home-stock-head,
.home-status-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.home-stock-total { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.1; }
.home-stock-hint { margin-top: 2px; font-size: 11px; color: var(--muted); }
.home-stock-meta {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.home-stock-meta b { color: var(--text); margin-left: 2px; }
.home-stock-meta .danger,
.home-stock-meta .danger b,
.home-chart-stats .danger { color: var(--danger) !important; }
.home-status-value { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 6px; }
.home-status-icon { font-size: 28px; }
.home-status-icon.teal { color: var(--success); }
.home-status-icon.purple { color: var(--primary); }
.home-wave { width: 100%; height: 42px; margin-top: 10px; display: block; }
.home-postit-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.home-postit {
  background: #fef9c3;
  border: 1px solid #fde68a;
  min-height: 118px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 1px 2px 0 rgba(202, 138, 4, 0.12);
}
html.theme-dark .home-postit,
html.theme-blue .home-postit {
  background: color-mix(in srgb, #c9a227 22%, var(--surface));
  border-color: color-mix(in srgb, #c9a227 35%, var(--border));
  box-shadow: none;
}
.home-postit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #854d0e;
}
html.theme-dark .home-postit-head,
html.theme-blue .home-postit-head {
  color: #e7c65c;
}
.home-postit-head button {
  border: none;
  background: transparent;
  color: #a16207;
  cursor: pointer;
  padding: 0;
}
html.theme-dark .home-postit-head button,
html.theme-blue .home-postit-head button {
  color: #e7c65c;
}
.home-postit-body {
  flex: 1;
  margin-top: 6px;
  font-size: 12px;
  color: #713f12;
  line-height: 1.45;
  word-break: break-word;
}
html.theme-dark .home-postit-body,
html.theme-blue .home-postit-body {
  color: var(--text);
}
.home-postit-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #a16207;
  margin-top: 6px;
}
html.theme-dark .home-postit-foot,
html.theme-blue .home-postit-foot {
  color: var(--muted);
}
.home-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.home-chart-head .ant-tabs { margin: 0; }
.home-chart-head .ant-tabs-nav { margin: 0; }
.home-chart-head .ant-tabs-tab { padding: 4px 10px !important; font-size: 12px; }
.home-chart-head .ant-tabs-tab-active .ant-tabs-tab-btn {
  color: var(--primary) !important;
  font-weight: 700;
}
.home-list.notice li { grid-template-columns: 1fr auto; }
.home-chart-sub {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text);
  margin: 4px 0 10px;
}
.home-chart-sub .muted,
.home-cs-hours.muted,
.muted { color: var(--muted); }
.home-chart-stats {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-chart-stats.four { grid-template-columns: repeat(4, 1fr); }
.home-chart-stats.three { grid-template-columns: repeat(3, 1fr); }
.home-chart-stats em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.home-chart-stats b {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  color: var(--text);
}
.home-chart-plot { min-height: 180px; }
.home-list-card .ant-card-head-title a,
.home-cs-card .ant-card-head-title a { color: var(--text); }
.home-list-card .ant-card-head-title a:hover,
.home-cs-card .ant-card-head-title a:hover { color: var(--primary); }
.home-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.home-list li:last-child { border-bottom: none; }
.home-list a {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-list a:hover { color: var(--primary); }
.home-list .empty { display: block; color: var(--muted); text-align: center; padding: 20px 0; }
.home-cs-phone {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin: 12px 0 8px;
}
.home-cs-hours { font-size: 13px; color: var(--muted); line-height: 1.6; }

.home-mini-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  min-width: 48px;
}
.home-mini-bars span {
  width: 4px;
  border-radius: 2px 2px 0 0;
  display: block;
  min-height: 4px;
}
.home-month-nav {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 6px;
}
.home-month-nav:hover { color: var(--primary); }
.home-cat-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.home-cat-total {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
.home-cat-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.home-cat-item b { color: var(--text); }
.home-stock-block,
.home-status-block {
  text-decoration: none;
  color: inherit;
  display: block;
}

@media (max-width: 1200px) {
  .home-postit-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-bottom-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .home-top-row,
  .home-chart-row,
  .home-bottom-row { grid-template-columns: 1fr; }
  .home-postit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 일정표 우측 패널 */
.schedule-panel-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  z-index: 1000;
}
.schedule-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 92vw;
  height: 100vh;
  background: #222d3a;
  color: #fff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
}
.schedule-panel-head {
  padding: 18px 20px 14px;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.schedule-panel-body {
  flex: 1;
  overflow: auto;
  padding: 18px 20px 12px;
}
.schedule-block { margin-bottom: 22px; }
.schedule-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}
.schedule-clock {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.schedule-today {
  margin-top: 4px;
  font-size: 14px;
  color: #94a3b8;
}
.schedule-calendar {
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px 8px 12px;
}
.schedule-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
}
.schedule-cal-nav button {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px 8px;
}
.schedule-cal-nav button:hover { color: #fff; }
.schedule-cal-weeks,
.schedule-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.schedule-cal-weeks span {
  font-size: 12px;
  color: #7dd3fc;
  padding: 4px 0;
}
.schedule-day {
  height: 30px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  border-radius: 2px;
}
.schedule-day.other { color: #475569; }
.schedule-day.has-event { background: rgba(71, 85, 105, 0.55); }
.schedule-day.selected,
.schedule-day.today {
  border-color: #3b82f6;
  color: #60a5fa;
}
.schedule-day.selected { background: rgba(59, 130, 246, 0.12); }
.schedule-day:hover { background: rgba(148, 163, 184, 0.15); }
.schedule-event-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.schedule-event-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-event-empty {
  border: 1px dashed rgba(148, 163, 184, 0.3);
  padding: 16px 12px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}
.schedule-event-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 12px 28px 12px 12px;
}
.schedule-event-title {
  color: #fff;
  font-size: 14px;
  word-break: break-all;
}
.schedule-event-time {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}
.schedule-event-del {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11px;
  padding: 0;
  line-height: 1;
}
.schedule-event-del:hover { color: #fff; }
.schedule-panel-foot {
  padding: 12px 20px 20px;
}
.schedule-add-btn {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: transparent;
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
  border-radius: 2px;
}
.schedule-add-btn:hover {
  border-color: #94a3b8;
  color: #fff;
}

/* ===== 테마 연동 (Ant + 공통 표면) ===== */
.ant-card,
.ant-modal-content,
.ant-modal-container,
.ant-table,
.ant-table-container,
.ant-input,
.ant-input-affix-wrapper,
.ant-input-number,
.ant-input-number-input,
.ant-picker {
  background: var(--surface) !important;
  color: var(--text);
  border-color: var(--border) !important;
}
/* 닫힌 Select: ant dark 기본(#141414 등) 대신 테마 surface */
.ant-select:not(.ant-select-customize-input) .ant-select-selector,
.ant-select-outlined:not(.ant-select-customize-input) .ant-select-selector,
.ant-select-filled:not(.ant-select-customize-input) .ant-select-selector,
.ant-space-compact .ant-select .ant-select-selector,
.ant-input-group .ant-select .ant-select-selector {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.ant-select .ant-select-selection-item,
.ant-select .ant-select-selection-placeholder,
.ant-select .ant-select-arrow {
  color: var(--text) !important;
}
.ant-select .ant-select-selection-placeholder {
  /* 미선택 placeholder도 선택값과 동일 대비 (다크에서 회색으로 사라지지 않게) */
  color: var(--text) !important;
  opacity: 0.92;
}
.ant-input::placeholder,
.ant-input-affix-wrapper input::placeholder,
.ant-input-number-input::placeholder {
  color: var(--text) !important;
  opacity: 0.72;
}
.ant-select-focused:not(.ant-select-disabled):not(.ant-select-customize-input) .ant-select-selector {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent) !important;
}
.ant-select-dropdown {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  /* 선택창보다 좁은 옵션 말줄임(...) 방지 */
  min-width: 240px !important;
  max-width: min(90vw, 420px) !important;
  width: max-content !important;
}
.ant-select-item {
  color: var(--text) !important;
}
.ant-select-item-option-content {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background: color-mix(in srgb, var(--primary) 14%, transparent) !important;
}
.ant-select-item-option-selected:not(.ant-select-item-option-disabled) {
  background: color-mix(in srgb, var(--primary) 22%, transparent) !important;
  color: var(--text) !important;
  font-weight: 600;
}
.ant-card-head,
.ant-table-thead > tr > th {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.ant-modal-header {
  background: transparent !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.ant-table-tbody > tr > td {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.ant-table-tbody > tr:hover > td {
  background: var(--elevated) !important;
}
.open-stat-summary td {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  font-weight: 600;
}
.ant-tabs-tab { color: var(--muted) !important; }
.ant-tabs-tab-active .ant-tabs-tab-btn { color: var(--primary) !important; }
.ant-btn-default {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
}
.ant-btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--on-primary) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.ant-btn-primary:not(:disabled):not(.ant-btn-disabled):hover,
.ant-btn-primary:not(:disabled):not(.ant-btn-disabled):focus {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--on-primary) !important;
  box-shadow: none !important;
}
.ant-btn-primary:not(:disabled):not(.ant-btn-disabled):active {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  box-shadow: none !important;
}
html.theme-blue .ant-btn-primary,
html.theme-blue .ant-btn-primary:hover,
html.theme-blue .ant-btn-primary:focus,
html.theme-blue .ant-btn-primary:active {
  box-shadow: none !important;
  filter: none;
}
.ant-typography,
.ant-form-item-label > label {
  color: var(--text) !important;
}
.home-card,
.stock-filter-card,
.stock-table-card,
.stock-info-panel {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
.home-card-title,
.stock-title h2,
.stock-info-value,
.stock-info-title {
  color: var(--text) !important;
}
.stock-title p,
.home-stock-hint,
.muted,
.stock-info-label {
  color: var(--muted) !important;
}
.stock-info-row,
.stock-history-list li,
.home-list li {
  border-color: var(--border) !important;
}
html.theme-dark .ant-btn-text,
html.theme-blue .ant-btn-text {
  color: var(--text) !important;
}

/* 다크/블루: 목록 체크박스 대비 강화 */
html.theme-dark .ant-checkbox .ant-checkbox-inner,
html.theme-blue .ant-checkbox .ant-checkbox-inner {
  background-color: color-mix(in srgb, var(--surface) 70%, #000) !important;
  border-color: color-mix(in srgb, var(--text) 55%, transparent) !important;
  border-width: 1.5px !important;
}
html.theme-dark .ant-checkbox:not(.ant-checkbox-disabled):hover .ant-checkbox-inner,
html.theme-blue .ant-checkbox:not(.ant-checkbox-disabled):hover .ant-checkbox-inner,
html.theme-dark .ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner,
html.theme-blue .ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner {
  border-color: var(--primary) !important;
}
html.theme-dark .ant-checkbox-checked .ant-checkbox-inner,
html.theme-blue .ant-checkbox-checked .ant-checkbox-inner,
html.theme-dark .ant-checkbox-indeterminate .ant-checkbox-inner,
html.theme-blue .ant-checkbox-indeterminate .ant-checkbox-inner {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
html.theme-dark .ant-checkbox-checked .ant-checkbox-inner::after,
html.theme-blue .ant-checkbox-checked .ant-checkbox-inner::after {
  border-color: var(--on-primary) !important;
}
html.theme-dark .ant-checkbox-indeterminate .ant-checkbox-inner::after,
html.theme-blue .ant-checkbox-indeterminate .ant-checkbox-inner::after {
  background-color: var(--on-primary) !important;
}
html.theme-dark .ant-table-selection-column .ant-checkbox-inner,
html.theme-blue .ant-table-selection-column .ant-checkbox-inner {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent);
}

/* ===== 공통 드래그 타이틀바 모달 (antd v6: container) ===== */
.app-draggable-modal-root .ant-modal {
  padding-bottom: 0;
}
.app-modal-drag-root {
  will-change: transform;
}
.app-modal-static-panel {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* antd 6 패널 본체 */
.app-draggable-modal-root .ant-modal-container,
.app-draggable-modal .ant-modal-container {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 88vh;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow) !important;
  border-radius: 8px !important;
}

.app-draggable-modal-root .ant-modal-header,
.app-draggable-modal .ant-modal-header {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-bottom: none !important;
  border-radius: 0 !important;
}

.app-draggable-modal-root .ant-modal-title,
.app-draggable-modal .ant-modal-title {
  margin: 0 !important;
  width: 100% !important;
  line-height: 1 !important;
  color: inherit !important;
}

.app-modal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  flex-shrink: 0;
  user-select: none;
  min-height: 44px;
  box-sizing: border-box;
  width: 100%;
  /* 상단 하이라이트 → 하단 음영: 타이틀바 입체감 */
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--surface-2) 42%, #ffffff) 0%,
      color-mix(in srgb, var(--surface-2) 88%, #ffffff) 38%,
      var(--surface-2) 62%,
      color-mix(in srgb, var(--surface-2) 72%, #0b1220) 100%
    );
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, #000);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 28%, transparent),
    inset 0 -1px 0 color-mix(in srgb, #000000 22%, transparent);
}
.app-modal-titlebar.is-draggable {
  cursor: move;
}
.app-modal-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
  text-shadow: 0 1px 0 color-mix(in srgb, #000 18%, transparent);
}
.app-modal-title-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.app-modal-close {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.app-modal-close:hover {
  background: color-mix(in srgb, var(--elevated) 80%, transparent);
  color: var(--text);
}

/* 다크/블루: 첨부 이미지와 유사한 네이비 메탈 그라데이션 */
html.theme-dark .app-modal-titlebar,
html.theme-blue .app-modal-titlebar {
  background:
    linear-gradient(
      to bottom,
      #4a5a78 0%,
      #3a4760 28%,
      #2f3a4f 58%,
      #252e40 100%
    );
  border-bottom-color: #1a2233;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}
html.theme-dark .app-modal-title,
html.theme-blue .app-modal-title {
  color: #4eb6ff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
html.theme-dark .app-modal-close,
html.theme-blue .app-modal-close {
  color: #c5d0e0;
}
html.theme-dark .app-modal-close:hover,
html.theme-blue .app-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.app-modal-slot {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-draggable-modal-root .app-modal-slot .ant-modal-container {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: var(--surface) !important;
  border-radius: 0 !important;
  max-height: none;
}

.app-draggable-modal-root .ant-modal-body,
.app-draggable-modal .ant-modal-body {
  padding: 16px 18px 18px !important;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  color: var(--text) !important;
  background: var(--surface) !important;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 40%, var(--muted)) var(--surface-2);
}
.app-draggable-modal-root .ant-modal-body::-webkit-scrollbar,
.app-draggable-modal .ant-modal-body::-webkit-scrollbar,
.reception-apply-modal .ant-modal-body::-webkit-scrollbar,
.reception-bulk-modal .ant-modal-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.app-draggable-modal-root .ant-modal-body::-webkit-scrollbar-track,
.app-draggable-modal .ant-modal-body::-webkit-scrollbar-track,
.reception-apply-modal .ant-modal-body::-webkit-scrollbar-track,
.reception-bulk-modal .ant-modal-body::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 8px;
}
.app-draggable-modal-root .ant-modal-body::-webkit-scrollbar-thumb,
.app-draggable-modal .ant-modal-body::-webkit-scrollbar-thumb,
.reception-apply-modal .ant-modal-body::-webkit-scrollbar-thumb,
.reception-bulk-modal .ant-modal-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 40%, var(--muted));
  border-radius: 8px;
  border: 2px solid var(--surface-2);
}
.app-draggable-modal-root .ant-modal-body::-webkit-scrollbar-thumb:hover,
.app-draggable-modal .ant-modal-body::-webkit-scrollbar-thumb:hover,
.reception-apply-modal .ant-modal-body::-webkit-scrollbar-thumb:hover,
.reception-bulk-modal .ant-modal-body::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--primary) 70%, var(--muted));
}

.app-draggable-modal-root .ant-modal-footer,
.app-draggable-modal .ant-modal-footer {
  margin: 0 !important;
  padding: 12px 16px 14px !important;
  border-top: 1px solid var(--border) !important;
  background: var(--surface) !important;
}

/* antd 기본 닫기 버튼 숨김 (타이틀바 X 사용) */
.app-draggable-modal-root .ant-modal-close,
.app-draggable-modal .ant-modal-close {
  display: none !important;
}

.app-draggable-modal-root .ant-modal-confirm-body {
  color: var(--text);
}
.app-draggable-modal-root .ant-modal-confirm-title {
  display: none !important;
}

/* 재고정보 타이틀바 액션 */
.app-draggable-modal.stock-info-modal .app-modal-title,
.app-draggable-modal.stock-info-modal .stock-info-title {
  color: var(--primary) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-draggable-modal.stock-info-modal .stock-info-actions .ant-btn {
  color: var(--text) !important;
}

/* 접수관리 전체리스트 */
.reception-list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.reception-list-total {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.reception-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.reception-progress-logs {
  margin: 8px 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}
.reception-progress-logs-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
.reception-progress-logs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 160px;
  overflow: auto;
}
.reception-progress-logs li {
  display: grid;
  grid-template-columns: 110px 150px 70px 1fr;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.reception-progress-logs li:last-child { border-bottom: none; }
.reception-progress-logs em {
  font-style: normal;
  color: var(--muted);
}
@media (max-width: 720px) {
  .reception-form-grid { grid-template-columns: 1fr; }
  .reception-progress-logs li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 신규신청 드롭다운 */
.reception-apply-trigger {
  min-width: 108px;
}
.reception-apply-dropdown {
  width: 260px;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--surface, #1e2433);
  border: 1px solid var(--border, #3a455c);
  border-radius: 8px;
  box-shadow: var(--shadow, 0 12px 32px rgba(0, 0, 0, 0.35));
  overflow: hidden;
}
.reception-apply-dropdown-title {
  flex-shrink: 0;
  padding: 12px 14px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #e8eef8);
  border-bottom: 1px solid var(--border, #3a455c);
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--surface-2, #2f3a4f) 42%, #fff) 0%,
      var(--surface-2, #2f3a4f) 100%
    );
}
html.theme-dark .reception-apply-dropdown-title,
html.theme-blue .reception-apply-dropdown-title {
  background: linear-gradient(to bottom, #4a5a78 0%, #2f3a4f 100%);
  color: #e8eef8;
}
.reception-apply-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 40%, var(--muted)) var(--surface-2);
}
.reception-apply-dropdown-list::-webkit-scrollbar {
  width: 8px;
}
.reception-apply-dropdown-list::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 8px;
}
.reception-apply-dropdown-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 40%, var(--muted));
  border-radius: 8px;
  border: 2px solid var(--surface-2);
}
.reception-apply-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--primary) 70%, var(--muted));
}
.reception-apply-dropdown-list li button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text, #d5deec);
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
}
.reception-apply-dropdown-list li button:hover {
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary);
}
.reception-apply-dropdown-empty {
  padding: 20px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.reception-apply-section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.reception-apply-section:last-of-type { border-bottom: none; }
.reception-apply-section h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.reception-form-span2 { grid-column: 1 / -1; }
.reception-apply-form .ant-form-item { margin-bottom: 12px; }
.reception-apply-modal .ant-modal-body {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 40%, var(--muted)) var(--surface-2);
}
.reception-bulk-modal .ant-modal-body {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 40%, var(--muted)) var(--surface-2);
  background: var(--surface) !important;
  color: var(--text) !important;
}

/* ---- 신규신청 폼 (billing_react OrderForm 이식) ---- */
.order-form-modal.ant-modal,
.reception-apply-modal.order-form-modal {
  max-width: 1040px;
  width: 96% !important;
  padding-bottom: 0;
}
.order-form-modal .ant-modal-content,
.reception-apply-modal.order-form-modal .ant-modal-content {
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.order-form-page {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-form-embedded-inner {
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
}
.popup-section,
.of-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 0;
}
.of-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.of-section-titles { min-width: 0; flex: 1; }
.of-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.of-section-desc {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}
.of-section-actions { flex-shrink: 0; }
.of-section-body { padding: 14px 16px 16px; }

/* 가입신청: 항목명 | 입력란 테이블형 정렬 */
.reception-apply-form .of-section-body {
  padding: 0;
}
.reception-apply-form .of-antd-choice-row,
.reception-apply-form .of-choice-row {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.reception-apply-form .of-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--border-strong, color-mix(in srgb, var(--border) 70%, #000));
}
.reception-apply-form .of-grid-1 {
  grid-template-columns: 1fr;
}
.reception-apply-form .of-grid ~ .of-grid,
.reception-apply-form .of-group .of-grid {
  border-top: none;
}
.reception-apply-form .of-field {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.reception-apply-form .of-field-full {
  grid-column: 1 / -1;
}
.reception-apply-form .of-field-meta {
  margin: 0;
  padding: 8px 10px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  min-height: 42px;
}
.reception-apply-form .of-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  word-break: keep-all;
}
.reception-apply-form .of-field-hint {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.reception-apply-form .of-field-control {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  background: var(--surface);
}
.reception-apply-form .of-field-control .ant-input,
.reception-apply-form .of-field-control .ant-select,
.reception-apply-form .of-field-control .ant-picker,
.reception-apply-form .of-field-control .ant-input-number,
.reception-apply-form .of-field-control textarea,
.reception-apply-form .of-field-control .ant-input-textarea {
  width: 100%;
}
.reception-apply-form .of-field-control textarea {
  min-height: 110px;
  resize: vertical;
}
.reception-apply-form .of-block {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.reception-apply-form .of-group {
  margin: 0;
  padding: 0;
  border: none;
}
.reception-apply-form .of-group + .of-group {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.reception-apply-form .of-group-label {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 70%, var(--surface));
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.reception-apply-form .of-muted {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.reception-apply-form .order-form-inline {
  width: 100%;
  align-items: center;
}
.reception-apply-form .of-toolbar-inline {
  margin-bottom: 6px;
}
@media (max-width: 720px) {
  .reception-apply-form .of-grid-2 {
    grid-template-columns: 1fr;
  }
  .reception-apply-form .of-field {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

.of-group + .of-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.of-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.of-grid {
  display: grid;
  gap: 12px 16px;
  align-items: start;
}
.of-grid-2 { grid-template-columns: 1fr 1fr; }
.of-grid-1 { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .of-grid-2 { grid-template-columns: 1fr; }
}
.of-field { min-width: 0; }
.of-field-full { grid-column: 1 / -1; }
.of-field-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 5px;
}
.of-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.of-field-hint {
  font-size: 10px;
  color: var(--muted);
}
.of-field-control .ant-input,
.of-field-control .ant-select,
.of-field-control .ant-picker,
.of-field-control .ant-input-number,
.of-field-control textarea {
  width: 100%;
}
.of-choice-row,
.of-antd-choice-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 12px;
  align-items: center;
}
.of-antd-choice-row .ant-radio-wrapper {
  margin-inline-end: 0;
  font-size: 12px;
  color: var(--text);
}
.of-choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text);
}
.of-block {
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2, var(--elevated, transparent));
}
.of-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.of-block-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.of-addr-stack { display: flex; flex-direction: column; gap: 6px; }
.of-addr-zip { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.of-addr-zip .ant-input { width: 120px !important; flex: none; }

.of-toolbar-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.of-toolbar-inline .ghost.sm {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
}
.of-toolbar-inline .ghost.sm:hover {
  background: var(--elevated, var(--surface-2));
  color: var(--primary);
}
.order-form-inline input[type="file"] {
  font-size: 12px;
  color: var(--text);
  max-width: 100%;
}
.of-muted {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.order-form-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.order-form-inline > .ant-input,
.order-form-inline > .ant-select,
.order-form-inline > .ant-picker {
  flex: 1;
  min-width: 120px;
}
.order-form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.reception-apply-form .ant-form-item { margin-bottom: 0; }
.reception-apply-form .of-field-control .ant-form-item { margin-bottom: 0; }




/* ---- 업무 진행내역 팝업 (billing_react prg 이식) ---- */
.reception-progress-modal.order-progress-modal {
  max-width: 900px;
  width: 96% !important;
}
.prg-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prg-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.prg-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.prg-section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.prg-section-body { padding: 10px 12px 12px; }
.prg-table { width: 100%; border-collapse: collapse; }
.prg-table th, .prg-table td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  vertical-align: middle;
  font-size: 13px;
  color: var(--text);
}
.prg-table th {
  background: var(--surface-2);
  text-align: right;
  white-space: nowrap;
  width: 120px;
  font-weight: 500;
}
.prg-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.prg-chk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text);
  margin-right: 8px;
}
.prg-note {
  display: block;
  color: #e11d48;
  font-size: 11px;
  margin-top: 3px;
}
.prg-note-i { color: #e11d48; font-size: 11px; }
.prg-grid { width: 100%; border-collapse: collapse; }
.prg-grid th, .prg-grid td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-size: 13px;
  color: var(--text);
}
.prg-grid thead th {
  background: var(--surface-2);
  font-weight: 600;
  text-align: center;
}
.prg-grid td.center { text-align: center; }
.prg-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.prg-foot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
.prg-body .muted { color: var(--muted); }

/* ---- 접수 전체리스트 (billing_react order-list 이식) ---- */
.reception-order-page {
  --c-name: #7aa2f7;
  --c-green: #73d13d;
  --c-blue: #69b1ff;
  --c-red: #ff7875;
  --badge-bg: #1677ff;
  --badge-text: #fff;
}
html.theme-light .reception-order-page {
  --c-name: #4169e1;
  --c-green: #389e0d;
  --c-blue: #1677ff;
  --badge-bg: #1677ff;
}
.order-top-buttons {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.order-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.order-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.order-date-row .quick { display: flex; gap: 4px; flex-wrap: wrap; }
.order-date-row .quick .ghost.sm,
.order-filter .ghost.sm {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  cursor: pointer;
}
.order-date-row .quick .ghost.sm:hover { background: var(--elevated, var(--surface-2)); color: var(--primary); }
.order-result { margin-left: auto; font-size: 12px; }
.order-search-fields {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.order-search-fields .ff { width: 120px; }
.order-search-fields .ff-i {
  width: 90px;
  font-size: 11px;
  padding: 6px 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.order-search-fields .ff-d {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--muted);
}
.order-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  max-height: calc(100vh - 320px);
}
table.order-list {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}
table.order-list th, table.order-list td {
  border: 1px solid var(--border);
  padding: 4px 5px;
  vertical-align: top;
  text-align: center;
  color: var(--text);
  overflow: hidden;
}
table.order-list thead tr:first-child th {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.35;
  position: sticky;
  top: 0;
  z-index: 3;
}
table.order-list th p, table.order-list td p { margin: 0; overflow: hidden; text-overflow: ellipsis; }
table.order-list .col-chk { width: 28px; }
table.order-list .col-id { width: 56px; }
table.order-list .col-date { width: 72px; }
table.order-list .col-center { width: 66px; }
table.order-list .col-branch { width: 72px; }
table.order-list .col-isp { width: 64px; }
table.order-list .col-ptype { width: 72px; }
table.order-list .col-product { width: 90px; }
table.order-list .col-customer { width: 100px; }
table.order-list .col-region { width: 56px; }
table.order-list .col-idnum { width: 90px; }
table.order-list .col-status { width: 86px; }
table.order-list .col-contract { width: 90px; }
table.order-list .col-giftplace { width: 64px; }
table.order-list .col-gift { width: 72px; }
table.order-list .col-cstatus { width: 72px; }
table.order-list tr.order-col-filter th {
  background: var(--surface);
  padding: 2px;
  position: sticky;
  top: 34px;
  z-index: 2;
}
table.order-list tr.order-col-filter input,
table.order-list tr.order-col-filter select {
  width: 100%;
  font-size: 10px;
  padding: 2px 4px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-sizing: border-box;
}
table.order-list tbody tr { cursor: pointer; }
table.order-list tbody tr:hover td { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
table.order-list .c-name { color: var(--c-name); }
table.order-list .c-green { color: var(--c-green); }
table.order-list .c-blue { color: var(--c-blue); }
table.order-list .c-muted { color: var(--muted); }
table.order-list .c-red { color: var(--c-red); }
table.order-list .fs11 { font-size: 11px; }
table.order-list .floating-layer.right { left: auto; right: 0; transform: none; }
table.order-list .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  background: var(--badge-bg);
  color: var(--badge-text);
}
table.order-list .floating-cell { position: relative; }
table.order-list .floating-layer {
  display: none;
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 160px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  text-align: left;
  font-size: 11px;
}
table.order-list .floating-cell:hover .floating-layer { display: block; }
.order-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

/* ---- 일괄진행 팝업 (신규신청과 동일 테이블형 정렬) ---- */
.reception-bulk-modal.order-form-modal {
  max-width: 1040px;
}
.reception-bulk-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reception-bulk-form .of-section-body {
  padding: 0;
}
.reception-bulk-form .bulk-foot {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.reception-bulk-form .bulk-submit {
  min-width: 120px;
  height: 34px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.reception-bulk-form .bulk-submit:hover { filter: brightness(1.05); }
.reception-bulk-form .bulk-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.reception-bulk-form .bulk-hint,
.reception-bulk-form .bulk-hint-line,
.reception-bulk-form .bulk-desc-block {
  color: #e67e22;
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
}
.reception-bulk-form .bulk-hint-line { margin-top: 6px; }
.reception-bulk-form .bulk-hint {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reception-bulk-form .bulk-desc-block { font-size: 12px; }
.reception-bulk-form .of-field-control .order-form-inline {
  flex-wrap: wrap;
}
.reception-bulk-form .of-field-control .ant-select,
.reception-bulk-form .of-field-control .ant-picker,
.reception-bulk-form .of-field-control .ant-input,
.reception-bulk-form .of-field-control textarea {
  width: 100%;
}
