
/* ===== Variables ===== */
:root {
    --red-1100: #48070F;
    --red-1000: #841826;
    --red-900: #A01426;
    --red-800: #CE1126;
    --red-700: #CE1126;
    --red-600: #CE1126;
    --red-500: #FF6A7D;
    --red-400: #FFA0AC;
    --red-300: #FFC7CE;
    --red-200: #FFE1E5;
    --red-100: #FFF1F3;
    --red-50: rgba(255, 241, 243, 0.5);
    --black:#2c2c2c;
    --border: var(--red-200);
    --gray-dark: #E6E6E6;
    --gray-light: #eeeeee;
    --button: var(--red-800);
    --link: #0D99FF;
    --white:#ffffff;
    --th-back: var(--red-100);
    --shadow: #666;
    --border-radius: 4px;


    --green-dark: #3AC977;
    --green-light: #daf5e6;
    --red-dark: #FF5E5E;
    --red-light: #ffdede;
    --orange-dark: rgb(211, 157, 0);
    --orange-light: rgba(211, 157, 0, 0.09);
    --blue-dark: #0d99ff;
    --blue-light: #e8f5ff;


    --dark: #262626;
    --light: #eeeeee;
    --main-color: var(--red-800);

    --left-spaceing: 16rem;
    --top-spaceing: 6rem;
}

/* ===== Typography ===== */
@font-face {
    font-family: head;
    src: url(../fonts/Poppins-Medium.ttf);
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: sand;
    src: url(../fonts/Poppins-Light.ttf);
    font-style: normal;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: head, sans-serif;
    color: var(--black);
    font-weight: 500;
}

p, span, a, input, select, textarea, button, option {
    font-family: sand, sans-serif;
    text-decoration: none;
    color: var(--black);
}

/* ===== General resets ===== */
* {
    box-sizing: border-box;
}

html {
    --title-bar-color: #2c2c2c;
    scroll-behavior: smooth;
    overflow-x: hidden;
    direction: ltr;
}

body {
    -webkit-font-smoothing: antialiased;
    font-family: sand, serif;
    overflow-x: hidden;
    scrollbar-width: thin; /* Options: auto | thin | none */
    scrollbar-color: var(--red-700) #fff0;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--red-700);
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-track {
    background-color: var(--gray-dark);
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--red-800);
}

body > * {
    scrollbar-color: var(--red-700) #fff0;
    scrollbar-width: thin;
}

div, ol, ul, span, table {
    scrollbar-width: thin;
}

::-moz-selection {
    color: var(--white);
    background: var(--red-700);
}

::selection {
    color: var(--white);
    background: var(--red-700);
}

/* ===== Utility Classes ===== */
.faded-text {
    font-size: 0.7em;
    color: #888888;
    margin-bottom: 10px;
    display: inline-block;
}

.f-6 { font-size: 0.6em !important; }
.f-7 { font-size: 0.7em !important; }
.f-8 { font-size: 0.8em !important; }
.f-9 { font-size: 0.9em !important; }
.f-10 { font-size: 1em !important; }
.f-11 { font-size: 1.1em !important; }
.f-12 { font-size: 1.2em !important; }
.f-13 { font-size: 1.3em !important; }
.f-14 { font-size: 1.4em !important; }
.f-15 { font-size: 1.5em !important; }


/* ===== Forms ===== */
.input {
    border-radius: 50px;
    padding: 7px;
    margin-bottom: 25px;
    border: 0;
    outline: none;
    font-size: 0.8em;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 1px 2px 3px var(--shadow);
    width: 100%;
    height: 45px;
    background-color: var(--white);
    color: var(--black);
    text-align: center;
    position: relative;
}

textarea {
    height: 100px !important;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 10px;
}

.input-file-container {
    border: 0.0625rem dashed #979797;
    min-height: 6.325rem;
    position: relative;
    border-radius: 0.375rem;
    text-align: center;
    padding: 14px 0;
}

.input-file-container input[type="file"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    border: 1px solid;
    position: absolute;
    top: 0;
}

.input-file-container i {
    font-size: 3em;
    color: #979797;
}

.input-file-container .file-name {
    display: block;
    color: #979797;
    font-family: head, arial, helvetica, sans-serif;
    font-size: 0.7em;
    /*opacity: 0;*/
}

.form-check-input:checked {
    background-color: var(--red-600);
    border-color: var(--red-600);
}

.form-check-input:focus {
    border-color: var(--red-600);
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--red-200);
}

.input-file {
    border-radius: 50px;
    padding: 7px;
    margin-bottom: 25px;
    border: 0;
    outline: none;
    font-size: 0.8em;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 1px 2px 3px #666;
    width: 100%;
    height: 45px;
    background-color: var(--white);
    color: var(--black);
    text-align: center;
    position: relative;
}

.input-file span {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    line-height: 3.5;
    color: var(--black);
    opacity: 0.6;
}

input[type=number] {
    -moz-appearance: textfield;
}

input::-ms-input-placeholder,
input::placeholder {
    color: var(--black);
    opacity: 1;
}

.form-control-textarea {
    height: 85px
}

.form-control:hover,
.form-control:focus,
.form-control.active {
    color: #6e6e6e;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--blue-dark) !important
}

.error-input input,
.error-input select,
.error-input textarea,
.error-input .select2 .select2-selection {
    border-color: var(--main-color) !important;
    box-shadow: 0px 0px 1px 0px var(--main-color);
}

.error-input label,
.error-input .select2-selection__placeholder{
    color: var(--main-color) !important;
}

.error-input::-webkit-input-placeholder { /* Chrome/Edge/Safari */
    color: var(--red-600);
}
.error-input::-moz-placeholder { /* Firefox 19+ */
    color: var(--red-600);
}
.error-input:-ms-input-placeholder { /* IE10+ */
    color: var(--red-600);
}
.error-input:-moz-placeholder { /* Firefox 18- */
    color: var(--red-600);
}

.input-group-text {
    color: var(--white);
    background-color: var(--red-700);
    border: var(--bs-border-width) solid var(--red-700);
}

.show-pass {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 5px;
    top: 7px;
    color: #979797;
    font-size: 1.2em;
    z-index: 6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-pass-left {
    left: 5px;
    right: unset;
}

.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
    border-top-left-radius: var(--bs-border-radius);
    border-bottom-left-radius: var(--bs-border-radius);
}


/* ===== Third-Party Components (Select2) ===== */
.select2-container {
    border-radius: var(--border-radius);
    width: 100% !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    /*height: 345px;*/
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    font-size: 1.1em;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--gray-dark);
    color: var(--black);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--gray-dark);
    color: var(--black);
    border: 0
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    padding: 0 7px;
    font-size: 1.5em;
    font-weight: unset;
    vertical-align: middle;
    border-right: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 10px;
    padding-right: 10px;
    font-family: head;
    color: var(--black);
    font-size: 0.9em;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background-color: unset;
    color: unset;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #CCCCCC;
}

select {
    background-color: #fff;
    border-radius: 0;
}

.select2 .select2-selection {
    border: 1px solid;
}

.select2-dropdown {
    z-index: 9999999999 !important;
    border-color: #CCCCCC !important;
}

.select2-results__option {
    font-size: 0.8em;
    color: var(--black);
}

.select2 .select2-selection {
    line-height: 1.7rem;
    padding-left: 7px;
    min-height: 2.6rem !important;
    height: auto;
    max-height: 250px;
    color: #6e6e6e;
    font-size: 0.8em;
    border-color: #CCCCCC;
    /*color: #979797;*/
    font-family: head, arial, helvetica, sans-serif;

    overflow: hidden;
}

.select2-container--default .select2-results__option--selected {
    border-color: #CCCCCC !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 7px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2.6rem;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===== BADGES ===== */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.7em;
    font-weight: bold;
    border-radius: 0.2rem;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    vertical-align: baseline;
    line-height: 1;
    color: var(--black);
    border: 0.0625rem solid transparent;
}

.badge-success {
    background-color: var(--green-light);
    border-color: var(--green-dark);
    color: var(--green-dark);
}

.badge-danger {
    background-color: var(--red-light);
    border-color: var(--red-dark);
    color: var(--red-dark);
}

.badge-warning {
    background-color: var(--orange-light);
    border-color: var(--orange-dark);
    color: var(--orange-dark);
}

.badge-info {
    background-color: var(--blue-light);
    border-color: var(--blue-dark);
    color: var(--blue-dark);
}

.badge-dark {
    background-color: var(--light);
    border-color: var(--dark);
    color: var(--dark);
}

/* ===== Alerts ===== */
.alert {
    position: fixed;
    top: -15%;
    right: 2%;
    border-radius: .3rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    z-index: 1070;
    padding: 0;
    max-width: 550px;
    min-width: 400px;
    margin: 0;
    opacity: 0;
    transition: top 0.15s ease, opacity 0.15s ease;
}

.alert .row {
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--white);
    margin: 0
}

.alert .icon {
    width: 10%;
    padding: 0
}


.alert .text {
    width: 85%;
    padding: 0
}

.alert i {
    font-size: 1.8em;
}

.alert p {
    font-family: head, serif;
    font-weight: 400;
    font-size: 0.8em;
    color: var(--black);
    margin: 0;
}

.alert-success .row {
    background-color: var(--green-light);
    border-color: var(--green-light);
}

.alert-success i,
.alert-success p {
    color: var(--green-dark)
}

.alert-danger .row {
    background-color: var(--red-light);
    border-color: var(--red-light);
}

.alert-danger i,
.alert-danger p {
    color: var(--red-dark);
}

.alert-warning .row {
    background-color: var(--orange-light);
    border-color: var(--orange-light);
}

.alert-warning i,
.alert-warning p {
    color: var(--orange-dark);
}

.alert-info .row {
    background-color: var(--blue-light);
    border-color: var(--blue-light);
}

.alert-info i,
.alert-info p {
    color: var(--blue-dark);
}

.alert-dark .row {
    background-color: var(--dark);
    border-color: var(--dark);
}

.alert-dark i,
.alert-dark p {
    color: var(--light);
}

/* ===== Buttons ===== */
.button {
    font-family: head, serif;
    min-width: 7rem;
    transition: all 0.3s ease;
    font-weight: 400;
    background-color: var(--red-800);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 0.5rem 1.525rem;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);
    font-size: 0.8em;
    border: 3px solid var(--main-color);
    position: relative;
    overflow: hidden;

    /*text-transform: uppercase;*/
}

.button:hover {
    box-shadow: 0 5px 7px -4px var(--dark);
}

.rounded-button {
    border-radius: 10rem;
}

.secondary-button {
    background-color: #fff;
    color: var(--main-color);
    border: 3px solid var(--main-color);
}

.button:disabled:not(.loading-button) {
    opacity: 0.6;
    pointer-events: none;
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.3rem;

}

.icon-button i {
    font-size: 1.1rem;
}

.button-md {
    min-width: 7rem;
    padding: 0.4rem 1.425rem;
    font-size: 0.75em;
}

.button-sm {
    min-width: 6rem;
    padding: 0.3rem 1.325rem;
    font-size: 0.7em;
}

.dropdown-button {
    background-color: unset;
    border: 0;
    font-size: 1.5em;
    padding: 0px 2px;
    color: var(--black);
}
/* ===== Links ===== */
.link {
    display: inline-block;
    font-size: 0.8em;
    color: var(--link);
    padding: 0.1rem 0.525rem;
    transition: color 0.15s ease;
    cursor: pointer;
}

.link:hover, .link:focus,
.link:hover, .link:focus {
    text-decoration: none;
    color: #3b71ca;
}

/* ===== Cards ===== */
.card:not(.sidebar-card) {
    display: block;
    max-width: 100%;
    outline: none;
    overflow-wrap: break-word;
    position: relative;
    white-space: normal;
    transition: box-shadow .28s cubic-bezier(.4,0,.2,1),-webkit-box-shadow .28s cubic-bezier(.4,0,.2,1);
    will-change: box-shadow;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);
    border-radius: var(--border-radius);
    background-color: var(--white);
    border-color: var(--white);
    padding: 12px;
}

.card .card-footer,
.card .card-body,
.card .card-heading {
    padding: .5rem .5rem;
    margin: 0;
}

.card .card-footer {
    background-color: unset;
    border-top: 1px solid var(--gray-light);
}

.card .card-image {
    position: relative;
    overflow: hidden;
    max-height: 185px;
    top: -30px;
    border-radius: var(--border-radius);
    margin-bottom: -10px !important;
    box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12) !important;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    max-height: 185px;
}

.floating-card {
    position: relative;
}

.floating-card .card-head {
    position: absolute;
    top: -30px;
    left: 3%;
    width: 94%;
    box-shadow: 0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12) !important;
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.floating-card .card-head * {
    color: var(--white);

}

.floating-card .card-body {
    margin-top: 3rem;
}

.statistics-card {
    padding: 0 .5rem !important;
}

.statistics-card .card-head {
    width: auto;
    padding: 1.3em 1.7em;
    /*background-color: var(--red-dark)*/
}

.statistics-card .card-body {
    padding: .5rem 0;
    margin-top: 0;
    text-align: right;
}

.statistics-card .card-body p:last-of-type {
    margin-bottom: 0;
}

.statistics-card .card-footer p {
    margin-left: .5em;
    margin-right: .5em;
}

.theme-green .card-head { background-color: var(--green-dark); }
.theme-green .card-footer i { color: var(--green-dark); }

.theme-blue .card-head { background-color: var(--blue-dark); }
.theme-blue .card-footer i { color: var(--blue-dark); }

.theme-red .card-head { background-color: var(--red-dark); }
.theme-red .card-footer i { color: var(--red-dark); }

.theme-orange .card-head { background-color: var(--orange-dark); }
.theme-orange .card-footer i { color: var(--orange-dark); }

/* ===== Loaders ===== */
.page-loading {
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    opacity: 0;
    background-color: rgba(26, 26, 36, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: #FFF #FFF transparent transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after,
.loader::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid;
    border-color: transparent transparent var(--main-color) var(--main-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
}

.loader::before {
    width: 42px;
    height: 42px;
    border-color: #FFF #FFF transparent transparent;
    animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}


.button .button-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(230, 28, 54, 0.7);
    text-align: center;
    left: 0;
    top: 0;
}

.button-loader .parent {
    width: 50%;
    height: 100%;
    position: relative;
    /*overflow: hidden;*/
}

.button-loader div:not(.parent) {
    position: absolute;
    top: 40%;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
    border-radius: 50%;
    height: 11px;
    width: 11px;
    background-color: var(--white)
}

.button-loader .parent div:nth-child(1) {
    left: 20%;
    animation: loader--ellipsis1 0.6s infinite;
}

.button-loader .parent div:nth-child(2) {
    left: 20%;
    animation: loader--ellipsis2 0.6s infinite;
}

.button-loader .parent div:nth-child(3) {
    left: 45%;
    animation: loader--ellipsis2 0.6s infinite;
}

.button-loader .parent div:nth-child(4) {
    left: 60%;
    animation: loader--ellipsis3 0.6s infinite;
}

@keyframes loader--ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes loader--ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes loader--ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(19px, 0);
    }
}

/* ===== Tooltip ===== */
.custom-tooltip {
    display: none;
    position: absolute;
    background-color: var(--red-800);
    font-size: 9px;
    font-family: head, arial, helvetica, sans-serif;
    width: auto !important;
    color: var(--white);
    padding: 4px;
    border-radius: 4px;
    text-align: center;
    z-index: 99999999;
    /*white-space: nowrap;*/
    transition: opacity 0.4s ease-in-out;
    height: fit-content;
}

/* ===== Forms ===== */
.input-container {
    position: relative;
}

.input-group {
    z-index: 1
}

.form-floating > label {
    height: auto;
    background: transparent;
    padding: 0.5rem .75rem 0;
}

.form-floating > .form-control-plaintext ~ label,
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    font-size: 1em;
    transform: scale(.85) translateY(-.5rem) translateX(1rem);
}

.form-label,
.file-form-label {
    color: #979797;
    font-family: head, arial, helvetica, sans-serif;
    font-size: 0.8em;
    max-height: 250px;
    overflow: auto;
    margin: 0;
    padding: 0px 3px;
    background-color: var(--white);
}

.input-container .form-label,
.input-container .file-form-label {
    /*position: absolute;*/
    /*z-index: 2;*/
    /*left: 15px;*/
    /*top: 20px;*/
    /*transform: translateY(-50%);*/
    /*pointer-events: none;*/
    /*transition: all 0.3s ease;*/
}

.input-container .select-label {
    top: 48%;
}

.input-container .select2-label {
    top: 27%;
}

.input-container .form-label:focus {
    /*color: var(--link)*/
}

.input-container .form-control {
    color: #6e6e6e;
    font-size: 0.8em;
    border-color: #CCCCCC;
    /*height: 2.6rem;*/
    height: 42px;
    padding: .375rem .9rem;
    min-height: unset;
}

.input-container .focused {
    /*top: -3px;*/
    /*left: 20px;*/
    /*color: var(--link)*/
}

.form-check-input {
    margin-top: 0;
    border: 1px solid #CCCCCC
}

.input-container-borderless {

}

.input-container-borderless .form-control {
    /*background-color: transparent;*/
    background-color: #fff;
    border-radius: 0;
    border: 0;
    /*border-bottom: 1px solid;*/
    transition: all 0.3s ease-in-out;
    position: relative;
}

.input-container-borderless .input-group:before {
    content: "";
    bottom: -1px;
    border-style: solid;
    border-width: thin 0 0 0;
    border-color: rgba(0,0,0,.42);
    padding-right: 0;
    padding-left: 0;
    left: 0;
    position: absolute;
    -webkit-transition: .3s cubic-bezier(.25,.8,.5,1);
    transition: .3s cubic-bezier(.25,.8,.5,1);
    width: 100%;
}

.input-container-borderless .input-group:hover:before {
    border-color: rgba(0,0,0,.87);
}

/* ===== Dropdowns ===== */
.dropdown,
.dropdown-center,
.dropend,
.dropstart,
.dropup,
.dropup-center {
    position: static;
}

.dropdown-parent {
    width: 50px;
    display: flex;
    margin: auto
}

.dropdown-menu {
    font-size: inherit;
    border: 0;
    overflow: hidden;
    border-radius:var(--border-radius);
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)
}

.dropdown-menu li span {
    color: var(--black)
}

.btn-dropdown {
    border: 0;
    color: var(--black) !important;
    min-width: unset !important;
    height: 35px;
    /*background-color: var(--th-back) !important;*/
    box-shadow: unset;
}

.dropdown-parent a {
    font-size: 0.875em;
    font-weight: 400;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    transition: all 0.4s ease;
}

.dropdown-item {
    cursor: pointer;
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: #eee;
}

.btn-dropdown:after,
.btn-dropdown:before {
    display: none !important;
}

/* ===== Tables ===== */
table {

}

table tr {
    height: 48px;
    border-bottom: thin solid rgba(0,0,0,.12);
}

table td,
table th {
    vertical-align: middle;
    font-size: 0.9rem;
    padding: 0.5rem;
}

table th {
    font-family: head, arial, helvetica, sans-serif;
    font-weight: normal;
    color: var(--red-700);
    /*font-size: 1rem;*/
}

table td.long-text {
    max-width: 150px;
    word-break: break-word;
    font-size: 0.8rem;
}

table tbody tr {
    transition: all 0.3s
}

.hover-table tbody tr:hover {
    background: #eee;
}

.sortable {
    cursor: pointer;
}

table thead tr th i {
    margin-left: 5px;
    color: var(--white) !important;
    font-size: 0.6em;
}

/*table tbody tr:nth-of-type(2n) {*/
/*    --bs-table-bg: var(--red-50);*/
/*    background-color: var(--red-50); !* Custom background color for striped rows *!*/
/*}*/

.page-next,
.page-prev {
    cursor: pointer;
    position: relative;
    display: block;
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
    font-size: var(--bs-pagination-font-size);
    color: var(--red-600) !important;
    text-decoration: none;
    line-height: 1.1;
    /*background-color: var(--bs-pagination-bg);*/
    /*border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);*/
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.page-next i,
.page-prev i {
    color: var(--red-700) !important;
    font-size: 0.8em;
}

.page-next i:before,
.page-prev i:before {
    font-weight: bold !important;
}

.page-next.disabled,
.page-prev.disabled {
    color: var(--black);
    pointer-events: none;
    /*background-color: var(--bs-pagination-disabled-bg);*/
    /*border-color: var(--bs-pagination-disabled-border-color);*/
}

.page-item {
    cursor: pointer;

}

.page-item a {
    color: var(--red-700);
    width: 24px;
    height: 24px;
    border: 0;
    line-height: 24px;
    padding: 0;
    text-align: center;
    border-radius: 0.375rem;
    font-size: 0.8em;
    margin: 0 0.125rem !important;
    transition: all .25s ease-in-out;
    border: 0;
}

.page-item a:hover {
    background-color: var(--red-100);
    color: var(--red-700);
}

.page-item.active a {
    color: var(--white);
    background-color: var(--red-700);
    border: 0;
    font-size: 0.7em;
    font-weight: bold;
}

.showing p {
    font-size: 0.8em;
}

.img-text-column {
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 8px 5px;
    /*width: fit-content;*/
}

.img-text-column img {
    height: 2.813rem;
    width: 2.813rem;
    margin-right: 10px;
    border-radius: 0.375rem;
}

.img-text-column h6 {
    font-size: 0.9em;
}

.img-text-column p {
    font-size: 0.8em;
    margin: 0;
}

/* ===== Data-Tables ===== */
div.dataTables_processing {
    border: none;
    padding: 20px;
    font-size: 16px;
    z-index: 9999;
}

/* Custom spinner */
.table-loader .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #cf152d; /* your main brand color */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dataTables_filter input[type="search"],
.dataTables_wrapper .dataTables_length select {
    color: #6e6e6e;
    border-color: #CCCCCC;
    height: 42px;
    padding: .375rem .9rem;
    min-height: unset;
    width: 275px;
    transition: border-color 0.3s ease;
    background: url('https://cdn-icons-png.flaticon.com/512/17216/17216943.png') no-repeat 95% center;
    background-size: 16px 16px;
}

.dataTables_wrapper .dataTables_length select {
    width: auto;
    background: unset
}

.dataTables_wrapper .dataTables_info {
    color: var(--black);
    font-size: 0.9em;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: .4em .8em
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    border-color: #ccc
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border-color: var(--shadow);
    background: var(--shadow);
    transition: all 0.3s ease;
}

/* Outer table border */
table.dataTable {
    border: 1px solid #e0e5ec;
    border-collapse: collapse;
}

/* Header borders */
table.dataTable thead th {
    border: 1px solid #e0e5ec;
    background-color: #f8f8f8;
}

/* Cell borders */
table.dataTable tbody td {
    border: 1px solid #e0e5ec;
}

table th {
    color: var(--black);
    text-align: center !important;
    font-size: 0.8em;
    white-space: nowrap;
}

table td {
    font-size: 0.8em;
    text-align: center !important;
    white-space: nowrap;
}

table.dataTable > thead > tr > th, table.dataTable > thead > tr > td {
    border-bottom: none
}

table.dataTable thead > tr > th.sorting::before,
table.dataTable thead > tr > th.sorting::after,
table.dataTable thead > tr > th.sorting_asc::before,
table.dataTable thead > tr > th.sorting_asc::after,
table.dataTable thead > tr > th.sorting_desc::before,
table.dataTable thead > tr > th.sorting_desc::after,
table.dataTable thead > tr > th.sorting_asc_disabled::before,
table.dataTable thead > tr > th.sorting_asc_disabled::after,
table.dataTable thead > tr > th.sorting_desc_disabled::before,
table.dataTable thead > tr > th.sorting_desc_disabled::after,
table.dataTable thead > tr > td.sorting::before,
table.dataTable thead > tr > td.sorting::after,
table.dataTable thead > tr > td.sorting_asc::before,
table.dataTable thead > tr > td.sorting_asc::after,
table.dataTable thead > tr > td.sorting_desc::before,
table.dataTable thead > tr > td.sorting_desc::after,
table.dataTable thead > tr > td.sorting_asc_disabled::before,
table.dataTable thead > tr > td.sorting_asc_disabled::after,
table.dataTable thead > tr > td.sorting_desc_disabled::before,
table.dataTable thead > tr > td.sorting_desc_disabled::after {
    opacity: .3 !important;
}

div.dataTables_processing > div:last-child > div {
    background-color: var(--red-dark)
}

.columns-toggle label {
    background-color: unset;
    transition: all 0.3s ease;
    cursor: pointer;
}
table.dataTable.hover > tbody > tr > *,
table.dataTable.display > tbody > tr > * {
    transition: all .4s ease;
}

table.dataTable.hover > tbody > tr:hover > *,
table.dataTable.display > tbody > tr:hover > * {
    box-shadow: unset;
    background-color: var(--gray-light)
}

.dataTables_scrollBody {
    min-height: 85px;
}


.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 1.5rem;
}

/* ===== Tables Placeholders ===== */
table .placeholder {
    border-radius: 10px;
    background-color: var(--gray-dark);
    width: 75%;
    /*opacity: 1*/
}

/* ===== Models ===== */
.modal-content {
    border: 0 !important;
}

