/* Layout and legibility corrections shared by the admin panel, restaurant panel and login pages. */

/* Sidebar menu items keep clear of the sticky search box when scrolled into view. */
.navbar-vertical-content li.active { scroll-margin-top: 110px; }

/* List search buttons: the icon was white on a near-white background. */
.search--button-wrapper .input--group button,
.search--button-wrapper .input-group button {
    background-color: #0A2352 !important;
    border-color: #0A2352 !important;
    color: #fff !important;
}

/* Zone page "Instructions" heading was pale cream on white. */
.zone-setup-instructions .subtitle { color: #0A2352 !important; }

/* Same height for every filter and form dropdown, whichever widget renders it. */
.content select.form-control:not([multiple]),
.content select.custom-select:not([multiple]),
.content .select2-container--default .select2-selection--single {
    height: 56px !important;
    min-height: 56px;
}
.content .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
}
.content .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4 !important;
    width: 100%;
}
.content .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%);
}
.content .select2-container--default .select2-selection--multiple { min-height: 56px; }

/* Login captcha: the refresh icon pushed the page wider than a phone screen. */
@media (max-width: 575.98px) {
    .capcha-spin { padding: 8px 0 8px 8px !important; flex: 0 0 auto; }
    .capcha-spin i { font-size: 1rem; }
    .auth-wrapper-form .row, form .capcha-spin { max-width: 100%; }
    html, body { overflow-x: hidden; }
}


/* The layouts style .nav-link for the dark sidebar. Tabs inside the page need dark text or they are invisible on white. */
.content .nav-tabs .nav-link:not(.active),
.modal .nav-tabs .nav-link:not(.active) {
    color: #334257 !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
}
.content .nav-tabs .nav-link:not(.active):hover,
.modal .nav-tabs .nav-link:not(.active):hover {
    color: #ff5500 !important;
    background: #fff4ec !important;
}

/* Toasts opened at the bottom-left, underneath the fixed sidebar, so every error message was hidden. */
#toast-container {
    position: fixed !important;
    z-index: 2147483000 !important;
}
#toast-container.toast-bottom-left {
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    transform: translateX(-50%);
}

/* Phone fields (intl-tel-input): always LTR "+20 1xxxxxxxxx" with the flag on the left, even in Arabic RTL pages */
.iti { direction: ltr !important; width: 100%; }
.iti input[type="tel"], .iti input.form-control {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext;
    padding-left: 56px !important;
    padding-right: 12px !important;
}
.iti .iti__flag-container { left: 0 !important; right: auto !important; }
.iti--separate-dial-code input[type="tel"] { padding-left: 92px !important; }
