/* You can add global styles to this file, and also import other style files */
.app-content-header {
    padding: 1rem 0.5rem !important;
}

.navbar-nav .ms-auto {
    margin-right: auto !important;
}

.float-sm-end-right {
    float: right !important;
}

#navigation .navbar-badge {
    max-width: max-content;
    left: unset;
}

.user-menu .dropdown-menu-end[data-bs-popper] {
    left: unset;
    right: 0;
}

.sidebar-menu .nav-item>.nav-link .nav-arrow {
    transition: transform ease-in-out 0.3s;
    transform: translateY(-50%)
        /*rtl:append:rotate(180deg)*/
        !important;
    animation-name: fadeIn;
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

.sidebar-wrapper .menu-open>.nav-link .nav-arrow {
    transform: translateY(-50%) rotate(90deg)
        /*rtl:ignore*/
        !important;
}

.sidebar-menu .nav-link>.nav-arrow,
.sidebar-menu .nav-link>.nav-badge,
.sidebar-menu .nav-link>p>.nav-arrow,
.sidebar-menu .nav-link>p>.nav-badge {
    left: 88% !important;
    right: unset !important;
}





/* custom css start (13-01-2026) */
.card-header::after {
    display: none;
}

.modal-header {
    justify-content: space-between;
}

.modal-header .btn-close {
    margin-right: unset;
}

.navbar-nav>.user-menu>.dropdown-menu.profile-menu {
    width: auto;
    min-width: 180px;
}

.navbar-nav>.user-menu>.dropdown-menu>.user-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn {
    line-height: 20px;
    transition: none;
}

.navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-default {
    text-align: left;
    transition: none;
    line-height: 19px;
}

.navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-default:hover {
    background-color: #0d6efd;
    color: #fff !important;
    transition: none;
}

.app-footer {
    text-align: center;
}

.sidebar-navigation {
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-wrap: nowrap;
}

.logout-link {
    gap: 4px;
}

.breadcrumb {
    margin-top: 10px;
    gap: 4px;
}

.border-box {
    border-left: 1px solid #ccc;

    border-right: 1px solid #ccc;

}

.card-title {
    float: left;
}

.bg-success,
.card-success,
.text-bg-success,
.badge {
    line-height: 19px !important;
}

.toggle-icon {
    color: #212529 !important;
    font-size: 24px !important;
    line-height: 24px !important;
}

.table-responsive {
    border: 1px solid #ccc;
    border-radius: 6px;
}

.table> :not(caption)>tr:last-child>td {
    border-bottom-width: 0;
}

.btn-close:focus,
.form-select:focus,
.form-control:focus {
    box-shadow: none !important;
    border-color: #7e8081 !important;
}

.agent-dropdown-container .input-group:focus-within .input-group-text,
.agent-dropdown-container .input-group:focus-within input {
    border-color: #7e8081;
}

.input-group:not(.has-validation)> :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-radius: 0.375rem 0 0 0.375rem;
}

.navbar-nav>.user-menu .user-image {
    object-fit: contain;
}

.progress {
    border-radius: 6px;
}

.middle-container {
    width: calc(100% - 250px);
    float: right;
}

.dashboard-section {
    display: block;
}

.sidebar-collapse .middle-container {
    width: 100%;
}

.middle-section {
    min-height: calc(100vh - 133px);
}

input.remember,
input#remember {
    margin-right: 6px;
}



.btn-info,
.btn-danger,
.action-button {
    line-height: 19px;
}

.password-btn {
    border-radius: 0 0.375rem 0.375rem 0 !important;
    border: var(--bs-border-width) solid var(--bs-border-color);
    box-shadow: var(--bs-box-shadow-inset);
}

.roles-box label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.border-bottom-box {
    border-bottom: 1px solid #ccc;
}

.border-bottom-box:last-child {
    border-bottom: 0;
}

.form-select {
    background-position: right .75rem center;
    padding: .375rem 2.25rem .375rem .75rem;
}



/* Show modal as right sidebar */
.modal.show.d-block {
    display: block !important;
}

/* Align modal dialog to right */
.modal-dialog {
    position: fixed !important;
    right: 0;
    top: 0;
    margin: 0;
    height: 100vh;
    max-width: 35% !important;
    min-width: 35% !important;
    /* adjust sidebar width */
    width: 100% !important;
    pointer-events: auto;
    transform: translateX(0);
}

/* Sidebar animation */
.modal.fade .modal-dialog {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-dialog {
    transform: translateX(0);
}

/* Full height modal content */
.modal-content {
    height: 100vh;
    border-radius: 0;
}

/* Scroll only modal body */
.modal-body {
    overflow-y: auto;
    /* max-height: calc(100vh - 120px); */
    /* header + footer */
}

/* Optional: remove backdrop darkening */
.modal-backdrop.show {
    opacity: 0 !important;
}

.modal.show::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 77%);
    z-index: 1050;
}

.modal-dialog {
    z-index: 1055;
}

span.small-txt,
.text-muted {
    font-size: 12px;
}

.breadcrumb-item+.breadcrumb-item::before {
    display: none;
}

.dt-search,
.dt-length,
.dt-info,
div.dt-buttons {
    padding: 10px;
}

.dt-paging.paging_full_numbers {
    padding: 10px;
}

div.dt-container div.dt-paging ul.pagination,
ul.pagination {
    justify-content: flex-end;
    gap: 8px;
}

.modal-dialog {
    margin-top: 0 !important;
    height: 100vh !important;
}

.modal-content {
    border-radius: 0 !important;
    border: 0px !important;
}

/* .modal-body {
    max-height: calc(100vh - 130px);
} */

.page-link:focus {
    box-shadow: none !important;
}

.page-item .page-link {
    cursor: pointer;
}

.table-responsive .dropdown-toggle {
    white-space: nowrap;
    margin-right: 10px;
    padding: .25rem .5rem !important;
    font-size: .875rem;
    border-radius: var(--bs-border-radius-sm) !important;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg) !important;
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color) !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.table-responsive .dropdown-toggle::after {
    margin-top: 4px;
}

.info-box {
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
}

.info-box .info-box-icon {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

.info-box .progress-description,
.info-box .info-box-text {
    font-weight: 600;
    font-size: 18px;
    white-space: pre-wrap;
}

.info-box .info-box-number {
    font-size: 16px;
    color: rgb(0 0 0 / 65%);

}

table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
    text-align: left !important;
}

.page-link {
    padding: 2px 10px !important;
}

.permission-group {
    border: 0;
}

.input-group> :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-radius: 0 0.375rem 0.375rem 0;
}

.login-box,
.register-box {
    min-width: 380px;
}

.login-card-body,
.register-card-body {
    border-radius: var(--bs-border-radius);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);

    /* Center content */
    justify-content: center;
    align-items: center;
}

.lightbox-wrapper {
    position: relative;
    display: inline-block;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
    object-fit: contain;
    display: block;
}

.close-btn {
    position: absolute;
    top: -30px;
    right: -30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.imagePreview {
    cursor: pointer;
}

.logo-main {
    max-height: 100px;
}

div.dt-scroll-head table.dataTable,
.dt-scroll-headInner {
    width: 100% !important;
}

.custom-space {
    margin-right: 12px;
    margin-top: 3px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.user-menu .dropdown-toggle.show .dropdown-arrow::before {
    transform: rotate(180deg);
}

.tiles-section {
    margin-bottom: 30px;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    padding-left: 12px;
}

.remember-txt {
    padding-right: 0;
}

.tiles-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* .sidebar-wrapper .sidebar-menu > .nav-item.menu-open .nav-treeview .nav-link{
    background-color: #6c6c6ca6;
} */
.sidebar-wrapper .sidebar-menu>.nav-item>.nav-treeview {
    background-color: #6c6c6c3b;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: .2rem;
}

.sidebar-wrapper .sidebar-menu>.nav-item.menu-open .nav-treeview .nav-link:hover,
.sidebar-wrapper .sidebar-menu>.nav-item.menu-open .nav-treeview .nav-link:focus {
    color: var(--lte-sidebar-hover-color);
    background-color: var(--lte-sidebar-hover-bg);
}

button.page-link.previous,
button.page-link.first,
button.page-link.next,
button.page-link.last {
    font-size: 22px;
    line-height: 23px;
    padding-top: 0 !important;
    padding-bottom: 5px !important;
}

.reset-password .form-control {
    border-radius: 0.375rem !important;
}

.reset-password i {
    position: absolute;
    right: 15px;
    top: 8px;
    cursor: pointer;
}

table.dataTable th.dt-type-numeric div.dt-column-header,
table.dataTable th.dt-type-numeric div.dt-column-footer,
table.dataTable th.dt-type-date div.dt-column-header,
table.dataTable th.dt-type-date div.dt-column-footer,
table.dataTable td.dt-type-numeric div.dt-column-header,
table.dataTable td.dt-type-numeric div.dt-column-footer,
table.dataTable td.dt-type-date div.dt-column-header,
table.dataTable td.dt-type-date div.dt-column-footer {
    flex-direction: row !important;
}

.breadcrumb-item+.breadcrumb-item {
    padding: 0 !important;
}

li.breadcrumb-item a {
    text-decoration: none;
    color: var(--bs-secondary-color);
    font-weight: 700;
}

li.breadcrumb-item.active,
.breadcrumb li.active {
    color: #555555de;
}

.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by {
    display: none;
}

.modal-footer {
    position: fixed;
    width: 50% !important;
    background: #fff !important;
    bottom: 0px;
    border-bottom-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}

.modal.show::before {
    height: 100vh;
}

body.no-scroll {
    overflow: hidden;

}

.modal-content {
    /* display: flex;
  flex-direction: column; */
    max-height: 100dvh;
    overflow: auto !important;
}

.modal-body {
    /* max-height: 70vh; */
    flex: 1;
    /* 🔥 key line */
    overflow-y: auto;
    /* scroll works */
    overflow-x: hidden;
    max-height: calc(100vh - 130px);
}

.modal-dialog {
    max-width: 50% !important;
    min-width: 50% !important;
}

.modal-header,
.modal-footer {
    flex-shrink: 0;
}

/* BODY LOCK */
body.no-scroll {
    overflow: hidden;
}

/* REAL OVERLAY (no fake ::before) */
.modal {
    position: fixed;
    inset: 0;

}

html,
body {
    overscroll-behavior: none;
}

/* =========================
   SWEETALERT2 FIX (GLOBAL)
========================= */

/* Container (full screen overlay) */
.swal2-container {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px;
    z-index: 99999 !important;
    box-sizing: border-box;
}

/* Popup box */
.swal2-popup {
    position: relative;
    display: block !important;
    width: 32em;
    max-width: 100%;
    padding: 1.25em;
    border-radius: 10px;
    background: #fff !important;
    color: #545454;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* Title */
.swal2-title {
    margin: 0 0 0.5em;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
}

/* Text */
.swal2-html-container {
    margin: 0.5em 0;
    text-align: center;
    font-size: 1em;
    line-height: 1.4;
}

/* Icon alignment */
.swal2-icon {
    margin: 0 auto 0.6em auto;
}

/* Buttons container */
.swal2-actions {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.25em;
}

/* Buttons */
.swal2-confirm {
    background-color: #3085d6 !important;
    color: #fff !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
}

.swal2-cancel {
    background-color: #d33 !important;
    color: #fff !important;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Fix for tablet viewport (important) */
.swal2-container {
    height: 100vh;
    height: 100dvh !important;
}

/* Prevent your modal CSS interference */
body.swal2-shown .modal {
    display: none !important;
}

/* Ensure no overflow issues */
body.swal2-shown {
    overflow: hidden !important;
}

/* Animation smooth */
.swal2-show {
    animation: swal2-show 0.3s ease-out;
}

.swal2-icon {
    position: relative;
    box-sizing: content-box;
    justify-content: center;
    width: 5em;
    height: 5em;
    margin: 2.5em auto .6em;
    zoom: var(--swal2-icon-zoom);
    border: .25em solid rgba(0, 0, 0, 0);
    border-radius: 50%;
    border-color: #000;
    font-family: inherit;
    line-height: 5em;
    cursor: default;
    user-select: none;
}

.swal2-icon.swal2-warning {
    border-color: #f8bb86;
    color: #f8bb86;
}

.swal2-icon .swal2-icon-content {
    display: flex;
    align-items: center;
    font-size: 3.75em;
}

.swal2-container .swal2-styled {
    margin: .3125em !important;
    padding: .625em 1.1em !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.swal2-container.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.5) !important;
}

/* wrapper created via JS */
.__date-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.__date-wrap input {
    width: 100%;
    padding-right: 40px;
}

/* calendar icon */
.__date-wrap::after {
    content: "\f073";
    /* calendar icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.6;
}

.dt-scroll-body {
    overflow-x: auto;
}

/* .dt-scroll-body {
  user-select: none;
} */
/* Hide icon when input is invalid */
.__date-wrap:has(input.is-invalid)::after {
    display: none;
}

.dt-scroll-headInner table {
    width: 100% !important;
}

/* div.dt-scroll-body thead tr th, div.dt-scroll-body thead tr td, div.dt-scroll-body tfoot tr th, div.dt-scroll-body tfoot tr td{
    padding: .5rem .5rem !important;
    background-color: var(--bs-table-bg) !important;
    border-bottom-width: var(--bs-border-width) !important;
    height: auto !important;
} */
div.dt-scroll-body thead tr,
div.dt-scroll-body tfoot tr {
    height: auto !important;
}

/* .dt-scroll-head{
    display: none !important;
} */
@keyframes swal2-show {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Large screens ≥1500px → 5 tiles */
@media (min-width:1500px) {
    .tiles-section {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media only screen and (max-width: 1299px) {
    .modal-dialog {
        max-width: 50% !important;
        min-width: 50% !important;
    }

    .modal-footer {
        position: fixed;
        width: 50% !important;
        background: #fff !important;
        bottom: 0px;
        border-bottom-right-radius: 0px !important;
        border-bottom-left-radius: 0px !important;
    }

    .modal.show::before {
        height: 100vh;
    }

    body.no-scroll {
        overflow: hidden;

    }

    .modal-content {
        /* display: flex;
  flex-direction: column; */
        max-height: 100dvh;
        overflow: auto !important;
    }

    .modal-body {
        /* max-height: 70vh; */
        flex: 1;
        /* 🔥 key line */
        overflow-y: auto;
        /* scroll works */
        overflow-x: hidden;
        max-height: 80dvh;
    }


    .modal-dialog {
        max-width: 50% !important;
        min-width: 50% !important;
    }

    .modal-header,
    .modal-footer {
        flex-shrink: 0;
    }

    /* BODY LOCK */
    body.no-scroll {
        overflow: hidden;
    }

    /* REAL OVERLAY (no fake ::before) */
    .modal {
        position: fixed;
        inset: 0;

    }

    html,
    body {
        overscroll-behavior: none;
    }

}

@media (min-width: 992px) {
    .sidebar-expand-lg.layout-fixed .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;

        overflow-y: auto;
        height: 100vh;
        z-index: 1038;
    }
}

@media only screen and (max-width: 1024px) {
    .modal-dialog {
        max-width: 80% !important;
        min-width: 80% !important;
    }

    .modal-footer {
        width: 80% !important;
    }

    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

}

@media only screen and (max-width: 991px) {
    .middle-container {
        width: 100%;
    }

    .login-box,
    .register-box {
        min-width: 90%;
    }

    .tiles-section {
        grid-template-columns: repeat(2, 1fr);
    }

    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {

    /* custom media css */
    .border-box {
        border-left: 0;
        border-right: 0;
    }

    .modal-dialog {
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
    }

    .modal-footer {
        width: 100% !important;
    }

    div.dt-container div.dt-search input {
        margin-left: 0 !important;
        width: 100% !important;
    }

    div.dt-container div.dt-length,
    div.dt-container div.dt-search,
    div.dt-container div.dt-info {
        text-align: left !important;
    }

    div.dt-container div.dt-paging {
        text-align: right !important;
    }

    .dt-paging.paging_full_numbers {
        padding-top: 0px;
    }

    .middle-section div.dt-container div.dt-paging ul.pagination,
    ul.pagination {
        justify-content: flex-end !important;
    }

    .custom-space {
        margin-top: 7px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .tiles-section {
        margin-bottom: 20px;
        grid-template-columns: 1fr;
    }

}