@import url('/styles/controls/imageUploader.css');

*{
    color: inherit;
}

.rounded-box{
    background: var(--white-color);
    border: none;
    box-shadow: 0px 0px 3px var(--light-shadow-color);
    color: var(--primary-black-color);
    caret-color: var(--main-color);
    margin-top: 12px;
    margin-bottom: 12px;
}

.dropdown-title.selected{
    color: var(--primary-black-color);
}

@media (min-width: 1200px){
    .container{
        max-width: 1320px;
    }
}

.div-body{
    background: var(--light-bg-color);
    display: flex;
}

.side-panel{
    min-width: 242px;
    height: 100vh;
    background: var(--primary-black-color);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2000;
    transition: left 0.4s ease-in-out, right 0.4s ease-in-out;
    overflow: auto;
    padding-bottom: 20px;
}

@media(max-width: 1320px){
    .side-panel.en{
        position: absolute;
        left: -242px;
    }

    .side-panel.ar{
        position: absolute;
        right: -242px;
    }
}

.side-panel .logo{
    margin: 10px auto 0;
    width: 86px;
    height: 27px;
}

.side-panel section{
    margin: 18px 18px 0;
    display: flex;
    flex-direction: column;
}

.side-panel section .title{
    font-size: 12px;
    color: var(--label-color);
    margin-bottom: 12px;
    margin-inline-start: 5px;
}

.side-panel section .section-link{
    height: 32px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 20px;
    transition: background 0.2s ease-out;
    color: var(--inactive-white-color);
}

.side-panel section .section-link.active{
    background: var(--main-color);
    color: var(--white-color);
}

.side-panel section .section-link{
    color: var(--inactive-white-color);
}

.side-panel section .section-link:not(.active):hover{
    background: var(--hover-gray-color);
    color: var(--white-color);
}

.side-panel section .section-link:hover span{
    color: var(--white-color);
}


.page{
    display: flex;
    flex-direction: column;
    flex: auto;
    max-height: 100vh;
    overflow: auto;
}

.page .main-header{
    height: 60px;
    min-width: 370px;
    width: 100%;
    padding: 10px 30px;
    background: var(--white-color);
    display: flex;
    gap: 27px;
    align-items: center;
    box-shadow: 0px 0px 5px var(--dark-shadow-color);
    position: relative;
    z-index: 5;
}

.page .main-header button{
    width: 20px;
    height: 20px;
    align-items: center;
}

.page .main-header .burger{
    display: none;
    margin-inline-end: 20px;
}

@media(max-width: 1320px){
    .page .main-header .burger{
        display: flex;
    }
}

.page .main-header .title{
    color: var(--primary-black-color);
    font-weight: bold;
    flex: auto;
}

#open-notifs{
    position: relative;
}

#open-notifs .mark{
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--main-color);
    position: absolute;
    top: 5px;
    right: 0;
}

.page .main-header .profile{
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.page .main-header .notifications{
    position: absolute;
    top: 95%;
    background: var(--white-color);
    padding: 20px;
    width: 434px;
    max-height: 600px;
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0px 1px 6px var(--light-shadow-color);
    margin: 0;
    z-index: 9;
    display: none;
}

@media(max-width: 576px){
    .page .main-header .notifications{
        width: 298px;
    }
}

.page .main-header .notifications.en{
    right: 30px;
}

.page .main-header .notifications.ar{
    left: 30px;
}

.notifications li{
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 0;
}

.notifications li:not(:last-child){
    border-bottom: 1px solid var(--border-color);
}

.notifications li .pic{
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 50%;
}

.notifications li .details{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.notifications li .details span,
.notifications li .details span b{
    color: var(--primary-black-color);
}

.notifications li .details .branch{
    font-size: 0.75rem;
    color: var(--main-color);
}

.notifications li .details .content{
    font-size: 0.875rem;
}

.notifications li .details .time{
    font-size: 0.75rem;
    color: var(--label-color);
}


.profile-popup{
    position: absolute;
    top: 95%;
    background: var(--white-color);
    padding: 20px;
    width: 248px;
    border-radius: 10px;
    box-shadow: 0px 1px 6px var(--light-shadow-color);
    margin: 0;
    z-index: 9;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
}

.profile-popup.en{
    right: 40px;
}

.profile-popup.ar{
    left: 40px;
}

.profile-popup .profile-pic{
    width: 96px;
    height: 96px;
    margin-bottom: 15px;
}

.profile-popup p,
.profile-popup ul{
    margin: 0;
}

.profile-popup .name{
    font-size: 0.875rem;
    font-weight: bold;
    text-align: center;
}

.profile-popup .mail{
    font-size: 0.875rem;
    color: var(--label-color);
}

.profile-popup .options{
    width: 100%;
}

.profile-popup .option{
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-popup .option:not(:last-child){
    border-bottom: 1px solid var(--border-color);
}

.profile-popup .option:last-child{
    padding: 0;
    padding-top: 20px;
}

.profile-popup .option .logout{
    color: var(--main-color);
}

.pages-navbar .a{
    text-transform: capitalize;
}

.page-content{
    flex: auto;
    display: flex;
    flex-direction: column;
    min-width: 370px;
    padding: 0 30px 20px;
    gap: 5px;
    max-height: 100vh;
    overflow: auto;
}

.page-content .page-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-content .header{
    display: flex;
    justify-content: flex-start;
    gap: 16px;
}

.page-content .header .search-box{
    flex: auto;
    position: relative;
}

.page-content .header .search-box img.en{
    position: absolute;
    top: 38%;
    left: 17px;
}

.page-content .header .search-box .i-button {
    position: absolute;
    top: 17px;/* we need this updated depend on rounded-box margin-top */
    right: 5px;
    padding: 11px;
    border-radius: 50%;
    color: gray;
}

.page-content .header .search-box .i-button:hover {
    color: white;
    background: #f78080;
    cursor: pointer;
}

.page-content .header .search-box img.ar{
    position: absolute;
    top: 38%;
    left: 17px;
}

.page-content .header .search-box .rounded-box{
    padding-inline-start: 25px;
    width: 100%;
}

.page-content .header .dropdown{
    margin: 0;
}

@media(max-width: 768px){
    .page-content .page-section.header-box .header .search-box{
        width: 100%;
    }

    .page-content .page-section.header-box .header .dropdown{
        flex: 1;
    }

    .page-content .page-section.header-box .header .btn{
        flex: 1;
        padding: 10px;
        justify-content: center;
    }
}

.page-section.content{
    flex: auto;
}


.pages-navbar{
    background-color: var(--main-color);
    width: 100%;
    min-width: 370px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.pages-navbar a ,.pages-navbar button{
    padding: 30px 35px 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, .75) !important;
    border-bottom: 3px solid transparent;
}

.pages-navbar a.active,
.pages-navbar a:hover,
.pages-navbar button.active,
.pages-navbar button:hover{
    color: var(--white-color) !important;
    border-bottom: 3px solid rgba(255, 255, 255, .7);
}

.page-section.content{
    flex: auto;
    margin-top: 0px !important; /*this line to ignore div.page-section.content from margin-top*/
}

.page-section .table-section{
    background: var(--white-color);
    box-shadow: 0px 0px 3px var(--light-shadow-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.table-section .table-header{
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    background: var(--table-header-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-section .table-header .btn{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.table-section .table-container{
    padding: 10px 20px 0;
    flex: auto;
}

.table-section .table{
    margin: 0;
    overflow: auto;
    flex: auto;
    height: 100%;
}

.table-section .table table{
    width: 100%;
}

.table-section .table td,
.table-section .table th{
    border: 0;
    min-width: fit-content;
    white-space: nowrap;
}

.table-section .table th{
    font-weight: 500;
    color: var(--label-color);
}

.table-section .table th:first-child{
    padding-inline-start: 0;
}

.table-section .table tbody tr td{
    padding: 20px 12px;
    vertical-align: middle;
}

.table-section .table tbody tr:first-child td{
    padding: 10px 12px 20px;
}

.table-section .table tbody tr td:first-child{
    padding-inline-start: 0;
}

.table-section .table tbody tr:not(:last-child) td{
    border-bottom: 1px solid var(--border-color);
}


.table-section .table a{
    color: black;
}

.table-section .table .img{
    width: 54px;
    height: 54px;
    border-radius: 10px;
}

.table-section .table .actions button{
    margin-inline-end: 15px;
}

.table-section > .controls{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 20px 20px;
    gap: 15px;
}

.table-section .controls .no-of-pages{
    flex: auto;
}

.table-section .controls .no-of-pages .show-button{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    max-width: 100px;
    max-height: 32px;
    height: 32px;
    border-radius: 16px;
    border: 1px solid #DDDDDD;
    color: var(--label-color)
}

.show-button .dropdown{
    margin: 0;
}

.show-button .dropdown .rounded-box{
    min-width: unset;
    width: unset;
    height: unset;
    padding: unset;
    box-shadow: none;
}

#forms{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    overflow: auto;
    z-index: 5000;
}

#forms .form-container{
    background-color: var(--main-background-color);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

#forms .contain{
    width: 90%;
}

#forms .row{
    row-gap: 0;
}

#forms .header{
    background-color: var(--primary-black-color);
    border-radius: 10px 10px 0 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#forms .middle{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#forms .header .title{
    flex: auto;
}

#forms .header .heading{
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    flex: auto;
    color: var(--white-color);
}

#forms .header .header-icon{
    cursor: pointer;
}

#forms form{
    background: var(--white-color);
    padding: 15px;
    border-radius: 0 0 10px 10px;
}

#forms .form-group{
    margin: 0;
}

#forms .rounded-box{
    border: 1px solid var(--inactive-white-color);
    color: var(--primary-black-color);
    width: 100%;
}

#forms .dropdown-menu{
    border: 1px solid var(--inactive-white-color);
}

#forms input:focus,
#forms textarea:focus{
    background-color: var(--light-gray);
}

#forms input::placeholder{
    font-size: .875rem;
    color: var(--label-color);
}

#forms input::-moz-placeholder { /* Mozilla Firefox 19+ */
    opacity:  1;
}

#forms .input-label label{
    color: var(--primary-black-color);
    font-size: 1rem;
    font-weight: 500;
}

#forms .messages p{
    margin-bottom: .5rem;
    font-size: .75rem;
    margin-inline-start: 15px;
}

#forms .message-explanation{
    color: var(--label-color);
}

#forms .link-btn{
    color: var(--main-color);
}

#forms .select{
    margin-top: 10px;
}

#forms .confirm{
    display: flex;
}
#forms .btn{
    font-size: .875rem;
}

#forms .btn-default{
    color: var(--primary-black-color);
}

#forms .btn-default:hover{
    color: var(--primary-black-color);
}

@media(max-width:470px){
    #forms .btn{
        padding: 8px 15px;
        font-size: .75rem;
    }
}

#delete-alert .contain ,#warning-alert .contain{
    max-width: 452px;
}

#delete-alert .header ,#warning-alert .header{
    background-color: var(--main-color);
    text-align: center;
    padding: 14px 0;
}

#warning-alert .header{
    background-color: #ffc107;
}

#delete-alert .header .heading ,#warning-alert .header .heading{
    font-size: 1.4rem;
}

#delete-alert .section ,#warning-alert .section{
    margin-bottom: 45px;
}

#delete-alert .alert-message ,#warning-alert .alert-message{
    color: var(--primary-black-color);
    text-align: center;
    font-size: 1rem;
    padding: 0 5px;
    font-weight: 500;
    line-height: 25px;
    word-break: break-word;
}

#delete-alert .confirm ,#warning-alert .confirm{
    display: flex;
}

#delete-alert .btn ,#warning-alert .btn{
    padding: 10px 15px;
    flex: 50%;
    max-width: 50%;
}


.page-footer{
    color: var(--primary-black-color);
    font-size: 0.875rem;
    margin-top: auto;
    margin-bottom: 15px;
    min-width: 370px;
    text-align: center;
}

.gym-suggest {
    background: #191919 0% 0% no-repeat padding-box;
    border-radius: 28px;
    opacity: 0.9;
    width: 100% !important;
    padding-left: 20px;
    display: flex;
    flex-direction: row;
    color: white;
    padding-top: 15px;
}

.gym-suggest p {
    flex-grow: 8;
}

.gym-suggest div {
    flex-grow: 2;
    text-align: right;
    padding-right: 20px;
}

.gym-suggest div .clicked-span {
    margin: 0 10px;
}

.gym-suggest div .clicked-span:hover{
    cursor: pointer;
}

.status-action-btn{
    padding: 1px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    color: white;
    margin: 0 3px;
}

button.danger {
    background-color: var(--red-color);
}

button.success {
    background-color: var(--green-color);
}


textarea.rounded-box{
    background: var(--white-color);
    box-shadow: 0px 0px 3px var(--light-shadow-color);
    color: var(--primary-black-color);
    height: 100px;
    border: 1px solid var(--inactive-white-color);
    padding-inline-start: 15px;
    width: 100%;
}

.small-btn{
    width: 146px;
    height: 30px;
    background-color: var(--main-color);
    border-radius: 15px;
    display: flex;
    flex-direction: row;
    color: white;
    gap: 7px;
    justify-content: center;
    align-items: center;
}

.default-small-btn{
    background-color: white;
    color: black;
}

div.confirm {
    margin-top: 30px !important;
}

.left-textfiled {
    padding-right: 8px !important;
}

.right-textfiled {
    padding-left: 8px !important;
}

.small-content {
    width: 65%;
    margin: 20px auto;
    border-radius: 5px;
    padding: 0 !important;
    box-shadow: 0px 0px 6px #0000001F;
    background-color: white;
}

.small-content .data-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    gap: 24px;
}

.small-content .data-content p {
    margin: 0;
}

.small-content .content {
    gap: 0 !important;
    margin-top: 0 !important;
    height: 100% !important;
}

.small-content .bold-text {
    font-weight: bold;
}

.small-content .gray-text {
    color: gray;
}

.small-content .section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.small-content .attachment-line{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.red-text {
    color: #E03F3F;
}

.clickable:hover {
    cursor: pointer;
}

.small-content img.small-image {
    width: 34px;
    height: 34px;
}

.small-content div.actions{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

div#aside-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    opacity: 0.5;
    background-color: black;
    width: 100%;
    display: none;
    z-index: 22;
}

div#aside-menu-overlay.show {
    display: block !important;
}

div#app-root-div {
    height: 100vh;
    position: relative;
}

.crud-in-modal ,.crud-in-modal .header-box .header{
    background-color: #f5f7f8 !important;
}

.crud-in-modal .page-section {
    margin-top: 0 !important;
    padding: 0 20px !important;
}

.crud-in-modal .header-box {
    padding: 0 !important;
}

.crud-in-modal .header {
    margin-bottom: 0 !important;
}

.crud-in-modal #delete-alert .contain {
    max-width: 452px !important;
}

.crud-in-modal .page-content {
    overflow: unset !important;
}