.SumoSelect {
    width: 100%;
}

/* 
 * Login screen
 */
.login-section {
    position: relative;
    z-index: 2;
}

.watermark {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-repeat: repeat;
    filter: brightness(0.191) invert(0.85) opacity(0.25);
}

.login-splash {
    margin-bottom: 2rem;
}

.login-splash h2,
.login-splash h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.login-splash h4 {
    font-size: 18px;
}


/* 
 * Element loader
 */
.page-loader-wrapper.elem-loader {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 8;
}

.inline-loader-wrapper .page-loader-wrapper {
    background-color: transparent;
    width: auto;
    left: auto;
    right: 10px;
}

/* 
 * Ticket booking custom styles
 */
.book-title {
    display: inline-block;
    font-size: 20px;
    padding: 5px 10px;
    font-weight: bolder;
    border-bottom: 1px dashed #333;
}

.search-trip-single .col {
    padding-top: 15px;
    padding-bottom: 15px;
    border-right: 1px solid #eaeaea;
}

.search-trip-single .col h6 {
    font-weight: bold;
    font-size: 1.2em;
}

.search-trip-single .booking-area {
    background-color: #cedddf;
}

.booking-area .loader {
    padding: 50px 0;
    text-align: center;
}

/* Admin panel: minor readability and interaction polish */
.body-content {
    padding-bottom: 1.5rem;
}

.main-content .card {
    border-radius: 0.35rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

/* Admin only: keep button labels/icons vertically centered */
.wrapper .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    gap: 0.35rem;
}

.navbar-custom-menu.navbar {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.table-responsive {
    border-radius: 0.25rem;
}

.btn:focus-visible,
.nav-link:focus-visible,
.sidebar a:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.55);
    outline-offset: 2px;
}

.page-loader-wrapper {
    transition: opacity 0.2s ease-out;
}

/*
 * Admin create & edit forms only (.wrapper = admin template; public pages omit it)
 * Minor layout polish: labels, fields, radios, required marker, submit row
 */
.wrapper .body-content form {
    --bv-form-label: #374151;
    --bv-form-edge: rgba(0, 0, 0, 0.11);
}

.wrapper .body-content form label:not(.form-check-label):not(.form-file-label) {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--bv-form-label);
    margin-bottom: 0.375rem;
    display: block;
    max-width: 100%;
    line-height: 1.35;
}

.wrapper .body-content form label.form-group {
    display: block;
    width: 100%;
}

.wrapper .body-content form .form-control,
.wrapper .body-content form .form-select {
    border-color: var(--bv-form-edge);
    border-radius: 0.3rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wrapper .body-content form .form-control:focus,
.wrapper .body-content form .form-select:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.wrapper .body-content form .form-control:focus-visible,
.wrapper .body-content form .form-select:focus-visible {
    outline: none;
}

.wrapper .body-content form .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.wrapper .body-content form textarea.form-control {
    min-height: 5.5rem;
}

.wrapper .body-content form .form-check {
    margin-bottom: 0.35rem;
}

.wrapper .body-content form .form-check:last-of-type {
    margin-bottom: 0;
}

.wrapper .body-content form abbr[title="Required field"] {
    text-decoration: none;
    color: #b02a37;
    font-weight: 600;
    margin-left: 0.12rem;
}

/*
 * Primary actions: separator above submit — all nestings (direct child, wrappers,
 * col-12 / col-* / text-center / modal content, or .btn-group)
 */
.wrapper .body-content form .btn-group:has(button[type="submit"]),
.wrapper .body-content form .btn-group:has(input[type="submit"]) {
    margin-top: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wrapper .body-content form button[type="submit"],
.wrapper .body-content form input[type="submit"],
.wrapper .body-content form input[type="image"] {
    margin-top: 1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wrapper .body-content form .btn-group button[type="submit"],
.wrapper .body-content form .btn-group input[type="submit"],
.wrapper .body-content form .btn-group input[type="image"] {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/*
 * Full-width-ish columns that only hold submit(s) (no fields). Border on the
 * column — not on the button — avoids double lines. Skip if .btn-group handles it.
 */
.wrapper .body-content form [class*="col-"]:has(button[type="submit"], input[type="submit"], input[type="image"]):not(:has(input:not([type="hidden"]):not([type="submit"]):not([type="image"]))):not(:has(select)):not(:has(textarea)):not(:has(.btn-group)) {
    margin-top: 0.75rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wrapper .body-content form [class*="col-"]:has(button[type="submit"], input[type="submit"], input[type="image"]):not(:has(input:not([type="hidden"]):not([type="submit"]):not([type="image"]))):not(:has(select)):not(:has(textarea)):not(:has(.btn-group)) button[type="submit"],
.wrapper .body-content form [class*="col-"]:has(button[type="submit"], input[type="submit"], input[type="image"]):not(:has(input:not([type="hidden"]):not([type="submit"]):not([type="image"]))):not(:has(select)):not(:has(textarea)):not(:has(.btn-group)) input[type="submit"],
.wrapper .body-content form [class*="col-"]:has(button[type="submit"], input[type="submit"], input[type="image"]):not(:has(input:not([type="hidden"]):not([type="submit"]):not([type="image"]))):not(:has(select)):not(:has(textarea)):not(:has(.btn-group)) input[type="image"] {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* —— Global offline / connectivity (all layouts that load customestyle + common/js) —— */
#bv-offline-banner.bv-offline-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10050;
    padding: 0.65rem 1rem;
    background: #856404;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

#bv-offline-banner.bv-offline-banner.bv-offline-banner--visible {
    display: block;
}

.bv-offline-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.bv-offline-banner__icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.bv-offline-banner__text {
    flex: 1;
    min-width: 0;
}

.bv-offline-banner__title {
    font-weight: 600;
}

.bv-offline-banner__title .bv-bilingual-en,
.bv-offline-banner__detail .bv-bilingual-en {
    display: block;
}

.bv-offline-banner__title .bv-bilingual-ar,
.bv-offline-banner__detail .bv-bilingual-ar {
    margin-top: 0.3rem;
    font-weight: 500;
    opacity: 0.95;
}

.bv-bilingual-stack .bv-bilingual-ar {
    margin-top: 0.35rem;
}

/* Admin flash (success / fail): bilingual EN + AR */
.admin-flash-alert .admin-flash-alert__body {
    padding-right: 0.25rem;
}

.admin-flash-alert .admin-alert-line--ar {
    margin-top: 0.4rem;
    font-size: 0.95em;
}

.admin-flash-alert .admin-alert-html ul {
    margin-bottom: 0;
}

#bv-online-toast .bv-bilingual-stack {
    text-align: center;
}

#bv-online-toast .bv-bilingual-ar {
    margin-top: 0.35rem;
}

#bv-online-toast.bv-online-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(120%);
    z-index: 10050;
    padding: 0.55rem 1.15rem;
    background: #198754;
    color: #fff;
    font-size: 0.875rem;
    border-radius: 0.35rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    max-width: min(90vw, 28rem);
    text-align: center;
}

#bv-online-toast.bv-online-toast.bv-online-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}