/* ============================================================
   BUILDORA ADMIN + SELLER BRAND LAYER
   Shared by admin/include-head.php and seller/include-head.php.
   Flat navy + emerald, no gradients. Semantic status colors
   (success/warning/danger) are intentionally left unchanged.
   ============================================================ */

:root {
    --bd-navy-900: #030b23;
    --bd-navy-800: #061334;
    --bd-navy-700: #0c1f4a;
    --bd-navy-600: #162c5e;
    --bd-ink: #0f1b36;
    --bd-muted: #5c6b85;
    --bd-green-700: #076853;
    --bd-green-600: #0a8367;
    --bd-green-500: #0fb98f;
    --bd-green-400: #19d3a1;
    --bd-green-100: #d6f7ec;
    --bd-green-50: #f1fbf8;
    --bd-border: #e3e8f0;
}

html { scrollbar-color: var(--bd-green-500) #eef1f8; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #eef1f8; }
*::-webkit-scrollbar-thumb { min-height: 44px; border: 2px solid #eef1f8; border-radius: 999px; background: var(--bd-green-500); }
*::-webkit-scrollbar-thumb:hover { background: var(--bd-navy-800); }

a { color: var(--bd-green-600); }
a:hover, a:focus { color: var(--bd-green-700); }

/* ── RTL base fix ─────────────────────────────────────────────────────────
   adminlte.min.css sets `body { text-align: left }` as a literal physical
   value, which does not respond to dir="rtl" (unlike the storefront, which
   uses logical properties throughout and needs no override — see
   front_end buildora-brand.css). Every seller-portal page in Arabic was
   inheriting left-aligned text from this. `start` resolves per-direction:
   left in LTR (admin — no visual change here), right in RTL (seller).
   Bootstrap's own .text-left/.text-right/.text-center utilities are
   !important and still win wherever a page sets one intentionally. */
body { text-align: start; }

/* This bundle is Bootstrap 4 (.text-left/.text-right/.text-center only) —
   add the Bootstrap 5-style logical pair for views that want RTL-aware
   alignment instead of hardcoding a physical side. */
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }

/* ── Top navbar ───────────────────────────────────────────────────────────── */
.main-header.navbar,
.navbar-dark {
    background: var(--bd-navy-800) !important;
    border-color: rgba(25, 211, 161, 0.18) !important;
}
.main-header .nav-link { color: rgba(255, 255, 255, 0.82) !important; }
.main-header .nav-link:hover { color: #fff !important; }
.main-header .header-icon-link .header-icon { color: rgba(255, 255, 255, 0.82); }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.main-sidebar,
.sidebar-dark-indigo,
.sidebar-dark-primary {
    background: var(--bd-navy-800) !important;
}
.brand-link {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(25, 211, 161, 0.16) !important;
}
.brand-image {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    object-fit: contain;
    opacity: 1 !important;
}
.brand-text {
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}

.nav-sidebar > .nav-item > .nav-link.active,
.nav-sidebar > .nav-item.menu-open > .nav-link,
.nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
    color: #fff !important;
    background: var(--bd-green-600) !important;
    box-shadow: none;
}
.nav-sidebar .nav-link:hover {
    color: #fff !important;
    background-color: rgba(25, 211, 161, 0.12) !important;
}
.nav-sidebar .nav-link { color: rgba(255, 255, 255, 0.82); }
.nav-sidebar > .nav-item > .nav-link.active > .nav-icon,
.nav-sidebar .nav-link:hover .nav-icon { color: #fff; }
.nav-sidebar .nav-treeview > .nav-item > .nav-link { color: rgba(255, 255, 255, 0.72); }
.nav-sidebar .nav-treeview > .nav-item > .nav-link:hover { color: #fff; }

/* ── Buttons, form controls, pagination ──────────────────────────────────── */
.btn-primary,
.bg-primary,
.badge-primary,
.page-item.active .page-link,
.custom-control-input:checked ~ .custom-control-label::before,
.icheck-primary > input:first-child:checked + label::before {
    color: #fff !important;
    background-color: var(--bd-green-600) !important;
    border-color: var(--bd-green-600) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--bd-green-700) !important;
    border-color: var(--bd-green-700) !important;
}
.btn-outline-primary { color: var(--bd-green-600) !important; border-color: var(--bd-green-600) !important; }
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff !important;
    background: var(--bd-green-600) !important;
    border-color: var(--bd-green-600) !important;
}
.text-primary { color: var(--bd-green-600) !important; }
.border-primary { border-color: var(--bd-green-600) !important; }
.form-control:focus {
    border-color: var(--bd-green-500);
    box-shadow: 0 0 0 3px rgba(25, 211, 161, 0.16);
}
.page-link { color: var(--bd-green-600); }
.page-link:hover { color: var(--bd-green-700); }

.card-primary:not(.card-outline) > .card-header,
.card-header.bg-primary { background: var(--bd-green-600) !important; }
.card-primary.card-outline,
.card-outline.card-primary { border-top-color: var(--bd-green-600) !important; }

/* ── Login screens (admin + seller) ──────────────────────────────────────────
   Split panel: solid navy brand side (logo + tagline + a few soft geometric
   shapes echoing the logo mark's chevron) and a plain white form side. No
   stock photo, no floating card-on-photo. */
.login-page.bg-admin { background: #fff; }

/* body.login-page is `display:flex; align-items:center; justify-content:center`
   (leftover from the old centered-card layout) — without an explicit width
   this flex child just shrink-wraps to content and gets centered, leaving
   equal gaps on both sides instead of running edge-to-edge. */
.bd-auth-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

.bd-auth-brand {
    flex: 0 0 42%;
    max-width: 560px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--bd-navy-800);
    padding: 48px;
}
.bd-auth-shapes { position: absolute; inset: 0; overflow: hidden; }
.bd-auth-shape { position: absolute; opacity: 0.5; }
.bd-auth-shape--1 {
    width: 60%;
    height: 60%;
    top: -12%;
    inset-inline-end: -18%;
    background: var(--bd-navy-700);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 45%);
}
.bd-auth-shape--2 {
    width: 46%;
    height: 46%;
    bottom: -14%;
    inset-inline-start: -12%;
    background: var(--bd-navy-600);
    clip-path: polygon(0 30%, 70% 0, 100% 55%, 35% 100%);
}
.bd-auth-shape--3 {
    width: 22%;
    height: 22%;
    bottom: 12%;
    inset-inline-end: 10%;
    background: var(--bd-green-500);
    opacity: 0.16;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.bd-auth-brand-inner { position: relative; z-index: 1; }
.bd-auth-logo { height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.bd-auth-tagline {
    margin: 28px 0 0;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 1rem;
    line-height: 1.6;
}

.bd-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #fff;
}
.bd-auth-card { width: 100%; max-width: 400px; }
.bd-auth-card .login-logo { display: none; }
/* The login partials carry `container-fluid` as well — not for layout, but
   so the form matches the generic `.container-fluid .form-submit-event`
   AJAX submit handler in custom.js (without it the login form does a native
   POST and the browser renders the endpoint's raw JSON instead of showing
   an error toast). Cancel the Bootstrap gutter it would otherwise add. */
.bd-auth-card.container-fluid { padding-left: 0; padding-right: 0; }

@media (max-width: 991.98px) {
    .bd-auth-brand { display: none; }
}

/* ── Wide auth variant (seller registration) ───────────────────────────────
   Exactly the login page's skeleton — the same navy brand panel and the
   same .bd-auth-card centered in the same flex form panel. The only
   differences: the card is wider (long multi-section form) and pinned to
   the top instead of vertically centered, since it's taller than the
   viewport. */
.bd-auth-page--wide .bd-auth-form-panel { align-items: flex-start; }
.bd-auth-page--wide .bd-auth-card { max-width: 820px; }

/* Two-column field grid instead of one long vertical stack. Everything in
   the grid spans both columns by default (section titles, the button row);
   a plain .mb-3 field narrows to one column so short fields sit side by
   side, unless it's marked .bd-form-full (textareas, file inputs —
   cramped at half width). */
.bd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}
.bd-form-grid > * { grid-column: 1 / -1; }
.bd-form-grid > .mb-3 { grid-column: span 1; }
.bd-form-grid > .mb-3.bd-form-full { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .bd-form-grid > .mb-3 { grid-column: 1 / -1; }
}

/* ── Registration stepper ──────────────────────────────────────────────────
   The form is split into two steps (personal / store) so each fits a
   laptop viewport with no scrolling. Panels are plain wrappers toggled via
   the `hidden` attribute (the grid lives INSIDE the panel — putting
   display:grid on the panel itself would override [hidden]). Hidden steps
   stay in the same <form>, so the vendor submit handler still posts every
   field. */
.bd-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
}
.bd-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bd-muted);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}
.bd-step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef1f6;
    color: var(--bd-muted);
    font-size: 0.85rem;
    font-weight: 700;
}
.bd-step.is-active { color: var(--bd-navy-800); }
.bd-step.is-active .bd-step-num { background: var(--bd-green-600); color: #fff; }
.bd-step.is-done .bd-step-num { background: var(--bd-green-100); color: var(--bd-green-700); }
.bd-steps-divider { flex: 1; height: 2px; border-radius: 2px; background: var(--bd-border); }
.bd-step-actions { display: flex; gap: 10px; margin-top: 4px; }
.bd-step-error {
    display: none;
    margin-top: 14px;
    color: #c0392b;
    font-size: 0.9rem;
}
.bd-step-error.is-visible { display: block; }
.bd-form-grid .form-control.bd-invalid { border-color: #e74c3c; }
.login-logo a img {
    max-height: 56px !important;
    width: auto !important;
}
.bd-auth-section-title {
    margin: 28px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bd-border);
    color: var(--bd-navy-800);
    font-size: 1.05rem;
    font-weight: 700;
}
.bd-auth-section-title:first-of-type { margin-top: 4px; }

/* intl-tel-input's own CSS makes the wrapper `display: inline-block` with
   no width, so it shrink-wraps instead of filling the field — Bootstrap's
   `.form-control{width:100%}` on the input inside it then resolves against
   whatever ancestor DOES have a width, ballooning past its own wrapper.
   That's why the field read narrower than the button below it and the
   dial-code text got clipped by the (too-narrow) flag box. Force the
   wrapper to a real block box the same width as every other field. */
.intl-tel-input,
.intl-tel-input input {
    display: block;
    width: 100%;
}
/* custom.css also has a legacy #seller_mobile{width:107%-143%} hack across
   several breakpoints, left over from when this field lived in a cramped
   .col-sm-10 grid column and needed to visually escape it. It's an ID
   selector, so it wins over the class rule above regardless of source
   order. The field now lives in a plain full-width stack (see
   seller-registration.php) where that override just causes overflow —
   pin it back down for every breakpoint at once. */
#seller_mobile {
    width: 100% !important;
}

.btn-signin {
    background-color: var(--bd-green-600) !important;
    border-color: var(--bd-green-600) !important;
    color: #fff !important;
}
.btn-signin:hover,
.btn-signin:focus {
    background-color: var(--bd-green-700) !important;
    border-color: var(--bd-green-700) !important;
    color: #fff !important;
}

.bd-auth-switch {
    margin: 20px 0 0;
    text-align: center;
    color: var(--bd-muted);
    font-size: 0.9rem;
}
.bd-auth-switch a { color: var(--bd-green-600); font-weight: 600; }
.bd-auth-switch a:hover { color: var(--bd-green-700); }

/* ── intl-tel-input country dropdown + closed-state trigger ────────────────
   The plugin (and its dial-code/flag row markup) is authored LTR-only and
   has no dir="rtl" awareness — under RTL it inherits the page's direction
   and its unset top/left positioning resolves relative to the wrong edge,
   so the list renders off past the left side of the viewport instead of
   under the input, and mixed Arabic/dial-code text reorders unpredictably.
   The closed-state flag+dial-code trigger has the same problem: it inherits
   our own `text-align: start` (see the RTL base fix above), which resolves
   to right under RTL and shoves "+966" flush against the flag icon on the
   same side, so the two overlap and only "96" reads clearly. Force the
   whole widget back to LTR; the phone number it produces is
   locale-independent anyway. */
.intl-tel-input .country-list,
.intl-tel-input .selected-flag {
    direction: ltr;
    text-align: left;
}
.intl-tel-input .country-list {
    left: 0;
    right: auto;
}

/* ── Nav-pills (e.g. dashboard chart Day/Week/Month toggle) ────────────────── */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--bd-green-600) !important;
    color: #fff !important;
}

/* ── Order status boxes (dashboard "Order items Outline") ──────────────────
   Vendor defaults were 5 unrelated colors (steel blue, mauve, teal, dusty
   rose, sage). Replaced with one navy→green progression so the row reads
   as a pipeline — awaiting (dark) through delivered (brightest) — instead
   of a random palette. Cancelled/Returned keep their semantic bg-danger /
   bg-secondary, left untouched. */
.awaiting-box { background-color: var(--bd-navy-700) !important; }
.received-box { background-color: var(--bd-navy-600) !important; }
.processed-box { background-color: var(--bd-green-700) !important; }
.shipped-box { background-color: var(--bd-green-600) !important; }
.delivered-box { background-color: var(--bd-green-500) !important; }

/* ── Bootstrap Table page-size selector ─────────────────────────────────── */
.bootstrap-table .fixed-table-pagination .page-list .btn-secondary,
.bootstrap-table .fixed-table-pagination .page-list .btn-default {
    background: var(--bd-green-600) !important;
    border-color: var(--bd-green-600) !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(10, 131, 103, 0.18) !important;
}
.bootstrap-table .fixed-table-pagination .page-list .btn-secondary:hover,
.bootstrap-table .fixed-table-pagination .page-list .btn-secondary:focus,
.bootstrap-table .fixed-table-pagination .page-list .btn-default:hover,
.bootstrap-table .fixed-table-pagination .page-list .btn-default:focus {
    background: var(--bd-green-700) !important;
    border-color: var(--bd-green-700) !important;
}
.bootstrap-table .fixed-table-pagination .page-list .dropdown-item.active,
.bootstrap-table .fixed-table-pagination .page-list .dropdown-item:active {
    background: var(--bd-green-600) !important;
    color: #fff !important;
}
.fixed-table-pagination .pagination .page-item.active .page-link {
    background-color: var(--bd-green-600) !important;
    border-color: var(--bd-green-600) !important;
}
.fixed-table-pagination .pagination .page-link { color: var(--bd-green-600); }

/* ── Dashboard alert banners — soft tint + accent border instead of a
   solid fill ────────────────────────────────────────────────────────────── */
.alert-primary {
    background: var(--bd-green-50) !important;
    border: 1px solid rgba(10, 131, 103, 0.30) !important;
    border-inline-start: 4px solid var(--bd-green-600) !important;
    color: var(--bd-ink) !important;
}
.sold-products,
.alert-danger {
    background: #fff4f5 !important;
    border: 1px solid rgba(220, 53, 69, 0.24) !important;
    border-inline-start: 4px solid #dc3545 !important;
    color: #842029 !important;
}
.alert a,
.alert button { color: inherit !important; }

/* ── Confirmation dialogs (SweetAlert2) + Bootstrap modals ──────────────── */
.modal-backdrop.show { background: var(--bd-navy-900); opacity: 0.6; }
.modal-content { border: 1px solid var(--bd-border); border-radius: 16px; box-shadow: 0 24px 60px rgba(6, 19, 52, 0.22); overflow: hidden; }
.modal-header { background: var(--bd-green-50); border-bottom: 1px solid var(--bd-border); }
.modal-title,
.modal-content h1, .modal-content h2, .modal-content h3, .modal-content h4, .modal-content h5 { color: var(--bd-ink); }
.modal-content .form-control, .modal-content .custom-select { border-color: var(--bd-border); border-radius: 8px; }
.modal-content .form-control:focus, .modal-content .custom-select:focus {
    border-color: var(--bd-green-500);
    box-shadow: 0 0 0 3px rgba(15, 185, 143, 0.16);
}

.swal2-popup {
    border: 1px solid var(--bd-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(6, 19, 52, 0.24), 0 8px 22px rgba(6, 19, 52, 0.12) !important;
    max-width: min(430px, calc(100vw - 28px)) !important;
    padding: 1.5rem !important;
}
.swal2-title { color: var(--bd-ink) !important; font-size: 1.5rem !important; }
.swal2-html-container, .swal2-content { color: var(--bd-muted) !important; }
/* Resize via font-size only, never in toast mode — the X/✓ strokes are
   em-positioned children tuned to the icon box; width/height alone
   shears them apart. */
.swal2-popup:not(.swal2-toast) .swal2-icon {
    font-size: 0.85rem !important;
    margin: 0.7rem auto 1rem !important;
}
.swal2-actions { gap: 0.55rem; }
.swal2-styled { border-radius: 9px !important; box-shadow: none !important; min-width: 100px; padding: 0.6rem 1.1rem !important; }
.modal-content .btn-primary,
.swal2-confirm {
    background: var(--bd-green-600) !important;
    border-color: var(--bd-green-600) !important;
    color: #fff !important;
}
.modal-content .btn-primary:hover,
.modal-content .btn-primary:focus,
.swal2-confirm:hover,
.swal2-confirm:focus {
    background: var(--bd-green-700) !important;
    border-color: var(--bd-green-700) !important;
    box-shadow: 0 0 0 3px rgba(10, 131, 103, 0.16) !important;
}
.swal2-actions.swal2-loading .swal2-styled.swal2-confirm {
    animation: none !important;
    background: var(--bd-green-600) !important;
    border: 1px solid var(--bd-green-600) !important;
    border-radius: 9px !important;
    color: transparent !important;
    cursor: default;
    height: auto;
    margin: 0.3125em;
    min-width: 100px;
    padding: 0.6rem 1.1rem !important;
    pointer-events: none;
    position: relative;
    transform: none !important;
    user-select: none;
    width: auto;
}
.swal2-actions.swal2-loading .swal2-styled.swal2-confirm::after {
    animation: buildora-swal-loader 0.75s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    border-top-color: #fff;
    content: "";
    height: 1rem;
    left: 50%;
    margin: -0.5rem 0 0 -0.5rem;
    position: absolute;
    top: 50%;
    width: 1rem;
}
@keyframes buildora-swal-loader {
    to { transform: rotate(360deg); }
}
.modal-content .btn-secondary,
.modal-content .btn-default,
.swal2-cancel {
    background: #fff !important;
    border: 1px solid var(--bd-navy-800) !important;
    color: var(--bd-navy-800) !important;
}
.swal2-deny { background: #dc3545 !important; }

/* ── Misc global polish ──────────────────────────────────────────────────── */
::selection { background: rgba(10, 131, 103, 0.20); }
.content-wrapper { background: var(--bd-green-50); }
.main-footer {
    min-height: 0 !important;
    padding: 10px 16px !important;
    line-height: 1.3;
}
.main-footer strong {
    font-weight: 700;
}
.table thead th {
    color: var(--bd-navy-800);
    background-color: var(--bd-green-50);
    border-bottom-color: var(--bd-border);
}
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary {
    background: var(--bd-green-600) !important;
}
input[type="checkbox"] { accent-color: var(--bd-green-600); }

/* .btn-info gets its own lane (navy) rather than reusing primary green, so
   pages that use both (e.g. bulk-upload's download links) keep two visibly
   distinct actions instead of a wall of identical green buttons. */
.btn-info {
    background-color: var(--bd-navy-700) !important;
    border-color: var(--bd-navy-700) !important;
    color: #fff !important;
}
.btn-info:hover,
.btn-info:focus {
    background-color: var(--bd-navy-600) !important;
    border-color: var(--bd-navy-600) !important;
}

/* Bootstrap-table's own toolbar (as opposed to the pagination bar handled
   above) — the refresh / column-visibility / export button cluster shown
   on every list page. */
.fixed-table-toolbar .btn-secondary,
.fixed-table-toolbar .btn-default {
    background: var(--bd-navy-700) !important;
    border-color: var(--bd-navy-700) !important;
    color: #fff !important;
}
.fixed-table-toolbar .btn-secondary:hover,
.fixed-table-toolbar .btn-secondary:focus,
.fixed-table-toolbar .btn-default:hover,
.fixed-table-toolbar .btn-default:focus {
    background: var(--bd-green-600) !important;
    border-color: var(--bd-green-600) !important;
}

/* ── Reset / primary form action pair (bulk-upload pages, product form) ──── */
.buildora-form-reset {
    background: #fff !important;
    border: 1px solid var(--bd-navy-800) !important;
    color: var(--bd-navy-800) !important;
    box-shadow: none !important;
}
.buildora-form-reset:hover,
.buildora-form-reset:focus {
    background: var(--bd-navy-800) !important;
    border-color: var(--bd-navy-800) !important;
    color: #fff !important;
}
.buildora-form-primary {
    background: var(--bd-green-600) !important;
    border-color: var(--bd-green-600) !important;
    color: #fff !important;
    box-shadow: 0 7px 16px rgba(10, 131, 103, 0.18) !important;
}
.buildora-form-primary:hover,
.buildora-form-primary:focus {
    background: var(--bd-green-700) !important;
    border-color: var(--bd-green-700) !important;
}

/* ── Bulk-upload pages: info guide + card ─────────────────────────────────── */
.buildora-upload-guide {
    background: var(--bd-green-50) !important;
    border: 1px solid rgba(10, 131, 103, 0.30) !important;
    border-inline-start: 4px solid var(--bd-green-600) !important;
    color: var(--bd-ink) !important;
}
.buildora-upload-card {
    border: 1px solid var(--bd-border) !important;
    border-top: 3px solid var(--bd-green-600) !important;
    box-shadow: 0 10px 26px rgba(6, 19, 52, 0.08) !important;
}
.buildora-sample-download-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    min-width: max-content;
    white-space: nowrap;
}
.buildora-order-items-cell {
    min-width: 480px !important;
    max-width: 620px;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

/* ── Home Sections tabs (was card-info / teal) ────────────────────────────── */
.buildora-home-sections-card {
    border-top-color: var(--bd-green-600) !important;
    box-shadow: 0 12px 32px rgba(6, 19, 52, 0.08);
}
.buildora-home-sections-card > .card-header { border-bottom: 0 !important; }
.buildora-home-sections-card > .card-header .nav-link:not(.active) { color: rgba(255, 255, 255, 0.9) !important; }
.buildora-home-sections-card > .card-header .nav-link:not(.active):hover,
.buildora-home-sections-card > .card-header .nav-link:not(.active):focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}
.buildora-home-sections-card > .card-header .nav-link.active {
    color: var(--bd-navy-800) !important;
    border-top-color: rgba(255, 255, 255, 0.65) !important;
}

/* ── Dashboard (home.php) ─────────────────────────────────────────────────── */
.buildora-dashboard .card.pull-up {
    border: 1px solid var(--bd-border);
    border-top: 3px solid var(--bd-green-400);
    box-shadow: 0 10px 26px rgba(6, 19, 52, 0.08) !important;
}
.buildora-dashboard .card.pull-up:hover {
    border-top-color: var(--bd-green-600);
    box-shadow: 0 14px 30px rgba(10, 131, 103, 0.14) !important;
}
/* Top summary-card icons (Orders/Products/... on both admin & seller home.php)
   default to Bootstrap's red/blue/cyan/yellow text-* utilities — swap in the
   brand's navy/green rotation instead, keyed off whichever utility class
   each card happens to use. */
.buildora-dashboard .card.pull-up .align-self-center.text-warning { color: var(--bd-navy-700) !important; }
.buildora-dashboard .card.pull-up .align-self-center.text-danger,
.buildora-dashboard .card.pull-up .align-self-center.text-primary { color: var(--bd-green-600) !important; }
.buildora-dashboard .card.pull-up .align-self-center.text-info { color: var(--bd-green-500) !important; }
.buildora-dashboard .card.pull-up h3,
.buildora-dashboard .card-title,
.buildora-dashboard #ecommerceChartView > .card > .m-3 {
    color: var(--bd-navy-800);
}
.buildora-dashboard #ecommerceChartView > .card,
.buildora-dashboard .card:has(#piechart_3d) {
    border-top: 3px solid var(--bd-green-400);
}
.buildora-dashboard .ct-series-a .ct-line { stroke: var(--bd-green-600) !important; stroke-width: 4px; }
.buildora-dashboard .ct-grid { stroke: rgba(10, 131, 103, 0.13); }

.buildora-dashboard .small-box {
    background: #fff !important;
    border: 1px solid var(--bd-border);
    border-top: 4px solid var(--bd-green-600);
    box-shadow: 0 8px 20px rgba(6, 19, 52, 0.08);
    color: var(--bd-navy-800) !important;
}
.buildora-dashboard .small-box.bg-primary { background: #fff !important; border-top-color: var(--bd-green-600); }
.buildora-dashboard .small-box.bg-info { background: #fff !important; border-top-color: var(--bd-navy-700); }
.buildora-dashboard .small-box.details-box { background: #fff !important; border-top-color: var(--bd-green-600); }
.buildora-dashboard .small-box.bg-success { background: #fff !important; border-top-color: #28a745; }
.buildora-dashboard .small-box.bg-danger { background: #fff !important; border-top-color: #dc3545; }
.buildora-dashboard .small-box.bg-secondary { background: #fff !important; border-top-color: #6c757d; }
.buildora-dashboard .small-box .inner h3,
.buildora-dashboard .small-box .inner p,
.buildora-dashboard .small-box .inner .btn,
.buildora-dashboard .small-box .small-box-footer { color: var(--bd-navy-800) !important; }
.buildora-dashboard .small-box .inner .btn:hover,
.buildora-dashboard .small-box .inner .btn:focus { color: #fff !important; }
.buildora-dashboard .small-box.bg-info .inner .btn:hover,
.buildora-dashboard .small-box.bg-info .inner .btn:focus {
    background-color: var(--bd-navy-700) !important;
    border-color: var(--bd-navy-700) !important;
}
.buildora-dashboard .small-box .icon { color: var(--bd-green-600) !important; opacity: 0.14; }
.buildora-dashboard .small-box.bg-primary .icon { color: var(--bd-green-600) !important; }
.buildora-dashboard .small-box.bg-info .icon { color: var(--bd-navy-700) !important; }
.buildora-dashboard .small-box.bg-success .icon { color: #28a745 !important; }
.buildora-dashboard .small-box.bg-danger .icon { color: #dc3545 !important; }
.buildora-dashboard .small-box.bg-secondary .icon { color: #6c757d !important; }
.buildora-dashboard .small-box:hover { box-shadow: 0 12px 26px rgba(10, 131, 103, 0.14); transform: translateY(-2px); }

/* ── Orders page summary — same navy→green pipeline read as the dashboard's
   Order Outlines, just applied to this page's own bg-* markup. ─────────── */
.buildora-order-summary .small-box {
    min-height: 140px;
    background: #fff !important;
    border: 1px solid var(--bd-border);
    border-top: 4px solid var(--bd-green-600);
    box-shadow: 0 8px 20px rgba(6, 19, 52, 0.08);
    color: var(--bd-navy-800) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.buildora-order-summary .small-box .inner h3,
.buildora-order-summary .small-box .inner p { color: var(--bd-navy-800) !important; }
.buildora-order-summary .small-box .icon { color: var(--bd-green-600) !important; opacity: 0.14; }
.buildora-order-summary .small-box.bg-primary { background: #fff !important; border-top-color: var(--bd-navy-600); }
.buildora-order-summary .small-box.bg-primary .icon { color: var(--bd-navy-600) !important; }
.buildora-order-summary .small-box.bg-info { background: #fff !important; border-top-color: var(--bd-green-700); }
.buildora-order-summary .small-box.bg-info .icon { color: var(--bd-green-700) !important; }
.buildora-order-summary .small-box.bg-warning { background: #fff !important; border-top-color: var(--bd-green-600); }
.buildora-order-summary .small-box.bg-warning .icon { color: var(--bd-green-600) !important; }
.buildora-order-summary .small-box.bg-success { background: #fff !important; border-top-color: var(--bd-green-500); }
.buildora-order-summary .small-box.bg-success .icon { color: var(--bd-green-500) !important; }
.buildora-order-summary .small-box.bg-danger { background: #fff !important; border-top-color: #dc3545; }
.buildora-order-summary .small-box.bg-danger .icon { color: #dc3545 !important; }
.buildora-order-summary .small-box.bg-secondary { background: #fff !important; border-top-color: #6c757d; }
.buildora-order-summary .small-box.bg-secondary .icon { color: #6c757d !important; }
.buildora-order-summary .small-box:hover { box-shadow: 0 12px 26px rgba(10, 131, 103, 0.14); transform: translateY(-2px); }

/* ── Sidebar menu icons ──────────────────────────────────────────────────
   Use a small on-brand rotation instead of Bootstrap's raw
   text-primary/warning/success/danger/info scattered
   across menu items (that's the vendor demo default — reads as a random
   rainbow, not a theme). Buildora is a 2-hue brand, and the sidebar itself
   is dark navy, so navy-toned icons would vanish — the rotation uses the
   available green shades instead. */
.buildora-menu-icon {
    opacity: 0.9;
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.nav-sidebar > .nav-item > .nav-link:hover > .buildora-menu-icon {
    opacity: 1;
    transform: translateY(-1px);
}
.buildora-menu-icon--mint { color: var(--bd-green-400) !important; }
.buildora-menu-icon--teal { color: var(--bd-green-500) !important; }
.buildora-menu-icon--emerald { color: var(--bd-green-600) !important; }
.buildora-menu-icon--jade { color: var(--bd-green-700) !important; }
.nav-sidebar > .nav-item > .nav-link.active > .buildora-menu-icon,
.nav-sidebar > .nav-item.menu-open > .nav-link > .buildora-menu-icon {
    color: #fff !important;
    opacity: 1;
}

/* ── File inputs ─────────────────────────────────────────────────────── */
.buildora-file-input {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    max-width: 100%;
    min-height: 54px;
}
.buildora-file-input__control {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.buildora-file-input__button {
    background: var(--bd-green-600);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    margin: 0 0.85rem 0 0;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}
[dir="rtl"] .buildora-file-input__button {
    margin: 0 0 0 0.85rem;
}
.buildora-file-input:hover .buildora-file-input__button {
    background: var(--bd-green-700);
}
.buildora-file-input__name {
    color: var(--bd-muted);
    overflow: hidden;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
}
.buildora-file-input__control:disabled {
    cursor: not-allowed;
}
.buildora-file-input__control:disabled + .buildora-file-input__button {
    background: var(--bd-muted);
    cursor: not-allowed;
}

/* ── Language selector ───────────────────────────────────────────────── */
.buildora-language-toggle {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
    min-height: 3rem;
    white-space: nowrap;
}
.buildora-language-toggle .ml-1 {
    margin-left: 0 !important;
}
.buildora-language-menu {
    border: 1px solid rgba(15, 143, 115, 0.16);
    border-radius: 0.45rem;
    box-shadow: 0 14px 34px rgba(3, 18, 48, 0.18);
    margin-top: 0.35rem;
    min-width: 12rem;
    overflow: hidden;
    padding: 0.35rem;
}
.buildora-language-menu .dropdown-item {
    align-items: center;
    border-radius: 0.35rem;
    color: var(--bd-ink);
    display: flex;
    font-size: 1rem;
    font-weight: 600;
    gap: 0.55rem;
    line-height: 1.25;
    padding: 0.7rem 0.85rem;
}
.buildora-language-menu .dropdown-item i {
    color: var(--bd-green-600);
    flex: 0 0 1.15rem;
    margin-right: 0 !important;
    text-align: center;
}
.buildora-language-menu .dropdown-item:hover,
.buildora-language-menu .dropdown-item:focus {
    background: rgba(15, 143, 115, 0.09);
    color: var(--bd-green-700);
}
.buildora-language-menu .dropdown-item.active,
.buildora-language-menu .dropdown-item:active {
    background: var(--bd-green-600);
    color: #fff;
}
.buildora-language-menu .dropdown-item.active i,
.buildora-language-menu .dropdown-item:active i {
    color: #fff;
}
[dir="rtl"] .buildora-language-menu .dropdown-item {
    text-align: right;
}
