body.portal-home.finance-discount-home,
body.portal-home.finance-discount-home:not(.home-landing) {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #c2c2c2 0%, #b6b6b6 100%) !important;
  color: #161411;
  font-family: "IBM Plex Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

body.portal-home.finance-discount-home::before,
body.portal-home.finance-discount-home:not(.home-landing)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.24;
}

.finance-discount-home .finance-page {
  position: relative;
  width: min(1460px, calc(100vw - 28px)) !important;
  margin: 0 auto;
  padding: 14px !important;
  gap: 10px !important;
}

.finance-discount-home .page-header,
.finance-discount-home .finance-panel,
.finance-discount-home .finance-summary-card {
  border: 1px solid rgba(89, 73, 55, 0.22) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff, #f9fbfd) !important;
  box-shadow: 0 16px 28px rgba(82, 60, 46, 0.12) !important;
}

.finance-discount-home .page-header {
  position: relative !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 12px !important;
  overflow: hidden !important;
  min-height: 0 !important;
  padding: 24px 16px 14px !important;
}

.finance-discount-home .page-header::before {
  content: "" !important;
  position: absolute !important;
  top: 12px !important;
  left: 16px !important;
  right: 16px !important;
  height: 1px !important;
  background: rgba(241, 143, 1, 0.34) !important;
}

.finance-discount-home .subpage-titlebar-actions {
  position: relative;
  z-index: 1;
}

.portal-home.finance-discount-home .page-header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f18f01 !important;
  font-family: "IBM Plex Sans KR", "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  line-height: 1.02 !important;
}

.finance-discount-home .home-link {
  border: 1px solid rgba(241, 143, 1, 0.32) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 254, 0.98) !important;
  color: #f18f01 !important;
  box-shadow: none !important;
}

.finance-discount-home .home-link:hover {
  background: #f18f01 !important;
  color: #fffaf1 !important;
  border-color: #f18f01 !important;
}

.finance-discount-home .finance-toolbar-panel,
.finance-discount-home .finance-results-panel,
.finance-discount-home .finance-excluded-panel {
  padding: 22px 24px 24px !important;
}

.finance-discount-home .finance-summary-label,
.finance-discount-home .finance-field span,
.finance-discount-home .finance-status,
.finance-discount-home .finance-empty,
.finance-discount-home .finance-name-cell span {
  color: rgba(95, 86, 80, 0.74) !important;
}

.finance-discount-home .finance-summary-value,
.finance-discount-home .finance-name-cell strong,
.finance-discount-home .finance-status-cell,
.finance-discount-home .finance-calc-answer {
  color: #5f5650 !important;
}

.finance-discount-home .finance-field input,
.finance-discount-home .finance-field select,
.finance-discount-home .finance-table-wrap {
  border: 1px solid rgba(109, 96, 86, 0.16) !important;
  background: rgba(255, 255, 255, 0.99) !important;
  color: #4f4740 !important;
}

.finance-excluded-panel {
  display: grid;
  gap: 12px;
}

.finance-excluded-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #4f4740;
}

.finance-excluded-head strong {
  font-size: 16px;
  font-weight: 800;
}

.finance-excluded-head span,
.finance-excluded-empty {
  margin: 0;
  color: rgba(95, 86, 80, 0.72);
  font-size: 13px;
}

.finance-excluded-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.finance-excluded-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 8px 4px 10px;
  border: 1px solid rgba(241, 143, 1, 0.28);
  background: #fffaf1;
  color: #4f4740;
  font-size: 13px;
  font-weight: 800;
}

.finance-excluded-chip em {
  font-style: normal;
  color: #f18f01;
  font-size: 11px;
  font-weight: 900;
}

.finance-excluded-chip button {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  background: #f18f01;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.finance-excluded-chip button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.finance-excluded-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  align-items: end;
  gap: 10px;
  width: min(50%, 720px);
}

.finance-discount-home .finance-excluded-form .finance-submit {
  width: auto !important;
  min-width: 70px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.finance-discount-home .finance-excluded-form .finance-excluded-apply {
  min-width: 150px !important;
  font-size: 16px !important;
}

.finance-excluded-search {
  position: relative;
  min-width: 0;
}

.finance-discount-home .finance-excluded-search .finance-field {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr);
  width: 100%;
  flex: 1 1 auto !important;
}

.finance-discount-home .finance-excluded-search .finance-field input {
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
  text-align: left;
}

.finance-excluded-candidates {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  display: grid;
  max-height: 290px;
  overflow-y: auto;
  border: 1px solid rgba(109, 96, 86, 0.22);
  background: #fff;
  box-shadow: 0 14px 24px rgba(82, 60, 46, 0.16);
}

.finance-excluded-candidate {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 46px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(109, 96, 86, 0.1);
  background: #fff;
  color: #4f4740;
  text-align: left;
  cursor: pointer;
}

.finance-excluded-candidate:hover,
.finance-excluded-candidate:focus-visible {
  background: #fff7e8;
  outline: none;
}

.finance-excluded-candidate strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}

.finance-excluded-candidate span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(95, 86, 80, 0.72);
  font-size: 12px;
}

.finance-exclusion-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(241, 143, 1, 0.28);
  background: #fff7e8;
  color: #8f3d33;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.finance-exclusion-badge.is-muted {
  border-color: rgba(109, 96, 86, 0.18);
  background: #f5f4f2;
  color: rgba(95, 86, 80, 0.82);
}

.finance-excluded-detail-panel {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.finance-excluded-detail-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #4f4740;
}

.finance-excluded-detail-head strong {
  font-size: 15px;
  font-weight: 900;
}

.finance-excluded-detail-head span {
  color: rgba(95, 86, 80, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.finance-excluded-detail-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(109, 96, 86, 0.14);
  background: #fff;
}

.finance-excluded-detail-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.finance-excluded-detail-table th,
.finance-excluded-detail-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(109, 96, 86, 0.1);
  color: #4f4740;
  text-align: left;
  vertical-align: middle;
}

.finance-excluded-detail-table th {
  background: #f5f4f2;
  color: rgba(95, 86, 80, 0.78);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.finance-excluded-detail-table td.is-number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.finance-discount-home .finance-company-tab,
.finance-discount-home .finance-submit {
  border-radius: 0 !important;
}

.finance-status-action {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.finance-row-confirm {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #f18f01 !important;
  border-radius: 4px;
  background: #f18f01 !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.finance-row-confirm:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 720px) {
  .finance-discount-home .finance-page {
    width: calc(100vw - 16px) !important;
    padding: 8px !important;
  }

  .finance-discount-home .page-header {
    padding: 20px 12px 12px !important;
    gap: 10px !important;
  }

  .finance-discount-home .page-header::before {
    top: 10px !important;
    left: 12px !important;
    right: 12px !important;
  }

  .finance-excluded-form {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
