/* =========================================================================
   Global: Hide Number Input Spinners / Steppers (+ / −)
   ========================================================================= */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* =========================================================================
   Global: Required Field Invalid / Red Highlight & Error Message
   ========================================================================= */
.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.form-control.is-invalid,
input.field-error,
select.field-error,
textarea.field-error {
    border: 1px solid #dc3545 !important;
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.is-invalid:focus,
input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus,
.form-control.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2) !important;
}

/* File Upload Dropzone Invalid State */
.image-upload.is-invalid,
.image-uploads.is-invalid {
    border: 2px dashed #dc3545 !important;
    background-color: #fff8f8 !important;
}

/* Select2 Invalid State */
select.is-invalid + .select2-container .select2-selection,
select.field-error + .select2-container .select2-selection,
.select2-container .select2-selection.is-invalid,
.select2-container.is-invalid .select2-selection {
    border: 1px solid #dc3545 !important;
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

/* Inline Required Error Message */
.field-error-msg,
.invalid-feedback {
    display: block !important;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #dc3545 !important;
}

/* Upload hint styling (File size & dimensions) */
.upload-hint,
.image-uploads .upload-hint,
.form-group .upload-hint {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
    line-height: 1.4;
    display: block;
    font-weight: normal;
}

/* Table Circle Image Fit */
.avatar>img,
.table .avatar img,
.table img.avatar,
.productimg img,
.productimgname img {
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.dt-button {
    display: none !important;
}

#label-name .icon-div {
    float: right;
}

.float_hedr_links {
    margin-right: 15px;
}

.radio-label {
    user-select: none;
    z-index: 10;
    margin: 0 10px 10px 0;
    position: relative;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: bold;
    cursor: pointer;
    transition: all 200ms ease;
    padding: 5px 20px;
    border-radius: 5px;
    background-color: #1b2850;
    color: white;
    height: 40px;
    padding-top: 10px;
    float: left;
    margin-left: 5px;
}

.radio-option input[type="radio"] {
    display: none;
}

.orgRadio1:checked+.radio-label {
    color: white;
    background-color: #fe9f43;
}

.personRadio1:checked+.radio-label {
    color: white;
    background-color: #fe9f43;
}

fieldset,
legend {
    all: revert;
}

.selected-radio {
    color: white;
    background-color: #fe9f43;
}

.radio-label.active {
    background-color: #fe9f43;
}

.page-btn button {
    width: 180px;
    padding: 5px;
    font-size: 16px;
    transition: width 0.3s;
}

@media (max-width: 600px) {
    .page-btn button {
        width: auto;
        padding: 8px;
        font-size: 14px;
    }
}

.btn-submit:hover {
    border: solid #00cfe8 2px;
    color: #00cfe8;
    background-color: #fff;
}

/*====== model height============*/
.modal-dialog {
    height: 100vh;
    margin: 0;
}

.modal-content {
    height: 100%;
    overflow-y: auto;
}

/* =======Equal widht table status======= */
.selectSize {
    font-size: 12px;
    color: white;
    width: 120px;
}

.statusSize {
    background-color: white;
    color: black;
}

.labelSize {
    font-size: 12px;
    color: white;
    width: 120px !important;
    border-radius: 5px;
    padding: 6px;
}

/* ===========delete and edit button color ========== */
.icon-color {
    color: #00cfe8;
    font-size: 19px;
}

/*  =================================*/
.radio-label-custom {
    user-select: none;
    z-index: 10;
    margin: 0 10px 10px 0;
    position: relative;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    font-weight: bold;
    cursor: pointer;
    transition: all 200ms ease;
    padding: 5px 20px;
    border-radius: 5px;
    background-color: #1b2850;
    color: white;
    height: 40px;
    padding-top: 10px;
    float: left;
    margin-left: 5px;
}

.radio-option input[type="radio"] {
    display: none;
}

.salRadio:checked+.radio-label-custom {
    color: white;
    background-color: #fe9f43;
}

.fixRadio:checked+.radio-label-custom {
    color: white;
    background-color: #fe9f43;
}

.selected-radio {
    color: white;
    background-color: #fe9f43;
}

.radio-label-custom.active {
    background-color: #fe9f43;
}

.bg-success {
    font-size: 12px;
    width: 100px;
    background-color: #28a745;
}

.bg-danger {
    font-size: 12px;
    width: 100px;
    background-color: #dc3545;
}

.taskSize {
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.colorSet {
    background-color: white;
    color: black;
}

.label_size {
    padding: 4px;
    ` width: 100%;
}

.flatpickr-day.selected {
    background-color: orange !important;
    color: white !important;
}

.btn-add {
    float: right;
}

.bg_color {
    background-color: #00cfe8;
    color: white;
    border-radius: ;
}

.bg_color h2 {
    font-weight: bold;
}

/* =========================================================================
   Global: Mandatory / Required Asterisk (*) Red Color
   ========================================================================= */
.manitory,
.mandatory,
.required-star,
.required-asterisk,
.vendor-req,
.warehouse-req,
span.manitory,
span.mandatory,
label .manitory,
label .mandatory,
label .text-danger,
label span.text-danger,
th .manitory,
th .mandatory,
.form-group label .manitory,
.form-group label .mandatory,
.form-label .manitory,
.form-label .mandatory,
.form-floating label .manitory,
.form-floating label .mandatory,
.required::after,
label.required::after,
.form-label.required::after {
    color: #dc3545 !important;
    font-weight: bold;
}

.required::after,
label.required::after,
.form-label.required::after {
    content: ' *';
    color: #dc3545 !important;
    margin-left: 3px;
    font-weight: bold;
}

#imagePreview {
    width: 100%;
    height: 200px;
    border: 1px solid #ccc;
}

.come-from-modal.left .modal-dialog,
.come-from-modal.right .modal-dialog {
    margin: auto;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.come-from-modal.left .modal-content,
.come-from-modal.right .modal-content {
    height: 100%;
    /*      overflow-y: auto;*/
    /*border-radius: 0px;*/
}

.come-from-modal.left .modal-body,
.come-from-modal.right .modal-body {
    /*    padding: 15px 15px 80px;*/
}

.come-from-modal.right.fade .modal-dialog {
    transition: transform 0.5s ease-out;

    float: right;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.top-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    margin-bottom: 14px;
}

.top-nav-button button {
    background-color: #00cfe8;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 18px 5px 18px;
    transition: background-color 0.3s, transform 0.2s;
}

.top-nav-button button:hover {
    background-color: #00cfe8;
}


.sidebar .sidebar-menu>ul>li>a {
    color: #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li>a span {
    color: #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li>a:hover {
    background-color: #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li.active>a {
    background-color: #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li.submenu ul li.active>a {
    background-color: #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li.active>a:hover {
    color: #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li.submenu ul li.active>a:hover {
    color: #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li.submenu ul li a {
    color: #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li.submenu ul li a:hover {
    color: #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li.submenu ul li a::after {
    border: 1px solid #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li.submenu ul li a:hover::after {
    border: 1px solid #0A0F1E;
    /* font-weight: bold; */
}

.sidebar .sidebar-menu>ul>li>a {
    font-size: 20px;
    /* font-weight: bold; */
}

.language-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222 !important;
    font-weight: 600;
}

.language-dropdown .nav-link::after {
    margin-left: 8px;
}

.language-dropdown .lang-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-dropdown .lang-icon i {
    font-size: 18px;
    color: #000;
}

.language-dropdown .dropdown-menu {
    min-width: 190px;
    border: none;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

.language-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    border-radius: 6px;
    transition: all .25s ease;
    text-decoration: none;
}

.language-dropdown .dropdown-item:hover,
.language-dropdown .dropdown-item:focus {
    background: rgba(0, 207, 232, 0.08) !important;
    color: #0098b0 !important;
}

.language-dropdown .dropdown-item:hover i,
.language-dropdown .dropdown-item:focus i {
    color: #0098b0 !important;
}

.language-dropdown .dropdown-item.active-lang {
    background: rgba(0, 207, 232, 0.12) !important;
    color: #0098b0 !important;
    font-weight: 600 !important;
}

.language-dropdown .dropdown-item.active-lang i {
    color: #0098b0 !important;
}

/* Global Select2 Multiple Auto-height & modern pill styling */
.select2-container--default .select2-selection--multiple {
    min-height: 38px !important;
    height: auto !important;
    padding: 3px 6px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(0, 207, 232, 0.12) !important;
    border: 1px solid rgba(0, 207, 232, 0.35) !important;
    color: #087987 !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
    border-radius: 6px !important;
    padding: 2px 7px !important;
    margin: 1px 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.4 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #087987 !important;
    margin-right: 3px !important;
    font-weight: 700 !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc2626 !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin: 2px 4px !important;
    height: 26px !important;
    font-size: 12px !important;
}

/* ==========================================================================
       GLOBAL SELECT2: 100% Width, Anti-Overflow & Text Truncation with Ellipsis (...)
       ========================================================================== */
.select2-container,
span.select2-container,
.form-group .select2-container,
[class*="col-"] .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single {
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(145, 158, 171, .32) !important;
    border-radius: 5px !important;
    background-color: #fff !important;
}

.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__rendered {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    padding-left: 12px !important;
    padding-right: 32px !important;
    line-height: 38px !important;
    color: #637381 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    width: 28px !important;
    height: 38px !important;
    position: absolute !important;
    top: 1px !important;
    right: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    background: transparent !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 18px !important;
    float: none !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
}

.select2-dropdown {
    max-width: 100% !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
}

.select2-results__option {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* =========================================================================
   Universal Modal Header Close / Cross Button Design System
   Ensures consistent, visible, perfectly centered cross buttons across all modals
   ========================================================================= */
.modal-header .close,
.modal-header .btn-close,
.modal-header #closemodal,
.inv-modal-close,
.attach-modal-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
    background-image: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* Auto-render crisp cross for empty .btn-close or empty .close */
.modal-header .btn-close::before,
.modal-header .close:empty::before,
.inv-modal-close:empty::before,
.attach-modal-close:empty::before {
    content: "✕" !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-align: center !important;
}

/* Normalize inner elements */
.modal-header .close span,
.modal-header #closemodal span {
    font-size: 20px !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin-top: -2px !important;
}

.modal-header .close i,
.inv-modal-close i,
.attach-modal-close i {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Default / Light Header Modal Cross Buttons */
.modal-header:not(.bg_color):not(.text-white) .close,
.modal-header:not(.bg_color):not(.text-white) .btn-close,
.modal-header:not(.bg_color):not(.text-white) #closemodal,
.inv-modal-close,
.attach-modal-close {
    background-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

.modal-header:not(.bg_color):not(.text-white) .close:hover,
.modal-header:not(.bg_color):not(.text-white) .btn-close:hover,
.modal-header:not(.bg_color):not(.text-white) #closemodal:hover,
.inv-modal-close:hover,
.attach-modal-close:hover {
    background-color: rgba(15, 23, 42, 0.16) !important;
    color: #0f172a !important;
    transform: scale(1.05) !important;
}

.modal-header:not(.bg_color):not(.text-white) .close:active,
.modal-header:not(.bg_color):not(.text-white) .btn-close:active,
.modal-header:not(.bg_color):not(.text-white) #closemodal:active,
.inv-modal-close:active,
.attach-modal-close:active {
    background-color: rgba(15, 23, 42, 0.22) !important;
    transform: scale(0.95) !important;
}

/* Cyan / Vibrant / Dark Header Modal Cross Buttons (.bg_color, .text-white, .po-modal-header) */
.modal-header.bg_color .close,
.modal-header.bg_color .btn-close,
.modal-header.bg_color #closemodal,
.modal-header.text-white .close,
.modal-header.text-white .btn-close,
.modal-header.text-white #closemodal,
.po-modal-header .close,
.po-modal-header .btn-close,
.modal-header.model_header .close,
.modal-header.model_header .btn-close {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.modal-header.bg_color .close:hover,
.modal-header.bg_color .btn-close:hover,
.modal-header.bg_color #closemodal:hover,
.modal-header.text-white .close:hover,
.modal-header.text-white .btn-close:hover,
.modal-header.text-white #closemodal:hover,
.po-modal-header .close:hover,
.po-modal-header .btn-close:hover,
.modal-header.model_header .close:hover,
.modal-header.model_header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
}

.modal-header.bg_color .close:active,
.modal-header.bg_color .btn-close:active,
.modal-header.bg_color #closemodal:active,
.modal-header.text-white .close:active,
.modal-header.text-white .btn-close:active,
.modal-header.text-white #closemodal:active,
.po-modal-header .close:active,
.po-modal-header .btn-close:active,
.modal-header.model_header .close:active,
.modal-header.model_header .btn-close:active {
    background-color: rgba(255, 255, 255, 0.45) !important;
    transform: scale(0.95) !important;
}