﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

.form-group label {
    color: #777;
}

.form-group {
    margin-bottom: 1em;
}

html {
    position: relative;
    min-height: 100%;
}



@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background: white;
    color: #555;
    background-size: cover;
    background-position: center;
}

h2.page-title {
    color: #33363a;
    margin-bottom: 1.5em;
    background: #c1c1c1;
    padding: .2em;
    border-radius: 6px;
    vertical-align: middle;
}

    h2.page-title i {
        background: #eee;
        border-radius: 5px;
        color: #0e44cd;
        padding: 0.2em;
    }

    h2.page-title .btn {
        float: right;
        margin-top: .2em;
    }

    h2.page-title form {
        float: right;
    }

@media (max-width: 768px) {
    h2 .page-title .btn {
        height: 24px;
        line-height: 24px;
        font-size: 12px;
        padding: 0 1em;
        margin-top: 0;
    }
}

#errorText {
    max-width: 1000px;
}

@media (max-width: 1000px) {
    #errorText {
        width: 100%;
    }
}


.side-bar a, .side-bar h1 {
    width: 250px;
}

.side-bar {
    background: #1b1a1b;
    backdrop-filter: blur(15px);
    width: 250px;
    max-width: 250px;
    height: 100vh;
    position: relative;
    overflow-y: auto;
    transition: 0.6s ease max-width;
    
}

    .side-bar::-webkit-scrollbar {
        width: 0px;
    }

    .side-bar.active {
        transition: max-width 0.6s ease;
    }

    .side-bar:not(.active) {
        
        max-width: 0;
        width: 0;
    }

h1 {
    text-align: center;
    font-weight: 500;
    font-size: 25px;
    padding-bottom: 13px;
    font-family: sans-serif;
    letter-spacing: 2px;
}

.side-bar .menu {
    width: 100%;
    margin-top: 30px;
}

    .side-bar .menu .item {
        position: relative;
        cursor: pointer;
    }

        .side-bar .menu .item a.active {
            background-color: #800;
            cursor: default;
        }

        .side-bar .menu .item a {
            color: #fff;
            font-size: 16px;
            text-decoration: none;
            display: block;
            padding: 5px 30px;
            line-height: 40px;
        }

            .side-bar .menu .item a:not(.active):hover {
                background: #33363a;
                transition: 0.3s ease;
            }

        .side-bar .menu .item i {
            margin-right: 15px;
        }

        .side-bar .menu .item a .dropdown {
            position: absolute;
            right: 0;
            margin: 20px;
            transition: 0.3s ease;
        }

        .side-bar .menu .item .sub-menu {
            background: #262627;
            display: none;
        }

            .side-bar .menu .item .sub-menu a {
                padding-left: 80px;
            }

.rotate {
    transform: rotate(90deg);
}

.close-btn {
    position: absolute;
    color: #fff;
    font-size: 23px;
    right: 0px;
    margin: 15px;
    cursor: pointer;
}

.menu-btn {
    position: absolute;
    color: rgb(0, 0, 0);
    font-size: 35px;
    margin: 25px;
    cursor: pointer;
    z-index: 100;
}

.logo-img {
    width: 100px;
    margin: 15px;
    border-radius: 15px;
    margin-left: 70px;
    border: 3px solid #b4b8b9;
    background: white;
}



.table-responsive {
    overflow: hidden;
}

    .table-responsive .column-header {
        display: none;
    }

    .table-responsive .button-wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

        .table-responsive .button-wrapper .btn {
            margin: 0 1rem;
            width: 10rem;
            max-width: 90%;
        }

@media (max-width: 768px) {
    .side-bar.active {
        width: 100%;
    }

    .main-content.half {
        display: none;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .table-responsive .column-header {
        display: block;
        text-align: center;
        font-weight: 700;
    }

    .table-responsive thead {
        display: none;
    }

    .table-responsive .button-wrapper {
        justify-content: center;
    }

        .table-responsive .button-wrapper button {
            width: 100%;
            margin: .25rem 0;
        }

    .table-responsive tbody tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 1rem;
        padding: 0 !important;
    }

        .table-responsive tbody tr td {
            flex-grow: 1;
            width: 100%;
            padding: .25rem;
            border: none;
            text-align: center;
        }
}



.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    background-color: #2f6aff;
    background-image: linear-gradient(180deg, #2f6aff 10%, #0e44cd 100%);
    transition: 0.5s;
    padding-top: 60px;
    overflow: hidden;
}

    .sidenav.active {
        width: 250px;
        border-right: solid 1px #ddd;
    }

    .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 18px;
        color: #818181;
        display: block;
        transition: 0.3s;
        left: 1em;
        overflow: hidden;
    }

        .sidenav a:not(.active):hover {
            border-radius: 5px;
        }



    .sidenav .closebtn {
        position: absolute;
        top: 0;
        color: #999;
        margin-left: calc(250px - 2em);
        padding: 0;
        font-size: 36px;
        width: 20px;
        margin-left: calc(100% - 2em);
    }

        .sidenav .closebtn:hover {
            color: #444;
        }

#main {
    transition: margin-left .5s;
    padding: 16px;
}

.sidenav .sidebar-header {
    padding: 10px;
    color: #252525;
    background: #fff;
    overflow: hidden;
}

    .sidenav .sidebar-header img {
        margin-left: 25px;
    }

.sidenav .dropdown {
    position: relative;
    display: block;
}

.sidenav .dropbtn {
    background-color: #2f6aff;
    background-image: linear-gradient(180deg, #2f6aff 10%, #0e44cd 100%);
    padding: 16px;
    font-size: 16px;
    border: none;
    width: 100%;
    text-align: left;
}


.sidenav a, .sidenav .dropbtn {
    vertical-align: middle;
    white-space: nowrap;
    padding: 6px 1.5em;
    text-decoration: none;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    border: none;
    background: none;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.sidenav i:first-child {
    opacity: .5;
}

.sidenav .dropbtn a {
    display: inline-block;
    padding: 0;
}

.sidenav a:hover, .sidenav .dropbtn:hover {
    color: #fff;
}

.sidenav .dropbtn i:nth-child(2) {
    right: 1rem;
    position: absolute;
    transform: translateY(100%);
}

.sidenav a:hover i:first-child {
    opacity: 1;
}

.sidenav .dropdown-content {
    display: none;
    position: relative;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 115;
    margin: .5em;
    border-radius: 4px;
}

    .sidenav .dropdown-content a {
        color: #3a3b45;
        padding: 5px 1.5em;
        font-size: 14px;
    }

.sidenav a.active {
    background-color: #eee;
    color: #212529;
}

    .sidenav a.active i {
        opacity: 1;
    }

.sidenav .dropdown-content a:hover {
    background-color: #eaecf4;
}

.menu-button {
    font-size: 30px;
    cursor: pointer;
    color: #000;
    margin-left: .5em;
    position: absolute;
    z-index: 5;
}

.container, #page-content-wrapper {
    transition: .6s ease;
    max-width: 100%;
}

    .container.menu-active {
        width: calc(100% - 250px);
    }

    .container.menu-active, #page-content-wrapper.menu-active {
        margin-left: 250px;
        transition: .6s ease;
    }

@media (max-width: 640px) {
    .sidenav.active {
        width: 100%;
    }
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

        .sidenav a {
            font-size: 16px;
        }
}

.select2-container--open {
    z-index: 9999999 !important;
}



.amsofts-dropbtn {
    text-align: left;
    background-color: #ccc;
    min-width: 320px;
    color: #444;
    padding: .5em 1em;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

    
    .amsofts-dropbtn:hover, .amsofts-dropbtn:focus {
        background-color: #258cfb;
    }


.organization-group {
    background: #efefef;
    border-bottom: #ddd solid 1px;
    padding: .5em;
    margin-bottom: 1em;
    margin-top: -1em;
    padding-left: 2em;
}

.org-select-label {
    color: #fff;
}

    .org-select-label.inactive {
        color: #000;
    }

.amsofts-dropdown {
    position: relative;
    display: inline-block;
}

.organization-selector {
    position: relative;
    display: inline-block;
    z-index: 1002;
    color: #fff;
}

#org-select-overlay {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 1000; 
}

.org-select-overlay-message {
    color: white;
    font-size: 1.5em;
    z-index: 1001;
}


.amsofts-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    
    .amsofts-dropdown-content span {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        cursor: pointer;
    }


.amsofts-dropdown:hover .amsofts-dropdown-content {
    display: block;
}


.amsofts-dropdown-content img {
    height: 20px; 
    width: 20px; 
    margin-right: 10px;
}




.select2-container {
    display: block !important;
    width: 100% !important;
}


.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da !important;
}


.select2-container .select2-selection--single {
    height: 38px !important;
    padding: .375rem 0.125rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 6px !important;
}




.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

.loading-letter {
    opacity: 0.3;
    animation: fadeInOut 1.5s infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}


.loading-letter:nth-child(1) {
    animation-delay: 0s;
}

.loading-letter:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-letter:nth-child(3) {
    animation-delay: 0.4s;
}

.loading-letter:nth-child(4) {
    animation-delay: 0.6s;
}

.loading-letter:nth-child(5) {
    animation-delay: 0.8s;
}

.loading-letter:nth-child(6) {
    animation-delay: 1s;
}

.loading-letter:nth-child(7) {
    animation-delay: 1.2s;
}



.ampagination {
    margin: 10px;
    text-align: center;
    display: block;
}

    .ampagination * {
        vertical-align: top;
    }

    .ampagination a, .ampagination span {
        display: inline-block;
        width: 32px;
        height: 32px;
        margin: 0px 2px;
        line-height: 32px;
        background: #fff;
    }

        .ampagination a.active {
            color: #fff;
            background: #2f0dba;
        }

    .ampagination a {
        transition: all ease-in-out .2s;
        box-shadow: 0 0 1px 0 rgba(0,0,0,.2);
    }

        .ampagination a:not(.active):hover {
            box-shadow: 0 0 1px 0 rgba(0,0,0,.4);
        }

    .ampagination span.more {
        background: transparent;
    }

.file-upload-wrapper {
    position: relative;
}

    .file-upload-wrapper .remove-file {
        display: none;
        position: absolute;
        top: 2px;
        right: 0px;
    }

    .file-upload-wrapper input[type=file] {
        margin-right: 2rem;
        width: calc(100% - 2rem);
    }



.deleted-container {
    position: relative;
    background-color: lightgrey;
}

    .deleted-container .overlay-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        color: red;
        font-size: 12px;
    }

    .deleted-container svg {
        width: Calc(100% - 10px);
        height: Calc(100% - 10px);
        top: 5px;
        left:5px;
        position: absolute;
    }

        .deleted-container svg line {
            stroke: red;
            stroke-width: 1;
        }
