.widget-joins:after {
    background-color: transparent !important;
}

.form-group {
    margin-bottom: 1rem;
}

.select2 {
    width: 100% !important;
}

.select2-container {
    width: 100% !important;
}

.select2-container--open {
    z-index: 99999;
}

.select2-dropdown {
    z-index: 99999;
}

body .swal2-container {
    z-index: 1081 !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f3f5f7;
}

.select2-container--default .select2-selection--single {
    border-radius: 8px !important;
    border: 1px solid #bec8d0 !important;
    height: 100% !important;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    height: 0 !important;
    left: 0 !important;
    margin-left: -5px !important;
    margin-top: 8px !important;
}

.select2-container .select2-selection--single:hover {
    background-color: #f8f9fa !important;
}

.select2-container .select2-selection--single:focus {
    color: #131920 !important;
    background-color: #f8f9fa !important;
    border-color: var(--bs-primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1) !important;
}

.select2-results__option:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
}

.select2-results__option[aria-selected="true"] {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.select2-results__option--highlighted[aria-selected="false"] {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
}

.select2-results__option--highlighted[aria-selected="true"] {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

.select2-container--open .select2-selection--single {
    color: #131920 !important;
    background-color: #f8f9fa !important;
    border-color: var(--bs-primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1) !important;
}

.select2-container .select2-selection--single {
    width: 100%;
    /*padding: 0.58rem 0.75rem;*/
    padding: 0.58rem 2rem 0.58rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1px solid #bec8d0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 0.357rem;
    height: 2rem;
}

[data-pc-theme="dark"] .select2-container .select2-selection--single {
    background-color: #263240 !important;
    border-color: #303f50 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #131920 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--bs-body-color) !important;
}

[data-pc-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--bs-body-color) !important;
}

[data-pc-theme="dark"] .select2-search__field {
    background-color: #263240 !important;
    color: var(--bs-body-color) !important;
}

[data-pc-theme="dark"] .select2-dropdown {
    background-color: #263240 !important;
    color: var(--bs-body-color) !important;
}

[data-pc-theme="dark"] .select2-results__option:hover {
    background: transparent !important;
    color: var(--bs-primary) !important;
}

[data-pc-theme="dark"] .select2-container .select2-selection--single:focus {
    border-color: var(--bs-primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1) !important;
}

[data-pc-theme="dark"] .select2-results__option[aria-selected="true"] {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
}

[data-pc-theme="dark"] .select2-results__option--highlighted[aria-selected="false"] {
    background: transparent !important;
    color: var(--bs-primary) !important;
}

[data-pc-theme="dark"] .select2-results__option--highlighted[aria-selected="true"] {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
    color: var(--bs-primary) !important;
}

[data-pc-theme="dark"] .select2-container--open .select2-selection--single {
    border-color: var(--bs-primary) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1) !important;
}

/* ============================================================
   Page Loader (.loader-wrapper)
   Used by pageLoader() in main.function.js
   ============================================================ */
.loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

[data-pc-theme="dark"] .loader-wrapper {
    background-color: rgba(22, 33, 45, 0.92);
}

.loader-wrapper .loader-logo {
    max-height: 250px;
    max-width: 250px;
    object-fit: contain;
    animation: loader-logo-pulse 1.6s ease-in-out infinite;
}

.loader-wrapper .loader-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-primary);
    letter-spacing: 0.5px;
    animation: loader-logo-pulse 1.6s ease-in-out infinite;
}

@keyframes loader-logo-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.97); }
}

/* Spinner shown when no logo */
.loader-wrapper .theme-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-wrapper .loader-p {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(var(--bs-primary-rgb), 0.15);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: loader-spin 0.75s linear infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Order Track Timeline
   ============================================================ */
.order-track-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
}

.order-track-header-label {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #6c757d;
    margin-bottom: 2px;
}

.order-track-header-invoice {
    font-size: .88rem;
    font-weight: 700;
    color: #212529;
}

.order-track-empty {
    text-align: center;
    padding: 32px 0;
    color: #adb5bd;
}

.order-track-empty i {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.order-track-empty div {
    font-size: .82rem;
}

.order-track-timeline {
    position: relative;
}

.order-track-line {
    position: absolute;
    left: 19px;
    top: 20px;
    width: 2px;
    height: calc(100% - 44px);
    background: linear-gradient(to bottom, #dee2e6, #f8f9fa);
    z-index: 0;
}

.order-track-step {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.order-track-step + .order-track-step {
    margin-top: 16px;
}

.order-track-dot {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-track-dot i {
    color: #fff;
    font-size: 1.1rem;
}

.order-track-dot.status-pending    { background: #fd7e14; box-shadow: 0 2px 8px #fd7e1455; }
.order-track-dot.status-processing { background: #0dcaf0; box-shadow: 0 2px 8px #0dcaf055; }
.order-track-dot.status-success    { background: #198754; box-shadow: 0 2px 8px #19875455; }
.order-track-dot.status-error      { background: #dc3545; box-shadow: 0 2px 8px #dc354555; }
.order-track-dot.status-cancel     { background: #6c757d; box-shadow: 0 2px 8px #6c757d55; }
.order-track-dot.status-partial    { background: #6f42c1; box-shadow: 0 2px 8px #6f42c155; }

.order-track-card {
    flex: 1;
    border-radius: 8px;
    padding: 10px 14px;
    border-left: 3px solid;
}

.order-track-card.status-pending    { background: #fff3e0; border-color: #fd7e14; }
.order-track-card.status-processing { background: #e0f7fa; border-color: #0dcaf0; }
.order-track-card.status-success    { background: #e8f5e9; border-color: #198754; }
.order-track-card.status-error      { background: #fdecea; border-color: #dc3545; }
.order-track-card.status-cancel     { background: #f1f3f5; border-color: #6c757d; }
.order-track-card.status-partial    { background: #f3e5f5; border-color: #6f42c1; }

.order-track-card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.order-track-card-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.order-track-card-label.status-pending    { color: #fd7e14; }
.order-track-card-label.status-processing { color: #0dcaf0; }
.order-track-card-label.status-success    { color: #198754; }
.order-track-card-label.status-error      { color: #dc3545; }
.order-track-card-label.status-cancel     { color: #6c757d; }
.order-track-card-label.status-partial    { color: #6f42c1; }

.order-track-badge-latest {
    font-size: .65rem;
    font-weight: 600;
    color: #fff;
    padding: 1px 7px;
    border-radius: 20px;
}

.order-track-badge-latest.status-pending    { background: #fd7e14; }
.order-track-badge-latest.status-processing { background: #0dcaf0; }
.order-track-badge-latest.status-success    { background: #198754; }
.order-track-badge-latest.status-error      { background: #dc3545; }
.order-track-badge-latest.status-cancel     { background: #6c757d; }
.order-track-badge-latest.status-partial    { background: #6f42c1; }

.order-track-card-meta {
    font-size: .78rem;
    color: #495057;
}

.order-track-card-meta i {
    font-size: .72rem;
    margin-right: 3px;
}

.order-track-card-meta .track-sep {
    margin: 0 4px;
    color: #ced4da;
}

.order-track-card-meta .track-time-rel {
    color: #adb5bd;
    margin-left: 4px;
}

.order-track-card-note {
    font-size: .75rem;
    color: #6c757d;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #dee2e6;
}

.order-track-card-note i {
    font-size: .7rem;
    margin-right: 3px;
}
