/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
b, strong{
  font-family: 'Inter Medium';
  font-weight: unset;
}
.tool-lending {
    background: var(--Background, #F3F4F7);
    /* padding-bottom: 36px; */
}
.td-page-content {
    padding-bottom: unset;
}
.tool-lending {}
/* END CONTAINER */

/* HERO-BANNER */
.hero-banner {
  width: 100%;
  /* min-height: 400px; */
  position: relative;
  background: url('/sites/sme/images/pages/tool-lending/banner.webp') center/cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  height: 176px;
}

.hero-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 100px 0; */
}

.hero-banner-text {
  text-align: center;
}

.hero-banner-title {
  color: #14409D;
  font-size: 34px;
  font-family: 'Inter SemiBold';
  line-height: 36px;
  margin-bottom: 14px;
  background: linear-gradient(262deg, #14409D 0.18%, #007765 52.49%, #009982 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-banner-description {
  color: #5D5D5D;
  font-size: 13px;
  font-family: 'Inter';
  line-height: 18px;
  color: var(--Text-Secondary-Neutral, #5D5D5D);
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;

/* Body Regular/Regular */
  font-family: var(--Font-Family-Body, Inter);
  font-size: var(--Font-Size-Body-Regular, 13px);
  font-style: normal;
  font-weight: 400;
  line-height: var(--Line-Height-Body-Regular, 18px); /* 138.462% */
}
/* END HERO-BANNER */

/* LOAN-CALCULATOR-FORM */
.loan-calculator-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 32px;
  background: white;
  border-radius: 20px;
  box-shadow: 0px 0px 16.8px rgba(72.04, 154.47, 118.75, 0.24);
  max-width: 1085px;
  margin: 40px auto;
  padding-bottom: 40px;
  margin-top: 0;
}

.loan-calculator-form-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loan-calculator-form-title {
  color: #1F1F1F;
  font-size: 20px;
  font-family: 'Inter SemiBold';
  line-height: 28px;
}

.loan-calculator-form-description {
  color: #1F1F1F;
  font-size: 13px;
  font-family: 'Inter';
  line-height: 18px;
}

.loan-calculator-form-body {
  /* padding: 20px; */
  background: white;
  border-radius: 12px;
  /* border: 1px solid #D5D7DA; */
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* padding-bottom: 40px; */
}

.loan-calculator-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.loan-calculator-section-badge {
  width: 24px;
  height: 24px;
  background: #01A38A;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FDFDFD;
  font-size: 16px;
  font-family: 'Inter SemiBold';
  line-height: 22px;
}

.loan-calculator-section-title {
  color: #01A38A;
  font-size: 16px;
  font-family: 'Inter SemiBold';
  line-height: 22px;
}

.loan-calculator-fields-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.loan-calculator-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.loan-calculator-field-label {
  color: #101828;
  font-size: 13px;
  font-family: 'Inter';
  line-height: 18px;
}

.loan-calculator-tooltip-trigger {
  color: #E53935;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin-left: 2px;
}

.loan-calculator-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: #1D2939;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  font-family: 'Inter';
  line-height: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.loan-calculator-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1D2939;
}

.loan-calculator-tooltip-item {
  margin: 0 0 8px 0;
}

.loan-calculator-tooltip-item:last-child {
  margin-bottom: 0;
}

.loan-calculator-tooltip-trigger:hover .loan-calculator-tooltip {
  display: block;
}

.loan-calculator-field-input {
  height: 32px;
  padding: 0;
  background: white;
  border-radius: 8px;
  border: 1px solid #D5D7DA;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.loan-calculator-field-input:focus-within {
  border-color: #01A38A;
  box-shadow: 0 0 0 2px rgba(1, 163, 138, 0.1);
}

.loan-calculator-field-input-placeholder {
  flex: 1;
  color: #A4A7AE;
  font-size: 13px;
  font-family: 'Inter';
  line-height: 18px;
}

.loan-calculator-field-suffix {
  color: #717680;
  font-size: 13px;
  font-family: 'Inter';
  line-height: 18px;
}

/* LOAN-CALCULATOR INPUT STYLES */
.loan-calculator-dropdown-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  height: 34px;
}

.loan-calculator-dropdown,
.loan-calculator-date-input,
.loan-calculator-currency-input,
.loan-calculator-number-input {
  width: 100%;
  height: 100%;
  padding: 0 12px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter';
  font-size: 13px;
  color: #101828;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loan-calculator-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23717680' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.loan-calculator-dropdown::-ms-expand {
  display: none;
}

.loan-calculator-dropdown option {
  padding: 8px 12px;
  font-family: 'Inter';
  font-size: 13px;
  color: #101828;
}

.loan-calculator-dropdown option:checked {
  background: #E6F6F3;
  color: #01A38A;
}

.loan-calculator-date-input,
.loan-calculator-currency-input,
.loan-calculator-number-input {
  cursor: text;
}

/* Wrapper hover state */
.loan-calculator-field-input:has(.loan-calculator-dropdown):hover,
.loan-calculator-field-input:has(.loan-calculator-date-input):hover,
.loan-calculator-field-input:has(.loan-calculator-currency-input):hover,
.loan-calculator-field-input:has(.loan-calculator-number-input):hover {
  background: #FAFAFA;
}

/* Focus state handled by :focus-within on field-input */

.loan-calculator-dropdown::placeholder,
.loan-calculator-date-input::placeholder,
.loan-calculator-currency-input::placeholder,
.loan-calculator-number-input::placeholder {
  color: #A4A7AE;
  font-size: 13px;
  font-family: 'Inter';
}

/* Placeholder color for select */
.loan-calculator-dropdown option:disabled {
  color: #A4A7AE;
}

/* LOAN-CALCULATOR RATE INPUT STYLES */
.loan-calculator-rate-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.loan-calculator-rate-group {
  display: grid;
  gap: 8px;
  width: inherit;
  align-items: center;
  min-height: 32px;
  grid-template-columns: 5fr 1fr;
}
.sme-rate-fixed-panel {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sme-rate-fixed-panel .sme-rate-fixed-input {
    flex: 1;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    font-family: 'Inter';
    font-size: 13px;
    color: #101828;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    -moz-appearance: textfield;
}
.sme-rate-fixed-panel .sme-rate-fixed-input::-webkit-outer-spin-button,
.sme-rate-fixed-panel .sme-rate-fixed-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sme-rate-fixed-panel .sme-rate-fixed-input::placeholder {
    color: #A4A7AE;
    font-size: 13px;
    font-family: 'Inter';
}
.sme-rate-fixed-panel .sme-rate-fixed-input:focus {
    border-color: #01A38A;
}
.sme-rate-fixed-panel .sme-rate-unit-select {
    /* width: 89px; */
    min-width: 89px;
    height: 32px;
    padding: 0 24px 0 12px;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    font-family: 'Inter';
    font-size: 13px;
    color: #717680;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 0.5L4 3.5L7 0.5' stroke='%23717680' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
    cursor: pointer;
    box-sizing: border-box;
}

.loan-calculator-rate-suffix {
  color: #717680;
  font-size: 13px;
  font-family: 'Inter';
  white-space: nowrap;
  padding-right: 8px;
}

.rate-helper {
  font-size: 0.8rem;
  color: #245FDF;
  margin-top: 0;
  /* font-style: italic; */
  min-height: 1.2em;
  font-weight: 500;
  position: absolute;
  bottom: -21px;
  font-size: 13px;
}
/* FLOATING RATE STYLES */
.sme-rate-type-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    background: #F3F4F7;
    border-radius: 8px;
    padding: 2px;
}

.sme-rate-tab {
    flex: 1;
    padding: 6px 12px;
    text-align: center;
    font-size: 13px;
    font-family: 'Inter';
    color: #717680;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.sme-rate-tab:hover {
    color: #101828;
}

.sme-rate-tab-active {
    background: #fff;
    color: #01A38A;
    font-family: 'Inter Medium';
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sme-rate-floating-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #D5D7DA;
}

.sme-rate-period {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.sme-rate-period-text {
    font-size: 13px;
    font-family: 'Inter';
    color: #101828;
    line-height: 18px;
    white-space: nowrap;
}

.sme-rate-period input[type="number"] {
    width: 52px;
    height: 25px;
    padding: 0 8px;
    border: 1px solid #D5D7DA;
    border-radius: 6px;
    font-family: 'Inter';
    font-size: 13px;
    color: #101828;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    text-align: left;
    -moz-appearance: textfield;
}

.sme-rate-period input[type="number"]::-webkit-outer-spin-button,
.sme-rate-period input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sme-rate-period input[type="number"]:focus {
    border-color: #01A38A;
}

.sme-rate-period input[type="number"][readonly] {
    background: #F3F4F7;
    color: #717680;
    cursor: default;
}

.sme-rate-period .sme-rate-value-input {
    width: 68px;
}

.sme-rate-period .sme-rate-unit-select {
    width: 89px;
    height: 25px;
    padding: 0 24px 0 12px;
    border: 1px solid #D5D7DA;
    border-radius: 8px;
    font-family: 'Inter';
    font-size: 13px;
    color: #717680;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 0.5L4 3.5L7 0.5' stroke='%23717680' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
    cursor: pointer;
    box-sizing: border-box;
}

.sme-rate-period-delete {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    flex-shrink: 0;
}

.sme-rate-period-delete svg {
    width: 16px;
    height: 18px;
}

.sme-rate-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 3px;
    border: 0.5px solid #D5D7DA;
    border-radius: 4px;
    background: #fff;
    font-size: 11px;
    font-family: 'Inter';
    color: #717680;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.sme-rate-add-btn:hover {
    border-color: #01A38A;
    color: #01A38A;
}

.sme-rate-toggle-btn {
    padding: 0 20px 0 8px;
    border: 0.5px solid #245FDF;
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    font-family: 'Inter Bold';
    /* font-weight: 600; */
    color: #245FDF;
    cursor: pointer;
    letter-spacing: 0.5px;
    line-height: 16px;
    white-space: nowrap;
    height: 20px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23245FDF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    outline: none;
}

.sme-rate-toggle-btn:hover {
    background-color: #F0F6FE;
}

.sme-rate-toggle-btn:focus {
    border-color: #245FDF;
    box-shadow: 0 0 0 1px rgba(36, 95, 223, 0.2);
}

/* END FLOATING RATE STYLES */

/* FLOATING RATE UTILITY CLASSES */
.sme-rate-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sme-rate-hidden {
    display: none;
}

.sme-rate-add-btn-hidden {
    display: none;
}

/* END FLOATING RATE UTILITY CLASSES */

/* END LOAN-CALCULATOR INPUT STYLES */

/* LOAN-CALCULATOR DATE PICKER STYLES */
.loan-calculator-date-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.loan-calculator-date-wrapper .loan-calculator-date-input {
  flex: 1;
  width: 100%;
  padding: 0 36px 0 12px;
  border: none;
  outline: none;
  font-family: Inter;
  font-size: 13px;
}

.loan-calculator-date-icon {
  position: absolute;
  right: 10px;
  /* width: 18px; */
  /* height: 18px; */
  cursor: pointer;
  pointer-events: none;
}

.loan-calculator-date-input.invalid {
  border-color: #ef4444 !important;
}
/* END LOAN-CALCULATOR DATE PICKER STYLES */

.loan-calculator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.loan-calculator-btn {
  height: 40px;
  min-width: 80px;
  padding: 0 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-family: 'Inter Medium';
  line-height: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loan-calculator-btn-outline-light {
  background: #E6F6F3;
  color: #01A38A;
}

.loan-calculator-btn-outline-blue {
  background: white;
  color: #245FDF;
  border: 1px solid #245FDF;
  text-decoration: none;
}

.loan-calculator-btn-solid {
  background: #01A38A;
  color: white;
  position: relative;
  padding-left: 36px;
}

.loan-calculator-btn-solid::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url('/sites/sme/images/pages/tool-lending/cal.webp') center/contain no-repeat;
}

.loan-calculator-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LOAN-CALCULATOR-SECTION */
.loan-calculator-section {
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #D5D7DA;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

.loan-calculator-remove-btn {
  /* width: 24px; */
  /* height: 24px; */
  border: none;
  /* background: #F3F3F3; */
  border-radius: 4px;
  cursor: pointer;
  /* color: #717680; */
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  /* transition: all 0.2s ease; */
}

.loan-calculator-remove-btn:hover {
  /* background: #E5E5E5; */
}

.loan-calculator-remove-btn-icon {
  /* width: 16px; */
  /* height: 16px; */
}

/* LOAN-CALCULATOR-RESULTS */
.loan-calculator-results {
  width: 100%;
  max-width: 1208px;
  margin: 40px auto;
  padding: 24px 32px;
  background: white;
  border-radius: 20px;
  box-shadow: 0px 0px 16.8px rgba(72.04, 154.47, 118.75, 0.24);
}

/* === RESULTS HEADER === */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.results-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-title-badge {
  width: 40px;
  height: 40px;
  background: #E6F6F3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.results-title-text {
  color: #1F1F1F;
  font-size: 20px;
  font-family: 'Inter SemiBold';
  line-height: 28px;
}

.download-btn {
  height: 40px;
  padding: 0 20px;
  background: #245FDF;
  color: white;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-family: 'Inter SemiBold';
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-btn:hover {
  /* background: #059669; */
  /* transform: translateY(-2px); */
}

.download-btn-icon {
  font-size: 16px;
}

.loan-result-item {
  margin-bottom: 24px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #D5D7DA;
}

.loan-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.loan-result-title {
  font-size: 16px;
  font-family: 'Inter SemiBold';
  color: #01A38A;
}

.loan-result-method {
  font-size: 13px;
  color: #717680;
}

.loan-result-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.loan-result-summary-item > div:first-child {
  font-size: 12px;
  color: #717680;
  margin-bottom: 4px;
}

.loan-result-summary-item > div:last-child {
  font-size: 20px;
  font-family: 'Inter Bold';
  color: #01A38A;
}

.loan-result-schedule-toggle {
  cursor: pointer;
  padding: 12px;
  background: #E6F6F3;
  border-radius: 8px;
  text-align: center;
  color: #01A38A;
  font-size: 13px;
  font-family: 'Inter Medium';
  transition: all 0.2s ease;
}

.loan-result-schedule-toggle:hover {
  background: #D4F0EC;
}

.loan-result-schedule {
  display: none;
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.loan-result-schedule table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.loan-result-schedule thead tr {
  background: #F5F5F5;
}

.loan-result-schedule th,
.loan-result-schedule td {
  padding: 8px;
  border: 1px solid #D5D7DA;
}

.loan-result-schedule th {
  text-align: left;
  font-family: 'Inter SemiBold';
  color: #1F1F1F;
}

.loan-result-schedule td {
  font-family: 'Inter';
  color: #1F1F1F;
}

.loan-result-schedule td:nth-child(2),
.loan-result-schedule td:nth-child(3),
.loan-result-schedule td:nth-child(4),
.loan-result-schedule td:nth-child(5) {
  text-align: right;
}

/* LOAN-CALCULATOR-RESULTS - ENHANCED */
.kpi-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}

.kpi-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kpi-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.kpi-card.kpi-green {
  border: 1px solid var(--State-Green-1, #14BB2F);
}

.kpi-card.kpi-orange {
  border: 1px solid var(--State-Orange-1, #F88827);
}

.kpi-card.kpi-blue {
  border: 1px solid var(--State-Blue-1, #007AFF);
}

.kpi-card.kpi-red {
  border: 1px solid var(--State-Red-1, #DC2626);
}

.kpi-card.kpi-highlight {
  border-top-color: #245FDF;
  background: #F0F6FE;
}

.kpi-card.kpi-warning {
  border-top-color: #f59e0b;
  background: #FFFBEB;
}

.kpi-label {
  font-size: 13px;
  color: #717680;
  font-family: 'Inter Medium';
  font-weight: 500;
}

.kpi-value {
  font-size: 28px;
  /* font-weight: 800; */
  color: #1F1F1F;
  font-family: 'Inter bold';
  line-height: 1.2;
}

.kpi-card.kpi-green .kpi-value {
  color: #14BB2F;
}

.kpi-card.kpi-orange .kpi-value {
  color: #F88827;
}

.kpi-card.kpi-blue .kpi-value {
  color: #007AFF;
}

.kpi-card.kpi-red .kpi-value {
  color: #DC2626;
}

.kpi-sub {
  font-size: 12px;
  color: #717680;
  margin-top: 4px;
  font-family: 'Inter';
  line-height: 1.4;
}

.charts-container {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
}

.chart-main {
  border-left: 4px solid #245FDF;
}

.chart-side {
  border-left: 4px solid #245FDF;
}

.chart-header {
  margin-bottom: 16px;
}

.chart-title {
  color: #1F1F1F;
  font-size: 16px;
  font-family: 'Inter SemiBold';
  line-height: 22px;
}

.chart-body {
  flex: 1;
  min-height: 300px;
  position: relative;
  /* font-family: 'Inter Bold'; */
}

.results-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  overflow-x: auto;
  flex-wrap: nowrap;
  border-bottom: var(--Border-Width-1px, 1px) solid var(--Stroke-Neutral, #D5D7DA);
}

.result-tab {
  padding: 10px 20px;
  /* background: #E5E7EB; */
  border: none;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  /* font-weight: 600; */
  /* color: #666; */
  white-space: nowrap;
  font-family: 'Inter medium';
  font-size: 13px;
  /* transition: all 0.2s ease; */
  background: #fff;
}

.result-tab:hover {
  background: #D1D5DB;
}

.result-tab-active {
  /* background: #01A38A; */
  color: #245FDF;
  border-radius: var(--Radius-Defaullt, 8px) var(--Radius-Defaullt, 8px) 0 0;
  border-bottom: var(--Border-Width-2px, 2px) solid #245FDF;
}

.results-tab-content {
  background: white;
  /* border: 1px solid #D5D7DA; */
  /* border-radius: 0 0 8px 8px; */
  /* padding: 16px; */
}

.result-tab-pane {
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #D5D7DA;
  border-radius: 8px;
  background: white;
  max-height: 400px;
  overflow-y: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table-wrap thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-wrap th {
  background: #F5F5F5;
  padding: 12px;
  text-align: right;
  border-bottom: 2px solid #D5D7DA;
  font-size: 12px;
  color: #000;
  white-space: nowrap;
  font-family: 'Inter SemiBold';
}

.table-wrap th:first-child {
  text-align: center;
}

.table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid #D5D7DA;
  text-align: right;
  color: #333;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: 'Inter';
  font-size: 13px;
}

.table-wrap td:first-child {
  text-align: center;
}

.table-wrap td:last-child {
  color: #D92D20;
  /* background: #F0FDFA; */
}

.table-wrap tbody tr:hover {
  background: #F9FAFB;
}

.results-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.export-btn {
  padding: 12px 28px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  background: #10b981;
  color: white;
  font-family: 'Inter';
  min-width: 250px;
}

.export-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* Custom Toast Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* END LOAN-CALCULATOR-RESULTS */
/* END LOAN-CALCULATOR-FORM */

/* LOAN-PACKAGES */
.loan-packages {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1272px;
  margin: 0 auto;
  /* display: none; */
  padding-top: 40px;
  padding-bottom: 40px;

}

.loan-packages-section-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.loan-packages-section-title {
  color: #1F1F1F;
  font-size: 20px;
  font-family: 'Inter SemiBold';
  line-height: 28px;
}

.loan-packages-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.loan-packages-tab {
  height: 32px;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-family: 'Inter Medium';
  line-height: 18px;
}

.loan-packages-tab-active {
  background: #F0F6FE;
  border: 1px solid #245FDF;
  color: #245FDF;
}

.loan-packages-tab-default {
  background: white;
  border: 1px solid #D5D7DA;
  color: #101828;
}

.loan-packages-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.loan-packages-carousel-btn {
  width: 32px;
  height: 32px;
  padding: 8px;
  background: white;
  border: 1px solid #D5D7DA;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.1);
}

.loan-packages-carousel-btn:hover {
  background: #F5F5F5;
}

.loan-packages-carousel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.loan-packages-carousel::-webkit-scrollbar {
  display: none;
}

.loan-packages-card {
  width: 260px;
  height: auto;
  padding: 13px 16px 16px;
  background: white;
  border-radius: 12px;
  /* display: flex; */
  /* flex-direction: column; */
  justify-content: space-between;
  align-items: center;
  /* flex-shrink: 0; */
  scroll-snap-align: start;
  display: grid;
  justify-items: center;
  gap: 17px;
}

.loan-packages-card-logo {
  width: 136px;
  height: 59px;
  align-items: center;
  display: grid;
}

.loan-packages-card-logo img {
    /* max-width: 75px; */
    /* max-height: 36px; */
    /* object-fit: contain; */
}

.loan-packages-card-content {
  width: 228px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loan-packages-card-badge {
  height: 24px;
  padding: 10px 12px;
  background: #E5F1FF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  font-size: 11px;
  font-family: 'Inter';
  line-height: 14px;
}

.loan-packages-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.loan-packages-card-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loan-packages-card-info-label {
  color: #74757C;
  font-size: 13px;
  font-family: 'Inter';
  line-height: 16px;
}

.loan-packages-card-info-value {
  color: #01A38A;
  font-size: 20px;
  font-family: 'Inter Bold';
  line-height: 32px;
}

.loan-packages-card-info-value-secondary {
  color: #0F172A;
  font-size: 13px;
  font-family: 'Inter Bold';
  line-height: 16px;
}

.loan-packages-card-actions {
  width: 228px;
  display: flex;
  gap: 8px;
}

.loan-packages-card-btn {
  flex: 1;
  height: 32px;
  min-width: 64px;
  padding: 0 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: 'Inter Medium';
  line-height: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loan-packages-card-btn-outline {
  background: white;
  border: 1px solid #D1D5DB;
  color: #111827;
}

.loan-packages-card-btn-solid {
  background: #01A38A;
  color: white !important;
}

.loan-packages-card-btn-solid:hover {
  background: #01937D;
}
@media (max-width:979px){
  .loan-packages{
    padding: 22px;
  }
}
/* END LOAN-PACKAGES */

/* GUIDE-SECTION */
.guide-section {
  width: 100%;
  padding: 56px 0;
  background: white;
  display: flex;
  justify-content: center;
  /* max-width: 1270px; */
  margin: 0 auto;
  /* display: none; */
}

.guide-section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* gap: 32px; */
  max-width: 1208px;
}

.guide-section-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.guide-section-graphics {
  flex: 1;
  height: 606px;
  position: relative;
}

.guide-section-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.guide-section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.guide-section-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.guide-section-badge {
  width: 24px;
  height: 24px;
  background: #01A38A;
  border-radius: 4px;
  margin-top: 7px;
}

.guide-section-title {
  flex: 1;
  color: #1F1F1F;
  font-size: 24px;
  font-family: 'Inter SemiBold';
  line-height: 36px;
}

.guide-section-description {
  color: #1F1F1F;
  font-size: 13px;
  font-family: 'Inter';
  line-height: 18px;
}

.guide-section-description strong {
  font-family: 'Inter SemiBold';
}

.guide-section-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.guide-section-accordion {
  width: 100%;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #D9DADE;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.guide-section-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}

.guide-section-accordion-title {
  flex: 1;
  color: #1F1F1F;
  font-size: 16px;
  font-family: 'Inter SemiBold';
  line-height: 22px;
}

.guide-section-accordion-toggle {
  width: 24px;
  height: 24px;
  background: #F3F3F3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.guide-section-accordion-toggle-icon {
  /* width: 24px; */
  /* height: 24px; */
  background-image: url('/sites/sme/images/pages/tool-lending/off.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 12px;
  height: 6px;
}

.guide-section-accordion-toggle-icon-active {
  background-image: url('/sites/sme/images/pages/tool-lending/on.webp');
  width: 12px;
  height: 6px;
}

.guide-section-accordion-body {
  display: none;
  flex-direction: column;
  gap: 12px;
}

/* MÃƒÂ¡Ã‚ÂºÃ‚Â·c Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚Â»Ã¢â‚¬Â¹nh mÃƒÂ¡Ã‚Â»Ã…Â¸ accordion Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚ÂºÃ‚Â§u tiÃƒÆ’Ã‚Âªn */
.guide-section-accordion:first-child .guide-section-accordion-body {
  display: flex;
}

/* Active state cho toggle icon cÃƒÂ¡Ã‚Â»Ã‚Â§a accordion Ãƒâ€žÃ¢â‚¬ËœÃƒÂ¡Ã‚ÂºÃ‚Â§u tiÃƒÆ’Ã‚Âªn */
.guide-section-accordion:first-child .guide-section-accordion-toggle-icon {
  background-image: url('/sites/sme/images/pages/tool-lending/on.webp');
}

.guide-section-accordion-text {
  color: #1F1F1F;
  font-size: 13px;
  font-family: 'Inter';
  line-height: 18px;
}

.guide-section-accordion-text strong {
  font-family: 'Inter SemiBold';
}

/* ACCORDION TABLE */
.guide-section-accordion-table {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #D5D7DA;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.guide-section-accordion-table-row {
  display: flex;
  border-bottom: 1px solid #E9EAEB;
}

.guide-section-accordion-table-row:last-child {
  border-bottom: none;
}

.guide-section-accordion-table-header {
  background: #FAFAFA;
}

.guide-section-accordion-table-header .guide-section-accordion-table-cell {
  font-family: 'Inter SemiBold';
  font-weight: 600;
  color: #101828;
}

.guide-section-accordion-table-cell {
  flex: 1;
  padding: 16px 12px;
  color: #101828;
  font-size: 13px;
  font-family: 'Inter';
  line-height: 18px;
  border-right: 1px solid #E9EAEB;
  display: flex;
  align-items: center;
}

.guide-section-accordion-table-cell:last-child {
  border-right: none;
}

/* ACCORDION SUBTITLE */
.guide-section-accordion-subtitle {
  color: #1F1F1F;
  font-size: 13px;
  font-family: 'Inter SemiBold';
  font-weight: 600;
  line-height: 18px;
}

/* ACCORDION TEXT ITALIC */
.guide-section-accordion-text-italic {
  background: #F5F5F5;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid #01A38A;
}

.guide-section-cta-btn {
  height: 40px;
  min-width: 80px;
  padding: 0 12px;
  background: #01A38A;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white !important;
  font-size: 13px;
  font-family: 'Inter Medium';
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
  text-decoration: none;
}

.guide-section-cta-btn:hover {
  background: #01937D;
}

.guide-section-graphics-wrapper {
  width: 480px;
  height: 606px;
  position: absolute;
  left: 72px;
  top: 0;
  overflow: hidden;
}

.guide-section-graphics-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* END GUIDE-SECTION */

/* SAVING-BANNER */
.saving-banner {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 1272px;
  margin: 0 auto;
  background: url(/sites/sme/images/pages/tool-lending/bg-save.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  display: none;
  margin-bottom: 40px;
}

.saving-banner.show {
  display: block;
}

.saving-banner-background {
  width: 1272px;
  height: 140px;
  border-radius: 20px;
  overflow: hidden;
  display: none;
  padding: 16px;
}

.saving-banner-background img {
  width: 1436px;
  height: 992px;
  margin-left: -63px;
  margin-top: -496px;
}

.saving-banner-content {
  /* position: absolute; */
  /* top: 16px; */
  /* left: 50%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding: 16px;
}

.saving-banner-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.saving-banner-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saving-banner-title {
  text-align: center;
  color: white;
  font-size: 16px;
  font-family: 'Inter SemiBold';
  line-height: 22px;
}

.saving-banner-highlight {
  text-align: center;
  color: #FFEA4C;
  font-size: 36px;
  font-family: 'Inter Bold';
  line-height: 36px;
}

.saving-banner-description {
  text-align: center;
  color: white;
  font-size: 13px;
  font-family: 'Inter Regular';
  line-height: 18px;
}

.saving-description-bold {
  font-family: 'Inter SemiBold';
}

.saving-banner-button {
  height: 40px;
  min-width: 80px;
  padding: 0 12px;
  background: linear-gradient(90deg, #2AD8FF 0%, #73FFB9 100%);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #096579;
  font-size: 13px;
  font-family: 'Inter Medium';
  line-height: 18px;
  cursor: pointer;
  /* transition: all 0.2s ease; */
  text-decoration: none;
}

.saving-banner-button:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 12px rgba(42, 216, 255, 0.3);
}
/* END SAVING-BANNER */

@media (max-width: 979px) {
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .download-btn {
    width: 100%;
  }

  .kpi-board {
    grid-template-columns: repeat(1, 1fr);
  }

  .charts-container {
    grid-template-columns: 1fr;
  }

  .chart-body {
    min-height: 250px;
  }

  .results-tabs {
    flex-wrap: wrap;
  }

  .container {
    padding: 0 15px;
  }

  .hero-banner-content {
    padding: 60px 19px;
  }

  .hero-banner-text {
    text-align: center;
  }

  .hero-banner-title {
    font-size: 28px;
    line-height: 32px;
  }

  .hero-banner-description {
    font-size: 12px;
  }

  .loan-calculator-form {
    padding: 20px 15px;
    width: fit-content;
  }

  .loan-calculator-fields-row {
    flex-direction: column;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .loan-calculator-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .loan-calculator-btn-group {
    flex-direction: column;
  }

  .loan-packages-section-header {
    flex-direction: column;
    gap: 16px;
  }

  .loan-packages-tabs {
    flex-wrap: wrap;
  }

  .loan-packages-card {
    min-width: 260px;
  }

  .guide-section {
    padding: 40px 0;
  }

  .guide-section-row {
    flex-direction: column;
    gap: 32px;
    padding: 0 10px;
  }

  .guide-section-graphics {
    order: -1;
    width: 100%;
    height: auto;
    min-height: 300px;
  }

  .guide-section-graphics-wrapper {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
  }

  .guide-section-graphics-img {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
  }

  .guide-section-title {
    font-size: 20px;
    line-height: 28px;
  }

  .guide-section-accordion-toggle {
    flex-shrink: 0;
  }

  /* Loan calculator results responsive */
  .loan-calculator-results {
    padding: 20px 15px;
  }

  .loan-result-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .loan-result-schedule {
    max-height: 250px;
  }

  .loan-result-schedule table {
    font-size: 11px;
  }

  .loan-result-schedule th,
  .loan-result-schedule td {
    padding: 6px 4px;
  }

  .saving-banner-background {
    width: 100%;
    min-height: 140px;
    display: none;
  }

  .saving-banner-content {
    position: static;
    padding: 20px;
  }

  .saving-banner-title-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .saving-banner-highlight {
    font-size: 28px;
    line-height: 32px;
  }

  .saving-banner-button {
    width: 100%;
    min-width: auto;
  }

  /* Accordion table responsive */
  .guide-section-accordion-table {
    overflow-x: auto;
  }

  .guide-section-accordion-table-row {
    min-width: 500px;
  }

  .guide-section-accordion-table-cell {
    min-width: 120px;
    padding: 12px 8px;
    font-size: 12px;
  }

  .guide-section-accordion-text-italic {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Floating rate responsive */
  .sme-rate-period {
    flex-wrap: wrap;
  }

  .sme-rate-floating-panel {
    padding: 10px;
  }
}
/*#region Banner Footer */
.banner-footer {
  background-image: url(https://lending.misa.vn/eSign/images/pages/home/bg-register.jpg?ver=1);
  background-size: cover;
  height: 300px;
}
/*#endregion*/

/* robot fill */
img.ai-fill {
    position: absolute;
    right: 210px;
    top: 66px;
}

.wrap-ai-fill {
    position: relative;
}
.sme-cell-bold {
    font-weight: bold;
}

@media (max-width:979px){
    img.ai-fill {
display: none;
}
}
/* end robot fill */