/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

.page-title-box-custom {
    padding: 4px 1.5rem;
    border-bottom: 1px solid none;
    border-top: 1px solid none;
    margin: 0px -1.5rem 0rem -1.5rem;

}

.page-title-box-custom h3 {
    font-weight: 700;
    font-size: 25px !important;
    text-transform: uppercase;
}

.sticky-button {
    position: sticky;
    top: 93px;
    z-index: 5;
}

.filter_body_card {
    -webkit-box-shadow: none;
}

/* .container-fluid{
    padding-right: 0px; 
    padding-left: 0px;
} */
table.dataTable>tbody>tr.selected>* {
    box-shadow: none;
    color: #000000;
    background-color: #E1F8FF;
}

.modal-header {
    --vz-bg-opacity: 1;
    background-color: rgba(var(--vz-light-rgb), var(--vz-bg-opacity)) !important;
}

.modal-footer {
    --vz-bg-opacity: 1;
    background-color: rgba(var(--vz-light-rgb), var(--vz-bg-opacity)) !important;
}

.select-checkbox {
    cursor: pointer;
}

table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody td.select-checkbox:after,
table.dataTable tbody th.select-checkbox:before,
table.dataTable tbody th.select-checkbox:after {
    display: block !important;
    position: absolute !important;
    top: 0.8em !important;
    left: auto !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    box-sizing: border-box !important;
}

table.dataTable tbody td.select-checkbox:before,
table.dataTable tbody th.select-checkbox:before {
    content: " ";
    border-radius: 0.45rem;
    background-color: #CDD1D2 !important;
    margin: 0;
}

.required:after {
    content: "*";
    position: absolute;
    font-size: 130%;
    color: #ff745f91;
    padding-left: 0.25rem;
    font-weight: 700;
    top: -3;
}

table.dataTable tr.selected td.select-checkbox:after {
    background-color: #405189 !important;
}

/* Responsive checkbox column - prevents overlap without fixed width */
table.dataTable tbody td.select-checkbox,
table.dataTable thead th.select-checkbox {
    min-width: 1.0rem !important;
    text-align: center !important;
    position: relative !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 28px !important;
}

/* Select2 multi-select: blue tags with white text (globally, matching button style) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #405189 !important;
    border: none !important;
    color: #fff !important;
    border-radius: 3px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    color: #fff !important;
    padding-left: 2px !important;
    padding-right: 5px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    background-color: transparent !important;
    border-color: #536295 !important;
    opacity: 0.8;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    opacity: 1;
}

/* =========================================================
   Global Tab-Navigation Focus Highlight
   Applies a visible highlight to any focused form field
   when navigating with the keyboard (Tab key).
   ========================================================= */

/* Standard inputs, selects, textareas */
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #2447ba !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(36, 71, 186, 0.20) !important;
    background-color: #f5f7ff !important;
}

/* Checkboxes and radio buttons */
.form-check-input:focus {
    border-color: #2447ba !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(36, 71, 186, 0.20) !important;
}

/* Buttons that receive focus via Tab */
.btn:focus,
.btn:focus-visible {
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(36, 71, 186, 0.30) !important;
}

/* Select2 – single selection */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #2447ba !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(36, 71, 186, 0.20) !important;
    background-color: #f5f7ff !important;
}

/* Select2 – multiple selection */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #2447ba !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(36, 71, 186, 0.20) !important;
    background-color: #f5f7ff !important;
}

/* =========================================================
   DataTable Editor & Delete Confirmation Modals Styling Consistency
   ========================================================= */

/* 1. Lightbox / Modal Headers Consistency */
body div.DTE_Header,
body div.modal-header,
#systemx_delete_confirm .modal-header,
#connx_delete_confirm .modal-header {
    padding: 1rem 1.5rem !important;
    background-color: #f3f3f9 !important; /* matches rgba(var(--vz-light-rgb), 1) or #f3f3f9 */
    border-bottom: 1px solid var(--vz-border-color, #e9ebec) !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Header Titles (H3, H4, H5, .modal-title, .DTE_Header_Content) */
body div.DTE_Header_Content,
body div.DTE_Header_Content h3,
body div.DTE_Header_Content h4,
body div.DTE_Header_Content h5,
body div.DTE_Header h3,
body div.DTE_Header h4,
body div.DTE_Header h5,
body div.DTE_Header .modal-title,
#systemx_delete_confirm .modal-title,
#connx_delete_confirm .modal-title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #495057 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
}

/* Legacy Close Button styling in DTE (matching Bootstrap 5 btn-close style) */
body div.DTE_Header button.close {
    background: transparent !important;
    border: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    color: #878a99 !important;
    opacity: 0.5 !important;
    padding: 0.5rem !important;
    margin: -0.5rem -0.5rem -0.5rem auto !important;
    cursor: pointer !important;
    text-shadow: none !important;
}

body div.DTE_Header button.close:hover {
    opacity: 0.8 !important;
    color: #000 !important;
}

/* 2. Lightbox / Modal Footers Consistency */
body div.DTE_Footer,
body div.modal-footer,
#systemx_delete_confirm .modal-footer,
#connx_delete_confirm .modal-footer {
    padding: 0.75rem 1.5rem !important;
    background-color: #f3f3f9 !important;
    border-top: 1px solid var(--vz-border-color, #e9ebec) !important;
    box-sizing: border-box !important;
}

/* 3. DTE & Delete Confirmation Modal Buttons styling (force standard size consistency) */
body div.DTE_Form_Buttons button,
body div.modal-footer button,
#systemx_delete_confirm .modal-footer button,
#connx_delete_confirm .modal-footer button {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    border-radius: 0.25rem !important;
    font-weight: 500 !important;
    display: inline-block !important;
    text-align: center !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    user-select: none !important;
}

/* Custom Switch Toggles inside DataTable */
.custom-toggle-switch {
    position: relative;
    display: inline-block;
    width: 68px;
    height: 30px;
    margin: 0;
    vertical-align: middle;
}

.custom-toggle-switch input {
    display: none !important;
}

.custom-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ced4da;
    transition: all .2s ease;
    border-radius: 30px;
}

/* Circle knob */
.custom-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: all .2s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* Yes/No Text inside the slider */
.custom-toggle-slider:after {
    position: absolute;
    content: "No";
    color: #495057;
    font-size: 11px;
    font-weight: 700;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    transition: all .2s ease;
    z-index: 1;
}

/* Checked state */
.custom-toggle-switch input:checked + .custom-toggle-slider {
    background-color: #0ab39c; /* Velzon success green */
}

.custom-toggle-switch input:checked + .custom-toggle-slider:before {
    transform: translateX(38px); /* 68px - 3px - 24px - 3px = 38px */
}

.custom-toggle-switch input:checked + .custom-toggle-slider:after {
    content: "Yes";
    color: #fff;
    left: 9px;
    right: auto;
}

.custom-toggle-switch:hover .custom-toggle-slider {
    box-shadow: 0 0 0 3px rgba(10, 179, 156, 0.15);
}

/* Filter button counter badge styling */
.showhidefilterbutton {
    position: relative !important;
}
.showhidefilterbutton .filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f06548; /* Velzon theme red */
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
    min-width: 1.5em;
    height: 1.5em;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}