html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Ensures the body takes full height */
    font-size:14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
body{
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

main{
    display:flex;
    flex-direction:row;
    padding:0;
    flex-grow:1;
}

#main_content{
    width:100%;
    height:100%;
}

.btn-main {
    color: #fff;
    background-color: #1d77ba;
    border-color: #1d77ba;
}

.main-container {
    position: absolute;
    top: 100px;
    bottom: 100px; 
    left: 0;
    right: 0;
}

/*#region Navbar */

.navbar-container{
    width:100%;
    display:flex;
    justify-content:space-between;
    padding-inline:20px;
}

.nav-item{
    margin:auto;
    cursor:default;
}


/*#endregion */

/*#region Body */
#Login {
    background-color: #EDF4FA;
}

#Login footer {
    background-color: #DBE3F8;
}

.footer {
    height:40px;
    display: flex;
    justify-content: flex-end;
}

.footer-container{
    display:flex;
    gap:15px;
    margin-right:15px;
    color:black;
    align-items:center;
}

.footer-container span{
   font-weight:600;
}

#footer{
    position:relative;
}

/*#endregion */

/*#region Login */
.login-container{
    width: 100%;
    height: 100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    margin:0;
    padding-top:20px;
}


.login-input-container{
    margin: 5rem 0px 15rem 0px;
    width:40vw;
}
/*#endregion */
/*#region forgot password */
.forgot-password-container{
    display:flex;
    flex-direction:column;
    width:100%;
    height:100%;
    padding:2rem;
}
/*#endregion */
/*#region change password */
.change-password-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 2rem;
}
/*#endregion */
/*#region register */
.register-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 2rem;
}


/*#endregion */
/*#region Authorized user layout */
.sidebar {
    width: 250px;
    background-color: white;
    color: black;
    padding-top: 25px;
    border-right: solid 1px #efe1bf;
}

    .sidebar a {
        color: black;
        text-decoration: none;
        padding: 10px 15px;
        display: block;
        margin-bottom:5px;
    }

        .sidebar a:hover {
            background-color: #fff8f0;
        }

        .sidebar-title{
            padding-left:20px;
            color:gray;
            padding-bottom:40px;
        }

.footer-authorized {
    background-color: #efe1bf;
}
/*#endregion */
/*#region Balance */
.authorized-main-container {
    width: 100%;
    height: 100%;
    background-color: #fff8f0;
    display:flex;
    flex-direction:column;
}


    .radiowrapper input {
        visibility: hidden;
        width: 0;
    }

    .radiowrapper label:hover {
        font-weight: bold
    }

    .radiowrapper input:checked + label {
        font-weight: bold;
    }

.balance-header-container{
    padding: 80px 100px 0px 100px;
    display: flex;
    justify-content:space-between;
    align-items:center;
}

.balance-period-option{
    cursor:pointer;
    color:dimgray;
}

.balance-period-option picked{
    color:saddlebrown;
    font-weight:bold;
}

#balance_period_picker {
    background-color: white;
    padding: 5px;
    border: 1px solid black;
    display:flex;
}

#balance_title{
    font-size:28px;
    font-weight:bold;
}
.balance-info-container {
    margin-top:5rem;
    display: flex;
    justify-content: center;
    align-items: center
}
.balance-info-title{
    margin:20px 0 0 40px;
}

.balance-info {
    margin: 0 20px;
    width: 25rem;
    height: 10rem;
    background-color: #efe1bf;
    display:flex;
    flex-direction:column;
}

.balance-info-data {
    font-size: 28px;
    font-weight: bold;
    margin: 40px 20px 0 40px;
}


.balance-period-container{
    display:flex;
    gap:15px;
}

#balance_period_label{
    margin:auto;
}
/*#endregion */

/*#region order history */
.order-title-row-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 2rem;
    margin-top:1rem;
    margin-bottom:1rem;
}

.filter-container {
    display: flex;
    align-items: center;
}

.filter-btn {
    margin-left: 2rem;
    width:4rem;
}

.order-history-container{
    width:100%;
    margin-top:40px;
    margin-bottom:120px;
    height:90%;
    min-height:350px;
    background-color:white;
    display:flex;
    flex-direction:column;
}

.order-title-container{
    display:flex;
    flex-direction:column;
}

.sort-filter{
    max-width:100px;
    margin-left:auto;
    margin-right:2rem;
    color:gray;
    border:none;
    padding:5px;
}

#order_title{
    margin-left:2rem;
    font-size:18px;
    font-weight:bold;
}

.page-list-container{
    align-self:end;
    margin-right:5rem;
    margin-top:auto;
}

.pagination li{
    margin-inline:3px;
}
/*#endregion */
/*#region history */
.history-table {
    margin-inline: 20px;
    border-spacing: 50px;
    border-collapse: separate;
    width: fit-content;
    max-width: 80vw;
    max-height: 100%;
    margin-inline: auto;
}



.horizontal-line {
    margin-inline: 20px;
}
/*#endregion */
/*#region transaction history
*/
.filter-form{
    display:flex;
}

#transaction_sort {
    max-width: 100px;
    margin-left: auto;
    margin-right: 2rem;
    color: gray;
    border: none;
    padding: 5px;
}

#transaction_title {
    margin-left: 2rem;
    font-size: 18px;
    font-weight: bold;
}
/*#endregion */
/*#region driver info */

.user-info {
    padding: 0.5rem;
}

.info-item label {
    font-size: 0.85rem;
}

.info-item p {
    font-size: 1rem;
}

.button-container {
    display: flex;
    justify-content: flex-start;
}

/*#endregion */
html {
    position: relative;
    min-height: 100%;
}

body {
  margin-bottom: 60px;
}