.wrapper-full-page{
    min-height: 70vh;
}

.font-size-1{
    font-size: 16px;
}
.nav-tabs-overflow {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
}
.nav-tabs-overflow  .nav-link{
    white-space: nowrap;
}

.tabbable .nav-tabs {
    overflow-x: auto;
    overflow-y:hidden;
    flex-wrap: nowrap;
}
.tabbable .nav-tabs .nav-link {
    white-space: nowrap;
}
  .input-group > .select2.select2-container {
    width: auto!important;
    flex: 1 1 auto!important;
}

.custom-input-group .input-group   .select2-selection--multiple, .custom-input-group .input-group  .select2-selection--single {
    height: 100%!important;
    line-height: inherit!important;
    padding: 0.5rem 1rem!important;
}
.custom-input-group .input-group-text {
    background-color: unset!important;
    border:unset!important;
}

.custom-style-input-group{
    box-shadow: unset!important;
    border-color: #8592a3;
    display: flex;
    justify-content: center;

}
.custom-style-input-group .select2-selection{
    border-top-right-radius:0!important;
    border-bottom-right-radius:0!important;
    border: 1px solid #697a8d!important;
}
.custom-style-input-group .select2-selection--multiple {
    min-height: 2.4rem!important;
}

.custom-style-input-group .select2{
    width:100%!important;
    max-width:80%;
}

.custom-style-input-group .custom-style-input-group-span{
    width:unset!important;
}
.custom-style-input-group .btn:first-child{
    border-top-right-radius:0.375rem!important;
    border-bottom-right-radius:0.375rem!important;
    padding: 0.54rem !important;
}



.custom-select2-product-result{
    display: flex;

}

.custom-select2-product-result .img-thumbnail{
    width:80px;
    max-width: 80px!important;
}
.custom-select2-product-result .product-text{
    padding:0 4px;
    font-weight: 600;
}


/*Ticket Chat List Section*/
.ticket-aside-area .card-body{
    max-height: 67vh;
}
.ticket-aside-area .list-group-item.active {
    z-index: 2;
    color:#1d2129;
    border-color: #F0F2F5;
    background-color: #F0F2F5;
}

.ticket-aside-area .list-group-item.new {
    z-index: 2;
    color:#1d2129;
   /* border-color: #DCF8C6;*/
    background-color: #D8FDD3;
}


.ticket-aside-area .list-group .list-group-item:not(.active)  {
    text-decoration: none;
    color: #32325d!important;
}

.ticket-aside-area p{
    line-height: 1;
    font-size: 12px;
}

/*Form Section*/
.chat-box {
    height: 55vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.message {
    display: flex;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}
.message.sent {
    background-color: #DCF8C6;
    align-self: flex-end;
}
.message.received {
    background-color: #E2E2E2;
    align-self: flex-start;
}
.message-content {
    flex-grow: 1;
    margin-left: 10px;
}
.message-time {
    font-size: 12px;
    color: #999;
}
.thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* background-color: #ddd;*/
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #555;
}

.table-container > .table-responsive {
    min-height: 250px!important;
}


.container-with-fixed-bottom{
    height:calc(100vh - 185px);
    overflow-y:auto;
}
.copy-on-click{
    cursor:pointer;

}
.copy-on-click:hover{
    color:#5e72e4!important;
}
.selectable-text {
    display: inline-block;
    white-space: nowrap;
}
.timeline:before {
    top:4px;
    height: 95%;
}


.timeline-step{
    align-items: initial;
}
.global-search .form-control-lg{

}
.global-search select{
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.global-search input{
    padding:0 0.25rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

@media (max-width: 768px) {
    .custom-style-input-group .select2-selection--multiple {
        min-height: 2.40rem!important;
    }
    .custom-style-input-group .select2{
        width:100%!important;
        max-width: unset!important;
        border-top-right-radius:unset!important;
        border-bottom-right-radius:unset!important;

    }
    .custom-style-input-group .custom-style-input-group-span{
        width:100%!important;
        justify-content: center;
        text-align: center;
        margin:10px 0;
    }
    .custom-style-input-group .btn:first-child{
        border-top-left-radius:0.375rem!important;
        border-bottom-left-radius:0.375rem!important;
    }
    .container-with-fixed-bottom{
        height:calc(100vh - 160px);
        overflow-y:auto;
    }
}
@media (max-width: 576px) {
    .custom-style-input-group .select2-selection--multiple {
        min-height: 2.45rem!important;
    }
    .custom-style-input-group .select2{
        width:100%!important;
        max-width: unset!important;
        border-top-right-radius:unset!important;
        border-bottom-right-radius:unset!important;

    }
    .custom-style-input-group .custom-style-input-group-span{
        width:100%!important;
        justify-content: center;
        text-align: center;
        margin:10px 0;
    }
    .custom-style-input-group .btn:first-child{
        border-top-left-radius:0.375rem!important;
        border-bottom-left-radius:0.375rem!important;
    }
}


/* For Chrome, Safari, Edge, and Opera */
input.no-spinner::-webkit-outer-spin-button,
input.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input.no-spinner {
    -moz-appearance: textfield;
}
.cursor-pointer{
    cursor:pointer;
}

.photo-gallery-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% / 2); /* Mobile: 2 per row */
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem;
}

@media (min-width: 768px) {
    .photo-gallery-container {
        grid-auto-columns: calc(100% / 4); /* Desktop: 4 per row */
    }
}

.photo-gallery-container > div {
    scroll-snap-align: start;
    flex-shrink: 0;
}

#photo-gallery {
    overflow-x: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% / 2); /* Mobile default */
    gap: 1rem;
    scroll-behavior: smooth;
}
@media (min-width: 576px) {
    .modal-scanner .modal-xl {
        max-width: 95vw !important;
    }
}

@media (min-width: 1200px) {
        .modal-scanner .modal-xl {
            max-width: 80vw !important;
        }
}
.form-check-input:checked + label .card {
    background-color: #e9ecef; /* Slightly gray background */
    border:1px solid var(--primary);

}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #dee2e6!important;
    border-radius: 4px;
}
.select2-container--default .select2-selection--multiple {
    border: 1px solid #dee2e6!important;
    outline: 0;
}
.select2-dropdown{
    border: 1px solid #dee2e6!important;

}

.badge-stats-alert{
    display: inline-block;
    border-radius: 0.375rem;
    color:red;
    background-color: white;
    padding-left: .25rem;
    padding-right: .25rem;
}

@media (max-width: 768px) {
    .filter_body_class_custom {
        max-height: 60vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Responsive heading size */
@media (min-width: 768px) {
    .h4-md {
        font-size: 1rem !important;
        line-height: 1;
    }
    .h3-md {
        font-size: 1.75rem !important;
        line-height: 1;
    }
    .h2-md {
        font-size: 2rem !important;
        line-height: 1;
    }
    .h1-md {
        font-size: 4rem !important;
        line-height: 1;
    }
}

@media (min-width: 992px) {
    .h4-lg {
        font-size: 1.25rem !important;
        line-height: 1;
    }
    .h3-lg {
        font-size: 1.75rem !important;
        line-height: 1;
    }
    .h2-lg {
        font-size: 2.5rem !important;
        line-height: 1;
    }
    .h1-lg {
        font-size: 5rem !important;
        line-height: 1;
    }
}

@media (min-width: 1200px) {
    .h4-xl {
        font-size: 1.75rem !important;
        line-height: 1;
    }
    .h3-xl {
        font-size: 2rem !important;
        line-height: 1;
    }
    .h2-xl {
        font-size: 3rem !important;
        line-height: 1;
    }
    .h1-xl {
        font-size: 6rem !important;
        line-height: 1;
    }
}

/* Selected Collection Card */
.selected-collection-alert-card-show {
    border: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.selected-collection-alert-card-show .sc-header {
    /*background: linear-gradient(135deg, #1a7a4a 0%, #28a745 100%);*/
    background: linear-gradient(135deg, var(--primary), #fff 200%);
    color: #fff;
    padding: .75rem 1rem 0.75rem;
}

.selected-collection-alert-card-show .sc-tracking-code {
    letter-spacing: 0.04em;
    color: #fff;
    opacity: 0.95;
}

.selected-collection-alert-card-show .sc-route {
    background: rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    padding: 0.35rem 0.75rem;
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.92);
}

.selected-collection-alert-card-show .sc-route .sc-arrow {
    color: rgba(255,255,255,0.5);
}

.selected-collection-alert-card-show .sc-stats-panel {
    border-radius: 0.5rem;
    padding:0 0.75rem 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
}

.selected-collection-alert-card-show .sc-stats-panel.sc-stat-packages {
    background: #fff;
    box-shadow: 0 4px 14px rgba(13,110,253,0.45);
    color: #dc3545;
}

.selected-collection-alert-card-show .collection-quantity{
    color: #dc3545;
    font-weight: 800;
    line-height: 1;
}

.selected-collection-alert-card-show .sc-stats-panel.sc-stat-weight {
    background: #dc3545;
    box-shadow: 0 4px 14px rgba(220,53,69,0.45);
    color:#fff;
}
.selected-collection-alert-card-show .collection-weight{
    color:#fff;
    font-weight: 800;
    line-height: 1;
}
.selected-collection-alert-card-show .sc-stat-value {
    font-weight: 800;
    line-height: 1;
}

.selected-collection-alert-card-show .sc-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.selected-collection-alert-card-show .sc-status-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 0.4rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3);
}

.selected-collection-alert-card-show .sc-note-bar {
    background: #fff;
    color: #dc3545;
    border-top: 4px solid #dc3545;
    padding: 0.1rem 0.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    /*font-size: clamp(1.25rem, 5vw, 6rem);*/
    font-size: clamp(1.25rem, 8vw, 9rem);
    line-height: 1;
    text-align: center;
    width: 100%;
    display: block;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (min-width: 992px) {
    .selected-collection-alert-card-show .sc-header {
        padding: 0.8rem 1rem 0.8rem;
    }
}

@media (min-width: 1200px) {
    .selected-collection-alert-card-show .sc-header {
        padding: 0.8rem 1rem 0.8rem;
    }
}

/* Responsive input-group - md size only on larger screens */
@media (min-width: 768px) {
    .input-group-md-up > .form-control,
    .input-group-md-up > .input-group-prepend > .input-group-text,
    .input-group-md-up > .input-group-append > .input-group-text,
    .input-group-md-up > .input-group-prepend > .btn,
    .input-group-md-up > .input-group-append > .btn {
        height: calc(2.25rem + 2px);
        padding: 0.5rem 1rem;
        font-size: 1.125rem;
        line-height: 1.5;
        border-radius: 0.3rem;
    }
    .input-group-md-up > .input-group-prepend > .input-group-text,
    .input-group-md-up > .input-group-prepend > .btn {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .input-group-md-up > .input-group-append > .input-group-text,
    .input-group-md-up > .input-group-append > .btn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .input-group-md-up > .form-control {
        border-radius: 0;
    }
    .input-group-md-up > .form-control:last-child {
        border-top-right-radius: 0.3rem;
        border-bottom-right-radius: 0.3rem;
    }
}

/* Bootstrap 5 Gap Utilities for Bootstrap 4 */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

.row-gap-0 { row-gap: 0 !important; }
.row-gap-1 { row-gap: 0.25rem !important; }
.row-gap-2 { row-gap: 0.5rem !important; }
.row-gap-3 { row-gap: 1rem !important; }
.row-gap-4 { row-gap: 1.5rem !important; }
.row-gap-5 { row-gap: 3rem !important; }

.column-gap-0 { column-gap: 0 !important; }
.column-gap-1 { column-gap: 0.25rem !important; }
.column-gap-2 { column-gap: 0.5rem !important; }
.column-gap-3 { column-gap: 1rem !important; }
.column-gap-4 { column-gap: 1.5rem !important; }
.column-gap-5 { column-gap: 3rem !important; }

