
/* Container form factor */
.container{
    width: 100%;
    margin-top: 24px;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.21);
    grid-column: 2;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, fit-content(100px));
    gap: 28px;
    padding: 24px;
}

/* End of container styling */

/* Spacers */
/* .divider - A vertical bar separator from selection menus */

.divider {
    margin: 0 4px;
    color: #F2F2F2;
    user-select: none;
    font-weight: 200;
    font-size:24px;
}

/* Horizontal Line separator between section !Displayed only on mobile */
.section-separator{
    display: none;
    margin: 24px auto;
    width: 100%;
    height: 1.5px;
    background: #F2F2F2;
    border: none;

}

/* section-separator - A vertical line that separates the actionable area from the summary area on desktop devices. */
.vertical-separator{
    width: 2.5px;
    height: 100%;
    background: #F2F2F2;
    grid-row: 1/5;
    grid-column: 1;
    margin: 0;
    justify-self: right;
}

/* End of Separators section */

#early-payments-list{
    width: fit-content;
}

.details{
    width: 340px;
}

.details h2{
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
}
.subtitle{
    font-size: 0.75rem;
    font-weight: 300;
    font-style: italic;
    color: #787878;
}


.picker{
    margin-top: 10px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 200;
}

.active{
    font-weight:400;
    text-decoration: underline;
    text-decoration-color: #FF6B00;
    text-underline-offset: 4px;
}

#loan-type{
    grid-row: 1;
    grid-column: 1;
}

#interest-type{
    grid-row: 2;
    grid-column: 1;
    margin-top: 20px;
}

#summary{
    grid-row: 1;
    grid-column: 2;
}

#amortization{
    grid-row: 2/5;
    grid-column: 2/4;
    width: 100%;
    height: fit-content;
}

#amortization h2{
    font-weight: 600;
    }

#early-payments-add{
    grid-row: 3;
    grid-column: 1;
}

#report-generator{
    grid-row: 4;
    grid-column: 1;
}

.erl-table-wrapper{
    overflow: auto;
    height: 150px;
}

.amo-table-wrapper{
    overflow-x: auto;
    height:550px;
}
table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.9rem;
}

table th,
table td {
  padding: 6px 10px;
}

table thead th {
  background: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: clamp(0.5rem, 0.8vw, 1rem);
}

table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

table th {
  font-weight: 600;
  text-align: center;
}

.slider-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.num {
    background: #f5f5f5;
    border: none;
    padding: 4px 8px;
    font-size: 1rem;
    text-align: center;
    border-radius: 6px;
    width: 100px;
}

#time-input{
    width: 45px;
}


.percent-field {
  margin: 16px auto 0 auto;
  background-color: #f5f5f5;
  border-radius: 6px;
  width: fit-content;
  padding: 4px 8px;
  outline: none;
}

.percent-field input {
  width: 48px;
  background: transparent;
  text-align: right;
  border: none;
  height: 1rem;
  line-height: 1rem;
  font-size: 1rem;
  padding: 0;
}

.percent-field input:focus {
  outline: none;
  box-shadow: none;
}

.percent-field span {
  font-size: 1rem;
}

.percent-field.mix-field {
  margin: 16px 0 0 0;
}



/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.slider-area{
    margin-top: 24px;
}

.slider{
    margin-top: 12px;
}


.summary-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.line-value{
    font-weight: 600;
}

.form-row{
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    align-items: center;
    font-size: 0.9rem;
}

.btn-wrapper{
    width: 100%;
    margin: auto;
    display: flex;
    justify-content: center;
    gap:24px;
    margin-top: 24px;
}

.remove-btn{
    border: none;
    background: transparent;
    font-size: 0.9rem;
}

.download-button{
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background-color: #ff7a00;
    width: 120px;
}

/* if a reset is winning, this selector will win back */
button,
button:hover
{
    cursor: pointer;
}


.add-button{
    float: right;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background-color: #ff7a00;
}
.add-button:hover{
    cursor: pointer;
}

.empty-early{
    font-size: 0.9rem;
    margin: 100px auto;
    text-align: center;
}

@media (max-width: 767px) {
    .container{
        width: 100%;
        margin-top: 24px;
        border-radius: 8px;
        box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.00);
        grid-column: 1;
        grid-row: 3;
        display: block;
        padding: 0;
    }

    .details{
        width: 100%;
    }

    .vertical-separator{ display: none; }
    .section-separator{ display: block; }

    #amortization{
    width: 100%;
    font-size: 0.8rem;

    h2{
        margin: 28px 0px;
        font-weight: 600;
        }
    }
    .amo-table th:nth-child(2),
    .amo-table td:nth-child(2),
    .amo-table th:nth-child(7),
    .amo-table td:nth-child(7) {
        display: none;
    }

    table{
        font-size: 0.7rem !important;
    }

    table th{
        font-size: clamp(0.5rem, 2vw, 0.7rem);
    }
    .amo-table-wrapper{
        height: 350px;
    }

    #early-payments-add{
        margin-bottom: 83px;
    }

}