.accueil-menu-item{
    font-size:50px;
}
.color-info{
    color:#028ee1;
}
.color-success{
    color:#1eacbe;
}
.color-warning{
    color:#e9ab2e;
}
.color-primary{
    color:#6352ce;
}
.color-danger{
    color:#e6294b;
}
.btn-add{
    padding: 10px 10px 10px 10px;
    font-size:16px;
}
.style-carac{
    background:#fff;
    padding:10px 10px 6px 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.171);
    margin-top:20px;
}
.style-carac-textaera{
    background:#fff;
    padding:5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.171);
}
.style-carac-type{
    border: 1px solid #eeeeee;
    background: #eeeeee;
    padding:10px 10px 6px 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.171);
    margin-top:20px;
}
.label-detail-title{
    font-weight: bold;
}

:root {
    --bibiip-yellow: #ffc316;
    --bibiip-yellow-dark: #f4ad00;
    --bibiip-yellow-soft: #ffe596;
    --bibiip-brown: #5a2b16;
    --bibiip-brown-soft: #74401f;
    --bibiip-brown-deep: #432012;
    --bibiip-ink: #201713;
    --bibiip-muted: #8f8b86;
    --bibiip-surface: #ffffff;
    --bibiip-soft: #f5f3f1;
    --bibiip-field: #eeeeee;
    --bibiip-sidebar-width: 252px;
    --bibiip-sidebar-mini-width: 70px;
    --bibiip-sidebar-active: var(--bibiip-brown);
    --bibiip-sidebar-accent: var(--bibiip-yellow);
    --bibiip-sidebar-accent-ink: var(--bibiip-brown-deep);
    --bibiip-sidebar-footer-height: 48px;

    /* modern design tokens */
    --bibiip-radius-sm: 12px;
    --bibiip-radius: 16px;
    --bibiip-radius-lg: 22px;
    --bibiip-border: rgba(90, 43, 22, 0.08);
    --bibiip-shadow-xs: 0 2px 8px rgba(32, 23, 19, 0.05);
    --bibiip-shadow-sm: 0 6px 18px rgba(32, 23, 19, 0.06);
    --bibiip-shadow: 0 14px 34px rgba(32, 23, 19, 0.08);
    --bibiip-shadow-lg: 0 22px 50px rgba(32, 23, 19, 0.12);
    --bibiip-ring: 0 0 0 3px rgba(255, 195, 22, 0.22);
    --bibiip-transition: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    /* accent palette for stat cards */
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --accent-teal: #14b8a6;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(90, 43, 22, 0.28) transparent;
}

body,
html body {
    background: #fbfaf9;
    color: var(--bibiip-ink);
    font-family: "Cairo", "Nunito", "Segoe UI", "Tahoma", sans-serif;
}

/* Cairo covers Arabic + Latin, so it stays the single font everywhere —
   this is what makes the RTL admin panel feel professional instead of
   falling back to the system's default Tahoma. */
h1, h2, h3, h4, h5, h6,
.btn, button, input, select, textarea, .form-control,
.card-title, .box-title, label, .control-label,
.sidebar-nav, .dropdown-menu, table, .badge, .label {
    font-family: "Cairo", "Nunito", "Segoe UI", "Tahoma", sans-serif;
}

a,
a:hover,
a:focus {
    color: var(--bibiip-brown);
}

.topbar {
    background: linear-gradient(180deg, #ffc722 0%, #ffbf10 100%);
    box-shadow: 0 14px 30px rgba(90, 43, 22, 0.12);
    border-bottom: 1px solid rgba(90, 43, 22, 0.08);
    transition: margin 0.2s ease, width 0.2s ease;
}

/* the sidebar now spans the full page height, so the topbar sits beside
   it (not across it) once the sidebar is in its normal desktop layout */
@media (min-width: 768px) {
    .topbar {
        margin-inline-start: var(--bibiip-sidebar-width);
        width: calc(100% - var(--bibiip-sidebar-width));
    }

    .mini-sidebar .topbar {
        margin-inline-start: var(--bibiip-sidebar-mini-width);
        width: calc(100% - var(--bibiip-sidebar-mini-width));
    }
}

.topbar .top-navbar,
.topbar .top-navbar .navbar-header {
    background: var(--bibiip-yellow);
}

.topbar .top-navbar {
    min-height: 64px;
    padding: 0 18px !important;
}

.header-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(96px, 1fr) auto minmax(220px, 1fr);
    grid-template-areas: "start center end";
    align-items: center;
    width: 100%;
    min-height: 64px;
    gap: 16px;
}

.header-start,
.header-end {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.header-start {
    grid-area: start;
    justify-content: flex-start;
}

.header-center {
    grid-area: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    justify-self: center;
}

.header-end {
    grid-area: end;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
    max-width: none;
    gap: 10px;
}

.header-center .navbar-brand {
    margin: 0;
    pointer-events: auto;
}

.header-center .navbar-brand b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(90, 43, 22, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.header-center .light-logo {
    display: none !important;
}

.header-menu-btn {
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(90, 43, 22, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-start .nav-toggler,
.header-start .sidebartoggler {
    margin: 0 !important;
}

.header-start .nav-toggler {
    display: none !important;
}

.header-start .sidebartoggler {
    display: inline-flex !important;
}

.header-menu-btn:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 46px;
    min-width: 46px;
    max-width: 220px;
    flex: 0 0 46px;
    padding: 0 10px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(90, 43, 22, 0.1);
    box-shadow: 0 8px 18px rgba(90, 43, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    overflow: hidden;
    transition: width 0.22s ease, flex-basis 0.22s ease, padding 0.22s ease, background-color 0.22s ease;
}

.header-search.is-open {
    width: 228px;
    flex-basis: 228px;
    padding: 0 14px;
    justify-content: flex-start;
}

.header-search-toggle {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: rgba(90, 43, 22, 0.58);
    border-radius: 50%;
    flex: 0 0 28px;
}

.header-search i {
    color: rgba(90, 43, 22, 0.58);
    font-size: 14px;
    line-height: 1;
}

.header-search-input {
    width: 100%;
    opacity: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--bibiip-brown) !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.header-search.is-open .header-search-input {
    opacity: 1;
    pointer-events: auto;
}

.header-search-input::placeholder {
    color: rgba(90, 43, 22, 0.48);
}

.header-search-input:focus {
    box-shadow: none !important;
}

.header-profile-nav {
    margin-left: 0 !important;
    display: flex;
    justify-content: flex-end;
    width: auto;
}

.header-profile-link {
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 0 0 0 8px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(90, 43, 22, 0.06);
}

.header-profile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.05;
}

.header-profile-name {
    color: var(--bibiip-brown);
    font-size: 13px;
    font-weight: 800;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-profile-role {
    color: rgba(90, 43, 22, 0.62);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.header-profile-link .profile-pic,
.profile-pic {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(90, 43, 22, 0.12);
}

.profile-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #ffe596 100%) !important;
    color: var(--bibiip-brown);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 2px solid rgba(90, 43, 22, 0.08);
}

.dropdown-profile-initial {
    width: 45px;
    height: 45px;
    font-size: 17px;
}

.dropdown-currency-item {
    min-width: 220px;
}

.dropdown-language-item {
    min-width: 220px;
}

.dropdown-currency-label {
    color: var(--bibiip-brown);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dropdown-language-label {
    color: var(--bibiip-brown);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--bibiip-soft);
    color: var(--bibiip-brown);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid rgba(90, 43, 22, 0.08);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.language-chip:hover {
    transform: translateY(-1px);
    color: var(--bibiip-brown);
    background: rgba(255, 229, 150, 0.65);
}

.language-chip.is-active {
    background: linear-gradient(135deg, var(--bibiip-yellow) 0%, #ffd34e 100%);
    color: var(--bibiip-brown-deep);
    box-shadow: 0 10px 18px rgba(217, 160, 23, 0.18);
}

.dropdown-currency-item .form-control {
    height: 40px;
    background: var(--bibiip-soft) !important;
    color: var(--bibiip-brown) !important;
}

.topbar .top-navbar .navbar-header .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-navbar .navbar-header .navbar-brand b {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.topbar .top-navbar .navbar-header .navbar-brand img,
#logo_web {
    width: 54px !important;
    max-height: 54px;
    object-fit: contain;
    border-radius: 10px;
}

.topbar .top-navbar .navbar-nav > .nav-item > .nav-link,
.topbar .top-navbar .navbar-nav > .nav-item > .nav-link i {
    color: var(--bibiip-brown) !important;
}

/* ============================================================
   Sidebar — "cars" style: deep purple gradient, pill nav items,
   rounded icon badges, grouped accordions with tree connectors,
   and a collapse-to-icons toggle.
   Logical (inline/block) properties are used throughout so the
   whole thing mirrors automatically for RTL via the page's
   dir="rtl" attribute — no separate .is-rtl overrides needed.
   ============================================================ */

.left-sidebar,
.fix-sidebar .left-sidebar {
    width: var(--bibiip-sidebar-width);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(165deg, #1c120a 0%, #432012 35%, #5a2b16 65%, #74401f 100%);
    box-shadow: 18px 0 34px rgba(32, 23, 19, 0.22);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
}

body.is-rtl .left-sidebar,
body.is-rtl .fix-sidebar .left-sidebar {
    box-shadow: -18px 0 34px rgba(32, 23, 19, 0.22);
}

.scroll-sidebar,
.sidebar-nav {
    background: transparent;
}

.left-sidebar {
    /* the sidebar now runs the full height of the page instead of
       stopping below the topbar — see the .topbar rules further down,
       which shrink the header to sit beside it instead of on top of it */
    padding-top: 0 !important;
    overflow: hidden;
}

/* slimScroll (jquery.slimscroll.js) wraps the real .scroll-sidebar element in
   a .slimScrollDiv it creates at runtime, and writes an inline height:100%
   onto both. Rather than fight that with flex-grow (which slimScroll's
   inline styles make unreliable), we give the OUTER wrapper an explicit
   height that reserves space for the footer toggle button below it; the
   inner .scroll-sidebar's inline height:100% then simply resolves against
   that fixed value, same as the sidebar's original calc()-based sizing. */
.scroll-sidebar {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    scrollbar-width: thin;
}

.scroll-sidebar::-webkit-scrollbar {
    width: 6px;
}

.scroll-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.scroll-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38);
}

.left-sidebar .slimScrollDiv {
    overflow: visible !important;
    height: calc(100% - var(--bibiip-sidebar-footer-height)) !important;
}

.left-sidebar .slimScrollBar {
    width: 4px !important;
    inset-inline-end: 3px !important;
    inset-inline-start: auto !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;
    opacity: 0.55 !important;
    box-shadow: none !important;
}

.left-sidebar .slimScrollBar:hover {
    opacity: 0.9 !important;
}

.left-sidebar .slimScrollRail {
    display: none !important;
    width: 0 !important;
    opacity: 0 !important;
}

/* ---- nav shell ---- */

.sidebar-nav {
    overflow: visible !important;
    height: auto !important;
    padding: 14px 12px 18px;
    flex: 1;
}

.sidebar-nav > ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---- brand mark at the top of the sidebar ---- */

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px 18px;
}

.sidebar-brand-logo {
    height: 44px;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(32, 23, 19, 0.28);
}

.mini-sidebar .sidebar-brand {
    padding: 4px 8px 14px;
}

.mini-sidebar .sidebar-brand-logo {
    height: 32px;
}

/* ---- top-level pill items (Home, Map, Packages, Banners, Admins, Roles,
   Occasions, Users, Services, Rides, Vehicle Types, Offers, Coupons) ---- */

.sidebar-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    margin: 0;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.08);
    border-left: 0 !important;
    border-right: 0 !important;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-nav > ul > li.active > a {
    border-left: 0 !important;
    border-right: 0 !important;
}

.sidebar-nav ul li a,
.sidebar-nav ul li a i {
    color: rgba(255, 255, 255, 0.88) !important;
}

.sidebar-nav > ul > li > a i {
    width: 30px;
    height: 30px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    font-size: 16px;
    transition: background-color var(--bibiip-transition), color var(--bibiip-transition), transform var(--bibiip-transition);
}

.sidebar-nav > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* group headers (Drivers / Documents / Settings) keep the translucent pill —
   they toggle a submenu rather than navigate, so they never go "active" */
.sidebar-nav > ul > li > a.has-arrow {
    border-radius: var(--bibiip-radius);
}

.sidebar-nav > ul > li > a.has-arrow:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* leaf items (real links) light up solid white when active, like the
   "cars" Home pill */
.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active,
.sidebar-nav > ul > li.active > a,
.sidebar-nav > ul > li > a.active {
    background: #ffffff !important;
    color: var(--bibiip-sidebar-active) !important;
    box-shadow: 0 8px 20px rgba(32, 23, 19, 0.28);
}

.sidebar-nav > ul > li > a.has-arrow:hover,
.sidebar-nav > ul > li.active > a.has-arrow,
.sidebar-nav > ul > li > a.has-arrow.active {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    box-shadow: none;
}

.sidebar-nav ul li a:hover i,
.sidebar-nav ul li a.active i,
.sidebar-nav > ul > li.active > a i {
    color: var(--bibiip-sidebar-active) !important;
    background: rgba(90, 43, 22, 0.14);
    transform: none;
}

.sidebar-nav > ul > li > a.has-arrow:hover i,
.sidebar-nav > ul > li.active > a.has-arrow i,
.sidebar-nav > ul > li > a.has-arrow.active i {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
}

/* chevron on group headers — reuse the template's existing border-arrow,
   just recolour + reposition it to sit at the end of the pill */
.sidebar-nav .has-arrow {
    position: relative;
    padding-inline-end: 34px !important;
}

.sidebar-nav .has-arrow::after {
    inset-inline-end: 16px;
    border-color: rgba(255, 255, 255, 0.75);
}

/* ---- section labels (nav-subtitle) ---- */

.sidebar-nav > ul > li.nav-subtitle {
    margin: 16px 6px 6px;
}

.sidebar-nav > ul > li.nav-subtitle .nav-subtitle-span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.6) !important;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

/* ---- grouped submenus (Drivers / Documents / Settings) ---- */

.sidebar-nav ul li ul {
    position: relative;
    margin: 4px 0 6px;
    padding: 2px 0 2px 0;
    padding-inline-start: 26px;
    flex-direction: column;
    gap: 5px;
    /* display is intentionally NOT set here — the metisMenu plugin toggles
       the "in" class to open a group, and style.css defines
       .collapse.in { display: block } / bootstrap's .collapse { display: none }
       for the closed state. We only switch that block to flex below, once
       open, so a closed group actually stays hidden instead of always
       rendering its children. */
}

.sidebar-nav ul li ul.in {
    display: flex;
}

/* the connecting vertical line */
.sidebar-nav ul li ul::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 16px;
    inset-inline-start: 13px;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.sidebar-nav ul li ul li {
    position: relative;
}

/* elbow connector for each child row */
.sidebar-nav ul li ul li::before {
    content: "";
    position: absolute;
    inset-inline-start: -13px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-end-start-radius: 10px;
}

.sidebar-nav ul li ul li a {
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82) !important;
    background: transparent;
    border-left: 0 !important;
    border-right: 0 !important;
}

.sidebar-nav ul li ul li a::before,
.sidebar-nav ul li ul li a::after {
    content: none !important;
}

.sidebar-nav ul li ul li a i {
    width: 24px;
    height: 24px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 8px;
    font-size: 12.5px;
    background: var(--bibiip-sidebar-accent) !important;
    color: var(--bibiip-sidebar-accent-ink) !important;
}

.sidebar-nav ul li ul li a:hover i,
.sidebar-nav ul li ul li a.active i {
    background: var(--bibiip-sidebar-accent) !important;
    color: var(--bibiip-sidebar-accent-ink) !important;
    transform: none;
}

/* ---- collapse-to-icons footer button (mirrors the "cars" toggle) ---- */

.sidebar-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
    height: var(--bibiip-sidebar-footer-height);
    padding: 0 16px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bibiip-brown-deep);
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease;
}

.sidebar-collapse-btn:hover,
.sidebar-collapse-btn:focus {
    color: #ffffff;
    outline: none;
}

.sidebar-collapse-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

body.mini-sidebar .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

/* ---- collapsed / icon-only state ---- */

@media (min-width: 768px) {
    .mini-sidebar .left-sidebar {
        width: var(--bibiip-sidebar-mini-width);
    }

    .mini-sidebar .sidebar-nav #sidebarnav > li > a {
        width: var(--bibiip-sidebar-mini-width);
        padding-inline: 0;
        justify-content: center;
    }

    .mini-sidebar .sidebar-nav #sidebarnav > li:hover > a {
        width: calc(var(--bibiip-sidebar-width) + 10px);
        justify-content: flex-start;
        padding-inline-start: 14px;
    }

    /* icon-only rail: labels, section chips and the group chevron only
       reappear on hover (the flyout above widens the row back out) */
    .mini-sidebar .sidebar-nav .hide-menu,
    .mini-sidebar .sidebar-nav > ul > li.nav-subtitle .nav-subtitle-span,
    .mini-sidebar .sidebar-nav .has-arrow::after {
        display: none;
    }

    .mini-sidebar .sidebar-nav #sidebarnav > li:hover .hide-menu {
        display: inline;
    }

    .mini-sidebar .sidebar-nav > ul > li.nav-subtitle {
        margin: 10px 0;
        height: 1px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.1);
    }

    /* a collapsed group can't usefully show a flyout submenu, so keep it
       closed until the sidebar is expanded again */
    .mini-sidebar .sidebar-nav ul li ul.in {
        display: none;
    }
}

@media (max-width: 767px) {
    .left-sidebar,
    .fix-sidebar .left-sidebar {
        width: min(var(--bibiip-sidebar-width), 82vw);
    }

    .mini-sidebar .left-sidebar,
    .mini-sidebar .sidebar-footer {
        inset-inline-start: calc(min(var(--bibiip-sidebar-width), 82vw) * -1);
    }

    .mini-sidebar.show-sidebar .left-sidebar,
    .mini-sidebar.show-sidebar .sidebar-footer {
        inset-inline-start: 0;
    }
}
@media (min-width: 1024px) {
    body.is-rtl .page-wrapper {
        padding-left: 0;
        padding-right: var(--bibiip-sidebar-width);
    }

    body.is-rtl .footer {
        left: 0;
        right: var(--bibiip-sidebar-width);
    }
}

@media (min-width: 768px) {
    body.is-rtl .navbar-header {
        right: 0;
        left: auto;
    }

    body.is-rtl.mini-sidebar .page-wrapper {
        padding-left: 0;
        padding-right: var(--bibiip-sidebar-mini-width);
    }

    body.is-rtl.mini-sidebar .footer {
        left: 0;
        right: var(--bibiip-sidebar-mini-width);
    }
}

@media (max-width: 767px) {
    body.is-rtl.mini-sidebar .left-sidebar,
    body.is-rtl.mini-sidebar .sidebar-footer {
        left: auto;
        right: calc(min(var(--bibiip-sidebar-width), 82vw) * -1);
    }

    body.is-rtl.mini-sidebar.show-sidebar .left-sidebar,
    body.is-rtl.mini-sidebar.show-sidebar .sidebar-footer {
        left: auto;
        right: 0;
    }
}

@media (max-width: 991px) {
    .header-shell {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }

    .header-end,
    .header-start {
        width: auto;
    }
}

body.is-rtl .business-analytics .card-box {
    padding: 20px 20px 20px 68px;
    text-align: right;
}

body.is-rtl .business-analytics .card-box h5,
body.is-rtl .business-analytics .card-box h2,
body.is-rtl .order_stats_header h4 {
    text-align: right;
}

body.is-rtl .business-analytics .card-box i {
    left: 16px !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: 16px !important;
}

body.is-rtl .business-analytics .card-body .row {
    justify-content: flex-start;
}

.card-header,
.modal-header {
    background: var(--bibiip-surface);
    border-bottom: 1px solid #f0ece8;
    color: var(--bibiip-ink);
}

.card-title,
.box-title,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bibiip-ink);
    font-weight: 700;
}

.btn,
button,
input,
select,
textarea,
.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border-radius: var(--bibiip-radius-sm);
}

.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.bootstrap-tagsinput,
.chosen-container-single .chosen-single {
    background-color: var(--bibiip-field) !important;
    border: 1px solid transparent !important;
    color: var(--bibiip-ink);
    box-shadow: none !important;
}

.form-control:hover,
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--multiple:hover,
.chosen-container-single .chosen-single:hover,
.bootstrap-tagsinput:hover {
    border-color: rgba(90, 43, 22, 0.16) !important;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--bibiip-yellow) !important;
    box-shadow: var(--bibiip-ring) !important;
}

.form-control::placeholder {
    color: var(--bibiip-muted);
    opacity: 1;
}

.form-control:disabled,
.form-control[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary,
.btn-info,
.btn-success,
.btn-warning,
.btn-add,
.dt-button,
button[type="submit"] {
    background: var(--bibiip-yellow) !important;
    border-color: var(--bibiip-yellow) !important;
    color: #111111 !important;
    box-shadow: 0 10px 22px rgba(255, 195, 22, 0.28);
}

.btn-primary:hover,
.btn-info:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-add:hover,
.dt-button:hover,
button[type="submit"]:hover {
    background: var(--bibiip-yellow-dark) !important;
    border-color: var(--bibiip-yellow-dark) !important;
    color: #111111 !important;
}

.btn-danger {
    border-color: #d94d3f;
    background: #d94d3f;
}

.btn-secondary,
.btn-default {
    background: var(--bibiip-soft);
    border-color: var(--bibiip-soft);
    color: var(--bibiip-brown);
}

.label-primary,
.badge-primary,
.bg-primary,
.progress-bar,
.pagination .page-item.active .page-link,
.pagination > .active > a,
.pagination > .active > span {
    background-color: var(--bibiip-yellow) !important;
    border-color: var(--bibiip-yellow) !important;
    color: #111111 !important;
}

.text-primary,
.color-info,
.color-warning,
.color-primary {
    color: var(--bibiip-brown) !important;
}

.table thead th,
table.dataTable thead th {
    background: #fff8df;
    color: var(--bibiip-brown);
    border-bottom: 1px solid #f1dfac !important;
}

.table td,
.table th,
table.dataTable.no-footer {
    border-color: #f0ece8 !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--bibiip-field);
    border: 1px solid transparent;
    border-radius: var(--bibiip-radius-sm);
    padding: 8px 14px;
    height: 40px;
    transition: border-color var(--bibiip-transition), box-shadow var(--bibiip-transition);
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--bibiip-yellow);
    box-shadow: var(--bibiip-ring);
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px !important;
    margin: 0 2px;
    border: 1px solid transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--bibiip-yellow) !important;
    border-color: var(--bibiip-yellow) !important;
    color: #111 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--bibiip-soft) !important;
    color: var(--bibiip-brown) !important;
}

.profile-pic {
    border: 2px solid rgba(90, 43, 22, 0.16);
}

.dropdown-user li a:hover,
.dropdown-menu .dropdown-item:hover {
    background: #fff8df;
    color: var(--bibiip-brown) !important;
}

.footer {
    background: #fbfaf9;
    color: var(--bibiip-muted);
    border-top: 1px solid #f0ece8;
}

@media (max-width: 767px) {
    .topbar .top-navbar {
        padding: 0 12px !important;
    }

    .header-shell {
        gap: 10px;
    }

    .header-center {
        position: static;
        transform: none;
        flex: 1 1 auto;
        justify-content: center;
    }

    .header-start .nav-toggler {
        display: inline-flex !important;
    }

    .header-start .sidebartoggler {
        display: none !important;
    }

    .header-search {
        min-width: 42px;
        width: 42px;
        flex-basis: 42px;
        padding: 0;
        justify-content: center;
    }

    .header-search-input {
        display: none;
    }

    .header-profile-meta {
        display: none;
    }

    .header-end {
        gap: 8px;
    }

    .topbar .top-navbar .navbar-header {
        min-width: 64px;
    }

    .topbar .top-navbar .navbar-brand img,
    #logo_web {
        width: 44px !important;
        max-height: 44px;
    }

    .header-profile-link {
        padding-left: 0 !important;
        background: transparent;
        border: 0;
    }
}

.login-register {
    background: var(--bibiip-yellow) !important;
    min-height: 100vh;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-logo {
    margin-bottom: 18px;
}

.login-logo a {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
}

.login-logo img.dark-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
}

.login-box.card {
    width: min(430px, 100%);
    max-width: 430px;
    margin: 0 auto;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(90, 43, 22, 0.16);
}

.login-box .card-body {
    padding: 32px 28px;
}

.login-box .box-title {
    color: var(--bibiip-ink);
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.login-box .form-material .form-control {
    background: var(--bibiip-field) !important;
    border: 1px solid transparent !important;
    border-radius: var(--bibiip-radius-sm) !important;
    padding: 0 18px;
}

.login-box .btn-primary {
    width: 100%;
    border-radius: var(--bibiip-radius-sm);
    font-weight: 700;
}

.form-group.default-admin {
    background: #fff8df;
    border: 1px solid rgba(255, 195, 22, 0.45);
    box-shadow: none !important;
    color: var(--bibiip-brown) !important;
}

/* ============================================================
   MODERN UI REFRESH — professional & responsive enhancements
   ============================================================ */

/* Smooth base typography */
body,
html body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

.container-fluid {
    padding: 24px 26px 40px;
}

/* ---------- Section headers ---------- */
.order_stats_header {
    margin-bottom: 8px !important;
}

.order_stats_header h4 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-inline-start: 16px;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--bibiip-ink) !important;
}

.order_stats_header h4::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--bibiip-yellow) 0%, var(--bibiip-yellow-dark) 100%);
}

/* ---------- Modern stat cards ---------- */
.business-analytics {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.business-analytics > .card-body {
    padding: 0 !important;
}

.business-analytics .card-box {
    background: var(--bibiip-surface);
    border: 1px solid var(--bibiip-border);
    border-radius: var(--bibiip-radius) !important;
    padding: 22px 24px 22px 96px;
    box-shadow: var(--bibiip-shadow-xs);
    transition: transform var(--bibiip-transition), box-shadow var(--bibiip-transition), border-color var(--bibiip-transition);
    overflow: hidden;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.is-rtl .business-analytics .card-box {
    padding: 22px 96px 22px 24px;
}

.business-analytics .card-box::after {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--bibiip-yellow) 0%, var(--bibiip-yellow-dark) 100%);
    opacity: 0;
    transition: opacity var(--bibiip-transition);
}

.business-analytics .card-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--bibiip-shadow);
    border-color: rgba(255, 195, 22, 0.5);
}

.business-analytics .card-box:hover::after {
    opacity: 1;
}

.business-analytics .card-box h5 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--bibiip-muted) !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.business-analytics .card-box h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--bibiip-ink) !important;
    line-height: 1.1;
    margin: 0;
}

/* Icon chip — modern gradient tiles with color variety */
.business-analytics .card-box i {
    inset-block-start: 50%;
    inset-inline-end: auto;
    inset-inline-start: 24px;
    transform: translateY(-50%);
    width: 52px !important;
    height: 52px !important;
    line-height: 52px !important;
    border-radius: 15px !important;
    font-size: 24px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--bibiip-yellow) 0%, var(--bibiip-yellow-dark) 100%) !important;
    box-shadow: 0 10px 20px rgba(244, 173, 0, 0.28);
    transition: transform var(--bibiip-transition);
}

body.is-rtl .business-analytics .card-box i {
    inset-inline-start: 24px !important;
    inset-inline-end: auto !important;
}

.business-analytics .card-box:hover i {
    transform: translateY(-50%) scale(1.08) rotate(-4deg);
}

/* Color variety per card position */
.business-analytics_list > div:nth-child(6n+1) .card-box i {
    background: linear-gradient(135deg, #ffd34e 0%, #f4ad00 100%) !important;
    box-shadow: 0 10px 20px rgba(244, 173, 0, 0.3);
}
.business-analytics_list > div:nth-child(6n+2) .card-box i {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.28);
}
.business-analytics_list > div:nth-child(6n+3) .card-box i {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%) !important;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.28);
}
.business-analytics_list > div:nth-child(6n+4) .card-box i {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%) !important;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.28);
}
.business-analytics_list > div:nth-child(6n+5) .card-box i {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.26);
}
.business-analytics_list > div:nth-child(6n+6) .card-box i {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%) !important;
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.26);
}

/* ---------- Card headers / titles ---------- */
.card-header {
    padding: 18px 22px;
    background: transparent !important;
    border-bottom: 1px solid #f2ede9 !important;
}

.card-header .card-title,
.card-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.card-body {
    padding: 22px;
}

/* ---------- Modern tables ---------- */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th,
table.dataTable thead th {
    background: #fff8df !important;
    color: var(--bibiip-brown) !important;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 14px 16px !important;
    border: 0 !important;
}

.table tbody td {
    padding: 14px 16px !important;
    vertical-align: middle;
    border-top: 1px solid #f4efeb !important;
}

.table tbody tr {
    transition: background-color var(--bibiip-transition);
}

.table.table-hover tbody tr:hover,
table.dataTable tbody tr:hover {
    background: #fffbe9 !important;
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 700;
    padding: 9px 20px;
    transition: transform var(--bibiip-transition), box-shadow var(--bibiip-transition), background-color var(--bibiip-transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    vertical-align: middle;
}

/* small icon action buttons in tables — color-coded so actions are easy to tell apart */
.table .btn-sm,
.table a.btn.btn-sm {
    /* مربع 34px لزراير الأيقونة، ولو الزرار فيه كلام بيكبر على قده بدل ما الكلام يطلع برا ويركب على اللي جنبه */
    width: auto;
    min-width: 34px;
    height: 34px;
    padding: 0 8px !important;
    gap: 6px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px !important;
    box-shadow: none !important;
    border: 0 !important;
    margin: 2px;
    transition: transform var(--bibiip-transition), filter var(--bibiip-transition);
}

.table .btn-sm i {
    font-size: 13px;
}

.table .btn-sm:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

.table .btn-info {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #3b82f6 !important;
}

.table .btn-warning {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #b45309 !important;
}

.table .btn-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
}

.table .btn-success {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
}

.table .btn-secondary,
.table .btn-default {
    background: rgba(90, 43, 22, 0.08) !important;
    color: var(--bibiip-brown) !important;
}

/* the icon-only squeeze above (fixed 34x34 box, no padding) is meant for
   single-glyph row actions — these two buttons carry real text labels
   (Approve / Disapprove), so give them their natural pill shape back.
   Selector matches (and slightly beats) ".table a.btn.btn-sm" above so it
   actually wins the cascade instead of being silently overridden by it. */
.table a.btn.btn-sm.verify-doc,
.table .doc-actions-cell .btn.btn-sm {
    width: auto !important;
    height: auto !important;
    padding: 7px 16px !important;
    border-radius: 999px !important;
    font-size: 12.5px;
    white-space: nowrap;
    display: inline-flex;
}

.table .btn-primary {
    background: rgba(244, 173, 0, 0.16) !important;
    color: var(--bibiip-brown-deep) !important;
}

/* Row images — consistent thumbnail treatment */
.table img {
    border-radius: 10px;
    object-fit: cover;
}

/* ---------- Badges / labels ---------- */
.label,
.badge {
    border-radius: 999px;
    padding: 5px 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ---------- Forms ---------- */
.form-control {
    height: 44px;
    padding: 0 16px;
    transition: box-shadow var(--bibiip-transition), background-color var(--bibiip-transition), border-color var(--bibiip-transition);
}

textarea.form-control {
    height: auto;
    padding: 12px 16px;
    line-height: 1.5;
}

/* Labels — consistent weight, size and spacing everywhere */
label,
.control-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--bibiip-brown);
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

fieldset legend {
    font-size: 15px;
    font-weight: 800;
    color: var(--bibiip-brown);
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bibiip-border);
}

/* Native <select> — custom chevron instead of the default browser arrow */
select.form-control:not([multiple]) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a2b16' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 13px !important;
    padding-right: 42px;
}

body.is-rtl select.form-control:not([multiple]) {
    background-position: left 16px center !important;
    padding-right: 16px;
    padding-left: 42px;
}

select.form-control[multiple] {
    height: auto;
    padding: 10px;
}

/* select2 — unified height, alignment and arrow to match native selects */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 44px !important;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.3 !important;
    color: var(--bibiip-ink) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    width: 34px !important;
    right: 6px !important;
}

body.is-rtl .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto !important;
    left: 6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--bibiip-brown) transparent transparent transparent !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 44px !important;
    padding: 5px 10px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--bibiip-yellow-soft) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 3px 10px !important;
    margin: 0 !important;
    color: var(--bibiip-brown-deep) !important;
    font-weight: 700;
    font-size: 12px;
}

.select2-dropdown {
    border-radius: var(--bibiip-radius-sm) !important;
    border-color: var(--bibiip-border) !important;
    box-shadow: var(--bibiip-shadow) !important;
    overflow: hidden;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 10px !important;
    border: 1px solid var(--bibiip-border) !important;
    padding: 8px 12px !important;
    height: auto !important;
}

.select2-results__option--highlighted[aria-selected] {
    background: var(--bibiip-yellow) !important;
    color: #111 !important;
}

/* chosen — align sizing with the rest of the form fields */
.chosen-container-single .chosen-single {
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 16px !important;
    border-radius: var(--bibiip-radius-sm) !important;
    box-shadow: none !important;
}

.chosen-container-single .chosen-single div b {
    background-position: 0 8px;
}

.chosen-container .chosen-drop {
    border-radius: var(--bibiip-radius-sm) !important;
    box-shadow: var(--bibiip-shadow) !important;
    border-color: var(--bibiip-border) !important;
    overflow: hidden;
}

/* tags input */
.bootstrap-tagsinput {
    min-height: 44px !important;
    padding: 7px 10px !important;
    border-radius: var(--bibiip-radius-sm) !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.bootstrap-tagsinput .tag {
    background: var(--bibiip-yellow-soft) !important;
    color: var(--bibiip-brown-deep) !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-weight: 700;
    font-size: 12px;
}

/* File inputs — a modern branded "choose file" control (no markup changes needed) */
input[type="file"] {
    background: var(--bibiip-field) !important;
    border: 1px dashed rgba(90, 43, 22, 0.22) !important;
    height: auto !important;
    min-height: 44px;
    padding: 8px 14px !important;
    display: flex;
    align-items: center;
    color: var(--bibiip-muted);
    font-size: 13px;
    cursor: pointer;
    transition: border-color var(--bibiip-transition), background-color var(--bibiip-transition);
}

input[type="file"]:hover {
    border-color: rgba(255, 195, 22, 0.6) !important;
    background: rgba(255, 195, 22, 0.06) !important;
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--bibiip-yellow) !important;
    box-shadow: var(--bibiip-ring) !important;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    margin-inline-end: 14px;
    padding: 8px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bibiip-yellow) 0%, var(--bibiip-yellow-dark) 100%);
    color: #111111;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform var(--bibiip-transition), box-shadow var(--bibiip-transition);
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(244, 173, 0, 0.28);
}

.placeholder_img_thumb {
    margin-top: 10px;
}

.placeholder_img_thumb img,
.placeholder_img_thumb .image-item img {
    border-radius: 10px;
    box-shadow: var(--bibiip-shadow-xs);
}

.placeholder_img_thumb .remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    margin-inline-start: 6px;
    cursor: pointer;
    vertical-align: top;
}

/* Checkboxes / radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--bibiip-yellow-dark);
    width: 17px;
    height: 17px;
    cursor: pointer;
    vertical-align: middle;
}

/* input-group — merge input + button into one cohesive field */
.input-group > .form-control {
    border-radius: var(--bibiip-radius-sm) 0 0 var(--bibiip-radius-sm) !important;
}

.input-group-append > .btn,
.input-group-append > .input-group-text {
    border-radius: 0 var(--bibiip-radius-sm) var(--bibiip-radius-sm) 0 !important;
}

.input-group-prepend > .btn,
.input-group-prepend > .input-group-text {
    border-radius: var(--bibiip-radius-sm) 0 0 var(--bibiip-radius-sm) !important;
}

.input-group-prepend + .form-control {
    border-radius: 0 var(--bibiip-radius-sm) var(--bibiip-radius-sm) 0 !important;
}

body.is-rtl .input-group > .form-control {
    border-radius: 0 var(--bibiip-radius-sm) var(--bibiip-radius-sm) 0 !important;
}

body.is-rtl .input-group-append > .btn,
body.is-rtl .input-group-append > .input-group-text {
    border-radius: var(--bibiip-radius-sm) 0 0 var(--bibiip-radius-sm) !important;
}

/* ---------- Sidebar polish ---------- */
/* (pill shape + icon-badge colors are fully handled in the sidebar block above.) */

/* Top progress bar shown on navigation (link click / form submit) */
#route-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--bibiip-yellow) 0%, var(--bibiip-yellow-dark) 100%);
    box-shadow: 0 0 8px rgba(244, 173, 0, 0.6);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
}

/* ---------- Scrollbar (webkit, content area) ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(90, 43, 22, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 43, 22, 0.38);
    background-clip: content-box;
}

/* ---------- Charts container tidy ---------- */
canvas {
    max-width: 100%;
}

/* ---------- Broken / missing image fallback ---------- */
img.is-img-fallback {
    object-fit: cover !important;
    background: var(--bibiip-soft) !important;
    border-radius: 10px;
    padding: 0 !important;
}

img.is-img-fallback.rounded-circle,
.rounded-circle img.is-img-fallback,
.profile-pic img.is-img-fallback {
    border-radius: 50% !important;
}

/* ============================================================
   RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 1199px) {
    .container-fluid {
        padding: 20px 20px 36px;
    }
}

@media (max-width: 991px) {
    .business-analytics .card-box h2 {
        font-size: 24px !important;
    }
    .business-analytics .card-box {
        padding: 20px 20px 20px 84px;
    }
    body.is-rtl .business-analytics .card-box {
        padding: 20px 84px 20px 20px;
    }
    .business-analytics .card-box i {
        width: 46px !important;
        height: 46px !important;
        line-height: 46px !important;
        font-size: 21px !important;
        inset-inline-start: 20px;
    }
}

@media (max-width: 767px) {
    .container-fluid {
        padding: 16px 14px 30px;
    }
    .order_stats_header h4 {
        font-size: 17px !important;
    }
    .business-analytics .card-box {
        min-height: 92px;
        padding: 18px 18px 18px 78px;
    }
    body.is-rtl .business-analytics .card-box {
        padding: 18px 78px 18px 18px;
    }
    .business-analytics .card-box h2 {
        font-size: 22px !important;
    }
    .business-analytics .card-box h5 {
        font-size: 12px !important;
    }
    .card-body {
        padding: 16px;
    }
    .table-responsive {
        border-radius: var(--bibiip-radius);
    }
    .table thead th,
    table.dataTable thead th {
        font-size: 11px;
        padding: 12px 12px !important;
    }
    .table tbody td {
        padding: 12px 12px !important;
    }
}

@media (max-width: 575px) {
    .business-analytics .card-box {
        min-height: 84px;
    }
    .business-analytics .card-box i {
        width: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
        font-size: 19px !important;
    }
    .btn {
        padding: 8px 16px;
    }
}


/* ===== قائمة الحساب في الهيدر على الموبايل (كانت بتخرج برّه الشاشة) ===== */
.header-profile-nav .dropdown-menu {
    max-width: calc(100vw - 24px);
}
.header-profile-nav .dw-user-box .u-text {
    min-width: 0;
}
.header-profile-nav .dw-user-box .u-text h4,
.header-profile-nav .dw-user-box .u-text p {
    overflow-wrap: anywhere;
}
.header-profile-nav .language-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
@media (max-width: 767.98px) {
    .header-profile-nav .dropdown-menu,
    [dir="rtl"] .header-profile-nav .dropdown-menu {
        position: fixed !important;
        top: var(--bibiip-header-bottom, 72px) !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none;
        margin-top: 6px;
        transform-origin: top center;
    }
    .topbar .header-profile-nav ul.dropdown-user {
        min-width: 0;
    }
}

/* الصفحات اللي فيها خرايط أو صفوف أعرض من الشاشة: مفيش scroll أفقي للصفحة نفسها على الموبايل */
@media (max-width: 767.98px) {
    .page-wrapper { overflow-x: hidden; }
}

/* ===== البحث على الموبايل (كان الحقل مخفي دايماً فالبحث مايشتغلش) ===== */
@media (max-width: 767.98px) {
    .header-search.is-open {
        position: fixed;
        top: calc(var(--bibiip-header-bottom, 72px) + 6px);
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        height: 46px;
        padding: 0 14px;
        justify-content: flex-start;
        z-index: 1090;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    .header-search.is-open .header-search-input {
        display: block;
        font-size: 16px; /* أقل من 16 بيخلي iPhone يعمل zoom */
    }
    .header-search.is-open .header-search-results {
        width: 100%;
        inset-inline-start: 0;
        top: calc(100% + 6px);
        max-height: 60vh;
    }
}

/* ============================================================
   Mobile drawer (≤767px): the sidebar opens BELOW the fixed topbar
   instead of starting at top:0 underneath it (which hid the first
   items), dims the page behind it, and drops the desktop-only bits
   (brand logo — already in the header — and the collapse button).
   --bibiip-topbar-h is kept in sync with the real header height by
   a small script in layouts/app.blade.php.
   ============================================================ */
.sidebar-backdrop {
    display: none;
}

@media (max-width: 767px) {
    .left-sidebar,
    .fix-sidebar .left-sidebar {
        top: var(--bibiip-topbar-h, 73px) !important;
        height: calc(100vh - var(--bibiip-topbar-h, 73px)) !important;
        height: calc(100dvh - var(--bibiip-topbar-h, 73px)) !important;
        width: min(300px, 84vw);
        z-index: 45;
        border-radius: 0 0 0 22px;
        transition: left 0.25s ease, right 0.25s ease, box-shadow 0.25s ease;
        box-shadow: none;
    }

    body.is-rtl .left-sidebar {
        border-radius: 0 0 0 22px;
    }

    body:not(.is-rtl) .left-sidebar {
        border-radius: 0 0 22px 0;
    }

    .mini-sidebar .left-sidebar {
        inset-inline-start: calc(min(300px, 84vw) * -1);
    }

    body.is-rtl.mini-sidebar .left-sidebar {
        right: calc(min(300px, 84vw) * -1);
    }

    body .fix-sidebar .left-sidebar,
    body.is-rtl .fix-sidebar .left-sidebar {
        box-shadow: none;
    }

    body.show-sidebar .fix-sidebar .left-sidebar,
    body.is-rtl.show-sidebar .fix-sidebar .left-sidebar {
        box-shadow: 0 18px 40px rgba(32, 23, 19, 0.35);
    }

    .left-sidebar .sidebar-brand,
    .left-sidebar .sidebar-collapse-btn {
        display: none !important;
    }

    .left-sidebar .slimScrollDiv,
    .left-sidebar .scroll-sidebar {
        height: 100% !important;
    }

    .left-sidebar .sidebar-nav {
        padding: 16px 12px 28px;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        top: var(--bibiip-topbar-h, 73px);
        z-index: 44;
        background: rgba(32, 23, 19, 0.45);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    body.show-sidebar .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    body.show-sidebar {
        overflow: hidden;
    }
}

/* ============================================================
   مكان القائمة الجانبية (إعدادات القائمة الجانبية في الداشبورد):
   body.sidebar-flip = القائمة في الجهة العكس لاتجاه اللغة (شمال في العربي / يمين في الإنجليزي).
   على الشاشات الكبيرة بس: في الموبايل القائمة بتفتح من جهة اللغة زي ما هي.
   ============================================================ */
@media (min-width: 768px) {
    html body.sidebar-flip .left-sidebar,
    html body.sidebar-flip .fix-sidebar .left-sidebar {
        inset-inline-start: auto;
        inset-inline-end: 0;
        border-inline-end: 0;
        border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
    }

    html[dir="ltr"] body.sidebar-flip .left-sidebar,
    html[dir="ltr"] body.sidebar-flip .fix-sidebar .left-sidebar {
        box-shadow: -18px 0 34px rgba(32, 23, 19, 0.22);
    }

    html[dir="rtl"] body.sidebar-flip .left-sidebar,
    html[dir="rtl"] body.sidebar-flip .fix-sidebar .left-sidebar {
        box-shadow: 18px 0 34px rgba(32, 23, 19, 0.22);
    }

    html body.sidebar-flip .topbar {
        margin-inline-start: 0;
        margin-inline-end: var(--bibiip-sidebar-width);
        width: calc(100% - var(--bibiip-sidebar-width));
    }

    html body.sidebar-flip.mini-sidebar .topbar {
        margin-inline-end: var(--bibiip-sidebar-mini-width);
        width: calc(100% - var(--bibiip-sidebar-mini-width));
    }

    /* القائمة المصغّرة: القائمة الفرعية بتفتح ناحية المحتوى */
    html[dir="ltr"] body.sidebar-flip.mini-sidebar .sidebar-nav #sidebarnav > li > ul {
        left: auto;
        right: var(--bibiip-sidebar-mini-width);
    }

    html[dir="rtl"] body.sidebar-flip.mini-sidebar .sidebar-nav #sidebarnav > li > ul {
        right: auto;
        left: var(--bibiip-sidebar-mini-width);
    }
}

@media (min-width: 1024px) {
    html body.sidebar-flip .page-wrapper {
        padding-left: 0;
        padding-right: 0;
        padding-inline-start: 0;
        padding-inline-end: var(--bibiip-sidebar-width);
    }

    html body.sidebar-flip .footer {
        inset-inline-start: 0;
        inset-inline-end: var(--bibiip-sidebar-width);
    }

    html body.sidebar-flip.mini-sidebar .page-wrapper {
        padding-left: 0;
        padding-right: 0;
        padding-inline-end: var(--bibiip-sidebar-mini-width);
    }

    html body.sidebar-flip.mini-sidebar .footer {
        inset-inline-start: 0;
        inset-inline-end: var(--bibiip-sidebar-mini-width);
    }
}
