* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #fff;
  font-family: "Figtree", sans-serif;
}

::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

.sub-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.sub-container1 {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
}

.title {
  margin: 0;
  margin: 8px 0;
  color: #444;
  padding: 10px 15px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  background-color: #fff;
  border-color: #e0e0e0;
  font-weight: 700;
  font-size: 18px;
}

.titles {
  padding: 15px 0 4px;
}

.details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 7px;
}

.details p {
  margin: 0;
  color: #555;
  font-weight: 400;
  font-size: 14px;
  display: flex !important;
  flex-wrap: wrap;
}

.details input {
  height: 30px;
  width: 110px;
  padding: 5px 10px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  border-radius: 3px;
  background-color: #f7f7f7 !important;
  border: 0 solid #f7f7f7 !important;
}

.details input:focus {
  border: 0 solid #f7f7f7 !important;
  outline: none;
}

.select-wrapper {
  position: relative;
  height: 30px;
}

.select-wrapper input {
  height: 30px;
  width: 80px;
  padding: 5px 10px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  border-radius: 3px;
  background-color: #f7f7f7 !important;
  border: 0 solid #f7f7f7 !important;
}

.select-wrapper select {
  width: 90px;
  padding: 8px 36px 8px 12px;
  background-color: #f7f7f7 !important;
  border: 0 solid #f7f7f7 !important;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  cursor: pointer;
}

.select-wrapper1 select {
  width: 110px;
}

.select-wrapper2 select {
  width: 100%;
}

.select-wrapper select:focus {
  border: 0 solid #f7f7f7 !important;
  outline: none;
}

.select-wrapper::after {
  content: "▼";
  font-size: 8px;
  color: white;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 30px;
  background-color: #94104e;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 4px 4px 0;
  pointer-events: none;
}

.reset-button {
  background-color: #94104e;
  height: 30px;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-left: auto;
  margin-top: 7px;
}

.reset-button:hover {
  background-color: #891b4f;
}

.reset-icon {
  font-size: 16px;
}

.note {
  font-size: 10px;
  color: #544e4f;
  text-decoration: none;
  line-height: 150%;
  padding-top: 7px;
}

.details-1 p {
  font-size: 17px;
  color: #94104e;
  padding-top: 7px;
}

.details-2 p {
  font-size: 14px;
  color: #555;
  padding-top: 7px;
}

.VisiAbButton {
  background-color: #94104e;
  margin-left: auto;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  color: #fff;
  margin-left: auto;
}

.content p {
  font-weight: 600;
  margin: 0;
  color: #555;
  font-weight: 400;
  font-size: 14px;
  display: flex !important;
  flex-wrap: wrap;
  padding: 1px;
  line-height: 20px;
}

.visiAbacus_Ass p,
ul,
li {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  margin-bottom: 6px;
  font-size: 14px;
  color: #000;
}

.close-btn {
  padding: 5px;
  text-align: right;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 4% auto;
  border-radius: 6px;
  width: 80%;
  position: relative;
}

.content {
  padding: 20px;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.visiCSSHeader {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #444;
  margin: 0;
  padding: 0;
}

ul {
  padding-left: 20px;
}

li {
  line-height: 22px;
}

.logo-btn {
  margin-top: 10px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-btn1 {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-pair,
.btn-pair2 {
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
}

.btn-pair button,
.btn-pair2 button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 8px 15px;
  font-size: 14px;
  color: white;
  cursor: pointer;
  height: 30px;
}

.btn-print {
  background-color: #d3317d;
  width: 50%;
}

.btn-assumption {
  background-color: #94104e;
  width: 50%;
}

.btn-print1 {
  background-color: #d3317d;
  font-size: 12px;
}

.btn-assumption1 {
  background-color: #94104e;
  font-size: 12px;
}

.btn-pair2 .reset-button {
  background-color: #94104e;
  width: 33.3%;
  margin: 0 !important;
  border-radius: 0;
}

.btn-pair2 .btn-print {
  background-color: #d3317d;
  width: 33.3%;
}

.btn-pair2 .btn-assumption {
  background-color: #94104e;
  width: 33.3%;
}

.btn-pair i,
.btn-pair2 i {
  margin-right: 6px;
}

.purple-text p {
  font-size: 17px;
  color: #94104e;
}

#UserLogo {
  text-align: center;
}

#UserLogo img {
  max-width: 100px !important;
  vertical-align: middle;
}

.select-group {
  padding-top: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.select-group1 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

label {
  margin: 0;
  color: #555;
  font-weight: 400;
  font-size: 14px;
}

.btn-groups {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.btn-groups1 {
  display: flex;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  align-items: center;
  height: 30px;
}

.sub-container1[data-show-when] {
  overflow: hidden;
  transition: display 0.3s ease;
  display: grid;
}

.sub-container1.hidden {
  display: none;
  pointer-events: none;
}

.btn {
  padding: 6px 14px;
  background-color: white;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  border-right: 1px solid #ccc;
  transition: background-color 0.2s, color 0.2s;
}

.btn1 {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  background-color: white;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  border-right: 1px solid #ccc;
  transition: background-color 0.2s, color 0.2s;
}

.btn:last-child {
  border-right: none;
}

.btn.active {
  background-color: #94104e;
  color: white;
}

.btn:hover:not(.active) {
  background-color: #f2f2f2;
}

.btn1:last-child {
  border-right: none;
}

.btn1.active {
  background-color: #94104e;
  color: white;
}

.btn1:hover:not(.active) {
  background-color: #f2f2f2;
}

.stamp {
  margin: 0;
  color: #555;
  font-weight: 400;
  font-size: 14px;
}

.stamps {
  align-items: center;
  padding-top: 7px;
}

.stamps input {
  height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  border-radius: 3px;
  background-color: #f7f7f7 !important;
  border: 0 solid #f7f7f7 !important;
}

.stamps input:focus {
  border: 0 solid #f7f7f7 !important;
  outline: none;
}

.rentbuy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
}

.rentbuy .subtitle {
  font-size: 14px;
  color: #555;
  margin: 0;
  padding: 0;
}

.rentbuy .amt {
  font-size: 20px;
  color: #94104e;
  margin: 0;
  padding: 0;
  text-align: center;
  font-weight: 700;
  padding: 8px 0;
}

.grid-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #ccc;
}

.grid-container:last-child {
  border-bottom: none;
}

.table-rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #333;
}

.table-rates th,
.table-rates td {
  border: 1px solid #ddd;
  padding: 6px 16px;
  text-align: left;
  vertical-align: top;
}

.table-rates th {
  background-color: #f5f5f5;
  font-weight: 600;
  text-align: center;
}

.table-rates td {
  line-height: 20px;
}

.table-rates tr:nth-child(even) {
  background-color: #fafafa;
}

.table-rates tr.alt {
  background-color: #f0f0f5;
}

.table-rates tr:hover {
  background-color: #f1f1f1;
}

.loan-comp-sec {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

  .sub-container {
    grid-template-columns: 1fr;
  }

  .logo-btn {
    margin-top: 10px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-pair2 {
    margin-top: 10px;
  }
}

@media print {
  @page {
    margin: 0;
  }

  body {
    margin: 1cm;
  }
}