.form-group.validation-cross {
    margin-bottom: 35px;
}

.disabled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
    background-color: #e9ecef; /* match Bootstrap's disabled background */
    pointer-events: none;
}

.form-control:disabled, .form-control[readonly] {
    background-color: white; 
}


.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid transparent!important;
    border-radius: 0.25rem;
    height: calc(1.6em + 0.75rem + 2px)!important;
    border: 1px solid #e9ecef!important;
    box-shadow: 0px 0px 11px 0px rgb(82 63 105 / 9%)!important;
    padding: 2px 8px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 4px!important;
}

.form-group.validation-clear {
    margin-bottom: 35px;
}

.form-group.validation-cross {
    margin-bottom: 35px;
}

.disabled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
    background-color: #e9ecef; /* match Bootstrap's disabled background */
    pointer-events: none;
}

.form-control:disabled, .form-control[readonly] {
    background-color: white; 
}

a.btn.btn-primary {
    margin-bottom: 2px;
}
.btn-secondary-notes {
    margin-bottom: 2px;
}
a.btn.btn-secondary {
    margin-bottom: 2px;
}
button.btn.btn-danger {
    margin-bottom: 2px;
}

select.disabled-select option {
    overflow-x: auto;
    white-space: nowrap;
}

/* Optional: Improve appearance inside the select box */
select.disabled-select {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: white!important;
    cursor: default;
}
.select2-container--disabled .select2-selection__arrow {
    display: none !important;
}

/* Make the selected text scrollable */
.select2-container--disabled .select2-selection__rendered {
    overflow-x: auto;
    white-space: nowrap;
    text-overflow: ellipsis;
    scrollbar-width: thin; /* for Firefox */
}

/* Optional: hide scrollbar until hover (Webkit) */
.select2-container--disabled .select2-selection__rendered::-webkit-scrollbar {
    height: 6px;
}
.select2-container--disabled .select2-selection__rendered::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}


.select2-container--disabled .select2-selection {
    width: 100%;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

input[name="shop_id"]::placeholder {
    color: #495057;
}

.align-center{
    text-align: center;
}

#csv{
    padding: 3px 3px;
}

.mix-match-offer{
    background-color: #ff007a;
    color: white;
    padding:10px;
    margin-bottom:10px;
}

.mix-match-offer-margin-bottom{
    margin-bottom:0px
}

.page-link:focus {
    box-shadow: none;
}

.loader {
  top: calc(75%)!important;
}

#scandit-barcode-picker video {
    max-height: calc(100vh - 200px);
}
.scanner-container {
    background: #f8f9fa;
    padding-top: 1rem;
    border-radius: 0.5rem;
}
.tracking-steps {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
}
.tracking-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #ddd;
    z-index: 0;
}
.step {
    text-align: center;
    position: relative;
    width: 25%;
    z-index: 1;
}
.step-icon {
    background: #ddd;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    line-height: 40px;
    font-weight: bold;
}
.step-label {
    font-size: 14px;
}
.step.active .step-icon {
    background: #28a745;
}
.step.active .step-label {
    font-weight: bold;
    color: #28a745;
}

.scanning-log-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.log-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.log-icon {
    font-size: 30px;
    color: #28a745;
    margin-right: 20px;
}

.log-details {
    flex: 1;
}

.log-details h5 {
    margin: 0 0 5px;
    font-weight: 600;
}

.log-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.log-status {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e9ecef;
    display: inline-block;
}

.log-status.pending {
    background-color: #ffc107;
    color: #212529;
}

.log-status.completed,
.log-status.delivered {
    background-color: #28a745;
    color: white;
}

.log-status.failed {
    background-color: #dc3545;
    color: white;
}

.forcast-table-head{
    background: #7b84ff;
    color: white;
}

.totalRow{
    background: #7b84ff!important;
    color: white;
}

.disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.nwd {
    background: #fffea7!important;
}

.red-text{
    color: red;
}

.green-text{
    color: green;
}

.blue-text{
    color: blue;
}

.th-width{
    width: 40%;
}

.margin-bottom-3em{
    margin-bottom: 3em
}

.new-shop-ul{
    margin: 0;
    padding-left: 20px;
}

.hidden {
    display: none;
}

.contact-form-block-new-shop{
    padding: 1em; background: #eee; border-radius: 0.5em; margin-bottom: 1em;
}

.container.report-container {
    max-width: 100%!important;
    padding-right: 50px;
    padding-left: 50px;
}

table.table.table-bordered.table-striped.kpi-reports {
    font-size: 10px;
}

.kpi-reports.table-striped tbody tr td {
    text-align: center !important;
}

.kpi-reports.table-striped tfoot{
    text-align: center !important;
}

.kpi-reports.table-striped tbody tr.nwd,
.kpi-reports.table-striped tbody tr.nwd td {
    background-color: #fffea7 !important;
}

.kpi-reports.table-striped tbody tr.selected,
.kpi-reports.table-striped tbody tr.selected td {
    background-color: #9bdbe7 !important;
    color: #000 !important;
}

.form-inline label.filter-label {
    justify-content: flex-start;
}

.region-closed {
  opacity: 0.5;
  background-color: #f8f9fa;
}

.margin-left {
    margin-left: 20px!important;
}

.form-group.padding-top {
    padding-top: 14px;
}

.network-pagination-center {
    align-items: center;
}

#vat_reg_number{
    margin-right: 5px;
}

#pdf-preview{
    width:100%;
    height:600px;
}

.hide{
    display: none;
}

.signature-wrapper {
    border: 2px solid #ced4da;
    border-radius: 5px;
    background-color: #f8f9fa;
    width: 100%;
    height: 300px;
}

.signature-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

#status-msg {
    font-weight: bold;
}

.signature-wrapper {
    border: 2px solid #ced4da;
    border-radius: 5px;
    background-color: #f8f9fa;
    width: 100%;
    height: 400px; /* default height */
}

.signature-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

#pdf-preview-wrapper iframe {
    width: 100%;
    height: 600px;
    border: 1px solid #ccc;
}

#status-msg {
    font-weight: bold;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .signature-wrapper {
        height: 300px;
    }

    #pdf-preview-wrapper iframe {
        height: 400px;
    }

    #signature-actions, #pdf-preview-wrapper .d-flex {
        flex-direction: column;
    }

    #signature-actions button, #pdf-preview-wrapper button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .signature-wrapper {
        height: 250px;
    }

    #pdf-preview-wrapper iframe {
        height: 300px;
    }
}


/* Signature pad styling */
.signature-wrapper {
    border: 1px solid #ccc;
    height: 250px;
    width: 100%;
}

/* PDF preview wrapper */
#pdf-preview-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

/* Center PDF canvas container */
#pdf-preview-container {
    width: 100%;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center if needed */
}

/* PDF canvas responsive */
#pdf-preview-canvas {
    border: 1px solid #ccc;
    max-width: 100%;
    height: auto;
}

/* Buttons container */
#signature-actions, #pdf-preview-wrapper .d-flex {
    flex-wrap: wrap;
    justify-content: center; /* mobile default */
    gap: 0.5rem;
}

/* Buttons min-width */
#signature-actions button, #pdf-preview-wrapper .btn {
    min-width: 140px;
}

/* Mobile spacing adjustments */
@media (max-width: 576px) {
    #signature-actions button:not(:last-child),
    #pdf-preview-wrapper .btn:not(:last-child) {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Desktop layout tweaks */
@media (min-width: 992px) {
    /* Center the whole PDF + buttons block */
    #pdf-preview-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Buttons: horizontal, spaced */
    #signature-actions, #pdf-preview-wrapper .d-flex {
        justify-content: center;
        gap: 1rem;
    }
}

.form-input-box{
    padding: 3px 3px!important;
}

.no-padding{
    padding-left:0px!important;
}

.badge-primary-max-height{
    font-size: 100%;
}

.deleted-row{
    background:#ffe2e2;
    opacity: 0.6;
}

.red-text{
    color: red;
}

.green-text{
    color: green;
}

.blue-text{
    color: blue;
}

.th-width{
    width: 40%;
}

.margin-bottom-3em{
    margin-bottom: 3em
}

.new-shop-ul{
    margin: 0;
    padding-left: 20px;
}

.hidden {
    display: none;
}

.contact-form-block-new-shop{
    padding: 1em; background: #eee; border-radius: 0.5em; margin-bottom: 1em;
}

.kpi-reports th {
    cursor: pointer;
    position: relative;
    padding-right: 18px;
}

/* default arrow */
.kpi-reports th::after {
    content: '⇅';
    position: absolute;
    right: 6px;
    font-size: 12px;
    opacity: 0.4;
}

/* ascending */
.kpi-reports th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

/* descending */
.kpi-reports th.sort-desc::after {
    content: '↓';
    opacity: 1;
}