@import url('https://fonts.googleapis.com/css2?family=Momo+Trust+Sans:wght@200..800&display=swap');




* {
    font-family: "Momo Trust Sans", Century, sans-serif;
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.refresh-btn {
    cursor: pointer;
    position: absolute;
    right: -4rem;
    text-align: center;
    top: 50.8%;
    transform: translateY(-50%);
    z-index: 9999;
    font-size: 1.4rem;
    border-radius: 0.375rem;
    background-color: #fff;
    height: 30px;
    width: 30px;
    color: var(--primary) !important;
}

.refresh-btn .spinner {
    display: inline-block;
    position: relative;
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
    z-index: 999;
    scale: 0.8;
}

.btn-info {
    color: #000 !important;
}

.list-group-item {
    color: #000 !important;
}

.refresh-btn.spin i {
    animation: spin 0.5s linear;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.header .header-content {
    padding-left: 5rem !important;
}

.footer .copyright a {
    color: var(--primary) !important;
}

.hide-pass.eye {
    position: absolute;
    right: 25px;
    bottom: 3px;
    font-size: 18px;
}

.elevation-0 {
    box-shadow: none !important;
}

.elevation-1 {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24) !important;
}

.elevation-2 {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) !important;
}

.elevation-3 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
}

.elevation-4 {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22) !important;
}

.elevation-5 {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22) !important;
}

.card {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
}

.card-body:not(.no-cbs) {
    border-radius: 0.5rem !important;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    --bs-border-opacity: 1;
    border-color: var(--primary) !important;
    margin: 1rem !important;
    padding: 1rem !important;
}

hr {
    margin: 0.5rem 0 !important;
}

.formerror {
    border: 1px ridge red !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23FF5E5E'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23FF5E5E' stroke='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    border-radius: 0.25rem !important;
    background-color: white;
}

.formvalid:not(.select2-search__field) {
    border: 1px ridge green !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%233A9B94' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    border-radius: 0.25rem !important;
    background-color: white;
}

.form-label.formerror {
    border: none !important;
    color: red !important;
}

.form-label.formvalid {
    border: none !important;
    color: rgb(35, 150, 96) !important;
}

.select2-container--default .select2-selection--single {
    border-radius: 0.25rem;
}

.form-check-inline .form-check-input {
    margin-right: 0 !important;
}

select[readonly],
input[readonly],
textarea[readonly] {
    cursor: no-drop !important;
}

/* ------------------------------------------------------------------------ */
/*------------------ FOR THIS THEME ONLY----------------- */
/* ------------------------------------------------------------------------ */
.header,
.deznav {
    /* background-color: #42185A; */
    background: hsla(278, 58%, 22%, 1);
    background: linear-gradient(315deg, hsla(278, 58%, 22%, 1) 40%, hsla(4, 99%, 27%, 1) 100%);
    background: -moz-linear-gradient(315deg, hsla(278, 58%, 22%, 1) 40%, hsla(4, 99%, 27%, 1) 100%);
    background: -webkit-linear-gradient(315deg, hsla(278, 58%, 22%, 1) 40%, hsla(4, 99%, 27%, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr="#42185A", endColorstr="#890A01", GradientType=1);
}

.nav-header {
    background-color: #42185A;
}

.btn-secondary,
.btn-warning {
    color: #000000 !important;
}

/* td ul.dropdown-menu li{
    list-style: none !important;
    text-align: center !important;
} */
.metismenu li>ul>li>a {
    color: #D2FF72 !important;
}

.metismenu li>ul>li>ul>li>a {
    color: #cdfc75 !important;
    /* padding-left: .5rem !important; */
}

.metismenu li>ul>li.mm-active>a,
.metismenu li>ul>li>ul>li>a.mm-active {
    color: #F8B940 !important;
}

.metismenu li>ul>li>a:hover,
.metismenu li>ul>li>ul>li>a:hover {
    color: #4DFFBE !important;
}


.content-body .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 1rem !important;
}

.footer {
    margin-top: -8px !important;
}

#profilePreview {
    width: 150px !important;
    height: 150px !important;
    object-fit: cover !important;
}

.copyright p {
    line-height: 35px !important;
}

.copyright {
    padding: 0px !important;
}

.user-img {
    border-radius: 50% !important;
    background-color: white;
    height: 55px !important;
    width: 55px !important;
    border: 1px ridge black;
    margin-right: 5px !important;
    object-fit: cover !important;
}

.username {
    color: yellow !important;
    font-size: 18px;
    margin-bottom: 0 !important;
    text-align: center;
}

.designation {
    color: cyan !important;
    font-size: 14px;
    margin-bottom: 0 !important;
    text-align: center;
}

.add-btn {
    margin-bottom: 10px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
}

.brand-img {
    width: 65%;
    height: auto;
    filter: brightness(0) invert(1);
}

.brand-logo {
    margin-top: 3px;
}

.brand-title {
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    margin-left: 0.5rem !important;
}

.form-control[type="file"] {
    line-height: 175% !important;
    padding-left: 10px !important;
}

.name-div {
    display: none;
}

.header-profile2 .dropdown-menu {
    width: fit-content !important;
}

.menu-icon i {
    font-size: 18px !important;
    margin-right: 8px !important;
    padding-bottom: 2px !important;
}

.deznav .metismenu>li.mm-active>a i {
    background: none !important;
    color: #F8B940 !important;
}

.tab-content {
    padding: 10px !important;
    border-radius: 0 0 0.25rem 0.25rem !important;
}

.btn:hover:not(.no-hover) {
    transform: scale(1.05);
}

#MyFilterDataTable th:first-child,
#MyFilterDataTable td:first-child {
    max-width: 30px !important;
}



td,
th,
.table thead tr th:last-child {
    text-align: center !important;
    vertical-align: middle !important;
}

.dataTables_scrollHead {
    border-top: 1px ridge #dad8d4 !important;
}

.display th {
    color: #fff !important;
    background-color: var(--primary) !important;
    border-color: white !important;
}

.display td {
    color: black;
}

table.DTCR_clonedTable.dataTable {
    position: absolute !important;
    max-width: fit-content !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    z-index: 202
}

div.DTCR_pointer {
    width: 3px;
    background-color: #000;
    z-index: 201
}

table.display {
    width: 100% !important;
}

table.dataTable>tfoot>tr>th,
table.dataTable>tfoot>tr>td {
    padding: 8px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.dataTables_wrapper .dataTables_paginate {
    margin-bottom: 0px !important;
}

.dataTables_info {
    padding-top: 0.25rem !important;
    color: black !important;
}

.dataTables_filter {
    margin-bottom: 0px !important;
    color: black !important;
}

.dataTables_scroll {
    padding-top: 0px !important;
}

.display tbody tr:nth-child(even) {
    background-color: #F5F5F5 !important;
}

.display tbody tr:hover {
    background-color: #FCF9EA !important;
    transition: background-color 0.1s ease-in-out;
}

table.dataTable thead>tr>th.sorting:after,
table.dataTable thead>tr>th.sorting_asc:after,
table.dataTable thead>tr>th.sorting_desc:after,
table.dataTable thead>tr>th.sorting_asc_disabled:after,
table.dataTable thead>tr>th.sorting_desc_disabled:after,
table.dataTable thead>tr>td.sorting:after,
table.dataTable thead>tr>td.sorting_asc:after,
table.dataTable thead>tr>td.sorting_desc:after,
table.dataTable thead>tr>td.sorting_asc_disabled:after,
table.dataTable thead>tr>td.sorting_desc_disabled:after {
    content: "▼" !important;
}

.deznav .metismenu {
    padding-top: 0 !important;
}

tr.filters th {
    background-color: #EEF7FF !important;
    padding: 2px !important;
    padding-left: 2px !important;
}

td ul {
    text-align: left !important;
}

td li {
    list-style: disc !important;
}

td textarea[readonly],
td input[readonly] {
    cursor: pointer !important;
    border: none !important;
    background-color: inherit !important;
    vertical-align: bottom !important;
}

.buttons-columnVisibility {
    background: grey !important;
    color: #fff !important;
}

.buttons-columnVisibility.active {
    background: #fff !important;
    color: var(--primary) !important;
    font-weight: 500 !important;
}

.form-label {
    margin-bottom: 0.05rem !important;
    margin-top: 0.75rem;
    font-size: 14px !important;
    color: black;
    margin-left: 2px !important;
}

.form-control {
    border-radius: 0.25rem !important;
    color: black !important;
    font-size: 14px !important;
    height: 2.5rem !important;
}

.form-check-label {
    font-size: 14px !important;
    margin-top: 4px !important;
    margin-left: 0 !important;
}

.form-check-input {
    top: 0.125rem !important;
    border-width: 2px !important;
    width: 1rem !important;
    height: 1rem !important;
}

.toast-container {
    padding-top: 70px !important;
}

.toast-header {
    border-bottom: 1px solid white !important;
}

.toast .btn-close {
    color: white !important;
}

.login-page {
    background-image: url('../../images/loginbg.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.authincation-content {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22) !important;
}

.auth-form {
    padding: 1rem;
    margin: 1rem;
    border: 1px solid var(--primary);
    border-radius: 16px;
}

.form-check-label {
    color: black;
    margin-top: 6px;
    font-size: 15px;
}

.preview-box {
    width: 100%;
    min-height: 100px;
    border: 1px solid #09122C;
    text-align: center;
    margin-top: 2px;
    padding: 2px;
    display: none;
    /* Hide preview box by default */
}

.preview-img {
    width: 100%;
}

.modal #body {
    text-align: justify;
}

.filters input {
    background: #fff !important;
}

.logintext {
    font-size: 75px;
    color: var(--primary);
    display: inline-block;
    font-weight: 1000;
    vertical-align: middle;
    margin-left: 2.5%;
}

.login-logo {
    width: 90% !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.menu-toggle .brand-img {
    width: 40% !important;
}

.select2-selection--multiple {
    max-height: 20vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.select2-search--dropdown {
    padding: 0 0.25rem;
    margin: 0;
}

.select2-container--open .select2-dropdown {
    padding: 0.25rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary);
}

.select2-selection__rendered {
    color: #7e7e7e !important;
}

.formvalid .select2-selection__rendered {
    color: black !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #dad8d4 !important;
}

.formvalid .select2-selection--single,
.formerror .select2-selection--single,
.formvalid .select2-selection--multiple,
.formerror .select2-selection--multiple {
    border-right: none !important;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 9px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0.36rem 0.75rem !important;
}

.select2-selection__choice__remove {
    color: white !important;
    font-size: 25px !important;
}

.select2-selection__choice__remove:hover {
    background-color: #C5172E !important;
}

.select2-selection__choice,
.select2-selection__choice__display {
    background-color: var(--primary) !important;
    color: white !important;
    font-size: 14px !important;
}

.a-link,
p a {
    color: darkblue !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.modal-title {
    color: var(--primary) !important;
    margin-bottom: 0 !important;
}

td:has(.btn),
td:has(.badge),
td:has(i),
td:has(textarea) {
    padding: 0 5px !important;
}

.modal-header .btn-close {
    color: red !important;
    --bs-btn-close-opacity: 1 !important;
    font-size: 20px !important;
    padding-top: 0 !important;
}

.modal-header {
    padding: 0.5rem 1rem !important;
}

.modal-border {
    border: 1px solid var(--primary) !important;
    border-radius: 0.25rem !important;
    margin: 6px !important;
    padding: 10px !important;
}

.modal-body {
    padding: 1rem;
    color: #000000;
}

.preload-image {
    width: 50% !important;
    display: block;
    margin: 0 auto;
}

.input-group-text {
    font-size: 14px !important;
}

.selectdiv .select2-container {
    width: 1% !important;
    position: relative !important;
    flex: 1 !important;
}

/* Dashboard */
.dashboard .event-open {
    border-left: 6px solid #a3e9a8 !important;
}

.dashboard .event-closed {
    border-left: 6px solid #ffb3b3 !important;
}

.dashboard .fas {
    color: #42185A !important;
}

.dashboard .showtext {
    color: #F94C10 !important;
}

.dashboard .scan-count-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #42185A !important;
    transition: transform 0.3s ease !important;
}

.dashboard .scan-count-circle:hover {
    transform: scale(1.05) !important;
}

.dashboard .template-name {
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.dashboard .btn-scan-action {
    background-color: #a3e9a8 !important;
    color: #155724 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.dashboard .btn-scan-action:hover {
    background-color: #88d18e !important;
    /* Slightly darker green on hover */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(21, 87, 36, 0.3) !important;
}

.dashboard .status-open {
    background-color: #a3e9a8 !important;
    color: #155724 !important;
}

.dashboard .status-closed {
    background-color: #ffb3b3 !important;
    color: #721c24 !important;
}

.dashboard .btn-status-closed {
    background-color: #ffb3b3 !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.dashboard .card {
    border-radius: 12px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.dashboard .card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.dashboard .d-cb {
    margin-top: 0 !important;
}

.mob-page-title {
    display: none !important;
}

#MyFilterDataTable2_filter {
    display: none !important;
}

.mobile-view {
    display: none !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: inherit;
}

.file-input-wrapper {
    position: relative;
}

.file-preview-icon {
    font-size: 20px;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    color: #0d6efd;
    /* Bootstrap primary blue */
}

.file-preview-wrapper {
    position: relative;
}

#filePreviewModal .modal-body {
    padding: 0.25rem !important;
}

#previewImage,
#previewPdf {
    max-width: 100%;
    border-radius: 0.25rem;
    border: 1px solid var(--primary);
}

#filePreviewModal .modal-content {
    max-height: 90vh;
    overflow: auto;
    width: fit-content;
    margin: auto;
}

#filePreviewModal img {
    max-height: 80vh;
    max-width: 100%;
}

#filePreviewModal iframe {
    height: 80vh;
    width: 50vw;
    border: 1px solid var(--primary);
}

.eye {
    right: 30px;
    bottom: 8px;
}

/* ------ Speech to text */
.speech-container {
    position: relative;
}

#micButton {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 40px;
    z-index: 2;
}

#micButton:not(.recording) {
    background-color: #42185A;
    color: white;
}

#micButton.recording {
    background-color: #F94C10;
    color: white;
}

#speechStatus {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0rem;
}

.attachment-item {
    background: #FDFFB8;
    color: #000;
    border: 1px solid #000;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;

}

.attachment-item span {
    font-size: 14px;

}

.remove-attachment-btn {
    background-color: #C5172E !important;
    color: #fff !important;
    padding: 4px;
    border-radius: 6px;
    border: 1px solid black;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

#detail-view .detail-row {
    display: flex;
    align-items: flex-start;
    /* Prevent value from shifting down */
    margin-bottom: 10px;
    font-size: 15px;
}

#detail-view .detail-label {
    width: 140px;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

#detail-view .detail-value {
    flex: 1;
    color: #890A01;
    word-break: break-word;
    /* Wrap long text */
}

.instruction-list {
    padding-left: 20px !important;
}

.instruction-list li {
    list-style: decimal !important;
        margin-bottom: 5px;
}

td .scroll-box {
    max-height: 70px;
    overflow-y: auto;
    display: block;
    overflow-x: hidden; 
    padding: 2px !important;
}
td .scroll-box .badge {
    margin : 2px 0 !important;
}

td:has(.scroll-box) {
    padding: 0px !important ;
}

.badge {
    line-height: 1.25 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    padding: 4px 6px !important;
}

td .form-check-input, th .form-check-input {
    width: 18px !important;
    height: 18px !important;
    margin-bottom: 0 !important;
}
/* -------------------------------------------------- */