/* =====================================================
   نظام إدارة التحويلات - الستايل المخصص v2
   Responsive · RTL · Sticky · Dark mode ready
   ===================================================== */

:root {
    /* هوية خضراء موحّدة مع تطبيق الجوال */
    --app-primary: #16a34a;
    --app-primary-dark: #15803d;
    --app-primary-rgb: 22, 163, 74;
    --app-sidebar-bg: #1f2937;
    --app-sidebar-hover: #111827;
    --app-sidebar-text: #d1d5db;
    --app-sidebar-active: #22c55e;
    --app-sidebar-width: 240px;
    --app-sidebar-width-collapsed: 70px;
    --app-navbar-bg: #14532d;
    --app-navbar-height: 58px;
    --app-body-bg: #f3f4f6;
    --app-card-bg: #ffffff;
    --app-card-border: #e5e7eb;
    --app-card-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --app-text: #111827;
    --app-text-muted: #6b7280;
    --app-content-max: 1500px;

    /* Bootstrap — أزرار وروابط متناسقة */
    --bs-primary: #16a34a;
    --bs-primary-rgb: 22, 163, 74;
    --bs-link-color: #15803d;
    --bs-link-hover-color: #166534;
}

/* =====================================================
   Dark mode (Bootstrap 5.3 [data-bs-theme="dark"])
   ===================================================== */
[data-bs-theme="dark"] {
    --app-body-bg: #0f172a;
    --app-card-bg: #1e293b;
    --app-card-border: #334155;
    --app-card-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    --app-text: #f1f5f9;
    --app-text-muted: #94a3b8;
    --app-sidebar-bg: #0b1220;
    --app-sidebar-hover: #1e293b;
    --bs-primary: #22c55e;
    --bs-primary-rgb: 34, 197, 94;
    --bs-link-color: #4ade80;
    --bs-link-hover-color: #86efac;
}

/* ===== Base ===== */
* { font-family: 'Cairo', 'Tahoma', 'Segoe UI', sans-serif; }
html, body { height: 100%; }

body.app-body {
    background-color: var(--app-body-bg);
    color: var(--app-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    transition: background-color .2s, color .2s;
    /* مساحة للشريط السفلي على كل العروض */
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

/* =====================================================
   Navbar — Sticky على كل الشاشات
   ===================================================== */
.app-navbar {
    background: linear-gradient(90deg, #14532d 0%, #166534 45%, #15803d 100%);
    padding: .55rem 1rem;
    min-height: var(--app-navbar-height);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

[data-bs-theme="dark"] .app-navbar {
    background: linear-gradient(90deg, #052e16 0%, #14532d 55%, #166534 100%);
    border-bottom: 1px solid #334155;
}

.app-navbar .navbar-brand {
    font-size: 1.05rem;
    color: #fff !important;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* اسم الشركة */
.navbar-company {
    color: rgba(255, 255, 255, .85);
    font-size: .88rem;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* أزرار navbar */
.navbar-icon-btn {
    background: rgba(255, 255, 255, .08);
    border: none;
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.navbar-icon-btn:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.navbar-icon-btn:focus { outline: 2px solid rgba(255, 255, 255, .4); }

/* =====================================================
   Layout
   ===================================================== */
.app-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.app-main {
    flex: 1 1 auto;
    padding: 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.app-main-inner {
    max-width: var(--app-content-max);
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 575.98px) {
    .app-main { padding: 1rem .75rem; }
}

/* =====================================================
   Sidebar
   ===================================================== */
.app-sidebar {
    width: var(--app-sidebar-width);
    background: var(--app-sidebar-bg);
    color: var(--app-sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width .25s ease;
}

@media (min-width: 992px) {
    .app-sidebar {
        position: sticky;
        top: var(--app-navbar-height);
        height: calc(100vh - var(--app-navbar-height));
        align-self: flex-start;
        overflow-y: auto;
    }

    /* وضع collapsed */
    body.sidebar-collapsed .app-sidebar { width: var(--app-sidebar-width-collapsed); }
    body.sidebar-collapsed .app-nav .nav-link span,
    body.sidebar-collapsed .app-nav .nav-section,
    body.sidebar-collapsed .app-sidebar-footer { display: none; }
    body.sidebar-collapsed .app-nav .nav-link {
        justify-content: center;
        padding: .75rem .5rem;
    }
    body.sidebar-collapsed .app-nav .nav-link i { font-size: 1.3rem; width: auto; }
}

.app-nav {
    padding: .5rem 0;
    flex: 1;
    list-style: none;
    margin: 0;
}

.app-nav .nav-section {
    padding: .85rem 1.25rem .3rem;
    font-size: .68rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.app-nav .nav-link {
    color: var(--app-sidebar-text);
    padding: .65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    border-radius: 0;
    font-size: .92rem;
    transition: background-color .15s, color .15s;
    border-right: 3px solid transparent;
    white-space: nowrap;
}
.app-nav .nav-link i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.app-nav .nav-link:hover {
    background-color: var(--app-sidebar-hover);
    color: #fff;
}
.app-nav .nav-link.active {
    background-color: rgba(34, 197, 94, .18);
    color: #fff;
    font-weight: 600;
    border-right-color: var(--app-sidebar-active);
}

/* Quick Transaction — رابط مميّز */
.app-nav .nav-link-quick {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff !important;
    margin: .25rem .75rem;
    border-radius: 10px;
    font-weight: 600;
    border-right: 0 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .25);
}
.app-nav .nav-link-quick:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateX(-2px);
}
.app-nav .nav-link-quick.active {
    background: linear-gradient(135deg, #d97706, #92400e);
}
.app-nav .nav-link-quick i { color: #fff; }
.nav-kbd {
    background: rgba(255, 255, 255, .25);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .7rem;
    margin-inline-start: auto;
    border: 1px solid rgba(255, 255, 255, .2);
}
body.sidebar-collapsed .app-nav .nav-link-quick {
    margin: .25rem .25rem;
}
body.sidebar-collapsed .nav-kbd { display: none; }

.app-sidebar-footer {
    padding: .9rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #9ca3af;
    text-align: center;
    font-size: .8rem;
}

/* sidebar (offcanvas mode on mobile) */
@media (max-width: 991.98px) {
    .app-sidebar {
        width: 280px;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1045;
        transform: translateX(100%);
        box-shadow: -4px 0 20px rgba(0, 0, 0, .25);
    }
    .app-sidebar.show { transform: translateX(0); }

    .app-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        z-index: 1044;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s;
    }
    .app-sidebar-backdrop.show {
        opacity: 1;
        pointer-events: all;
    }
}

/* close button داخل الـ sidebar للموبايل */
.sidebar-mobile-header {
    display: none;
    padding: .85rem 1rem;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    align-items: center;
    justify-content: space-between;
}
@media (max-width: 991.98px) {
    .sidebar-mobile-header { display: flex; }
}

/* =====================================================
   Footer
   ===================================================== */
.app-footer {
    background: var(--app-card-bg);
    border-top: 1px solid var(--app-card-border);
    color: var(--app-text-muted);
}

/* =====================================================
   Cards
   ===================================================== */
.card {
    background-color: var(--app-card-bg);
    border: 1px solid var(--app-card-border);
    box-shadow: var(--app-card-shadow);
    border-radius: .7rem;
    color: var(--app-text);
}
.card-header {
    background: var(--app-card-bg);
    border-bottom: 1px solid var(--app-card-border);
    font-weight: 600;
    color: var(--app-text);
}

/* =====================================================
   KPI Stat Cards
   ===================================================== */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    min-width: 0;
}
.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}
.stat-card .stat-body {
    min-width: 0;
    flex: 1;
}
.stat-card .stat-label {
    font-size: .82rem;
    color: var(--app-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-card .stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    color: var(--app-text);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.stat-card.primary .stat-icon { background: linear-gradient(135deg, #16a34a, #15803d); }
.stat-card.success .stat-icon { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card.warning .stat-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.danger  .stat-icon { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.stat-card.info    .stat-icon { background: linear-gradient(135deg, #06b6d4, #0e7490); }

/* =====================================================
   Tables — Sticky header + responsive minimums
   ===================================================== */
.table {
    color: var(--app-text);
    margin-bottom: 0;
}
.table > :not(caption) > * > * {
    padding: .78rem .75rem;
    vertical-align: middle;
    background-color: transparent;
    color: inherit;
}
.table thead th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: .85rem;
    border-bottom: 1px solid var(--app-card-border);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
[data-bs-theme="dark"] .table thead th { background: #0f172a; color: #cbd5e1; }
[data-bs-theme="dark"] .table > tbody > tr:hover > * { background-color: rgba(255,255,255,.04); }

/* الأرقام بصيغة monospace لا تنكسر */
.text-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    white-space: nowrap;
}

/* =====================================================
   Forms
   ===================================================== */
.form-label {
    font-weight: 600;
    font-size: .88rem;
    color: var(--app-text);
    margin-bottom: .35rem;
}
.required:after { content: " *"; color: #ef4444; }

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
    background-color: #0f172a;
    color: #f1f5f9;
    border-color: #334155;
}
[data-bs-theme="dark"] .form-control::placeholder { color: #64748b; }

/* =====================================================
   Login page
   ===================================================== */
.login-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(at 20% 20%, rgba(34, 197, 94, .35) 0, transparent 50%),
        radial-gradient(at 80% 60%, rgba(22, 163, 74, .28) 0, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #14532d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.login-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
.login-card {
    width: 100%;
    max-width: 440px;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
    background: #fff;
    position: relative;
    z-index: 1;
}
.login-card .login-header {
    background: linear-gradient(135deg, #166534, #16a34a);
    color: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
}
.login-card .login-header i { font-size: 2.6rem; }
.login-card .login-body { padding: 2rem 1.75rem; }

/* =====================================================
   Toast notifications (flash messages)
   ===================================================== */
.app-toasts {
    position: fixed;
    top: calc(var(--app-navbar-height) + 12px);
    left: 16px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: calc(100% - 32px);
    width: 380px;
}
.app-toast {
    background: #fff;
    color: #1f2937;
    border-radius: .65rem;
    padding: .85rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    animation: toast-in .25s ease;
    border-right: 4px solid #9ca3af;
}
.app-toast.success { border-right-color: #10b981; }
.app-toast.danger  { border-right-color: #ef4444; }
.app-toast.warning { border-right-color: #f59e0b; }
.app-toast.info    { border-right-color: #16a34a; }
.app-toast .toast-icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.app-toast.success .toast-icon { color: #10b981; }
.app-toast.danger  .toast-icon { color: #ef4444; }
.app-toast.warning .toast-icon { color: #f59e0b; }
.app-toast.info    .toast-icon { color: #16a34a; }
.app-toast .toast-msg { flex: 1; font-size: .9rem; line-height: 1.4; }
.app-toast .toast-close {
    background: transparent; border: none; color: #9ca3af; cursor: pointer;
    font-size: 1.1rem; padding: 0; line-height: 1;
}
.app-toast .toast-close:hover { color: #374151; }
.app-toast.hide { animation: toast-out .25s ease forwards; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
    to { opacity: 0; transform: translateX(-30px); }
}

[data-bs-theme="dark"] .app-toast {
    background: #1e293b; color: #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

/* =====================================================
   Page header
   ===================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.page-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--app-text);
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    word-break: break-word;
}

/* =====================================================
   Balance display
   ===================================================== */
.balance-positive { color: #dc2626; font-weight: 700; }
.balance-negative { color: #059669; font-weight: 700; }
.balance-zero     { color: #6b7280; font-weight: 700; }

[data-bs-theme="dark"] .balance-positive { color: #f87171; }
[data-bs-theme="dark"] .balance-negative { color: #34d399; }
[data-bs-theme="dark"] .balance-zero     { color: #94a3b8; }

/* =====================================================
   Empty state
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--app-text-muted);
}
.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    display: block;
    margin-bottom: .5rem;
}
[data-bs-theme="dark"] .empty-state i { color: #475569; }

/* =====================================================
   Dark mode dropdown & badges fixes
   ===================================================== */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1e293b;
    border-color: #334155;
}
[data-bs-theme="dark"] .dropdown-item { color: #e2e8f0; }
[data-bs-theme="dark"] .dropdown-item:hover { background-color: #334155; }
[data-bs-theme="dark"] .text-muted { color: #94a3b8 !important; }

/* =====================================================
   Small responsive adjustments
   ===================================================== */
@media (max-width: 575.98px) {
    .page-header h1 { font-size: 1.15rem; }
    .stat-card .stat-value { font-size: 1.2rem; }
    .navbar-brand span { display: none; }
}

/* Pagination */
.pagination .page-link {
    color: var(--app-primary);
    border-color: var(--app-card-border);
}
.pagination .page-item.active .page-link {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}
[data-bs-theme="dark"] .pagination .page-link {
    background-color: #1e293b;
    color: #93c5fd;
}

/* =====================================================
   Print friendliness — احترافي
   ===================================================== */
@media print {
    @page { size: A4; margin: 12mm 10mm; }

    body.app-body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
        padding-bottom: 0 !important;
    }

    /* إخفاء كل ما هو غير محتوى */
    .app-navbar,
    .app-sidebar,
    .app-sidebar-backdrop,
    .app-footer,
    .page-header .btn,
    .page-header .d-flex.gap-2,
    .pagination,
    .d-print-none,
    .app-toasts,
    .empty-state .btn,
    .card-footer .btn,
    nav,
    button {
        display: none !important;
    }

    .app-layout, .app-main, .app-main-inner {
        display: block !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #999 !important;
        page-break-inside: avoid;
        margin-bottom: 8pt;
    }
    .card-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        padding: 6pt 10pt !important;
        border-bottom: 1px solid #999 !important;
    }

    .table { font-size: 9.5pt; }
    .table th, .table td { padding: 4pt 6pt !important; }
    .table thead th {
        background: #e5e7eb !important;
        color: #000 !important;
        position: static !important;
    }

    /* عنوان الصفحة في الطباعة */
    .page-header h1 {
        font-size: 14pt;
        margin-bottom: 8pt;
        border-bottom: 2pt solid #000;
        padding-bottom: 4pt;
    }

    /* بطاقات KPI - تنسيق أكثر بساطة */
    .stat-card {
        padding: 6pt !important;
        gap: 6pt !important;
    }
    .stat-icon { width: 28pt !important; height: 28pt !important; font-size: 11pt !important; }
    .stat-value { font-size: 11pt !important; }

    /* الألوان النصية - الحفاظ على وضوحها */
    .text-danger, .balance-positive  { color: #b91c1c !important; }
    .text-success, .balance-negative { color: #047857 !important; }

    /* تجنّب كسر الجداول والبطاقات بين الصفحات */
    .row, .card-body { page-break-inside: avoid; }

    a { color: inherit !important; text-decoration: none !important; }

    /* رأس طباعة مع اسم النظام */
    .app-main-inner::before {
        content: "نظام إدارة التحويلات - " attr(data-print-title);
        display: block;
        text-align: center;
        font-size: 9pt;
        color: #666;
        margin-bottom: 6pt;
    }

    .app-admin-bottomnav,
    #appMoreNavModal {
        display: none !important;
    }
}

/* =====================================================
   Sidebar — تصميم مبسّط (5 مجموعات + قوائم فرعية)
   ===================================================== */
.app-nav-compact .nav-item {
    margin-bottom: 1px;
}

/* زر «إنشاء تحويل» — إجراء أساسي */
.app-nav .nav-link-create {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    font-weight: 700;
    margin: .35rem .75rem;
    border-radius: 12px;
    border-right: 0 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, .28);
    min-height: 44px;
}
.app-nav .nav-link-create:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: #fff !important;
    filter: brightness(1.02);
}
.app-nav .nav-link-create.active {
    background: linear-gradient(135deg, #047857, #065f46) !important;
    box-shadow: 0 2px 10px rgba(5, 150, 105, .35);
}
.app-nav .nav-link-create i { color: #fff; }

body.sidebar-collapsed .app-nav .nav-link-create {
    margin: .35rem .35rem;
}

/* أزرار طي المجموعات */
.app-nav .nav-collapse-toggle {
    cursor: pointer;
    text-align: inherit;
}
.app-nav .nav-collapse-toggle .collapse-chevron {
    transition: transform .2s ease;
    opacity: .75;
}
.app-nav .nav-collapse-toggle:not(.collapsed) .collapse-chevron {
    transform: rotate(-180deg);
}

.app-nav-submenu .nav-link {
    padding: .5rem 1.25rem .5rem 2.25rem;
    font-size: .84rem;
    gap: .55rem;
    min-height: 40px;
    white-space: normal;
    line-height: 1.25;
}
.app-nav-submenu .nav-link i {
    font-size: .95rem;
    width: 20px;
}
.nav-submenu-divider {
    height: 1px;
    margin: .35rem .75rem;
    background: rgba(255, 255, 255, .1);
    list-style: none;
}

@media (min-width: 992px) {
    body.sidebar-collapsed .nav-collapse-toggle .collapse-chevron {
        display: none;
    }
    body.sidebar-collapsed .app-sidebar .collapse {
        display: none !important;
    }
}

/* =====================================================
   Bottom navigation — لوحة التحكم (كل الشاشات)
   ===================================================== */
.app-admin-bottomnav {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1035;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--app-card-bg);
    border-top: 1px solid var(--app-card-border);
    box-shadow: 0 -6px 28px rgba(15, 23, 42, .1);
    transition: transform .22s ease, box-shadow .2s ease;
}

[data-bs-theme="dark"] .app-admin-bottomnav {
    background: #0f172a;
    border-top-color: #334155;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, .45);
}

.app-admin-bottomnav__row {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: .15rem;
    min-height: 56px;
    padding: .35rem .4rem 0;
}

.app-admin-bottomnav__item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: .4rem .2rem .55rem;
    font-size: .62rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--app-text-muted);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 12px 12px 0 0;
    transition: color .15s ease, background-color .15s ease, transform .12s ease;
    -webkit-tap-highlight-color: transparent;
}
.app-admin-bottomnav__item i {
    font-size: 1.28rem;
    line-height: 1;
}
.app-admin-bottomnav__item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-admin-bottomnav__item.is-active {
    color: var(--app-primary);
    background: rgba(22, 163, 74, .14);
}

.app-admin-bottomnav__item--mobile {
    color: var(--app-primary);
    font-weight: 700;
}
.app-admin-bottomnav__item--mobile:not(.is-active) {
    color: var(--app-text-muted);
    font-weight: 600;
}
.app-admin-bottomnav__item--mobile.is-active {
    background: rgba(22, 163, 74, .22);
}
.app-admin-bottomnav__item:active {
    transform: scale(.97);
}

.app-admin-bottomnav__spacer {
    flex: 0 0 44px;
    pointer-events: none;
}

.app-admin-bottomnav__fab {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}
.app-admin-bottomnav__fab > * {
    pointer-events: auto;
}

.app-admin-bottomnav__fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    color: #fff !important;
    text-decoration: none !important;
    background: linear-gradient(145deg, #10b981, #059669);
    box-shadow: 0 6px 20px rgba(16, 185, 129, .45);
    border: 3px solid var(--app-card-bg);
    transition: transform .18s ease, box-shadow .18s ease;
}
.app-admin-bottomnav__fab-btn:hover {
    color: #fff !important;
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(16, 185, 129, .55);
}
.app-admin-bottomnav__fab-btn:active {
    transform: scale(.96);
}
.app-admin-bottomnav__fab-btn.is-active {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .4), 0 8px 22px rgba(16, 185, 129, .5);
}

[data-bs-theme="dark"] .app-admin-bottomnav__fab-btn {
    border-color: #0f172a;
}

.app-more-nav-list .list-group-item {
    min-height: 48px;
    border-color: var(--app-card-border);
}

@media (min-width: 1200px) {
    .app-admin-bottomnav__item {
        max-width: 100px;
    }
}
