/*
 * Zamonaviy ko'rinish qatlami — Vuexy shablonining ustidan yuklanadi (_partials/css.blade.php, eng oxirida).
 * Shablon fayllariga (public/app-assets) tegilmagan: bu faylni olib tashlash eski ko'rinishni qaytaradi.
 *
 * Tema:    <html class="dark-layout"> + data-theme="light|dark"  (public/js/modern-boot.js, public/js/modern.js)
 * Accent:  data-accent="violet|blue|emerald|rose|amber|slate"
 * Zichlik: data-density="comfortable|compact"
 *
 * Selektorlar `html:root` bilan boshlanadi — Vuexy'ning `.dark-layout .x` qoidalaridan (0,2,0) o'tib ketishi uchun.
 */

:root {
    --ek-font: 'Inter', 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ek-radius: 12px;
    --ek-radius-sm: 8px;

    --ek-accent: #6d5dfc;
    --ek-accent-hover: #5a49f0;
    --ek-accent-soft: rgba(109, 93, 252, .12);
    --ek-accent-ring: rgba(109, 93, 252, .28);
    --ek-on-accent: #fff;

    --ek-bg: #f5f6fa;
    --ek-surface: #ffffff;
    --ek-surface-2: #f1f3f9;
    --ek-border: #e5e8f0;
    --ek-text: #1d2233;
    --ek-muted: #6a7389;
    --ek-shadow: 0 1px 2px rgba(20, 24, 40, .04), 0 4px 16px rgba(20, 24, 40, .05);
    --ek-shadow-lg: 0 12px 40px rgba(20, 24, 40, .14);
    --ek-row-hover: #f7f8fc;

    --ek-pad-y: .72rem;
    --ek-pad-x: .9rem;
    color-scheme: light;
}

html[data-theme='dark'] {
    --ek-bg: #0e111d;
    --ek-surface: #171b2b;
    --ek-surface-2: #1f2438;
    --ek-border: #2a3047;
    --ek-text: #e7e9f3;
    --ek-muted: #99a1ba;
    --ek-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --ek-shadow-lg: 0 12px 40px rgba(0, 0, 0, .55);
    --ek-row-hover: #1c2135;
    --ek-accent-soft: rgba(139, 124, 255, .16);
    color-scheme: dark;
}

/* Accent ranglar. Tun rejimida ochroq tus — qora fonda kontrast uchun. */
html[data-accent='violet'] { --ek-accent: #6d5dfc; --ek-accent-hover: #5a49f0; --ek-accent-soft: rgba(109, 93, 252, .12); --ek-accent-ring: rgba(109, 93, 252, .28); }
html[data-accent='blue']   { --ek-accent: #2f7cf6; --ek-accent-hover: #1d68e0; --ek-accent-soft: rgba(47, 124, 246, .12);  --ek-accent-ring: rgba(47, 124, 246, .28); }
html[data-accent='emerald']{ --ek-accent: #10a37f; --ek-accent-hover: #0c8a6b; --ek-accent-soft: rgba(16, 163, 127, .12);  --ek-accent-ring: rgba(16, 163, 127, .28); }
html[data-accent='rose']   { --ek-accent: #e5487a; --ek-accent-hover: #d02f64; --ek-accent-soft: rgba(229, 72, 122, .12);  --ek-accent-ring: rgba(229, 72, 122, .28); }
html[data-accent='amber']  { --ek-accent: #e8890c; --ek-accent-hover: #cf7803; --ek-accent-soft: rgba(232, 137, 12, .13);  --ek-accent-ring: rgba(232, 137, 12, .30); }
html[data-accent='slate']  { --ek-accent: #51607a; --ek-accent-hover: #3f4d66; --ek-accent-soft: rgba(81, 96, 122, .13);   --ek-accent-ring: rgba(81, 96, 122, .30); }
html[data-theme='dark'][data-accent='violet'] { --ek-accent: #8b7cff; --ek-accent-hover: #9d90ff; --ek-on-accent: #101226; }
html[data-theme='dark'][data-accent='blue']   { --ek-accent: #5a9bff; --ek-accent-hover: #74abff; --ek-on-accent: #07111f; }
html[data-theme='dark'][data-accent='emerald']{ --ek-accent: #2fc79f; --ek-accent-hover: #4bd3b0; --ek-on-accent: #04170f; }
html[data-theme='dark'][data-accent='rose']   { --ek-accent: #ff6b97; --ek-accent-hover: #ff86a9; --ek-on-accent: #200610; }
html[data-theme='dark'][data-accent='amber']  { --ek-accent: #ffa733; --ek-accent-hover: #ffb85a; --ek-on-accent: #1d1000; }
html[data-theme='dark'][data-accent='slate']  { --ek-accent: #8fa0bf; --ek-accent-hover: #a6b4cf; --ek-on-accent: #0c111b; }

html[data-density='compact'] { --ek-pad-y: .38rem; --ek-pad-x: .7rem; }

/* ---------- Asos ---------- */
html:root body,
html:root .app-content,
html:root .content.app-content {
    background: var(--ek-bg);
    color: var(--ek-text);
    font-family: var(--ek-font);
}

html:root body, html:root .btn, html:root .form-control, html:root .form-select, html:root .dropdown-menu,
html:root .table, html:root .nav-link, html:root .card-title, html:root h1, html:root h2, html:root h3,
html:root h4, html:root h5, html:root h6 {
    font-family: var(--ek-font);
}

html:root h1, html:root h2, html:root h3, html:root h4, html:root h5, html:root h6,
html:root .card-title, html:root .content-header-title { color: var(--ek-text); letter-spacing: -.01em; }

html:root a { color: var(--ek-accent); }
html:root a:hover { color: var(--ek-accent-hover); }
html:root .text-muted, html:root small.text-muted { color: var(--ek-muted) !important; }
html:root hr { border-color: var(--ek-border); opacity: 1; }
html:root ::selection { background: var(--ek-accent-soft); }

html:root .app-content.content { transition: background-color .25s ease; }
html:root .content-body { animation: ek-fade .28s ease both; }
@keyframes ek-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html:root .content-body { animation: none; } }

/* Skrollbar */
html:root *::-webkit-scrollbar { width: 10px; height: 10px; }
html:root *::-webkit-scrollbar-thumb { background: var(--ek-border); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
html:root *::-webkit-scrollbar-thumb:hover { background: var(--ek-muted); background-clip: content-box; border: 2px solid transparent; }
html:root *::-webkit-scrollbar-track { background: transparent; }

/* ---------- Kartalar ---------- */
html:root .card {
    background: var(--ek-surface);
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius);
    box-shadow: var(--ek-shadow);
    color: var(--ek-text);
}
html:root .card .card-header { background: transparent; border-bottom: 1px solid var(--ek-border); }
html:root .card .card-footer { background: transparent; border-top: 1px solid var(--ek-border); }
html:root .card .card-body { color: var(--ek-text); }

/* ---------- Navbar ---------- */
html:root .header-navbar.floating-nav {
    background: color-mix(in srgb, var(--ek-surface) 82%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius);
    box-shadow: var(--ek-shadow);
}
html:root .header-navbar .navbar-container .nav-link,
html:root .header-navbar .nav-link .ficon { color: var(--ek-muted); }
html:root .header-navbar .navbar-container .nav-link:hover,
html:root .header-navbar .nav-link:hover .ficon { color: var(--ek-text); }
html:root .header-navbar-shadow { display: none; }
html:root .header-navbar .breadcrumb .breadcrumb-item a { color: var(--ek-accent); }
html:root .header-navbar .breadcrumb .breadcrumb-item.active { color: var(--ek-muted); }

/* Navbar tugmalari (public/js/modern.js qo'shadi) */
.ek-btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; padding: 0;
    border: 0; border-radius: 10px; background: transparent;
    color: var(--ek-muted); cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.ek-btn-icon:hover, .ek-btn-icon[aria-expanded='true'] { background: var(--ek-accent-soft); color: var(--ek-accent); }
.ek-btn-icon svg { width: 18px; height: 18px; }
.ek-search-trigger {
    display: inline-flex; align-items: center; gap: .55rem;
    height: 38px; padding: 0 .6rem 0 .8rem; margin-right: .35rem;
    border: 1px solid var(--ek-border); border-radius: 10px;
    background: var(--ek-surface-2); color: var(--ek-muted);
    font-size: .85rem; cursor: pointer; min-width: 190px;
    transition: border-color .15s ease, color .15s ease;
}
.ek-search-trigger:hover { border-color: var(--ek-accent); color: var(--ek-text); }
.ek-search-trigger svg { width: 16px; height: 16px; }
.ek-search-trigger kbd, .ek-kbd {
    margin-left: auto; padding: .08rem .38rem; border-radius: 6px;
    border: 1px solid var(--ek-border); background: var(--ek-surface);
    color: var(--ek-muted); font: 600 .7rem/1.4 var(--ek-font); box-shadow: none;
}
@media (max-width: 991.98px) { .ek-search-trigger { min-width: 0; padding: 0 .6rem; } .ek-search-trigger span, .ek-search-trigger kbd { display: none; } }

/* ---------- Yon menyu ---------- */
html:root .main-menu,
html:root .main-menu.menu-light, html:root .main-menu.menu-dark {
    background: var(--ek-surface);
    border-right: 1px solid var(--ek-border);
    box-shadow: none;
}
html:root .main-menu .shadow-bottom { display: none; }
html:root .main-menu .navbar-header {
    background: transparent; border-bottom: 1px solid var(--ek-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 .9rem 0 1.25rem; height: 5.5rem;
}
html:root .main-menu .navbar-header > ul { flex: 1; min-width: 0; margin: 0; align-items: center; }
html:root .main-menu .navbar-header .navbar-brand {
    display: flex; align-items: center; gap: .8rem; margin: 0; padding: 0;
}
html:root .main-menu .navbar-header .navbar-brand .brand-logo { display: none; }
html:root .main-menu .navbar-header .navbar-brand img { display: block; height: 54px; width: auto; max-width: none; flex: none; }
html:root .main-menu .navbar-header .navbar-brand .brand-text {
    margin: 0; padding: 0; color: var(--ek-text); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1;
}
html:root .main-menu .navbar-header .navbar-brand .brand-text::after {
    content: 'boshqaruv paneli'; display: block; margin-top: .3rem;
    font-size: .68rem; font-weight: 500; letter-spacing: .02em; color: var(--ek-muted);
}

/* Menyuni yig'ish/ochish tugmasi — navbar'da (public/js/modern.js qo'shadi; mavjud `.modern-nav-toggle` ishlovchisiga ulanadi) */
.ek-collapse {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 38px; height: 38px; margin-right: .6rem; padding: 0; cursor: pointer;
    border: 1px solid var(--ek-border); border-radius: 10px; background: var(--ek-surface-2); color: var(--ek-muted);
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.ek-collapse:hover { color: var(--ek-accent); border-color: var(--ek-accent); background: var(--ek-accent-soft); }
.ek-collapse svg { width: 18px; height: 18px; }
@media (max-width: 1199.98px) { .ek-collapse { display: none; } }

html:root .main-menu .main-menu-content { scrollbar-width: thin; height: calc(100% - 5.5rem) !important; }
html:root .main-menu .navigation { background: transparent; padding: .6rem 0 1.25rem; }

/* Bo'lim sarlavhalari */
html:root .main-menu .navigation .navigation-header {
    margin: 1.25rem 1.5rem .35rem; padding: 0; color: var(--ek-muted);
    font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: flex-start; gap: .6rem;
}
html:root .main-menu .navigation .navigation-header:first-child { margin-top: .4rem; }
html:root .main-menu .navigation .navigation-header span { flex: none; }
html:root .main-menu .navigation .navigation-header::after { content: ''; flex: 1; height: 1px; background: var(--ek-border); }
html:root .main-menu .navigation .navigation-header > svg, html:root .main-menu .navigation .navigation-header > i { display: none; }

/* Punktlar */
html:root .main-menu .navigation > li { margin: 1px 0; }
html:root .main-menu .navigation > li > a,
html:root .main-menu.menu-light .navigation > li > a,
html:root .main-menu.menu-dark .navigation > li > a {
    position: relative; margin: 0 .8rem; padding: .56rem .8rem; min-height: 40px;
    border-radius: 10px; color: var(--ek-muted); font-weight: 500; font-size: .92rem;
    gap: .72rem; transition: background-color .15s ease, color .15s ease;
}
html:root .main-menu .navigation > li > a > i,
html:root .main-menu .navigation > li > a > svg {
    flex: none; width: 20px; height: 20px; margin: 0; top: 0;
    font-size: 16px; line-height: 20px; text-align: center; color: inherit; transition: color .15s ease, transform .2s ease;
}
html:root .main-menu .navigation > li > a .menu-title { color: inherit; margin: 0; }
html:root .main-menu .navigation > li > a:hover,
html:root .main-menu.menu-light .navigation > li:not(.active) > a:hover,
html:root .main-menu.menu-dark .navigation > li:not(.active) > a:hover { background: var(--ek-surface-2); color: var(--ek-text); box-shadow: none; }

/* Ochiq guruh */
html:root .main-menu .navigation > li.open:not(.menu-item-closing) > a,
html:root .main-menu .navigation > li.sidebar-group-active > a,
html:root .main-menu.menu-light .navigation > li.open:not(.menu-item-closing) > a,
html:root .main-menu.menu-light .navigation > li.sidebar-group-active > a,
html:root .main-menu.menu-dark .navigation > li.open:not(.menu-item-closing) > a,
html:root .main-menu.menu-dark .navigation > li.sidebar-group-active > a { background: transparent; color: var(--ek-text); }

/* Faol punkt: yumshoq fon + chap chiziq */
html:root .main-menu .navigation > li.active > a,
html:root .main-menu.menu-light .navigation > li.active > a,
html:root .main-menu.menu-dark .navigation > li.active > a {
    background: var(--ek-accent-soft); color: var(--ek-accent); font-weight: 600; box-shadow: none;
}
html:root .main-menu .navigation > li.active > a::before {
    content: ''; position: absolute; left: -.8rem; top: 22%; bottom: 22%; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--ek-accent);
}

/* Ochiladigan strelka */
html:root .main-menu .navigation li.has-sub > a::after,
.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation li.has-sub > a:after {
    content: ''; position: absolute; right: .9rem; top: 50%; width: 7px; height: 7px; margin-top: -5px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-top: 0; border-left: 0;
    background: none !important; transform: rotate(-45deg) !important; opacity: .55; transition: transform .2s ease, opacity .15s ease;
    font-size: 0; width: 7px; height: 7px; box-sizing: border-box; animation: none !important;
}
html:root .main-menu .navigation li.has-sub.open:not(.menu-item-closing) > a::after,
.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation li.has-sub.open:not(.menu-item-closing) > a:after { transform: rotate(45deg) !important; opacity: .9; margin-top: -6px; }

/* Ichki menyu: chap yo'naltiruvchi chiziq + nuqta */
html:root .main-menu .navigation li ul.menu-content {
    position: relative; margin: .15rem 0 .35rem 1.65rem; padding: 0 0 0 .1rem;
    border-left: 1px solid color-mix(in srgb, var(--ek-muted) 35%, transparent); background: transparent;
}
html:root .main-menu .navigation li ul.menu-content > li { margin: 1px 0; }
html:root .main-menu .navigation li ul.menu-content > li > a,
html:root .main-menu.menu-light .navigation > li > ul li > a,
html:root .main-menu.menu-dark .navigation > li > ul li > a {
    position: relative; margin: 0 .7rem 0 .55rem; padding: .42rem .7rem; border-radius: 8px;
    color: var(--ek-muted); font-size: .86rem; font-weight: 500; gap: .55rem;
}
html:root .main-menu .navigation li ul.menu-content > li:not(.has-sub) { margin-left: 0; margin-right: 0; }
html:root .main-menu .navigation li ul.menu-content > li > a > svg,
html:root .main-menu .navigation li ul.menu-content > li > a > i {
    flex: none; width: 14px; height: 14px; margin: 0; color: var(--ek-muted); opacity: .75;
}
html:root .main-menu .navigation li ul.menu-content > li > a:hover,
html:root .main-menu.menu-light .navigation li ul li:not(.active) > a:hover,
html:root .main-menu.menu-dark .navigation li ul li:not(.active) > a:hover { background: var(--ek-surface-2); color: var(--ek-text); }
html:root .main-menu .navigation li ul.menu-content > li.active > a,
html:root .main-menu.menu-light .navigation > li > ul .active > a,
html:root .main-menu.menu-dark .navigation > li > ul .active > a { background: var(--ek-accent-soft); color: var(--ek-accent); font-weight: 600; box-shadow: none; }
html:root .main-menu .navigation li ul.menu-content > li.active > a > svg,
html:root .main-menu .navigation li ul.menu-content > li.active > a > i { color: var(--ek-accent); opacity: 1; }
html:root .main-menu .navigation li ul.menu-content > li.active > a::before {
    content: ''; position: absolute; left: -.56rem; top: 50%; width: 2px; height: 55%; margin-top: -27.5%;
    background: var(--ek-accent); border-radius: 2px;
}

/* Hisoblagich badge'lari */
html:root .main-menu .navigation .badge { margin-left: auto; border-radius: 20px; padding: .25em .6em; font-size: .7rem; }

/* Yig'ilgan (mini) holat — sichqoncha ustiga kelganda Vuexy menyuni vaqtincha ochadi (`.expanded`) */
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li > a {
    margin: 2px .55rem; padding: 0; height: 42px; justify-content: center; gap: 0;
}
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li > a > i,
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li > a > svg { margin: 0; font-size: 17px; width: 20px; }
html:root .menu-collapsed .main-menu:not(.expanded) .navigation li.has-sub > a::after,
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li > a .menu-title,
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li > a .badge { display: none !important; }
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li.active > a,
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li.sidebar-group-active > a { background: var(--ek-accent-soft) !important; color: var(--ek-accent) !important; box-shadow: none !important; }
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li.active > a::before { left: -.55rem; }
html:root .menu-collapsed .main-menu:not(.expanded) .navigation .navigation-header { margin: .9rem .8rem .3rem; justify-content: center; }
html:root .menu-collapsed .main-menu:not(.expanded) .navigation .navigation-header span,
html:root .menu-collapsed .main-menu:not(.expanded) .navigation .navigation-header::after { display: none; }

/* ---------- Tugmalar ---------- */
html:root .btn { border-radius: 10px; font-weight: 500; transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease, color .15s ease; }
html:root .btn:active { transform: translateY(1px); }
html:root .btn-primary, html:root .btn-primary:not(:disabled):not(.disabled):active {
    background: var(--ek-accent) !important; border-color: var(--ek-accent) !important; color: var(--ek-on-accent) !important;
}
html:root .btn-primary:hover, html:root .btn-primary:focus { background: var(--ek-accent-hover) !important; border-color: var(--ek-accent-hover) !important; box-shadow: 0 6px 16px var(--ek-accent-ring) !important; }
html:root .btn-outline-primary { color: var(--ek-accent) !important; border-color: var(--ek-accent) !important; background: transparent !important; }
html:root .btn-outline-primary:hover { background: var(--ek-accent-soft) !important; color: var(--ek-accent) !important; box-shadow: none !important; }
html:root .btn-flat-primary { color: var(--ek-accent) !important; }
html:root .btn-flat-primary:hover { background: var(--ek-accent-soft) !important; }
html:root .btn-secondary, html:root .btn-outline-secondary { border-radius: 10px; }
html:root .btn-icon.scroll-top { border-radius: 50%; box-shadow: var(--ek-shadow-lg); }

/* ---------- Formalar ---------- */
html:root .form-control, html:root .form-select, html:root .input-group-text,
html:root .select2-container--default .select2-selection--single,
html:root .select2-container--default .select2-selection--multiple {
    background-color: var(--ek-surface); border: 1px solid var(--ek-border); color: var(--ek-text);
    border-radius: var(--ek-radius-sm);
}
html:root .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ek-text); }
html:root .input-group-text { background-color: var(--ek-surface-2); color: var(--ek-muted); }
html:root .form-control::placeholder { color: var(--ek-muted); opacity: .75; }
html:root .form-control:focus, html:root .form-select:focus,
html:root .select2-container--default.select2-container--focus .select2-selection--single,
html:root .select2-container--default.select2-container--open .select2-selection--single,
html:root .select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--ek-accent); box-shadow: 0 0 0 3px var(--ek-accent-ring); background-color: var(--ek-surface); color: var(--ek-text);
}
html:root .form-control:disabled, html:root .form-control[readonly] { background-color: var(--ek-surface-2); }
html:root .form-label, html:root label { color: var(--ek-text); font-weight: 500; }
html:root .form-check-input:checked { background-color: var(--ek-accent); border-color: var(--ek-accent); }
html:root .form-check-input:focus { box-shadow: 0 0 0 3px var(--ek-accent-ring); border-color: var(--ek-accent); }
html:root .select2-dropdown { background: var(--ek-surface); border: 1px solid var(--ek-border); border-radius: var(--ek-radius-sm); box-shadow: var(--ek-shadow-lg); }
html:root .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ek-accent); color: var(--ek-on-accent); }
html:root .select2-container--default .select2-results__option[aria-selected='true'] { background: var(--ek-accent-soft); color: var(--ek-accent); }

/* ---------- Jadvallar ---------- */
html:root .table { color: var(--ek-text); border-color: var(--ek-border); --bs-table-bg: transparent; --bs-table-striped-bg: var(--ek-row-hover); --bs-table-hover-bg: var(--ek-row-hover); --bs-table-hover-color: var(--ek-text); }
html:root .table > :not(caption) > * > * { border-bottom-color: var(--ek-border); padding: var(--ek-pad-y) var(--ek-pad-x); background-color: transparent; color: var(--ek-text); }
html:root .table thead th, html:root .table thead td {
    background: var(--ek-surface-2); color: var(--ek-muted);
    font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--ek-border);
}
html:root .table-hover > tbody > tr:hover > *, html:root .table tbody tr:hover > * { background-color: var(--ek-row-hover); }
html:root .table-responsive { border-radius: var(--ek-radius); }
html:root .card .table { margin-bottom: 0; }
html:root table.dataTable tbody tr { background: transparent; }

/* ---------- Dropdown, modal, toast ---------- */
html:root .dropdown-menu { background: var(--ek-surface); border: 1px solid var(--ek-border); border-radius: var(--ek-radius); box-shadow: var(--ek-shadow-lg); }
html:root .dropdown-item { color: var(--ek-text); border-radius: 8px; margin: 1px 6px; width: auto; }
html:root .dropdown-item:hover, html:root .dropdown-item:focus { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .dropdown-divider { border-color: var(--ek-border); }
html:root .modal-content { background: var(--ek-surface); border: 1px solid var(--ek-border); border-radius: calc(var(--ek-radius) + 2px); box-shadow: var(--ek-shadow-lg); color: var(--ek-text); }
html:root .modal-header { background: transparent; border-bottom: 1px solid var(--ek-border); }
html:root .modal-footer { border-top: 1px solid var(--ek-border); }
html:root .modal-header .btn-close { filter: none; }
html[data-theme='dark'] .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
html:root .toast-container .toast, html:root #toast-container > div { border-radius: var(--ek-radius); box-shadow: var(--ek-shadow-lg); }

/* ---------- Badge, paginatsiya, tab, alert ---------- */
html:root .badge { border-radius: 8px; font-weight: 600; }
html:root .badge.bg-primary, html:root .bg-primary { background-color: var(--ek-accent) !important; color: var(--ek-on-accent); }
html:root .badge-light-primary { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .text-primary { color: var(--ek-accent) !important; }
html:root .page-link { background: var(--ek-surface); border-color: var(--ek-border); color: var(--ek-text); }
html:root .page-link:hover { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .page-item.active .page-link { background: var(--ek-accent); border-color: var(--ek-accent); color: var(--ek-on-accent); box-shadow: 0 4px 12px var(--ek-accent-ring); }
html:root .page-item.disabled .page-link { background: var(--ek-surface-2); color: var(--ek-muted); }
html:root .nav-pills .nav-link.active, html:root .nav-pills .show > .nav-link { background: var(--ek-accent); color: var(--ek-on-accent); box-shadow: 0 4px 12px var(--ek-accent-ring); }
html:root .nav-tabs .nav-link.active { color: var(--ek-accent); border-color: var(--ek-accent); background: transparent; }
html:root .nav-tabs { border-bottom-color: var(--ek-border); }
html:root .alert { border-radius: var(--ek-radius); }
html:root .progress { background: var(--ek-surface-2); border-radius: 10px; }
html:root .progress-bar { background: var(--ek-accent); }
html:root .list-group-item { background: var(--ek-surface); border-color: var(--ek-border); color: var(--ek-text); }
html:root .avatar .avatar-content { background: var(--ek-accent-soft); color: var(--ek-accent); font-weight: 600; }

/* ---------- Footer ---------- */
html:root footer.footer { background: transparent; color: var(--ek-muted); box-shadow: none; }

/* ---------- Ko'rinish paneli ---------- */
.ek-panel {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 1090; width: 300px; padding: 1rem;
    background: var(--ek-surface); color: var(--ek-text);
    border: 1px solid var(--ek-border); border-radius: var(--ek-radius); box-shadow: var(--ek-shadow-lg);
    display: none; animation: ek-pop .16s ease both;
}
.ek-panel.is-open { display: block; }
@keyframes ek-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.ek-panel h6 { margin: 0 0 .5rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ek-muted); font-weight: 600; }
.ek-panel section + section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ek-border); }
.ek-seg { display: grid; gap: .35rem; grid-auto-flow: column; grid-auto-columns: 1fr; padding: .25rem; background: var(--ek-surface-2); border-radius: 10px; }
.ek-seg button {
    display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .42rem .3rem;
    border: 0; border-radius: 8px; background: transparent; color: var(--ek-muted); font: 500 .8rem var(--ek-font); cursor: pointer;
}
.ek-seg button svg { width: 15px; height: 15px; }
.ek-seg button[aria-pressed='true'] { background: var(--ek-surface); color: var(--ek-accent); box-shadow: var(--ek-shadow); }
.ek-swatches { display: flex; gap: .55rem; flex-wrap: wrap; }
.ek-swatches button {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer;
    outline: 2px solid transparent; outline-offset: 2px; transition: transform .12s ease;
}
.ek-swatches button:hover { transform: scale(1.1); }
.ek-swatches button[aria-pressed='true'] { outline-color: var(--ek-text); }
.ek-reset { margin-top: .9rem; width: 100%; border: 1px dashed var(--ek-border); background: transparent; color: var(--ek-muted); border-radius: 8px; padding: .4rem; font: 500 .8rem var(--ek-font); cursor: pointer; }
.ek-reset:hover { color: var(--ek-text); border-color: var(--ek-muted); }

/* ---------- Ctrl+K qidiruv ---------- */
.ek-cmd { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 12vh 1rem 1rem; background: rgba(8, 10, 20, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ek-cmd.is-open { display: flex; }
.ek-cmd-box { width: min(620px, 100%); background: var(--ek-surface); color: var(--ek-text); border: 1px solid var(--ek-border); border-radius: 16px; box-shadow: var(--ek-shadow-lg); overflow: hidden; animation: ek-pop .16s ease both; }
.ek-cmd-input { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--ek-border); color: var(--ek-muted); }
.ek-cmd-input svg { width: 18px; height: 18px; flex: none; }
.ek-cmd-input input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ek-text); font: 500 1rem var(--ek-font); }
.ek-cmd-list { max-height: 52vh; overflow: auto; padding: .4rem; margin: 0; list-style: none; }
.ek-cmd-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: 10px; cursor: pointer; color: var(--ek-text); text-decoration: none !important; }
.ek-cmd-item small { margin-left: auto; color: var(--ek-muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.ek-cmd-item svg { width: 16px; height: 16px; color: var(--ek-muted); flex: none; }
.ek-cmd-item.is-active { background: var(--ek-accent-soft); color: var(--ek-accent); }
.ek-cmd-item.is-active svg, .ek-cmd-item.is-active small { color: var(--ek-accent); }
.ek-cmd-item mark { background: transparent; color: var(--ek-accent); font-weight: 700; }
.ek-cmd-empty { padding: 2rem; text-align: center; color: var(--ek-muted); }
.ek-cmd-foot { display: flex; gap: 1rem; padding: .55rem 1rem; border-top: 1px solid var(--ek-border); color: var(--ek-muted); font-size: .75rem; background: var(--ek-surface-2); }

/* =====================================================================================================
 * v2 — chuqurroq zamonaviy qatlam: fon, shisha navbar, yumshoq badge'lar, gradient tugmalar, mini menyu tugmasi
 * ===================================================================================================== */
:root {
    --ek-success: #16a34a; --ek-danger: #e11d48; --ek-warning: #d97706; --ek-info: #0891b2;
    --ek-radius: 14px;
}
html[data-theme='dark'] { --ek-success: #4ade80; --ek-danger: #fb7185; --ek-warning: #fbbf24; --ek-info: #22d3ee; }

/* Fon: yuqori o'ngda accent nuri */
html:root body {
    background:
        radial-gradient(900px 420px at 90% -80px, var(--ek-accent-soft), transparent 70%),
        radial-gradient(700px 380px at 0% 100%, color-mix(in srgb, var(--ek-accent) 6%, transparent), transparent 70%),
        var(--ek-bg);
    background-attachment: fixed;
}
html:root .app-content, html:root .content.app-content { background: transparent; }

/* Navbar — suzuvchi "kapsula" */
html:root .header-navbar.floating-nav { border-radius: 16px; border-color: color-mix(in srgb, var(--ek-border) 70%, transparent); }

/* Kartalar */
html:root .card { border-radius: var(--ek-radius); transition: border-color .2s ease, box-shadow .2s ease; }
html:root .card:hover { border-color: color-mix(in srgb, var(--ek-accent) 22%, var(--ek-border)); }
html:root .card .card-header .card-title, html:root .card-title { font-weight: 650; }

/* Tugmalar — gradient + yorug' soya */
html:root .btn-primary, html:root .btn-primary:not(:disabled):not(.disabled):active {
    background: linear-gradient(135deg, var(--ek-accent), color-mix(in srgb, var(--ek-accent) 78%, #ff6bd6)) !important;
    border-color: transparent !important; color: var(--ek-on-accent) !important;
    box-shadow: 0 4px 14px -4px var(--ek-accent-ring);
}
html:root .btn-primary:hover, html:root .btn-primary:focus {
    background: linear-gradient(135deg, var(--ek-accent-hover), color-mix(in srgb, var(--ek-accent-hover) 78%, #ff6bd6)) !important;
    box-shadow: 0 8px 20px -6px var(--ek-accent-ring) !important; transform: translateY(-1px);
}
html:root .btn-icon.scroll-top { background: linear-gradient(135deg, var(--ek-accent), var(--ek-accent-hover)) !important; border: 0 !important; }

/* Fokus halqasi (klaviatura) */
html:root :focus-visible { outline: 2px solid var(--ek-accent); outline-offset: 2px; border-radius: 6px; }
html:root .form-control:focus-visible, html:root .btn:focus-visible { outline: none; }

/* Badge'lar — yumshoq rangli, qattiq emas */
html:root .badge.bg-success, html:root .badge.badge-success { background: color-mix(in srgb, var(--ek-success) 15%, transparent) !important; color: var(--ek-success) !important; }
html:root .badge.bg-danger,  html:root .badge.badge-danger  { background: color-mix(in srgb, var(--ek-danger) 14%, transparent) !important;  color: var(--ek-danger) !important; }
html:root .badge.bg-warning, html:root .badge.badge-warning { background: color-mix(in srgb, var(--ek-warning) 16%, transparent) !important; color: var(--ek-warning) !important; }
html:root .badge.bg-info,    html:root .badge.badge-info    { background: color-mix(in srgb, var(--ek-info) 15%, transparent) !important;    color: var(--ek-info) !important; }
html:root .badge.bg-secondary, html:root .badge.badge-secondary, html:root .badge.bg-light-secondary { background: var(--ek-surface-2) !important; color: var(--ek-muted) !important; }
html:root .badge.bg-light-primary, html:root .badge.badge-light-primary { background: var(--ek-accent-soft) !important; color: var(--ek-accent) !important; }
html:root .badge.badge-primary { background: var(--ek-accent) !important; color: var(--ek-on-accent) !important; }
html:root .badge.bg-success::before, html:root .badge.bg-danger::before, html:root .badge.bg-warning::before, html:root .badge.bg-info::before {
    content: ''; display: inline-block; width: 6px; height: 6px; margin-right: .4rem; border-radius: 50%; background: currentColor; vertical-align: 1px;
}

/* Jadval: yumshoq sarlavha, aniq ajratish */
html:root .table thead th { background: color-mix(in srgb, var(--ek-surface-2) 80%, transparent); border-top: 0; }
html:root .table thead th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
html:root .table thead th:last-child  { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
html:root .table > tbody > tr { transition: background-color .12s ease; }
html:root .table > tbody > tr:last-child > * { border-bottom: 0; }

/* Tablar (Yangi / Jarayonda / Yopilgan) — "kapsula" ko'rinishi */
html:root .nav-tabs { gap: .25rem; border-bottom: 1px solid var(--ek-border); }
html:root .nav-tabs .nav-link { border: 0; border-radius: 10px 10px 0 0; color: var(--ek-muted); font-weight: 500; padding: .6rem 1rem; transition: color .15s ease, background-color .15s ease; position: relative; }
html:root .nav-tabs .nav-link:hover { color: var(--ek-text); background: var(--ek-surface-2); }
html:root .nav-tabs .nav-link.active { color: var(--ek-accent); background: var(--ek-accent-soft); }
html:root .nav-tabs .nav-link.active::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ek-accent); }

/* Modal / dropdown / toast */
html:root .modal-content { border-radius: 18px; }
html:root .dropdown-menu { padding: .4rem; }
html:root .toast, html:root #toast-container > div { border-radius: 14px !important; }

/* Breadcrumb */
html:root .header-navbar .breadcrumb-item + .breadcrumb-item::before { color: var(--ek-muted); opacity: .6; }

/* ---------- Yon menyu v2 ---------- */
html:root .main-menu, html:root .main-menu.menu-light, html:root .main-menu.menu-dark {
    background: linear-gradient(180deg, var(--ek-surface) 0%, color-mix(in srgb, var(--ek-surface) 93%, var(--ek-accent)) 100%);
}
html:root .main-menu .navigation > li.active > a,
html:root .main-menu.menu-light .navigation > li.active > a,
html:root .main-menu.menu-dark .navigation > li.active > a {
    background: linear-gradient(90deg, var(--ek-accent-soft), color-mix(in srgb, var(--ek-accent-soft) 40%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-accent) 20%, transparent);
}
html:root .main-menu .navigation > li.active > a > i, html:root .main-menu .navigation > li.active > a > svg { filter: drop-shadow(0 2px 6px var(--ek-accent-ring)); }

/* Yig'ilgan holatda sarlavhada faqat logo */
html:root .menu-collapsed .main-menu .navbar-header { justify-content: center; padding: 0; width: 80px; }
html:root .menu-collapsed .main-menu .navbar-header > ul { flex: none; justify-content: center; }
html:root .menu-collapsed .main-menu .navbar-header .navbar-brand img { height: 40px; }
html:root .menu-collapsed .main-menu .navigation > li > a { cursor: pointer; }
html:root .menu-collapsed .main-menu .navigation > li.has-sub > a::after { display: none !important; }
/* Yig'ilgan holatda ichki menyular ko'rinmaydi */
html:root .menu-collapsed .main-menu .navigation li ul.menu-content { display: none !important; }

/* =====================================================================================================
 * v3 — qo'shimcha imkoniyatlar uslublari: navbar (soat, skroll chizig'i, ism), sidebar (filtr, sevimlilar, karta)
 * ===================================================================================================== */

/* ---------- Navbar ---------- */
.ek-chip {
    display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .8rem; margin-right: .35rem;
    border: 1px solid var(--ek-border); border-radius: 10px; background: var(--ek-surface-2); color: var(--ek-muted);
    font-size: .8rem; white-space: nowrap;
}
.ek-chip svg { width: 15px; height: 15px; }
.ek-chip b { color: var(--ek-text); font-weight: 650; font-variant-numeric: tabular-nums; }
.ek-chip small { font-size: .75rem; }
html:root .header-navbar.floating-nav { transition: box-shadow .2s ease, background-color .2s ease; }
html:root .header-navbar.floating-nav.ek-scrolled { box-shadow: var(--ek-shadow-lg); }
.ek-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1999; pointer-events: none; }
.ek-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ek-accent), color-mix(in srgb, var(--ek-accent) 60%, #ff6bd6)); border-radius: 0 3px 3px 0; transition: width .08s linear; }

html:root .header-navbar .dropdown-user .user-nav { line-height: 1.15; margin-right: .65rem; text-align: right; }
html:root .header-navbar .dropdown-user .user-name { display: block; color: var(--ek-text); font-size: .86rem; font-weight: 650; }
html:root .header-navbar .dropdown-user .user-status { display: block; color: var(--ek-muted); font-size: .72rem; margin-top: 2px; }
html:root .header-navbar .dropdown-user .avatar { box-shadow: 0 0 0 2px var(--ek-surface), 0 0 0 4px var(--ek-accent-soft); border-radius: 50%; }
html:root .header-navbar .dropdown-user .avatar .avatar-status-online { box-shadow: 0 0 0 2px var(--ek-surface); }
html:root .header-navbar .nav-item.dropdown .dropdown-menu { margin-top: .6rem; }

/* ---------- Sidebar: tik joylashuv (sarlavha / filtr / ro'yxat / karta) ---------- */
html:root .main-menu { display: flex; flex-direction: column; }
html:root .main-menu .navbar-header { flex: none; }
html:root .main-menu .main-menu-content { flex: 1 1 auto; height: auto !important; min-height: 0; }

.ek-filter {
    flex: none; position: relative; display: flex; align-items: center; gap: .55rem;
    margin: .8rem .8rem .2rem; padding: 0 .65rem; height: 38px;
    border: 1px solid var(--ek-border); border-radius: 10px; background: var(--ek-surface-2); color: var(--ek-muted);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ek-filter:focus-within { border-color: var(--ek-accent); box-shadow: 0 0 0 3px var(--ek-accent-ring); background: var(--ek-surface); }
.ek-filter > svg { width: 15px; height: 15px; flex: none; }
.ek-filter input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ek-text); font: 500 .85rem var(--ek-font); }
.ek-filter input::placeholder { color: var(--ek-muted); opacity: .8; }
.ek-filter-clear { display: inline-flex; border: 0; background: transparent; color: var(--ek-muted); padding: 2px; cursor: pointer; border-radius: 6px; }
.ek-filter-clear[hidden] { display: none; }
.ek-filter-clear:hover { color: var(--ek-text); background: var(--ek-border); }
.ek-filter-clear svg { width: 14px; height: 14px; }
html:root .main-menu .navigation li.ek-hide { display: none !important; }

/* Yulduzcha */
.ek-star {
    position: absolute; right: .55rem; top: 50%; transform: translateY(-50%) scale(.9);
    display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 7px;
    color: var(--ek-muted); opacity: 0; cursor: pointer; transition: opacity .15s ease, color .15s ease, background-color .15s ease, transform .15s ease;
}
.ek-star svg { width: 14px; height: 14px; }
html:root .main-menu .navigation li:hover > a > .ek-star { opacity: .9; transform: translateY(-50%); }
.ek-star:hover { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .main-menu .navigation li > a > .ek-star.is-on { opacity: 1; color: #f5a623; transform: translateY(-50%); }
.ek-star.is-on svg { fill: currentColor; }
html:root .main-menu .navigation li > a:has(> .ek-star) .menu-item,
html:root .main-menu .navigation li > a:has(> .ek-star) .menu-title { padding-right: 1.4rem; }
html:root .main-menu .navigation .ek-fav > a > svg { color: #f5a623; fill: currentColor; width: 16px; height: 16px; }
html:root .main-menu .navigation .ek-fav.active > a > svg { color: var(--ek-accent); }
html:root .main-menu .navigation .ek-fav-head { margin-top: .4rem; }

/* Foydalanuvchi kartasi */
.ek-user-card {
    flex: none; display: flex; align-items: center; gap: .7rem; margin: .4rem .8rem .8rem; padding: .65rem .7rem;
    border: 1px solid var(--ek-border); border-radius: 14px;
    background: linear-gradient(135deg, var(--ek-surface-2), color-mix(in srgb, var(--ek-surface-2) 70%, var(--ek-accent-soft)));
}
.ek-user-avatar { flex: none; line-height: 0; }
.ek-user-avatar .avatar { margin: 0; }
.ek-user-avatar .avatar-status-online { display: none; }
.ek-user-meta { flex: 1; min-width: 0; line-height: 1.2; }
.ek-user-meta b { display: block; font-size: .85rem; font-weight: 650; color: var(--ek-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-user-meta small { display: block; color: var(--ek-muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-user-out { width: 34px; height: 34px; flex: none; }
.ek-user-out:hover { background: color-mix(in srgb, var(--ek-danger) 14%, transparent); color: var(--ek-danger); }

/* Yig'ilgan (mini) holat */
html:root .menu-collapsed .ek-filter, html:root .menu-collapsed .ek-star { display: none; }
html:root .menu-collapsed .ek-user-card { margin: .4rem .55rem .8rem; padding: .5rem 0; justify-content: center; flex-direction: column; gap: .4rem; background: transparent; border-color: transparent; }
html:root .menu-collapsed .ek-user-meta { display: none; }
html:root .menu-collapsed .main-menu .navigation .ek-fav-head span { display: none; }
html:root .menu-collapsed .main-menu .navigation .ek-fav > a { justify-content: center; }

/* Yangi sevimli punkt qo'shilganda yonib turadi */
html:root .main-menu .navigation .ek-fav.ek-fav-new > a { animation: none; background: var(--ek-accent-soft); }
@keyframes ek-fav-flash {
    0%   { background: var(--ek-accent); color: var(--ek-on-accent); transform: scale(.97); }
    25%  { transform: scale(1.02); }
    100% { background: transparent; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html:root .main-menu .navigation .ek-fav.ek-fav-new > a { animation: none; background: var(--ek-accent-soft); } }

/* =====================================================================================================
 * v4 — til bayroqlari va silliq effektlar
 * ===================================================================================================== */
.ek-flag { display: inline-block; width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; vertical-align: -3px; }
html:root .dropdown-language .dropdown-toggle { display: inline-flex; align-items: center; gap: .15rem; }
html:root .dropdown-language .dropdown-menu { min-width: 15rem; }
html:root .dropdown-language .dropdown-item { gap: .7rem; padding: .5rem .75rem; }
html:root .dropdown-language .dropdown-item.active { background: var(--ek-accent-soft); color: var(--ek-accent); font-weight: 600; }
html:root .dropdown-language .dropdown-item.active::after { content: ''; width: 6px; height: 11px; margin-left: .5rem; border: solid var(--ek-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ek-lang-tag { margin-left: auto; padding: .1rem .45rem; border-radius: 6px; background: var(--ek-surface-2); color: var(--ek-muted); font-size: .66rem; font-weight: 600; letter-spacing: .03em; }
html:root .dropdown-language .dropdown-item.active .ek-lang-tag { margin-left: auto; background: var(--ek-surface); color: var(--ek-accent); }
html:root .dropdown-language .dropdown-item.active::after { margin-left: .4rem; }
html:root .dropdown-language .selected-language { max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dropdown ochilish animatsiyasi Vuexy'ning o'zida bor (scaleY) — bu yerda qayta yozilmaydi: aks holda menyu yig'ilgan holatda qolib ketadi. */
html:root .modal.fade .modal-dialog { transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .22s ease; }

/* Tema almashishi: View Transitions (modern.js → setTheme). Oldingi `html.ek-anim *` (har bir elementga transition) olib tashlandi — sekin edi. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* Yon menyu: yig'ilish/ochilishda yordamchi elementlar sakramasin */
html:root .ek-filter, html:root .ek-user-card, html:root .ek-user-meta { transition: opacity .2s ease; }
html:root .menu-collapsed .ek-filter { display: none; }
html:root .main-menu .navigation li > a { will-change: background-color; }
html:root .header-navbar.floating-nav { transform: translateZ(0); }

/* Harakatni kamaytirishni so'ragan foydalanuvchilar uchun */
@media (prefers-reduced-motion: reduce) {
    html:root *, html:root *::before, html:root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================================================
   DASHBOARD (resources/views/dashboard.blade.php) — faqat ko'rinish, `.ek-dash` ichida
   ===================================================================================================== */
html:root .ek-dash .ek-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
html:root .ek-kpi {
    position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 1.25rem; overflow: hidden;
    background: var(--ek-surface); border: 1px solid var(--ek-border); border-radius: var(--ek-radius); box-shadow: var(--ek-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
html:root .ek-kpi:hover { transform: translateY(-2px); box-shadow: var(--ek-shadow-lg); }
html:root .ek-kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--ek-tone-soft); opacity: .7; }
html:root .ek-kpi--disk   { --ek-tone: var(--ek-accent); --ek-tone-soft: var(--ek-accent-soft); }
html:root .ek-kpi--sms    { --ek-tone: #10a37f; --ek-tone-soft: rgba(16, 163, 127, .13); }
html:root .ek-kpi--failed { --ek-tone: #e5487a; --ek-tone-soft: rgba(229, 72, 122, .13); }
html:root .ek-kpi--users  { --ek-tone: #e8890c; --ek-tone-soft: rgba(232, 137, 12, .14); }
html:root .ek-kpi__icon {
    flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; z-index: 1;
    color: var(--ek-tone); background: var(--ek-tone-soft);
}
html:root .ek-kpi__icon svg { width: 22px; height: 22px; }
html:root .ek-kpi__body { display: flex; flex-direction: column; min-width: 0; flex: 1; z-index: 1; }
html:root .ek-kpi__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ek-muted); font-weight: 600; }
html:root .ek-kpi__value { font-size: 1.75rem; line-height: 1.25; font-weight: 700; color: var(--ek-text); letter-spacing: -.02em; }
html:root .ek-kpi__value small { font-size: .9rem; color: var(--ek-muted); font-weight: 600; }
html:root .ek-kpi__sub { font-size: .8rem; color: var(--ek-muted); display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .4rem; }
html:root .ek-kpi__sub b { color: var(--ek-text); font-weight: 600; margin-right: .5rem; }
html:root .ek-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
html:root .ek-dot--ok { background: #2fc79f; }
html:root .ek-dot--warn { background: #ffb547; }
html:root .ek-meter { height: 8px; margin: .35rem 0 .5rem; border-radius: 99px; background: var(--ek-surface-2); overflow: hidden; }
html:root .ek-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ek-accent), #2fc79f); transition: width .8s cubic-bezier(.2, .8, .2, 1); }

html:root .ek-dash .ek-card { margin-bottom: 1.5rem; }
html:root .ek-dash .ek-card.h-100 { margin-bottom: 1.5rem; height: calc(100% - 1.5rem) !important; }
html:root .ek-dash .ek-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
html:root .ek-dash .ek-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ek-muted); background: transparent; border-bottom: 1px solid var(--ek-border); }

/* Imzolash xatoliklari */
html:root .ek-events { gap: .75rem; margin-bottom: 1.5rem; }
html:root .ek-events .ek-event { border: 1px solid var(--ek-border); border-left: 4px solid #e5487a; border-radius: var(--ek-radius) !important; background: var(--ek-surface); box-shadow: var(--ek-shadow); }
html:root .ek-error { background: var(--ek-surface-2); color: var(--ek-text); border: 1px solid var(--ek-border); border-radius: var(--ek-radius-sm); padding: .75rem; font-size: .8rem; }

/* =====================================================================================================
 * v4 — Tailwind uslubidagi menyu qidiruvi va ichki (dropdown) menyular. Faqat ko'rinish.
 * Tokenlar Tailwind slate/indigo shkalasidan: ring-1, rounded-xl, shadow-sm, text-xs/sm.
 * ===================================================================================================== */

/* ---------- Menyu qidiruvi ---------- */
html:root .ek-filter {
    margin: .85rem .85rem .3rem; height: 40px; padding: 0 .55rem 0 .75rem; gap: .6rem;
    border: 0; border-radius: 12px; background: var(--ek-surface-2);
    box-shadow: inset 0 0 0 1px var(--ek-border), 0 1px 2px rgba(15, 23, 42, .04);
    transition: box-shadow .15s ease, background-color .15s ease;
}
html:root .ek-filter:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-muted) 45%, var(--ek-border)), 0 1px 2px rgba(15, 23, 42, .04); }
html:root .ek-filter:focus-within {
    background: var(--ek-surface); border: 0;
    box-shadow: inset 0 0 0 2px var(--ek-accent), 0 0 0 4px var(--ek-accent-ring);
}
html:root .ek-filter > svg { width: 16px; height: 16px; transition: color .15s ease; }
html:root .ek-filter:focus-within > svg { color: var(--ek-accent); }
html:root .ek-filter input { font-size: .875rem; line-height: 1.25rem; }
.ek-filter-kbd {
    flex: none; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
    font: 600 .7rem/1 var(--ek-font); color: var(--ek-muted); background: var(--ek-surface);
    border-radius: 6px; box-shadow: inset 0 0 0 1px var(--ek-border), 0 1px 0 var(--ek-border);
    transition: opacity .15s ease;
}
.ek-filter:focus-within .ek-filter-kbd, .ek-filter.has-value .ek-filter-kbd { display: none; }
html:root .ek-filter-clear { width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 999px; background: var(--ek-border); }
html:root .ek-filter-clear[hidden] { display: none; }
.ek-filter-empty { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 2.2rem 1.5rem; text-align: center; color: var(--ek-muted); }
.ek-filter-empty[hidden] { display: none; }
.ek-filter-empty svg { width: 30px; height: 30px; margin-bottom: .4rem; padding: 7px; box-sizing: content-box; border-radius: 12px; background: var(--ek-surface-2); }
.ek-filter-empty b { color: var(--ek-text); font-size: .875rem; font-weight: 600; }
.ek-filter-empty span { font-size: .75rem; }
html:root .menu-collapsed .ek-filter-empty { display: none; }

/* ---------- Ichki menyu (dropdown) ---------- */
html:root .main-menu .navigation li ul.menu-content {
    margin: .2rem .8rem .45rem 1.45rem; padding: .1rem 0 .1rem .7rem;
    border-left: 0; background: transparent;
}
/* yo'naltiruvchi chiziq */
html:root .main-menu .navigation li ul.menu-content::before {
    content: ''; position: absolute; left: 0; top: .3rem; bottom: .3rem; width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, var(--ek-border), color-mix(in srgb, var(--ek-border) 40%, transparent));
}
html:root .main-menu .navigation li.open > ul.menu-content::before,
html:root .main-menu .navigation li.sidebar-group-active > ul.menu-content::before {
    background: linear-gradient(180deg, var(--ek-accent), color-mix(in srgb, var(--ek-accent) 15%, transparent));
}
html:root .main-menu .navigation li ul.menu-content > li { margin: 2px 0; }
html:root .main-menu .navigation li ul.menu-content > li > a,
html:root .main-menu.menu-light .navigation > li > ul li > a,
html:root .main-menu.menu-dark .navigation > li > ul li > a {
    margin: 0; padding: .45rem .7rem; min-height: 36px; border-radius: 10px;
    font-size: .8125rem; line-height: 1.25rem; font-weight: 500; gap: .6rem; color: var(--ek-muted);
    transition: background-color .12s ease, color .12s ease;
}
/* belgi: kichik nuqta, hover/faolda kengayadi */
html:root .main-menu .navigation li ul.menu-content > li > a > svg,
html:root .main-menu .navigation li ul.menu-content > li > a > i {
    width: 6px; height: 6px; flex: none; border-radius: 50%; padding: 0; stroke: none; fill: none;
    background: color-mix(in srgb, var(--ek-muted) 55%, transparent); color: transparent; opacity: 1; font-size: 0;
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
html:root .main-menu .navigation li ul.menu-content > li > a > svg *,
html:root .main-menu .navigation li ul.menu-content > li > a > i::before { display: none; }
html:root .main-menu .navigation li ul.menu-content > li > a:hover { background: var(--ek-surface-2); color: var(--ek-text); }
html:root .main-menu .navigation li ul.menu-content > li > a:hover > svg,
html:root .main-menu .navigation li ul.menu-content > li > a:hover > i { background: var(--ek-accent); }
html:root .main-menu .navigation li ul.menu-content > li.active > a,
html:root .main-menu.menu-light .navigation > li > ul .active > a,
html:root .main-menu.menu-dark .navigation > li > ul .active > a {
    background: var(--ek-accent-soft); color: var(--ek-accent); font-weight: 600;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-accent) 22%, transparent);
}
html:root .main-menu .navigation li ul.menu-content > li.active > a > svg,
html:root .main-menu .navigation li ul.menu-content > li.active > a > i { background: var(--ek-accent); box-shadow: 0 0 0 3px var(--ek-accent-ring); }
html:root .main-menu .navigation li ul.menu-content > li.active > a::before { display: none; }
/* ichma-ich guruh sarlavhasi */
html:root .main-menu .navigation li ul.menu-content > li.has-sub > a { color: var(--ek-text); font-weight: 600; }
/* sevimli yulduzcha ichki menyuda */
html:root .main-menu .navigation li ul.menu-content > li > a > .ek-star { right: .35rem; }
/* ochilganda yumshoq paydo bo'ladi */
html:root .main-menu .navigation li.open > ul.menu-content > li { animation: none; }
html:root .main-menu .navigation li.open > ul.menu-content > li:nth-child(2) { animation-delay: .03s; }
html:root .main-menu .navigation li.open > ul.menu-content > li:nth-child(3) { animation-delay: .06s; }
html:root .main-menu .navigation li.open > ul.menu-content > li:nth-child(4) { animation-delay: .09s; }
html:root .main-menu .navigation li.open > ul.menu-content > li:nth-child(n+5) { animation-delay: .12s; }
@keyframes ek-sub-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html:root .main-menu .navigation li.open > ul.menu-content > li { animation: none; } }

/* ---------- Ctrl+K palitrasi ---------- */
html:root .ek-cmd-box { border-radius: 18px; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .35), 0 0 0 1px var(--ek-border); }
html:root .ek-cmd-input { padding: 1rem 1.2rem; }
html:root .ek-cmd-item { border-radius: 12px; padding: .65rem .85rem; }
html:root .ek-cmd-item svg { width: 32px; height: 32px; padding: 8px; box-sizing: border-box; border-radius: 9px; background: var(--ek-surface-2); }
html:root .ek-cmd-item.is-active svg { background: color-mix(in srgb, var(--ek-accent) 18%, transparent); }
html:root .ek-filter input, html:root .ek-filter input:focus { box-shadow: none !important; border: 0 !important; outline: 0 !important; background: transparent !important; padding: 0; height: 100%; }

/* =====================================================================================================
 * v5 — butun sayt: Tailwind uslubidagi yagona dizayn tizimi (faqat ko'rinish, selektorlar global).
 * Shkala: radius lg/xl, ring-1, shadow-sm, text-xs/sm, slate neytrallar, emerald/rose/amber/sky holat ranglari.
 * ===================================================================================================== */
:root {
    --tw-ring: 0 0 0 1px var(--ek-border);
    --tw-sm: 0 1px 2px 0 rgba(15, 23, 42, .05);
    --tw-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .06);
    --ek-sky: #0284c7;
}
html[data-theme='dark'] { --tw-sm: 0 1px 2px 0 rgba(0, 0, 0, .35); --tw-md: 0 4px 6px -1px rgba(0, 0, 0, .4); --ek-sky: #38bdf8; }

/* ---------- Matn va sarlavhalar ---------- */
html:root body { font-size: .875rem; line-height: 1.5rem; -webkit-font-smoothing: antialiased; }
html:root h1 { font-size: 1.875rem; font-weight: 700; } html:root h2 { font-size: 1.5rem; font-weight: 700; }
html:root h3 { font-size: 1.25rem; font-weight: 650; } html:root h4 { font-size: 1.125rem; font-weight: 650; }
html:root h5 { font-size: 1rem; font-weight: 650; } html:root h6 { font-size: .875rem; font-weight: 650; }
html:root code { color: var(--ek-accent); background: var(--ek-accent-soft); padding: .12rem .4rem; border-radius: 6px; font-size: .78em; }
html:root pre code { background: transparent; padding: 0; }
html:root .content-header-title { font-weight: 700; letter-spacing: -.02em; }
html:root .app-content .content-wrapper, html:root .content-body { position: relative; }

/* ---------- Kartalar ---------- */
html:root .card {
    background: var(--ek-surface); border: 0; border-radius: 16px;
    box-shadow: var(--tw-ring), var(--tw-sm);
}
html:root .card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ek-accent) 20%, var(--ek-border)), var(--tw-md); }
html:root .card-header { background: transparent; border-bottom: 1px solid var(--ek-border); padding: 1.1rem 1.4rem; }
html:root .card-body { padding: 1.4rem; }
html:root .card-footer { background: transparent; border-top: 1px solid var(--ek-border); }
html:root .card .card-title { font-size: 1rem; line-height: 1.5rem; font-weight: 650; margin: 0; }
html:root .card .card-header .heading-elements, html:root .card .card-header .card-subtitle { color: var(--ek-muted); }

/* ---------- Formalar ---------- */
html:root .form-control, html:root .form-select {
    min-height: 40px; padding: .5rem .8rem; font-size: .875rem; line-height: 1.25rem;
    border: 0; border-radius: 10px; background-color: var(--ek-surface);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-muted) 30%, var(--ek-border)), var(--tw-sm);
    transition: box-shadow .15s ease, background-color .15s ease;
}
html:root .form-control-sm, html:root .form-select-sm { min-height: 32px; padding: .25rem .6rem; font-size: .8125rem; border-radius: 8px; }
html:root textarea.form-control { min-height: 84px; }
html:root .form-control:hover:not(:focus):not(:disabled), html:root .form-select:hover:not(:focus):not(:disabled) {
    box-shadow: inset 0 0 0 1px var(--ek-muted), var(--tw-sm);
}
html:root .form-control:focus, html:root .form-select:focus {
    border: 0; box-shadow: inset 0 0 0 2px var(--ek-accent), 0 0 0 4px var(--ek-accent-ring);
}
html:root .form-control.is-invalid, html:root .form-select.is-invalid { box-shadow: inset 0 0 0 1px var(--ek-danger), 0 0 0 3px color-mix(in srgb, var(--ek-danger) 18%, transparent); background-image: none; }
html:root .form-control.is-valid, html:root .form-select.is-valid { box-shadow: inset 0 0 0 1px var(--ek-success); background-image: none; }
html:root .invalid-feedback { color: var(--ek-danger); font-size: .75rem; }
html:root .form-label, html:root label { font-size: .8125rem; font-weight: 600; color: var(--ek-text); margin-bottom: .35rem; }
html:root .form-check-label { font-weight: 500; }
html:root .form-check-input { border-color: color-mix(in srgb, var(--ek-muted) 55%, var(--ek-border)); background-color: var(--ek-surface); }
html:root .form-check-input[type='checkbox'] { border-radius: 6px; }
html:root .form-switch .form-check-input:checked { background-color: var(--ek-accent); }
html:root .input-group > .form-control, html:root .input-group > .form-select { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-muted) 30%, var(--ek-border)); }
html:root .input-group-text { border: 0; box-shadow: inset 0 0 0 1px var(--ek-border); border-radius: 10px; }
html:root .select2-container--default .select2-selection--single,
html:root .select2-container--default .select2-selection--multiple {
    min-height: 40px; border: 0; border-radius: 10px; display: flex; align-items: center;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-muted) 30%, var(--ek-border)), var(--tw-sm);
}
html:root .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.25rem; padding-left: .8rem; flex: 1; }
html:root .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; }
html:root .select2-container--default.select2-container--focus .select2-selection--single,
html:root .select2-container--default.select2-container--open .select2-selection--single,
html:root .select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 0; box-shadow: inset 0 0 0 2px var(--ek-accent), 0 0 0 4px var(--ek-accent-ring);
}
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--ek-accent-soft); color: var(--ek-accent); border: 0; border-radius: 8px; }
html:root .select2-dropdown { border: 0; border-radius: 12px; box-shadow: var(--tw-ring), 0 20px 25px -5px rgba(15, 23, 42, .18); overflow: hidden; }
html:root .select2-container--default .select2-search--dropdown .select2-search__field { border-radius: 8px; border: 1px solid var(--ek-border); background: var(--ek-surface); color: var(--ek-text); }
html:root .select2-results__option { padding: .5rem .8rem; }
html:root .flatpickr-calendar { border: 0; border-radius: 14px; box-shadow: var(--tw-ring), 0 20px 25px -5px rgba(15, 23, 42, .18); background: var(--ek-surface); }
html:root .flatpickr-day.selected, html:root .flatpickr-day.selected:hover { background: var(--ek-accent); border-color: var(--ek-accent); }

/* ---------- Tugmalar ---------- */
html:root .btn { font-size: .8125rem; line-height: 1.25rem; font-weight: 600; padding: .5rem .95rem; border-radius: 10px; }
html:root .btn-sm { padding: .3rem .65rem; font-size: .75rem; border-radius: 8px; }
html:root .btn-lg { padding: .7rem 1.3rem; font-size: .9375rem; border-radius: 12px; }
html:root .btn-icon { padding: .5rem; }
html:root .btn-icon.btn-sm { padding: .35rem; }
html:root .btn-success { background: var(--ek-success) !important; border-color: transparent !important; color: #fff !important; box-shadow: var(--tw-sm); }
html:root .btn-danger  { background: var(--ek-danger) !important;  border-color: transparent !important; color: #fff !important; box-shadow: var(--tw-sm); }
html:root .btn-warning { background: #f59e0b !important; border-color: transparent !important; color: #1c1300 !important; box-shadow: var(--tw-sm); }
html:root .btn-info    { background: var(--ek-sky) !important; border-color: transparent !important; color: #fff !important; box-shadow: var(--tw-sm); }
html:root .btn-dark, html:root .btn-secondary { background: #334155 !important; border-color: transparent !important; color: #fff !important; box-shadow: var(--tw-sm); }
html[data-theme='dark'] .btn-dark, html[data-theme='dark'] .btn-secondary { background: #475569 !important; }
html:root .btn-success:hover, html:root .btn-danger:hover, html:root .btn-warning:hover, html:root .btn-info:hover, html:root .btn-dark:hover, html:root .btn-secondary:hover {
    filter: brightness(1.08); box-shadow: var(--tw-md) !important; transform: translateY(-1px);
}
html:root .btn-outline-secondary, html:root .btn-outline-dark, html:root .btn-outline-success, html:root .btn-outline-danger, html:root .btn-outline-warning, html:root .btn-outline-info {
    background: var(--ek-surface) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--ek-border), var(--tw-sm);
}
html:root .btn-outline-secondary, html:root .btn-outline-dark { color: var(--ek-text) !important; }
html:root .btn-outline-success { color: var(--ek-success) !important; } html:root .btn-outline-danger { color: var(--ek-danger) !important; }
html:root .btn-outline-warning { color: var(--ek-warning) !important; } html:root .btn-outline-info { color: var(--ek-sky) !important; }
html:root .btn-outline-secondary:hover, html:root .btn-outline-dark:hover { background: var(--ek-surface-2) !important; }
html:root .btn-outline-success:hover { background: color-mix(in srgb, var(--ek-success) 10%, transparent) !important; }
html:root .btn-outline-danger:hover  { background: color-mix(in srgb, var(--ek-danger) 10%, transparent) !important; }
html:root .btn-outline-warning:hover { background: color-mix(in srgb, var(--ek-warning) 12%, transparent) !important; }
html:root .btn-outline-info:hover    { background: color-mix(in srgb, var(--ek-sky) 10%, transparent) !important; }
html:root .btn-outline-primary { border: 0 !important; box-shadow: inset 0 0 0 1px var(--ek-accent); }
html:root .btn:disabled, html:root .btn.disabled { opacity: .55; box-shadow: none; transform: none; }
/* Jadvaldagi amal tugmalari: yumshoq "plitka" */
html:root td .btn-icon, html:root td .btn.btn-sm, html:root td a.btn { border-radius: 8px; }
html:root td .btn-success, html:root td .btn-danger, html:root td .btn-warning, html:root td .btn-info, html:root td .btn-primary, html:root td .btn-secondary {
    box-shadow: none; filter: none; transform: none;
}
html:root td .btn-success { background: color-mix(in srgb, var(--ek-success) 14%, transparent) !important; color: var(--ek-success) !important; }
html:root td .btn-danger  { background: color-mix(in srgb, var(--ek-danger) 13%, transparent) !important;  color: var(--ek-danger) !important; }
html:root td .btn-warning { background: color-mix(in srgb, #f59e0b 17%, transparent) !important; color: var(--ek-warning) !important; }
html:root td .btn-info    { background: color-mix(in srgb, var(--ek-sky) 13%, transparent) !important; color: var(--ek-sky) !important; }
html:root td .btn-primary { background: var(--ek-accent-soft) !important; color: var(--ek-accent) !important; box-shadow: none; }
html:root td .btn-secondary, html:root td .btn-dark { background: var(--ek-surface-2) !important; color: var(--ek-muted) !important; }
html:root td .btn-success:hover { background: var(--ek-success) !important; color: #fff !important; }
html:root td .btn-danger:hover  { background: var(--ek-danger) !important;  color: #fff !important; }
html:root td .btn-warning:hover { background: #f59e0b !important; color: #1c1300 !important; }
html:root td .btn-info:hover    { background: var(--ek-sky) !important; color: #fff !important; }
html:root td .btn-primary:hover { background: var(--ek-accent) !important; color: var(--ek-on-accent) !important; }
html:root td .btn svg, html:root td .btn i { width: 15px; height: 15px; }

/* ---------- Jadvallar ---------- */
html:root .table-bordered, html:root .table-bordered > :not(caption) > * > * { border-width: 0; }
html:root .table-bordered > :not(caption) > * > * { border-bottom-width: 1px; }
html:root .table > :not(caption) > * > * { font-size: .8125rem; vertical-align: middle; }
html:root .table tbody td a:not(.btn) { font-weight: 500; }
html:root .table thead th { font-size: .6875rem; padding-top: .7rem; padding-bottom: .7rem; white-space: nowrap; }
html:root .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: color-mix(in srgb, var(--ek-surface-2) 55%, transparent); }
html:root .table-light, html:root .table-light > * > * { --bs-table-bg: var(--ek-surface-2); background: var(--ek-surface-2); color: var(--ek-muted); }
html:root .table-responsive { scrollbar-width: thin; }
/* Uzun matnli katak (modern.js → wrapLongCells): qator bo'yicha o'raladi, kenglik cheklanadi, 4 qatordan keyin qisqartiriladi. */
/* Jadval katagida max-width ishlamaydi (auto layout) — kenglik ichki blokda cheklanadi. */
html:root .table td.ek-td-long { white-space: normal !important; }
html:root .ek-td-clamp { min-width: 14rem; max-width: 32rem; overflow-wrap: anywhere; word-break: normal; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
html:root .ek-td-clamp.is-clamped { cursor: pointer; position: relative; }
html:root .ek-td-clamp.is-clamped:not(.is-open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.2em; background: linear-gradient(transparent, var(--ek-surface, #fff)); pointer-events: none; }
html:root .ek-td-clamp.is-open { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
html:root .ek-td-clamp:focus-visible { outline: 2px solid var(--ek-accent); outline-offset: 2px; border-radius: 4px; }
html:root div.dataTables_wrapper div.dataTables_filter input, html:root div.dataTables_wrapper div.dataTables_length select {
    border: 0; border-radius: 10px; min-height: 36px; background: var(--ek-surface); color: var(--ek-text);
    box-shadow: inset 0 0 0 1px var(--ek-border), var(--tw-sm);
}
html:root .dataTables_info { color: var(--ek-muted); font-size: .8125rem; }

/* ---------- Badge, paginatsiya, alert, tab ---------- */
html:root .badge { font-size: .72rem; line-height: 1rem; padding: .28rem .6rem; border-radius: 999px; font-weight: 600; letter-spacing: .01em; }
html:root .pagination { gap: 4px; }
html:root .page-link { border: 0; border-radius: 10px !important; min-width: 36px; text-align: center; font-weight: 600; font-size: .8125rem; box-shadow: inset 0 0 0 1px var(--ek-border); }
html:root .page-item.active .page-link { box-shadow: 0 4px 10px -2px var(--ek-accent-ring); }
html:root .alert { border: 0; padding: .9rem 1.1rem; box-shadow: inset 0 0 0 1px var(--ek-border); background: var(--ek-surface); color: var(--ek-text); }
html:root .alert-success { background: color-mix(in srgb, var(--ek-success) 10%, var(--ek-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-success) 30%, transparent); color: var(--ek-success); }
html:root .alert-danger  { background: color-mix(in srgb, var(--ek-danger) 9%, var(--ek-surface));  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-danger) 30%, transparent);  color: var(--ek-danger); }
html:root .alert-warning { background: color-mix(in srgb, #f59e0b 11%, var(--ek-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #f59e0b 35%, transparent); color: var(--ek-warning); }
html:root .alert-info    { background: color-mix(in srgb, var(--ek-sky) 9%, var(--ek-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-sky) 30%, transparent); color: var(--ek-sky); }
html:root .alert .alert-heading, html:root .alert h4 { color: inherit; font-size: .95rem; }
html:root .nav-pills .nav-link { border-radius: 10px; font-weight: 600; color: var(--ek-muted); }
html:root .nav-pills .nav-link:hover:not(.active) { background: var(--ek-surface-2); color: var(--ek-text); }
html:root .progress { height: 8px; }
html:root .progress-bar { background: linear-gradient(90deg, var(--ek-accent), color-mix(in srgb, var(--ek-accent) 60%, #2fc79f)); border-radius: 99px; }

/* ---------- Modal, dropdown, tooltip, toast ---------- */
html:root .modal-backdrop.show { opacity: 1; background: rgba(15, 23, 42, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html:root .modal-content { border: 0; border-radius: 20px; box-shadow: var(--tw-ring), 0 25px 50px -12px rgba(15, 23, 42, .4); }
html:root .modal-header { padding: 1.2rem 1.5rem; }
html:root .modal-title { font-size: 1.05rem; font-weight: 650; }
html:root .modal-body { padding: 1.5rem; }
html:root .modal-footer { padding: 1rem 1.5rem; background: color-mix(in srgb, var(--ek-surface-2) 55%, transparent); border-radius: 0 0 20px 20px; }
html:root .dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--tw-ring), 0 20px 25px -5px rgba(15, 23, 42, .15), 0 8px 10px -6px rgba(15, 23, 42, .1); }
html:root .dropdown-item { font-size: .8125rem; font-weight: 500; padding: .5rem .75rem; margin: 1px 0; border-radius: 8px; }
html:root .tooltip-inner { background: #0f172a; color: #f8fafc; border-radius: 8px; font-size: .75rem; padding: .35rem .6rem; box-shadow: var(--tw-md); }
html:root .tooltip .tooltip-arrow::before { border-top-color: #0f172a; border-bottom-color: #0f172a; }
html:root .popover { border: 0; border-radius: 14px; box-shadow: var(--tw-ring), 0 20px 25px -5px rgba(15, 23, 42, .15); background: var(--ek-surface); }
html:root .list-group-item { border-color: var(--ek-border); }
html:root .accordion-item { border: 0; border-radius: 14px !important; margin-bottom: .6rem; box-shadow: var(--tw-ring), var(--tw-sm); overflow: hidden; background: var(--ek-surface); }
html:root .accordion-button { background: transparent; color: var(--ek-text); font-weight: 600; box-shadow: none; }
html:root .accordion-button:not(.collapsed) { color: var(--ek-accent); background: var(--ek-accent-soft); }

/* ---------- Navbar, breadcrumb, footer ---------- */
html:root .header-navbar.floating-nav { border: 0; box-shadow: var(--tw-ring), var(--tw-md); background: color-mix(in srgb, var(--ek-surface) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html:root .breadcrumb { font-size: .8125rem; }
html:root .breadcrumb-item a { font-weight: 500; }
html:root .breadcrumb-item.active { color: var(--ek-text); font-weight: 600; }
html:root footer.footer { font-size: .75rem; padding-top: 1.2rem; }
html:root footer.footer a { font-weight: 600; }

/* ---------- Skrollbar, tanlash ---------- */
html:root ::-webkit-scrollbar { width: 10px; height: 10px; }
html:root ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ek-muted) 35%, transparent); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
html:root ::-webkit-scrollbar-thumb:hover { background-color: var(--ek-muted); }

/* ---------- Eski inline ranglar (hujjatlar, tashkilotlar, murojaatlar...) ---------- */
html:root .bg-light { background-color: var(--ek-surface-2) !important; color: var(--ek-text); }
html:root .bg-white { background-color: var(--ek-surface) !important; }
html:root .border, html:root .border-bottom, html:root .border-top { border-color: var(--ek-border) !important; }
html:root .text-dark, html:root .text-body { color: var(--ek-text) !important; }
html:root .text-secondary { color: var(--ek-muted) !important; }
html:root .text-success { color: var(--ek-success) !important; } html:root .text-danger { color: var(--ek-danger) !important; }
html:root .text-warning { color: var(--ek-warning) !important; } html:root .text-info { color: var(--ek-sky) !important; }
html:root .rounded { border-radius: 10px !important; }
html:root .shadow-sm { box-shadow: var(--tw-sm) !important; }
html:root .swal2-popup { border-radius: 20px; background: var(--ek-surface); color: var(--ek-text); }
html:root .swal2-title, html:root .swal2-html-container { color: var(--ek-text); }
html:root .swal2-styled.swal2-confirm { background: var(--ek-accent) !important; border-radius: 10px; box-shadow: none; }
html:root .swal2-styled.swal2-cancel { border-radius: 10px; }

/* =====================================================================================================
 * v6 — sidebar, header, footer: chuqurroq zamonaviy qatlam (glass, gradient, ikonka "plitkalar")
 * ===================================================================================================== */

/* ---------- Header ---------- */
html:root .header-navbar.floating-nav {
    padding: 0 .6rem; min-height: 4rem; border-radius: 18px;
    background: color-mix(in srgb, var(--ek-surface) 78%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ek-border) 80%, transparent), 0 10px 30px -12px rgba(15, 23, 42, .18);
}
html:root .header-navbar .navbar-container { padding-left: .4rem; padding-right: .4rem; }
html:root .header-navbar .navbar-nav > .nav-item > .nav-link,
html:root .header-navbar .nav-link.nav-link-style {
    width: 40px; height: 40px; padding: 0; margin: 0 2px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; color: var(--ek-muted); transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
html:root .header-navbar .navbar-nav > .nav-item > .nav-link:hover,
html:root .header-navbar .nav-link.nav-link-style:hover { background: var(--ek-surface-2); color: var(--ek-text); box-shadow: inset 0 0 0 1px var(--ek-border); }
html:root .header-navbar .navbar-nav > .nav-item.dropdown-language > .nav-link,
html:root .header-navbar .navbar-nav > .nav-item.dropdown-user > .nav-link { width: auto; padding: 0 .7rem; }
html:root .header-navbar .navbar-nav > .nav-item.dropdown-user > .nav-link { padding: 0 .35rem 0 .8rem; }
html:root .header-navbar .navbar-nav > .nav-item.dropdown-user { margin-left: .4rem; padding-left: .7rem; border-left: 1px solid var(--ek-border); }
html:root .header-navbar .ek-chip, html:root .header-navbar .ek-search-trigger {
    height: 40px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--ek-border); background: var(--ek-surface-2);
}
html:root .header-navbar .ek-search-trigger { transition: box-shadow .15s ease, background-color .15s ease; }
html:root .header-navbar .ek-search-trigger:hover { background: var(--ek-surface); box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 4px var(--ek-accent-ring); }
html:root .header-navbar .ek-search-trigger kbd, html:root .header-navbar .ek-search-trigger .ek-kbd {
    background: var(--ek-surface); box-shadow: inset 0 0 0 1px var(--ek-border), 0 1px 0 var(--ek-border); border: 0; border-radius: 6px;
}
html:root .header-navbar .breadcrumb { padding: 0; margin: 0; background: transparent; }
html:root .header-navbar .breadcrumb-item a { color: var(--ek-muted); }
html:root .header-navbar .breadcrumb-item a:hover { color: var(--ek-accent); }
html:root .header-navbar .breadcrumb-item:last-child { color: var(--ek-text); font-weight: 650; }
html:root .header-navbar .dropdown-user .avatar { width: 40px; height: 40px; }
html:root .header-navbar .badge-up { box-shadow: 0 0 0 2px var(--ek-surface); }
/* skroll chizig'i yo'g'onroq, yorqinroq */
html:root .ek-progress { height: 3px; } html:root .ek-progress i { box-shadow: 0 0 10px var(--ek-accent-ring); }

/* ---------- Sidebar ---------- */
html:root .main-menu, html:root .main-menu.menu-light, html:root .main-menu.menu-dark {
    border-right: 0;
    background:
        radial-gradient(260px 220px at 0% 0%, var(--ek-accent-soft), transparent 70%),
        radial-gradient(240px 260px at 100% 100%, color-mix(in srgb, var(--ek-accent) 8%, transparent), transparent 70%),
        var(--ek-surface);
    box-shadow: 1px 0 0 var(--ek-border), 12px 0 40px -24px rgba(15, 23, 42, .25);
}
html:root .main-menu .navbar-header { border-bottom: 0; height: 5rem; position: relative; }
html:root .main-menu .navbar-header::after { content: ''; position: absolute; left: 1.2rem; right: 1.2rem; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--ek-border), transparent); }
html:root .main-menu .navbar-header .navbar-brand img { filter: drop-shadow(0 4px 10px var(--ek-accent-ring)); }
html:root .main-menu .navbar-header .navbar-brand .brand-text {
    background: linear-gradient(135deg, var(--ek-text), var(--ek-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; letter-spacing: -.02em;
}
html:root .main-menu .navigation .navigation-header { margin: 1.4rem 1.6rem .4rem; font-size: .65rem; letter-spacing: .14em; color: color-mix(in srgb, var(--ek-muted) 85%, transparent); }
html:root .main-menu .navigation .navigation-header::after { background: linear-gradient(90deg, var(--ek-border), transparent); }

/* ikonka "plitkasi" */
html:root .main-menu .navigation > li > a { padding: .42rem .65rem .42rem .5rem; min-height: 44px; gap: .8rem; border-radius: 12px; }
html:root .main-menu .navigation > li > a > i,
html:root .main-menu .navigation > li > a > svg,
html:root .main-menu .navigation > li > a > img {
    box-sizing: content-box; width: 20px; height: 20px; padding: 7px; border-radius: 10px;
    background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-border) 70%, transparent);
    transition: background-color .12s ease, color .12s ease;
}
html:root .main-menu .navigation > li > a:hover > i, html:root .main-menu .navigation > li > a:hover > svg, html:root .main-menu .navigation > li > a:hover > img {
    background: var(--ek-accent-soft); color: var(--ek-accent);
}
html:root .main-menu .navigation > li.active > a,
html:root .main-menu.menu-light .navigation > li.active > a,
html:root .main-menu.menu-dark .navigation > li.active > a {
    background: linear-gradient(90deg, var(--ek-accent-soft), transparent 95%); box-shadow: none; color: var(--ek-text); font-weight: 650;
}
html:root .main-menu .navigation > li.active > a > i,
html:root .main-menu .navigation > li.active > a > svg,
html:root .main-menu .navigation > li.active > a > img {
    background: linear-gradient(135deg, var(--ek-accent), color-mix(in srgb, var(--ek-accent) 70%, #ff6bd6)); color: var(--ek-on-accent);
    box-shadow: 0 6px 14px -4px var(--ek-accent-ring); filter: none;
}
html:root .main-menu .navigation > li.active > a > img { filter: brightness(0) invert(1); }
html:root .main-menu .navigation > li.active > a::before { left: -.8rem; width: 4px; top: 18%; bottom: 18%; box-shadow: 0 0 12px var(--ek-accent-ring); }
html:root .main-menu .navigation li.has-sub.open > a > i, html:root .main-menu .navigation li.has-sub.open > a > svg { background: var(--ek-accent-soft); color: var(--ek-accent); }

/* Filtr */
html:root .ek-filter { margin: .9rem 1rem .4rem; height: 42px; border-radius: 14px; background: color-mix(in srgb, var(--ek-surface-2) 70%, transparent); }

/* Foydalanuvchi kartasi */
html:root .ek-user-card {
    margin: .5rem 1rem 1rem; padding: .7rem .75rem; border: 0; border-radius: 16px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ek-accent) 14%, var(--ek-surface-2)), var(--ek-surface-2));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-accent) 18%, var(--ek-border)), 0 8px 20px -12px var(--ek-accent-ring);
}
html:root .ek-user-card::before { content: ''; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: var(--ek-accent-soft); }
html:root .ek-user-avatar .avatar, html:root .ek-user-avatar .avatar-content { box-shadow: 0 0 0 2px var(--ek-surface), 0 0 0 4px var(--ek-accent-ring); }
html:root .ek-user-meta b { font-weight: 700; }

/* Yig'ilgan holat */
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li > a { padding: 0; margin: 4px .6rem; min-height: 46px; justify-content: center; }
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li > a > i,
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li > a > svg { margin: 0; }

/* ---------- Footer ---------- */
html:root footer.footer.ek-footer { position: static; background: transparent; box-shadow: none; padding: 0 1.4rem 1.2rem; margin: 1.5rem 0 0; }
html:root .ek-footer__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .85rem 1.2rem; border-radius: 16px; font-size: .78rem; color: var(--ek-muted);
    background: color-mix(in srgb, var(--ek-surface) 70%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px var(--ek-border), var(--tw-sm);
}
html:root .ek-footer__copy a { color: var(--ek-text); font-weight: 700; margin: 0 .15rem; background: linear-gradient(90deg, var(--ek-accent), color-mix(in srgb, var(--ek-accent) 55%, #ff6bd6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html:root .ek-footer__meta { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
html:root .ek-footer__chip {
    display: inline-flex; align-items: center; gap: .4rem; height: 28px; padding: 0 .7rem; border-radius: 999px;
    background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border); color: var(--ek-muted); font-weight: 600; font-variant-numeric: tabular-nums;
}
html:root .ek-footer__chip svg { width: 13px; height: 13px; }
html:root .ek-footer__chip--ok { color: var(--ek-text); }
html:root .ek-footer__chip .ek-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ek-success) 25%, transparent); }
html:root .btn.scroll-top { border-radius: 14px !important; width: 44px; height: 44px; box-shadow: 0 12px 24px -8px var(--ek-accent-ring) !important; }

/* ---------- v7 — sidebar: tinch (animatsiyasiz) holat; pastki chekka yumshoq so'nadi ---------- */
html:root .main-menu .navigation li, html:root .main-menu .navigation a, html:root .main-menu .navigation a > * { animation: none !important; }
html:root .main-menu .main-menu-content { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); padding-bottom: .5rem; }

/* ---------- v7 — mobil ko'rinish ---------- */
@media (max-width: 1199.98px) {
    html:root .main-menu.menu-fixed { width: min(300px, 86vw); box-shadow: 0 0 0 1px var(--ek-border), 24px 0 60px -20px rgba(15, 23, 42, .45); }
    html:root .sidenav-overlay.show { background: rgba(15, 23, 42, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
}
@media (max-width: 767.98px) {
    html:root .header-navbar.floating-nav { border-radius: 14px; min-height: 3.6rem; }
    html:root .app-content.content { padding-top: 6.3rem !important; }
    html:root .header-navbar .ek-chip { display: none; }
    html:root .header-navbar .navbar-nav > .nav-item > .nav-link { width: 36px; height: 36px; margin: 0; }
    html:root .header-navbar .navbar-nav > .nav-item.dropdown-user { margin-left: .15rem; padding-left: .35rem; }
    html:root .card { border-radius: 14px; }
    html:root .card-header { padding: .9rem 1rem; }
    html:root .card-body { padding: 1rem; }
    html:root .btn { padding: .5rem .8rem; }
    html:root .modal-dialog { margin: .75rem; }
    html:root .modal-body, html:root .modal-header, html:root .modal-footer { padding-left: 1rem; padding-right: 1rem; }
    html:root .table > :not(caption) > * > * { padding: .6rem .7rem; }
    html:root .ek-dash .ek-kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
    html:root .ek-kpi { padding: .85rem; gap: .65rem; flex-direction: column; }
    html:root .ek-kpi__value { font-size: 1.35rem; }
    html:root .ek-dash .ek-card__head { flex-direction: column; align-items: flex-start; }
    html:root footer.footer.ek-footer { padding: 0 .75rem 1rem; }
    html:root .ek-footer__inner { padding: .75rem .9rem; justify-content: center; text-align: center; }
    html:root .btn.scroll-top { right: .9rem; bottom: .9rem; width: 40px; height: 40px; }
    html:root .page-link { min-width: 32px; padding: .35rem .5rem; }
    html:root .dropdown-menu { max-width: calc(100vw - 1.5rem); }
}

/* =====================================================================================================
 * v8 — yengil sidebar (tekis, plitkasiz), bitta rangli fokus, zamonaviy qidiruv oynasi
 * ===================================================================================================== */

/* ---------- Sidebar: tekis va yengil ---------- */
html:root .main-menu, html:root .main-menu.menu-light, html:root .main-menu.menu-dark { background: var(--ek-surface); box-shadow: 1px 0 0 var(--ek-border); }
html:root .main-menu .navbar-header .navbar-brand img { filter: none; }
html:root .main-menu .navbar-header .navbar-brand .brand-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ek-text); font-weight: 700; }
html:root .main-menu .navigation > li > a { min-height: 38px; padding: .45rem .75rem; margin: 0 .75rem; gap: .7rem; border-radius: 10px; font-size: .875rem; }
html:root .main-menu .navigation > li > a > i,
html:root .main-menu .navigation > li > a > svg,
html:root .main-menu .navigation > li > a > img {
    box-sizing: border-box; width: 18px; height: 18px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit;
    stroke-width: 1.7; opacity: .8; transition: none;
}
html:root .main-menu .navigation > li > a > i { font-size: 15px; line-height: 18px; text-align: center; }
html:root .main-menu .navigation > li > a:hover > i, html:root .main-menu .navigation > li > a:hover > svg, html:root .main-menu .navigation > li > a:hover > img { background: transparent; transform: none; color: inherit; opacity: 1; }
html:root .main-menu .navigation > li > a:hover { background: var(--ek-surface-2); color: var(--ek-text); }
html:root .main-menu .navigation > li.active > a,
html:root .main-menu.menu-light .navigation > li.active > a,
html:root .main-menu.menu-dark .navigation > li.active > a { background: var(--ek-accent-soft); box-shadow: none; color: var(--ek-accent); font-weight: 600; }
html:root .main-menu .navigation > li.active > a > i, html:root .main-menu .navigation > li.active > a > svg, html:root .main-menu .navigation > li.active > a > img {
    background: transparent; color: var(--ek-accent); box-shadow: none; filter: none; opacity: 1;
}
html:root .main-menu .navigation > li.active > a > img { filter: none; }
html:root .main-menu .navigation > li.active > a::before { display: none; }
html:root .main-menu .navigation li.has-sub.open > a > i, html:root .main-menu .navigation li.has-sub.open > a > svg { background: transparent; color: var(--ek-accent); }
html:root .main-menu .navigation .navigation-header { margin: 1.1rem 1.5rem .3rem; font-size: .66rem; letter-spacing: .1em; }
html:root .main-menu .navigation .navigation-header::after { display: none; }
html:root .main-menu .navbar-header::after { display: none; }
html:root .main-menu .navbar-header { border-bottom: 1px solid var(--ek-border); }
/* ichki menyu */
html:root .main-menu .navigation li ul.menu-content { margin: .1rem .75rem .3rem 1.6rem; padding-left: .5rem; }
html:root .main-menu .navigation li ul.menu-content::before { background: var(--ek-border); width: 1px; top: 0; bottom: 0; }
html:root .main-menu .navigation li.open > ul.menu-content::before, html:root .main-menu .navigation li.sidebar-group-active > ul.menu-content::before { background: var(--ek-border); }
html:root .main-menu .navigation li ul.menu-content > li > a { min-height: 32px; padding: .35rem .65rem; font-size: .8125rem; border-radius: 8px; }
html:root .main-menu .navigation li ul.menu-content > li > a > svg,
html:root .main-menu .navigation li ul.menu-content > li > a > i { width: 4px; height: 4px; background: var(--ek-muted); opacity: .55; }
html:root .main-menu .navigation li ul.menu-content > li.active > a { box-shadow: none; }
html:root .main-menu .navigation li ul.menu-content > li.active > a > svg, html:root .main-menu .navigation li ul.menu-content > li.active > a > i { background: var(--ek-accent); box-shadow: none; opacity: 1; }
/* foydalanuvchi kartasi — oddiy */
html:root .ek-user-card { background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border); border-radius: 12px; }
html:root .ek-user-card::before { display: none; }
html:root .ek-user-avatar .avatar, html:root .ek-user-avatar .avatar-content { box-shadow: none; }
html:root .ek-filter { background: var(--ek-surface-2); border-radius: 10px; height: 38px; }
html:root .menu-collapsed .main-menu:not(.expanded) .navigation > li > a { margin: 2px .6rem; min-height: 40px; }

/* ---------- Input fokusi: faqat bitta rang (accent) — ingichka chiziq + yumshoq halqa ---------- */
html:root .form-control:focus, html:root .form-select:focus, html:root textarea:focus, html:root input:focus,
html:root .select2-container--default.select2-container--focus .select2-selection--single,
html:root .select2-container--default.select2-container--open .select2-selection--single,
html:root .select2-container--default.select2-container--focus .select2-selection--multiple,
html:root .select2-container--default.select2-container--open .select2-selection--multiple,
html:root .ek-filter:focus-within {
    border-color: transparent; outline: 0;
    box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 3px var(--ek-accent-soft);
}
html:root .form-control:focus, html:root .form-select:focus, html:root .ek-filter:focus-within { background-color: var(--ek-surface); }
html:root .form-control:focus-visible, html:root .form-select:focus-visible, html:root input:focus-visible, html:root textarea:focus-visible, html:root select:focus-visible { outline: 0; }
html:root .form-check-input:focus { box-shadow: 0 0 0 3px var(--ek-accent-soft); border-color: var(--ek-accent); }
html:root .form-control.is-invalid:focus { box-shadow: inset 0 0 0 1px var(--ek-danger), 0 0 0 3px color-mix(in srgb, var(--ek-danger) 14%, transparent); }
html:root .ek-filter input, html:root .ek-filter input:focus { box-shadow: none !important; }
html:root .ek-filter > svg { transition: none; } html:root .ek-filter:focus-within > svg { color: var(--ek-accent); }
html:root .ek-cmd-input input:focus { box-shadow: none; }
html:root .input-group:focus-within > .form-control { box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 3px var(--ek-accent-soft); }

/* ---------- Qidiruv oynasi ---------- */
html:root .ek-cmd-box { border-radius: 20px; }
html:root .ek-cmd-input { padding: .85rem .9rem .85rem 1.2rem; gap: .75rem; }
.ek-cmd-close {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; cursor: pointer;
    border: 0; border-radius: 10px; color: var(--ek-muted); background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border);
    transition: background-color .12s ease, color .12s ease;
}
.ek-cmd-close svg { width: 15px; height: 15px; }
.ek-cmd-close:hover { background: color-mix(in srgb, var(--ek-danger) 12%, transparent); color: var(--ek-danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-danger) 28%, transparent); }
.ek-cmd-sec { padding: .65rem .85rem .25rem; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ek-muted); list-style: none; }
html:root .ek-cmd-item.is-action svg { color: var(--ek-warning); }
html:root .ek-cmd-item.is-active.is-action svg { color: var(--ek-accent); }
html:root .ek-cmd-item, html:root .ek-cmd-item:hover { color: var(--ek-text); }
html:root .ek-cmd-item.is-active, html:root .ek-cmd-item.is-active:hover { color: var(--ek-accent); }

/* ---------- v9 — sevimlilar: yulduzcha va o'chirish tugmasi ---------- */
/* Yulduzcha: qator o'ngida, vertikal markazda; faqat ustiga kelganda ko'rinadi (sevimli bo'lsa doim) */
html:root .main-menu .navigation li > a { position: relative; }
html:root .main-menu .navigation .ek-star {
    position: absolute; right: .45rem; top: 50%; width: 26px; height: 26px; margin: -13px 0 0; padding: 0;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
    transform: none; opacity: 0; color: var(--ek-muted); background: transparent; transition: none;
}
html:root .main-menu .navigation .ek-star svg { width: 15px; height: 15px; stroke-width: 1.8; }
html:root .main-menu .navigation li:hover > a > .ek-star { opacity: 1; transform: none; }
html:root .main-menu .navigation li > a > .ek-star:hover { background: var(--ek-surface); color: #f59e0b; box-shadow: inset 0 0 0 1px var(--ek-border); }
html:root .main-menu .navigation li > a > .ek-star.is-on { opacity: 1; color: #f59e0b; transform: none; }
html:root .main-menu .navigation li > a > .ek-star.is-on svg { fill: currentColor; }
html:root .main-menu .navigation li > a:has(> .ek-star) .menu-title,
html:root .main-menu .navigation li > a:has(> .ek-star) .menu-item { padding-right: 1.6rem; }
/* sevimli bo'lgan punkt: yulduzcha doim ko'rinadi, lekin badge bilan to'qnashmasin */
html:root .main-menu .navigation li > a:has(> .ek-star) .badge { margin-right: 1.5rem; }

/* Sevimlilar bo'limi */
html:root .main-menu .navigation .ek-fav > a { padding-right: 2.2rem; }
html:root .main-menu .navigation .ek-fav > a > svg:first-child {
    width: 18px; height: 18px; flex: none; padding: 0; box-sizing: border-box; color: #f59e0b; fill: currentColor; stroke-width: 1.6; background: transparent; box-shadow: none; opacity: 1;
}
html:root .main-menu .navigation .ek-fav.active > a > svg:first-child { color: #f59e0b; }
html:root .main-menu .navigation .ek-fav .menu-title { min-width: 0; }
.ek-fav-rm {
    position: absolute; right: .45rem; top: 50%; width: 24px; height: 24px; margin-top: -12px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer;
    color: var(--ek-muted); opacity: 0;
}
.ek-fav-rm svg { width: 13px; height: 13px; }
.ek-fav:hover .ek-fav-rm, .ek-fav-rm:focus-visible { opacity: 1; }
.ek-fav-rm:hover { background: color-mix(in srgb, var(--ek-danger) 13%, transparent); color: var(--ek-danger); }
@media (hover: none) { .ek-fav-rm, html:root .main-menu .navigation .ek-star { opacity: .85; } }
html:root .menu-collapsed .main-menu:not(.expanded) .ek-fav-rm { display: none; }
html:root .main-menu .navigation li > a:hover, html:root .main-menu .navigation li:hover > a,
html:root .main-menu.menu-light .navigation > li:not(.active):not(.open):hover > a { transform: none !important; }
html:root .main-menu .navigation li a:hover > *, html:root .main-menu.menu-light .navigation li.nav-item a:hover > *,
html:root .main-menu.menu-light .navigation li.nav-item ul.menu-content li a:hover > * { transform: none !important; }
.ek-help-box { width: min(440px, 100%); }
.ek-help-box .ek-cmd-input { justify-content: space-between; color: var(--ek-text); }
.ek-help-list { list-style: none; margin: 0; padding: .4rem .6rem .8rem; }
.ek-help-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .5rem; border-bottom: 1px solid var(--ek-border); color: var(--ek-text); }
.ek-help-list li:last-child { border-bottom: 0; }
.ek-help-list .ek-kbd { margin-left: .15rem; }

/* ---------- v10 — bosganda (sichqoncha) ramka/kontur chiqmasin; klaviatura fokusi esa qoladi ---------- */
html:root a:focus:not(:focus-visible), html:root button:focus:not(:focus-visible), html:root [role='button']:focus:not(:focus-visible),
html:root .nav-link:focus:not(:focus-visible), html:root .page-link:focus:not(:focus-visible), html:root .dropdown-item:focus:not(:focus-visible),
html:root .accordion-button:focus:not(:focus-visible), html:root summary:focus:not(:focus-visible), html:root [tabindex]:focus:not(:focus-visible),
html:root .select2-selection:focus:not(:focus-visible), html:root .main-menu *:focus:not(:focus-visible) { outline: 0 !important; box-shadow: none; }
html:root .btn:focus:not(:focus-visible), html:root .btn:active:focus { outline: 0 !important; }
html:root .btn-primary:focus:not(:focus-visible) { box-shadow: 0 4px 14px -4px var(--ek-accent-ring) !important; }
html:root .main-menu a, html:root .main-menu a:focus, html:root .main-menu a:active { outline: 0 !important; -webkit-tap-highlight-color: transparent; }
html:root .main-menu a:focus-visible { box-shadow: inset 0 0 0 1px var(--ek-accent); }
html:root table a:focus, html:root .card a:focus:not(:focus-visible), html:root .page-link:focus:not(:focus-visible) { outline: 0; box-shadow: none; }

/* ---------- v11 — sevimlilar qatori oddiy qator bilan bir xil: ikonka 20px, o'ngda yulduzcha tugmasi ---------- */
html:root .main-menu .navigation .ek-fav > a > svg:first-child { width: 20px; height: 20px; }
html:root .main-menu .navigation .ek-fav > a { padding-right: .75rem; }
html:root .main-menu .navigation .ek-fav > a > .ek-star.ek-fav-rm { right: .45rem; margin: -13px 0 0; width: 26px; height: 26px; opacity: 0; color: #f59e0b; }
html:root .main-menu .navigation .ek-fav:hover > a > .ek-star.ek-fav-rm { opacity: 1; }
html:root .main-menu .navigation .ek-fav > a > .ek-star.ek-fav-rm:hover { background: color-mix(in srgb, var(--ek-danger) 12%, transparent); color: var(--ek-danger); box-shadow: none; }
html:root .main-menu .navigation .ek-fav > a > .ek-star.ek-fav-rm:hover svg { fill: none; }

/* ---------- v12 — sevimlilar: chapda ikonka, o'ngda aniq tugma (yulduzcha / ✕), bir-biriga tegmaydi ---------- */
html:root .main-menu .navigation > li > a { padding-left: .9rem; padding-right: 2.5rem; }
html:root .main-menu .navigation li ul.menu-content > li > a { padding-right: 2.5rem; }
html:root .main-menu .navigation .ek-star, html:root .main-menu .navigation .ek-fav-rm {
    right: .55rem; width: 26px; height: 26px; margin-top: -13px; border-radius: 8px;
}
html:root .main-menu .navigation .ek-fav > a > .ek-fav-rm {
    position: absolute; display: inline-flex; align-items: center; justify-content: center; opacity: 0; color: var(--ek-muted); background: transparent;
}
html:root .main-menu .navigation .ek-fav > a > .ek-fav-rm svg { width: 14px; height: 14px; }
html:root .main-menu .navigation .ek-fav:hover > a > .ek-fav-rm { opacity: 1; }
html:root .main-menu .navigation .ek-fav > a > .ek-fav-rm:hover { background: color-mix(in srgb, var(--ek-danger) 13%, transparent); color: var(--ek-danger); }
html:root .main-menu .navigation .ek-fav > a { padding-right: 2.5rem; }
html:root .main-menu .navigation li > a:has(> .ek-star) .menu-title, html:root .main-menu .navigation li > a:has(> .ek-star) .menu-item { padding-right: 0; }
html:root .main-menu .navigation li > a .badge { margin-right: 0; }
html:root .main-menu .navigation li:hover > a:has(> .ek-star) .badge { visibility: hidden; }

/* ---------- v13 — ikonka o'ng marginini (Vuexy 1.1rem) olib tashlash: oraliqni faqat `gap` belgilaydi ---------- */
html:root .main-menu .navigation li a > svg, html:root .main-menu .navigation li a > i,
html:root .main-menu .navigation li a > img, html:root .main-menu .navigation li a > .feather,
html:root .main-menu .navigation li ul.menu-content > li > a > svg, html:root .main-menu .navigation li ul.menu-content > li > a > i,
html:root .main-menu .navigation .ek-fav > a > svg:first-child { margin: 0 !important; }
html:root .main-menu .navigation > li > a { gap: .75rem; }
html:root .main-menu .navigation li ul.menu-content > li > a { gap: .65rem; }

/* ---------- v14 — hover'da menyu ikonkasi o'rnida (matn chap tomonida) sevimli yulduzchasi / ✕ chiqadi ---------- */
html:root .main-menu .navigation > li > a, html:root .main-menu .navigation .ek-fav > a { padding-right: .8rem; }
html:root .main-menu .navigation li ul.menu-content > li > a { padding-right: .7rem; }
html:root .main-menu .navigation li > a > .ek-star, html:root .main-menu .navigation .ek-fav > a > .ek-fav-rm {
    left: .8rem; right: auto; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; padding: 0; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; background: transparent; box-shadow: none; z-index: 2;
}
html:root .main-menu .navigation li ul.menu-content > li > a > .ek-star { left: .65rem; width: 14px; height: 14px; margin-top: -7px; }
html:root .main-menu .navigation li > a > .ek-star svg { width: 18px; height: 18px; }
html:root .main-menu .navigation li ul.menu-content > li > a > .ek-star svg { width: 14px; height: 14px; }
html:root .main-menu .navigation .ek-fav > a > .ek-fav-rm svg { width: 16px; height: 16px; }
html:root .main-menu .navigation li:hover > a > .ek-star, html:root .main-menu .navigation .ek-fav:hover > a > .ek-fav-rm { opacity: 1; pointer-events: auto; }
html:root .main-menu .navigation li > a > .ek-star { color: var(--ek-muted); background: var(--ek-surface-2); }
html:root .main-menu .navigation li > a > .ek-star:hover, html:root .main-menu .navigation li > a > .ek-star.is-on { color: #f59e0b; background: var(--ek-surface-2); box-shadow: none; }
html:root .main-menu .navigation li > a > .ek-star.is-on { opacity: 0; }
html:root .main-menu .navigation li:hover > a > .ek-star.is-on { opacity: 1; }
/* hover'da asl ikonka yashiriladi — shu joyga yulduzcha tushadi */
html:root .main-menu .navigation li:hover > a:has(> .ek-star) > svg:not(.ek-star-svg):first-child,
html:root .main-menu .navigation li:hover > a:has(> .ek-star) > i:first-child { visibility: hidden; }
html:root .main-menu .navigation .ek-fav:hover > a > svg:first-child { visibility: hidden; }
html:root .main-menu .navigation .ek-fav > a > .ek-fav-rm { color: var(--ek-danger); background: transparent; }
html:root .main-menu .navigation li > a:has(> .ek-star) .menu-title, html:root .main-menu .navigation li > a:has(> .ek-star) .menu-item { padding-right: 0; }
html:root .main-menu .navigation li:hover > a:has(> .ek-star) .badge { visibility: visible; }
html:root .menu-collapsed .main-menu:not(.expanded) .ek-star, html:root .menu-collapsed .main-menu:not(.expanded) .ek-fav-rm { display: none; }

/* ---------- v15 — yulduzcha/✕ aynan menyu ikonkasi qutisi ustiga tushadi ---------- */
html:root .main-menu .navigation li > a > .ek-star, html:root .main-menu .navigation li > a > .ek-star:hover, html:root .main-menu .navigation li > a > .ek-star.is-on,
html:root .main-menu .navigation .ek-fav > a > .ek-fav-rm { background: transparent !important; border-radius: 0; }
html:root .main-menu .navigation > li > a > .ek-star svg, html:root .main-menu .navigation .ek-fav > a > .ek-fav-rm svg { width: 20px; height: 20px; stroke-width: 1.7; }
html:root .main-menu .navigation li ul.menu-content > li > a > .ek-star { left: calc(.65rem - 1.5px); width: 14px; height: 14px; }

/* =====================================================================================================
 * v16 — ikki bosqichli menyu: nuqtasiz, ota-matn bilan bir chiziqda, ingichka yo'naltiruvchi chiziq
 * ===================================================================================================== */
html:root .main-menu .navigation li ul.menu-content {
    position: relative; margin: 2px .7rem 6px .7rem !important; padding: 0 !important; border: 0 !important; background: transparent;
}
/* yo'naltiruvchi chiziq — ota-ikonkaning markazi tagida */
html:root .main-menu .navigation li ul.menu-content::before {
    content: ''; position: absolute; left: calc(.8rem + 9.5px); top: 2px; bottom: 2px; width: 1px; border-radius: 1px;
    background: var(--ek-border) !important;
}
html:root .main-menu .navigation li ul.menu-content > li { margin: 1px 0 !important; }
html:root .main-menu .navigation li ul.menu-content > li > a,
html:root .main-menu.menu-light .navigation > li > ul li > a,
html:root .main-menu.menu-dark .navigation > li > ul li > a {
    position: relative; min-height: 34px; margin: 0 0 0 calc(.8rem + 18px) !important; padding: .4rem .7rem !important;
    border-radius: 8px; font-size: .8125rem; font-weight: 500; line-height: 1.25rem; color: var(--ek-muted); gap: 0;
}
/* ikonka (nuqta) yo'q — matn ota-matn bilan bir chiziqda */
html:root .main-menu .navigation li ul.menu-content > li > a > svg,
html:root .main-menu .navigation li ul.menu-content > li > a > i { display: none !important; }
html:root .main-menu .navigation li ul.menu-content > li > a:hover { background: var(--ek-surface-2); color: var(--ek-text); }
html:root .main-menu .navigation li ul.menu-content > li.active > a,
html:root .main-menu.menu-light .navigation > li > ul .active > a,
html:root .main-menu.menu-dark .navigation > li > ul .active > a {
    background: var(--ek-accent-soft); color: var(--ek-accent); font-weight: 600; box-shadow: none;
}
/* faol punkt: chiziq ustida accent belgi */
html:root .main-menu .navigation li ul.menu-content > li.active > a::before {
    content: ''; display: block !important; position: absolute; left: -19px; top: 20%; bottom: 20%; width: 3px; margin: 0; border-radius: 3px; background: var(--ek-accent); box-shadow: none;
}
html:root .main-menu .navigation li ul.menu-content .menu-item { padding: 0; }
html:root .main-menu .navigation li ul.menu-content::before { left: calc(.8rem + 11.4px); background: color-mix(in srgb, var(--ek-muted) 30%, var(--ek-border)) !important; }
html:root .main-menu .navigation li ul.menu-content > li > a { padding-left: 13.5px !important; }
html:root .main-menu .navigation li ul.menu-content > li.active > a::before { left: -8px; width: 3px; }
/* Vuexy faol ichki punkt <li> ga gradient + soya beradi — olib tashlanadi, ko'rinish <a> da */
html:root .main-menu .navigation li ul.menu-content > li.active,
html:root .main-menu.menu-light .navigation > li ul .active, html:root .main-menu.menu-dark .navigation > li ul .active,
html:root .main-menu.menu-light .navigation > li ul.menu-content > li.active { background: transparent !important; box-shadow: none !important; border-radius: 0; }
html:root .main-menu .navigation li ul.menu-content > li.active > a,
html:root .main-menu.menu-light .navigation li ul.menu-content > li.active > a { background: var(--ek-accent-soft) !important; color: var(--ek-accent) !important; box-shadow: none !important; }
html:root .main-menu .navigation li ul.menu-content > li.active > a .menu-item { color: var(--ek-accent); font-weight: 600; }

/* ---------- v17 — header: tugmalar orasi kengroq ---------- */
html:root .header-navbar .navbar-nav.ms-auto { gap: .35rem; }
html:root .header-navbar .navbar-nav > .nav-item > .nav-link, html:root .header-navbar .ek-btn-icon { margin: 0; }
html:root .header-navbar .ek-chip { margin-right: .35rem; }
html:root .header-navbar .navbar-nav > .nav-item.dropdown-user { margin-left: .7rem; padding-left: 1rem; }
@media (max-width: 767.98px) { html:root .header-navbar .navbar-nav.ms-auto { gap: .1rem; } }

/* ---------- v18 — reload, "Vositalar" paneli, kalkulyator, sana kalkulyatori ---------- */
.ek-btn-icon.is-spin svg { animation: ek-spin .7s linear infinite; }
@keyframes ek-spin { to { transform: rotate(360deg); } }
.ek-tools { width: 320px; padding: .6rem; }
.ek-tools section { padding: .4rem .3rem; }
.ek-tools section + section { margin-top: .2rem; padding-top: .7rem; border-top: 1px solid var(--ek-border); }
.ek-tools h6 { margin: 0 0 .4rem .4rem; }
.ek-tool-list { display: grid; grid-template-columns: 1fr; gap: 2px; }
.ek-tool {
    display: flex; align-items: center; gap: .7rem; width: 100%; padding: .5rem .6rem; border: 0; border-radius: 10px; cursor: pointer;
    background: transparent; color: var(--ek-text) !important; font: 500 .8125rem var(--ek-font); text-align: left; text-decoration: none !important;
}
.ek-tool svg { width: 18px; height: 18px; flex: none; color: var(--ek-muted); }
.ek-tool .ek-kbd { margin-left: auto; }
.ek-tool:hover { background: var(--ek-surface-2); }
.ek-tool:hover svg { color: var(--ek-accent); }

.ek-mini-box { width: min(340px, 100%); }
.ek-mini-box .ek-cmd-input { justify-content: space-between; color: var(--ek-text); }
.ek-mini-body { padding: 1rem 1.1rem 1.1rem; }
.ek-calc-out { width: 100%; height: 52px; margin-bottom: .75rem; padding: 0 .9rem; text-align: right; font: 600 1.4rem var(--ek-font); letter-spacing: -.01em; color: var(--ek-text); background: var(--ek-surface-2); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ek-border); outline: 0; }
.ek-calc-out:focus { box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 3px var(--ek-accent-soft); }
.ek-calc-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.ek-calc-pad button { height: 44px; border: 0; border-radius: 10px; cursor: pointer; font: 600 .95rem var(--ek-font); color: var(--ek-text); background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border); }
.ek-calc-pad button:hover { background: var(--ek-border); }
.ek-calc-pad button.is-op { color: var(--ek-accent); background: var(--ek-accent-soft); box-shadow: none; }
.ek-calc-pad button.is-eq { color: var(--ek-on-accent); background: var(--ek-accent); box-shadow: none; }
.ek-date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ek-date-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .75rem; font-weight: 600; color: var(--ek-muted); }
.ek-date-grid input { height: 38px; padding: 0 .6rem; border: 0; border-radius: 10px; background: var(--ek-surface); color: var(--ek-text); font: 500 .85rem var(--ek-font); box-shadow: inset 0 0 0 1px var(--ek-border); outline: 0; }
.ek-date-grid input:focus { box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 3px var(--ek-accent-soft); }
.ek-date-res { margin-top: .8rem; padding: .7rem .8rem; border-radius: 10px; background: var(--ek-accent-soft); color: var(--ek-text); font-size: .85rem; text-align: center; min-height: 40px; }
.ek-mini hr { border-color: var(--ek-border); margin: 1rem 0; opacity: 1; }
@media (max-width: 575.98px) { .ek-tools { position: fixed; top: 4.6rem; left: .75rem; right: .75rem; width: auto; } }

/* ---------- v19 — header tugmalari: bosilgan/ochiq holatda ramka yo'q, faqat yumshoq fon ---------- */
html:root .header-navbar .ek-btn-icon, html:root .header-navbar .ek-btn-icon:hover, html:root .header-navbar .ek-btn-icon:focus,
html:root .header-navbar .ek-btn-icon:active, html:root .header-navbar .ek-btn-icon[aria-expanded='true'],
html:root .header-navbar .navbar-nav > .nav-item > .nav-link, html:root .header-navbar .navbar-nav > .nav-item > .nav-link:hover,
html:root .header-navbar .navbar-nav > .nav-item > .nav-link:focus, html:root .header-navbar .navbar-nav > .nav-item > .nav-link:active,
html:root .header-navbar .navbar-nav > .nav-item.show > .nav-link, html:root .header-navbar .navbar-nav > .nav-item > .nav-link[aria-expanded='true'],
html:root .header-navbar .nav-link.nav-link-style, html:root .header-navbar .nav-link.nav-link-style:hover {
    border: 0 !important; outline: 0 !important; box-shadow: none !important;
}
html:root .header-navbar .ek-btn-icon:hover, html:root .header-navbar .ek-btn-icon[aria-expanded='true'],
html:root .header-navbar .navbar-nav > .nav-item > .nav-link:hover, html:root .header-navbar .navbar-nav > .nav-item.show > .nav-link,
html:root .header-navbar .navbar-nav > .nav-item > .nav-link[aria-expanded='true'] { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .header-navbar .ek-search-trigger, html:root .header-navbar .ek-search-trigger:hover, html:root .header-navbar .ek-search-trigger:focus,
html:root .header-navbar .ek-search-trigger:active, html:root .header-navbar .ek-chip { box-shadow: none !important; border: 0 !important; outline: 0 !important; }
html:root .header-navbar .ek-search-trigger:hover { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .ek-collapse, html:root .ek-collapse:hover, html:root .ek-collapse:focus, html:root .ek-collapse:active { box-shadow: none !important; outline: 0 !important; }
html:root .header-navbar .dropdown-user > .nav-link, html:root .header-navbar .dropdown-user > .nav-link:hover { background: transparent; }

/* =====================================================================================================
 * v20 — mobil: menyuni yopish tugmasi, pastki navigatsiya, yangi responsive qatlam
 * ===================================================================================================== */
.ek-menu-close { display: none; }
.ek-bottom-nav { display: none; }

@media (max-width: 1199.98px) {
    html:root .main-menu .navbar-header { position: relative; padding-right: 3.6rem; }
    .ek-menu-close {
        display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 50%; right: .9rem; width: 36px; height: 36px; margin-top: -18px; padding: 0;
        border: 0; border-radius: 12px; cursor: pointer; color: var(--ek-muted); background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border); z-index: 3;
    }
    .ek-menu-close svg { width: 16px; height: 16px; }
    .ek-menu-close:hover, .ek-menu-close:active { background: color-mix(in srgb, var(--ek-danger) 12%, transparent); color: var(--ek-danger); }
}

@media (max-width: 767.98px) {
    /* pastki navigatsiya */
    .ek-bottom-nav {
        position: fixed; left: .75rem; right: .75rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 1030;
        display: flex; align-items: stretch; justify-content: space-around; gap: .15rem; padding: .35rem;
        background: color-mix(in srgb, var(--ek-surface) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
        border-radius: 22px; box-shadow: 0 0 0 1px var(--ek-border), 0 14px 34px -10px rgba(15, 23, 42, .35);
    }
    .ek-bn {
        flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: .45rem .2rem;
        border: 0; border-radius: 16px; background: transparent; color: var(--ek-muted) !important; font: 600 .66rem var(--ek-font); text-decoration: none !important; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .ek-bn-ic { position: relative; display: inline-flex; line-height: 0; }
    .ek-bn-ic svg { width: 22px; height: 22px; }
    .ek-bn-t { line-height: 1; }
    .ek-bn.is-on { color: var(--ek-accent) !important; background: var(--ek-accent-soft); }
    .ek-bn.is-main .ek-bn-ic { padding: 8px; margin: -4px 0; border-radius: 14px; color: var(--ek-on-accent); background: var(--ek-accent); box-shadow: 0 8px 18px -6px var(--ek-accent-ring); }
    .ek-bn.is-main { color: var(--ek-text) !important; }
    .ek-bn:active { background: var(--ek-surface-2); }
    .ek-bn-badge { position: absolute; top: -6px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; font: 700 .6rem/16px var(--ek-font); font-style: normal; text-align: center; color: #fff; background: var(--ek-danger); box-shadow: 0 0 0 2px var(--ek-surface); }

    /* pastki panel kontent va footer'ni yopib qo'ymasin */
    html:root footer.footer.ek-footer { padding-bottom: calc(5.8rem + env(safe-area-inset-bottom)); }
    html:root .btn.scroll-top { bottom: calc(5.6rem + env(safe-area-inset-bottom)) !important; right: .9rem; }
    html:root .header-navbar .ek-search-trigger { display: none; }

    /* umumiy mobil qatlam */
    html:root .content-wrapper, html:root .content-body { padding-left: 0; padding-right: 0; }
    html:root .card { margin-bottom: .9rem; }
    html:root .card-header { flex-wrap: wrap; gap: .6rem; }
    html:root .card-header .btn, html:root .card-header .dropdown { flex: 0 0 auto; }
    html:root .btn { min-height: 40px; }
    html:root .btn-sm { min-height: 34px; }
    html:root .form-control, html:root .form-select, html:root .select2-container--default .select2-selection--single { min-height: 44px; font-size: 16px; }
    html:root .row > [class*='col-'] { margin-bottom: .1rem; }
    html:root .table-responsive { margin: 0 -.25rem; padding: 0 .25rem; -webkit-overflow-scrolling: touch; }
    html:root .table > :not(caption) > * > * { white-space: nowrap; }
    html:root .table td a, html:root .table td .text-truncate { white-space: normal; }
    html:root .ek-td-clamp { min-width: 13rem; max-width: 72vw; }
    html:root .nav-tabs, html:root .nav-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    html:root .nav-tabs::-webkit-scrollbar, html:root .nav-pills::-webkit-scrollbar { display: none; }
    html:root .nav-tabs .nav-link, html:root .nav-pills .nav-link { white-space: nowrap; }
    html:root .pagination { flex-wrap: wrap; justify-content: center; }
    html:root .dataTables_wrapper .row > div { text-align: center; }
    /* modal: pastdan chiqadigan "sheet" */
    html:root .modal.fade .modal-dialog { transform: translateY(40px); }
    html:root .modal.show .modal-dialog { transform: none; }
    html:root .modal-dialog:not(.modal-dialog-centered):not(.modal-fullscreen) { margin: 0; min-height: 100%; display: flex; align-items: flex-end; max-width: none; }
    html:root .modal-dialog .modal-content { border-radius: 22px 22px 0 0 !important; width: 100%; max-height: 92vh; overflow: auto; }
    html:root .modal-footer { border-radius: 0; flex-wrap: wrap; }
    html:root .modal-footer .btn { flex: 1 1 auto; }
    .ek-cmd { padding: 1rem .75rem; align-items: flex-start; }
    .ek-cmd-box { width: 100%; }
    .ek-cmd-list { max-height: 56vh; }
    .ek-cmd-foot { display: none; }
    html:root .header-navbar .navbar-breadcrumbs { display: none; }
    html:root .ek-footer__chip:first-child { display: none; }
}
@media (max-width: 380px) {
    .ek-bn-t { font-size: .6rem; }
    html:root .header-navbar .ek-btn-icon, html:root .header-navbar .navbar-nav > .nav-item > .nav-link { width: 34px; height: 34px; }
}
@media (max-width: 767.98px) {
    body.menu-open .ek-bottom-nav, body:has(.main-menu.menu-open) .ek-bottom-nav { display: none; }
    .ek-bn.is-main .ek-bn-t { margin-top: 5px; }
}
@media (max-width: 1199.98px) {
    html:root .main-menu .navbar-header { width: 100% !important; }
    .ek-menu-close { right: .9rem; left: auto; }
}
/* Mobil: ko'rinish (tema) va vositalar paneli ekran o'rtasida ochiladi */
@media (max-width: 767.98px) {
    html:root .header-navbar .ek-panel, html:root .ek-panel.ek-tools {
        position: fixed; top: 4.9rem; left: 50%; right: auto; width: min(360px, calc(100vw - 1.5rem)); max-height: calc(100vh - 11rem); overflow-y: auto;
        transform: translateX(-50%); animation: none;
    }
}

/* Sidebar foydalanuvchi kartasi: avatar + ism bosilsa profilga o'tadi */
.ek-user-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; margin: -.3rem; padding: .3rem; border-radius: 10px; color: inherit !important; text-decoration: none !important; }
.ek-user-link:hover .ek-user-meta b { color: var(--ek-accent); }
.ek-user-link:hover { background: color-mix(in srgb, var(--ek-surface) 55%, transparent); }
html:root .menu-collapsed .ek-user-link { flex: none; justify-content: center; margin: 0; padding: 0; }

/* ---------- v21 — butun sayt: bosilganda (active/focus/show) ramka va halqa chiqmasin (matn kiritish maydonlaridan tashqari) ---------- */
html:root .btn:active, html:root .btn.active, html:root .btn.show, html:root .btn:focus, html:root .btn:active:focus, html:root .btn:not(:disabled):not(.disabled):active:focus,
html:root .btn-check:focus + .btn, html:root .btn-check:active + .btn, html:root .btn-check:checked + .btn,
html:root .dropdown-toggle:focus, html:root .dropdown-toggle.show, html:root .dropdown-toggle:active,
html:root .btn-icon:focus, html:root .btn-icon:active { outline: 0 !important; border-color: transparent !important; }
html:root .btn-primary:active, html:root .btn-primary.active, html:root .btn-primary.show, html:root .btn-primary:focus,
html:root .btn-success:active, html:root .btn-success:focus, html:root .btn-danger:active, html:root .btn-danger:focus,
html:root .btn-warning:active, html:root .btn-warning:focus, html:root .btn-info:active, html:root .btn-info:focus,
html:root .btn-secondary:active, html:root .btn-secondary:focus, html:root .btn-dark:active, html:root .btn-dark:focus { box-shadow: none !important; }
html:root .btn-outline-primary:active, html:root .btn-outline-primary:focus, html:root .btn-outline-primary.show,
html:root .btn-outline-secondary:active, html:root .btn-outline-secondary:focus, html:root .btn-outline-secondary.show,
html:root .btn-outline-success:active, html:root .btn-outline-success:focus, html:root .btn-outline-danger:active, html:root .btn-outline-danger:focus,
html:root .btn-outline-warning:active, html:root .btn-outline-warning:focus, html:root .btn-outline-info:active, html:root .btn-outline-info:focus { box-shadow: inset 0 0 0 1px currentColor !important; }
html:root .nav-link:focus, html:root .nav-link:active, html:root .nav-tabs .nav-link:focus, html:root .nav-tabs .nav-link.active:focus,
html:root .nav-pills .nav-link:focus, html:root .page-link:focus, html:root .page-link:active, html:root .dropdown-item:focus, html:root .dropdown-item:active,
html:root .list-group-item-action:focus, html:root .list-group-item-action:active, html:root .accordion-button:focus, html:root .accordion-button:active,
html:root .navbar-toggler:focus, html:root .btn-close:focus, html:root .btn-close:active, html:root a:focus, html:root a:active, html:root button:focus, html:root button:active,
html:root summary:focus, html:root label:focus, html:root [role='button']:focus, html:root .select2-selection__choice__remove:focus { outline: 0 !important; }
html:root .nav-tabs .nav-link:focus, html:root .nav-tabs .nav-link:active, html:root .nav-pills .nav-link:focus, html:root .nav-pills .nav-link:active,
html:root .page-link:active, html:root .dropdown-item:focus, html:root .dropdown-item:active, html:root .accordion-button:focus, html:root .btn-close:focus { box-shadow: none !important; }
html:root .nav-tabs .nav-link:focus, html:root .nav-tabs .nav-link:active { border-color: transparent !important; }
html:root .page-link:focus { box-shadow: inset 0 0 0 1px var(--ek-border); }
html:root .page-item.active .page-link:focus { box-shadow: 0 4px 10px -2px var(--ek-accent-ring); }
html:root .form-check-input:active { filter: none; }
html:root .form-check-input:focus:not(:focus-visible) { box-shadow: none; border-color: color-mix(in srgb, var(--ek-muted) 55%, var(--ek-border)); }
html:root .form-check-input:checked:focus:not(:focus-visible) { border-color: var(--ek-accent); }
html:root table a:active, html:root table a:focus, html:root tr:focus, html:root td:focus, html:root th:focus, html:root tbody:focus { outline: 0 !important; box-shadow: none; }
html:root .card:focus, html:root .card:active, html:root .modal:focus, html:root .modal-content:focus, html:root .modal-dialog:focus, html:root [tabindex='-1']:focus { outline: 0 !important; box-shadow: none; }
html:root .select2-container--default .select2-selection--single:focus, html:root .select2-container:focus, html:root .select2-container *:focus { outline: 0 !important; }
html:root .dropdown-toggle::after:focus { outline: 0; }
html:root .main-menu .navigation li:focus, html:root .main-menu .navigation li > a:focus, html:root .main-menu .navigation li > a:active { outline: 0 !important; box-shadow: none; }
html:root .header-navbar *:focus:not(:focus-visible), html:root .header-navbar a:active { outline: 0 !important; box-shadow: none !important; }
/* Klaviatura (Tab) bilan yurganda hamon ko'rinadigan fokus */
html:root a:focus-visible, html:root button:focus-visible, html:root [role='button']:focus-visible, html:root .nav-link:focus-visible, html:root .page-link:focus-visible {
    outline: 2px solid var(--ek-accent) !important; outline-offset: 2px;
}

/* =====================================================================================================
 * v22 — header: chapda soat + qidiruv; breadcrumb sahifa tepasida (headerdan pastda), zamonaviy "yo'l" ko'rinishida
 * ===================================================================================================== */
html:root .header-navbar .bookmark-wrapper { gap: .5rem; overflow: visible; }
.ek-left-tools { display: flex; align-items: center; gap: .5rem; min-width: 0; }
html:root .header-navbar .ek-left-tools .ek-chip { margin: 0; }
html:root .header-navbar .ek-left-tools .ek-search-trigger { min-width: 220px; }
@media (max-width: 1199.98px) { html:root .header-navbar .ek-left-tools .ek-search-trigger { min-width: 0; } }

.ek-crumbs { display: flex; align-items: center; margin: 0 0 1rem; padding: 0; }
html:root .ek-crumbs .navbar-breadcrumbs { display: block !important; min-width: 0; max-width: 100%; }
html:root .ek-crumbs .breadcrumb-wrapper { min-width: 0; }
html:root .ek-crumbs .breadcrumb {
    display: inline-flex; flex-wrap: nowrap; align-items: center; gap: .15rem; margin: 0; padding: .3rem .4rem; max-width: 100%; overflow-x: auto; scrollbar-width: none;
    background: color-mix(in srgb, var(--ek-surface) 75%, transparent); border-radius: 999px; box-shadow: 0 0 0 1px var(--ek-border), var(--tw-sm);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html:root .ek-crumbs .breadcrumb::-webkit-scrollbar { display: none; }
html:root .ek-crumbs .breadcrumb-item { display: inline-flex; align-items: center; flex: none; padding: 0; font-size: .8125rem; font-weight: 500; white-space: nowrap; overflow: visible; text-overflow: clip; }
html:root .ek-crumbs .breadcrumb-item + .breadcrumb-item { padding-left: 0; }
html:root .ek-crumbs .breadcrumb-item + .breadcrumb-item::before {
    content: ''; width: 5px; height: 5px; margin: 0 .25rem; padding: 0; float: none; border-top: 1.5px solid var(--ek-muted); border-right: 1.5px solid var(--ek-muted);
    transform: rotate(45deg) scale(.85); opacity: .55; background: none;
}
html:root .ek-crumbs .breadcrumb-item a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; color: var(--ek-muted); font-weight: 500; transition: background-color .12s ease, color .12s ease; }
html:root .ek-crumbs .breadcrumb-item a:hover { background: var(--ek-surface-2); color: var(--ek-text); }
html:root .ek-crumbs .breadcrumb-item a svg { width: 15px; height: 15px; flex: none; }
html:root .ek-crumbs .breadcrumb-item.active, html:root .ek-crumbs .breadcrumb-item:last-child:not(:has(a)) {
    padding: .3rem .8rem; border-radius: 999px; color: var(--ek-accent); background: var(--ek-accent-soft); font-weight: 650;
}
@media (max-width: 767.98px) {
    html:root .header-navbar .navbar-breadcrumbs { display: none; }
    html:root .ek-crumbs .navbar-breadcrumbs { display: block !important; }
    html:root .ek-crumbs { margin-bottom: .75rem; }
    html:root .ek-left-tools { display: none; }
}
html:root .ek-crumbs .breadcrumb-item + .breadcrumb-item::before { display: none; }
html:root .ek-crumbs .breadcrumb-item:not(:last-child)::after {
    content: ''; width: 5px; height: 5px; margin: 0 .3rem 0 .1rem; border-top: 1.5px solid var(--ek-muted); border-right: 1.5px solid var(--ek-muted); transform: rotate(45deg) scale(.85); opacity: .55;
}

/* ---------- v23 — breadcrumb to'liq kenglikda: chapda yo'l, o'ngda "Orqaga" ---------- */
html:root .ek-crumbs { width: 100%; justify-content: space-between; gap: .75rem; }
html:root .ek-crumbs .navbar-breadcrumbs { flex: 0 1 auto; }
.ek-back {
    flex: none; display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding: 0 1rem 0 .8rem; border: 0; border-radius: 999px; cursor: pointer;
    color: var(--ek-text); background: color-mix(in srgb, var(--ek-surface) 75%, transparent); font: 600 .8125rem var(--ek-font);
    box-shadow: 0 0 0 1px var(--ek-border), var(--tw-sm); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background-color .12s ease, color .12s ease;
}
.ek-back svg { width: 16px; height: 16px; }
.ek-back:hover { background: var(--ek-accent-soft); color: var(--ek-accent); }
@media (max-width: 575.98px) { .ek-back span { display: none; } .ek-back { width: 38px; padding: 0; justify-content: center; } }

/* ---------- v24 — breadcrumb va "Orqaga" bitta kartada ---------- */
html:root .ek-crumbs {
    padding: .45rem .55rem; border-radius: 16px; background: var(--ek-surface);
    box-shadow: 0 0 0 1px var(--ek-border), var(--tw-sm);
}
html:root .ek-crumbs .breadcrumb { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; border-radius: 0; }
html:root .ek-back { background: var(--ek-surface-2); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 12px; height: 34px; }
html:root .ek-back:hover { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .ek-crumbs .breadcrumb-item a, html:root .ek-crumbs .breadcrumb-item.active { border-radius: 10px; }
html:root .ek-chip b { font-variant-numeric: tabular-nums; min-width: 4.4ch; }

/* =====================================================================================================
 * v25 — qolgan sahifalar: eski inline <style> ranglarini yangi tizimga bog'lash (faqat ko'rinish)
 * ===================================================================================================== */

/* Hujjat hayot sikli (document/lifecycle): o'zining --lc-* tokenlari tema tokenlariga ulanadi */
html:root .lc, html:root .dark-layout .lc {
    --lc-card: var(--ek-surface); --lc-soft: var(--ek-surface-2); --lc-border: var(--ek-border);
    --lc-text: var(--ek-text); --lc-heading: var(--ek-text); --lc-muted: var(--ek-muted);
    --lc-primary: 109, 93, 252; --lc-success: 22, 163, 74; --lc-warning: 217, 119, 6; --lc-danger: 225, 29, 72; --lc-info: 8, 145, 178;
}
html[data-theme='dark'] .lc { --lc-success: 74, 222, 128; --lc-warning: 251, 191, 36; --lc-danger: 251, 113, 133; --lc-info: 34, 211, 238; }
html[data-accent='blue'] .lc { --lc-primary: 47, 124, 246; } html[data-accent='emerald'] .lc { --lc-primary: 16, 163, 127; }
html[data-accent='rose'] .lc { --lc-primary: 229, 72, 122; } html[data-accent='amber'] .lc { --lc-primary: 232, 137, 12; }
html[data-accent='slate'] .lc { --lc-primary: 81, 96, 122; }
html:root .lc .lc-hero { border: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--ek-border), var(--tw-sm); }
html:root .lc [class*='lc-'][class*='card'], html:root .lc .lc-stat, html:root .lc .lc-panel { border-radius: 14px; }

/* Rasm yuklash (news/areas/registry... create/edit): eski binafsha tugma va kulrang maydon */
html:root .card .drag-area { border: 2px dashed var(--ek-border); background: var(--ek-surface-2); color: var(--ek-muted); border-radius: 14px; }
html:root .card .drag-area.dragover { background: var(--ek-accent-soft); border-color: var(--ek-accent); }
html:root .card .select { color: var(--ek-accent); font-weight: 600; }
html:root .card .drag-area button, html:root .card .container .image button {
    background: var(--ek-accent); color: var(--ek-on-accent); border-radius: 10px; box-shadow: none; font-weight: 600;
}
html:root .card p { color: var(--ek-muted); }
html:root .card .container .image img { border-radius: 12px; box-shadow: 0 0 0 1px var(--ek-border); }

/* Monitoring: rangli qatorlar ma'lumot rangi sifatida qoladi, lekin yumshoqroq */
html:root td[style*='background-color'] { border-radius: 8px; }

/* Sahifa kontent konteynerlari: "bo'sh" ko'rinish va umumiy ritm */
html:root .content-body > .row, html:root .content-body > section { margin-top: 0; }
html:root .content-body .card + .card { margin-top: 1rem; }
html:root .breadcrumb-wrapper { margin: 0; }
html:root .content-header { margin-bottom: 1rem; }
html:root .content-header-title, html:root .content-header h2, html:root .content-body > h2, html:root .content-body > h3 { letter-spacing: -.02em; }

/* Fayl menejeri (alohida layout) */
html:root .file-manager-application .sidebar-file-manager, html:root .file-manager-application .content-right .card { border-radius: 16px; }
html:root .file-manager-application .sidebar-file-manager { background: var(--ek-surface); box-shadow: 0 0 0 1px var(--ek-border), var(--tw-sm); }
html:root .file-manager-application .list-group-item.active { background: var(--ek-accent-soft); color: var(--ek-accent); border-color: transparent; }
html:root .file-manager-application .btn-primary { border-radius: 12px; }
html:root .file-manager-application .content-area-wrapper { background: transparent; }

/* Profil, sozlamalar, rollar/ruxsatlar: formalar bir xil */
html:root .nav-tabs.nav-justified .nav-link, html:root .nav-pills .nav-link { padding: .55rem 1rem; }
html:root .form-group, html:root .mb-1 > .form-label { margin-bottom: .25rem; }
html:root .alert .btn-close { filter: none; }
html:root .table-responsive > .table, html:root .dataTables_wrapper .table { width: 100%; }
html:root .card .card-header .btn + .btn { margin-left: .4rem; }

/* =====================================================================================================
 * v26 — formalar, jadvallar va amal tugmalari (faqat ko'rinish; markup va logika o'zgarmaydi)
 * ===================================================================================================== */

/* ---------- Formalar ---------- */
html:root form .row { --bs-gutter-y: .95rem; }
html:root form .row > [class*='col'] > .form-group, html:root form .form-group { margin-bottom: 0; }
html:root form .form-label, html:root form label:not(.form-check-label):not(.btn) { display: inline-block; margin-bottom: .4rem; font-size: .8125rem; font-weight: 600; color: var(--ek-text); letter-spacing: .005em; }
html:root form .form-label .text-danger, html:root form label .text-danger, html:root form label .required { color: var(--ek-danger) !important; margin-left: .15rem; }
html:root .form-text, html:root small.form-text, html:root .help-block { margin-top: .35rem; font-size: .75rem; color: var(--ek-muted); }
html:root .form-control, html:root .form-select { min-height: 42px; font-weight: 500; }
html:root textarea.form-control { padding-top: .7rem; padding-bottom: .7rem; resize: vertical; line-height: 1.5; min-height: 96px; }
html:root .form-control[type='file'] { padding: .3rem; line-height: 1.9; }
html:root .form-control[type='file']::file-selector-button {
    margin: 0 .75rem 0 0; padding: .3rem .85rem; border: 0; border-radius: 8px; cursor: pointer;
    background: var(--ek-accent-soft); color: var(--ek-accent); font-weight: 600; font-size: .8125rem; transition: background-color .12s ease;
}
html:root .form-control[type='file']::file-selector-button:hover { background: color-mix(in srgb, var(--ek-accent) 22%, transparent); }
html:root .form-control:disabled, html:root .form-select:disabled, html:root .form-control[readonly] {
    background-color: var(--ek-surface-2); color: var(--ek-muted); box-shadow: inset 0 0 0 1px var(--ek-border); cursor: not-allowed; opacity: 1;
}
html:root .form-control[readonly]:not(:disabled) { cursor: default; }
html:root .form-select { background-position: right .85rem center; padding-right: 2.2rem; }
html:root .form-check { min-height: 1.5rem; }
html:root .form-check-input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
html:root .form-switch .form-check-input { width: 2.2rem; height: 1.2rem; border-radius: 99px; }
html:root .form-check-input:checked[type='checkbox'] { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
html:root .input-group > :not(:first-child):not(.dropdown-menu) { margin-left: -1px; }
html:root .input-group > .form-control:not(:last-child), html:root .input-group > .form-select:not(:last-child), html:root .input-group > .input-group-text:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html:root .input-group > .form-control:not(:first-child), html:root .input-group > .form-select:not(:first-child), html:root .input-group > .input-group-text:not(:first-child), html:root .input-group > .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
html:root .input-group > .btn { min-height: 42px; }
/* forma bo'limlari va tugmalar qatori */
html:root form hr { margin: 1.25rem 0; }
html:root form h4, html:root form h5, html:root form h6 { margin-bottom: .75rem; }
html:root .card-body > form > .row:last-child, html:root form > .row:last-child { margin-bottom: 0; }
html:root form .btn[type='submit']:not(.btn-icon), html:root form button.btn-primary:not(.btn-icon):not(.btn-sm) { min-width: 120px; padding-left: 1.4rem; padding-right: 1.4rem; }
html:root .card .form-actions, html:root form .form-actions { display: flex; gap: .6rem; justify-content: flex-end; padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid var(--ek-border); }
/* til tablari (O'zbekcha / Узбекча...) — forma ichida */
html:root .card .nav-pills { gap: .35rem; padding: .3rem; width: fit-content; max-width: 100%; border-radius: 14px; background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border); margin-bottom: 1.1rem !important; }
html:root .card .nav-pills .nav-link { border-radius: 10px; padding: .4rem .95rem; font-size: .8125rem; }
html:root .card .nav-pills .nav-link.active { box-shadow: 0 4px 10px -4px var(--ek-accent-ring); }
html:root .tab-content > .tab-pane { padding-top: .25rem; }
/* filtrlar (jadval ustidagi qidiruv formasi) */
html:root .card form .btn-icon.btn-primary, html:root .card form .btn-icon.btn-outline-primary { width: 42px; height: 42px; padding: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Jadvallar ---------- */
html:root .table-responsive { border-radius: 14px; }
html:root .card > .table-responsive, html:root .card-body > .table-responsive { box-shadow: inset 0 0 0 1px var(--ek-border); }
html:root .table { --bs-table-hover-bg: color-mix(in srgb, var(--ek-accent) 5%, transparent); }
html:root .table thead th { padding-top: .8rem; padding-bottom: .8rem; font-size: .6875rem; letter-spacing: .07em; color: var(--ek-muted); background: var(--ek-surface-2); border-bottom: 1px solid var(--ek-border); position: relative; }
html:root .table thead th:first-child { padding-left: 1.1rem; } html:root .table thead th:last-child { padding-right: 1.1rem; }
html:root .table tbody td:first-child { padding-left: 1.1rem; font-variant-numeric: tabular-nums; } html:root .table tbody td:last-child { padding-right: 1.1rem; }
html:root .table > tbody > tr > td { border-bottom: 1px solid color-mix(in srgb, var(--ek-border) 70%, transparent); }
html:root .table tbody tr:hover > * { background-color: color-mix(in srgb, var(--ek-accent) 5%, var(--ek-surface)); }
html:root .table tbody td a:not(.btn):not(.dropdown-item):not(.page-link) { color: var(--ek-accent); font-weight: 600; text-decoration: none; }
html:root .table tbody td a:not(.btn):not(.dropdown-item):not(.page-link):hover { text-decoration: underline; text-underline-offset: 3px; }
html:root .table td[colspan] { padding: 2.2rem 1rem; text-align: center; color: var(--ek-muted); font-weight: 500; }
html:root .table .text-truncate { max-width: 340px; }
html:root .table th.sorting, html:root .table th.sorting_asc, html:root .table th.sorting_desc { cursor: pointer; }
html:root .table th.sorting_asc, html:root .table th.sorting_desc { color: var(--ek-accent); }
html:root table.dataTable { border-collapse: collapse !important; margin-top: 0 !important; margin-bottom: 0 !important; }
html:root .dataTables_wrapper .row:first-child, html:root .dataTables_wrapper .row:last-child { padding: .85rem 1.1rem; margin: 0; align-items: center; }
html:root .card-footer .pagination, html:root .card-body > .pagination, html:root nav[aria-label] .pagination { margin: 1rem 0 0; }
html:root .table .badge { font-size: .7rem; }

/* ---------- Amal tugmalari (jadvaldagi ko'rish / tahrirlash / o'chirish ...) ---------- */
html:root td:has(> .btn-icon), html:root td:has(> form .btn-icon), html:root td:has(> a.btn-sm), html:root td:has(> .btn-sm) { white-space: nowrap; }
html:root td form { display: inline-block; margin: 0; }
html:root td .btn-icon, html:root td a.btn-sm.btn-icon, html:root td .btn.btn-sm.btn-icon {
    --tone: var(--ek-accent);
    width: 34px; height: 34px; padding: 0 !important; margin: 0 2px !important; vertical-align: middle;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 0 !important;
    color: var(--tone) !important; background: color-mix(in srgb, var(--tone) 11%, transparent) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent) !important; filter: none !important;
    transition: background-color .12s ease, color .12s ease, transform .12s ease !important;
}
html:root td .btn-icon svg, html:root td .btn-icon i, html:root td .btn-icon .feather { width: 16px; height: 16px; font-size: 14px; stroke-width: 2; }
html:root td .btn-success { --tone: var(--ek-success); } html:root td .btn-danger { --tone: var(--ek-danger); }
html:root td .btn-warning { --tone: #d97706; } html:root td .btn-info { --tone: var(--ek-sky); }
html:root td .btn-facebook, html:root td .btn-primary { --tone: var(--ek-accent); }
html:root td .btn-secondary, html:root td .btn-dark, html:root td .btn-light { --tone: var(--ek-muted); }
html:root td .btn-icon:hover, html:root td a.btn-sm.btn-icon:hover {
    background: var(--tone) !important; color: #fff !important; box-shadow: 0 6px 14px -6px var(--tone) !important; transform: translateY(-1px);
}
html:root td .btn-warning:hover { color: #1c1300 !important; }
html:root td .btn-icon:active { transform: none; }
html:root td .btn-icon:disabled, html:root td .btn-icon.disabled, html:root td .btn-icon[disabled] { opacity: .4; pointer-events: none; box-shadow: inset 0 0 0 1px var(--ek-border) !important; background: var(--ek-surface-2) !important; color: var(--ek-muted) !important; }
/* Matnli kichik tugmalar (jadval ichida) */
html:root td .btn-sm:not(.btn-icon) { min-height: 32px; padding: .3rem .8rem !important; border-radius: 9px; font-size: .75rem; }
html:root td .btn-outline-primary.btn-sm { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-accent) 45%, transparent); }
html:root td .btn-outline-primary.btn-sm:hover { background: var(--ek-accent) !important; color: var(--ek-on-accent) !important; }
/* Dropdown amallar tugmasi (⋮) */
html:root td .dropdown-toggle.btn-icon::after, html:root td .btn-icon.dropdown-toggle::after { display: none; }
@media (max-width: 767.98px) { html:root td .btn-icon { width: 36px; height: 36px; } html:root .table .text-truncate { max-width: 200px; } }

/* =====================================================================================================
 * v27 — formalar: har bir detal (floating label, xato xabarlari, majburiy belgi, hisoblagich, parol, yopishqoq panel,
 *        yuklanish holati, input ikonkalari, TinyMCE, fieldset). Markup o'zgarmaydi; JS faqat klass qo'shadi.
 * ===================================================================================================== */

/* Forma kartasi */
html:root .card:has(> .card-body > form.ek-form), html:root .card:has(form.ek-form) { overflow: visible; }
html:root .ek-form { position: relative; }

/* Floating label (Bootstrap form-floating) */
html:root .form-floating { position: relative; }
html:root .form-floating > .form-control, html:root .form-floating > .form-select { height: 3.35rem; min-height: 3.35rem; padding: 1.35rem .85rem .4rem; line-height: 1.25; }
html:root .form-floating > textarea.form-control { height: auto; min-height: 6rem; padding-top: 1.7rem; }
html:root .form-floating > label {
    padding: .9rem .85rem; font-size: .875rem; font-weight: 500; color: var(--ek-muted); margin: 0; letter-spacing: 0;
    transition: transform .14s ease, opacity .14s ease, color .14s ease;
}
html:root .form-floating > .form-control:focus ~ label, html:root .form-floating > .form-control:not(:placeholder-shown) ~ label,
html:root .form-floating > .form-select ~ label { transform: scale(.82) translateY(-.55rem) translateX(.1rem); color: var(--ek-accent); opacity: 1; font-weight: 600; }
html:root .form-floating > .form-control:not(:focus):not(:placeholder-shown) ~ label, html:root .form-floating > .form-select:not(:focus) ~ label { color: var(--ek-muted); }
html:root .form-floating > .form-control::placeholder { color: transparent; }

/* Majburiy belgi */
html:root label.is-required::after, html:root .form-label.is-required::after { content: ' *'; color: var(--ek-danger); font-weight: 700; }

/* Xato xabarlari: katta qizil blok o'rniga maydon ostida ixcham xabar */
html:root form .alert.alert-danger, html:root form .invalid-feedback.d-block, html:root form .text-danger.error {
    display: flex; align-items: center; gap: .4rem; margin: .4rem 0 0 !important; padding: 0 !important; border: 0; background: transparent !important;
    box-shadow: none !important; font-size: .75rem !important; font-weight: 600; color: var(--ek-danger) !important; line-height: 1.3;
}
html:root form .alert.alert-danger::before {
    content: ''; flex: none; width: 14px; height: 14px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpath d='M12 8v4M12 16h.01'/%3e%3c/svg%3e") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpath d='M12 8v4M12 16h.01'/%3e%3c/svg%3e") center / contain no-repeat;
}
html:root form .alert.alert-danger .btn-close { display: none; }
html:root form .alert.alert-success, html:root form .alert.alert-info { padding: .7rem .9rem; font-size: .8125rem; }

/* Belgilar hisoblagichi, parol ko'zi */
.ek-count { margin-top: .3rem; text-align: right; font-size: .6875rem; font-weight: 600; color: var(--ek-muted); font-variant-numeric: tabular-nums; }
.ek-count.is-near { color: var(--ek-warning); }
.ek-has-eye { position: relative; }
.ek-has-eye > input[type='password'], .ek-has-eye > input[type='text'].form-control { padding-right: 2.6rem; }
.ek-eye { position: absolute; right: .35rem; bottom: .3rem; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: transparent; color: var(--ek-muted); cursor: pointer; }
.ek-has-eye > label ~ .ek-eye, .form-floating.ek-has-eye > .ek-eye { bottom: .55rem; }
.ek-eye svg { width: 17px; height: 17px; }
.ek-eye:hover { background: var(--ek-surface-2); color: var(--ek-text); }
.ek-eye.is-on { color: var(--ek-accent); }

/* Yopishqoq amallar paneli */
html:root .ek-actions {
    position: sticky; bottom: .75rem; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: .6rem; flex-wrap: wrap;
    margin-top: 1.4rem; padding: .7rem .85rem; border-radius: 16px;
    background: color-mix(in srgb, var(--ek-surface) 84%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
    box-shadow: 0 0 0 1px var(--ek-border), 0 12px 28px -14px rgba(15, 23, 42, .3);
}
html:root .ek-actions.d-flex, html:root .ek-actions.justify-content-between { justify-content: flex-end !important; }
html:root .ek-actions .float-end, html:root .ek-actions .float-start { float: none !important; }
.ek-dirty { margin-right: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 600; color: var(--ek-warning); }
.ek-dirty[hidden] { display: none; }
.ek-dirty::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
@media (max-width: 767.98px) { html:root .ek-actions { bottom: calc(5.4rem + env(safe-area-inset-bottom)); } .ek-dirty { width: 100%; } }

/* Yuklanish holati (tugma) */
html:root .btn.is-loading { position: relative; pointer-events: none; color: transparent !important; }
html:root .btn.is-loading::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: ek-spin .7s linear infinite;
}

/* Input ikonkalari (faqat CSS) */
html:root input.form-control[type='email']:not(.form-floating > *), html:root input.form-control[type='tel']:not(.form-floating > *),
html:root input.form-control[type='url']:not(.form-floating > *), html:root input.form-control[type='search']:not(.form-floating > *) {
    padding-left: 2.5rem; background-repeat: no-repeat; background-position: .8rem center; background-size: 17px;
}
html:root input.form-control[type='email']:not(.form-floating > *) { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='2' y='4' width='20' height='16' rx='2'/%3e%3cpath d='m22 7-10 6L2 7'/%3e%3c/svg%3e"); }
html:root input.form-control[type='tel']:not(.form-floating > *) { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3e%3c/svg%3e"); }
html:root input.form-control[type='url']:not(.form-floating > *) { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3e%3cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3e%3c/svg%3e"); }
html:root input.form-control[type='search']:not(.form-floating > *) { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='7'/%3e%3cpath d='m20 20-3.5-3.5'/%3e%3c/svg%3e"); }
html:root input[type='date'].form-control, html:root input[type='datetime-local'].form-control, html:root input[type='time'].form-control { font-variant-numeric: tabular-nums; }
html:root input[type='date']::-webkit-calendar-picker-indicator, html:root input[type='datetime-local']::-webkit-calendar-picker-indicator, html:root input[type='time']::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; border-radius: 6px; padding: 3px; }
html:root input[type='date']::-webkit-calendar-picker-indicator:hover, html:root input[type='time']::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--ek-surface-2); }
html:root input[type='number'].form-control { font-variant-numeric: tabular-nums; }
html:root input[type='color'].form-control { padding: .25rem; height: 42px; width: 64px; cursor: pointer; }
html:root input[type='range'] { accent-color: var(--ek-accent); }
html:root input:-webkit-autofill, html:root input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px var(--ek-surface) inset !important; -webkit-text-fill-color: var(--ek-text) !important; caret-color: var(--ek-text); }

/* Fieldset, legend, bo'lim sarlavhalari */
html:root fieldset { padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ek-border); }
html:root legend { float: none; width: auto; padding: 0 .5rem; margin: 0 0 .4rem -.5rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ek-muted); }
html:root .ek-form h4, html:root .ek-form h5 { font-size: .95rem; padding-bottom: .5rem; margin: 1.2rem 0 .9rem; border-bottom: 1px solid var(--ek-border); }

/* TinyMCE, fayl yuklash, select2 */
html:root .tox.tox-tinymce { border: 0 !important; border-radius: 14px !important; box-shadow: inset 0 0 0 1px var(--ek-border), var(--tw-sm); overflow: hidden; }
html:root .tox .tox-editor-header { box-shadow: 0 1px 0 var(--ek-border) !important; border: 0 !important; }
html:root .tox .tox-statusbar { border-top: 1px solid var(--ek-border) !important; }
html:root .tox-tinymce-aux, html:root .tox .tox-dialog { border-radius: 16px; }
html:root .tox-notification--warning, html:root .tox .tox-notification { border-radius: 12px; }
html:root .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--ek-muted) transparent transparent; }
html:root .select2-container--default .select2-selection--single .select2-selection__clear { color: var(--ek-muted); margin-right: .4rem; }
html:root .select2-container { width: 100% !important; }
html:root .select2-container--default .select2-selection--multiple { padding: .2rem .4rem; flex-wrap: wrap; }
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--ek-accent); margin-right: .35rem; }
html:root .select2-results__option--selected { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .flatpickr-input[readonly] { background-color: var(--ek-surface); cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-muted) 30%, var(--ek-border)), var(--tw-sm); }

/* Qo'shish (+) / o'chirish tugmalari forma ichida */
html:root .ek-form .btn-sm.btn-outline-primary, html:root .ek-form .btn-outline-primary.btn-sm { border-radius: 10px; font-weight: 600; }
html:root .ek-form .btn-icon.btn-outline-primary, html:root .ek-form .btn-icon.btn-outline-danger { width: 38px; height: 38px; padding: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
html:root .ek-form .btn-danger.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
html:root .ek-form .btn-secondary:not(.btn-icon), html:root .ek-form a.btn-outline-secondary { min-width: 100px; }
/* Qatorsiz (row'siz) formalarda maydonlar orasi */
html:root .ek-form .form-label:not(:first-child), html:root .ek-form > label:not(:first-child), html:root .ek-form > div > label.form-label:not(:first-child) { margin-top: .85rem; }
html:root .ek-form .form-floating { margin-bottom: .1rem; }
html:root .ek-form .form-floating + .form-floating, html:root .ek-form .form-floating + .form-label { margin-top: .85rem; }
html:root .ek-form .row .form-label:not(:first-child) { margin-top: 0; }
html:root .ek-form :not([class*='col']):not(.input-group):not(.row) > .form-floating { margin-bottom: .9rem; }
html:root .ek-form :not([class*='col']):not(.input-group):not(.row) > .select2-container, html:root .ek-form :not([class*='col']):not(.input-group):not(.row) > select.form-select:not(.select2-hidden-accessible) { margin-bottom: .9rem; }

/* =====================================================================================================
 * v28 — select2, switch, inputlar, kalendar (flatpickr / pickadate): yagona zamonaviy ko'rinish
 * ===================================================================================================== */

/* ---------- Select2 ---------- */
html:root .select2-container--default .select2-selection--single { height: auto; min-height: 42px; padding: 0 2.3rem 0 0; background: var(--ek-surface); }
html:root .select2-container--default .select2-selection--single .select2-selection__rendered { padding: .5rem 0 .5rem .85rem; color: var(--ek-text); font-weight: 500; line-height: 1.35; }
html:root .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ek-muted); font-weight: 400; }
html:root .select2-container--default .select2-selection--single .select2-selection__arrow { width: 2.3rem; right: 0; top: 0; height: 100%; }
html:root .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; left: 50%; top: 50%; background: var(--ek-muted);
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat;
    transition: transform .15s ease;
}
html:root .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border: 0; transform: rotate(180deg); background: var(--ek-accent); }
html:root .select2-container--default .select2-selection--single .select2-selection__clear { float: none; position: absolute; right: 2.3rem; top: 50%; margin: -10px 0 0; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; color: var(--ek-muted); }
html:root .select2-container--default .select2-selection--single .select2-selection__clear:hover { background: var(--ek-surface-2); color: var(--ek-danger); }
html:root .select2-container--default .select2-selection--multiple { padding: .2rem .45rem .2rem .4rem; gap: .25rem; min-height: 42px; background: var(--ek-surface); }
html:root .select2-container--default .select2-selection--multiple .select2-selection__rendered { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; width: 100%; }
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex; flex-direction: row-reverse; align-items: center; gap: .3rem; margin: 0; padding: .22rem .6rem; border-radius: 8px; font-size: .78rem; font-weight: 600;
    background: var(--ek-accent-soft); color: var(--ek-accent); border: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-accent) 22%, transparent);
}
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { position: static; margin: 0; padding: 0; border: 0; width: 14px; height: 14px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-size: 14px; color: var(--ek-accent); background: transparent; }
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { background: var(--ek-accent); color: var(--ek-on-accent); }
html:root .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field { margin: .15rem 0 0 .2rem; font: 500 .875rem var(--ek-font); color: var(--ek-text); min-width: 4rem; }
html:root .select2-container--default .select2-selection--multiple .select2-selection__clear { color: var(--ek-muted); margin: .3rem .2rem 0 0; }
html:root .select2-container--default.select2-container--disabled .select2-selection { background: var(--ek-surface-2); opacity: .75; cursor: not-allowed; }
html:root .select2-container--default.select2-container--open.select2-container--below .select2-selection--single { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
/* ochiladigan ro'yxat */
html:root .select2-dropdown { margin-top: 6px; border: 0; border-radius: 14px; background: var(--ek-surface); box-shadow: 0 0 0 1px var(--ek-border), 0 22px 40px -16px rgba(15, 23, 42, .35); overflow: hidden; z-index: 2000; }
html:root .select2-container--open .select2-dropdown--above { margin-top: -6px; }
html:root .select2-search--dropdown { padding: .6rem .6rem .3rem; }
html:root .select2-container--default .select2-search--dropdown .select2-search__field {
    height: 38px; padding: 0 .75rem 0 2.3rem; border: 0; border-radius: 10px; background: var(--ek-surface-2) no-repeat .75rem center / 16px; color: var(--ek-text); font: 500 .875rem var(--ek-font);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='7'/%3e%3cpath d='m20 20-3.5-3.5'/%3e%3c/svg%3e");
    box-shadow: inset 0 0 0 1px var(--ek-border); outline: 0;
}
html:root .select2-container--default .select2-search--dropdown .select2-search__field:focus { box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 3px var(--ek-accent-soft); background-color: var(--ek-surface); }
html:root .select2-results__options { padding: .35rem .4rem .45rem; max-height: 280px; scrollbar-width: thin; }
html:root .select2-results__option { position: relative; margin: 1px 0; padding: .5rem .75rem; border-radius: 9px; font-size: .875rem; font-weight: 500; color: var(--ek-text); transition: background-color .08s ease; }
html:root .select2-container--default .select2-results__option--highlighted[aria-selected], html:root .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--ek-surface-2); color: var(--ek-text); }
html:root .select2-container--default .select2-results__option[aria-selected='true'], html:root .select2-container--default .select2-results__option--selected { background: var(--ek-accent-soft); color: var(--ek-accent); font-weight: 650; padding-right: 2.2rem; }
html:root .select2-container--default .select2-results__option[aria-selected='true']::after, html:root .select2-container--default .select2-results__option--selected::after {
    content: ''; position: absolute; right: .8rem; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m5 12 5 5 9-10'/%3e%3c/svg%3e") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m5 12 5 5 9-10'/%3e%3c/svg%3e") center / contain no-repeat;
}
html:root .select2-container--default .select2-results__option--disabled { opacity: .45; }
html:root .select2-container--default .select2-results__group { padding: .55rem .75rem .2rem; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ek-muted); }
html:root .select2-results__message { padding: 1.1rem .75rem; text-align: center; color: var(--ek-muted); }
html:root .select2-container--default .select2-results__option.loading-results { color: var(--ek-muted); }

/* ---------- Switch (toggle) ---------- */
html:root .form-switch { padding-left: 3.4rem; min-height: 1.6rem; display: flex; align-items: center; }
html:root .form-switch .form-check-input {
    --ek-sw-on: var(--ek-accent);
    float: none; flex: none; position: absolute; left: 0; margin: 0; width: 2.8rem; height: 1.55rem; border: 0; border-radius: 99px; cursor: pointer;
    background-color: color-mix(in srgb, var(--ek-muted) 40%, var(--ek-surface-2));
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: left .2rem center; background-size: 1.15rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .18); transition: background-color .18s ease, background-position .18s ease;
}
html:root .form-switch .form-check-input:checked { background-color: var(--ek-sw-on); background-position: right .2rem center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
html:root .form-switch .form-check-input:focus-visible { box-shadow: 0 0 0 3px var(--ek-accent-soft); outline: 0; }
html:root .form-switch .form-check-input:disabled { opacity: .5; cursor: not-allowed; }
html:root .form-switch.form-check-success .form-check-input { --ek-sw-on: var(--ek-success); }
html:root .form-switch.form-check-danger .form-check-input { --ek-sw-on: var(--ek-danger); }
html:root .form-switch.form-check-warning .form-check-input { --ek-sw-on: #f59e0b; }
html:root .form-switch.form-check-info .form-check-input { --ek-sw-on: var(--ek-sky); }
html:root .form-switch .form-check-label { margin: 0; cursor: pointer; font-weight: 500; }
html:root .form-switch .switch-icon-left, html:root .form-switch .switch-icon-right { display: none; }

/* ---------- Checkbox / radio ---------- */
html:root .form-check-input { border: 1.5px solid color-mix(in srgb, var(--ek-muted) 55%, var(--ek-border)); transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease; }
html:root .form-check-input:hover:not(:disabled):not(:checked) { border-color: var(--ek-accent); }
html:root .form-check-input[type='radio']:checked { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e"); }
html:root .form-check-input:disabled { opacity: .5; }
html:root .form-check-input:disabled ~ .form-check-label { opacity: .6; }
html:root .form-check:not(.form-switch) .form-check-label { cursor: pointer; }

/* ---------- Inputlar: umumiy detallar ---------- */
html:root .form-control, html:root .form-select { transition: box-shadow .14s ease, background-color .14s ease; }
html:root .form-control::placeholder { font-weight: 400; }
html:root .form-control:-webkit-autofill { border-radius: 10px; }
html:root input[type='number']::-webkit-inner-spin-button, html:root input[type='number']::-webkit-outer-spin-button { opacity: .5; height: 1.6rem; }
html:root input[type='number']:hover::-webkit-inner-spin-button { opacity: 1; }
html:root .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e"); background-size: 16px; }
html:root .form-select:not([multiple]) { background-repeat: no-repeat; }
html:root select[multiple].form-select { background-image: none; padding-right: .85rem; }
html:root select.form-select option { background: var(--ek-surface); color: var(--ek-text); }
html:root .input-group-text svg, html:root .input-group-text i { width: 16px; height: 16px; }
html:root .input-group:focus-within .input-group-text { color: var(--ek-accent); box-shadow: inset 0 0 0 1px var(--ek-accent); background: var(--ek-accent-soft); }
html:root .form-control-plaintext { color: var(--ek-text); font-weight: 500; }

/* ---------- Kalendar: flatpickr ---------- */
html:root .flatpickr-calendar {
    width: 316px; padding: .6rem .6rem .7rem; border: 0; border-radius: 18px; background: var(--ek-surface); color: var(--ek-text);
    box-shadow: 0 0 0 1px var(--ek-border), 0 28px 50px -18px rgba(15, 23, 42, .4); font-family: var(--ek-font);
}
html:root .flatpickr-calendar::before, html:root .flatpickr-calendar::after { display: none; }
html:root .flatpickr-calendar.arrowTop, html:root .flatpickr-calendar.arrowBottom { margin-top: 6px; }
html:root .flatpickr-months { align-items: center; padding: .1rem 0 .4rem; }
html:root .flatpickr-months .flatpickr-month { height: 38px; color: var(--ek-text); fill: var(--ek-text); }
html:root .flatpickr-current-month { padding: 4px 0 0; font-size: .95rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: .3rem; height: 34px; }
html:root .flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; border-radius: 8px; padding: .15rem .3rem; background: transparent; color: var(--ek-text); appearance: none; -webkit-appearance: none; }
html:root .flatpickr-current-month .flatpickr-monthDropdown-months:hover, html:root .flatpickr-current-month input.cur-year:hover { background: var(--ek-surface-2); }
html:root .flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month { background: var(--ek-surface); color: var(--ek-text); }
html:root .flatpickr-current-month input.cur-year { font-weight: 700; color: var(--ek-text); border-radius: 8px; }
html:root .flatpickr-months .flatpickr-prev-month, html:root .flatpickr-months .flatpickr-next-month {
    position: absolute; top: 4px; width: 34px; height: 34px; padding: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ek-muted); fill: var(--ek-muted); transition: background-color .12s ease;
}
html:root .flatpickr-months .flatpickr-prev-month { left: 4px; } html:root .flatpickr-months .flatpickr-next-month { right: 4px; }
html:root .flatpickr-months .flatpickr-prev-month:hover, html:root .flatpickr-months .flatpickr-next-month:hover { background: var(--ek-accent-soft); }
html:root .flatpickr-months .flatpickr-prev-month:hover svg, html:root .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--ek-accent); }
html:root .flatpickr-months .flatpickr-prev-month svg, html:root .flatpickr-months .flatpickr-next-month svg { width: 12px; height: 12px; }
html:root .flatpickr-weekdays { height: 30px; margin-bottom: .15rem; }
html:root span.flatpickr-weekday { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ek-muted); background: transparent; }
html:root .flatpickr-innerContainer, html:root .flatpickr-rContainer, html:root .flatpickr-days, html:root .dayContainer { width: 100%; min-width: 100%; max-width: 100%; }
html:root .dayContainer { padding: 2px 0; gap: 2px 0; }
html:root .flatpickr-day {
    max-width: none; width: 14.2857%; flex-basis: 14.2857%; height: 38px; line-height: 38px; margin: 0; border: 0; border-radius: 12px; font-size: .84rem; font-weight: 500; color: var(--ek-text);
    transition: background-color .1s ease, color .1s ease;
}
html:root .flatpickr-day:hover, html:root .flatpickr-day:focus { background: var(--ek-surface-2); border: 0; }
html:root .flatpickr-day.today { border: 0; background: transparent; color: var(--ek-accent); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--ek-accent); }
html:root .flatpickr-day.today:hover { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .flatpickr-day.selected, html:root .flatpickr-day.startRange, html:root .flatpickr-day.endRange, html:root .flatpickr-day.selected:hover {
    background: var(--ek-accent); color: var(--ek-on-accent); font-weight: 700; box-shadow: 0 8px 16px -6px var(--ek-accent-ring);
}
html:root .flatpickr-day.inRange { background: var(--ek-accent-soft); color: var(--ek-accent); box-shadow: -5px 0 0 var(--ek-accent-soft), 5px 0 0 var(--ek-accent-soft); border-radius: 0; }
html:root .flatpickr-day.prevMonthDay, html:root .flatpickr-day.nextMonthDay { color: color-mix(in srgb, var(--ek-muted) 55%, transparent); }
html:root .flatpickr-day.flatpickr-disabled, html:root .flatpickr-day.flatpickr-disabled:hover { color: color-mix(in srgb, var(--ek-muted) 40%, transparent); background: transparent; }
html:root .flatpickr-day.week.selected { border-radius: 12px; }
html:root .flatpickr-time { margin-top: .35rem; border-top: 1px solid var(--ek-border) !important; height: 46px; max-height: 46px; line-height: 46px; }
html:root .flatpickr-time input, html:root .flatpickr-time .flatpickr-am-pm { color: var(--ek-text); font-weight: 700; border-radius: 8px; background: transparent; }
html:root .flatpickr-time input:hover, html:root .flatpickr-time .flatpickr-am-pm:hover, html:root .flatpickr-time input:focus { background: var(--ek-surface-2); }
html:root .flatpickr-time .flatpickr-time-separator { color: var(--ek-muted); }
html:root .numInputWrapper:hover { background: transparent; }
html:root .numInputWrapper span.arrowUp::after { border-bottom-color: var(--ek-muted); } html:root .numInputWrapper span.arrowDown::after { border-top-color: var(--ek-muted); }
html:root .numInputWrapper span { border: 0; }
html:root .flatpickr-calendar.hasTime.noCalendar { width: 220px; }

/* ---------- Kalendar: pickadate ---------- */
html:root .picker__holder { border-radius: 18px; background: var(--ek-surface); border: 0; box-shadow: 0 0 0 1px var(--ek-border), 0 28px 50px -18px rgba(15, 23, 42, .4); }
html:root .picker__frame { padding: .4rem; }
html:root .picker__box { padding: .6rem; background: var(--ek-surface); color: var(--ek-text); }
html:root .picker__header { margin-top: .2rem; }
html:root .picker__month, html:root .picker__year { font-weight: 700; color: var(--ek-text); }
html:root .picker__nav--prev, html:root .picker__nav--next { border-radius: 10px; padding: .45rem .7rem; }
html:root .picker__nav--prev:hover, html:root .picker__nav--next:hover { background: var(--ek-accent-soft); }
html:root .picker__weekday { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ek-muted); }
html:root .picker__day { border-radius: 12px; border: 0; padding: .55rem 0; font-weight: 500; color: var(--ek-text); }
html:root .picker__day--infocus:hover, html:root .picker__day--outfocus:hover { background: var(--ek-surface-2); color: var(--ek-text); }
html:root .picker__day--outfocus { color: color-mix(in srgb, var(--ek-muted) 55%, transparent); }
html:root .picker__day--today::before { border-top-color: var(--ek-accent); }
html:root .picker__day--selected, html:root .picker__day--selected:hover, html:root .picker--focused .picker__day--selected { background: var(--ek-accent); color: var(--ek-on-accent); font-weight: 700; }
html:root .picker__day--highlighted, html:root .picker--focused .picker__day--highlighted { background: var(--ek-accent-soft); color: var(--ek-accent); }
html:root .picker__footer { padding-top: .5rem; }
html:root .picker__button--today, html:root .picker__button--clear, html:root .picker__button--close { border-radius: 10px; font-weight: 600; color: var(--ek-accent); }
html:root .picker__button--today:hover, html:root .picker__button--clear:hover, html:root .picker__button--close:hover { background: var(--ek-accent-soft); border-color: transparent; }
html:root .picker__list-item { border-radius: 10px; border: 0; margin-bottom: 2px; }
html:root .picker__list-item:hover, html:root .picker__list-item--highlighted { background: var(--ek-surface-2); }
html:root .picker__list-item--selected, html:root .picker__list-item--selected:hover { background: var(--ek-accent); color: var(--ek-on-accent); }
html:root .select2-container--default .select2-results__option--highlighted, html:root .select2-container--default .select2-results__option--highlighted[aria-selected],
html:root .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: var(--ek-surface-2) !important; color: var(--ek-text) !important; }
html:root .select2-container--default .select2-results__option[aria-selected='true'], html:root .select2-container--default .select2-results__option--selected,
html:root .select2-container--default .select2-results__option--selected.select2-results__option--highlighted { background-color: var(--ek-accent-soft) !important; color: var(--ek-accent) !important; }
html:root .select2-container--default .select2-results__option--highlighted[aria-selected='false']:hover { background-color: var(--ek-surface-2) !important; }
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--ek-accent-soft) !important; color: var(--ek-accent) !important; border: 0 !important;
}
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice__display { color: inherit; padding: 0; }
html:root .form-switch .form-check-input, html:root .form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important; background-size: 1.15rem !important;
}
html:root .form-switch .form-check-input:not(:checked) { background-position: left .2rem center !important; background-color: color-mix(in srgb, var(--ek-muted) 40%, var(--ek-surface-2)) !important; }
html:root .form-switch .form-check-input:checked { background-position: right .2rem center !important; background-color: var(--ek-sw-on) !important; }

/* =====================================================================================================
 * v29 — forma tekisligi: moslashuvchan 2 ustunli setka + select2 variantlari va inputlar uchun qo'shimcha silliqlash
 * ===================================================================================================== */
html:root .ek-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; align-items: start; }
html:root .ek-grid > * { margin-top: 0 !important; margin-bottom: 0 !important; min-width: 0; width: auto; max-width: none; }
/* Ustun (col-*) padding'i setkada kerak emas — lekin checkbox (.form-check: chap padding = belgi joyi) va amallar paneli o'z padding'ini saqlaydi. */
html:root .ek-grid > *:not(.form-check):not(.ek-actions) { padding-left: 0; padding-right: 0; }
html:root .ek-grid > .ek-span, html:root .ek-grid > .ek-actions { grid-column: 1 / -1; }
html:root .ek-grid > .d-none { display: none !important; }
html:root .ek-grid > [class*='col-'] { flex: none; }
html:root .ek-grid > .ek-actions { margin-top: .4rem !important; }
html:root .ek-grid > .col-lg-12.d-flex { justify-content: flex-end; }
html:root .ek-grid .form-floating, html:root .ek-grid > div > .form-floating { margin-bottom: 0 !important; }
html:root .ek-grid > div > .select2-container, html:root .ek-grid > div > select.form-select { margin-bottom: 0 !important; }
@media (max-width: 767.98px) { html:root .ek-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; } }

/* Forma kartasi ichki to'ldirish va tor ekranda moslashish */
html:root .card-body > form.ek-form { max-width: 1180px; }
@media (max-width: 575.98px) { html:root .ek-form .btn[type='submit'] { width: 100%; } html:root .ek-form .ek-actions .btn { flex: 1 1 auto; } }

/* Select2 variantlari: yengilroq, qulayroq */
html:root .select2-results__options { padding: .4rem; }
html:root .select2-results__option { display: flex; align-items: center; min-height: 38px; padding: .45rem .75rem; margin: 2px 0; line-height: 1.3; border-radius: 10px; cursor: pointer; }
html:root .select2-container--default .select2-results__option--highlighted, html:root .select2-container--default .select2-results__option--highlighted[aria-selected] { box-shadow: inset 3px 0 0 var(--ek-accent); }
html:root .select2-container--default .select2-results__option[aria-selected='true'], html:root .select2-container--default .select2-results__option--selected { box-shadow: inset 3px 0 0 var(--ek-accent); }
html:root .select2-results__option[role='group'] { padding: 0; display: block; }
html:root .select2-results__option .select2-results__options--nested .select2-results__option { padding-left: 1.4rem; }
html:root .select2-results__option--disabled, html:root .select2-container--default .select2-results__option[aria-disabled='true'] { cursor: not-allowed; }
html:root .select2-container--default .select2-selection--single .select2-selection__rendered { display: flex; align-items: center; min-height: 40px; padding-top: 0; padding-bottom: 0; }
html:root .select2-container--default .select2-selection--single:hover, html:root .select2-container--default .select2-selection--multiple:hover { box-shadow: inset 0 0 0 1px var(--ek-muted), var(--tw-sm); }
html:root .select2-container--default.select2-container--open .select2-selection--single, html:root .select2-container--default.select2-container--open .select2-selection--multiple { background: var(--ek-surface); }
html:root .select2-container--default .select2-selection--multiple .select2-selection__rendered:empty::before { content: ''; }
html:root .select2-dropdown .select2-results > .select2-results__options::-webkit-scrollbar { width: 8px; }

/* Inputlar: foydalanuvchiga qulay holatlar */
html:root .form-control:not(:disabled):not([readonly]):hover, html:root .form-select:not(:disabled):hover { background-color: var(--ek-surface); }
html:root .form-control:focus::placeholder { opacity: .45; }
html:root .form-control:required:invalid:not(:placeholder-shown):not(:focus) { box-shadow: inset 0 0 0 1px var(--ek-danger), 0 0 0 3px color-mix(in srgb, var(--ek-danger) 12%, transparent); }
html:root .form-control:required:valid:not(:placeholder-shown):not(:focus):not(.select2-hidden-accessible) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-success) 55%, var(--ek-border)), var(--tw-sm); }
html:root .form-control, html:root .form-select { text-overflow: ellipsis; }
html:root .form-control[type='text'], html:root .form-control[type='number'], html:root .form-control:not([type]) { caret-color: var(--ek-accent); }
html:root textarea.form-control { min-height: 110px; }
html:root .form-label, html:root form label { cursor: pointer; }
html:root .ek-grid label.form-label { margin-top: 0 !important; }
html:root .card-body > form.ek-form { max-width: none; }
html:root .card > .card-body > form.ek-form, html:root .card-body.p-0 > form.ek-form { padding-top: .6rem; }
html:root .ek-grid { padding-top: .1rem; padding-bottom: .1rem; }
html:root .ek-grid > .form-floating > label + *, html:root .ek-grid > div > .form-label { margin-bottom: .4rem; }

/* =====================================================================================================
 * v30 — oddiy <select>: brauzerning moslashtiriladigan ro'yxati (appearance: base-select). Qo'llab-quvvatlanmasa — eski ko'rinish qoladi.
 * ===================================================================================================== */
@supports (appearance: base-select) {
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible),
    html:root select.form-control:not([multiple]):not([size]):not(.select2-hidden-accessible) {
        appearance: base-select; background-image: none; padding: 0 .55rem 0 .85rem; display: flex; align-items: center; cursor: pointer;
    }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible)::picker-icon,
    html:root select.form-control:not([multiple]):not([size]):not(.select2-hidden-accessible)::picker-icon {
        content: ''; width: 16px; height: 16px; margin-left: auto; background: var(--ek-muted); transition: transform .15s ease, background-color .15s ease;
        -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat;
                mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat;
    }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible):open::picker-icon { transform: rotate(180deg); background: var(--ek-accent); }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible)::picker(select) {
        appearance: base-select; box-sizing: border-box; margin-top: 6px; padding: .4rem; border: 0; border-radius: 14px; background: var(--ek-surface); color: var(--ek-text);
        box-shadow: 0 0 0 1px var(--ek-border), 0 22px 40px -16px rgba(15, 23, 42, .35); max-height: min(320px, 50vh); font: 500 .875rem var(--ek-font);
        opacity: 0; transform: translateY(-4px); transition: opacity .12s ease, transform .12s ease, display .12s allow-discrete, overlay .12s allow-discrete;
    }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible)::picker(select):popover-open { opacity: 1; transform: none; }
    @starting-style { html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible)::picker(select):popover-open { opacity: 0; transform: translateY(-4px); } }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option {
        display: flex; align-items: center; gap: .6rem; min-height: 38px; margin: 2px 0; padding: .45rem .75rem; border-radius: 10px; cursor: pointer;
        font-size: .875rem; font-weight: 500; color: var(--ek-text); background: transparent; transition: background-color .08s ease;
    }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option::checkmark { content: ''; order: 2; margin-left: auto; width: 16px; height: 16px; background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m5 12 5 5 9-10'/%3e%3c/svg%3e") center / contain no-repeat;
                mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m5 12 5 5 9-10'/%3e%3c/svg%3e") center / contain no-repeat; }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option:hover,
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option:focus-visible { background: var(--ek-surface-2); }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option:checked { background: var(--ek-accent-soft); color: var(--ek-accent); font-weight: 650; box-shadow: inset 3px 0 0 var(--ek-accent); }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option:disabled { opacity: .45; cursor: not-allowed; }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) optgroup { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ek-muted); padding: .55rem .75rem .2rem; }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible):open { box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 3px var(--ek-accent-soft); }
}

/* Select2 yopiq holati: yengil to'ldirish va chiroyli fokus */
html:root .select2-container--default .select2-selection--single, html:root .select2-container--default .select2-selection--multiple { cursor: pointer; }
html:root .select2-container--default.select2-container--open .select2-selection--single, html:root .select2-container--default.select2-container--open .select2-selection--multiple { box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 3px var(--ek-accent-soft); }
html:root .select2-container--default .select2-selection--single .select2-selection__rendered[title='']:empty::before, html:root .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ek-muted); font-weight: 400; }

/* ---------- v31 — select variantlarida chap chiziq/ramka yo'q (select2 va oddiy select) ---------- */
html:root .select2-results__option, html:root .select2-container--default .select2-results__option,
html:root .select2-container--default .select2-results__option--highlighted, html:root .select2-container--default .select2-results__option--highlighted[aria-selected],
html:root .select2-container--default .select2-results__option[aria-selected='true'], html:root .select2-container--default .select2-results__option--selected,
html:root .select2-container--default .select2-results__option--selected.select2-results__option--highlighted,
html:root .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { box-shadow: none !important; border: 0 !important; outline: 0 !important; }
html:root .select2-results__option::before { display: none !important; }
@supports (appearance: base-select) {
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option,
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option:hover,
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option:checked,
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option:focus-visible { box-shadow: none !important; border: 0 !important; outline: 0 !important; }
}

/* =====================================================================================================
 * v32 — formadagi tablar: segmentli boshqaruv (pills) va chiziqli tablar (tabs)
 * ===================================================================================================== */
/* Segmentli (til tablari) */
html:root .nav-pills, html:root .card .nav-pills {
    display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 4px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
    border-radius: 14px; background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border);
}
html:root .nav-pills::-webkit-scrollbar { display: none; }
html:root .nav-pills .nav-item { flex: none; }
html:root .nav-pills .nav-link, html:root .card .nav-pills .nav-link {
    position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.05rem; border-radius: 10px; border: 0;
    font-size: .8125rem; font-weight: 600; color: var(--ek-muted); background: transparent; box-shadow: none; white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
html:root .nav-pills .nav-link:hover:not(.active) { color: var(--ek-text); background: color-mix(in srgb, var(--ek-surface) 55%, transparent); }
html:root .nav-pills .nav-link.active, html:root .nav-pills .show > .nav-link, html:root .card .nav-pills .nav-link.active {
    color: var(--ek-accent); background: var(--ek-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 4px 10px -4px rgba(15, 23, 42, .18), 0 0 0 1px color-mix(in srgb, var(--ek-border) 70%, transparent);
}
html:root .nav-pills .nav-link.active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ek-accent); box-shadow: 0 0 0 3px var(--ek-accent-soft); }
html[data-theme='dark'] .nav-pills .nav-link.active { background: var(--ek-surface); box-shadow: 0 0 0 1px var(--ek-border); }
/* Xatosi bor tab */
html:root .nav-link.has-error::after { content: ''; width: 7px; height: 7px; margin-left: .1rem; border-radius: 50%; background: var(--ek-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ek-danger) 20%, transparent); }

/* Chiziqli tablar */
html:root .nav-tabs { gap: .15rem; border: 0; box-shadow: inset 0 -1px 0 var(--ek-border); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
html:root .nav-tabs::-webkit-scrollbar { display: none; }
html:root .nav-tabs .nav-link {
    position: relative; margin: 0; padding: .7rem 1.1rem; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--ek-muted); font-size: .8125rem; font-weight: 600; white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}
html:root .nav-tabs .nav-link::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 2.5px; border-radius: 3px 3px 0 0; background: var(--ek-accent); transform: scaleX(0); transition: transform .18s ease; }
html:root .nav-tabs .nav-link:hover:not(.active) { background: var(--ek-surface-2); color: var(--ek-text); }
html:root .nav-tabs .nav-link.active { color: var(--ek-accent); background: transparent; }
html:root .nav-tabs .nav-link.active::after { transform: scaleX(1); }
html:root .nav-tabs .nav-link .badge { margin-left: .4rem; }

/* Tab mazmuni */
html:root .tab-content { padding-top: 1rem; }
html:root .tab-content > .tab-pane { animation: ek-tab-in .18s ease both; }
@keyframes ek-tab-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html:root .tab-content > .tab-pane { animation: none; } }
html:root .card-body > .nav-pills { margin-bottom: 1rem; }
html:root .tab-content { padding-top: .3rem; }
html:root .tab-content > .tab-pane > [class*='mt-3'], html:root .tab-content > .tab-pane > [class*='mt-2'] { margin-top: .6rem !important; }

/* ---------- v33 — segmentli tablar butun kenglikda, teng bo'lingan ---------- */
html:root .nav-pills, html:root .card .nav-pills, html:root .card-body > .nav-pills { display: flex; width: 100%; max-width: 100%; padding: 5px; gap: 4px; border-radius: 16px; }
html:root .nav-pills .nav-item { flex: 1 1 0; min-width: max-content; }
html:root .nav-pills .nav-link, html:root .card .nav-pills .nav-link { width: 100%; justify-content: center; padding: .72rem 1.1rem; border-radius: 12px; font-size: .875rem; }
html:root .nav-pills .nav-link.active::before { width: 7px; height: 7px; }
html:root .nav-pills .nav-link.active, html:root .card .nav-pills .nav-link.active { box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 6px 14px -6px color-mix(in srgb, var(--ek-accent) 45%, rgba(15, 23, 42, .3)), 0 0 0 1px color-mix(in srgb, var(--ek-accent) 18%, var(--ek-border)); }
html:root .nav-pills.flex-column, html:root .nav-pills.nav-vertical, html:root .nav-pills.flex-md-column { display: flex; flex-direction: column; width: auto; }
html:root .nav-pills.flex-column .nav-item { flex: none; min-width: 0; }
html:root .nav-pills.flex-column .nav-link { justify-content: flex-start; }
@media (max-width: 575.98px) { html:root .nav-pills .nav-item { flex: 0 0 auto; } html:root .nav-pills .nav-link { padding: .6rem 1rem; } }

/* =====================================================================================================
 * v34 — bosganda ramka yo'q: fokus halqasi faqat klaviatura rejimida (html.ek-kbd). Faol tab/breadcrumb'da ramka yo'q.
 * ===================================================================================================== */
html:root :focus:not(.ek-kbd *) { }
html:root:not(.ek-kbd) a:focus, html:root:not(.ek-kbd) a:focus-visible, html:root:not(.ek-kbd) a:active,
html:root:not(.ek-kbd) button:focus, html:root:not(.ek-kbd) button:focus-visible, html:root:not(.ek-kbd) button:active,
html:root:not(.ek-kbd) [role='button']:focus, html:root:not(.ek-kbd) [tabindex]:focus, html:root:not(.ek-kbd) summary:focus,
html:root:not(.ek-kbd) .nav-link:focus, html:root:not(.ek-kbd) .nav-link:focus-visible, html:root:not(.ek-kbd) .breadcrumb-item a:focus,
html:root:not(.ek-kbd) .page-link:focus, html:root:not(.ek-kbd) .dropdown-item:focus, html:root:not(.ek-kbd) .btn:focus, html:root:not(.ek-kbd) .btn:focus-visible {
    outline: 0 !important; outline-offset: 0 !important;
}
html:root:not(.ek-kbd) .nav-pills .nav-link:focus, html:root:not(.ek-kbd) .nav-tabs .nav-link:focus, html:root:not(.ek-kbd) .breadcrumb-item a:focus,
html:root:not(.ek-kbd) .ek-back:focus, html:root:not(.ek-kbd) .ek-bn:focus { box-shadow: none; }
/* Klaviatura rejimida — aniq, lekin ramkasiz "halqa" */
html:root.ek-kbd a:focus-visible, html:root.ek-kbd button:focus-visible, html:root.ek-kbd [role='button']:focus-visible, html:root.ek-kbd .nav-link:focus-visible, html:root.ek-kbd .page-link:focus-visible {
    outline: 2px solid var(--ek-accent) !important; outline-offset: 2px;
}
/* Faol tab va breadcrumb: tashqi ramka yo'q (faqat yumshoq fon/soya) */
html:root .nav-pills .nav-link.active, html:root .card .nav-pills .nav-link.active, html:root .nav-pills .show > .nav-link {
    box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 6px 14px -6px rgba(15, 23, 42, .25) !important; border: 0 !important;
}
html[data-theme='dark'] .nav-pills .nav-link.active { box-shadow: 0 1px 2px rgba(0, 0, 0, .4) !important; }
html:root .nav-tabs .nav-link, html:root .nav-tabs .nav-link.active, html:root .nav-tabs .nav-link:focus, html:root .nav-tabs .nav-link:active { border: 0 !important; box-shadow: none !important; }
html:root .ek-crumbs .breadcrumb-item a, html:root .ek-crumbs .breadcrumb-item a:focus, html:root .ek-crumbs .breadcrumb-item a:active, html:root .ek-crumbs .breadcrumb-item.active,
html:root .ek-back, html:root .ek-back:focus, html:root .ek-back:active { border: 0 !important; outline: 0 !important; box-shadow: none !important; }
html:root .ek-crumbs { box-shadow: 0 0 0 1px var(--ek-border), var(--tw-sm); }
html:root.ek-kbd .ek-crumbs a:focus-visible, html:root.ek-kbd .ek-back:focus-visible { outline: 2px solid var(--ek-accent) !important; outline-offset: 1px; }
/* Karta ustiga kelganda/bosganda rangli ramka chiqmasin */
html:root .card, html:root .card:hover, html:root .card:focus-within, html:root .card:active { box-shadow: 0 0 0 1px var(--ek-border), var(--tw-sm); border-color: transparent; }
html:root .ek-kpi:hover { box-shadow: 0 0 0 1px var(--ek-border), var(--tw-md); }

/* Tablar: soya minimal (deyarli tekis) */
html:root .nav-pills .nav-link.active, html:root .card .nav-pills .nav-link.active, html:root .nav-pills .show > .nav-link { box-shadow: 0 1px 2px rgba(15, 23, 42, .08) !important; }
html[data-theme='dark'] .nav-pills .nav-link.active { box-shadow: none !important; }
html:root .nav-pills, html:root .card .nav-pills, html:root .card-body > .nav-pills { box-shadow: none; background: var(--ek-surface-2); }

/* ---------- v35 — forma tuzilmasi: tekislash va bo'sh breadcrumb ---------- */
html:root .ek-crumbs.is-empty { background: transparent; box-shadow: none; padding: 0; justify-content: flex-end; }
html:root .ek-crumbs.is-empty .ek-back { background: var(--ek-surface); box-shadow: 0 0 0 1px var(--ek-border), var(--tw-sm) !important; }
/* label'li va label'siz maydonlar bir qatorda: pastki chiziq bo'yicha tekislanadi */
html:root .ek-grid { align-items: end; }
html:root .ek-grid > .ek-span { align-self: stretch; }
html:root .ek-grid > div:has(> .form-label) { align-self: end; }
html:root .ek-grid > .ek-actions { margin-top: .9rem !important; }

/* =====================================================================================================
 * v36 — filtr formalari: bitta tekis qatorda, teng balandlik, tugmalar oxirida; tor ekranda o'raladi
 * ===================================================================================================== */
html:root .ek-filter-form { margin: 0; padding: .9rem 1.1rem 1rem; }
html:root .ek-filter-row { display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: .75rem .9rem; margin: 0 !important; --bs-gutter-x: 0; --bs-gutter-y: 0; }
html:root .ek-filter-row > * { flex: 1 1 180px; width: auto !important; max-width: none !important; min-width: 0; margin: 0 !important; padding: 0 !important; }
html:root .ek-filter-row > [class*='col-md-1']:not([class*='col-md-1']):first-child { flex-basis: 100px; }
html:root .ek-filter-row > :has(input[name='id']), html:root .ek-filter-row > :has(input[name='id_filter']) { flex: 0 1 120px; }
html:root .ek-filter-row > :has(input[name*='number']), html:root .ek-filter-row > :has(input[name*='reg']) { flex: 0 1 150px; }
html:root .ek-filter-row > :has(select), html:root .ek-filter-row > :has(.select2-container) { flex: 1.4 1 210px; }
html:root .ek-filter-row > :has(input[type='date']) { flex: 1 1 160px; }
html:root .ek-filter-row > .ek-filter-actions { flex: 0 0 auto; display: flex; gap: .5rem; align-items: flex-end; margin-left: auto !important; }
html:root .ek-filter-row > .ek-filter-actions .btn { width: 42px; height: 42px; padding: 0; margin: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
html:root .ek-filter-row label, html:root .ek-filter-row .form-label { display: block; margin: 0 0 .35rem !important; font-size: .75rem; font-weight: 600; color: var(--ek-muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root .ek-filter-row .form-control, html:root .ek-filter-row .form-select, html:root .ek-filter-row .select2-container--default .select2-selection--single { min-height: 42px; height: 42px; width: 100% !important; }
html:root .ek-filter-row .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.2; }
html:root .ek-filter-row .form-floating { margin: 0 !important; }
html:root .ek-filter-form.mt-1, html:root .ek-filter-form.mb-1 { margin-top: 0 !important; margin-bottom: 0 !important; }
@media (max-width: 767.98px) {
    html:root .ek-filter-row > * { flex: 1 1 100%; }
    html:root .ek-filter-row > :has(input[name='id']), html:root .ek-filter-row > :has(input[name*='number']), html:root .ek-filter-row > :has(input[name*='reg']) { flex: 1 1 calc(50% - .5rem); }
    html:root .ek-filter-row > .ek-filter-actions { flex: 1 1 100%; justify-content: flex-end; }
}

/* Modal formalari: yopishqoq panel kerak emas */
html:root .modal .ek-actions { position: static; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; margin: 0; }

/* Filtr paneli: ichki bo'shliq va yonma-yon amal tugmalari */
html:root .ek-filter-form { padding: .9rem 0 1rem; }
html:root .ek-filter-row > .ek-filter-actions + .ek-filter-actions { margin-left: 0 !important; }
html:root .ek-filter-row > .ek-filter-actions .btn + .btn { margin-left: .5rem !important; }
html:root .card-body > .ek-filter-form, html:root .card > .ek-filter-form { padding-left: 1.4rem; padding-right: 1.4rem; }
html:root .card-header + .ek-filter-form, html:root .card-header + .card-body > .ek-filter-form { padding-left: 0; padding-right: 0; }

/* Tugmalar: karta sarlavhasi va umumiy */
html:root .card-header .btn:not(.btn-icon):not(.btn-close), html:root .content-header .btn:not(.btn-icon) {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 38px; min-height: 38px; padding: 0 1.05rem !important; border-radius: 11px; font-size: .8125rem; font-weight: 600; line-height: 1;
}
html:root .card-header .btn svg, html:root .card-header .btn i { width: 15px; height: 15px; font-size: 14px; }
html:root .card-header .dropdown-toggle::after { margin-left: .3rem; }
html:root .card-header .btn-group, html:root .card-header .dropdown { display: inline-flex; }
html:root .card-header .ms-auto, html:root .card-header .d-flex.gap-1 { display: flex; align-items: center; gap: .5rem; }
html:root .btn-primary svg, html:root .btn-outline-primary svg { stroke-width: 2; }
html:root .btn + .btn:not(.btn-icon) { margin-left: .25rem; }

/* Vuexy belgilar hisoblagichi (textarea-counter): binafsha blok o'rniga ixcham yozuv */
html:root .textarea-counter-value, html:root .textarea-counter-value.bg-danger {
    display: block; float: none !important; width: auto; margin: .3rem 0 0; padding: 0 !important; background: transparent !important; color: var(--ek-muted) !important;
    font-size: .6875rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; border-radius: 0;
}
html:root .textarea-counter-value.bg-danger { color: var(--ek-danger) !important; }
/* Ikkilamchi tugmalar (Bekor qilish): og'ir to'q rang o'rniga yumshoq neytral */
html:root .btn-secondary, html:root .btn-light { background: var(--ek-surface-2) !important; color: var(--ek-text) !important; box-shadow: inset 0 0 0 1px var(--ek-border) !important; border-color: transparent !important; }
html:root .btn-secondary:hover, html:root .btn-light:hover { background: var(--ek-border) !important; color: var(--ek-text) !important; transform: none; box-shadow: inset 0 0 0 1px var(--ek-border) !important; filter: none; }
html:root td .btn-secondary, html:root td .btn-light { background: color-mix(in srgb, var(--ek-muted) 12%, transparent) !important; color: var(--ek-muted) !important; }

/* Rang tanlagich: matn + rang paneli juftligi */
html:root input[type='color'].form-control, html:root input.form-control-color[type='color'] { width: 100% !important; height: 42px; padding: .3rem; cursor: pointer; background: var(--ek-surface); }
html:root input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
html:root input[type='color']::-webkit-color-swatch { border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
html:root input[type='color']::-moz-color-swatch { border: 0; border-radius: 8px; }
html:root .form-control-color:not([type='color']) { font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: .03em; }
html:root .ek-grid { align-items: start; }
html:root .ek-grid > .ek-pad { margin-top: 1.75rem !important; }
html:root .ek-grid > .ek-span { align-self: stretch; }
html:root .ek-grid > div:has(> .form-label) { align-self: start; }

/* =====================================================================================================
 * v37 — jadval qatori bosiladi ("ko'rish"ga o'tadi) va telefonda qo'l bilan yonga suriladi
 * ===================================================================================================== */
html:root tr.ek-row-link { cursor: pointer; }
html:root tr.ek-row-link:active > td { background-color: var(--ek-accent-soft); }
html:root tr.ek-row-link > td { transition: background-color .1s ease; }

/* Yonga surish: sensorli ekranda silliq, qo'l bilan */
html:root .table-responsive, html:root .dataTables_wrapper, html:root .card .table-wrap {
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: thin;
}
html:root .table-responsive > .table, html:root .table-responsive > table { min-width: 100%; width: max-content; max-width: none; }
@media (max-width: 991.98px) {
    html:root .table-responsive { border-radius: 14px; margin: 0; padding: 0; }
    html:root .table-responsive > .table { width: max-content; min-width: 640px; }
    html:root .table > :not(caption) > * > * { white-space: nowrap; }
    html:root .card:has(> .table-responsive), html:root .card-body:has(> .table-responsive) { overflow: visible; }
    /* Surish mumkinligini bildiruvchi yengil chekka soyalari */
    html:root .table-responsive {
        background:
            linear-gradient(to right, var(--ek-surface) 30%, transparent) left center / 24px 100% no-repeat local,
            linear-gradient(to left, var(--ek-surface) 30%, transparent) right center / 24px 100% no-repeat local,
            radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, .12), transparent) left center / 10px 100% no-repeat scroll,
            radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, .12), transparent) right center / 10px 100% no-repeat scroll;
    }
    html:root .table-responsive .sticky-col, html:root .table-responsive td:first-child { }
}

/* =====================================================================================================
 * v38 — tugma ikonkalari: yagona o'lcham, ingichka chiziq, ma'noli oraliq
 * ===================================================================================================== */
html:root .btn svg, html:root .btn .feather, html:root .btn .ek-bi, html:root .btn i[class*='fa-'], html:root .btn [data-feather] {
    width: 16px; height: 16px; flex: none; margin: 0 !important; stroke-width: 1.9; vertical-align: -3px; font-size: 14px; line-height: 1;
}
html:root .btn:has(> svg, > i):not(.btn-icon), html:root .btn:has(> .ek-bi):not(.btn-icon) { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
html:root .btn-sm svg, html:root .btn-sm .feather, html:root .btn-sm i[class*='fa-'] { width: 14px; height: 14px; font-size: 12px; }
html:root .btn-lg svg, html:root .btn-lg .feather { width: 18px; height: 18px; }
html:root .btn-icon svg, html:root .btn-icon .feather, html:root .btn-icon i[class*='fa-'] { width: 17px; height: 17px; font-size: 15px; vertical-align: middle; }
html:root .btn-icon.btn-sm svg { width: 15px; height: 15px; }
/* Ikonka ranglari tugma matni bilan bir xil, ustiga kelganda yumshoq siljish */
html:root .btn svg { color: inherit; transition: transform .15s ease; }
html:root .btn-primary:hover > svg, html:root .btn-outline-primary:hover > svg { transform: translateY(-1px); }
html:root a.btn[href$='/create']:hover > svg { transform: rotate(90deg); }
html:root .btn.dropdown-toggle svg { margin-right: .1rem !important; }
html:root .btn .ek-bi path, html:root .btn .ek-bi line, html:root .btn .ek-bi polyline, html:root .btn .ek-bi circle, html:root .btn .ek-bi rect { vector-effect: non-scaling-stroke; }
/* Ikonka-kvadrat tugmalar (qidirish / tozalash / amallar) */
html:root .btn-icon { gap: 0; }
html:root .btn-icon svg { stroke-width: 2; }
html:root .btn.ek-btn-text { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: auto; padding-left: 1.05rem; padding-right: 1.05rem; }

/* =====================================================================================================
 * v39 — Rol: ruxsatlar (modul kartalari, chip ko'rinishidagi belgilar, qidiruv va hisoblagichlar)
 * ===================================================================================================== */
.ek-perms-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.ek-perms-head p { max-width: 70ch; font-size: .8125rem; margin-top: .25rem; }
.ek-perms-total { flex: none; padding: .35rem .8rem; border-radius: 999px; font-weight: 700; font-size: .8125rem; color: var(--ek-accent); background: var(--ek-accent-soft); font-variant-numeric: tabular-nums; }
.ek-perms-tools { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ek-perms-tools .form-control { flex: 1 1 260px; min-width: 0; }
.ek-perms-tools .btn { white-space: nowrap; }
.ek-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .9rem; align-items: start; }
.ek-perms [hidden] { display: none !important; }
.ek-perm-group { padding: .85rem .9rem .95rem; border-radius: 16px; background: var(--ek-surface); box-shadow: 0 0 0 1px var(--ek-border); transition: box-shadow .12s ease; }
.ek-perm-group.has-checked { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ek-accent) 35%, var(--ek-border)); }
.ek-perm-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .65rem; }
.ek-perm-head h6 { margin: 0; flex: 1; min-width: 0; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ek-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ek-perm-count { font-size: .6875rem; font-weight: 700; color: var(--ek-muted); font-variant-numeric: tabular-nums; padding: .12rem .5rem; border-radius: 999px; background: var(--ek-surface-2); }
.ek-perm-group.has-checked .ek-perm-count { color: var(--ek-accent); background: var(--ek-accent-soft); }
.ek-perm-all { display: inline-flex; align-items: center; gap: .4rem; margin: 0 !important; cursor: pointer; font-size: .75rem !important; font-weight: 600 !important; color: var(--ek-muted); }
.ek-perm-all .form-check-input { margin: 0; width: 1rem; height: 1rem; }
.ek-perm-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.ek-perm { position: relative; }
.ek-perm .form-check-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ek-perm label {
    display: inline-flex; align-items: center; gap: .1rem; margin: 0 !important; padding: .32rem .7rem .32rem .55rem; border-radius: 999px; cursor: pointer; font-size: .78rem !important; font-weight: 500 !important; letter-spacing: 0;
    color: var(--ek-muted); background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border); transition: background-color .1s ease, color .1s ease, box-shadow .1s ease;
}
.ek-perm label small { color: color-mix(in srgb, var(--ek-muted) 80%, transparent); font-size: inherit; }
.ek-perm label b { font-weight: 600; color: var(--ek-text); }
.ek-perm label::before { content: ''; flex: none; width: 14px; height: 14px; margin-right: .35rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ek-muted) 55%, var(--ek-border)); background: transparent; transition: background-color .1s ease, box-shadow .1s ease; }
.ek-perm:hover label { background: var(--ek-border); }
.ek-perm .form-check-input:checked + label { background: var(--ek-accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-accent) 35%, transparent); }
.ek-perm .form-check-input:checked + label b, .ek-perm .form-check-input:checked + label small { color: var(--ek-accent); }
.ek-perm .form-check-input:checked + label::before {
    background: var(--ek-accent) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 12 4 4 8-9'/%3e%3c/svg%3e") center / 10px no-repeat; box-shadow: none;
}
.ek-perm .form-check-input:focus-visible + label { outline: 2px solid var(--ek-accent); outline-offset: 2px; }
.ek-perms-empty { grid-column: 1 / -1; padding: 2rem; text-align: center; color: var(--ek-muted); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--ek-border); }
@media (max-width: 575.98px) { .ek-perms { grid-template-columns: minmax(0, 1fr); } .ek-perms-head { flex-direction: column; } }
html:root .ek-perm label, html:root .ek-form .ek-perm label:not(.form-check-label) { display: inline-flex !important; align-items: center; margin: 0 !important; font-size: .78rem !important; font-weight: 500 !important; }
.ek-perm label::before { display: inline-block; }
html:root .ek-perm-all { display: inline-flex !important; }
html:root .ek-perms-head h5 { border: 0; padding: 0; margin: 0; }

/* =====================================================================================================
 * v40 — jadval amal tugmalari: ma'noga qarab rang (ton), yumshoq "plitka", hover'da to'ldirilish
 * ===================================================================================================== */
html:root td .btn[data-tone='view']     { --tone: #2563eb !important; }
html:root td .btn[data-tone='edit']     { --tone: #059669 !important; }
html:root td .btn[data-tone='delete']   { --tone: #e11d48 !important; }
html:root td .btn[data-tone='block']    { --tone: #ea580c !important; }
html:root td .btn[data-tone='unblock']  { --tone: #16a34a !important; }
html:root td .btn[data-tone='reject']   { --tone: #64748b !important; }
html[data-theme='dark'] td .btn[data-tone='block'] { --tone: #fb923c !important; } html[data-theme='dark'] td .btn[data-tone='unblock'] { --tone: #4ade80 !important; } html[data-theme='dark'] td .btn[data-tone='reject'] { --tone: #94a3b8 !important; }
html:root td .btn[data-tone='flow']     { --tone: #7c3aed !important; }
html:root td .btn[data-tone='file']     { --tone: #d97706 !important; }
html:root td .btn[data-tone='sync']     { --tone: #0891b2 !important; }
html:root td .btn[data-tone='user']     { --tone: #db2777 !important; }
html:root td .btn[data-tone='secure']   { --tone: #4f46e5 !important; }
html:root td .btn[data-tone='settings'] { --tone: #64748b !important; }
html:root td .btn[data-tone='ok']       { --tone: #16a34a !important; }
html:root td .btn[data-tone='add']      { --tone: #0d9488 !important; }
html[data-theme='dark'] td .btn[data-tone='view']     { --tone: #60a5fa !important; } html[data-theme='dark'] td .btn[data-tone='edit']   { --tone: #34d399 !important; }
html[data-theme='dark'] td .btn[data-tone='delete']   { --tone: #fb7185 !important; } html[data-theme='dark'] td .btn[data-tone='flow']   { --tone: #a78bfa !important; }
html[data-theme='dark'] td .btn[data-tone='file']     { --tone: #fbbf24 !important; } html[data-theme='dark'] td .btn[data-tone='sync']   { --tone: #22d3ee !important; }
html[data-theme='dark'] td .btn[data-tone='user']     { --tone: #f472b6 !important; } html[data-theme='dark'] td .btn[data-tone='secure'] { --tone: #818cf8 !important; }
html[data-theme='dark'] td .btn[data-tone='settings'] { --tone: #94a3b8 !important; } html[data-theme='dark'] td .btn[data-tone='ok']     { --tone: #4ade80 !important; }
html[data-theme='dark'] td .btn[data-tone='add']      { --tone: #2dd4bf !important; }

html:root td .btn-icon[data-tone], html:root td .btn.btn-sm.btn-icon[data-tone] {
    width: 34px; height: 34px; margin: 0 3px !important; border-radius: 11px;
    color: var(--tone) !important; background: color-mix(in srgb, var(--tone) 10%, transparent) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 16%, transparent) !important;
    transition: background-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease !important;
}
html:root td .btn-icon[data-tone]:hover, html:root td a.btn-icon[data-tone]:hover {
    color: #fff !important; background: var(--tone) !important; transform: translateY(-2px);
    box-shadow: 0 8px 16px -8px var(--tone), inset 0 0 0 1px transparent !important;
}
html[data-theme='dark'] td .btn-icon[data-tone]:hover { color: #0b1020 !important; }
html:root td .btn-icon[data-tone]:active { transform: translateY(0); box-shadow: none !important; }
html:root td .btn-icon[data-tone] svg, html:root td .btn-icon[data-tone] i { width: 16px; height: 16px; stroke-width: 2; }
html:root td .btn-icon[data-tone]:disabled, html:root td .btn-icon[data-tone][disabled], html:root td .btn-icon[data-tone].disabled {
    opacity: .38; transform: none; pointer-events: none; background: var(--ek-surface-2) !important; color: var(--ek-muted) !important; box-shadow: inset 0 0 0 1px var(--ek-border) !important;
}
/* amal tugmalari bir qatorda, orasi teng */
html:root td:has(> .btn-icon[data-tone]), html:root td:has(> form > .btn-icon[data-tone]) { white-space: nowrap; }
html:root td > .btn-icon[data-tone] + form, html:root td > form + .btn-icon[data-tone] { margin-left: 0; }
/* Amal tugmalari flex konteynerda ham yonma-yon, bir-biriga yaqin */
html:root td .d-flex:has(> .btn-icon[data-tone]), html:root td .d-flex:has(> form > .btn-icon[data-tone]), html:root td .btn-group:has(> .btn-icon[data-tone]) { justify-content: flex-start !important; gap: .35rem; flex-wrap: nowrap; }
html:root td .d-flex:has(> .btn-icon[data-tone]) > .btn-icon, html:root td .d-flex:has(> form > .btn-icon[data-tone]) > .btn-icon { margin: 0 !important; }
html:root td .d-flex > form { margin: 0; }
html:root td.d-flex:has(> .btn-icon[data-tone]), html:root td.d-flex:has(> form > .btn-icon[data-tone]) { justify-content: flex-start !important; gap: .35rem; align-items: center; }
html:root td.d-flex:has(> .btn-icon[data-tone]) > .btn-icon, html:root td.d-flex > form > .btn-icon[data-tone] { margin: 0 !important; }

/* =====================================================================================================
 * v41 — Kirish (login) sahifasi: to'liq ekran fon, ustida shisha karta
 * ===================================================================================================== */
body.blank-page .auth-wrapper.auth-cover { min-height: 100vh; background: var(--ek-bg); }
body.blank-page .auth-wrapper.auth-cover .auth-inner { position: relative; min-height: 100vh; overflow: hidden; }
/* Chap tomondagi rasm — butun ekran fon + rangli qatlam */
body.blank-page .auth-wrapper.auth-cover .auth-inner > .d-lg-flex { position: absolute !important; inset: 0; width: 100% !important; max-width: none !important; padding: 0 !important; background-size: cover !important; background-position: center !important; }
body.blank-page .auth-wrapper.auth-cover .auth-inner > .d-lg-flex::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(14, 17, 40, .88) 0%, color-mix(in srgb, var(--ek-accent) 55%, rgba(14, 17, 40, .5)) 100%); }
body.blank-page .auth-wrapper.auth-cover .auth-inner > .d-lg-flex::after { content: 'Hujjatlar, qarorlar va jarayonlar — bir joyda'; position: absolute; left: 4rem; bottom: 4rem; max-width: 28ch; color: #fff; font: 700 clamp(1.6rem, 3vw, 2.4rem)/1.2 var(--ek-font); letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
/* Logotip */
body.blank-page .auth-wrapper.auth-cover .brand-logo { position: absolute; top: 2rem; left: 4rem; z-index: 3; margin: 0; }
body.blank-page .auth-wrapper.auth-cover .brand-logo .brand-text { margin: 0 !important; color: #fff !important; font-weight: 800; letter-spacing: -.02em; font-size: 1.35rem; }
/* O'ng tomon: karta */
body.blank-page .auth-wrapper.auth-cover .auth-inner > .auth-bg {
    position: relative; z-index: 2; margin-left: auto; width: min(480px, 100%) !important; max-width: none !important; flex: none; min-height: 100vh;
    background: color-mix(in srgb, var(--ek-surface) 92%, transparent) !important; -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5); padding: 3rem 2.4rem !important;
}
body.blank-page .auth-wrapper.auth-cover .auth-bg > div { width: 100%; max-width: 400px; }
.auth-badge { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem; padding: .3rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: var(--ek-accent); background: var(--ek-accent-soft); }
.auth-badge svg { width: 14px; height: 14px; }
body.blank-page .auth-header-block h2 { font-size: 1.75rem; letter-spacing: -.03em; color: var(--ek-text); }
.auth-sub { color: var(--ek-muted); font-size: .9rem; line-height: 1.5; }
body.blank-page .auth-method-item { padding: 1rem; border-radius: 16px; background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border); }
body.blank-page .auth-method-item .card-text { margin: 0 0 .65rem !important; font-weight: 600; color: var(--ek-muted); letter-spacing: .01em; }
body.blank-page .auth-method-item .btn, body.blank-page .auth-method-item input[type='button'] {
    display: flex; align-items: center; justify-content: center; gap: .6rem; height: 48px; padding: 0 1rem !important; border-radius: 13px; font-size: .92rem; font-weight: 650;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
body.blank-page .auth-method-item .btn-outline-primary { color: var(--ek-on-accent) !important; background: linear-gradient(135deg, var(--ek-accent), color-mix(in srgb, var(--ek-accent) 70%, #ff6bd6)) !important; box-shadow: 0 12px 24px -12px var(--ek-accent) !important; }
body.blank-page .auth-method-item .btn-outline-primary:hover { transform: translateY(-1px); }
body.blank-page .auth-method-item .btn-outline-info, body.blank-page .auth-method-item input#key-search-input {
    color: var(--ek-text) !important; background: var(--ek-surface) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d5dfc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M21 2l-2 2m-7.6 7.6a5.5 5.5 0 1 1-7.8 7.8 5.5 5.5 0 0 1 7.8-7.8zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3e%3c/svg%3e") no-repeat 1.1rem center / 20px !important;
    box-shadow: inset 0 0 0 1px var(--ek-border), var(--tw-sm) !important; padding-left: 2.8rem !important;
}
body.blank-page .auth-method-item .btn-outline-info:hover, body.blank-page .auth-method-item input#key-search-input:hover { box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 3px var(--ek-accent-soft) !important; }
.auth-ic { width: 20px; height: 20px; flex: none; }
.auth-foot { margin-top: 1.4rem; text-align: center; font-size: .75rem; color: var(--ek-muted); }
body.blank-page .auth-errors-block .alert { border-radius: 14px; }
@media (max-width: 991.98px) {
    body.blank-page .auth-wrapper.auth-cover .auth-inner { background: radial-gradient(900px 420px at 80% -100px, var(--ek-accent-soft), transparent 70%), var(--ek-bg); }
    body.blank-page .auth-wrapper.auth-cover .auth-inner > .auth-bg { width: 100% !important; margin: 0 auto; box-shadow: none; background: transparent !important; backdrop-filter: none; }
    body.blank-page .auth-wrapper.auth-cover .brand-logo { left: 1.5rem; top: 1.25rem; }
    body.blank-page .auth-wrapper.auth-cover .brand-logo .brand-text { color: var(--ek-accent) !important; }
}
body.blank-page .auth-method-item input[type='button'] { -webkit-appearance: none; appearance: none; display: block; width: 100%; text-align: center; padding: 0 1rem 0 2.8rem !important; border: 0 !important; cursor: pointer; }
body.blank-page .auth-method-item input[type='button']:focus { outline: 0; }
/* Waves.js input'ni o'raydi (.waves-input-wrapper): bezak o'ramda, ichki input shaffof */
body.blank-page .auth-method-item .waves-input-wrapper { display: block; width: 100%; padding: 0 !important; border: 0 !important; overflow: hidden; border-radius: 13px;
    background: var(--ek-surface) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d5dfc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M21 2l-2 2m-7.6 7.6a5.5 5.5 0 1 1-7.8 7.8 5.5 5.5 0 0 1 7.8-7.8zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3e%3c/svg%3e") no-repeat 1.1rem center / 20px;
    box-shadow: inset 0 0 0 1px var(--ek-border), var(--tw-sm); height: 48px; transition: box-shadow .12s ease; }
body.blank-page .auth-method-item .waves-input-wrapper:hover { box-shadow: inset 0 0 0 1px var(--ek-accent), 0 0 0 3px var(--ek-accent-soft); }
body.blank-page .auth-method-item .waves-input-wrapper > input, body.blank-page .auth-method-item input.waves-button-input {
    width: 100% !important; height: 48px !important; background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 1rem 0 2.8rem !important; border-radius: 0; color: var(--ek-text) !important; font-weight: 650; text-align: center; cursor: pointer;
}

/* =====================================================================================================
 * v42 — Kirish sahifasi 2.0: mazmunli hero (chap), toza forma (o'ng), tema tugmasi, "yoki" ajratgich
 * ===================================================================================================== */
body.blank-page .auth-wrapper.auth-cover .auth-inner > .d-lg-flex::after { display: none; }
body.blank-page .auth-wrapper.auth-cover .auth-inner > .d-lg-flex::before {
    background:
        radial-gradient(600px 400px at 15% 85%, color-mix(in srgb, var(--ek-accent) 55%, transparent), transparent 70%),
        radial-gradient(700px 500px at 90% 10%, rgba(255, 107, 214, .28), transparent 70%),
        linear-gradient(135deg, rgba(10, 12, 32, .92), rgba(16, 18, 52, .78));
}
.auth-hero { position: relative; z-index: 2; width: 100%; max-width: 560px; margin: 0 0 0 4rem; color: #fff; }
.auth-hero-kicker { display: inline-block; margin-bottom: 1.1rem; padding: .35rem .85rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.auth-hero h1 { margin: 0 0 1rem; color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.auth-hero p { margin: 0 0 2rem; max-width: 46ch; color: rgba(255, 255, 255, .72); font-size: 1.02rem; line-height: 1.65; }
.auth-hero-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.auth-hero-list li { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center; padding: .8rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.auth-hero-list span { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, .14); }
.auth-hero-list svg { width: 22px; height: 22px; }
.auth-hero-list b { font-size: .95rem; font-weight: 650; }
.auth-hero-list em { font-style: normal; font-size: .8rem; color: rgba(255, 255, 255, .65); }

body.blank-page .auth-wrapper.auth-cover .auth-inner > .auth-bg {
    width: min(520px, 100%) !important; background: var(--ek-surface) !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: -40px 0 90px -40px rgba(0, 0, 0, .55); position: relative;
}
body.blank-page .auth-wrapper.auth-cover .auth-bg > div { max-width: 390px; }
.auth-mark { display: block; margin: 0 0 1.4rem; filter: drop-shadow(0 8px 16px var(--ek-accent-ring)); }
.auth-theme { position: absolute; top: 1.4rem; right: 1.4rem; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer; color: var(--ek-muted); background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border); }
.auth-theme:hover { color: var(--ek-accent); background: var(--ek-accent-soft); }
.auth-theme svg { width: 18px; height: 18px; }
.auth-theme .i-moon { display: none; } html[data-theme='dark'] .auth-theme .i-sun { display: none; } html[data-theme='dark'] .auth-theme .i-moon { display: block; }
/* usullar: kartochkasiz, toza */
body.blank-page .auth-method-item { padding: 0; background: transparent; box-shadow: none; border-radius: 0; margin-bottom: 0 !important; }
body.blank-page .auth-method-item .card-text { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.auth-or { position: relative; margin: 1.3rem 0; text-align: center; }
.auth-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ek-border); }
.auth-or span { position: relative; padding: 0 .9rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ek-muted); background: var(--ek-surface); }
body.blank-page .auth-method-item .btn-outline-primary { height: 52px; border-radius: 14px; }
body.blank-page .auth-method-item .waves-input-wrapper, body.blank-page .auth-method-item .waves-input-wrapper > input { height: 52px !important; }
body.blank-page .auth-method-item .waves-input-wrapper { border-radius: 14px; }
@media (max-width: 991.98px) {
    body.blank-page .auth-wrapper.auth-cover .auth-inner > .auth-bg { box-shadow: none; }
    .auth-theme { top: 1rem; right: 1rem; }
}
html:root .auth-hero h1, html:root .auth-hero b { color: #fff; }
html:root .auth-hero p, html:root .auth-hero em { color: rgba(255, 255, 255, .72); }
html:root .auth-hero-kicker { color: #fff; }
html:root .auth-hero h1, html:root .auth-hero-list b { color: #fff !important; }
html:root .auth-hero p, html:root .auth-hero-list em { color: rgba(255, 255, 255, .72) !important; }

/* Kirish tugmalari 2.0: ikkalasi bir tilda — chapda ikonka "pufak", o'rtada matn */
body.blank-page .auth-method-item .btn-outline-primary { position: relative; justify-content: center; padding-left: 3.4rem !important; padding-right: 3.4rem !important; height: 54px; }
body.blank-page .auth-method-item .btn-outline-primary .auth-ic { position: absolute; left: .55rem; top: 50%; width: 36px; height: 36px; margin-top: -18px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .2); }
body.blank-page .auth-method-item .waves-input-wrapper {
    position: relative; height: 54px; border-radius: 14px; background: var(--ek-surface) !important;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ek-accent) 28%, var(--ek-border)) !important; transition: box-shadow .12s ease, background-color .12s ease, transform .12s ease;
}
body.blank-page .auth-method-item .waves-input-wrapper::before {
    content: ''; position: absolute; left: .55rem; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 10px; z-index: 1; pointer-events: none;
    background: var(--ek-accent-soft) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d5dfc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M21 2l-2 2m-7.6 7.6a5.5 5.5 0 1 1-7.8 7.8 5.5 5.5 0 0 1 7.8-7.8zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'/%3e%3c/svg%3e") center / 18px no-repeat;
}
body.blank-page .auth-method-item .waves-input-wrapper:hover { background: var(--ek-accent-soft) !important; box-shadow: inset 0 0 0 1.5px var(--ek-accent), 0 0 0 4px var(--ek-accent-soft) !important; transform: translateY(-1px); }
body.blank-page .auth-method-item .waves-input-wrapper > input, body.blank-page .auth-method-item input.waves-button-input { height: 54px !important; padding: 0 3.4rem !important; font-size: .92rem; background-image: none !important; }
body.blank-page .auth-method-item .btn-outline-primary:active, body.blank-page .auth-method-item .waves-input-wrapper:active { transform: translateY(0); }
body.blank-page .auth-method-item .btn-outline-primary .auth-ic { top: 50%; margin: 0 !important; transform: translateY(-50%); width: 36px !important; height: 36px !important; }
body.blank-page .auth-method-item .waves-input-wrapper::before { margin-top: 0; transform: translateY(-50%); background-color: color-mix(in srgb, var(--ek-accent) 16%, transparent); }
body.blank-page .auth-method-item .waves-input-wrapper { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ek-accent) 45%, var(--ek-border)) !important; }
body.blank-page .auth-method-item .waves-input-wrapper { height: 54px !important; }
body.blank-page .auth-method-item .waves-input-wrapper::before { background-color: color-mix(in srgb, var(--ek-accent) 22%, transparent); }
/* ERI tugmasi: ichki input o'ramning yumaloq chetlarini yopib qo'ymasin (id bilan kuchaytirilgan) */
body.blank-page .auth-method-item input#key-search-input, body.blank-page .auth-method-item .waves-input-wrapper > input#key-search-input {
    box-shadow: none !important; background: transparent !important; background-image: none !important; border: 0 !important; border-radius: inherit !important; outline: 0 !important;
}
body.blank-page .auth-method-item .waves-input-wrapper { isolation: isolate; }

/* Logotip "chiplari": OneID (matn belgisi yoki rasmiy fayl) va E-IMZO */
body.blank-page .auth-method-item .auth-logo {
    position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
    min-width: 84px; height: 36px; padding: 0 .7rem; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}
body.blank-page .auth-method-item .auth-logo img { height: 20px; width: auto; display: block; }
body.blank-page .auth-method-item .auth-logo-text { font: 800 1.05rem/1 var(--ek-font); letter-spacing: -.03em; color: #1f3d8a; }
body.blank-page .auth-method-item .auth-logo-text b { font-weight: 800; color: #1f3d8a; }
body.blank-page .auth-method-item .auth-logo-text::after { content: ''; }
body.blank-page .auth-method-item .btn-outline-primary { padding-left: 6.6rem !important; padding-right: 1.2rem !important; }
body.blank-page .auth-method-item .btn-outline-primary span:not(.auth-logo):not(.auth-logo-text) { text-align: center; flex: 1; }
/* E-IMZO: logotip o'ramning chap chipida */
body.blank-page .auth-method-item .waves-input-wrapper::before {
    width: 84px; height: 36px; border-radius: 10px; background: #fff url('../assets/img/e_imzo.png') center / 66px auto no-repeat !important; box-shadow: 0 0 0 1px var(--ek-border);
}
body.blank-page .auth-method-item .waves-input-wrapper > input, body.blank-page .auth-method-item input.waves-button-input { padding: 0 1.2rem 0 6.6rem !important; }

/* OneID: rasmiy belgi (id.egov.uz) + yozuv; E-IMZO: rasmiy logotip */
body.blank-page .auth-method-item .auth-logo-oneid { gap: .45rem; min-width: 96px; padding: 0 .7rem 0 .5rem; }
body.blank-page .auth-method-item .auth-logo-oneid img { width: 22px; height: 22px; border-radius: 6px; }
body.blank-page .auth-method-item .auth-logo-oneid i { font: 800 .98rem/1 var(--ek-font); font-style: normal; letter-spacing: -.02em; color: #1f3d8a; }
body.blank-page .auth-method-item .auth-logo-oneid i b { font-weight: 800; color: #2a50b5; }
/* Tun rejimi: karta, ajratgich, tugma ranglari */
html[data-theme='dark'] body.blank-page .auth-wrapper.auth-cover .auth-inner > .auth-bg { background: var(--ek-surface) !important; box-shadow: -40px 0 90px -40px rgba(0, 0, 0, .8); }
html[data-theme='dark'] .auth-or span { background: var(--ek-surface); }
html[data-theme='dark'] body.blank-page .auth-method-item .waves-input-wrapper { background: var(--ek-surface-2) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ek-accent) 55%, var(--ek-border)) !important; }
html[data-theme='dark'] body.blank-page .auth-method-item .waves-input-wrapper:hover { background: var(--ek-accent-soft) !important; }
html[data-theme='dark'] body.blank-page .auth-method-item .waves-input-wrapper > input#key-search-input, html[data-theme='dark'] body.blank-page .auth-method-item input#key-search-input { color: var(--ek-text) !important; }
html[data-theme='dark'] body.blank-page .auth-header-block h2, html[data-theme='dark'] body.blank-page .auth-header-block .card-title { color: var(--ek-text); }
html[data-theme='dark'] .auth-mark { filter: drop-shadow(0 8px 20px rgba(139, 124, 255, .35)) brightness(1.1); }
html[data-theme='dark'] body.blank-page .auth-method-item .auth-logo { box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
html[data-theme='dark'] body.blank-page .auth-wrapper.auth-cover .auth-inner > .d-lg-flex::before {
    background: radial-gradient(600px 400px at 15% 85%, color-mix(in srgb, var(--ek-accent) 45%, transparent), transparent 70%), radial-gradient(700px 500px at 90% 10%, rgba(255, 107, 214, .2), transparent 70%), linear-gradient(135deg, rgba(5, 6, 18, .95), rgba(10, 11, 34, .86));
}
html[data-theme='dark'] body.blank-page .alert-danger { background: color-mix(in srgb, var(--ek-danger) 16%, var(--ek-surface)) !important; color: var(--ek-danger); }
html:root body.blank-page .auth-header-block h2, html:root body.blank-page .auth-header-block .card-title { color: var(--ek-text) !important; }
html[data-theme='dark'] body.blank-page .auth-method-item .btn-outline-primary { color: #0e1020 !important; }

/* Logotiplar shaffof: chip foni yo'q, logotip tugma ustida to'g'ridan-to'g'ri */
body.blank-page .auth-method-item .auth-logo, html[data-theme='dark'] body.blank-page .auth-method-item .auth-logo { background: transparent !important; box-shadow: none !important; }
body.blank-page .auth-method-item .auth-logo-oneid { min-width: 0; padding: 0 .2rem; gap: .5rem; }
body.blank-page .auth-method-item .auth-logo-oneid img { width: 26px; height: 26px; border-radius: 0; filter: brightness(0) invert(1); }
body.blank-page .auth-method-item .auth-logo-oneid i, body.blank-page .auth-method-item .auth-logo-oneid i b { color: #fff; }
html[data-theme='dark'] body.blank-page .auth-method-item .auth-logo-oneid img { filter: brightness(0); }
html[data-theme='dark'] body.blank-page .auth-method-item .auth-logo-oneid i, html[data-theme='dark'] body.blank-page .auth-method-item .auth-logo-oneid i b { color: #0e1020; }
body.blank-page .auth-method-item .waves-input-wrapper::before {
    background: transparent url('../assets/img/e_imzo.png') left center / 78px auto no-repeat !important; box-shadow: none !important; width: 84px; left: .9rem;
}
body.blank-page .auth-method-item .btn-outline-primary { padding-left: 7.4rem !important; }
body.blank-page .auth-method-item .waves-input-wrapper > input, body.blank-page .auth-method-item input.waves-button-input { padding-left: 7.4rem !important; }
body.blank-page .auth-method-item .auth-logo { left: 1rem; }

/* =====================================================================================================
 * v43 — Murojaatlar holat tablari: segmentli boshqaruv, sonlar yumshoq kapsulada
 * ===================================================================================================== */
html:root .nav-tabs.ek-status-tabs {
    display: flex; flex-wrap: nowrap; gap: 4px; width: 100%; padding: 5px; margin: 1rem 0 1.1rem !important; overflow-x: auto; scrollbar-width: none;
    border: 0 !important; border-radius: 16px; background: var(--ek-surface-2); box-shadow: inset 0 0 0 1px var(--ek-border) !important;
}
html:root .nav-tabs.ek-status-tabs::-webkit-scrollbar { display: none; }
html:root .nav-tabs.ek-status-tabs .nav-item { flex: 1 1 0; min-width: max-content; }
html:root .nav-tabs.ek-status-tabs .nav-link {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .62rem 1.1rem; margin: 0; border-radius: 12px; font-size: .875rem; font-weight: 600; color: var(--ek-muted);
    background: transparent; white-space: nowrap; transition: background-color .12s ease, color .12s ease;
}
html:root .nav-tabs.ek-status-tabs .nav-link::after { display: none; }
html:root .nav-tabs.ek-status-tabs .nav-link:hover:not(.active) { color: var(--ek-text); background: color-mix(in srgb, var(--ek-surface) 55%, transparent); }
html:root .nav-tabs.ek-status-tabs .nav-link.active { color: var(--ek-text); background: var(--ek-surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .08) !important; }
html:root .nav-tabs.ek-status-tabs .nav-link .badge {
    margin: 0 !important; min-width: 24px; padding: .2rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums;
}
html:root .nav-tabs.ek-status-tabs .nav-link .badge::before { display: none; }
html:root .nav-tabs.ek-status-tabs .nav-link.active .badge.bg-light-secondary, html:root .nav-tabs.ek-status-tabs .nav-link.active .badge.bg-secondary { background: var(--ek-accent-soft) !important; color: var(--ek-accent) !important; }
@media (max-width: 575.98px) { html:root .nav-tabs.ek-status-tabs .nav-item { flex: 0 0 auto; } }
html:root .nav-tabs.ek-status-tabs .nav-link .badge.bg-light-secondary, html:root .nav-tabs.ek-status-tabs .nav-link .badge.bg-secondary { background: color-mix(in srgb, var(--ek-muted) 16%, transparent) !important; color: var(--ek-muted) !important; }

/* Kalendar maydoni: o'ng tomonda kalendar ikonkasi */
html:root input.ek-date-input, html:root input.flatpickr-input.form-control:not([type='hidden']) {
    cursor: pointer; padding-right: 2.5rem; background-repeat: no-repeat; background-position: right .8rem center; background-size: 17px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2'/%3e%3cpath d='M16 2v4M8 2v4M3 10h18'/%3e%3c/svg%3e");
}
html:root input.ek-date-input:focus { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d5dfc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2'/%3e%3cpath d='M16 2v4M8 2v4M3 10h18'/%3e%3c/svg%3e"); }
html:root .ek-filter-row input.ek-date-input { height: 42px; }

/* Qo'ng'iroqcha: soni burchakdagi ixcham yumaloq belgi (nuqtasiz, ramka bilan) */
html:root .header-navbar .nav-link { position: relative; }
html:root .header-navbar .badge.badge-up, html:root .header-navbar #contact-request-bell .badge {
    position: absolute !important; top: 2px !important; right: 0 !important; left: auto !important; transform: none !important;
    min-width: 19px; height: 19px; padding: 0 .35rem !important; margin: 0; display: inline-flex !important; align-items: center; justify-content: center;
    border-radius: 999px; font-size: .66rem !important; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums;
    color: #fff !important; background: linear-gradient(135deg, #f43f5e, #e11d48) !important; box-shadow: 0 0 0 2px var(--ek-surface), 0 4px 10px -2px rgba(225, 29, 72, .55) !important;
}
html:root .header-navbar .badge.badge-up::before, html:root .header-navbar #contact-request-bell .badge::before { display: none !important; }
html:root .header-navbar .badge.badge-up.d-none, html:root .header-navbar #contact-request-bell .badge.d-none { display: none !important; }
html:root .header-navbar #contact-request-bell { width: 40px; height: 40px; }

/* Bildirishnoma oynasi: ixcham */
html:root .dropdown-notification .dropdown-menu.dropdown-menu-media { width: 320px !important; min-width: 0; padding: 0 !important; border-radius: 16px; overflow: hidden; }
html:root .dropdown-notification .dropdown-menu-header { margin: 0; }
html:root .dropdown-notification .dropdown-header { padding: .7rem .9rem !important; border-bottom: 1px solid var(--ek-border); background: transparent; }
html:root .dropdown-notification .notification-title { font-size: .8125rem; font-weight: 700; letter-spacing: 0; }
html:root .dropdown-notification .dropdown-header .badge { font-size: .68rem; padding: .2rem .5rem; }
html:root .dropdown-notification .media-list { max-height: 13.5rem !important; overflow-y: auto; scrollbar-width: thin; }
html:root .dropdown-notification .media-list > a, html:root .dropdown-notification .media-list .list-item, html:root .dropdown-notification .media-list li, html:root .dropdown-notification .media-list .dropdown-item {
    display: block; margin: 0; padding: .5rem .9rem !important; border-radius: 0; border-bottom: 1px solid color-mix(in srgb, var(--ek-border) 70%, transparent);
}
html:root .dropdown-notification .media-list .media-heading, html:root .dropdown-notification .media-list b, html:root .dropdown-notification .media-list strong, html:root .dropdown-notification .media-list .fw-bold, html:root .dropdown-notification .media-list h6 {
    margin: 0; font-size: .8125rem; font-weight: 650; line-height: 1.25; color: var(--ek-text);
}
html:root .dropdown-notification .media-list small, html:root .dropdown-notification .media-list .notification-text, html:root .dropdown-notification .media-list p { display: block; margin: .1rem 0 0; font-size: .72rem; line-height: 1.3; color: var(--ek-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root .dropdown-notification .media-list > *:hover { background: var(--ek-surface-2); }
html:root .dropdown-notification .dropdown-menu-footer { padding: .55rem .65rem !important; margin: 0; background: transparent; }
html:root .dropdown-notification .dropdown-menu-footer .btn { height: 34px; min-height: 34px; padding: 0 .8rem !important; font-size: .78rem; border-radius: 10px; }
html:root .dropdown-notification .dropdown-menu-footer .btn-outline-secondary { width: 34px; padding: 0 !important; }
html:root .dropdown-notification #contact-request-os-notify { padding: .45rem .9rem !important; font-size: .72rem; }
html:root .dropdown-notification #contact-request-os-notify small { font-size: .72rem; color: var(--ek-muted); }
@media (max-width: 575.98px) { html:root .dropdown-notification .dropdown-menu.dropdown-menu-media { width: min(320px, calc(100vw - 1.5rem)) !important; } }
html:root .dropdown-notification .media-list { overflow-x: hidden !important; }
html:root .dropdown-notification .media-list li { padding: 0 !important; border: 0 !important; }
html:root .dropdown-notification .media-list > a, html:root .dropdown-notification .media-list .list-item { padding: .5rem .9rem !important; }
html:root .dropdown-notification .media-list .media, html:root .dropdown-notification .media-list .list-item { min-width: 0; }
html:root .dropdown-notification .media-list a.d-flex { align-items: flex-start; gap: .5rem; }
html:root .dropdown-notification .media-list small, html:root .dropdown-notification .media-list p { white-space: normal; overflow: visible; text-overflow: clip; }
html:root .dropdown-notification .media-list a.d-flex > div, html:root .dropdown-notification .media-list a.d-flex > span { margin-left: 0 !important; padding-left: 0 !important; min-width: 0; }

/* =====================================================================================================
 * v44 — tun rejimi: Vuexy'ning qolgan eski ranglarini (#3b4253, #283046, #b4b7bd...) yagona tokenlarga bog'lash
 * ===================================================================================================== */
html[data-theme='dark'] .table, html[data-theme='dark'] .table > :not(caption) > * > *, html[data-theme='dark'] .table tr, html[data-theme='dark'] .table td, html[data-theme='dark'] .table th,
html[data-theme='dark'] .dark-layout .table td, html[data-theme='dark'] .dark-layout .table th, html[data-theme='dark'] .dark-layout .table tr { border-color: color-mix(in srgb, var(--ek-border) 85%, transparent) !important; }
html[data-theme='dark'] .table > tbody > tr > td { border-bottom-color: color-mix(in srgb, var(--ek-border) 75%, transparent) !important; }
html[data-theme='dark'] .table-bordered > :not(caption) > * > * { border-color: var(--ek-border) !important; }
html[data-theme='dark'] .card, html[data-theme='dark'] .modal-content, html[data-theme='dark'] .dropdown-menu, html[data-theme='dark'] .popover, html[data-theme='dark'] .list-group-item, html[data-theme='dark'] .accordion-item, html[data-theme='dark'] .offcanvas { background-color: var(--ek-surface); color: var(--ek-text); }
html[data-theme='dark'] .card-header, html[data-theme='dark'] .card-footer, html[data-theme='dark'] .modal-header, html[data-theme='dark'] .modal-footer, html[data-theme='dark'] .dropdown-divider, html[data-theme='dark'] hr, html[data-theme='dark'] .border, html[data-theme='dark'] .border-top, html[data-theme='dark'] .border-bottom { border-color: var(--ek-border) !important; }
html[data-theme='dark'] .text-body, html[data-theme='dark'] body, html[data-theme='dark'] .content-body, html[data-theme='dark'] p, html[data-theme='dark'] .card-text { color: var(--ek-text); }
html[data-theme='dark'] .text-muted, html[data-theme='dark'] small, html[data-theme='dark'] .form-text { color: var(--ek-muted) !important; }
html[data-theme='dark'] .form-control, html[data-theme='dark'] .form-select, html[data-theme='dark'] .input-group-text { color: var(--ek-text); background-color: var(--ek-surface-2); }
html[data-theme='dark'] .form-control::placeholder { color: color-mix(in srgb, var(--ek-muted) 80%, transparent); }
html[data-theme='dark'] .form-control:focus, html[data-theme='dark'] .form-select:focus { background-color: var(--ek-surface); }
html[data-theme='dark'] .form-control:disabled, html[data-theme='dark'] .form-control[readonly] { background-color: color-mix(in srgb, var(--ek-surface-2) 70%, transparent); color: var(--ek-muted); }
html[data-theme='dark'] .select2-container--default .select2-selection--single, html[data-theme='dark'] .select2-container--default .select2-selection--multiple { background-color: var(--ek-surface-2); }
html[data-theme='dark'] .select2-dropdown { background: var(--ek-surface); }
html[data-theme='dark'] .select2-container--default .select2-selection--single .select2-selection__rendered, html[data-theme='dark'] .select2-results__option { color: var(--ek-text); }
html[data-theme='dark'] .form-floating > label { color: var(--ek-muted); }
html[data-theme='dark'] .form-check-input:not(:checked) { background-color: var(--ek-surface-2); }
html[data-theme='dark'] .breadcrumb-item a, html[data-theme='dark'] .ek-crumbs .breadcrumb-item a { color: var(--ek-muted); }
html[data-theme='dark'] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.ek-tool):not(.ek-cmd-item):not(.ek-bn) { color: var(--ek-accent); }
html[data-theme='dark'] .table tbody td a:not(.btn) { color: color-mix(in srgb, var(--ek-accent) 85%, white); }
html[data-theme='dark'] .table thead th { background: color-mix(in srgb, var(--ek-surface-2) 85%, transparent); color: var(--ek-muted); }
html[data-theme='dark'] .table-light, html[data-theme='dark'] .table-light > * > * { background: var(--ek-surface-2) !important; color: var(--ek-muted) !important; }
html[data-theme='dark'] .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: color-mix(in srgb, var(--ek-surface-2) 45%, transparent); }
html[data-theme='dark'] .bg-light, html[data-theme='dark'] .bg-white { background-color: var(--ek-surface-2) !important; color: var(--ek-text); }
html[data-theme='dark'] .alert { background-color: var(--ek-surface); color: var(--ek-text); }
html[data-theme='dark'] pre, html[data-theme='dark'] .error-block, html[data-theme='dark'] .ek-error { background: var(--ek-surface-2); color: var(--ek-text); border-color: var(--ek-border); }
html[data-theme='dark'] code { background: var(--ek-accent-soft); color: color-mix(in srgb, var(--ek-accent) 90%, white); }
html[data-theme='dark'] .modal-backdrop.show { background: rgba(2, 4, 12, .7); }
html[data-theme='dark'] .page-link { background: var(--ek-surface-2); color: var(--ek-text); }
html[data-theme='dark'] .nav-pills { background: var(--ek-surface-2); }
html[data-theme='dark'] .nav-pills .nav-link.active { background: var(--ek-surface); color: var(--ek-accent); }
html[data-theme='dark'] .badge.bg-light-secondary, html[data-theme='dark'] .badge.badge-light-secondary { background: var(--ek-surface-2) !important; color: var(--ek-muted) !important; }
html[data-theme='dark'] .card:hover, html[data-theme='dark'] .card { box-shadow: 0 0 0 1px var(--ek-border); }
html[data-theme='dark'] .header-navbar.floating-nav { background: color-mix(in srgb, var(--ek-surface) 82%, transparent); }
html[data-theme='dark'] footer.footer, html[data-theme='dark'] .ek-footer__inner { color: var(--ek-muted); }
html[data-theme='dark'] .tox .tox-edit-area__iframe { background: var(--ek-surface); }
html[data-theme='dark'] .tox.tox-tinymce { background: var(--ek-surface-2); }
html[data-theme='dark'] .tox .tox-toolbar, html[data-theme='dark'] .tox .tox-toolbar__primary, html[data-theme='dark'] .tox .tox-menubar, html[data-theme='dark'] .tox .tox-statusbar { background: var(--ek-surface-2) !important; }
html[data-theme='dark'] .tox .tox-tbtn svg, html[data-theme='dark'] .tox .tox-mbtn { color: var(--ek-text); fill: var(--ek-text); }
html[data-theme='dark'] .flatpickr-calendar, html[data-theme='dark'] .picker__holder { background: var(--ek-surface); }
html[data-theme='dark'] span.flatpickr-weekday, html[data-theme='dark'] .flatpickr-day { color: var(--ek-text); }
html[data-theme='dark'] .flatpickr-day.prevMonthDay, html[data-theme='dark'] .flatpickr-day.nextMonthDay { color: var(--ek-muted); }
html[data-theme='dark'] .flatpickr-months .flatpickr-prev-month svg, html[data-theme='dark'] .flatpickr-months .flatpickr-next-month svg { fill: var(--ek-muted); }

/* =====================================================================================================
 * v45 — jadval amal tugmalari 2.0: yumshoq gradient plitka, aniq ikonka, hover'da to'liq rang + chiroyli tooltip
 * ===================================================================================================== */
html:root td .btn-icon[data-tone] {
    position: relative; width: 34px; height: 34px; border-radius: 12px !important; overflow: visible;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 15%, var(--ek-surface)), color-mix(in srgb, var(--tone) 8%, var(--ek-surface))) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(15, 23, 42, .06) !important;
}
html[data-theme='dark'] td .btn-icon[data-tone] {
    background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 22%, var(--ek-surface)), color-mix(in srgb, var(--tone) 12%, var(--ek-surface))) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
html:root td .btn-icon[data-tone] svg, html:root td .btn-icon[data-tone] .ek-ai { width: 17px; height: 17px; stroke-width: 1.8; transition: transform .16s ease; }
html:root td .btn-icon[data-tone]:hover {
    background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 92%, white), var(--tone)) !important; color: #fff !important;
    box-shadow: 0 10px 20px -8px var(--tone), inset 0 1px 0 rgba(255, 255, 255, .35) !important; transform: translateY(-2px);
}
html:root td .btn-icon[data-tone]:hover svg { transform: scale(1.08); }
html[data-theme='dark'] td .btn-icon[data-tone]:hover { color: #0b1020 !important; }
html:root td .btn-icon[data-tone][data-tone='delete']:hover svg { transform: scale(1.08) rotate(-6deg); }
html:root td .btn-icon[data-tone][data-tone='sync']:hover svg { transform: rotate(180deg); }
/* Tooltip */
html:root td .btn-icon[data-tip]::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: .3rem .6rem; border-radius: 8px; white-space: nowrap;
    font: 600 .7rem/1.2 var(--ek-font); color: #fff; background: #0f172a; box-shadow: 0 8px 20px -6px rgba(15, 23, 42, .5); opacity: 0; pointer-events: none; z-index: 30; transition: opacity .12s ease, transform .12s ease;
}
html:root td .btn-icon[data-tip]::before {
    content: ''; position: absolute; left: 50%; bottom: calc(100% + 3px); width: 8px; height: 8px; background: #0f172a; transform: translate(-50%, 4px) rotate(45deg); opacity: 0; pointer-events: none; z-index: 29; transition: opacity .12s ease, transform .12s ease;
}
html:root td .btn-icon[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }
html:root td .btn-icon[data-tip]:hover::before { opacity: 1; transform: translate(-50%, 0) rotate(45deg); }
html[data-theme='dark'] td .btn-icon[data-tip]::after, html[data-theme='dark'] td .btn-icon[data-tip]::before { background: #e7e9f3; color: #0b1020; }
html:root td .btn-icon[data-tone]:disabled::after, html:root td .btn-icon[data-tone][disabled]::after, html:root td .btn-icon[data-tone]:disabled::before { display: none; }
html:root td .btn-icon[data-tone]:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
/* Tooltip jadval chetidan kesilmasin */
html:root .table-responsive, html:root .card:has(td .btn-icon[data-tip]) { overflow: visible; }
/* ...lekin jadval idishga sig'masa (modern.js → markWideTables) — gorizontal aylantirish, aks holda jadval kartadan chiqib ketadi. */
html:root .table-responsive.ek-wide { overflow-x: auto; overflow-y: hidden; }
html:root .card:has(> .table-responsive.ek-wide), html:root .card:has(> .card-body > .table-responsive.ek-wide) { overflow: hidden; }
@media (max-width: 991.98px) { html:root .table-responsive { overflow-x: auto; overflow-y: visible; } html:root td .btn-icon[data-tip]::after, html:root td .btn-icon[data-tip]::before { display: none; } }

/* Jadvaldagi matnli amal tugmalari: ikonka + matn, tonli yumshoq plitka */
html:root td .btn.ek-act[data-tone] {
    --tone: var(--ek-accent); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 34px; min-height: 34px; padding: 0 .85rem !important; margin: 0 2px !important;
    border: 0 !important; border-radius: 12px !important; font-size: .78rem; font-weight: 650; line-height: 1; white-space: nowrap; color: var(--tone) !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 15%, var(--ek-surface)), color-mix(in srgb, var(--tone) 8%, var(--ek-surface))) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(15, 23, 42, .06) !important;
    transition: background-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}
html[data-theme='dark'] td .btn.ek-act[data-tone] { background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 22%, var(--ek-surface)), color-mix(in srgb, var(--tone) 12%, var(--ek-surface))) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06) !important; }
html:root td .btn.ek-act[data-tone='view'] { --tone: #2563eb !important; } html:root td .btn.ek-act[data-tone='edit'] { --tone: #059669 !important; }
html:root td .btn.ek-act[data-tone='delete'] { --tone: #e11d48 !important; } html:root td .btn.ek-act[data-tone='ok'] { --tone: #16a34a !important; }
html:root td .btn.ek-act[data-tone='sync'] { --tone: #0891b2 !important; } html:root td .btn.ek-act[data-tone='file'] { --tone: #d97706 !important; }
html:root td .btn.ek-act[data-tone='add'] { --tone: #0d9488 !important; }
html[data-theme='dark'] td .btn.ek-act[data-tone='view'] { --tone: #60a5fa !important; } html[data-theme='dark'] td .btn.ek-act[data-tone='edit'] { --tone: #34d399 !important; }
html[data-theme='dark'] td .btn.ek-act[data-tone='delete'] { --tone: #fb7185 !important; } html[data-theme='dark'] td .btn.ek-act[data-tone='ok'] { --tone: #4ade80 !important; }
html[data-theme='dark'] td .btn.ek-act[data-tone='sync'] { --tone: #22d3ee !important; } html[data-theme='dark'] td .btn.ek-act[data-tone='file'] { --tone: #fbbf24 !important; }
html[data-theme='dark'] td .btn.ek-act[data-tone='add'] { --tone: #2dd4bf !important; }
html:root td .btn.ek-act[data-tone]:hover { color: #fff !important; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 92%, white), var(--tone)) !important; box-shadow: 0 10px 20px -8px var(--tone), inset 0 1px 0 rgba(255, 255, 255, .35) !important; transform: translateY(-2px); }
html[data-theme='dark'] td .btn.ek-act[data-tone]:hover { color: #0b1020 !important; }
html:root td .btn.ek-act[data-tone] .ek-ai { width: 15px; height: 15px; flex: none; margin: 0 !important; }
html:root td .btn.ek-act[data-tone]:active { transform: translateY(0); }
html:root td form { display: inline-block; margin: 0; }

/* Select va select2 ro'yxati: kengligi maydon kengligidan oshmaydi, uzun matn o'raladi */
html:root .select2-container--open .select2-dropdown, html:root .select2-dropdown { width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
html:root .select2-container--open { max-width: 100%; }
html:root .select2-results__option { white-space: normal; overflow-wrap: anywhere; word-break: normal; }
html:root .select2-results__options { overflow-x: hidden; }
html:root .select2-container--default .select2-selection--single .select2-selection__rendered { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 1.35; padding-top: .5rem; padding-bottom: .5rem; }
@supports (appearance: base-select) {
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible)::picker(select) {
        width: anchor-size(width); min-width: anchor-size(width); max-width: anchor-size(width); box-sizing: border-box; overflow-x: hidden;
    }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) option { white-space: normal; overflow-wrap: anywhere; }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Bildirishnomalar: o'ng pastda (toastr.options.positionClass — _partials/js) ---------- */
html:root #toast-container.toast-bottom-right { right: 1.25rem; bottom: 1.25rem; z-index: 1090; }
html:root #toast-container.toast-bottom-right > div { margin: .5rem 0 0; }
@media (max-width: 767.98px) {
    /* telefonda pastki navigatsiya ustida */
    html:root #toast-container.toast-bottom-right { left: .75rem; right: .75rem; bottom: calc(5.8rem + env(safe-area-inset-bottom)); }
    html:root #toast-container.toast-bottom-right > div { width: auto; }
}

/* ---------- Tasdiqlash oynasi (modern.js → window.confirm o'rniga) ---------- */
.ek-confirm { position: fixed; inset: 0; z-index: 1095; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 18, 30, .45); backdrop-filter: blur(3px); }
.ek-confirm.is-open { display: flex; animation: ek-confirm-fade .14s ease; }
.ek-confirm-box { width: min(420px, 100%); border-radius: 20px; background: var(--ek-surface, #fff); color: var(--ek-text, #1d2233); box-shadow: 0 30px 70px -25px rgba(15, 18, 30, .55), 0 0 0 1px var(--ek-border, #e5e8f0); padding: 1.5rem 1.5rem 1.25rem; text-align: center; animation: ek-confirm-pop .16s ease; }
.ek-confirm-ic { width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 18px; display: grid; place-items: center; color: var(--ek-accent, #6d5dfc); background: var(--ek-accent-soft, rgba(109, 93, 252, .12)); }
.ek-confirm-ic svg { width: 26px; height: 26px; }
.ek-confirm.is-danger .ek-confirm-ic { color: #e11d48; background: rgba(225, 29, 72, .1); }
.ek-confirm-title { margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 700; }
.ek-confirm-text { margin: 0; color: var(--ek-muted, #6a7389); font-size: .9rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.ek-confirm-actions { display: flex; gap: .6rem; margin-top: 1.4rem; }
.ek-confirm-actions .btn { flex: 1 1 0; min-height: 42px; border-radius: 12px; font-weight: 600; }
.ek-confirm.is-danger .ek-confirm-ok { background: #e11d48 !important; border-color: #e11d48 !important; color: #fff !important; }
html[data-theme='dark'] .ek-confirm.is-danger .ek-confirm-ic { color: #fb7185; background: rgba(251, 113, 133, .14); }
@keyframes ek-confirm-fade { from { opacity: 0; } }
@keyframes ek-confirm-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .ek-confirm.is-open, .ek-confirm-box { animation: none; } }

/* ---------- select2: tanlangan matn maydon o'rtasida (vertikal) ----------
   Oldingi qoidalar (≈2149 flex/center va ≈2911 block + padding .5rem) bir-birini bosib, 42px maydonda matn ~6px tepaga
   siljib qolardi. Maydon — flex, matn bloki padding'siz va o'rtada; qisqartirish (…), strelka va × joyi o'zgarmaydi. */
html:root .select2-container--default .select2-selection--single { display: flex !important; align-items: center; }
html:root .select2-container--default .select2-selection--single .select2-selection__rendered {
    flex: 1 1 auto; min-width: 0; display: block; padding-top: 0 !important; padding-bottom: 0 !important; min-height: 0; line-height: 1.35;
}
html:root .ek-filter-row .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.35; }

/* ---------- Forma amallar paneli (saqlash tugmasi): har sahifada bir xil, karta ichida ----------
   Ayrim view'larda qatorga inline `margin: 0 0 10px -10px` yoki `border-top pt-2 mt-3` yozilgan — panel kartadan chiqib/siljib
   ketardi. Panel doim forma kengligida, karta ichki chetiga tekis; yuqoridan bir xil oraliq. */
html:root .ek-actions {
    margin-left: 0 !important; margin-right: 0 !important; margin-bottom: 0 !important; margin-top: 1.4rem !important;
    width: auto !important; max-width: 100%; flex: 0 0 100%; box-sizing: border-box; border-top: 0 !important;
}
html:root .row > .ek-actions { width: calc(100% - var(--bs-gutter-x, 1.5rem)) !important; margin-left: calc(var(--bs-gutter-x, 1.5rem) * .5) !important; margin-right: calc(var(--bs-gutter-x, 1.5rem) * .5) !important; flex: 0 0 auto; }
html:root .ek-grid > .ek-actions { margin-top: .9rem !important; }
/* Panel card-body'dan tashqarida, to'g'ridan-to'g'ri .card ichida bo'lsa (county/positions edit) — card-body chetiga tekis. */
html:root .card > .ek-actions { width: auto !important; margin: .4rem 20px 20px !important; }

/* ---------- Jadval kengligi: uzun matn jadvalni cho'zib yubormasin ----------
   ≈2407-qatordagi `width: max-content` har qanday uzun matnni bir qatorga yoyib, jadvalni ekrandan bir necha barobar kengaytirardi
   (registry: 4500px). Kompyuterda jadval karta kengligida, matn qatorlarga bo'linadi; ustunlar baribir sig'masa — ek-wide (aylantirish).
   Telefonda qatorlar bir qatorli (nowrap) qoladi, uzun kataklar esa ek-td-clamp / ek-td-wrap orqali cheklanadi. */
@media (min-width: 992px) {
    html:root .table-responsive > .table, html:root .table-responsive > table { width: 100%; }
}
html:root .ek-td-wrap { min-width: 14rem; max-width: 32rem; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
html:root .ek-td-wrap > ol, html:root .ek-td-wrap > ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 991.98px) { html:root .ek-td-wrap { min-width: 13rem; max-width: 72vw; } }
html:root .table td.ek-td-break { overflow-wrap: anywhere; word-break: break-all; min-width: 8rem; }
html:root .table td .btn.ek-btn-wrap { white-space: normal !important; text-align: left; max-width: 24rem; height: auto !important; min-height: 0; line-height: 1.35; flex-wrap: wrap; row-gap: .25rem; }
@media (max-width: 991.98px) { html:root .table td .btn.ek-btn-wrap { max-width: 70vw; } }
@media (min-width: 992px) { html:root .ek-td-wrap, html:root .ek-td-clamp { min-width: 10rem; } }

/* Label matnida allaqachon "*" (<span class="text-danger">*</span>) bo'lsa — modern.js qo'shadigan ikkinchi "*" chiqmasin. */
html:root label.is-required:has(.text-danger)::after, html:root .form-label.is-required:has(.text-danger)::after { content: none; }

/* Oddiy select (base-select): uzun tanlangan matn strelka ostiga kirmasin, oxirida "…" chiqsin. */
@supports (appearance: base-select) {
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible),
    html:root select.form-control:not([multiple]):not([size]):not(.select2-hidden-accessible) {
        display: block; position: relative; padding-right: 2.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: calc(42px - 2px);
    }
    html:root select.form-select:not([multiple]):not([size]):not(.select2-hidden-accessible)::picker-icon,
    html:root select.form-control:not([multiple]):not([size]):not(.select2-hidden-accessible)::picker-icon {
        position: absolute; right: .75rem; top: 50%; margin: -8px 0 0;
    }
    html:root .form-select-sm:not([multiple]):not([size]):not(.select2-hidden-accessible) { line-height: calc(32px - 2px); }
}
@supports (appearance: base-select) {
    html:root select[data-ek-sc] > button.ek-sc-btn {
        display: flex; align-items: center; width: 100%; min-width: 0; height: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: inherit; pointer-events: none;
    }
    html:root select[data-ek-sc] > button.ek-sc-btn > selectedcontent { display: block; min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    html:root select[data-ek-sc] { display: flex; align-items: center; padding-right: .55rem; line-height: normal; }
    html:root select[data-ek-sc]::picker-icon { position: static; margin: 0 0 0 .5rem; flex: none; }
}
@media (max-width: 575.98px) {
    /* telefonda amal tugmalari bir xil kenglikda, ustma-ust */
    html:root .ek-form .ek-actions .btn { margin: 0 !important; flex: 1 1 100%; width: 100%; }
}

/* Formada `d-flex` ichida col-* maydonlar (masalan, area/registry/agenda formalari): flex-wrap yo'q edi — telefonda col-12 lar
   yonma-yon qolib, kartadan o'ngga chiqib ketardi. Kichik ekranda qatorga o'tadi. */
@media (max-width: 767.98px) {
    html:root .ek-form .d-flex:has(> [class*='col-']), html:root .ek-form .d-flex:has(> .form-group), html:root .ek-form .d-flex:has(> div > .select2-container) { flex-wrap: wrap; row-gap: .9rem; }
    html:root .ek-form .d-flex:has(> [class*='col-']) > [class*='col-'] { margin-left: 0 !important; margin-right: 0 !important; }
}
/* select2 init paytida kengligini px qilib yozadi (style="width: 620px") — maydon ota-elementidan chiqib ketmasin. */
html:root .ek-form .select2-container { max-width: 100% !important; }
html:root .ek-form .select2-container[style*='width'] { width: 100% !important; }


/* =====================================================================================================
 * Formalar: to'liq kenglik + ekranga moslashuvchi ustunlar (barcha sahifalar)
 * ===================================================================================================== */
/* Formali karta qatorda yolg'iz bo'lsa (col-md-8, col-xl-9 ...) — to'liq kenglik. Yonida boshqa karta bo'lsa — tegilmaydi. */
html:root .app-content .row > [class*='col-']:only-child:has(form.ek-form),
html:root .app-content .row > [class*='col-']:only-child:has(> .card form.ek-form) { flex: 0 0 100%; max-width: 100%; width: 100%; }
/* Maydonlar setkasi: telefon — 1, planshet/noutbuk — 2, keng ekran — 3 ustun (uzun maydonlar — ek-span, butun qator). */
@media (min-width: 1400px) { html:root .ek-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Telefonda forma ichidagi Bootstrap ustunlari (col-4, col-6 ...) — to'liq kenglik, ustma-ust. */
@media (max-width: 767.98px) {
    html:root .ek-form .row > [class*='col-'] { flex: 0 0 100%; max-width: 100%; width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
}
/* Formada select2 + yonida kichik tugma (masalan, "+ yangi qo'shish") — select qolgan joyni egallaydi, tugma o'z o'lchamida. */
html:root .ek-form .d-flex > .position-relative:has(> .select2-container),
html:root .ek-form .d-flex > .select2-container,
html:root .ek-form .d-flex > select.form-select { flex: 1 1 auto; min-width: 0; }
html:root .ek-form .d-flex > .btn-icon { flex: none; }
html:root .ek-form .d-flex.align-items-center > .btn-icon:only-of-type { width: 42px; height: 42px; min-height: 42px; }
@media (max-width: 767.98px) { html:root .ek-form .d-flex.align-items-center > .btn-icon:only-of-type { width: 44px; height: 44px; } }
@media (max-width: 767.98px) {
    html:root .ek-form .d-flex > [class*='col-'] { flex: 0 0 100%; max-width: 100%; width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
}

/* Footer: tor ekranda (yon menyu yopiq) chekinish doim 0. Oldin <body> klassiga bog'liq edi — sahifa yuklanayotganda (yoki JS kech
   ishlasa) footer 260px surilib "qisqa" ko'rinardi, tarkib esa CSS media bo'yicha allaqachon to'liq kenglikda edi. */
@media (max-width: 1199.98px) { html:root footer.footer { margin-left: 0 !important; } }
/* select2 yashirgan asl <select>: select2 CSS'i ulanmagan sahifalarda (masalan, /document) to'liq kenglikda absolyut turib,
   butun sahifani gorizontal aylanadigan qilib qo'yardi. select2 kutubxonasining o'z qoidasi. */
html:root .select2-hidden-accessible { border: 0 !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; height: 1px !important; margin: -1px !important; overflow: hidden !important; padding: 0 !important; position: absolute !important; width: 1px !important; white-space: nowrap !important; }
/* Forma ichidagi .container (masalan, tarjimalarni import qilish) — karta ichida markazga siqilmasin, forma kengligida. */
html:root .ek-form .container { max-width: none; padding-left: 0; padding-right: 0; }
html:root .ek-form .d-inline-block:has(> input[type='file']) { display: block !important; width: 100%; }
html:root select.select2-hidden-accessible.select2-hidden-accessible { width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; }

/* =====================================================================================================
 * Checkbox / radio / switch va label'lar: barcha formalarda bir xil
 * ===================================================================================================== */
/* Belgi + label flex qatorda: chap padding'ga bog'liq emas (view'lardagi `p-0 m-0`, `ml-3` endi joylashuvni buzmaydi —
   integration formasida label switch ostida qolib ketardi). */
html:root .form-check { display: flex; align-items: center; gap: .6rem; padding-left: 0 !important; min-height: 1.6rem; }
html:root .form-check.form-check-inline { display: inline-flex; margin-right: 1.25rem; }
html:root .form-check > .form-check-input { position: static !important; float: none !important; flex: none; margin: 0 !important; }
html:root .form-check > .form-check-label { margin: 0 !important; padding: 0 !important; line-height: 1.35; }
html:root .form-check > .form-check-label:empty { display: none; }
/* Forma ichidagi sarlavha label'lari (switch ustidagi "Faol ?" — form-check-label klassi bilan; klassiz <label>) — form-label bilan bir xil. */
html:root .ek-form label.form-check-label:not(.form-check *),
html:root .ek-form label:not([class]):not(.form-check *):not(.ek-perms *):not(.ek-perm *):not(.ek-perms-tools *) {
    display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .4rem; color: var(--ek-text); cursor: default;
}
/* Switch'lar qatori (sarlavhasi ko'chirilgan): o'ng burchakka siqilmasin — chapdan, oraliq bilan, kerak bo'lsa keyingi qatorga. */
html:root .ek-form .d-flex:has(> .form-switch.ek-sw-titled) { justify-content: flex-start !important; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; }
html:root .ek-form [hidden] { display: none !important; }
html:root .ek-form .d-flex:has(> .form-switch.ek-sw-titled) { margin-top: .9rem; margin-bottom: .2rem; }

/* card-body ichida yana card-body (masalan, user/create): ichkisi qo'shimcha chekinish bermasin — maydonlar amallar paneli bilan bir chiziqda. */
html:root .card-body > form > .card-body, html:root .card-body > .card-body { padding-left: 0 !important; padding-right: 0 !important; }
/* Sarlavhasi ko'chirilgan switch: view'dagi inline margin-left (10px) siljitmasin. */
html:root .ek-form .form-switch.ek-sw-titled { margin-left: 0 !important; }
html:root .card-body > form > .card-body { padding-top: .75rem !important; }

/* =====================================================================================================
 * Ko'p tanlovli select (select2 multiple): oddiy select bilan bir uslubda
 * ===================================================================================================== */
html:root .select2-container--default .select2-selection--multiple {
    position: relative; display: flex; align-items: center; min-height: 42px; padding: .32rem 2.4rem .32rem .4rem !important; cursor: pointer;
}
html:root .select2-container--default .select2-selection--multiple::after {
    content: ''; position: absolute; right: .85rem; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none; background: var(--ek-muted); transition: transform .15s ease, background-color .15s ease;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat;
}
html:root .select2-container--default.select2-container--open .select2-selection--multiple::after { transform: rotate(180deg); background: var(--ek-accent); }
html:root .select2-container--default .select2-selection--multiple .select2-selection__rendered { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice {
    height: 28px; margin: 0 !important; padding: 0 .3rem 0 .65rem !important; gap: .4rem; border-radius: 8px; font-size: .8125rem; font-weight: 600; line-height: 1; max-width: 100%;
}
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice__display { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    width: 18px !important; height: 18px !important; flex: none; font-size: 15px; color: color-mix(in srgb, var(--ek-accent) 75%, var(--ek-muted)) !important; transition: background-color .12s ease, color .12s ease;
}
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover { background: color-mix(in srgb, var(--ek-danger) 14%, transparent) !important; color: var(--ek-danger) !important; }
html:root .select2-container--default .select2-selection--multiple .select2-search--inline { display: flex; align-items: center; }
html:root .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    height: 28px; margin: 0 0 0 .45rem !important; padding: 0; line-height: 28px; font: 500 .875rem var(--ek-font); color: var(--ek-text);
}
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice ~ .select2-search--inline .select2-search__field,
html:root .select2-container--default .select2-selection--multiple .select2-selection__rendered:not(:empty) + .select2-search--inline .select2-search__field { margin-left: .2rem !important; }
html:root .select2-container--default .select2-selection--multiple .select2-search__field::placeholder { color: var(--ek-muted); font-weight: 400; opacity: 1; }
@media (max-width: 767.98px) { html:root .select2-container--default .select2-selection--multiple { min-height: 44px; } }
/* Ro'yxatda tanlanganlar — yengil fon + ✓ (to'q fon emas) */
html:root .select2-container--default .select2-results__option[aria-selected='true'], html:root .select2-container--default .select2-results__option--selected,
html:root .select2-container--default .select2-results__option--selected.select2-results__option--highlighted {
    background-color: color-mix(in srgb, var(--ek-accent) 7%, var(--ek-surface)) !important; color: var(--ek-accent) !important;
}
html:root .select2-container--default .select2-results__option--selected.select2-results__option--highlighted { background-color: color-mix(in srgb, var(--ek-accent) 12%, var(--ek-surface)) !important; }
/* multiple: ichki qidiruv maydoni fonsiz (tun rejimida ochroq to'rtburchak bo'lib ko'rinardi); "hammasini tozalash" × — strelka yonida. */
html:root .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field,
html[data-theme='dark'] .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important;
}
html:root .select2-container--default .select2-selection--multiple .select2-selection__clear {
    position: absolute; right: 2.3rem; top: 50%; margin: -10px 0 0 !important; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--ek-muted); font-size: 16px; line-height: 1; z-index: 1;
}
html:root .select2-container--default .select2-selection--multiple .select2-selection__clear:hover { background: var(--ek-surface-2); color: var(--ek-danger); }
html:root .select2-container--default .select2-selection--multiple:has(.select2-selection__clear) { padding-right: 4rem !important; }
/* Vuexy (components.min.css) remove tugmasining ::before fon-rasmli × — mutlaq joylashib, quti chap chetida ortiqcha "×" bo'lib chiqardi. Bizning × — matn. */
html:root .select2-container--default .select2-selection--multiple .select2-selection__choice__remove::before { content: none !important; display: none !important; }
html[data-theme='dark'] .select2-container--default .select2-results__option:not(.select2-results__option--selected):not(.select2-results__option--highlighted):not([aria-selected='true']) { background-color: transparent !important; }

/* ---------- Tun rejimi: TinyMCE asboblar paneli va <code> ---------- */
html[data-theme='dark'] .tox.tox-tinymce { border-color: var(--ek-border) !important; }
html[data-theme='dark'] .tox .tox-editor-header, html[data-theme='dark'] .tox .tox-toolbar-overlord, html[data-theme='dark'] .tox .tox-toolbar,
html[data-theme='dark'] .tox .tox-toolbar__primary, html[data-theme='dark'] .tox .tox-toolbar__overflow, html[data-theme='dark'] .tox .tox-menubar,
html[data-theme='dark'] .tox .tox-statusbar, html[data-theme='dark'] .tox .tox-edit-area { background: var(--ek-surface-2) !important; border-color: var(--ek-border) !important; }
html[data-theme='dark'] .tox .tox-toolbar__group { border-color: var(--ek-border) !important; }
html[data-theme='dark'] .tox .tox-tbtn, html[data-theme='dark'] .tox .tox-mbtn, html[data-theme='dark'] .tox .tox-tbtn__select-label,
html[data-theme='dark'] .tox .tox-statusbar a, html[data-theme='dark'] .tox .tox-statusbar__path-item, html[data-theme='dark'] .tox .tox-statusbar__wordcount { color: var(--ek-text) !important; }
html[data-theme='dark'] .tox .tox-tbtn svg, html[data-theme='dark'] .tox .tox-mbtn svg { fill: var(--ek-text) !important; }
html[data-theme='dark'] .tox .tox-tbtn:hover, html[data-theme='dark'] .tox .tox-mbtn:hover, html[data-theme='dark'] .tox .tox-tbtn--enabled { background: color-mix(in srgb, var(--ek-text) 10%, transparent) !important; }
html[data-theme='dark'] .tox .tox-tbtn--disabled svg, html[data-theme='dark'] .tox .tox-tbtn--disabled .tox-tbtn__select-label { opacity: .45; }
html[data-theme='dark'] .tox .tox-menu, html[data-theme='dark'] .tox .tox-collection--list, html[data-theme='dark'] .tox .tox-dialog { background: var(--ek-surface) !important; color: var(--ek-text) !important; border-color: var(--ek-border) !important; }
html[data-theme='dark'] .tox .tox-collection__item { color: var(--ek-text) !important; }
html[data-theme='dark'] .tox .tox-collection__item--active { background: var(--ek-surface-2) !important; }
html[data-theme='dark'] .app-content code { color: #f9a8d4; background: color-mix(in srgb, #f9a8d4 12%, transparent); padding: .1rem .35rem; border-radius: 5px; }

/* ---------- Label'lar: barcha sahifalarda bir xil (forma, filtr, ko'rish sahifasi) ---------- */
html:root .ek-filter-row .form-label, html:root .ek-filter-form label:not(.btn):not(.form-check-label) { margin-bottom: .4rem !important; }
/* "Ko'rish" sahifalaridagi <label class="mb-2"> (21px) — boshqa label'lar bilan bir xil oraliq/uslub */
html:root .app-content .card label.mb-2:not(.btn):not(.form-check-label) { margin-bottom: .4rem !important; font-size: .8125rem; font-weight: 600; color: var(--ek-text); }

/* Sidebar: Vuexy'ning .shadow-bottom gradienti logo USTIDA turardi (z-index 2, top -10px) — menyu aylantirilganda logo xiralashib,
   tun rejimida esa menyu fonidan boshqa rangli (rgb 40,48,70) chiziq paydo bo'lardi. Header ostidagi chiziq yetarli — soya o'chirildi. */
html:root .main-menu .shadow-bottom { display: none !important; }
html:root .main-menu .navbar-header { background: var(--ek-surface); position: relative; z-index: 3; }
/* Tun rejimi: logodagi to'q kulrang "kengash gov.uz" yozuvi to'q fonda ko'rinmasdi — logo ostiga yengil oq plashka (ranglari o'zgarmaydi). */
/* Tun rejimi: logo'ning tun varianti (yozuv ochiq rangda, gerb asl yashil) — oq fonsiz. */
html[data-theme='dark'] img.ek-logo { content: url('../assets/img/logo-mark-dark.png'); }

/* ---------- Sidebar brendi: logo + "E-Kengash / Boshqaruv paneli" — mutanosib, vertikal o'rtada ---------- */
html:root .main-menu .navbar-header .navbar-brand { gap: .75rem; align-items: center; }
html:root .main-menu .navbar-header .navbar-brand img { height: 44px; }
html:root .main-menu .navbar-header .navbar-brand .ek-brand-text {
    display: flex; flex-direction: column; justify-content: center; gap: .28rem; min-width: 0; margin: 0;
    background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: var(--ek-text) !important; line-height: 1;
}
html:root .main-menu .navbar-header .navbar-brand .ek-brand-text::after { content: none !important; display: none !important; }
html:root .main-menu .navbar-header .navbar-brand .ek-brand-text b { font-size: 1.08rem; font-weight: 800; letter-spacing: -.015em; color: var(--ek-text); white-space: nowrap; }
html:root .main-menu .navbar-header .navbar-brand .ek-brand-text small { font-size: .7rem; font-weight: 500; letter-spacing: .02em; color: var(--ek-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root .menu-collapsed .main-menu:not(:hover) .navbar-header .navbar-brand .ek-brand-text { display: none; }
html:root .menu-collapsed .main-menu .navbar-header .navbar-brand img { height: 38px; }

/* ---------- Checkbox / switch guruhi (modern.js → .ek-checks): bo'lim oxirida, tekis, bitta panelda ---------- */
html:root .ek-checks {
    display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 2.2rem; margin: 1rem 0 0 !important; padding: .85rem 1rem;
    border-radius: 12px; background: color-mix(in srgb, var(--ek-surface-2) 70%, transparent); box-shadow: inset 0 0 0 1px var(--ek-border);
}
html:root .ek-grid > .ek-checks { grid-column: 1 / -1; }
html:root .ek-checks > * { margin: 0 !important; padding-left: 0; padding-right: 0; width: auto !important; max-width: 100%; flex: 0 1 auto; }
html:root .ek-checks .d-flex { justify-content: flex-start !important; margin: 0 !important; gap: .85rem 2.2rem; flex-wrap: wrap; }
html:root .ek-checks .form-check { min-height: 1.6rem; margin: 0 !important; }
@media (max-width: 575.98px) { html:root .ek-checks { flex-direction: column; align-items: flex-start; gap: .75rem; } }
html:root .row > .ek-checks { flex: 0 0 calc(100% - var(--bs-gutter-x, 1.5rem)); width: calc(100% - var(--bs-gutter-x, 1.5rem)); margin-left: calc(var(--bs-gutter-x, 1.5rem) * .5) !important; margin-right: calc(var(--bs-gutter-x, 1.5rem) * .5) !important; }
html:root .d-flex > .ek-checks { flex: 0 0 100%; }

/* =====================================================================================================
 * Bildirishnomalar (toastr) — zamonaviy: karta, tur ikonkasi, ingichka progress, o'ng past
 * ===================================================================================================== */
html:root #toast-container > .toast {
    --tc: var(--ek-accent);
    position: relative; display: block; width: 360px; max-width: calc(100vw - 2rem); margin: .55rem 0 0 !important; padding: .85rem 2.4rem .9rem 3.4rem !important;
    border: 0 !important; border-radius: 14px !important; opacity: 1 !important; overflow: hidden;
    background: var(--ek-surface) !important; background-image: none !important; color: var(--ek-text) !important;
    box-shadow: 0 0 0 1px var(--ek-border), 0 18px 40px -16px rgba(15, 23, 42, .35) !important;
    animation: ek-toast-in .22s cubic-bezier(.2, .8, .2, 1);
}
html:root #toast-container > .toast:hover { box-shadow: 0 0 0 1px var(--ek-border), 0 22px 46px -16px rgba(15, 23, 42, .42) !important; }
html:root #toast-container > .toast-success { --tc: var(--ek-success, #16a34a); }
html:root #toast-container > .toast-error { --tc: var(--ek-danger, #e11d48); }
html:root #toast-container > .toast-info { --tc: var(--ek-sky, #0284c7); }
html:root #toast-container > .toast-warning { --tc: #f59e0b; }
/* tur ikonkasi (chapda, yumaloq plashkada) */
html:root #toast-container > .toast::before {
    content: ''; position: absolute; left: .85rem; top: .85rem; width: 1.8rem; height: 1.8rem; border-radius: 10px;
    background: color-mix(in srgb, var(--tc) 14%, transparent);
}
html:root #toast-container > .toast::after {
    content: ''; position: absolute; left: calc(.85rem + .4rem); top: calc(.85rem + .4rem); width: 1rem; height: 1rem; background: var(--tc);
    -webkit-mask: var(--ti) center / contain no-repeat; mask: var(--ti) center / contain no-repeat;
}
html:root #toast-container > .toast-success { --ti: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M20 6 9 17l-5-5'/%3e%3c/svg%3e"); }
html:root #toast-container > .toast-error { --ti: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3e%3cpath d='M12 7v6M12 17h.01'/%3e%3c/svg%3e"); }
html:root #toast-container > .toast-warning { --ti: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3e%3cpath d='M12 7v6M12 17h.01'/%3e%3c/svg%3e"); }
html:root #toast-container > .toast-info { --ti: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3e%3cpath d='M12 11v6M12 7h.01'/%3e%3c/svg%3e"); }
html:root #toast-container > .toast .toast-title { margin: 0 0 .2rem; font-size: .875rem; font-weight: 700; line-height: 1.3; color: var(--ek-text) !important; }
html:root #toast-container > .toast .toast-message { font-size: .8125rem; line-height: 1.45; color: var(--ek-muted) !important; overflow-wrap: anywhere; }
html:root #toast-container > .toast .toast-title:empty { display: none; }
html:root #toast-container > .toast .toast-title:empty + .toast-message { color: var(--ek-text) !important; font-weight: 600; padding-top: .3rem; }
html:root #toast-container > .toast .toast-close-button {
    position: absolute; right: .6rem; top: .6rem; width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 1.15rem; font-weight: 400; line-height: 1; color: var(--ek-muted) !important; opacity: 1; text-shadow: none; float: none;
}
html:root #toast-container > .toast .toast-close-button:hover { background: var(--ek-surface-2); color: var(--ek-text) !important; }
html:root #toast-container > .toast .toast-progress { left: 0; bottom: 0; height: 3px; opacity: 1; background: var(--tc) !important; border-radius: 0 3px 0 0; }
@keyframes ek-toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { html:root #toast-container > .toast { animation: none; } }
@media (max-width: 767.98px) { html:root #toast-container > .toast { width: auto; } }
/* 3 ta oddiy maydonli setka (modern.js → ek-grid-3): keng ekranda bitta qatorda. */
@media (min-width: 992px) { html:root .ek-grid.ek-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) {
    html:root .ek-form .row.ek-row-3 > [class*='col-']:not(.col-12):not(.col-md-12):not(.col-lg-12):not(.col-xl-12):not(.col-sm-12) { flex: 0 0 33.3333%; max-width: 33.3333%; width: 33.3333%; }
}
/* Toast progress (_partials/js → .ek-tp): hover'da o'sha joyida to'xtaydi, chiqqanda davom etadi. */
html:root #toast-container > .toast .toast-progress.ek-tp { width: 100% !important; transform-origin: left center; animation-name: ek-tp; animation-timing-function: linear; animation-fill-mode: forwards; }
html:root #toast-container > .toast:hover .toast-progress.ek-tp, html:root #toast-container > .toast:focus-within .toast-progress.ek-tp { animation-play-state: paused; }
html:root #toast-container > .toast .toast-progress.ek-tp.ek-tp-hidden { opacity: 0; }
@keyframes ek-tp { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* =====================================================================================================
 * Fayl tanlash maydoni (modern.js → .ek-file): ikonka + "tanlang yoki tashlang" + turlar; tanlangach nom/hajm + tozalash
 * ===================================================================================================== */
html:root .ek-file {
    position: relative; display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 64px; padding: .7rem 1rem;
    border: 1.5px dashed color-mix(in srgb, var(--ek-muted) 45%, var(--ek-border)); border-radius: 14px;
    background: color-mix(in srgb, var(--ek-surface-2) 55%, var(--ek-surface)); color: var(--ek-text);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
html:root .ek-file:hover { border-color: var(--ek-accent); background: color-mix(in srgb, var(--ek-accent) 4%, var(--ek-surface)); }
html:root .ek-file.is-drag { border-color: var(--ek-accent); border-style: solid; background: color-mix(in srgb, var(--ek-accent) 9%, var(--ek-surface)); box-shadow: 0 0 0 4px var(--ek-accent-soft); }
html:root .ek-file.is-focus { border-color: var(--ek-accent); box-shadow: 0 0 0 3px var(--ek-accent-soft); }
html:root .ek-file.has-file { border-style: solid; border-color: color-mix(in srgb, var(--ek-success) 45%, var(--ek-border)); background: var(--ek-surface); }
html:root .ek-file.is-disabled { opacity: .6; }
/* asl input — butun maydon ustida, shaffof: bosish/sudrab tashlash brauzerning o'zi orqali */
html:root .ek-file > input.ek-file-input {
    position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
    opacity: 0; cursor: pointer; z-index: 1; border: 0 !important; box-shadow: none !important; font-size: 0;
}
html:root .ek-file.is-disabled > input.ek-file-input { cursor: not-allowed; }
html:root .ek-file-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ek-accent); background: var(--ek-accent-soft); transition: color .15s ease, background-color .15s ease; }
html:root .ek-file-ic svg { width: 20px; height: 20px; }
html:root .ek-file.has-file .ek-file-ic { color: var(--ek-success); background: color-mix(in srgb, var(--ek-success) 13%, transparent); }
html:root .ek-file-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1 1 auto; }
html:root .ek-file-title { font-size: .875rem; font-weight: 500; color: var(--ek-text); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:root .ek-file-title b { font-weight: 700; color: var(--ek-accent); }
html:root .ek-file.has-file .ek-file-title { font-weight: 650; }
html:root .ek-file-sub { font-size: .75rem; color: var(--ek-muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:root .ek-file-clear {
    position: relative; z-index: 2; flex: none; width: 32px; height: 32px; border: 0; border-radius: 10px; display: inline-grid; place-items: center;
    background: transparent; color: var(--ek-muted); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background-color .12s ease, color .12s ease;
}
html:root .ek-file-clear:hover { background: color-mix(in srgb, var(--ek-danger) 12%, transparent); color: var(--ek-danger); }
html:root .ek-file-clear[hidden] { display: none; }
@media (max-width: 575.98px) { html:root .ek-file { padding: .65rem .8rem; gap: .7rem; } html:root .ek-file-title { white-space: normal; } }

/* ---------- Qidiruv / filtr tugmalari (ro'yxat sahifalari): bir xil kvadrat, "qidirish" — asosiy, "tozalash" — yumshoq ---------- */
html:root .app-content form[method='get'] .btn-icon:not(table *),
html:root .app-content form[method='GET'] .btn-icon:not(table *) {
    width: 42px; height: 42px; min-width: 42px; min-height: 42px; padding: 0 !important; flex: none;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 12px !important;
}
html:root .app-content form[method='get'] .btn-icon:not(table *) svg, html:root .app-content form[method='GET'] .btn-icon:not(table *) svg { width: 18px; height: 18px; }
/* tozalash (↻ havola) — neytral, yumshoq */
html:root .app-content form[method='get'] a.btn-icon:not(table *), html:root .app-content form[method='GET'] a.btn-icon:not(table *) {
    background: var(--ek-surface-2) !important; background-image: none !important; color: var(--ek-text) !important; border: 0 !important;
    box-shadow: inset 0 0 0 1px var(--ek-border) !important;
}
html:root .app-content form[method='get'] a.btn-icon:not(table *):hover, html:root .app-content form[method='GET'] a.btn-icon:not(table *):hover {
    background: var(--ek-accent-soft) !important; color: var(--ek-accent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ek-accent) 30%, transparent) !important;
}
/* sarlavhadagi bir qatorli qidiruv (senator va h.k.): maydon + tugmalar orasida masofa, maydon kengroq */
html:root .app-content form[method='get'] > .d-flex:has(> .btn-icon) { gap: .5rem; flex-wrap: nowrap; }
html:root .app-content form[method='get'] > .d-flex:has(> .btn-icon) > .form-control { flex: 1 1 auto; min-width: 12rem; width: clamp(12rem, 28vw, 24rem); }
html:root .card-header:has(> form[method='get']) { flex-wrap: wrap; gap: .75rem; }
@media (max-width: 575.98px) { html:root .card-header > form[method='get'] { width: 100%; } html:root .app-content form[method='get'] > .d-flex:has(> .btn-icon) > .form-control { width: auto; min-width: 0; } }

/* =====================================================================================================
 * Jadval amallar katagi (modern.js → .ek-td-actions / .ek-acts): barcha sahifalarda bir xil joylashuv va shakl
 * ===================================================================================================== */
html:root .table td.ek-td-actions { display: table-cell !important; text-align: center; white-space: nowrap; width: 1%; }
html:root .table th.ek-th-actions { text-align: center !important; white-space: nowrap; width: 1%; }
html:root .ek-acts { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: nowrap; vertical-align: middle; }
html:root .table td.ek-td-actions .ek-acts .d-flex, html:root .table td.ek-td-actions .ek-acts > div:not(.modal):not(.dropdown-menu) { display: inline-flex !important; align-items: center; justify-content: center !important; gap: 6px !important; margin: 0 !important; padding: 0 !important; width: auto !important; }
html:root .table td.ek-td-actions .ek-acts form { display: inline-flex; margin: 0 !important; padding: 0; }
html:root .table td.ek-td-actions .ek-acts .btn { height: 34px !important; min-height: 34px; margin: 0 !important; border-radius: 12px !important; display: inline-flex; align-items: center; justify-content: center; flex: none; vertical-align: middle; }
html:root .table td.ek-td-actions .ek-acts .btn:has(svg, i), html:root .table td.ek-td-actions .ek-acts .btn.btn-icon { width: 34px !important; min-width: 34px; padding: 0 !important; }
html:root .table td.ek-td-actions .ek-acts .btn:not(:has(svg, i)):not(.btn-icon) { padding: 0 .85rem !important; font-size: .78rem; font-weight: 600; }
html:root .table td.ek-td-actions .ek-acts .btn.ek-act-icon { font-size: 0 !important; gap: 0 !important; }
html:root .table td.ek-td-actions .ek-acts .btn svg, html:root .table td.ek-td-actions .ek-acts .btn i { width: 16px !important; height: 16px !important; margin: 0 !important; }
html:root .table td.ek-td-actions .ek-acts .dropdown { display: inline-flex; }
html:root .table td.ek-td-actions .ek-acts .modal, html:root .table td.ek-td-actions .ek-acts .dropdown-menu { text-align: left; white-space: normal; }
