.plan-container {
    display: flex;
    margin: 10px;       /* get away from main menu and screen edge */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar {
    flex: 1;
    width: 200px;
    background-color: #f1f1f1;
    padding: 0px;
}
.main-content {
    display: flex;
    flex: 3;
    padding: 10px;
    overflow-x: auto;
}

.sidebar-item, .active-sidebar {
    margin-bottom: 0px;
    height: 70px;
    background-color: #ddd;
    border: 1px solid #ccc;
    overflow: hidden;
    cursor: pointer;
    color: #001f3f;
}
.active-sidebar {
    cursor: auto;
    background-color: #ffffff;
    border: none;
    border-left: 4px solid #001f3f;
    color: #001f3f;
}

.sidebar-title {
    font-weight: bold;
    padding-left: 10px;
    padding-top: 10px;
}
.sidebar-content {
    padding-left: 10px;
    font-size: 12px;
}

.page-settings {
    display: flex;
    flex: 1;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding-right: 10px;
}
.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.lbl-input-pair {
    display: flex;
    align-items: center;
    padding: 15px;
    white-space:nowrap;
}

.lbl-input-pair label {
    display: inline-block;
    margin-right: 10px;
    width: 180px;
    text-align: right;
    font-weight: bold;
}
.lbl-input-pair input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}
.lbl-input-pair input:focus {
    border-color: #1a73e8;
}



.checkbox-container {
    display: inline-flex;
}
.checkbox-container input[type="checkbox"] {
    margin-left: 0px;
    width: 20px; /* Set the width to desired size */
    height: 20px;
}

.lbl-input-pair select {
    width: 210px; /* Adjust width as necessary */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}


/************** TARGET **************/
.target-group {
    display: flex;
    padding: 0px;
    padding-top: 10px;

}
.target-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 200px;
    align-items: center;

}
.target-item {
    flex: 1;
    text-align: right;
    padding-top: 10px;
    align-items: flex-start;
    align-content: center;

}
.target-item input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    margin-left: 15px;
    width: 90px;
    text-align: center;

}

.target-item-age {
    flex: 1;
    text-align: right;
    padding-top: 10px;
    align-items: flex-start;
    align-content: center;

}
.target-item-age input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    margin-left: 15px;
    width: 90px;
    text-align: center;
}

.target-item input:focus {
    border-color: #1a73e8;
}

.target-label {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    white-space: nowrap;
    width: 110px;
}

.target-phase {
    display: flex;
    width: 160px;
    font-weight: bold;
    justify-content: right;
}
.age {
    width:60px;
    text-align:center;
}

/************** PENSION **************/

.pension-group {
    display: flex;
    padding: 0px;
}
.pension-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 350px;
    align-items: center;
}
.pension-item {
    flex: 1;
    text-align: right;
    padding-top: 5px;
    align-items: flex-start;
    align-content: center;
}
.pension-item input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    margin-left: 0px;
    width:110px;
    text-align:center;
}

.pension-item input:focus {
    border-color: #1a73e8;
}

.pension-label {
    font-weight: bold;
    font-size: 20px;
    width: auto;
    padding: 0 20px;
    text-align: center;
    white-space:nowrap;
}

.pension-phase {
    width: 165px;
    font-weight: bold;
}

.pension-item-checkbox {
    flex: 1;
    text-align: right;
    padding-top: 0px;
    align-items: flex-start;
    align-content: center;
}

.pension-checkbox {
    display: flex;
}

.pension-checkbox input[type="checkbox"] {
    margin-left: 0px;
    width: 20px; /* Set the width to desired size */
    height: 20px;
}


/************** ACCOUNTS **************/
.account-group {
    display: flex;
    padding: 0px;
    padding-top: 10px;

}
.account-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 260px;
    align-items: center;

}
.account-item {
    flex: 1;
    text-align: right;
    padding-top: 10px;
    align-items: flex-start;
    align-content: center;
}
.account-item input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    margin-left: 0px;
    width:110px;
    text-align:center;
}

.account-item input:focus {
    border-color: #1a73e8;
}

.account-label {
    font-weight: bold;
    font-size: 20px;
    width: auto;
    padding: 0 20px;
    text-align: center;
    white-space:nowrap;
}

.account-phase {
    width: 150px;
    font-weight: bold;
}



/************** HOME **************/
.home-group {
    display: flex;
    padding: 0px;
    padding-top: 10px;

}
.home-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 200px;
    align-items: flex-start;

}
.home-item {
    flex: 1;
    text-align: right;
    padding-top: 10px;
    align-items: flex-start;
    align-content: center;  /* center vertically */
}
.home-item input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    margin-left: 15px;
    width: 90px;
    text-align: center;

}

.home-item-age {
    flex: 1;
    text-align: right;
    padding-top: 10px;
    align-items: flex-start;
    align-content: flex-start;
}
.home-item-age input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    margin-left: 15px;
    width: 60px;
    text-align: center;
}

.home-item input:focus {
    border-color: #1a73e8;
}

.home-label {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    white-space: nowrap;
    width: 110px;
}

.home-phase {
    width: 190px;
    font-weight: bold;
}

/************** RENTAL **************/

.rental-group {
    display: flex;
    padding: 0px;
    padding-top: 20px;

}
.rental-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 380px;
    align-items: flex-start;

}
.rental-item {
    flex: 1;
    text-align: right;
    padding-top: 10px;
    align-items: flex-start;
    align-content: center;  /* center vertically */
}
.rental-item input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    margin-left: 15px;
    width: 90px;
    text-align: center;

}

.rental-item-age {
    flex: 1;
    text-align: right;
    padding-top: 10px;
    align-items: flex-start;
    align-content: flex-start;
}
.rental-item-age input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    margin-left: 15px;
    width: 60px;
    text-align: center;

}

.rental-item input:focus {
    border-color: #1a73e8;
}

.rental-label {
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    white-space: nowrap;
    width: 110px;
}

.rental-phase {
    width: 190px;
    font-weight: bold;
}

/************** SPECIAL CASES **************/
.special-box {
    display: flex;
    padding: 0px;
    border:2px solid #001f3f;
    border-radius: 8px;
    margin: 10px;
    height: 110px;
    width:100%;
    justify-content: flex-start;
}
.special-group {
    display: flex;
    padding: 0px;
}
.special-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 90px;
    align-items: center;
}
.special-item {
    flex: 1;
    text-align: right;
    padding-top: 10px;
    align-items: flex-start;
    align-content: center;
}
.special-item input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    margin-left: 10px;
    width:100px;
    text-align:center;
}

.special-item input:focus {
    border-color: #1a73e8;
}

.special-label {
    font-weight: bold;
    font-size: 18px;
    width: auto;
    padding: 0 20px;
    text-align: center;
    white-space:nowrap;
}
.special-phase {
    width: 185px;
    font-weight: bold;
}


.special-checkbox {
    display: flex;
}

.special-checkbox input[type="checkbox"] {
    margin-left: 0px;
    width: 20px; /* Set the width to desired size */
    height: 20px;
}

/********************************************************/
.help-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #001f3f;
    color: white;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-left: 5px;
    position: relative;
}

#tooltip {
    display: none;
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    white-space: normal; /* Allow text wrapping */
    max-width: 200px; /* Set a maximum width for the tooltip */
    overflow: hidden;
    word-wrap: break-word; /* Ensure long words are broken if necessary */
}



.property-group {
    border: 1px solid #ccc;
    padding: 5px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
}
#content-rentals {
    overflow-y: auto;
}


.bottom-wide-ad {
    display: flex;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: auto;
    height: auto;
    margin: 10px; 

}


/* Responsive Styles */
@media (max-width: 610px) {
    .lbl-input-pair {
        flex-direction: column;
        padding-left: 10px;
        align-items: flex-start;
    }
    .lbl-input-pair label {
        margin-right: 0px;
        text-align: left;
    }

    .target-label {
        font-size: 17px;
        white-space: normal;
        height: 30px;
        width: 60px;
    }
    .target-phase {
        font-size: 14px;
        width: 130px;
    }
    .target-item {
        margin-left: 0;
    }
    .target-item input[type="number"] {
        padding: 8px 5px 8px 5px;
        font-size: 0.95em;
        margin-left: 5px;
        width: 75px;
        text-align: center;
    }
    .target-item-age input[type="number"] {
        padding: 8px 5px 8px 5px;
        font-size: 0.95em;
        margin-left: 5px;
        width: 50px;
        text-align: center;
    }
    .help-icon {
        width: 18px;
        height: 18px;
        line-height: 20px;
        font-size: 13px;
        margin-left: 0px;
    }
    .home-phase {
        font-size: 14px;
        width: 130px;

    }
    .home-item input[type="number"] {
        margin-left: 5px;
    }
    .home-item-age input[type="number"] {
        margin-left: 5px;
    }
    .rental-phase {
        font-size: 14px;
        width: 130px;
    }
    .rental-item input[type="number"] {
        margin-left: 5px;
    }
    .rental-item-age input[type="number"] {
        margin-left: 5px;
    }
}

@media (max-width: 900px) {
    .pension-label {
        font-size: 20px;
        white-space: normal;
        width: 120px;
        height: 70px;
        margin: 20px 0 0 0 ;
        padding: 0;
    }
    .pension-phase {
        font-size: 15px;
        width: 155px;

    }
    .pension-item {
        margin-left: 0;
    }
    .pension-item input[type="number"] {
        padding: 8px 0px 8px 3px;
        font-size: 0.95em;
        margin-left: 0px;
        width:90px;
    }

}

@media (max-width: 600px) {
    .pension-label {
        font-size: 18px;
        white-space: normal;
        width: 90px;
        height: 70px;
        margin: 20px 0 0 0 ;
        padding: 0;
    }
    .pension-phase {
        font-size: 15px;
        width: 85px;

    }
    .pension-item {
        margin-left: 0;
    }
    .pension-item input[type="number"] {
        padding: 8px 0px 8px 3px;
        font-size: 0.95em;
        margin-left: 0px;
        width:80px;
    }

}

@media (max-width: 800px) {
    .account-label {
        font-size: 18px;
        white-space: normal;
        width: 90px;
        height: 50px;
        margin: 20px 0 0 0 ;
        padding: 0;
    }
    .account-phase {
        font-size: 15px;
        width: 110px;
    }
    .account-item {
        margin-left: 0;
    }
    .account-item input[type="number"] {
        padding: 8px 0px 8px 3px;
        font-size: 0.95em;
        margin-left: 0px;
        width:80px;
    }
}