/*@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";*/

:root {
    --me-color-dark-mode: #eee;
    --me-background-color-primary-dark-mode: #222;
    --me-background-color-secondary-dark-mode: #2a2a2a;
    --me-background-color-navigation-header-dark-mode: #444450;
    --me-background-color-navigation-sidebar-dark-mode: #333340;

    --me-background-color-navigation-header: #6d7fcc;
    --me-background-color-navigation-sidebar: #8497E6;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    background-color: #f9f9f9;
}

table td {
    vertical-align: middle;
}

i {
    margin: 0 5px 0 5px;
}

h1 {
    word-break: break-word;
}

h1 span {
    float: left;
    margin-right: 12px;
}

header {
    background-color: var(--me-background-color-navigation-header);
    position: fixed;
    width: 100%;
    padding: 20px;
    z-index: 100;
}

div .row {
    margin-bottom: 1rem;
}

header .row {
    margin-bottom: unset;
}

p {
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
}

a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

i,
span {
    display: inline-block;
}

.fa-2x {
    font-size: 1.5em;
}

.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 95%;
!important;
}

.content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 250px;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 66px;
    line-height: 56px;
    background-color: var(--me-background-color-navigation-header);
    color: #fff;
    z-index: 100;
}

.footer p {
    font-size: x-small;
    position: relative;
    bottom: 16px;
}

div#dark-mode {
    position: relative;
    bottom: 10px;
    float: right;
}

.responsive {
    font-size: initial;
}

.form-switch .form-check-input:checked {
    background-color: #333340;
    border-color: #2a2a2a;
}

#admin-button-group {
    margin-top: 100px;
}

#span-json {
    border-radius: 0 0.25rem 0.25rem 0;
}
/* ---------------------------------------------------
    BUTTONS https://pinetools.com/darken-color
----------------------------------------------------- */
.w-250-px {
    width: 250px;
}

.btn-primary {
    background-color: #5c6ebb;
    border-color: #5c6ebb;
}

.btn-primary:hover {
    background-color: #495db1;
    border-color: #495db1;
}

.btn-secondary {
    background-color: #8497E6;
    border-color: #8497E6;
}

.btn-secondary:hover {
    background-color: #657ddf;
    border-color: #657ddf;
}

.btn-back {
    color: #000;
    background-color: #ddd;
    border-color: #ddd;
}

.btn-back:hover {
    background-color: #c6c6c6;
    border-color: #c6c6c6;
}

#to-top {
    visibility: hidden;
    position: fixed;
    bottom: 36px;
    height: 30px;
    padding-top: 5px;
    z-index: 100;
    width: 6%;
    margin-left: 47%;
    margin-right: 47%;
}

/* ---------------------------------------------------
    CARDS
----------------------------------------------------- */
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding-top: 16px;
    margin: auto auto 1rem;
}

.card p {
    padding: 0 16px 0 16px;
    font-size: small;
    z-index: 1;
}

.card p strong {
    font-size: initial;
    font-weight: bold;
    line-height: 38px;
}

.card button,
.card a {
    border-radius: 0 0 .25rem .25rem;
}

.card button:disabled {
    background-color: #cccccc;
    color: #666666;
    border: 1px solid #999999;
}

.card .form-check-input {
    font-size: x-large;
}

.clickable:active {
    outline: 5px inset #cccccc;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background-color: var(--me-background-color-navigation-sidebar);
    color: #fff;
    transition: all 0.3s;
    position: fixed;
    height: 100%;
}

#sidebar.active {
    min-width: 120px;
    max-width: 120px;
    text-align: center;
}

#sidebar.active .sidebar-header h3,
#sidebar.active .CTAs,
#sidebar.active #admin-button,
#sidebar.active #logout-button {
    display: none;
}

#sidebar.active .sidebar-header strong,
#sidebar.active #admin-icon,
#sidebar.active #logout-icon {
    display: block;
}

#sidebar ul li a {
    text-align: left;
}

#sidebar.active ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.85em;
}

#sidebar.active ul li a i {
    margin-right: 0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

#sidebar.active ul ul a {
    padding: 10px !important;
}

#sidebar.active .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #6d7fcc;
}

#sidebar .sidebar-header strong {
    display: none;
    font-size: 1.8em;
}

#sidebar #admin-icon,
#sidebar #logout-icon {
    display: none;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul li a {
    padding: 10px;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background-color: #fff;
}

#sidebar ul li a i {
    margin-right: 10px;
}

#sidebar ul li.active > a,
a[aria-expanded="true"] {
    color: #fff;
    background: #6d7fcc;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #6d7fcc;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background-color: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

.error-box-shadow {
    box-shadow: 0 0 0 1px red;
}

/* ---------------------------------------------------
BOOTSTRAP TABLE
----------------------------------------------------- */
.bootstrap-table .fixed-table-pagination > .pagination-detail .page-list .btn-group > .btn {
    width: 75px;
    text-align: left;
    background-color: #fff;
    color: #212529;
    border: 1px solid #dee2e6;
}

.search {
    width: 100%;
}

.page-item .page-link {
    color: #212529;
    text-align: center;
    width: 50px;
    height: 31px;
    padding-top: 5px;
}

.page-item.active .page-link {
    background-color: #8497E6;
    border: 1px solid #8497E6;
}

.dropdown-item {
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: .875rem;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #8497E6;
}



/* ---------------------------------------------------
SEARCH
----------------------------------------------------- */
.main-search {
    position: relative;
}

.main-search button {
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0 0.25rem 0.25rem 0;
}

#nothing-found-icon {
    position: absolute;
    top: 35%;
    left: 50%;
}

/* ---------------------------------------------------
    PASSWORD
----------------------------------------------------- */
#password-container {
    position: relative;
}

.visibility {
    position: absolute;
    top: 50%;
    right: 20px;
}

/* ---------------------------------------------------
    ALERTS
----------------------------------------------------- */
.alert-error {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

/* ---------------------------------------------------
    LOADING SPINNER - Source: https://loading.io/css/
----------------------------------------------------- */
#dimming-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 50;
    background-color: black;
    opacity: 0.3;
}

#lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -64px;
    margin-left: -64px;
    z-index: 100;
}

#lds-dual-ring:after {
    content: " ";
    display: block;
    width: 128px;
    height: 128px;
    margin: 8px;
    border-radius: 50%;
    border: 12px solid #fff;
    border-color: #0d6efd transparent #0d6efd transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ---------------------------------------------------
    ADVERTISING BLINK
----------------------------------------------------- */

.blink {
    animation: blinker 0.7s cubic-bezier(.5, 0, 1, 1) infinite alternate;
}

@keyframes blinker {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.1;
    }
}

/* ---------------------------------------------------
    OTHERS
----------------------------------------------------- */

#logged-in-info {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 12px;
    width: 250px;
}

/* ---------------------------------------------------
    MEDIA QUERIES
----------------------------------------------------- */
/* xl ≥1200px */
@media (max-width: 1199px) {
    #to-top {
        width: 8%;
        margin-left: 46%;
        margin-right: 46%;
        bottom: 80px;
    }

    .main-search {
        position: fixed;
        padding: 30px 10px 10px 10px;
        bottom: 60px;
        width: 100%;
        z-index: 200;
    }

    .main-search .form-control-sm {
        width: 100%;
    }

    .wrapper:not(#login) {
        padding-top: 150px;
        padding-bottom: 50px;
    }

    .content {
        margin-left: 0;
    }

    #sidebar {
        max-width: unset;
        width: 100%;
    }

    /*.content {
        margin-left: 80px;
    }

    #sidebar {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        !*margin-left: -80px !important;*!
    }

    .dropdown-toggle::after {
        top: auto;
        bottom: 10px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }

    #sidebar.active {
        margin-left: 0 !important;
    }

    #sidebar .sidebar-header h3,
    #sidebar .CTAs {
        display: none;
    }

    #sidebar .sidebar-header strong {
        display: block;
    }

    #sidebar ul li a {
        padding: 20px 10px;
    }

    #sidebar ul li a span {
        font-size: 0.85em;
    }

    #sidebar ul li a i {
        margin-right: 0;
        display: block;
    }

    #sidebar ul ul a {
        padding: 10px !important;
    }

    #sidebar ul li a i {
        font-size: 1.3em;
    }

    #sidebar {
        margin-left: 0;
    }

    #sidebar-collapse span {
        display: none;
    }*/
}

/* md ≥992px */
@media (max-width: 991px) {
    #to-top {
        width: 10%;
        margin-left: 45%;
        margin-right: 45%
    }

    table {
        font-size: small;
    }

    .form-control,
    .form-select {
        font-size: small;
    }
}

/* md ≥768px */
@media (max-width: 767px) {
    #to-top {
        width: 14%;
        margin-left: 43%;
        margin-right: 43%
    }

    #admin-button-group {
        margin-top: unset;
    }

}

@media (max-width: 575px) {
    #to-top {
        width: 18%;
        margin-left: 41%;
        margin-right: 41%
    }

    .content {
        margin-left: 0;
    }

    .w-250-px {
        width: 100%;
        left: 1px;
    }

    .input-group > .form-control:not(#campaign_form_json) {
        width: 100%;
        border-radius: .25rem .25rem 0 0;
    }

    .input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3),
    .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
        border-top-right-radius: .25rem;
    }

    .wrapper:not(#login) {
        padding-top: 150px;
        padding-bottom: 150px;
    }
}

/* ---------------------------------------------------
    DARK THEME
----------------------------------------------------- */
body.dark-theme {
    color: var(--me-color-dark-mode);
    background-color: var(--me-background-color-primary-dark-mode);
}

body.dark-theme header {
    color: var(--me-color-dark-mode);
    background-color: var(--me-background-color-navigation-header-dark-mode);
}

body.dark-theme footer {
    color: var(--me-color-dark-mode);
    background-color: var(--me-background-color-navigation-header-dark-mode);
}

body.dark-theme #sidebar {
    color: var(--me-color-dark-mode);
    background-color: var(--me-background-color-navigation-sidebar-dark-mode);
}

body.dark-theme #sidebar .sidebar-header {
    background-color: var(--me-background-color-navigation-header-dark-mode);
}

body.dark-theme table {
    color: var(--me-color-dark-mode);
    background-color: var(--me-background-color-primary-dark-mode);
    --bs-table-striped-bg: var(--me-background-color-secondary-dark-mode);
    border-color: var(--me-background-color-primary-dark-mode);
}

body.dark-theme .table-striped > tbody > tr:nth-of-type(odd) {
    color: var(--me-color-dark-mode);
    background-color: var(--me-background-color-primary-dark-mode);
}

body.dark-theme .card {
    color: var(--me-color-dark-mode);
    background-color: var(--me-background-color-secondary-dark-mode);
}

body.dark-theme .btn-secondary {
    background-color: #424483;
    border-color: #424483;
}

body.dark-theme .btn-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

body.dark-theme .modal-content {
    color: var(--me-color-dark-mode);
    background-color: var(--me-background-color-secondary-dark-mode);
}

body.dark-theme .form-control:disabled,
body.dark-theme .form-select:disabled,
body.dark-theme .form-control[readonly] {
    color: var(--me-color-dark-mode);
    background-color: #444450;
    opacity: 1;
}

.zoom:hover {
    transform: scale(1.05);
}

.filter {
    display: none; /* Hidden by default */
}

/* The "show" class is added to the filtered elements */
.show {
    display: flex;
}

.btn.active {
    background-color: #666;
    color: white;
}