@import url('../lib/bootstrap-icons/font/bootstrap-icons.min.css');
@import url('../font/vazirmatn/vazirmatn-font-face.min.css');
@import url('../font/vazirmatn/misc/farsi-digits/vazirmatn-fd-font-face.min.css');
@import url('../lib/bootstrap/css/bootstrap.rtl.css');

:root {
    --sidebarWidth: 17vw;
    --mainWidth: 83vw;
}

html {
    position: relative;
    min-height: 100%;
}
body {
    font-family: 'Vazirmatn FD';
}
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    width:var(--mainWidth);
    flex: 1;
}
table{
    white-space:nowrap;
}

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }
    .navbar-toggler {
        display: none;
    }

    .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }

    .page {
        flex-direction: row;
    }
    
    .sidebar {
        width: var(--sidebarWidth);
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 1199px) {
 main{
     width:100vw;
 }
    .collapse {
        display: block;
    }
    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a, .top-row .btn-link {
        margin-left: 0;
    }

}

.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;
}

.content {
    padding-top: 1.1rem;
}


a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row a, .top-row .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

        .top-row a:hover, .top-row .btn-link:hover {
            text-decoration: underline;
        }

        .top-row a:first-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }



.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-top-row {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand {
    font-size: 1.1rem;
}

.bi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .nav-item a.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

        .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }


.icon {
    cursor: pointer;
    font-size:2rem;
    padding: 0 2px 0 2px;
    width: 15%;
}

.sub-menu {
    margin-top: 0.5rem;
}

.sub-menu .nav-item {
    padding-left: 2rem !important;
}


.nav-item-header {
    color: white;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}
.nav-item-header:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.myModalFooter {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    border-top: 0.3vh solid #dee2e6;
    padding: 2% 4%;
}

.myfieldset {
    background: #eceff1;
    border-radius: 5px;
    border: 1px solid #cfd8dc;
    width: 100%;
    border-radius: 0px;
}

.myfieldset legend {
    width: auto;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid #cfd8dc;
    -moz-box-shadow: -2px 2px 11px #cfd8dc;
    -webkit-box-shadow: -2px 2px 11px #cfd8dc;
    box-shadow: -2px 2px 11px #cfd8dc;
    font-weight: bold;
    border-radius: 5px;
    font-size: 14px;
    color: lightslategray;
    float: none;
}

.ltr {
    direction: ltr;
}

.w-30 {
    width: 30% !important;
}.w-35 {
    width: 35% !important;
}.w-40 {
    width: 40% !important;
}.w-45 {
    width: 45% !important;
}