.pointer {
    cursor: pointer !important;
}
.custom-invalid-feedback {
    color: #ed5e5e;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
}
.custom-invalid-border {
    border-color: #ed5e5e !important;
}
.custom-invalid-border .select2-container--default .select2-selection--single {
    border-color: #ed5e5e !important;
}
.error-border,
.error .select2-selection--single {
    border: 1px solid #ed5e5e !important;
}

.navbar-header .logo img {
    height: 40px;
}

.rg_code {
    display: flex;
    text-align: start;
}

.rg_code .rg_group {
    width: 60px;
    margin: 0 4px;
}

.rg_code .rg_group_number {
    width: 200px;
    margin: 0 4px;
}

.rg_code .select2-container .select2-selection--single {
    height: 38px;
}

.rg_code .rg_group label,
.rg_code .rg_group_number label {
    margin-bottom: .2rem;
}

.rg_code .rg_group_btn {
    display: flex;
    align-items: start;
    margin-top: 23px;
}

.v-card {
    border-width: thin;
    display: block;
    max-width: 100%;
    outline: none;
    text-decoration: none;
    transition-property: box-shadow, opacity;
    overflow-wrap: break-word;
    position: relative;
    white-space: normal;
}

.v-overlay {
    align-items: center;
    border-radius: inherit;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    transition: .3s cubic-bezier(.25,.8,.5,1), z-index 1ms;
}

.v-overlay__scrim {
    border-radius: inherit;
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: inherit;
    border-radius: 4px;
    width: 100%;
    will-change: opacity;
}

.v-overlay--active {
    pointer-events: auto;
}

.v-overlay--none {
    pointer-events: none;
}

.v-overlay--absolute {
    position: absolute;
}

.form-locket {
    /* z-index: 99; */
    /* position: absolute; */
    pointer-events: auto;
}

.form-locket-style {
    border-radius: inherit;
    bottom: 0;
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: inherit;
    width: 100%;
    will-change: opacity;
}

/* Select 2 */
.reg-select .select2-container .select2-selection--single {
    border-color: none;
    --vz-bg-opacity: 1;
    background-color: rgba(var(--vz-light-rgb), var(--vz-bg-opacity)) !important;
    height: 36px;
    padding: .5rem .9rem;
}

.was-validated :invalid ~ .select2-container--default .select2-selection--single {
    border-color: var(--vz-form-invalid-border-color) !important;
}

.reg-select .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #212529;
    line-height: 20px;
    font-size: 13px;
}

.form-check-box {
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap;
}

.form-check-box .form-check {
    padding-left: 0 !important;
}

.form-check-inline-box {
    justify-content: space-between;
    margin-right: 40px;
}

.swal2-actions {
    gap: 10px;
}

div:where(.swal2-container) .swal2-html-container {
    font-size: 14px;
    color: #555555 !important;
}

.avatar-cs {
    height: 2rem;
    width: 2rem;
}

.rounded-male-cs {
    /* background: #6691e7; */
    border-radius: 50%;
}

.rounded-female-cs {
    /* background: #f2b7bb; */
    border-radius: 50%;
}

.input-file-img {
    width: 36px;
    object-fit: contain;
    margin-top: 2px;
    margin-right: 10px;
}

/* user list */
.prs-list {
    background: white;
    width: 100%;
    padding: 20px 10px;
    justify-content: space-between;
    border-radius: 4px;
    margin-top: 0.5rem;
    -webkit-box-shadow: 0 1px 2px rgba(56, 65, 74, .15);
    box-shadow: 0 1px 2px rgba(56, 65, 74, .15);
}

.prs-list-items {
    width: 100%;
    justify-content: space-between;
}

.prs-data-table__wrapper {
    overflow-x: auto;
    overflow-y: hidden;
}

.field-form .form-check .form-check-input {
    height: 18px;
    width: 38px;
}

.field-form .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-form .form-check h5 {
    margin: 0;
}

.list-icon {
    margin-right: 8px;
    color: #8a0304;
}

.detail-table .fw-medium {
    font-weight: bold !important;
    color: #495057 !important;
}

.detail-title {
    display: flex;
    justify-content: space-between
}

.custom-bg-light {
    background-color: #F2F4F4
}

.modal-bg {
    background-color: #F8F9F9;
}

.text-nowrap {
    text-wrap: nowrap;
}

.custom-modal {
    --vz-modal-width: 80%;
}

@media only screen and (max-width: 1200px) {
    .custom-modal {
        --vz-modal-width: 90%;
    }
}
.c-detail-column {
    display: flex;
    flex-direction: column;
}
.report-body h1 {
    font-size: 20px;
}

.c-mr-6 {
    margin-right: 6px;
}

.justify-space-between {
    justify-content: space-between;
}
.custom-card {
    border-radius: 14px !important;
}

.custom-card .card-header:first-child {
    border-radius: 14px;
}

.custom-button {
    background-color: #8a0304;
    color: #fff;
    border-radius: 24px;
}

.custom-button:hover {
    background-color: #7a0000;
    color: #fff;
}

/* .bg-info-subtle {
    background-color: #682012 !important;
} */

/* .bg-info-subtle h5 {
    color: #fff !important;
} */

.c-card {
        margin-bottom: 20px;
    border-radius: 14px;
    background-color: var(--vz-secondary-bg);
    box-shadow: 0 1px 2px rgba(56, 65, 74, .15);
}

.c-card-body {
    padding: 20px;
    border-bottom: 1px solid var(--vz-border-color);
}

.c-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.c-card-body h5 {
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.c-card-body h5 b{
    font-weight: bold;
    font-size: 26px;
    color: var(--vz-table-color-state), var(--vz-table-color-type, var(--vz-table-color));
}

.c-card-body p{
    margin-bottom: 0;
    font-size: 15;
}

.c-card-body span {
    font-size: 26px;
    font-weight: bold;
    color: var(--vz-table-color-state), var(--vz-table-color-type, var(--vz-table-color));
}

.c-card-icon {
    background-color: #f9f0f3;
    border-radius: 8px;
    color: #870000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    font-size: 28px;
}

.c-card-icon img {
    width: 34px;
}
.c-card-footer {
    padding: 14px 20px;
    display: flex;
}

.c-card-footer b {
    font-size: 14px;
    font-weight: 400;
    margin-right: 14px;
    color: var(--vz-table-color-state), var(--vz-table-color-type, var(--vz-table-color));
}

.custom-button-secondary {
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--vz-light);
}

.custom-button-secondary.show {
    background-color: var(--vz-secondary-bg);
}

.form-check-input:checked {
    background-color: #870000;
        border-color: #870000
}

input {
    border-radius: 24px !important;
}

select {
    border-radius: 24px !important;
}

.select2-selection--single {
    border-radius: 24px !important;
}

.btn {
    border-radius: 24px;
}

.listjs-pagination li .page {
    color: #682012;
    /* border-color: #682012; */
}

.listjs-pagination li.active .page {
    background-color: #682012;
    border-color: #682012;
}

.pagination-next,
.pagination-prev {
    color: #682012;
}

.pagination-next:hover,
.pagination-prev:hover {
    color: #8d2f1c;
}
.bg-info-subtle {
    background-color: #8a0304 !important;
}

.bg-info-subtle h5 {
    color: #fff;
}

.bg-info-subtle #close-modal {
    background-color: #fff;
}

.modal-content {
    border: none;
}

.text-custom {
    color: #870000;
}

.c-bg {
    background-color: #ebcdcb !important;
}
.c-br {
    border-radius: 16px !important;
}

.c-br .card-header {
    border-radius: 16px 16px 0 0 !important;
}

.search-input input {
    min-width: 150px !important;
}

.search-input .select2-container .select2-selection--single {
    height: 38px !important;
    min-width: 150px !important;
}

.search-input .table-responsive {
    max-height: 60vh !important;
}

.content-list.stage {
    width: 100%;
}
.content-list {
    padding: 0px 20px;
}

.dz-scroll { 
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
}

.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 10px;
    cursor: pointer;
}

/* Track */
.table-responsive::-webkit-scrollbar-track {
    border-radius: 5px;
    background: rgba(199, 209, 229, 0.40);
}

/* Handle */
.table-responsive::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #870000;
    cursor: pointer;

}

/* Handle on hover */
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #870000;
    transition: all 500ms ease;
    -moz-transition: all 500ms ease;
    -webkit-transition: all 500ms ease; 
    cursor: pointer;
    
}

.onlineqr {
    display: flex;
    justify-content: center;
}

.custom-th {
    max-width: 40px;
    vertical-align: middle;
}

.modal.modal-alert {
    --vz-modal-zindex: 1075;
    --vz-modal-width: 500px;
    --vz-modal-padding: 1.25rem;
    --vz-modal-margin: 0.5rem;
    --vz-modal-bg: var(--vz-secondary-bg);
    --vz-modal-border-color: var(--vz-border-color);
    --vz-modal-border-width: var(--vz-border-width);
    --vz-modal-border-radius: var(--vz-border-radius-lg);
    --vz-modal-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --vz-modal-inner-border-radius: calc(var(--vz-border-radius-lg) - (var(--vz-border-width)));
    --vz-modal-header-padding-x: 1.25rem;
    --vz-modal-header-padding-y: 1.25rem;
    --vz-modal-header-padding: 1.25rem 1.25rem;
    --vz-modal-header-border-color: var(--vz-border-color);
    --vz-modal-header-border-width: 0;
    --vz-modal-title-line-height: 1.5;
    --vz-modal-footer-gap: 0.5rem;
    --vz-modal-footer-border-color: var(--vz-border-color);
    --vz-modal-footer-border-width: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--vz-modal-zindex);
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0
}

.modal-alert-backdrop {
    --vz-backdrop-zindex: 1070 !important;
    --vz-backdrop-bg: #000;
    --vz-backdrop-opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--vz-backdrop-zindex);
    width: 100vw;
    height: 100vh;
    background-color: var(--vz-backdrop-bg)
}


.modal-alert-backdrop.fade {
    opacity: 0
}

.modal-alert-backdrop.show {
    opacity: var(--vz-backdrop-opacity)
}

/* Loader wrapper */
.custom-loader-overlay {
    display: none; /* Эхэндээ нуугдсан байна */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Loader text */
.custom-loader-text {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    animation: fadeinout 1.5s ease-in-out infinite;
}

/* Spinner style */
.custom-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-radius: 50%;
    border-top: 6px solid #3498db;
    animation: spin 1s linear infinite;
}

.custom-loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text animation */
@keyframes fadeinout {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ==============================================
   TABLE IMPROVEMENTS
   ============================================== */

/* Alternating row colors */
.table > tbody > tr:nth-child(even) > td {
    background-color: rgba(138, 3, 4, 0.025);
}

/* Smooth row hover */
.table-hover > tbody > tr {
    transition: background-color 0.12s ease;
}
.table-hover > tbody > tr:hover > td {
    background-color: rgba(138, 3, 4, 0.07) !important;
}

/* Table cell padding & font */
.table > thead > tr > th,
.table > tbody > tr > td {
    vertical-align: middle;
    font-size: 13px;
    padding: 0.6rem 0.75rem;
}

/* Column header row styling (2nd tr in thead) */
.table > thead > tr:last-child > th {
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6 !important;
    white-space: nowrap;
}

/* Filter input row in thead (1st tr) */
.table > thead > tr:first-child > th {
    background-color: #f9f5f5;
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0.4rem;
}

/* Filter row toggle */
.thead-filter-row {
    transition: all 0.2s ease;
}
.thead-filter-row.collapsed {
    display: none;
}

/* Filter toggle button */
.btn-filter-toggle {
    background: transparent;
    border: 1px solid #8a0304;
    color: #8a0304;
    border-radius: 20px !important;
    padding: 3px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-filter-toggle:hover,
.btn-filter-toggle.active {
    background: #8a0304;
    color: #fff;
}
.btn-filter-toggle i {
    font-size: 13px;
    vertical-align: middle;
    margin-right: 3px;
}

/* Sticky table header */
.dz-scroll > .table > thead > tr:last-child > th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #fff;
    box-shadow: 0 1px 0 #dee2e6;
}

/* ==============================================
   CARD IMPROVEMENTS
   ============================================== */

/* Hover lift on summary cards */
.c-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.c-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 3, 4, 0.13) !important;
}

/* Dashboard card number highlight */
.c-card-body span,
.c-card-body b {
    transition: color 0.15s ease;
}
.c-card:hover .c-card-body span,
.c-card:hover .c-card-body b {
    color: #8a0304 !important;
}

/* c-card-icon pulse on hover */
.c-card:hover .c-card-icon {
    background-color: #f2d4d4;
    transition: background-color 0.18s ease;
}

/* ==============================================
   BUTTON IMPROVEMENTS
   ============================================== */

.btn {
    transition: all 0.15s ease;
}
.btn:active {
    transform: scale(0.96);
}
.custom-button {
    box-shadow: 0 2px 6px rgba(138, 3, 4, 0.2);
}
.custom-button:hover {
    box-shadow: 0 4px 12px rgba(138, 3, 4, 0.3);
    transform: translateY(-1px);
}
.custom-button:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 4px rgba(138, 3, 4, 0.2);
}

/* ==============================================
   FORM IMPROVEMENTS
   ============================================== */

/* Input focus brand color */
.form-control:focus,
.form-select:focus {
    border-color: #8a0304;
    box-shadow: 0 0 0 0.18rem rgba(138, 3, 4, 0.15);
}

/* Validation error — more visible */
.custom-invalid-feedback {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #fff5f5;
    border-left: 3px solid #ed5e5e;
    border-radius: 0 6px 6px 0;
    margin-top: 4px;
}
.custom-invalid-feedback::before {
    content: "\ea6c";
    font-family: "remixicon";
    font-size: 14px;
    color: #ed5e5e;
    flex-shrink: 0;
}

/* Input border when invalid */
.form-control.is-invalid,
input.custom-invalid-border {
    border-color: #ed5e5e !important;
    background-image: none !important;
}

/* ==============================================
   LOADING — SKELETON ROWS
   ============================================== */

@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.table-skeleton td {
    color: transparent !important;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 400px 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    pointer-events: none;
    user-select: none;
}
.table-skeleton td * {
    visibility: hidden;
}

/* AJAX top progress bar */
#ajaxLoader {
    display: none;
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: #8a0304;
    z-index: 99999;
    border-radius: 0 2px 2px 0;
}
#ajaxLoader.active {
    display: block;
    animation: ajax-progress 1.8s ease-in-out infinite;
}
@keyframes ajax-progress {
    0%   { width: 0%;   left: 0;    opacity: 1; }
    60%  { width: 75%;  left: 0;    opacity: 1; }
    100% { width: 100%; left: 0;    opacity: 0; }
}

/* ==============================================
   PAGE TITLE AREA
   ============================================== */

.page-title-box h4 {
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #2d2d2d;
}

/* ==============================================
   PAGINATION
   ============================================== */

/* Custom listjs-pagination (used in frontend views) */
.listjs-pagination {
    display:     flex;
    align-items: center;
    gap:         2px;
    list-style:  none;
    padding:     0;
    margin:      0;
}
.listjs-pagination li a.page {
    display:         flex;
    align-items:     center;
    justify-content: center;
    min-width:       34px;
    height:          34px;
    padding:         0 8px;
    border-radius:   8px;
    font-size:       13px;
    font-weight:     500;
    color:           #555;
    border:          1px solid #e4e4e4;
    background:      #fff;
    text-decoration: none;
    transition:      all 0.15s ease;
}
.listjs-pagination li a.page:hover {
    background:  #fdf0f0;
    border-color:#8a0304;
    color:       #8a0304;
}
.listjs-pagination li.active a.page {
    background:  #8a0304;
    border-color:#8a0304;
    color:       #fff;
    box-shadow:  0 2px 8px rgba(138,3,4,0.28);
}
.listjs-pagination li.disabled a.page {
    color:      #bbb;
    border:     none;
    background: transparent;
    cursor:     default;
}

/* Prev / Next links */
.pagination-prev,
.pagination-next {
    display:         flex;
    align-items:     center;
    height:          34px;
    padding:         0 14px;
    border-radius:   8px;
    font-size:       13px;
    font-weight:     500;
    color:           #8a0304;
    border:          1px solid #e4e4e4;
    background:      #fff;
    text-decoration: none;
    transition:      all 0.15s ease;
    white-space:     nowrap;
}
.pagination-prev:hover,
.pagination-next:hover {
    background:  #8a0304;
    border-color:#8a0304;
    color:       #fff;
    box-shadow:  0 2px 8px rgba(138,3,4,0.22);
}
.pagination-prev.disabled,
.pagination-next.disabled {
    color:      #bbb;
    border:     1px solid #eee;
    background: #fafafa;
    cursor:     default;
    box-shadow: none;
}

/* Page jump input */
.pagination-jump-input:focus {
    border-color: #8a0304;
    box-shadow:   0 0 0 0.15rem rgba(138,3,4,0.12);
}

/* Bootstrap .pagination fallback (admin pages) */
.pagination .page-item .page-link {
    border-radius: 8px !important;
    margin:        0 2px;
    font-size:     13px;
    transition:    all 0.15s ease;
}
.pagination .page-item.active .page-link {
    background-color: #8a0304;
    border-color:     #8a0304;
}
.pagination .page-item .page-link:hover {
    background-color: #fdf0f0;
    border-color:     #8a0304;
    color:            #8a0304;
}

/* ==============================================
   HORIZONTAL NAV — PILL DESIGN
   ============================================== */

/* Remove default menu-title text */
.navbar-nav .menu-title { display: none !important; }

/* Each nav pill item */
.nav-pill {
    display:         flex !important;
    align-items:     center;
    gap:             7px;
    padding:         6px 12px !important;
    border-radius:   10px !important;
    transition:      background 0.18s ease, box-shadow 0.18s ease !important;
    margin:          0 2px;
    text-decoration: none !important;
}

/* Icon circle */
.nav-pill .nav-icon {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           32px;
    height:          32px;
    border-radius:   8px;
    background:      rgba(138,3,4,0.09);
    flex-shrink:     0;
    transition:      background 0.18s ease;
}
.nav-pill .nav-icon i {
    font-size:       17px;
    line-height:     1;
    color:           #8a0304;
}

/* Text label */
.nav-pill .nav-label {
    font-size:       13.5px;
    font-weight:     500;
    color:           #3d3d3d;
    white-space:     nowrap;
    letter-spacing:  -0.1px;
}

/* Hover state */
.nav-pill:hover {
    background: rgba(138,3,4,0.06) !important;
    box-shadow: 0 2px 8px rgba(138,3,4,0.08) !important;
}
.nav-pill:hover .nav-icon {
    background: rgba(138,3,4,0.15);
}
.nav-pill:hover .nav-label { color: #8a0304 !important; }

/* Active / current page */
.nav-pill.active,
.nav-pill.active:focus {
    background: #8a0304 !important;
    box-shadow: 0 4px 14px rgba(138,3,4,0.30) !important;
}
.nav-pill.active .nav-icon {
    background: rgba(255,255,255,0.22);
}
.nav-pill.active .nav-icon i,
.nav-pill.active .nav-label {
    color: #fff !important;
}

/* "Бусад" dropdown arrow hide default caret; show ri icon */
.nav-pill.dropdown-toggle::after { display: none !important; }

/* Dropdown menu brand style */
.navbar-nav .dropdown-menu {
    border:        none;
    box-shadow:    0 6px 24px rgba(0,0,0,0.10);
    border-radius: 12px;
    min-width:     200px;
    padding:       8px;
    margin-top:    6px !important;
}
.navbar-nav .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding:       9px 14px;
    font-size:     13.5px;
    font-weight:   500;
    color:         #3d3d3d;
    display:       flex;
    align-items:   center;
    gap:           4px;
    transition:    background 0.14s ease;
}
.navbar-nav .dropdown-menu .dropdown-item:hover {
    background: rgba(138,3,4,0.07);
    color:      #8a0304;
}
.navbar-nav .dropdown-menu .dropdown-item.active,
.navbar-nav .dropdown-menu .dropdown-item:active {
    background: #8a0304;
    color:      #fff;
}
.navbar-nav .dropdown-menu .dropdown-item .text-custom { color: #8a0304; }
.navbar-nav .dropdown-menu .dropdown-item.active .text-custom { color: #fff !important; }
.navbar-nav .dropdown-menu .dropdown-divider { margin: 6px 4px; }
.navbar-nav .dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(220,53,69,0.08);
    color:      #dc3545 !important;
}

/* Topbar logo area */
.navbar-brand-box {
    padding: 0 20px !important;
}
.navbar-brand-box .logo img {
    height: 42px !important;
}

