﻿table.dataTable tbody th, table.dataTable tbody td {
    padding: 6px 8px;
}

tr.bordered {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dataTables-loading-overlay {
    position: absolute; /* Or fixed, depending on scope */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black backdrop */
    display: none; /* Hidden by default */
    z-index: 1030; /* Ensure it's on top */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Or add a spinner icon */
}

.dataTables_processing.card {
    z-index: 1031;
}

/*.custom-file-input ~ .custom-file-label::after {
    content: "Button Text";
}*/

option.select-hr {
    border-bottom: 1px dotted #000;
}

.inm-img-upload-src {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    padding: 5px;
    max-height: 164px;
    object-fit: contain;
}

.custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.5em + 0.75rem);
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    color: #6e707e;
    content: none;
    background-color: #eaecf4;
    border-left: inherit;
    border-radius: 0 0.35rem 0.35rem 0;
}

.btn-circle.btn-sm, .btn-group-sm > .btn-circle.btn {
    height: 1.5rem;
    width: 1.5rem;
    font-size: 0.75rem;
}

.preloader-img {
    max-width: 300px;
    position: absolute;
    top: 43%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.preloader {
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    opacity: 1;
    background-color: var(--primary);
    background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    background-size: cover;
    z-index: 99;
}

    .preloader ul {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 0;
        display: flex;
    }

        .preloader ul li {
            list-style: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #fff;
            animation: grow 1.6s ease-in-out infinite;
        }

    .preloader.preloader-deactivate {
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s 1s, opacity 1s linear;
    }
/* Define animation */
@keyframes grow {
    0%, 40%, 100% {
        transform: scale(0.2);
    }

    20% {
        transform: scale(1);
    }
}

/* Define li properties */
.preloader ul li:nth-child(1) {
    animation-delay: -1.4s;
    background: #ffff00;
    box-shadow: 0 0 50px #ffff00;
}

.preloader ul li:nth-child(2) {
    animation-delay: -1.2s;
    background: #76ff03;
    box-shadow: 0 0 50px #76ff03;
}

.preloader ul li:nth-child(3) {
    animation-delay: -1s;
    background: #f06292;
    box-shadow: 0 0 50px #f06292;
}

.preloader ul li:nth-child(4) {
    animation-delay: -0.8s;
    background: #4fc3f7;
    box-shadow: 0 0 50px #4fc3f7;
}

.preloader ul li:nth-child(5) {
    animation-delay: -0.6s;
    background: #ba68c8;
    box-shadow: 0 0 50px #ba68c8;
}

.preloader ul li:nth-child(6) {
    animation-delay: -0.4s;
    background: #f57300;
    box-shadow: 0 0 50px #f57300;
}

.preloader ul li:nth-child(7) {
    animation-delay: -0.2s;
    background: #673ab7;
    box-shadow: 0 0 50px #673ab7;
}


/*.form-inline label {
    display: block;
}*/

.flag-text {
    text-indent: 20px;
}

input.decker-top, textarea.decker-top {
    border-bottom-right-radius: 0;
}

input.decker-center, textarea.decker-center {
    border-radius: 0;
    margin-bottom: -1px;
}

input.decker-bottom, textarea.decker-bottom {
    border-top-right-radius: 0;
}

span.decker-top {
    border-bottom-left-radius: 0;
}

span.decker-center {
    border-radius: 0;
}

span.decker-bottom {
    border-top-left-radius: 0;
}

div.decker-center {
    margin-top: -1px;
    margin-bottom: -1px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    background-color: #e55c00 !important;
}

.inm-btnsave {
    display: flex !important;
}

    .inm-btnsave span.spinner-grow {
        margin-top: 3px;
        margin-right: 5px;
    }

.dropify-wrapper {
    border: 1px solid #d1d3e2 !important;
    border-radius: 0.35rem;
    color: #6e707e !important;
}

    .dropify-wrapper:hover {
        background-image: linear-gradient(-45deg, var(--ct-card-cap-bg) 25%, transparent 25%, transparent 50%, var(--ct-card-cap-bg) 50%, var(--ct-card-cap-bg) 75%, transparent 75%, transparent);
    }

    .dropify-wrapper .dropify-preview {
        background-color: var(--backorange) !important;
    }

.dropify-message > .file-icon {
    color: #6e707e;
}

    .dropify-message > .file-icon p {
        font-size: large;
        color: #6e707e;
    }

.bootstrap-select > .dropdown-toggle:after {
    display: none !important;
}

.iconpicker-popover.popover.bottom,
.iconpicker-popover.popover.bottomRightCorner,
.iconpicker-popover.popover.bottomRight,
.iconpicker-popover.popover.bottomLeft,
.iconpicker-popover.popover.bottomLeftCorner {
    opacity: 1 !important;
    margin-top: 10px;
}

.sidebar .nav-item .collapse .collapse-inner .collapse-item, .sidebar .nav-item .collapsing .collapse-inner .collapse-item {
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    display: block;
    color: #3a3b45;
    text-decoration: none;
    border-radius: 0.35rem;
    white-space: pre-wrap;
}

.zoom-container {
    overflow: hidden;
}

.zoom img {
    padding: 0px;
    margin: 0 auto;
    transform-origin: 65% 75%;
    transition: transform 1s, filter .5s ease-out;
}

    .zoom img:hover {
        transform: scale(1.05); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
    }


.post-container, .na-post-container {
    padding: 0;
    border: none;
    overflow: hidden;
}

.post-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1.5rem !important;
    clear: both;
    font-weight: 400;
    color: #3a3b45;
    text-align: inherit;
    /*white-space: nowrap;*/
    background-color: transparent;
    border: 0;
}

    .post-item:hover, .post-item:focus, .post-item.active, .post-item:active {
        color: var(--orange);
        text-decoration: none;
        background-color: #f8f9fc;
    }

    .post-item.disabled, .post-item:disabled {
        color: #858796;
        pointer-events: none;
        background-color: transparent;
    }

.post-container .post-item .text-truncate {
    max-width: 19.5rem;
}

.na-post-container .post-item .text-truncate {
    max-width: 16.5rem;
}

.post-image {
    position: relative;
    height: 70px;
    width: 70px;
    object-fit: cover;
}

    .post-image img {
        max-width: 100%;
        min-width: 70px;
        min-height: 70px;
        object-fit: cover;
        max-height: 100%;
    }

.post-excerpt {
    overflow: hidden;
    width: 300px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 90%;
}

.na-post-container .post-item .post-excerpt {
    width: 260px;
}

.topbar .navbar-search {
    width: 80rem;
}

.marquee-container {
    height: 30px;
    overflow: hidden;
    line-height: 30px;
}

    .marquee-container .marquee {
        left: 100%;
        width: 100%;
        /*overflow: hidden;*/
        position: relative;
        white-space: nowrap;
        animation: marquee 30s linear infinite;
    }

    .marquee-container .marquee-stop {
        left: 100%;
        width: 100%;
        /*overflow: hidden;*/
        position: relative;
        white-space: nowrap;
        animation: marquee 0s linear infinite;
    }

    .marquee-container .marquee2 {
        animation-delay: 15s;
    }

    .marquee-container b {
        padding-left: 10px;
    }

@keyframes marquee {
    0% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}

.sweet-alert .sa-icon.sa-success::before {
    top: -18px !important;
}

.nav-brand {
    height: 4.375rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    padding: 1.5rem 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    z-index: 1;
}

.navbar-brand img {
    margin: -130px;
}

.sidebar .sidebar-brand img {
    max-height: 65px;
}

.form-label {
    font-weight: 700;
}

.table thead th {
    font-weight: 600;
}

/* Grid table */
table.custom-grid {
    margin-bottom: 0 !important;
}

    table.custom-grid th,
    table.custom-grid td {
        white-space: nowrap;
    }

.custom-grid td.selected {
    background-color: rgba(78, 115, 223, 0.5) !important;
}

.custom-grid td.focused {
    outline: 2px solid #4e73df !important;
}

.custom-grid td.no-select {
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
}

.custom-grid td.focused[contenteditable="true"] {
    background-color: #fff !important;
    color: #6e707e !important;
}

.custom-grid th:hover {
    outline: 2x solid #fff !important;
}

.custom-grid th img {
    width: 20px;
    vertical-align: middle;
    filter: grayscale(100%) brightness(0.85) sepia(0.1) saturate(0);
}

.custom-grid th .th-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-grid th.text-right .th-wrapper {
    display: block;
    justify-content: space-between;
    align-items: center;
}

.custom-grid th .th-wrapper span {
    text-align: left;
}

.custom-grid th .th-wrapper img {
    text-align: right;
    padding-left: 5px;
}
/* Grid table end */

/* daterangepicker start */
.daterangepicker-wrapper {
    width: auto;
    position: relative;
}

    .daterangepicker-wrapper input {
        padding-right: 2.5rem; /* space for icon */
        background-image: url('data:image/svg+xml;utf8,<svg fill="gray" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>');
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 1rem;
        /*width: calc(100% - 2.5rem)!important;*/
    }

        .daterangepicker-wrapper input.dtp-full {
            width: 350px !important;
        }

.form-inline .daterangepicker-wrapper {
    display: inline-block;
}

@media (max-width: 576px) {
    .daterangepicker-wrapper {
        width: 100%;
    }

        .daterangepicker-wrapper input.dtp-full {
            width: 100% !important;
        }
}

/* daterangepicker end */

/* nav btn-group modification start */

/* Make nav behave like a true btn-group */
.nav.btn-group {
    display: inline-flex; /* or flex */
}

    /* Remove spacing introduced by the nav/btn combo */
    .nav.btn-group .nav-item {
        margin: 0;
    }

    /* Collapse borders like a button group */
    .nav.btn-group .btn {
        border-radius: 0;
    }

    .nav.btn-group .nav-item:first-child .btn {
        border-top-left-radius: .35rem;
        border-bottom-left-radius: .35rem;
    }

    .nav.btn-group .nav-item:last-child .btn {
        border-top-right-radius: .35rem;
        border-bottom-right-radius: .35rem;
    }

    /* Overlap borders so the seam disappears */
    .nav.btn-group .nav-item + .nav-item .btn {
        margin-left: -1px;
    }

/* nav btn-group modification end */
