/*
 * Billur — admin panel uchun yangi tema qatlami.
 * Vuexy (Bootstrap 4) ustidan yuklanadi: markup va JS pluginlarga tegmaydi,
 * faqat ko'rinishni CSS tokenlar orqali yangilaydi. Light va dark rejim.
 */

:root {
    --b-primary: #0f766e;
    --b-primary-hover: #115e59;
    --b-primary-soft: rgba(15, 118, 110, .10);
    --b-primary-ring: rgba(15, 118, 110, .28);
    --b-success: #16a34a;
    --b-success-soft: rgba(22, 163, 74, .12);
    --b-danger: #dc2626;
    --b-danger-soft: rgba(220, 38, 38, .10);
    --b-warning: #d97706;
    --b-warning-soft: rgba(217, 119, 6, .12);
    --b-info: #0284c7;
    --b-info-soft: rgba(2, 132, 199, .10);

    --b-bg: #f4f6f8;
    --b-surface: #ffffff;
    --b-surface-2: #f8fafc;
    --b-border: #e5e9ef;
    --b-text: #1e293b;
    --b-text-muted: #64748b;
    --b-heading: #0f172a;

    --b-sidebar-bg: #ffffff;
    --b-sidebar-border: #e5e9ef;
    --b-sidebar-text: #475569;
    --b-sidebar-strong: #0f172a;
    --b-sidebar-muted: #94a3b8;
    --b-sidebar-hover: #f1f5f9;
    --b-sidebar-active-bg: rgba(15, 118, 110, .09);
    --b-sidebar-active-text: #0f766e;
    --b-sidebar-active: #0f766e;

    --b-radius: 10px;
    --b-radius-sm: 7px;
    --b-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
    --b-shadow-lg: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --b-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.dark-layout {
    --b-primary: #14b8a6;
    --b-primary-hover: #2dd4bf;
    --b-primary-soft: rgba(20, 184, 166, .14);
    --b-primary-ring: rgba(20, 184, 166, .35);
    --b-success-soft: rgba(22, 163, 74, .18);
    --b-danger-soft: rgba(220, 38, 38, .18);
    --b-warning-soft: rgba(217, 119, 6, .18);
    --b-info-soft: rgba(2, 132, 199, .18);

    --b-bg: #0b1120;
    --b-surface: #111827;
    --b-surface-2: #0f172a;
    --b-border: #1f2937;
    --b-text: #d1d5db;
    --b-text-muted: #94a3b8;
    --b-heading: #f1f5f9;

    --b-sidebar-bg: #101827;
    --b-sidebar-border: #202b3d;
    --b-sidebar-text: #c4ccda;
    --b-sidebar-strong: #ffffff;
    --b-sidebar-muted: #8996aa;
    --b-sidebar-hover: #182438;
    --b-sidebar-active-bg: linear-gradient(100deg, rgba(20, 184, 166, .2), rgba(20, 184, 166, .08));
    --b-sidebar-active-text: #ffffff;
    --b-sidebar-active: #14b8a6;
    --b-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --b-shadow-lg: 0 10px 30px -12px rgba(0, 0, 0, .6);
}

/* ---------- Asos ---------- */
html body,
html body.dark-layout {
    font-family: var(--b-font);
    background-color: var(--b-bg);
    color: var(--b-text);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

body h1, body h2, body h3, body h4, body h5, body h6,
body .h1, body .h2, body .h3, body .h4, body .h5, body .h6,
body.dark-layout h1, body.dark-layout h2, body.dark-layout h3,
body.dark-layout h4, body.dark-layout h5, body.dark-layout h6 {
    font-family: var(--b-font);
    color: var(--b-heading);
    font-weight: 600;
    letter-spacing: -.01em;
}

body a { color: var(--b-primary); }
body a:hover { color: var(--b-primary-hover); }
body .text-muted, body.dark-layout .text-muted { color: var(--b-text-muted) !important; }
body .text-primary { color: var(--b-primary) !important; }
body .bg-primary { background-color: var(--b-primary) !important; }
body .border-primary { border-color: var(--b-primary) !important; }

body .app-content { background-color: var(--b-bg); }
html body .content .content-wrapper { padding: 1.25rem 1.75rem 0; margin-top: 5.4rem; }
body .pace .pace-progress { background: var(--b-primary); }

/* ---------- Sidebar (light: oq, dark: to'q) ---------- */
body .main-menu,
body .main-menu.menu-light,
body .main-menu.menu-dark,
body.dark-layout .main-menu {
    background: var(--b-sidebar-bg);
    color: var(--b-sidebar-text);
    box-shadow: none;
    border-right: 1px solid var(--b-sidebar-border);
}

body .main-menu .navbar-header { height: 4.25rem; padding: .9rem 1rem .9rem 1.4rem; }
body .main-menu .navbar-header .navbar-brand { margin-top: .2rem; }
body .main-menu .navbar-header .navbar-brand .brand-text,
body.dark-layout .main-menu .navbar-header .navbar-brand .brand-text {
    color: var(--b-sidebar-strong);
    font-weight: 700;
    letter-spacing: -.02em;
    padding-left: .75rem;
}
body .main-menu .navbar-header .modern-nav-toggle .toggle-icon { color: var(--b-sidebar-active) !important; }
body .main-menu .shadow-bottom { display: none; }
body .main-menu .navbar-header,
body .main-menu .navbar-header .nav-item,
body.dark-layout .main-menu .navbar-header { background: transparent !important; }

body .main-menu .main-menu-content { padding: .5rem 0 1.5rem; }
body .main-menu .navigation,
body.dark-layout .main-menu .navigation,
body .main-menu.menu-light .navigation,
body .main-menu.menu-dark .navigation {
    background: transparent;
    color: var(--b-sidebar-text);
    font-family: var(--b-font);
    font-size: 13.5px;
}

body .main-menu .navigation .navigation-header,
body.dark-layout .main-menu .navigation .navigation-header {
    color: var(--b-sidebar-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 1.4rem 0 .4rem 1.6rem;
}

body .main-menu .navigation > li { padding: 0 .75rem; margin-bottom: 2px; }
body .main-menu .navigation li a,
body.dark-layout .main-menu .navigation li a,
body .main-menu.menu-light .navigation li a,
body .main-menu.menu-dark .navigation li a {
    color: var(--b-sidebar-text);
    border-radius: var(--b-radius-sm);
    padding: 9px 12px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}
body .main-menu .navigation li a i,
body.dark-layout .main-menu .navigation li a i { color: var(--b-sidebar-muted); margin-right: .8rem; }

body .main-menu .navigation > li > a:hover,
body .main-menu .navigation li .menu-content li a:hover,
body .main-menu .navigation > li:hover > a,
body.dark-layout .main-menu .navigation > li:hover > a {
    background: var(--b-sidebar-hover);
    color: var(--b-sidebar-strong);
    padding-left: 12px;
}
body .main-menu .navigation li .menu-content li a:hover { padding-left: 20px; }
body .main-menu .navigation li a:hover i,
body .main-menu .navigation > li:hover > a i { color: var(--b-sidebar-strong); }

/* Vuexy gradient + glow ni butunlay o'chiramiz (li va a darajasida) */
body .main-menu .navigation li ul .active,
body .main-menu.menu-light .navigation > li ul .active,
body .main-menu.menu-dark .navigation > li ul .active {
    background: transparent !important;
    box-shadow: none !important;
}
body .main-menu .navigation > li.active > a,
body .main-menu.menu-light .navigation > li.active > a,
body .main-menu.menu-dark .navigation > li.active > a,
body .main-menu .navigation li .menu-content li.active > a,
body .main-menu.menu-light .navigation .menu-content li.active > a,
body .main-menu.menu-dark .navigation .menu-content li.active > a {
    background: var(--b-sidebar-active-bg) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--b-sidebar-active-text) !important;
    font-weight: 600;
    position: relative;
}
body .main-menu .navigation li.active > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--b-sidebar-active);
}
body .main-menu .navigation li.active > a i { color: var(--b-sidebar-active) !important; }

body .main-menu .navigation > li.open > a,
body .main-menu .navigation > li.sidebar-group-active > a,
body .main-menu.menu-light .navigation > li.open > a,
body .main-menu.menu-dark .navigation > li.open > a,
body .main-menu.menu-light .navigation > li.sidebar-group-active > a,
body .main-menu.menu-dark .navigation > li.sidebar-group-active > a {
    background: var(--b-sidebar-hover);
    color: var(--b-sidebar-strong);
    font-weight: 600;
}
body .main-menu .navigation > li.sidebar-group-active > a i { color: var(--b-sidebar-active); }
body .main-menu .navigation li .menu-content,
body .main-menu.menu-light .navigation li .menu-content,
body .main-menu.menu-dark .navigation li .menu-content {
    background: transparent;
    padding: 4px 0 6px;
    margin-left: 22px;
    border-left: 1px solid var(--b-sidebar-border);
}
html body.dark-layout .main-menu,
html body.dark-layout .main-menu .main-menu-content .navigation-main,
html body.dark-layout .main-menu .main-menu-content .navigation-main .nav-item .menu-content,
html body.dark-layout .main-menu .main-menu-content .navigation-main .sidebar-group-active .menu-content {
    background-color: var(--b-sidebar-bg) !important;
}
html body.dark-layout .main-menu {
    border-right: 1px solid var(--b-sidebar-border);
    box-shadow: 8px 0 24px rgba(0, 0, 0, .12);
}
html body.dark-layout .main-menu .navbar-header {
    border-bottom: 1px solid var(--b-sidebar-border);
    background: var(--b-sidebar-bg) !important;
}
html body.dark-layout .main-menu .navigation > li {
    margin-bottom: 4px;
}
html body.dark-layout .main-menu .navigation > li > a {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
}
html body.dark-layout .main-menu .navigation > li > a:hover,
html body.dark-layout .main-menu .navigation > li.open > a,
html body.dark-layout .main-menu .navigation > li.sidebar-group-active > a {
    background: var(--b-sidebar-hover) !important;
    border-color: rgba(255, 255, 255, .035);
    color: var(--b-sidebar-strong);
}
html body.dark-layout .main-menu .main-menu-content .navigation-main .nav-item .menu-content li:not(.active) > a {
    background-color: transparent !important;
}
html body.dark-layout .main-menu .navigation li.active > a {
    background: var(--b-sidebar-active-bg) !important;
    border-color: rgba(20, 184, 166, .16);
    box-shadow: inset 0 0 16px rgba(20, 184, 166, .04);
}
html body.dark-layout .main-menu .navigation li.active > a::before {
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(20, 184, 166, .35);
}
html body.dark-layout .main-menu .navigation li.active > a i,
html body.dark-layout .main-menu .navigation > li.sidebar-group-active > a i {
    color: var(--b-sidebar-active) !important;
}
html body.dark-layout .main-menu .navigation li.has-sub > a::after {
    color: var(--b-sidebar-muted);
}
html body.dark-layout .main-menu .navigation li .menu-content {
    border-left-color: var(--b-sidebar-border);
}
html body.dark-layout .main-menu .navigation li .menu-content li a {
    min-height: 36px;
    border-radius: 6px;
    color: var(--b-sidebar-text);
}
html body.dark-layout .main-menu .navigation li .menu-content li.active > a {
    color: var(--b-sidebar-active) !important;
    background: rgba(20, 184, 166, .1) !important;
    border-color: transparent;
    box-shadow: none;
}
body .main-menu .navigation li .menu-content li a { padding: 7px 12px 7px 20px; font-size: 13px; font-weight: 500; }
body .main-menu .navigation li .menu-content li a i { font-size: .9rem; margin-right: .6rem; }
body .main-menu .navigation li.has-sub > a::after { color: var(--b-sidebar-muted); }
body .main-menu .navigation .badge { font-size: 11px; }

/* Gorizontal menyu (rahbariyat / chegara) */
body.horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li.active > a {
    background: var(--b-primary) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #fff !important;
}
body.horizontal-menu .header-navbar.navbar-horizontal ul#main-menu-navigation > li > .dropdown-menu .active > a {
    background: var(--b-primary-soft);
    color: var(--b-primary);
}

/* ---------- Navbar ---------- */
body .header-navbar,
body.dark-layout .header-navbar,
body .header-navbar.floating-nav {
    background: color-mix(in srgb, var(--b-surface) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border: 1px solid var(--b-border);
    border-radius: var(--b-radius);
    box-shadow: var(--b-shadow);
}
body .header-navbar-shadow { display: none !important; }
body .header-navbar .navbar-container ul.nav li a.nav-link,
body .header-navbar .navbar-container ul.nav li i.ficon,
body.dark-layout .header-navbar .navbar-container .nav .nav-item .nav-link { color: var(--b-text); }
body .header-navbar .navbar-container ul.nav li a.nav-link:hover i.ficon { color: var(--b-primary); }
body .header-navbar .navbar-container .user-nav .user-name { color: var(--b-heading); font-weight: 600; }
body .header-navbar .navbar-container .user-nav .user-status { color: var(--b-text-muted); }
body .navbar-org-name { color: var(--b-heading); font-weight: 600; }

/* ---------- Dropdown ---------- */
body .dropdown-menu,
body.dark-layout .dropdown-menu {
    background: var(--b-surface);
    border: 1px solid var(--b-border);
    border-radius: var(--b-radius);
    box-shadow: var(--b-shadow-lg);
    padding: .35rem;
}
body .dropdown-menu .dropdown-item,
body.dark-layout .dropdown-menu .dropdown-item {
    color: var(--b-text);
    border-radius: var(--b-radius-sm);
    padding: .5rem .75rem;
}
body .dropdown-menu .dropdown-item:hover,
body .dropdown-menu .dropdown-item:focus,
body .dropdown-menu .dropdown-item.active,
body.dark-layout .dropdown-menu .dropdown-item:hover {
    background: var(--b-primary-soft);
    color: var(--b-primary);
}
body .dropdown-divider { border-top-color: var(--b-border); }

/* ---------- Sahifa sarlavhasi + breadcrumb ---------- */
body .content-header.b-page-header { margin: 0 0 1.25rem; }
html body .content .content-wrapper .b-page-header .content-header-title,
html body.dark-layout .content .content-wrapper .b-page-header .content-header-title {
    color: var(--b-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    border: 0;
    word-break: break-word;
}
body .b-page-header .breadcrumb,
body.dark-layout .b-page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: .3rem 0 0;
    border: 0;
    font-size: 12.5px;
    flex-wrap: wrap;
}
body .b-page-header .breadcrumb .breadcrumb-item a { color: var(--b-text-muted); }
body .b-page-header .breadcrumb .breadcrumb-item a:hover { color: var(--b-primary); }
body .b-page-header .breadcrumb .breadcrumb-item.active,
body.dark-layout .b-page-header .breadcrumb .breadcrumb-item.active { color: var(--b-heading); }
body .b-page-header .breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--b-text-muted); padding: 0 .4rem; }
@media (max-width: 767.98px) {
    body .b-page-header .content-header-title { font-size: 1.2rem; }
}

/* ---------- Karta ---------- */
body .card,
body.dark-layout .card {
    background-color: var(--b-surface);
    border: 1px solid var(--b-border);
    border-radius: var(--b-radius);
    box-shadow: var(--b-shadow);
    margin-bottom: 1.5rem;
}
body .card .card-header {
    background: transparent;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--b-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
html body.dark-layout .card > .card-header:not(.bg-gradient-primary) {
    background-color: var(--b-surface-2) !important;
    border-bottom-color: var(--b-border);
}
body .card .card-header .card-title,
body.dark-layout .card .card-header .card-title {
    color: var(--b-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}
body .card .card-body { padding: 1.25rem 1.4rem; }
body .card .card-footer,
body.dark-layout .card .card-footer {
    background: var(--b-surface-2);
    border-top: 1px solid var(--b-border);
}

/* Gradient kartalar (Vuexy bg-gradient-*) — brend rangiga */
body .bg-gradient-primary,
body.dark-layout .card.bg-gradient-primary {
    background-color: var(--b-primary) !important;
    background-image: linear-gradient(120deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%) !important;
    border-color: transparent;
    color: #fff;
}
body .bg-gradient-danger { background-image: linear-gradient(120deg, #b91c1c, #ef4444) !important; border-color: transparent; }

/* Vuexy yordamchi ranglari — brend palitrasiga */
body .bg-rgba-primary { background: var(--b-primary-soft) !important; }
body .bg-rgba-success { background: var(--b-success-soft) !important; }
body .bg-rgba-danger { background: var(--b-danger-soft) !important; }
body .bg-rgba-warning { background: var(--b-warning-soft) !important; }
body .bg-rgba-info { background: var(--b-info-soft) !important; }
body .text-success { color: var(--b-success) !important; }
body .text-danger { color: var(--b-danger) !important; }
body .text-warning { color: var(--b-warning) !important; }
body .text-info { color: var(--b-info) !important; }

/* ---------- Tugmalar ---------- */
body .btn {
    font-family: var(--b-font);
    font-weight: 500;
    border-radius: var(--b-radius-sm);
    padding: .6rem 1.1rem;
    box-shadow: none !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
body .btn-sm, body .btn-group-sm > .btn { padding: .4rem .75rem; font-size: .8rem; }
body .btn:focus, body .btn.focus { box-shadow: 0 0 0 3px var(--b-primary-ring) !important; }

body .btn-primary,
body.dark-layout .btn-primary {
    background-color: var(--b-primary) !important;
    border-color: var(--b-primary) !important;
    color: #fff !important;
}
body .btn-primary:hover:not(.disabled):not(:disabled),
body .btn-primary:active,
body .btn-primary.active { background-color: var(--b-primary-hover) !important; border-color: var(--b-primary-hover) !important; }

body .btn-outline-primary,
body.dark-layout .btn-outline-primary {
    color: var(--b-primary) !important;
    border: 1px solid var(--b-primary) !important;
    background: transparent !important;
}
body .btn-outline-primary:hover:not(.disabled):not(:disabled) { background: var(--b-primary-soft) !important; }

body .btn-flat-primary { color: var(--b-primary); }
body .btn-flat-primary:hover { background: var(--b-primary-soft); color: var(--b-primary); }

body .btn-success { background-color: var(--b-success) !important; border-color: var(--b-success) !important; }
body .btn-danger { background-color: var(--b-danger) !important; border-color: var(--b-danger) !important; }
body .btn-warning { background-color: var(--b-warning) !important; border-color: var(--b-warning) !important; color: #fff !important; }
body .btn-info { background-color: var(--b-info) !important; border-color: var(--b-info) !important; }

body .btn-light,
body.dark-layout .btn-light {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--b-primary) !important;
}

body .btn-secondary,
body.dark-layout .btn-secondary {
    background: var(--b-surface-2) !important;
    border: 1px solid var(--b-border) !important;
    color: var(--b-text) !important;
}

/* Vuexy waves effektini o'chiramiz — tezroq va sokinroq */
body .waves-ripple { display: none !important; }

/* ---------- Forma ---------- */
body .form-control,
body .custom-select,
body.dark-layout .form-control,
body.dark-layout .custom-select,
body .select2-container--default .select2-selection--single,
body .select2-container--default .select2-selection--multiple,
body.dark-layout .select2-container--default .select2-selection--single,
body.dark-layout .select2-container--default .select2-selection--multiple {
    background-color: var(--b-surface);
    border: 1px solid var(--b-border);
    border-radius: var(--b-radius-sm);
    color: var(--b-text);
    font-family: var(--b-font);
    min-height: 38px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body .form-control:focus,
body .custom-select:focus,
body .select2-container--focus .select2-selection,
body .select2-container--open .select2-selection {
    border-color: var(--b-primary) !important;
    box-shadow: 0 0 0 3px var(--b-primary-ring) !important;
}
body .form-control::placeholder { color: var(--b-text-muted); opacity: .8; }
body .form-control:disabled,
body .form-control[readonly],
body.dark-layout .form-control:disabled,
body.dark-layout .form-control[readonly] { background-color: var(--b-surface-2); opacity: 1; }

body label,
body .form-group label,
body.dark-layout label {
    color: var(--b-text);
    font-size: 12.5px;
    font-weight: 500;
    margin-bottom: .35rem;
}

body .select2-container--default .select2-selection--single .select2-selection__rendered,
body.dark-layout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--b-text);
    line-height: 36px;
}
body .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
body .select2-dropdown,
body.dark-layout .select2-dropdown {
    background: var(--b-surface);
    border: 1px solid var(--b-border);
    border-radius: var(--b-radius-sm);
    box-shadow: var(--b-shadow-lg);
}
body .select2-container--default .select2-results__option--highlighted[aria-selected],
body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--b-primary) !important;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--b-primary) !important;
    border-color: var(--b-primary) !important;
    border-radius: 6px;
}

body .custom-control-input:checked ~ .custom-control-label::before,
body .vs-checkbox-con input:checked ~ .vs-checkbox,
body .vs-radio-con input:checked ~ .vs-radio .vs-radio--circle {
    background-color: var(--b-primary) !important;
    border-color: var(--b-primary) !important;
}

body .invalid-feedback { color: var(--b-danger); }
body .is-invalid,
body .form-control.is-invalid { border-color: var(--b-danger) !important; }

/* ---------- Jadval ---------- */
body .table,
body.dark-layout .table { color: var(--b-text); background: transparent; }
body .table thead th,
body.dark-layout .table thead th,
body table.dataTable thead th {
    background: var(--b-surface-2) !important;
    color: var(--b-text-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-top: 0;
    border-bottom: 1px solid var(--b-border) !important;
    padding: .8rem 1rem;
    vertical-align: middle;
}
body .table td,
body .table th,
body.dark-layout .table td,
body.dark-layout .table th {
    border-top: 1px solid var(--b-border);
    padding: .75rem 1rem;
    vertical-align: middle;
}
body .table-hover tbody tr:hover,
body table.dataTable tbody tr:hover,
body.dark-layout .table-hover tbody tr:hover { background: var(--b-primary-soft); }
body .table-striped tbody tr:nth-of-type(odd),
body.dark-layout .table-striped tbody tr:nth-of-type(odd) { background: var(--b-surface-2); }
body .table-bordered,
body .table-bordered td,
body .table-bordered th { border-color: var(--b-border) !important; }

/* Replace Vuexy's purple dark-table fills with the Billur surface palette. */
html body.dark-layout .table tbody tr:not([class*="table-"]) > td,
html body.dark-layout .table tbody tr:not([class*="table-"]) > th {
    background-color: var(--b-surface) !important;
    color: var(--b-text);
}
html body.dark-layout .table.table-striped tbody tr:nth-of-type(odd):not([class*="table-"]) > td,
html body.dark-layout .table.table-striped tbody tr:nth-of-type(odd):not([class*="table-"]) > th {
    background-color: var(--b-surface-2) !important;
}
html body.dark-layout .table.table-hover tbody tr:hover:not([class*="table-"]) > td,
html body.dark-layout .table.table-hover tbody tr:hover:not([class*="table-"]) > th {
    background-color: var(--b-primary-soft) !important;
}
html body.dark-layout .table thead tr > th {
    background-color: var(--b-surface-2) !important;
    color: var(--b-text-muted);
}

/* Vuexy data-list-view qatorlarini oddiy jadvalga yaqinlashtiramiz */
body .data-list-view-header .dataTables_wrapper .table tbody tr,
body.dark-layout .data-list-view-header .dataTables_wrapper .table tbody tr {
    background: transparent;
    box-shadow: none;
}
body .data-list-view-header .dataTables_wrapper .table tbody tr:hover { transform: none; box-shadow: none; }

/* DataTables boshqaruv elementlari */
body div.dataTables_wrapper div.dataTables_length select,
body div.dataTables_wrapper div.dataTables_filter input {
    border: 1px solid var(--b-border);
    border-radius: var(--b-radius-sm);
    background: var(--b-surface);
    color: var(--b-text);
    height: 36px;
}
body div.dataTables_wrapper div.dataTables_info { color: var(--b-text-muted); font-size: 13px; }
body div.dataTables_wrapper div.dataTables_processing,
body.dark-layout div.dataTables_wrapper div.dataTables_processing {
    background: var(--b-surface);
    color: var(--b-text);
    border: 1px solid var(--b-border);
    border-radius: var(--b-radius);
    box-shadow: var(--b-shadow-lg);
}

/* ---------- Pagination ---------- */
body .pagination .page-item .page-link,
body.dark-layout .pagination .page-item .page-link {
    background: var(--b-surface);
    border: 1px solid var(--b-border);
    color: var(--b-text);
    border-radius: var(--b-radius-sm) !important;
    margin: 0 2px;
    min-width: 34px;
    text-align: center;
}
body .pagination .page-item.active .page-link,
body.dark-layout .pagination .page-item.active .page-link {
    background: var(--b-primary) !important;
    border-color: var(--b-primary) !important;
    color: #fff !important;
    border-radius: var(--b-radius-sm) !important;
}
body .pagination .page-item.disabled .page-link { opacity: .5; }
body .pagination .page-item.prev-item .page-link,
body .pagination .page-item.next-item .page-link,
body .pagination .page-item:first-child .page-link,
body .pagination .page-item:last-child .page-link { background: var(--b-surface); }

/* ---------- Badge / alert ---------- */
body .badge { font-weight: 600; border-radius: 6px; padding: .35em .6em; }
body .badge-primary, body .badge.badge-primary { background: var(--b-primary); }
body .badge-light-primary { background: var(--b-primary-soft) !important; color: var(--b-primary) !important; }
body .badge-success { background: var(--b-success); }
body .badge-danger { background: var(--b-danger); }
body .badge-warning { background: var(--b-warning); }
body .badge-info { background: var(--b-info); }

body .alert { border-radius: var(--b-radius-sm); border: 1px solid transparent; font-weight: 500; }
body .alert-success { background: var(--b-success-soft) !important; color: var(--b-success) !important; border-color: var(--b-success-soft); }
body .alert-danger { background: var(--b-danger-soft) !important; color: var(--b-danger) !important; border-color: var(--b-danger-soft); }
body .alert-warning { background: var(--b-warning-soft) !important; color: var(--b-warning) !important; border-color: var(--b-warning-soft); }
body .alert-info { background: var(--b-info-soft) !important; color: var(--b-info) !important; border-color: var(--b-info-soft); }
body .alert-primary { background: var(--b-primary-soft) !important; color: var(--b-primary) !important; }

/* ---------- Tab / pill ---------- */
body .nav-tabs { border-bottom: 1px solid var(--b-border); }
body .nav-tabs .nav-link,
body.dark-layout .nav-tabs .nav-link { color: var(--b-text-muted); border: 0; font-weight: 500; }
body .nav-tabs .nav-link.active,
body.dark-layout .nav-tabs .nav-link.active { color: var(--b-primary); background: transparent; }
body .nav-tabs .nav-link.active::after { background: var(--b-primary) !important; box-shadow: none !important; }
body .nav-pills .nav-link { border-radius: var(--b-radius-sm); color: var(--b-text); }
body .nav-pills .nav-link.active,
body .nav-pills .show > .nav-link {
    background: var(--b-primary) !important;
    box-shadow: none !important;
    color: #fff;
}

/* ---------- Modal ---------- */
body .modal-content,
body.dark-layout .modal-content {
    background: var(--b-surface);
    border: 1px solid var(--b-border);
    border-radius: 14px;
    box-shadow: var(--b-shadow-lg);
}
body .modal .modal-header,
body.dark-layout .modal .modal-header {
    background: transparent;
    border-bottom: 1px solid var(--b-border);
    border-radius: 14px 14px 0 0;
    padding: 1rem 1.4rem;
}
body .modal .modal-header .close {
    background: var(--b-surface-2);
    box-shadow: none;
    border-radius: 8px;
    transform: none;
    margin: -.4rem -.4rem -.4rem auto;
    color: var(--b-text);
}
body .modal .modal-footer { border-top: 1px solid var(--b-border); }

/* ---------- Footer ---------- */
body .footer,
body.dark-layout .footer { background: transparent; color: var(--b-text-muted); box-shadow: none; }

/* ---------- Dashboard / statistik kartalar uchun yordamchi klasslar ---------- */
.b-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}
.b-stat__icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--b-primary-soft);
    color: var(--b-primary);
}
.b-stat__icon--success { background: var(--b-success-soft); color: var(--b-success); }
.b-stat__icon--danger { background: var(--b-danger-soft); color: var(--b-danger); }
.b-stat__icon--warning { background: var(--b-warning-soft); color: var(--b-warning); }
.b-stat__icon--info { background: var(--b-info-soft); color: var(--b-info); }
.b-stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--b-heading);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.b-stat__label { color: var(--b-text-muted); font-size: 12.5px; margin-top: 2px; }

.b-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem;
}
.b-filter-bar > * { flex: 1 1 180px; max-width: 260px; margin: 0; }
.b-filter-bar > .b-filter-bar__actions { flex: 0 0 auto; display: flex; gap: .5rem; }

.b-empty {
    text-align: center;
    color: var(--b-text-muted);
    padding: 2.5rem 1rem;
}

/* ---------- Jadval qatori amallari (RowActions / x-row-action) ---------- */
.b-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
html body .btn.b-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1;
    margin: 0;
}
html body .btn.b-action i { margin: 0; font-size: 15px; color: inherit; }
html body .btn.b-action.d-none { display: none !important; }
html body .btn.b-action--view { background: var(--b-info-soft) !important; color: var(--b-info) !important; }
html body .btn.b-action--edit,
html body .btn.b-action--save { background: var(--b-primary-soft) !important; color: var(--b-primary) !important; }
html body .btn.b-action--delete { background: var(--b-danger-soft) !important; color: var(--b-danger) !important; }
html body .btn.b-action--cancel,
html body .btn.b-action--history { background: var(--b-surface-2) !important; border-color: var(--b-border) !important; color: var(--b-text-muted) !important; }
html body .btn.b-action--view:hover { background: var(--b-info) !important; color: #fff !important; }
html body .btn.b-action--edit:hover,
html body .btn.b-action--save:hover { background: var(--b-primary) !important; color: #fff !important; }
html body .btn.b-action--delete:hover { background: var(--b-danger) !important; color: #fff !important; }
html body .btn.b-action--cancel:hover,
html body .btn.b-action--history:hover { color: var(--b-heading) !important; border-color: var(--b-text-muted) !important; }

/* ---------- Scrollbar ---------- */
body ::-webkit-scrollbar { width: 8px; height: 8px; }
body ::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .35); border-radius: 8px; }
body ::-webkit-scrollbar-track { background: transparent; }

/* ---------- Mobil ---------- */
@media (max-width: 767.98px) {
    html body .content .content-wrapper { padding: 1rem .9rem 0; }
    body .card .card-header { padding: .9rem 1rem; }
    body .card .card-body { padding: 1rem; }
    .b-filter-bar > * { max-width: none; }
}

/* ---------- Loaderlar ---------- */
@keyframes b-spin { to { transform: rotate(360deg); } }
@keyframes b-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* pace.js — sahifa yuklanishi chizig'i */
body .pace .pace-progress {
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #2dd4bf, #0d9488);
    background-size: 200% 100%;
    animation: b-shimmer 1.4s linear infinite;
    box-shadow: 0 0 10px rgba(20, 184, 166, .7), 0 0 4px rgba(20, 184, 166, .5);
    border-radius: 0 3px 3px 0;
}

/* Navigatsiya / forma yuborish paytidagi yuqori chiziq (billur-loader.js) */
#b-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 2100;
    opacity: 0;
    background: linear-gradient(90deg, #0d9488, #2dd4bf, #0d9488);
    background-size: 200% 100%;
    animation: b-shimmer 1.4s linear infinite;
    box-shadow: 0 0 10px rgba(20, 184, 166, .7);
    transition: width 8s cubic-bezier(.1, .7, .2, 1), opacity .2s ease;
}
#b-nav-progress.is-active { opacity: 1; width: 92%; }

/* Umumiy spinner */
.b-spinner {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: b-spin .7s linear infinite;
    vertical-align: -.15em;
}
body .spinner-border { border-width: .18em; animation-duration: .7s; }
body .spinner-border.text-primary,
body .spinner-grow.text-primary { color: var(--b-primary) !important; }

/* DataTables "Processing..." — jadval ustida yarim shaffof qatlam + spinner */
body div.dataTables_wrapper { position: relative; }
html body div.dataTables_wrapper div.dataTables_processing,
html body.dark-layout div.dataTables_wrapper div.dataTables_processing {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    z-index: 5;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    background: color-mix(in srgb, var(--b-surface) 72%, transparent);
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
    border: 0;
    border-radius: var(--b-radius);
    box-shadow: none;
    color: var(--b-heading);
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
}
html body div.dataTables_wrapper div.dataTables_processing::before {
    content: "";
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--b-primary-soft);
    border-top-color: var(--b-primary);
    border-radius: 50%;
    animation: b-spin .7s linear infinite;
}
html body div.dataTables_wrapper div.dataTables_processing > div { display: none; }
html body div.dataTables_wrapper div.dataTables_processing[style*="display: block"] { display: flex !important; }

/* Tugma ichidagi spinner (has-spinner / fa-spinner) */
body .btn .spinner,
body .btn .fa-spinner { display: inline-flex; }
body .btn .fa-spinner::before { content: none; }
body .btn i.fa-spinner {
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: b-spin .7s linear infinite;
}
body .btn.is-loading { pointer-events: none; opacity: .85; }

/* ---------- QR kodlar (App\Support\Qr::thumb + billur-qr.js) ---------- */
.b-qr-thumb {
    position: relative;
    display: inline-flex;
    padding: 5px;
    border: 1px solid var(--b-border);
    border-radius: 10px;
    background: #fff;
    cursor: zoom-in;
    line-height: 0;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.b-qr-thumb img { width: 56px; height: 56px; display: block; image-rendering: crisp-edges; }
.b-qr-thumb::after {
    content: "\e88b"; /* feather maximize-2 */
    font-family: "feather";
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    color: #fff;
    background: var(--b-primary);
    box-shadow: 0 0 0 2px var(--b-surface);
    opacity: 0;
    transform: scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}
.b-qr-thumb:hover { border-color: var(--b-primary); box-shadow: 0 0 0 3px var(--b-primary-soft); }
.b-qr-thumb:hover::after { opacity: 1; transform: scale(1); }
.b-qr-thumb:focus { outline: none; border-color: var(--b-primary); box-shadow: 0 0 0 3px var(--b-primary-ring); }

.b-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}
.b-qr-modal.is-open { opacity: 1; visibility: visible; }
.b-qr-modal__card {
    position: relative;
    width: 100%;
    max-width: 340px;
    padding: 24px;
    text-align: center;
    background: var(--b-surface);
    border: 1px solid var(--b-border);
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
    transform: translateY(8px) scale(.98);
    transition: transform .18s ease;
}
.b-qr-modal.is-open .b-qr-modal__card { transform: none; }
.b-qr-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: var(--b-surface-2);
    color: var(--b-text-muted);
    cursor: pointer;
}
.b-qr-modal__close:hover { color: var(--b-heading); }
.b-qr-modal__label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--b-primary-soft);
    color: var(--b-primary);
    font-weight: 600;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.b-qr-modal__frame {
    display: inline-block;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--b-border);
}
.b-qr-modal__frame img { display: block; width: 240px; height: 240px; max-width: 64vw; max-height: 64vw; }
.b-qr-modal__url {
    margin: 12px 0 16px;
    font-size: 12px;
    color: var(--b-text-muted);
    word-break: break-all;
}
.b-qr-modal__actions { display: grid; grid-template-columns: 1fr; }
.b-qr-modal__actions a,
.b-qr-modal__actions button {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 6px;
    border: 1px solid var(--b-border);
    border-radius: 10px;
    background: var(--b-surface);
    color: var(--b-heading);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.b-qr-modal__actions i { font-size: 16px; color: var(--b-primary); }
.b-qr-modal__actions a:hover,
.b-qr-modal__actions button:hover { border-color: var(--b-primary); background: var(--b-primary-soft); color: var(--b-heading); }

/* ---------- Vuexy "add-new-data" yon paneli → markazdagi modal ---------- */
html body .add-new-data-sidebar .overlay-bg {
    display: block !important;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1040 !important;
    background: rgba(15, 23, 42, .5) !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0 !important;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease !important;
}
html body .add-new-data-sidebar .overlay-bg.show { opacity: 1 !important; visibility: visible; }

html body .add-new-data-sidebar .add-new-data {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: 560px !important;
    max-width: calc(100vw - 32px) !important;
    height: auto !important;
    max-height: calc(100vh - 48px);
    z-index: 1050 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    background: var(--b-surface) !important;
    border: 1px solid var(--b-border);
    border-radius: 16px;
    box-shadow: 0 30px 70px -25px rgba(15, 23, 42, .45) !important;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -46%) scale(.98) !important;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease !important;
}
html body .add-new-data-sidebar .add-new-data.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) !important;
}
html body .add-new-data-sidebar .add-new-data > form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    min-height: 0;
}

/* Sarlavha */
html body .add-new-data-sidebar .add-new-data .new-data-title {
    margin: 0 !important;
    padding: 1.1rem 1.4rem !important;
    border-bottom: 1px solid var(--b-border) !important;
    align-items: center;
    flex: 0 0 auto;
}
html body .add-new-data-sidebar .add-new-data .new-data-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none !important;
    letter-spacing: -.01em;
    color: var(--b-heading);
}
html body .add-new-data-sidebar .add-new-data .new-data-title .hide-data-sidebar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--b-surface-2);
    color: var(--b-text-muted);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
html body .add-new-data-sidebar .add-new-data .new-data-title .hide-data-sidebar:hover { background: var(--b-danger-soft); color: var(--b-danger); }
html body .add-new-data-sidebar .add-new-data .new-data-title .hide-data-sidebar i {
    position: static !important;
    font-size: 17px !important;
    color: inherit;
}

/* Tana — o'zi scroll bo'ladi */
html body .add-new-data-sidebar .add-new-data .data-items {
    height: auto !important;
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    padding: .25rem 1.4rem 1.25rem !important;
    border-bottom: 0 !important;
}
html body .add-new-data-sidebar .add-new-data .data-items .data-fields { padding: 0 !important; margin-top: 0 !important; }
html body .add-new-data-sidebar .add-new-data .data-items .data-field-col { margin-top: 1rem; }
html body .add-new-data-sidebar .add-new-data .data-items textarea.form-control { min-height: 44px; resize: vertical; }

/* Pastki tugmalar */
html body .add-new-data-sidebar .add-new-data .add-data-footer {
    flex: 0 0 auto;
    display: flex !important;
    flex-direction: row-reverse;
    justify-content: flex-start !important; /* row-reverse: o'ng tomonga */
    gap: .6rem;
    margin: 0 !important;
    padding: 1rem 1.4rem !important;
    border-top: 1px solid var(--b-border);
    background: var(--b-surface-2);
}
html body .add-new-data-sidebar .add-new-data .add-data-footer .btn { min-width: 120px; }
html body .add-new-data-sidebar .add-new-data .add-data-footer .btn-outline-danger {
    color: var(--b-text) !important;
    border-color: var(--b-border) !important;
    background: var(--b-surface) !important;
}
html body .add-new-data-sidebar .add-new-data .add-data-footer .btn-outline-danger:hover { color: var(--b-danger) !important; border-color: var(--b-danger) !important; }

/* Ichidagi select2 dropdown modal ustida chiqsin */
body .select2-container--open { z-index: 1060; }

@media (max-width: 575.98px) {
    html body .add-new-data-sidebar .add-new-data .add-data-footer .btn { min-width: 0; flex: 1; }
}

/* ---------- Brend logosi: qo'mita gerbi ---------- */
html body .main-menu .navbar-header .navbar-brand .brand-logo,
html body .brand-logo {
    background: #fff url(/images/logo/emblem.png) no-repeat center / contain !important;
    border-radius: 50%;
    width: 38px !important;
    height: 38px !important;
    box-shadow: 0 0 0 1px var(--b-border);
}

/* ---------- Foydalanuvchi avatari (bosh harf) ---------- */
.b-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    user-select: none;
    box-shadow: 0 0 0 2px var(--b-surface), 0 0 0 3px var(--b-primary-soft);
}

/* ---------- Hujjatni ko'rish sahifalari (admin/documents) ---------- */
.b-doc-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
}
.b-doc-hero__main { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.b-doc-hero__icon {
    flex: 0 0 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}
.b-doc-hero__title { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--b-heading); }
.b-doc-hero__meta { margin-top: 4px; color: var(--b-text-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.b-doc-hero__meta i { margin-right: 4px; }
.b-doc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.b-doc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.b-doc-stats .card { margin: 0; }

.b-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(120deg, var(--b-surface), var(--b-surface-2));
}
.b-profile-identity { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.b-profile-avatar {
    display: inline-flex;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--b-surface);
    border-radius: 18px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 0 0 1px var(--b-border), 0 8px 20px rgba(15, 118, 110, .2);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}
.b-profile-heading { min-width: 0; }
.b-profile-eyebrow { color: var(--b-primary); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.b-profile-name { margin: .2rem 0 .25rem; color: var(--b-heading); font-size: 1.4rem; font-weight: 700; overflow-wrap: anywhere; }
.b-profile-subtitle { color: var(--b-text-muted); font-size: 13px; overflow-wrap: anywhere; }
.b-profile-separator { padding: 0 .4rem; color: var(--b-primary); }
.b-profile-card { height: calc(100% - 1.5rem); padding: 1.35rem 1.5rem; }
.b-profile-card-heading { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; border-bottom: 1px solid var(--b-border); }
.b-profile-section-icon {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--b-primary-soft);
    color: var(--b-primary);
    font-size: 18px;
}
.b-profile-card-heading h2 { margin: 0; color: var(--b-heading); font-size: 1rem; font-weight: 700; }
.b-profile-card-heading p { margin: .15rem 0 0; color: var(--b-text-muted); font-size: 12px; }
.b-profile-details { display: grid; grid-template-columns: 1fr; }
.b-profile-detail {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--b-border);
}
.b-profile-detail:last-child { border-bottom: 0; padding-bottom: 0; }
.b-profile-detail > span:first-child { flex: 0 0 42%; color: var(--b-text-muted); font-size: 12.5px; }
.b-profile-detail strong { color: var(--b-text); font-size: 13px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.b-profile-detail strong a { color: var(--b-text); }
.b-profile-detail strong a:hover { color: var(--b-primary); }
.b-profile-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border-radius: 999px; font-size: 11px; }
.b-profile-badge.is-active { background: var(--b-success-soft); color: var(--b-success); }
.b-profile-badge.is-inactive { background: var(--b-danger-soft); color: var(--b-danger); }
.b-profile-details-account { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; }
.b-profile-details-account .b-profile-detail { display: block; }
.b-profile-details-account .b-profile-detail > span:first-child { display: block; margin-bottom: .45rem; }
.b-profile-details-account .b-profile-detail strong { text-align: left; }
@media (max-width: 767.98px) {
    .b-profile-hero { align-items: flex-start; flex-direction: column; padding: 1.1rem; }
    .b-profile-card { padding: 1.1rem; }
    .b-profile-details-account { grid-template-columns: 1fr; gap: 0; }
}

.b-kv {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0;
    margin: 0;
}
.b-kv__item { padding: .85rem 1.4rem; border-bottom: 1px solid var(--b-border); min-width: 0; }
.b-kv__item--wide { grid-column: 1 / -1; }
.b-kv__item dt { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--b-text-muted); margin-bottom: 4px; }
.b-kv__item dd { margin: 0; color: var(--b-heading); font-weight: 500; word-break: break-word; }
.b-kv__empty { color: var(--b-text-muted); font-weight: 400; }

.b-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--b-surface-2);
    color: var(--b-text-muted);
}
.b-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-status--success { background: var(--b-success-soft); color: var(--b-success); }
.b-status--warning { background: var(--b-warning-soft); color: var(--b-warning); }
.b-status--danger { background: var(--b-danger-soft); color: var(--b-danger); }
.b-status--info { background: var(--b-info-soft); color: var(--b-info); }
.b-status--primary { background: var(--b-primary-soft); color: var(--b-primary); }

.b-steps { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 1.4rem; }
.b-steps__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--b-border);
    font-size: 13px;
    font-weight: 500;
    color: var(--b-text-muted);
}
.b-steps__item i { font-size: 14px; }
.b-steps__item.is-done { border-color: transparent; background: var(--b-success-soft); color: var(--b-success); }
.b-steps__item.is-current { border-color: var(--b-primary); background: var(--b-primary-soft); color: var(--b-primary); }

.b-table-empty { text-align: center; color: var(--b-text-muted); padding: 2rem 1rem !important; }

/* ---------- Navbar: foydalanuvchi menyusi ---------- */
html body .header-navbar .dropdown-menu.b-user-menu {
    width: 280px;
    padding: .4rem;
    margin-top: .6rem;
    border-radius: 14px;
}
.b-user-menu__head {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .75rem .85rem;
    margin-bottom: .35rem;
    border-bottom: 1px solid var(--b-border);
}
.b-user-menu__who { min-width: 0; }
.b-user-menu__name { font-weight: 700; color: var(--b-heading); line-height: 1.25; }
.b-user-menu__role { font-size: 12.5px; color: var(--b-primary); font-weight: 500; margin-top: 2px; }
.b-user-menu__org {
    font-size: 12px;
    color: var(--b-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html body .b-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .6rem .75rem;
    font-weight: 500;
    border: 0;
    background: transparent;
    text-align: left;
}
html body .header-navbar .dropdown-menu.b-user-menu .dropdown-item:hover,
html body .header-navbar .dropdown-menu.b-user-menu .dropdown-item:focus,
html body .header-navbar .dropdown-menu.b-user-menu .dropdown-item:active,
html body .header-navbar .dropdown-menu.b-user-menu .dropdown-item.active {
    background: var(--b-primary-soft) !important;
    color: var(--b-primary) !important;
    outline: none;
}
html body .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right.b-user-menu .dropdown-item:hover,
html body .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right.b-user-menu .dropdown-item:focus,
html body .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right.b-user-menu .dropdown-item:active,
html body .header-navbar .navbar-container ul.nav li.dropdown-user .dropdown-menu-right.b-user-menu .dropdown-item.active {
    color: var(--b-primary) !important;
}
html body .b-user-menu .dropdown-item i { font-size: 16px; margin: 0; color: var(--b-text-muted); }
html body .b-user-menu .dropdown-item:hover i,
html body .b-user-menu .dropdown-item:focus i,
html body .b-user-menu .dropdown-item:active i,
html body .b-user-menu .dropdown-item.active i { color: var(--b-primary); }
html body .header-navbar .b-user-menu .b-user-menu__logout { color: var(--b-danger) !important; }
html body .b-user-menu .b-user-menu__logout i { color: var(--b-danger); }
html body .header-navbar .b-user-menu .b-user-menu__logout:hover,
html body .header-navbar .b-user-menu .b-user-menu__logout:focus,
html body .header-navbar .b-user-menu .b-user-menu__logout:active { background: var(--b-danger-soft) !important; color: var(--b-danger) !important; }
html body .b-user-menu .b-user-menu__logout:hover i { color: var(--b-danger); }
.b-status--muted { background: var(--b-surface-2); color: var(--b-text-muted); }
html body .btn.b-action--continue { background: var(--b-primary) !important; color: #fff !important; }
html body .btn.b-action--continue:hover { background: var(--b-primary-hover) !important; }
.b-status-org {
    margin-top: 4px;
    font-size: 12px;
    color: var(--b-text-muted);
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.b-status-org i { margin-right: 4px; font-size: 11px; }
html body .btn.b-action--accept { background: var(--b-warning) !important; color: #fff !important; }
html body .btn.b-action--accept:hover { filter: brightness(.92); }

/* Inline kod (IP, ID) — Vuexy pushti o'rniga neytral */
html body code {
    color: var(--b-heading);
    background: var(--b-surface-2);
    border: 1px solid var(--b-border);
    border-radius: 6px;
    padding: .1rem .4rem;
    font-size: 12px;
}

/* Gorizontal layout (rahbariyat, chegara): yon menyu faqat mobil overlay rejimida.
   Vuexy uni stilsiz (shaffof) qoldirib "yashirardi" — tema fon berganda kontentni yopib qo'ydi. */
body.horizontal-layout:not(.vertical-overlay-menu) .main-menu { display: none !important; }

/* Outline tugma + bg-white (gradient kartalar ustida) — oq fon saqlansin */
html body .btn-outline-primary.bg-white { background: #fff !important; }
html body .btn-outline-primary.bg-white:hover { background: var(--b-primary-soft) !important; }
html body.dark-layout .btn-outline-primary.bg-white { background: var(--b-surface) !important; }
/* Gorizontal layout mobil rejimda navbar qotib turadi (fixed-navbar), navbar-static esa margin-top: 0 beradi —
   kontent navbar ostiga kirib ketardi */
html body.horizontal-layout.fixed-navbar .app-content .content-wrapper { margin-top: 5.2rem; }
